| | |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <!--<script src="../CreateControl.js"></script>--> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/MESLanguage.js"></script> |
| | | <style> |
| | | .layui-form-label { |
| | | font-size: 14px; |
| | |
| | | <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_CXZTD">äº§çº¿ç»æå</legend> |
| | | </fieldset> |
| | | </div> |
| | | <div class="layui-col-xs1 layui-inline"> |
| | |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div> |
| | | <label class="layui-inline" style="width:70px;">è£
ç®±æ¡ç </label> |
| | | <label class="layui-inline" style="width:70px;" id="BT_HBarCode_Pack">è£
ç®±æ¡ç </label> |
| | | <div class="layui-inline"> |
| | | <input type="text" style="border-radius: 50px;width: 140%;" name="HBarCode_Pack" id="HBarCode_Pack" placeholder="请è¾å
¥è£
ç®±æ¡ç " autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <label class="layui-inline" style="width:70px;"><span style="color:red">*</span>å
¥åºæ¹æ¬¡</label> |
| | | <label class="layui-inline" style="width:70px;" id="BT_HBatchNo"><span style="color:red">*</span>å
¥åºæ¹æ¬¡</label> |
| | | <div class="layui-inline"> |
| | | <input type="text" style="border-radius: 50px;width: 140%;" name="HBatchNo" id="HBatchNo" placeholder="请è¾å
¥å
¥åºæ¹æ¬¡" autocomplete="off" class="layui-input" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <label class="layui-inline" style="width:70px;">黿 å·</label> |
| | | <label class="layui-inline" style="width:70px;" id="BT_HBarCode_Cus">黿 å·</label> |
| | | <div class="layui-inline"> |
| | | <input type="text" style="border-radius: 50px;width: 140%;" name="HBarCode_Cus" id="HBarCode_Cus" autocomplete="off" class="layui-input"> |
| | | </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> |
| | |
| | | <table class="layui-hide" id="ztd-table" lay-filter="ztd-table"></table> |
| | | <script type="text/html" id="smjl-toolbar"> |
| | | <div class="layui-btn-container"> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>é¢è§</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>å·æ°</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>确认</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>å è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>çæéè´§å</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button>--> |
| | | </div> |
| | | </script> |
| | | </div> |
| | |
| | | <table> |
| | | <tbody> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">æµè½¬å¡å·</th> |
| | | <th style="width:80px;padding:10px" id="BT_LZKH">æµè½¬å¡å·</th> |
| | | <td> |
| | | <input type="text" name="æµè½¬å¡å·" id="" lay-verify="" autocomplete="off" placeholder="æµè½¬å¡å·" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | <input type="hidden" name="æµè½¬å¡ID" id="HFbarcodeID"> |
| | | <input type="hidden" name="HOrgID" id="HOrgID"> |
| | | </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_HLZHSL">æµè½¬å¡æ°é</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_HSCDDSL">çäº§è®¢åæ°é</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_HBillNo">åæ®å·</th> |
| | | <td> |
| | | <input type="text" name="HBillNo" class="layui-input" id="HBillNo" placeholder="åæ®å·" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">订åè·è¸ªå·</th> |
| | | <th style="width:80px;padding:10px" id="BT_HDDGZH">订åè·è¸ªå·</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="HMaker" id="HMaker" 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_HMakeDate">å¶åæ¥æ</th> |
| | | <td> |
| | | <input type="text" name="HMakeDate" class="layui-input" id="HMakeDate" 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> |
| | |
| | | <a class="layui-btn layui-btn-xs" lay-event="del" style="background-color: red;">å é¤</a> |
| | | </script> |
| | | |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig2.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script> |
| | | |
| | | layui.config({ |
| | |
| | | |
| | | var zxQty;//è¾å
¥çè£
ç®±æ°é |
| | | var zxQtyFlag = 0; |
| | | |
| | | |
| | | |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | 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; |
| | | } |
| | |
| | | var HBillTyp = '2601'; |
| | | $('#HMaker').val(sessionStorage["HMaker"]); |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HOrgID").val(sessionStorage["OrganizationID"]); |
| | | //è¿å
¥é¡µé¢é»è®¤è£
ç®±ç ä¸è½å¡« |
| | | $("#HBarCode_Pack").attr("readonly", "readonly");//æ°éåªè¯» |
| | | $("#HBarCode_Pack").css("background-color", "#efefef4d"); |
| | |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HBillType": '3783' }, |
| | | data: { "HBillType": '3783' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | layer.closeAll("loading"); |
| | | }, error: function () { |
| | | layer.closeAll("loading"); |
| | | layer.alert("è·ååæ®å·å¤±è´¥!", { icon: 5 }); |
| | | layer.alert(get_MessageError("[0000-2-004]è·ååæ®å·å¤±è´¥!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | |
| | | //åå§å è½½è¡¨æ ¼ |
| | | option.data = []; |
| | | table.render(option); |
| | | |
| | | var HModName = "Sc_GroupOrderBill"; |
| | | initFunction(1, HModName, sessionStorage["HTranSlate"]); |
| | | |
| | | //å¡«åè£
ç®±æ°éåå
æ 跳走 |
| | | $('#zxQty').on('keydown', function (event) { |
| | | zxQty = $("#zxQty").val(); |
| | | if (event.keyCode == 13) { |
| | | if (!(/(^[1-9]\d*$)/.test(zxQty))) { |
| | | layer.msg("请è¾å
¥æ£ç¡®çæ´æ°ï¼"); |
| | | layer.msg(get_MessageError("[0000-2-043]请è¾å
¥æ£ç¡®çæ´æ°ï¼", sessionStorage["HTranSlate"])); |
| | | return; |
| | | } |
| | | |
| | | |
| | | if (zxQty == "" || zxQty <= 0) { |
| | | 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").val("" + zxQtyFlag + "/" + zxQty + ""); |
| | |
| | | //æ«è£
ç®±ç |
| | | $('#HBarCode_Pack').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 (zxQty == zxQtyFlag) { |
| | | layer.alert("è£
ç®±æ°éå·²æ«å®ï¼è¯·ç¹å»ä¿åï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(get_MessageError("[3783-2-002]è£
ç®±æ°éå·²æ«å®ï¼è¯·ç¹å»ä¿åï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | } |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/GroupOrderBill/GetPackBarCode", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HInterID": HInterID |
| | | , "HBillNo": HBillNo |
| | | , "HBillTyp": HBillTyp |
| | | , "HMaker": HMaker |
| | | , "HBarCode_Pack": HBarCode_Pack |
| | | , "HOrgID": $("#HOrgID").val() |
| | | }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | |
| | | table.render(option); |
| | | layer.close(index); |
| | | $('#HBarCode_Pack').val(""); |
| | | layer.msg("æ«ç æåï¼", { icon: 1, time: 1000 }); |
| | | layer.msg(get_MessageError("[0000-2-045]æ«ç æåï¼", sessionStorage["HTranSlate"]), { icon: 1, time: 1000 }); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg(get_MessageError(result.Message, sessionStorage["HTranSlate"]), { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]温馨æç¤º", sessionStorage["HTranSlate"]) }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { 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"]) }); |
| | | } |
| | | }); |
| | | } |
| | |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | |
| | | if (parseInt(zxQty) > zxQtyFlag) { |
| | | layer.alert("è£
ç®±æ°éæªæ«å®ï¼è¯·æ«å®è£
ç®±æ°éï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert(msgget_MessageError("[3783-2-005]è£
ç®±æ°éæªæ«å®ï¼è¯·æ«å®è£
ç®±æ°éï¼", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-035]éåº', sessionStorage["HTranSlate"])], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | |
| | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/GroupOrderBill/AddBill", |
| | | //url:"http://localhost:12761/GroupOrderBill/AddBill", |
| | | async: true, |
| | | url: GetWEBURL() + "/GroupOrderBill/AddBill", |
| | | async: false, |
| | | data: { "oMain": oMain }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | |
| | | $('#Saver-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | //$("#Print").click(); |
| | | layer.confirm( |
| | | 'ä¿åæåï¼è¯·ç»§ç»éæ©æä½ï¼', |
| | | get_MessageError('[3783-2-006]ä¿åæåï¼è¯·ç»§ç»éæ©æä½ï¼', sessionStorage["HTranSlate"]), |
| | | { |
| | | skin: 'layui-layer-lan', |
| | | closeBtn: 0, |
| | | btn: ['æ°å¢', 'å
³é'], |
| | | btn: [get_MessageError('[0000-2-046]æ°å¢', sessionStorage["HTranSlate"]), get_MessageError('[0000-2-047]å
³é', sessionStorage["HTranSlate"])], |
| | | btn2: function () {//æ°å¢ |
| | | parent.layui.admin.events.closeThisTabs(); |
| | | } |
| | |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg(get_MessageError(data.Message, 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"]) }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg("é误:" + err, { 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"]) }); |
| | | } |
| | | }); |
| | | |
| | | }); |
| | | |
| | | }); |
| | | |
| | | //éåºæé® |
| | | 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(); |
| | | }); |
| | | }); |
| | |
| | | if (layEvent === 'detail') { |
| | | layer.msg('æ¥çæä½'); |
| | | } else if (layEvent === 'del') { |
| | | layer.confirm('ççå é¤è¡ä¹', function (index) { |
| | | layer.confirm(get_MessageError('[0000-1-003]ççå é¤è¡ä¹', sessionStorage["HTranSlate"]), function (index) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/GroupOrderBill/DelCacheListByBarCode', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "BarCode": obj.data.HBarCode_Pack }, |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | |
| | | } |
| | | layer.close(index); |
| | | obj.del(); //å é¤å¯¹åºè¡ï¼trï¼çDOMç»æ |
| | | layer.msg('å 餿å'); |
| | | layer.msg(get_MessageError('[0000-1-008]å 餿å', sessionStorage["HTranSlate"])); |
| | | } else { |
| | | 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"]) |
| | | }); |
| | | } |
| | | }); |
| | |
| | | } |
| | | }); |
| | | |
| | | //setInterval(function () { |
| | | // if (sessionStorage.login != "login") { |
| | | // layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | // icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | // }, function () { parent.location.href = "../user/login.html"; }); |
| | | // } |
| | | //}, 3600000); |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |
| | | //function window_onload() { |
| | | // Report.LoadFromURL("../grf/å
è£
åç©ææ è¯å¡(ç½é¡µç).grf"); |
| | | |
| | | //} |
| | | //function btnPrint_onclick() { |
| | | // var linterid = "28973"; |
| | | // //Report.LoadDataFromURL("../../views/Baseset/xmlSRM_Web_BarCodeBillList.aspx?linterid=" + linterid, true, ""); |
| | | |
| | | // Report.Print(true); |
| | | //} |
| | | |
| | | </script> |
| | | </body> |