| | |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div style="background-color:#0085E8;"> |
| | | <span style="color: white;"><i class="layui-icon layui-icon-form"></i>å
¶ä»å
¥åºå</span> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-Kf_OtherInBill"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <!-- <li lay-id="1">æºåä¿¡æ¯</li>--> |
| | |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <select name=" HBillType" id="HBillType"> |
| | | <option value="1241">å
¥åºç³è¯·å</option> |
| | | <option value="-1">æå·¥å½å
¥</option> |
| | | </select> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:45px;padding-left:0px;">ä¾åºå</label> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input"> |
| | | <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:45px;padding-left:0px;">ä¾åºå</label> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input"> |
| | | <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | |
| | | <table class="layui-hide" id="fj-table-qd" lay-filter="fj-table-qd"></table> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="margin-bottom: 20px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver" id="Saver">æäº¤</button> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">ç¼è¾</button> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">å é¤</button> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">éåº</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px"> |
| | | <button type="button" lay-submit="" class="layui-btn" id="Saver" lay-filter="Saver">æäº¤</button> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">ç¼è¾</button> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRefresh">å·æ°</button> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">å é¤</button> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">éåº</button> |
| | | </div> |
| | | |
| | | </form> |
| | | </div> |
| | | </div> |
| | |
| | | , element = layui.element; |
| | | |
| | | //表头åå§åèµå¼ï¼æ ¹æ®ç»å½ç¨æ·è·å é»è®¤ä»åºãé¨é¨ãéªæ¶ãä¿ç®¡ãéè¶ç¨æ·ï¼ new |
| | | $("#HWHID").val(sessionStorage["HWHID"]); |
| | | $("#HWHNAME").val(sessionStorage["HWHName"]); |
| | | $("#HStockPlaceID").val(sessionStorage["HSPID"]); |
| | | $("#HStockPlaceName").val(sessionStorage["HSPName"]); |
| | | //$("#HWHID").val(sessionStorage["HWHID"]); |
| | | //$("#HWHNAME").val(sessionStorage["HWHName"]); |
| | | //$("#HStockPlaceID").val(sessionStorage["HSPID"]); |
| | | //$("#HStockPlaceName").val(sessionStorage["HSPName"]); |
| | | //$("#HSupID").val(sessionStorage["HSupID"]); |
| | | //$("#HSupName").val(sessionStorage["HSupName"]); |
| | | $("#HDeptID").val(sessionStorage["HDeptID"]); |
| | |
| | | $("#HBillNo").val(""); |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | url: GetWEBURL() + "/Web/GetMAXNumPDA", |
| | | type: "GET", |
| | | data: { "HBillType": '1203' }, |
| | | success: function (d) { |
| | |
| | | // |
| | | function Sub_ClearBill() { |
| | | //表头åå§åèµå¼ï¼æ ¹æ®ç»å½ç¨æ·è·å é»è®¤ä»åºãé¨é¨ãéªæ¶ãä¿ç®¡ãéè¶ç¨æ·ï¼ new |
| | | $("#HWHID").val(sessionStorage["HWHID"]); |
| | | $("#HWHNAME").val(sessionStorage["HWHName"]); |
| | | $("#HStockPlaceID").val(sessionStorage["HSPID"]); |
| | | $("#HStockPlaceName").val(sessionStorage["HSPName"]); |
| | | //$("#HWHID").val(sessionStorage["HWHID"]); |
| | | //$("#HWHNAME").val(sessionStorage["HWHName"]); |
| | | //$("#HStockPlaceID").val(sessionStorage["HSPID"]); |
| | | //$("#HStockPlaceName").val(sessionStorage["HSPName"]); |
| | | //$("#HSupID").val(sessionStorage["HSupID"]); |
| | | //$("#HSupName").val(sessionStorage["HSupName"]); |
| | | $("#HDeptID").val(sessionStorage["HDeptID"]); |
| | |
| | | }); |
| | | } |
| | | // |
| | | |
| | | |
| | | form.on('submit(cmdRefresh)', function () { |
| | | var sInterID = $("#HInterID").val() |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | form.on('submit(HWHID-BT)', function () {//éæ©ä»åº |
| | | layer.open({ |
| | |
| | | |
| | | form.on('submit(Cancel)', function () { |
| | | sessionStorage["SourceFlag"] = false; |
| | | parent.location.href = "../../../views/index.html" |
| | | //parent.location.href = "../../../views/index.html" |
| | | //window.close();//å
³éå½å页 |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | window.close(); |
| | | }); |
| | | }) |
| | | |
| | | //form.on('submit(cmdModify)', function () {//ç¼è¾ |
| | | // var sSubStr = table.cache['wl-table']; |
| | | // //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | // layer.open({ |
| | | // type: 2 |
| | | // , area: ['100%', '100%'] |
| | | // , title: 'æç»å表' |
| | | // , shade: 0.6 //é®ç½©éæåº¦ |
| | | // , maxmin: true //å
许å
¨å±æå°å |
| | | // , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | // , content: ['../../../views/å
Œ
±é¡µé¢/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes'] |
| | | // , resize: false |
| | | // , cancel: function () { |
| | | // //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | // } |
| | | // }) |
| | | // // } |
| | | //}); |
| | | |
| | | |
| | | //form.on('submit(cmdModify)', function () {//ç¼è¾ |
| | | // //var sSubStr = table.cache['wl-table']; |
| | | // var checkStatus = table.checkStatus('wl-table') |
| | | // , data = checkStatus.data; |
| | | // //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | // layer.open({ |
| | | // type: 2 |
| | | // , area: ['100%', '100%'] |
| | | // , title: 'æç»å表' |
| | | // , shade: 0.6 //é®ç½©éæåº¦ |
| | | // , maxmin: true //å
许å
¨å±æå°å |
| | | // , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | // , content: ['../../../views/å
Œ
±é¡µé¢/Kf_BarCodeEditDlg.html?HInterID=' + data[0].HInterID + '&HMaterID =' + data[0].HMaterID + '& HAuxPropID = ' + data[0].HAuxPropID + '& HMTONo = ' + data[0].HMTONo + '& HSourceInterID = ' + data[0].HSourceInterID + '& HSourceEntryID = ' + data[0].HSourceEntryID + '& HQty = ' + data[0].HQtyMust + '& HBillType = ' + data[0].HBillType + '', 'yes'] |
| | | // , resize: false |
| | | // , cancel: function () { |
| | | // //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | // } |
| | | // }) |
| | | // // } |
| | | //}); |
| | | |
| | | |
| | | form.on('submit(cmdModify)', function () {//ç¼è¾ |
| | | var sSubStr = table.cache['wl-table']; |
| | | //var sSubStr = table.cache['wl-table']; |
| | | var checkStatus = table.checkStatus('wl-table') |
| | | , data = checkStatus.data; |
| | | //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | layer.open({ |
| | | type: 2 |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/å
Œ
±é¡µé¢/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes'] |
| | | , content: ['../../../views/å
Œ
±é¡µé¢/Kf_BarCodeEditDlg.html?HInterID=' + data[0].HInterID + '&HMaterID =' + data[0].HMaterID + '&HBillType =' + data[0].HBillType, 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | //location.reload(); |
| | | var sInterID = $("#HInterID").val() |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | }) |
| | | // } |
| | | }); |
| | | |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | var checkStatus = table.checkStatus('wl-table') |
| | | , data = checkStatus.data; |
| | | // console.log(data); |
| | | var sInterID = $('#HInterID').val() |
| | | var sMaterID = data[0].HMaterID |
| | | var sBillType = '1203' |
| | | var sAuxPropID = data[0].HAuxPropID |
| | | //var sMTONo = data[0].HMTONo |
| | | var sMTONo = '' |
| | | var sSourceInterID = data[0].HSourceInterID |
| | | var sSourceEntryID = data[0].HSourceEntryID |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/Delete_Json", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | url: GetWEBURL() + "/OtherInBill/Delete_Json", |
| | | async: true, |
| | | data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": sBillType, }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | //var checkStatus = table.checkStatus('wl-table') |
| | | // , data = checkStatus.data; |
| | | //// console.log(data); |
| | | //var sInterID = $('#HInterID').val() |
| | | //var sMaterID = data[0].HMaterID |
| | | //var sBillType = '1203' |
| | | //var sAuxPropID = data[0].HAuxPropID |
| | | ////var sMTONo = data[0].HMTONo |
| | | //var sMTONo = '' |
| | | //var sSourceInterID = data[0].HSourceInterID |
| | | //var sSourceEntryID = data[0].HSourceEntryID |
| | | //$.ajax( |
| | | // { |
| | | // type: "Get", |
| | | // //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/Delete_Json", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | // url: GetWEBURL() + "/OtherInBill/Delete_Json", |
| | | // async: true, |
| | | // data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": sBillType, }, |
| | | // dataType: "json", |
| | | // success: function (data) { |
| | | // if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | // table.render({ |
| | | // elem: '#wl-table' |
| | | // , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' } |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | // , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | // , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | // , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | // , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | // , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | // , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | // , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | // ]] |
| | | // , height: 500 |
| | | // , done: function () { |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | // }); |
| | | // } |
| | | // else { |
| | | // layer.msg(data.Message, { icon: 2 }); |
| | | // } |
| | | // }, |
| | | // error: function (err) { |
| | | // layer.msg('é误' + err, { |
| | | // icon: 5, |
| | | // time: 20000 |
| | | // }, function () { |
| | | // //do something |
| | | // }); |
| | | // } |
| | | // }); |
| | | }); |
| | | |
| | | //form.on('submit(Saver)', function (data) {//æäº¤ |
| | | // //ç°åº¦æäº¤æé®Saver |
| | | // document.getElementById("Saver").disabled = true; |
| | | // //debugger; |
| | | // data.field.HSTOCKORGID = sessionStorage["OrganizationID"];//ç»ç» |
| | | // var sMainStr = JSON.stringify(data.field); |
| | | // //var hOrgID = sessionStorage["OrganizationID"]; |
| | | // var sMain = sMainStr; |
| | | // var sSubStr = table.cache['wl-table']; |
| | | // var sSourceType = $("#HBillType").val(); |
| | | // $.ajax( |
| | | // { |
| | | // type: "POST", |
| | | // url: GetWEBURL() + "/OtherInStockBill/set_SaveOtherInStockBill_Json", |
| | | // //url: "http://localhost:12761/OtherInStockBill/set_SaveOtherInStockBill_Json", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | // async: true, |
| | | // data: { "oMain": sMain }, |
| | | // dataType: "json", |
| | | // success: function (data) { |
| | | // if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | // layer.msg(data.Message , { icon: 1 }); |
| | | // // |
| | | // //Sub_ClearBill(); |
| | | // // |
| | | // //ç°åº¦æäº¤æé®Saver |
| | | // document.getElementById("Saver").disabled = false; |
| | | // } |
| | | // else { |
| | | // layer.msg(data.Message, { icon: 5 }); |
| | | // //ç°åº¦æäº¤æé®Saver |
| | | // document.getElementById("Saver").disabled = false; |
| | | // } |
| | | // layer.closeAll("loading"); |
| | | // }, |
| | | // error: function (err) { |
| | | // layer.msg("é误:" + err, { icon: 5 }); |
| | | // //ç°åº¦æäº¤æé®Saver |
| | | // document.getElementById("Saver").disabled = false; |
| | | // } |
| | | // }); |
| | | //}); |
| | | |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | //ç°åº¦æäº¤æé®Saver |
| | |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message + $("#HBillNo").val(), { icon: 1 }); |
| | | // |
| | | //Sub_ClearBill(); |
| | | // |
| | | //ç°åº¦æäº¤æé®Saver |
| | | document.getElementById("Saver").disabled = false; |
| | | layer.confirm("çæå
¶ä»å
¥åºå" + data.Message + $("#HBillNo").val(), { |
| | | 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 { |
| | | layer.msg(data.Message, { icon: 5 }); |
| | |
| | | $("#HStockPlaceName").val(result.data[0].HName); |
| | | $("#HWHID").val(result.data[0].HWHID); |
| | | $("#HWHNAME").val(result.data[0].HWhName); |
| | | $("#HStockPlaceID").val(result.data[0].HItemID); |
| | | element.tabChange('tab-POStockInBill', '2'); |
| | | } |
| | | else { |
| | |
| | | var sHSPID = $("#HStockPlaceID").val() |
| | | var sSourceBillNo = $("#HSourceBillNo").val() |
| | | var HOrgID = $("#HOrgID").val();//ç»ç» |
| | | var sMouldManagerCtl = 'N' |
| | | var sFIFOCtl = 'N' |
| | | var HBillType = '1203' |
| | | //夿æ¡ç æ¯å¦ä¸ºç©º new |
| | | if (sBarCode == '') { |
| | | playSound(); |
| | |
| | | } |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | sessionStorage["SourceFlag"] = false; |
| | | //sessionStorage["SourceFlag"] = false; |
| | | } |
| | | //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//é空éªè¯ |
| | | $.ajax({ |
| | |
| | | $("#HSourceBillNo").val(result.data.HSourceBillNo); |
| | | sessionStorage["SourceFlag"] = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | if (result.data.HSourceBillType == "1203") { |
| | | $("#HBillType").val("1203"); |
| | | if (result.data.HSourceBillType == "1241") { |
| | | $("#HBillType").val("1241"); |
| | | |
| | | } |
| | | else { |
| | |
| | | //$("#HSourceBillNo").val(result.data.HSourceBillNo); |
| | | sessionStorage["SourceFlag"] = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | if (result.data.HSourceBillType == "1203") { |
| | | $("#HBillType").val("1203"); |
| | | if (result.data.HSourceBillType == "1241") { |
| | | $("#HBillType").val("1241"); |
| | | |
| | | } |
| | | else if (result.data.HSourceBillType == "1601") { |
| | |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | //$("#HDeptName").val(result.data.HDeptName); |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' } |
| | | , cellMinWidth: 90 |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | //table.render({ |
| | | // elem: '#wl-table' |
| | | // , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' } |
| | | // , cellMinWidth: 90 |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | // , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | // , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | // , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | // , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | // , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | // , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | // , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | // , { field: 'HAuxPropID', title: 'è¾
å©å±æ§', width: 150 } |
| | | // , { field: 'HMTONo', title: 'MTOå·', width: 150 } |
| | | // ]] |
| | | // , height: 500 |
| | | // , done: function () { |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | //}); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_New_Json1', |
| | | type: "GET", |
| | | data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: HBillType, sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | listOption.data = result.data.list; |
| | | table.render(listOption); |
| | | listOption1.data = result.data.list2; |
| | | table.render(listOption1); |
| | | |
| | | //console.log(result.data.list2); |
| | | var count = 0; |
| | | var count1 = 0; |
| | | for (var i = 0; i < result.data.list.length; i++) { |
| | | count += result.data.list[i].HQty; |
| | | count1 += result.data.list[i].HPieceQty; |
| | | } |
| | | $("#HSumQtys").val(count); |
| | | $("#HBarCodeQtys").val(count1); |
| | | //return; |
| | | } |
| | | else { |
| | | layer.msg(result.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | |
| | | }); |
| | | } |
| | | function playSound() { |
| | | var audio = document.getElementById("cs"); |
| | | if (audio == null) |
| | | $("body").append('<audio id="cs" hidden controls> <source src = "../../video/jingbao.wav" type = "audio/ogg"> </audio >'); |
| | | var audio = document.getElementById("cs"); |
| | | audio.play(); |
| | | //var audio = document.getElementById("cs"); |
| | | //if (audio == null) |
| | | // $("body").append('<audio id="cs" hidden controls> <source src = "../../video/jingbao.wav" type = "audio/ogg"> </audio >'); |
| | | //var audio = document.getElementById("cs"); |
| | | //audio.play(); |
| | | } |
| | | function playSound1() { |
| | | var audio = document.getElementById("cs2"); |
| | | audio.play(); |
| | | //var audio = document.getElementById("cs2"); |
| | | //audio.play(); |
| | | } |
| | | |
| | | var listOption = { |
| | | elem: '#wl-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , cellMinWidth: 90 |
| | | ,limit:3000 |
| | | , totalRow: true |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'éé', width: 150, totalRow: true } |
| | | , { field: 'HAuxQty', title: 'ç®±æ°', width: 150, totalRow: true } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HPieceQty', title: 'æ¡ç æ°é', width: 150 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | } |
| | | var listOption1 = { |
| | | elem: '#mx-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , cellMinWidth: 90 |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HBarCode', title: 'æ¡ç ç¼å·', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹å·', width: 150 } |
| | | //, { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | //, { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | } |
| | | |
| | | //æ«æºå |
| | | function GetMeesageBySourceBillNo(obj) { |
| | | var HSourceBillNo = $('#HSourceBillNo').val() |
| | | var sSourceBillNo = $('#HSourceBillNo').val() |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var HBillType = '1203' |
| | | var sSourceType = $("#HBillType").val() |
| | | var sMouldManagerCtl = 'N' |
| | | var sFIFOCtl = 'N' |
| | | if (HSourceBillNo == "" || sInterID <= 0) { |
| | | layer.msg("æºåå·ä¸ºç©ºï¼æè
å
ç ä¸åå¨ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | |
| | | //url: "http://61.130.49.162:9090/WMSAPI///OtherInStockBill/set_SavePonderationBillMain_Temp_Source_Fast_Json", |
| | | url: GetWEBURL() + "/OtherInStockBill/set_SavePonderationBillMain_Temp_Source_Fast_Json", |
| | | type: "GET", |
| | | data: { "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo }, |
| | | data: { "sInterID": sInterID, "sBillNo": sBillNo, "HBillType": HBillType, "sSourceBillNo": sSourceBillNo, "sSourceType": sSourceType, "sMaker": sessionStorage["HUserName"],"sHOWNERID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //$("#HDeptID").val(result.data[0].hDeptIDField); |
| | | //$("#HDeptName").val(result.data[0].hDeptNameField); |
| | | //$("#HWHID").val(result.data[0].HWHID); |
| | | //$("#HWHName").val(result.data[0].HWHName); |
| | | element.tabChange('tab-Kf_OtherInBill', '2'); |
| | | playSound1(); |
| | | HSourceFlag = true; |
| | | sessionStorage["SourceFlag"] = true; |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | //table.render({ |
| | | // elem: '#wl-table' |
| | | // //, url: 'http://61.130.49.162:9090/WMSAPI///OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | // , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , where: { HBillID: sInterID, HBillNo: sBillNo, HBillType: HBillType, sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl } |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | // , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | // , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | // , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | // , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | // , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | // , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | // , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | // ]] |
| | | // // , data: [linterid] |
| | | // // , page: true |
| | | // , height: 500 |
| | | // , done: function () { |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | //}); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_New_Json1', |
| | | type: "GET", |
| | | data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: HBillType, sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | listOption.data = result.data.list; |
| | | table.render(listOption); |
| | | listOption1.data = result.data.list2; |
| | | table.render(listOption1); |
| | | |
| | | //console.log(result.data.list2); |
| | | var count = 0; |
| | | var count1 = 0; |
| | | for (var i = 0; i < result.data.list.length; i++) { |
| | | count += result.data.list[i].HQty; |
| | | count1 += result.data.list[i].HPieceQty; |
| | | } |
| | | $("#HSumQtys").val(count); |
| | | $("#HBarCodeQtys").val(count1); |
| | | //return; |
| | | } |
| | | else { |
| | | layer.msg(result.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | |
| | | function GetHSpValue(obj) { //è¿åè°å
¥ä»ä½ |
| | | $("#HStockPlaceName").val(obj[0].HName); |
| | | $("#HStockPlaceID").val(obj[0].HItemID); |
| | | $("#HWHNAME").val(obj[0].HWhName); |
| | | $("#HWHID").val(obj[0].HWHID); |
| | | } |
| | | //function GetHSupValue(obj) { //è¿åä¾åºå |
| | | // $("#HSupName").val(obj[0].HName); |