| | |
| | | height: 100px; |
| | | width: 30px; |
| | | } |
| | | /* add by rentx 2021-10-21 start 设置展示框 |
| | | /* add by rentx 2021-10-21 start 设置展示框 */ |
| | | .col_EquipmentManagementCode__c {display: none;} |
| | | .col_Scroll{display: none;} |
| | | .dataRow.col_Scroll{display: none;} |
| | | .col_ManagementCode__c{display: none;} |
| | | */ |
| | | |
| | | .modal |
| | | { |
| | | display:none; |
| | |
| | | <apex:commandButton onclick="qrsacn(0);return false;" value="扫一扫耗材" rerender="allForm"/> |
| | | <apex:commandButton onclick="qrsacn(1);return false;" value="扫一扫物流单" rerender="allForm"/> |
| | | <apex:commandButton onclick="blockme();" action="{!send}" value="发货" rerender="message" oncomplete="unblockUI();checkMessage();checEventFrame()"/> |
| | | <!-- add wangweipeng 2021/01/10 start --> |
| | | <apex:commandButton onclick="window.open('/apex/ConsumTrialPDF?id={!parentId}');" value="试用表" rerender="allForm"/> |
| | | <!-- add wangweipeng 2021/01/10 /apex/ConsumTrialPDF?id={!parentId} ConsumEquipmentSetShipmentPDF start --> |
| | | <apex:commandButton onclick="window.open('ConsumTrialPDF?id={!parentId}');" value="试用表" rerender="allForm"/> |
| | | <!--<a href="openSafri/apex/ConsumTrialPDF?id={!parentId}">试用表</a> --> |
| | | <!-- add wangweipeng 2021/01/10 end --> |
| | | <!-- add by rentx 2021-10-21 start 新增码枪扫描 --> |
| | | <apex:commandButton onclick="document.getElementById('maqCode').focus();return false" id="maqCodeBtn" value="码枪扫描:" style="padding: 6px;font-size: 110%;margin-right: 1px;"/> |
| | |
| | | <td > |
| | | <apex:outputLabel for="slipNo" value="发货-运输单号:" /> |
| | | <apex:inputField id="slipNo" value="{!slip.Name}"/> |
| | | <apex:commandButton action="{!searchSlip}" value="检索" style="padding: 6px;font-size: 110%;" rerender="allForm" oncomplete="checEventFrame()"/> |
| | | <!-- <apex:commandButton action="{!searchSlip}" value="检索" style="padding: 6px;font-size: 110%;" rerender="allForm" oncomplete="checEventFrame()"/> --> |
| | | <apex:commandButton action="{!searchSlip}" value="检索" style="padding: 6px;font-size: 110%;" rerender="searchBlock" oncomplete="checEventFrame()"/> |
| | | </td> |
| | | <td width="10px"></td> |
| | | <td > |
| | |
| | | |
| | | j$("#tableData input[type=text]").on('change', function() { |
| | | let rownum = j$(this)[0].id.match(/oppTable\:(\d*)/)[1]; |
| | | alert('====rownum=='+rownum); |
| | | j$('input[name$="oppTable_L:'+rownum+':rowCheck"]').prop('checked', true).trigger("change"); |
| | | }) |
| | | |
| | |
| | | } |
| | | } |
| | | //20220215 字段集中的输入框变成只读,不能直接变成span,否则后台取不到值 |
| | | j$("#tableData input[type=text]").attr("readonly",true); |
| | | j$("#tableData input[type=text]").attr("disabled","disabled"); |
| | | //j$("#tableData input[type=text]").attr("readonly",true); 先隐藏掉 |
| | | //j$("#tableData input[type=text]").attr("disabled","disabled"); |
| | | </script> |
| | | </apex:outputPanel> |
| | | </apex:outputPanel> |
| | |
| | | return false; |
| | | } |
| | | //判断这个小码code 是否符合要求 1:长度是否正确 2:是否重复输入 3:输入的是否为3位数字 |
| | | // var regNeg = /^[1-9]+[0-9]*]*$/; // 负整数 |
| | | //z<0||!(/^\d+$/.test(z)) |
| | | // && nowCode>=0 && (/^\d+$/.test(nowCode)) |
| | | if(nowCode != null && nowCode.length == 3 && !isNaN(nowCode)){ |
| | | //获取扫描过的小码 |
| | | var tableId = document.getElementById("detailTb"); |
| | |
| | | |
| | | var code = paobj[0].children[9].children[0].value; //.innerText; |
| | | var hecode = paobj[0].children[10].children[0].value; //.innerText; |
| | | alert('xiaoma'+code); |
| | | //alert('xiaoma'+code); |
| | | if (code != null && code.length > 0) { |
| | | //向弹出框里添加明细行 |
| | | var arr = code.split(','); |
| | |
| | | //j$(".modal").hide(); |
| | | j$("#myModal1").hide(); |
| | | scanType = null; |
| | | |
| | | j$("#maqCode").focus(); |
| | | if(numflag == 0 ){ |
| | | //用户点击保存 1.设置数量到发货件数上 2.设置小码到明细的备品管理码上 |
| | | if(numObj != null){ |
| | |
| | | checkObj.prop('checked', false); |
| | | } |
| | | var maqCode = j$( '#maqCode' ).val(); |
| | | alert('==='+j$( '#maqCode' ).val()); |
| | | if (maqCode !='' && maqCode !=undefined){ |
| | | //alert('==='+j$( '#maqCode' ).val()); |
| | | //if (maqCode !='' && maqCode !=undefined){ |
| | | j$("#maqCode").val(""); |
| | | j$("#maqCode").focus(); |
| | | } |
| | | setTimeout(function(){j$("#maqCode").focus();},300); |
| | | //} |
| | | } |
| | | // <!-- add by qiuyj 2021-11-30 start pc端扫码支持--> |
| | | j$(document).ready(function(){ |
| | |
| | | return false; |
| | | } |
| | | }); |
| | | setTimeout(function(){j$("#maqCode").focus();},300); |
| | | |
| | | }); |
| | | // add by qiuyj 2021-11-30 end pc端扫码支持 |
| | | // add by rentx 2021-10-19 end 耗材追溯 -码枪扫码之后展示弹出框 |
| | |
| | | try{ |
| | | if (scanType == 1) { |
| | | j$("input[name$='slipNo']").val(content); |
| | | scanType = null; |
| | | }else if(scanType == 2){//add by youc 2021-12-01 弹出框中ipad扫描小码 |
| | | checkipadXiaoMa(content); |
| | | scanType = null; |
| | | } else { |
| | | |
| | | var tracingCode = content.substr(-8);//截取后8位 |
| | |
| | | j$("#qrcode").focus(); |
| | | //add by qiuyj 2021-11-30 end pc端扫码支持--> |
| | | //alert('扫描条形码请使用App'); |
| | | |
| | | } |
| | | } |
| | | |