| | |
| | | </div> |
| | | </div> |
| | | <button type="button" lay-submit="" lay-filter="Print" id="Print" class="layui-btn layui-btn-radius">æå°</button> |
| | | <button type="button" lay-submit="" lay-filter="Print2" id="Print2" hidden="hidden" ></button> |
| | | <button type="button" lay-submit="" lay-filter="Print2" id="Print2" hidden="hidden"></button> |
| | | <div class="layui-inline" style="width: 200px;"> |
| | | <div class="layui-input-block"> |
| | | <select name="PrintName" lay-verify="required" id="PrintName"> |
| | |
| | | <div class="layui-row" style="padding:10px 0"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <fieldset class="layui-elem-field layui-field-title" style="text-align:center;"> |
| | | <legend>产线å
è£
å</legend> |
| | | <legend id="BT_CXBZD">产线å
è£
å</legend> |
| | | </fieldset> |
| | | </div> |
| | | <div class="layui-col-xs1 layui-inline"> |
| | |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">æµè½¬å¡å·</label> |
| | | <label class="layui-inline" style="width:60px;" id="BT_HFbarcode">æµè½¬å¡å·</label> |
| | | <div class="layui-inline"> |
| | | <input type="text" style="border-radius: 50px;width: 140%;" name="æµè½¬å¡å·" id="HFbarcode" placeholder="请è¾å
¥æµè½¬å¡å·" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">åä»¶æ¡ç æ°é</label> |
| | | <label class="layui-inline" style="width:60px;" id="BT_pcmQty">åä»¶æ¡ç æ°é</label> |
| | | <div class="layui-inline"> |
| | | <input type="text" lay-verify="verifyPcmQty" style="border-radius: 50px;width: 140%;" name="åä»¶æ¡ç æ°é" id="pcmQty" autocomplete="off" placeholder="请è¾å
¥åä»¶æ¡ç æ°é" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">åä»¶æ¡ç </label> |
| | | <label class="layui-inline" style="width:60px;" id="BT_SubBarcode">åä»¶æ¡ç </label> |
| | | <div class="layui-inline"> |
| | | <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> |
| | | <label class="layui-inline" style="width:60px;" id="BT_HMixedBox">æ¯å¦æ··ç®±</label> |
| | | <div class="layui-inline"> |
| | | <input type="checkbox" id="HMixedBox" name="HMixedBox" lay-skin="primary" value="" lay-filter="HMixedBox"> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">è£
ç®±æ°é</label> |
| | | <label class="layui-inline" style="width:60px;" id="BT_zxQty">è£
ç®±æ°é</label> |
| | | <div class="layui-inline"> |
| | | <input type="text" style="border-radius: 50px;" name="" id="zxQty" placeholder="请è¾å
¥è£
ç®±æ°é" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">䏿»¡ç®±æ è¯</label> |
| | | <label class="layui-inline" style="width:60px;" id="BT_HRemark">䏿»¡ç®±æ è¯</label> |
| | | <div class="layui-inline"> |
| | | <input type="text" style="border-radius: 50px;" name="" id="HRemark" autocomplete="off" placeholder="请è¾å
¥ä¸æ»¡ç®±æ è¯" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">ç½æ å·</label> |
| | | <label class="layui-inline" style="width:60px;" id="BT_HBarCode_White">ç½æ å·</label> |
| | | <div class="layui-inline"> |
| | | <input type="text" style="border-radius: 50px;" name="" id="HBarCode_White" autocomplete="off" placeholder="ç½æ å·" class="layui-input"> |
| | | </div> |
| | |
| | | <table> |
| | | <tbody> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">æµè½¬å¡å·</th> |
| | | <th style="width:80px;padding:10px" id="BT_HProcExchBillNo">æµè½¬å¡å·</th> |
| | | <td> |
| | | <input type="text" name="æµè½¬å¡å·" id="HProcExchBillNo" lay-verify="" autocomplete="off" placeholder="æµè½¬å¡å·" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | <input type="hidden" name="æµè½¬å¡ID" id="HFbarcodeID"> |
| | | </td> |
| | | <th style="width:80px;padding:10px">ç»è£
æ¶é´</th> |
| | | <th style="width:80px;padding:10px" id="BT_HDateNow">ç»è£
æ¶é´</th> |
| | | <td> |
| | | <input type="text" name="ç»è£
æ¶é´" class="layui-input" id="HDateNow" placeholder="ç»è£
æ¶é´" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">ç产订åå·</th> |
| | | <th style="width:80px;padding:10px" id="BT_HSourceBillNo">ç产订åå·</th> |
| | | <td> |
| | | <input type="text" name="ç产订åå·" id="HSourceBillNo" lay-verify="" autocomplete="off" placeholder="ç产订åå·" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">产å代ç </th> |
| | | <th style="width:80px;padding:10px" id="BT_HNumber">产å代ç </th> |
| | | <td> |
| | | <input type="text" name="产å代ç " class="layui-input" id="HNumber" placeholder="产å代ç " style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="ç©æå
ç " id="HMaterID"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">产ååç§°</th> |
| | | <th style="width:80px;padding:10px" id="BT_HMaterName">产ååç§°</th> |
| | | <td> |
| | | <input type="text" name="产ååç§°" id="HMaterName" lay-verify="" autocomplete="off" placeholder="产ååç§°" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">è§æ ¼åå·</th> |
| | | <th style="width:80px;padding:10px" id="BT_HModel">è§æ ¼åå·</th> |
| | | <td> |
| | | <input type="text" name="è§æ ¼åå·" class="layui-input" id="HModel" placeholder="è§æ ¼åå·" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">计éåä½</th> |
| | | <th style="width:80px;padding:10px" id="BT_HUntil">计éåä½</th> |
| | | <td> |
| | | <input type="text" name="计éåä½" id="" lay-verify="" autocomplete="off" placeholder="计éåä½" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">æµè½¬å¡æ°é</th> |
| | | <th style="width:80px;padding:10px" id="BT_HLZK">æµè½¬å¡æ°é</th> |
| | | <td> |
| | | <input type="text" name="æµè½¬å¡æ°é" class="layui-input" id="" placeholder="æµè½¬å¡æ°é" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">çäº§è®¢åæ°é</th> |
| | | <th style="width:80px;padding:10px" id="BT_SCDD">çäº§è®¢åæ°é</th> |
| | | <td> |
| | | <input type="text" name="çäº§è®¢åæ°é" id="" lay-verify="" autocomplete="off" placeholder="çäº§è®¢åæ°é" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">åæ®å·</th> |
| | | <th style="width:80px;padding:10px" id="BT_DJH">åæ®å·</th> |
| | | <td> |
| | | <input type="text" name="åæ®å·" class="layui-input" id="HBillNo2" placeholder="åæ®å·" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="åæ®å·ID" id="HInterID"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">订åè·è¸ªå·</th> |
| | | <th style="width:80px;padding:10px" id="BT_DDGZH">订åè·è¸ªå·</th> |
| | | <td> |
| | | <input type="text" name="订åè·è¸ªå·" id="" lay-verify="" autocomplete="off" placeholder="订åè·è¸ªå·" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">ææ¡ç </th> |
| | | <th style="width:80px;padding:10px" id="BT_HBarCode_wym">ææ¡ç </th> |
| | | <td> |
| | | <input type="text" name="ææ¡ç " class="layui-input" id="HBarCode_wym" placeholder="ææ¡ç " style="background-color:#efefef4d;" readonly> |
| | | <!--éèåæ®µ--> |
| | |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">项ç®å·</th> |
| | | <th style="width:80px;padding:10px" id="BT_HProjectNum">项ç®å·</th> |
| | | <td> |
| | | <input type="text" name="项ç®å·" id="HProjectNum" lay-verify="" autocomplete="off" placeholder="项ç®å·" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | |
| | | <table> |
| | | <tbody> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">å¶å人</th> |
| | | <th style="width:80px;padding:10px" id="BT_Hmaker">å¶å人</th> |
| | | <td> |
| | | <input type="text" name="å¶å人" id="" lay-verify="" autocomplete="off" placeholder="å¶å人" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">å¶åæ¥æ</th> |
| | | <th style="width:80px;padding:10px" id="BT_Hmakerdate">å¶åæ¥æ</th> |
| | | <td> |
| | | <input type="text" name="å¶åæ¥æ" class="layui-input" id="" placeholder="å¶åæ¥æ" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">ä¿®æ¹äºº</th> |
| | | <th style="width:80px;padding:10px" id="BT_HupdateMan">ä¿®æ¹äºº</th> |
| | | <td> |
| | | <input type="text" name="ä¿®æ¹äºº" id="" lay-verify="" autocomplete="off" placeholder="ä¿®æ¹äºº" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">ä¿®æ¹æ¥æ</th> |
| | | <th style="width:80px;padding:10px" id="BT_Hupdate">ä¿®æ¹æ¥æ</th> |
| | | <td> |
| | | <input type="text" name="ä¿®æ¹æ¥æ" class="layui-input" id="" placeholder="ä¿®æ¹æ¥æ" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">å®¡æ ¸äºº</th> |
| | | <th style="width:80px;padding:10px" id="BT_HCheckMan">å®¡æ ¸äºº</th> |
| | | <td> |
| | | <input type="text" name="å®¡æ ¸äºº" id="" lay-verify="" autocomplete="off" placeholder="å®¡æ ¸äºº" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">å®¡æ ¸æ¥æ</th> |
| | | <th style="width:80px;padding:10px" id="BT_HCheckDate">å®¡æ ¸æ¥æ</th> |
| | | <td> |
| | | <input type="text" name="å®¡æ ¸æ¥æ" class="layui-input" id="" placeholder="å®¡æ ¸æ¥æ" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig2.js"></script> |
| | | <script src="../../CreateControl.js"></script> |
| | | <script src="../../../layuiadmin/MESLanguage.js"></script> |
| | | <script> |
| | | //CreateReport("Report"); |
| | | function getUrlVars() { |
| | |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | if (sessionStorage.login != "login") { |
| | | layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | layer.confirm(get_MessageError("[0000-2-041]ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", sessionStorage["HTranSlate"]), { |
| | | icon: 4, skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]温馨æç¤º", sessionStorage["HTranSlate"]), closeBtn: 0, btn: [get_MessageError('[0000-2-042]éæ°ç»å½', sessionStorage["HTranSlate"])] |
| | | }, function () { parent.location.href = "../user/login.html"; }); |
| | | return; |
| | | } |
| | |
| | | $("#pcmQty").attr("readonly", "readonly");//æ°éåªè¯» |
| | | $("#pcmQty").css("background-color", "#efefef4d"); |
| | | |
| | | var HModName = "MES_ProductionLinePackaging"; |
| | | initFunction(1, HModName, sessionStorage["HTranSlate"]); |
| | | form.render('select'); |
| | | |
| | | //æ«æ¡å½¢ç æ¹æ³ |
| | | $('#HFbarcode').on('keydown', function (event) { //æ«æ¡å½¢ç |
| | | if (sessionStorage.login != "login") { |
| | | layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | layer.confirm(get_MessageError("[0000-2-041]ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", sessionStorage["HTranSlate"]), { |
| | | icon: 4, skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]温馨æç¤º", sessionStorage["HTranSlate"]), closeBtn: 0, btn: [get_MessageError('[0000-2-042]éæ°ç»å½', sessionStorage["HTranSlate"])] |
| | | }, function () { parent.location.href = "../user/login.html"; }); |
| | | } |
| | | if (event.keyCode == 13) { |
| | |
| | | if (event.keyCode == 13) { |
| | | if (!(/(^[1-9]\d*$)/.test(zxQty))) { |
| | | playSound(); |
| | | layer.msg("请è¾å
¥æ£ç¡®çæ´æ°ï¼"); |
| | | layer.msg(get_MessageError("[0000-2-043]请è¾å
¥æ£ç¡®çæ´æ°ï¼", sessionStorage["HTranSlate"])); |
| | | return; |
| | | } |
| | | //å¤æææ¬æ¡æ¯å¦ææ°æ® new |
| | | if (zxQty > icmoQty) { |
| | | playSound(); |
| | | layer.msg("è£
ç®±æ°éä¸å
è®¸å¤§äºæµè½¬å¡æ°éï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.msg(get_MessageError("[3748-2-007]è£
ç®±æ°éä¸å
è®¸å¤§äºæµè½¬å¡æ°éï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | //夿è£
ç®±æ°éä¸è½å¤§äºå©ä½æ°é |
| | | if (zxQty > icmoQtyNow && $("#HMixedBox").val()=="") { |
| | | if (zxQty > icmoQtyNow && $("#HMixedBox").val() == "") { |
| | | playSound(); |
| | | layer.msg("è£
ç®±æ°éä¸å
è®¸å¤§äºæµè½¬å¡å©ä½æ°éï¼å©ä½æ°é为" + icmoQtyNow, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.msg(get_MessageError("[3748-2-008]è£
ç®±æ°éä¸å
è®¸å¤§äºæµè½¬å¡å©ä½æ°éï¼å©ä½æ°é为" + icmoQtyNow, sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | if (zxQty == "" || zxQty <= 0) { |
| | | playSound(); |
| | | layer.msg("请è¾å
¥æ£ç¡®çæ°éï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.msg(get_MessageError("[0000-2-044]请è¾å
¥æ£ç¡®çæ°éï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } else { |
| | | $("#zxQty").attr("readonly", "readonly");//æ°éåªè¯» |
| | |
| | | if (event.keyCode == 13) { |
| | | if (!(/(^[1-9]\d*$)/.test(pcmQty))) { |
| | | playSound(); |
| | | layer.msg("请è¾å
¥æ£ç¡®çæ´æ°ï¼"); |
| | | layer.msg(get_MessageError("[0000-2-044]请è¾å
¥æ£ç¡®çæ°éï¼", sessionStorage["HTranSlate"])); |
| | | return; |
| | | } |
| | | //å¤æææ¬æ¡æ¯å¦ææ°æ® new |
| | | if (pcmQty > icmoQty) { |
| | | playSound(); |
| | | layer.msg("åä»¶æ¡ç æ°éä¸å
è®¸å¤§äºæµè½¬å¡æ°éï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.msg(get_MessageError("[3748-2-009]åä»¶æ¡ç æ°éä¸å
è®¸å¤§äºæµè½¬å¡æ°éï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | if (pcmQty == "" || pcmQty <= 0) { |
| | | playSound(); |
| | | layer.msg("请è¾å
¥æ£ç¡®çæ°éï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.msg(get_MessageError("[0000-2-044]请è¾å
¥æ£ç¡®çæ°éï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } else { |
| | | $("#pcmQty").attr("readonly", "readonly");//æ°éåªè¯» |
| | |
| | | form.on('checkbox(HMixedBox)', function (obj) { |
| | | if (icmoQtyNow == 0) { |
| | | playSound(); |
| | | layer.msg("å©ä½æ°é为" + icmoQtyNow + ",ä¸å
许混箱ï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.msg(get_MessageError("[3748-2-010]å©ä½æ°é为" + icmoQtyNow + ",ä¸å
许混箱ï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | $("input[name='HMixedBox']").prop("checked", false); |
| | | form.render('checkbox'); |
| | | return; |
| | |
| | | } |
| | | |
| | | }); |
| | | |
| | | |
| | | |
| | | //åä»¶æ¡ç åè½¦æ¹æ³ |
| | | $('#SubBarcode').on('keydown', function (event) { //æ«æ¡å½¢ç |
| | |
| | | if (event.keyCode == 13) { |
| | | if (LDM != "å
¶ä»" && BBM != "å
¶ä»" && SubBarcode.length != 29) { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç é¿åº¦ä¸ä¸º29ä½!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[3748-2-011]åä»¶æ¡ç é¿åº¦ä¸ä¸º29ä½!", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | |
| | | if (LDM == "AAA" && SubBarcode.length != 50) { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç é¿åº¦ä¸ä¸º50ä½!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[3748-2-012]åä»¶æ¡ç é¿åº¦ä¸ä¸º50ä½!", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | |
| | | if (SubBarcode.match(/[^\x00-\xff]/g) != null) { |
| | | playSound(); |
| | | layer.alert("å¿
é¡»æ¯åè§å符!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[3791-2-013]å¿
é¡»æ¯åè§å符!", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | |
| | | if (SubBarcode.length == 50) { |
| | | if (LDM != "å
¶ä»" && reg.test(SubBarcode)) { |
| | | playSound(); |
| | | layer.alert("请æ¥çåä»¶æ¡ç 大忝妿£ç¡®!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[3748-2-013]请æ¥çåä»¶æ¡ç 大忝妿£ç¡®!", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | } else { |
| | | if (LDM != "å
¶ä»" && BBM != "å
¶ä»" && reg.test(SubBarcode)) { |
| | | playSound(); |
| | | layer.alert("请æ¥çåä»¶æ¡ç 大忝妿£ç¡®!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("请æ¥çåä»¶æ¡ç 大忝妿£ç¡®!", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if (LDM != "å
¶ä»" && BBM != "å
¶ä»" && SubBarcode.indexOf(BBM) == -1) { |
| | | playSound(); |
| | | layer.alert("è¯·æ«ææ£ç¡®çåä»¶æ¡ç !", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[3748-2-014]è¯·æ«ææ£ç¡®çåä»¶æ¡ç !", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | |
| | | if (LDM != "å
¶ä»") { |
| | | if (SubBarcode.indexOf(LDM) == -1) { |
| | | playSound(); |
| | | layer.alert("å½åæ¡ç ä¸å±äº" + LDM + "车é´", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[3748-2-015]å½åæ¡ç ä¸å±äº" + LDM + "车é´", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | } |
| | | if (SubBarcode == "" || HBillNo == "") { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç ææµè½¬å¡å·ä¸ºç©ºï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[3748-2-016]åä»¶æ¡ç ææµè½¬å¡å·ä¸ºç©ºï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | if (zxQty == zxQtyFlag) { |
| | | playSound(); |
| | | layer.alert("è£
ç®±æ°éå·²æ«å®ï¼è¯·ç¹å»ä¿åï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[3748-2-017]è£
ç®±æ°éå·²æ«å®ï¼è¯·ç¹å»ä¿åï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | $("#HRemark").attr("readonly", "readonly");//䏿»¡ç®±æ è¯åªè¯» |
| | | $("#HRemark").css("background-color", "#efefef4d"); |
| | | return; |
| | | } |
| | | if (pcmQty == pcmQtyFlag) { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç æ°éå·²æ«å®ï¼è¯·ç¹å»ä¿åï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[3748-2-018]åä»¶æ¡ç æ°éå·²æ«å®ï¼è¯·ç¹å»ä¿åï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | var a = 0; |
| | |
| | | if (result.count == 0) { |
| | | a = 1; |
| | | playSound(); |
| | | layer.alert(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError(result.Message, sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-008]确认', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return false; |
| | | } |
| | | } |
| | |
| | | if (result.count == 0) { |
| | | a = 1; |
| | | playSound(); |
| | | layer.alert(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError(result.Message, sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-008]确认', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return false; |
| | | } |
| | | } |
| | |
| | | if (result.count == 0) { |
| | | a = 1; |
| | | playSound(); |
| | | layer.alert(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError(result.Message, sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-008]确认', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return false; |
| | | } |
| | | } |
| | |
| | | success: function (result) { |
| | | if (result.count == 0) { |
| | | playSound(); |
| | | layer.alert(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't' }); |
| | | layer.alert(result.Message, { icon: 5, btn: [get_MessageError('[0000-2-008]确认', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | else { |
| | |
| | | var AllHqty = result.data[0].HQty; |
| | | if (AllHqty >= icmoQty) { |
| | | playSound(); |
| | | layer.alert("å
è£
æ°éå·²çäºæµè½¬å¡æ°éï¼ä¸å
许æ«ç ï¼", { icon: 1 }); |
| | | layer.alert(get_MessageError("[3748-2-019]å
è£
æ°éå·²çäºæµè½¬å¡æ°éï¼ä¸å
许æ«ç ï¼", sessionStorage["HTranSlate"]), { icon: 1 }); |
| | | return; |
| | | } else { |
| | | //夿è£
ç®±æ°éä¸è½å¤§äºå©ä½æ°é |
| | | if (AllHqty > icmoQtyNow && $("#HMixedBox").val() == "") { |
| | | playSound(); |
| | | layer.msg("è£
ç®±æ°éä¸å
è®¸å¤§äºæµè½¬å¡å©ä½æ°éï¼å©ä½æ°é为" + icmoQtyNow, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.msg(get_MessageError("[3748-2-008]è£
ç®±æ°éä¸å
è®¸å¤§äºæµè½¬å¡å©ä½æ°éï¼å©ä½æ°é为" + icmoQtyNow, sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } else { |
| | | $.ajax({//表ä½åtemp表 |
| | |
| | | var data = result.data; |
| | | if (result.Message == "该åä»¶æ¡ç å·²åå¨") { |
| | | playSound(); |
| | | layer.alert("该åä»¶æ¡ç å·²åå¨", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[0000-2-039]该åä»¶æ¡ç å·²åå¨", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | } else { |
| | | if (data[0].Column1 == 1) { // 说æéªè¯æåäºï¼ |
| | | $('#SubBarcode').val(""); |
| | |
| | | pcmQtyFlag++ |
| | | $("#zxQty").val("" + zxQtyFlag + "/" + zxQty + ""); |
| | | $("#pcmQty").val("" + pcmQtyFlag + "/" + pcmQty + ""); |
| | | layer.msg("æ«ææå", { time: 5000, icon: 6 }); |
| | | layer.msg(get_MessageError("[0000-2-060]æ«ææå", sessionStorage["HTranSlate"]), { time: 5000, icon: 6 }); |
| | | $.ajax({//æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³ |
| | | url: GetWEBURL() + "/LEMS/Select_Gy_BarCodeBill_HQty", |
| | | type: "GET", |
| | |
| | | ZJTMFlag = true; |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ´æ°æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[3748-2-020]æ´æ°æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[3748-2-021]æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | } else { |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert("æå
¥ç¼å表失败", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[3748-2-022]æå
¥ç¼å表失败", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | } |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç æ¹æ³åçé误!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[3748-2-023]åä»¶æ¡ç æ¹æ³åçé误!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[3748-2-021]æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[0000-1-002]æ¥å£è¯·æ±å¤±è´¥!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | |
| | | var HRemark = $('#HRemark').val(); |
| | | if (!HRemark) { |
| | | playSound(); |
| | | layer.alert("è£
ç®±æ°éæªæ«å®ï¼è¯·æ«å®è£
ç®±æ°éæå¡«å䏿»¡ç®±æ è¯ï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[3748-2-024]è£
ç®±æ°éæªæ«å®ï¼è¯·æ«å®è£
ç®±æ°éæå¡«å䏿»¡ç®±æ è¯ï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | } |
| | | if (!ZJTMFlag) { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç æªæ«æï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[3748-2-025]åä»¶æ¡ç æªæ«æï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-008]确认', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | //å¢å æ ¡éªç½æ å· |
| | |
| | | |
| | | //if (LDM != "å
¶ä»" && BBM != "å
¶ä»" && HBarCode_White == "") { |
| | | // playSound(); |
| | | // layer.alert("ç½æ å·ä¸è½ä¸ºç©º!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | // layer.alert("ç½æ å·ä¸è½ä¸ºç©º!", { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | // return; |
| | | //} |
| | | |
| | | //var BBMs = BBM.replace(/-/g, ""); |
| | | //if (LDM != "å
¶ä»" && BBM != "å
¶ä»" && HBarCode_White.indexOf(BBMs) == -1) { |
| | | // playSound(); |
| | | // layer.alert("è¯·æ«ææ£ç¡®ç½æ å·", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | // layer.alert("è¯·æ«ææ£ç¡®ç½æ å·", { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | // return; |
| | | //} |
| | | if ($('#dymb').val() == "æªéæ©") { |
| | | playSound(); |
| | | layer.alert("è¯·éæ©æå°æ¨¡æ¿", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[0000-2-061]è¯·éæ©æå°æ¨¡æ¿", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | var sMainStr = JSON.stringify(data.field); |
| | |
| | | var HProjectNum = "æµè¯"; |
| | | if (!HProjectNum) { |
| | | playSound(); |
| | | layer.alert("项ç®å·ä¸ºç©ºï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[0000-2-062]项ç®å·ä¸ºç©ºï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | $.ajax({//æå
¥ä¸»è¡¨ |
| | |
| | | var data = result.data; |
| | | if (result.count == 1) { |
| | | playSound(); |
| | | layer.msg("æ«ææå", { time: 5000, icon: 6 }); |
| | | layer.msg(get_MessageError("[0000-2-060]æ«ææå", sessionStorage["HTranSlate"]), { time: 5000, icon: 6 }); |
| | | } else { |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert("æå
¥ä¸»è¡¨å¤±è´¥", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[0000-2-063]æå
¥ä¸»è¡¨å¤±è´¥", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æµæ°´å·æ¹æ³åçé误!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[0000-2-064]æµæ°´å·æ¹æ³åçé误!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | return; |
| | | } |
| | | }); |
| | |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert("æå
¥å表失败", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[0000-2-065]æå
¥å表失败", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æå
¥åè¡¨æ¹æ³åçé误!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[0000-2-065]æå
¥åè¡¨æ¹æ³åçé误!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert("æå
¥ä¸»è¡¨å¤±è´¥", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[0000-2-063]æå
¥ä¸»è¡¨å¤±è´¥", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ´æ°æ è®°æ¹æ³åçé误!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[0000-2-066]æ´æ°æ è®°æ¹æ³åçé误!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | |
| | | |
| | | //éåºæé® |
| | | form.on('submit(Close)', function (data) {//éåº |
| | | layer.confirm('æ¨ç¡®å®è¦å
³éæ¬é¡µåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | layer.confirm(get_MessageError('[0000-1-031]æ¨ç¡®å®è¦å
³éæ¬é¡µåï¼', sessionStorage["HTranSlate"]), { icon: 3, title: get_MessageError("[0000-2-009]温馨æç¤º", sessionStorage["HTranSlate"]) }, function (index) { |
| | | parent.layui.admin.events.closeThisTabs(); |
| | | }); |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(HAddBT)', function (data) {//éåº |
| | | layer.confirm('æ¨ç¡®å®è¦æ°å¢åï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | layer.confirm(get_MessageError('[0000-2-048]æ¨ç¡®å®è¦æ°å¢åï¼', sessionStorage["HTranSlate"]), { icon: 3, title: get_MessageError("[0000-2-009]温馨æç¤º", sessionStorage["HTranSlate"]) }, function (index) { |
| | | window.location.reload(); |
| | | }); |
| | | }); |
| | |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_SOPBillList/WindowPrintList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | async: false, |
| | | data: { "sWhere": sWhere }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | |
| | | //}; |
| | | webapp_ws_ajax_run(args); |
| | | } else { |
| | | layer.msg("æ¥æ æ°æ®!"); |
| | | layer.msg(get_MessageError("[0000-1-045]æ¥æ æ°æ®!", sessionStorage["HTranSlate"])); |
| | | } |
| | | } |
| | | else { |
| | |
| | | layer.msg('æ¥çæä½'); |
| | | } else if (layEvent === 'del') { |
| | | if (data.HBillType == "3772") { |
| | | layer.msg("æµè½¬å¡å·ä¸å
许å é¤ï¼"); |
| | | layer.msg(get_MessageError("[0000-2-067]æµè½¬å¡å·ä¸å
许å é¤ï¼", sessionStorage["HTranSlate"])); |
| | | return; |
| | | } |
| | | layer.confirm('ççå é¤è¡ä¹', function (index) { |
| | | layer.confirm(get_MessageError('[0000-1-003]ççå é¤è¡ä¹', sessionStorage["HTranSlate"]), function (index) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/LEMS/DelProductionLinePackagingTable', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sHInterID": data.HInterID, "HSourceBillNo": data.HSourceBillNo }, |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | |
| | | var HQty = result.data; |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ´æ°æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[3748-2-020]æ´æ°æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[3748-2-021]æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | } else { |
| | | playSound(); |
| | | layer.alert(data.code + data.msg, { icon: 5 }); |
| | | layer.alert(get_MessageError(data.code + data.msg, sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥!", { |
| | | icon: 5, btn: ['确认'], time: 100000, offset: 't', |
| | | skin: 'layui-layer-lan', title: "温馨æç¤º" |
| | | layer.msg(get_MessageError("[0000-1-002]æ¥å£è¯·æ±å¤±è´¥!", sessionStorage["HTranSlate"]), { |
| | | icon: 5, btn: [get_MessageError('[0000-2-008]确认', sessionStorage["HTranSlate"])], time: 100000, offset: 't', |
| | | skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]温馨æç¤º", sessionStorage["HTranSlate"]) |
| | | }); |
| | | } |
| | | }); |
| | |
| | | //å¤æææ¬æ¡æ¯å¦ææ°æ® new |
| | | if (HFbarcode == "") { |
| | | playSound(); |
| | | layer.alert("æµä¼ å¡å·ä¸ºç©ºï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[0000-1-057]æµä¼ å¡å·ä¸ºç©ºï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | //å¤æææ¬æ¡åªè¯»æ¶ä¸å¯æ«ç |
| | |
| | | icmoQtyNow = result.data; |
| | | } else { |
| | | playSound(); |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | layer.alert(get_MessageError(result.Message, sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[0000-1-002]æ¥å£è¯·æ±å¤±è´¥!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | } else { |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert("æå
¥ä¸»è¡¨å¤±è´¥", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[0000-2-063]æå
¥ä¸»è¡¨å¤±è´¥", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ´æ°æ è®°æ¹æ³åçé误!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[0000-2-066]æ´æ°æ è®°æ¹æ³åçé误!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | // |
| | |
| | | } |
| | | else { |
| | | playSound(); |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.alert(get_MessageError(result.code + result.Message, sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | } |
| | | , error: function () { |
| | | playSound(); |
| | | layer.close(index0); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[0000-1-002]æ¥å£è¯·æ±å¤±è´¥!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }) |
| | | } else { |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert("æ æ¤æµè½¬å¡å·ï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert("æ æ¤æµè½¬å¡å·ï¼", { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ«æµè½¬å¡å·æ¹æ³åçé误!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[3748-2-026]æ«æµè½¬å¡å·æ¹æ³åçé误!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | } else { |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert(result.Message, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError(result.Message, sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ«æ¡å½¢ç æ¹æ³åçé误!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[0000-2-068]æ«æ¡å½¢ç æ¹æ³åçé误!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | // layer.msg($('#HFbarcode').val(), { icon: 1 }); |
| | |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.closeAll("loading"); |
| | | layer.alert("è·ååæ®å·å¤±è´¥!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[0000-2-004]è·ååæ®å·å¤±è´¥!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | |
| | | $("#HOrganizationID").val(obj[0].HNumber); |
| | | } |
| | | |
| | | //function GetHEmpValue(obj) //è¿åèå |
| | | //{ |
| | | // $("#HEmpName").val(obj[0].HName); |
| | | // $("#HEmpID").val(obj[0].HItemID); |
| | | //} |
| | | //function GetHDeptNameValue(obj) //è¿åé¨é¨ |
| | | //{ |
| | | // $("#HDeptName").val(obj[0].HName); |
| | | // $("#HDeptID").val(obj[0].HItemID); |
| | | //} |
| | | //function GetHEmpValue(obj) //è¿åèå |
| | | //{ |
| | | // $("#HEmpName").val(obj[0].HName); |
| | | // $("#HEmpID").val(obj[0].HItemID); |
| | | //} |
| | | //function GetHDeptNameValue(obj) //è¿åé¨é¨ |
| | | //{ |
| | | // $("#HDeptName").val(obj[0].HName); |
| | | // $("#HDeptID").val(obj[0].HItemID); |
| | | //} |
| | | |
| | | |
| | | </script> |