| | |
| | | <div class="layui-form-item" style="padding:15px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:90px;padding-left:0px;">æºåå·</label> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æºåå·</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HSourceBillNo" id="HSourceBillNo" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:90px;padding-left:0px;">å®ç©æ¡ç </label> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">å®ç©æ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HBarCode" id="HBarCode" autocomplete="off" class="layui-input"> |
| | |
| | | if (sessionStorage.login != "login") { |
| | | layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | }, function () { window.location.href = "user/login.html"; }); |
| | | }, function () { window.location.href = "../../user/login.html"; }); |
| | | } |
| | | |
| | | //åå§åºæ¬ä¿¡æ¯èµå¼ |
| | |
| | | , cols: [[ |
| | | { type: 'numbers', title: 'åºå·' } |
| | | , { field: 'HIsStatus', title: 'æ¯å¦æ«ç ' } |
| | | , { field: 'HSourceInterID', title: 'æºåID', hide: true } |
| | | , { field: 'HSourceBillNo', title: 'æºåå·', width: 110 } |
| | | , { field: 'HMTONo', title: 'æ¹å·', width: 180 } |
| | | , { field: 'HSPID', title: 'ä»ä½ID', hide: true } |
| | | , { field: 'HSPName', title: 'ä»ä½' } |
| | | , { field: 'HStatus', title: 'å¨åºç¶æ', width: 165 } |
| | | , { field: 'HWhID', title: 'ä»åºID', hide: true } |
| | | , { field: 'HWhName', title: 'ä»åº' } |
| | | , { field: 'HSPID', title: 'ä»ä½ID', hide: true } |
| | | , { field: 'HSPName', title: 'ä»ä½' } |
| | | , { field: 'HSourceInterID', title: 'æºåID', hide: true } |
| | | , { field: 'HSourceBillNo', title: 'æºåå·', width: 110 } |
| | | , { field: 'HGroupID', title: 'çç»ID', hide: true } |
| | | , { field: 'HGroup', title: 'çç»' } |
| | | , { field: 'HSourceID', title: 'çäº§èµæºID', hide: true } |
| | |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·' } |
| | | , { field: '峿¶åºå', title: '峿¶åºå' } |
| | | , { field: 'HBarCode', title: 'æ¡ç ç¼å·', hide: true } |
| | | , { field: 'HInterID', title: '忮ID' } |
| | | , { field: 'HInterID', title: '忮ID', hide: true } |
| | | , { field: 'HBillNo', title: 'åæ®å·' } |
| | | , { field: 'HMakerID', title: 'å¶å人ID' } |
| | | , { field: 'HMakerID', title: 'å¶å人ID', hide: true } |
| | | , { field: 'HMaker', title: 'å¶å人' } |
| | | , { field: 'HBillType', title: 'HBillType' } |
| | | , { field: 'HBillType', title: 'HBillType', hide: true } |
| | | ]] |
| | | , text: { |
| | | none: 'ææ ç¸å
³æ°æ®ï¼è¯·å
æ«ææºåå·ï¼' //é»è®¤ï¼æ æ°æ®ã注ï¼è¯¥å±æ§ä¸º layui 2.2.5 å¼å§æ°å¢ |
| | |
| | | layer.close(index); |
| | | $('#HBarCode').val(""); |
| | | layer.msg("该å®ç©å·²æ«ç ï¼è¯·å¿é夿«ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } else if (sSubStr[i].HStatus != null && sSubStr[i].HStatus != "" && sSubStr[i].HStatus != "å¨åº") { |
| | | layer.close(index); |
| | | layer.msg("该å®ç©å¨è£åä¸ï¼ä¸å
许æ«ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } else { |
| | | } |
| | | //else if (sSubStr[i].HStatus != null && sSubStr[i].HStatus != "" && sSubStr[i].HStatus != "å¨åº") |
| | | //{ |
| | | // layer.close(index); |
| | | // layer.msg("该å®ç©å¨" + sSubStr[i].HSource+"è£åä¸ï¼ä¸å
许æ«ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | //} |
| | | else |
| | | { |
| | | sSubStr[i].HIsStatus = "æ¯"; |
| | | sSubStr[i].HSourceID = $("#HSourceID").val(); |
| | | sSubStr[i].HSource = $("#HSource").val(); |
| | |
| | | async: true, |
| | | data: { "oMain": sSubStr }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | layer.confirm(data.Message, { |
| | | icon: 1, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['æ°å¢'], |
| | | btn2: function () { |
| | | //parent.layui.admin.events.closeThisTabs();å
³éé¡µç¾ |
| | | //window.close();//å
³é页é¢ï¼æµè§å¨ææï¼PDAæ æ |
| | | parent.location.href = "../../../views/index.html" |
| | | }//å
³é |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.confirm(result.Message, { |
| | | icon: 1, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['æ°å¢'], |
| | | btn2: function () { |
| | | //parent.layui.admin.events.closeThisTabs();å
³éé¡µç¾ |
| | | //window.close();//å
³é页é¢ï¼æµè§å¨ææï¼PDAæ æ |
| | | parent.location.href = "../../../views/index.html" |
| | | }//å
³é |
| | | }, function () { window.location.reload(); });//æ°å¢ |
| | | } |
| | | else { |