| | |
| | | <input type="text" style="border-radius: 50px;width: 140%;" name="åä»¶æ¡ç " id="SubBarcode" autocomplete="off" placeholder="请è¾å
¥åä»¶æ¡ç " class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">æ¯å¦æ··ç®±</label> |
| | | <div class="layui-inline"> |
| | | <input type="checkbox" id="HMixedBox" name="HMixedBox" lay-skin="primary" value="" lay-filter="HMixedBox"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class=""> |
| | |
| | | return util.toDateString(time, "yyyy-MM-dd"); |
| | | } |
| | | } |
| | | //, { field: 'HBarCode_Pack', title: 'æ¡å½¢ç ', width: 145 } |
| | | , { field: 'HSourceBillNo', title: 'æ¡å½¢ç ', width: 145 } |
| | | , { field: 'HBillNo', title: 'æºååå·', width: 125 } |
| | | , { field: 'HBarCode', title: 'å¯ä¸ç ', width: 125 } |
| | |
| | | return; |
| | | } |
| | | //夿è£
ç®±æ°éä¸è½å¤§äºå©ä½æ°é |
| | | if (zxQty > icmoQtyNow) { |
| | | if (zxQty > icmoQtyNow && $("#HMixedBox").val()=="") { |
| | | playSound(); |
| | | layer.msg("è£
ç®±æ°éä¸å
è®¸å¤§äºæµè½¬å¡å©ä½æ°éï¼å©ä½æ°é为" + icmoQtyNow, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | |
| | | } |
| | | } |
| | | }); |
| | | |
| | | |
| | | form.on('checkbox(HMixedBox)', function (obj) { |
| | | if (icmoQtyNow == 0) { |
| | | playSound(); |
| | | layer.msg("å©ä½æ°é为" + icmoQtyNow + ",ä¸å
许混箱ï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | $("input[name='HMixedBox']").prop("checked", false); |
| | | form.render('checkbox'); |
| | | return; |
| | | } |
| | | if (obj.value == "") { |
| | | $("#HMixedBox").val("1"); |
| | | } else { |
| | | $("#HMixedBox").val(""); |
| | | } |
| | | |
| | | }); |
| | | |
| | | |
| | | //åä»¶æ¡ç åè½¦æ¹æ³ |
| | | $('#SubBarcode').on('keydown', function (event) { //æ«æ¡å½¢ç |
| | |
| | | url: GetWEBURL() + "/LEMS/SNBarcodeProcCtrl", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "SubBarcode": SubBarcode, "HProcExchBillNo": HProcExchBillNo }, |
| | | data: { "SubBarcode": SubBarcode, "HProcExchBillNo": HProcExchBillNo, "HMixedBox": $("#HMixedBox").val(), "HBillNo": HBillNo2 }, |
| | | success: function (result) { |
| | | if (result.count == 0) { |
| | | a = 1; |
| | |
| | | if (AllHqty >= icmoQty) { |
| | | playSound(); |
| | | layer.alert("å
è£
æ°éå·²çäºæµè½¬å¡æ°éï¼ä¸å
许æ«ç ï¼", { icon: 1 }); |
| | | return; |
| | | } else { |
| | | //夿è£
ç®±æ°éä¸è½å¤§äºå©ä½æ°é |
| | | if (AllHqty > icmoQtyNow && $("#HMixedBox").val() == "") { |
| | | playSound(); |
| | | layer.msg("è£
ç®±æ°éä¸å
è®¸å¤§äºæµè½¬å¡å©ä½æ°éï¼å©ä½æ°é为" + icmoQtyNow, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } else { |
| | | $.ajax({//表ä½åtemp表 |
| | |
| | | layer.alert("åä»¶æ¡ç æ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | |
| | | //æ¸
ç©ºæ«æè®°å½çè£
ç®±æ°é |
| | | zxQtyFlag = 0; |
| | | pcmQtyFlag = 0; |
| | | $("#HMixedBox").val(""); |
| | | $("input[name='HMixedBox']").prop("checked", false); |
| | | form.render('checkbox'); |
| | | //è·ååæ®å· |
| | | getBillno(); |
| | | //æ«ææ¡ç |