| | |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBillList"> |
| | | <div class="layui-tab" lay-filter="tab-SellOutBillList"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1">ç¼åå表</li> |
| | | <li lay-id="2">å·²ä¸ä¼ å表</li> |
| | | <li lay-id="3">å·²ä¸ä¼ æ¥è¯¢</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs12"> |
| | | <table class="layui-hide" id="yd-table" lay-filter="yd-table"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æºåå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HSourceBillNo" id="HSourceBillNo"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdQuery">æ¥è¯¢</button> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs12"> |
| | | <table class="layui-hide" id="sy-table" lay-filter="sy-table"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | , element = layui.element; |
| | | var option = {}; |
| | | //æ¸
空çé¢ new |
| | | |
| | | var sBillType = '1205' |
| | | //卿å è½½æºåç±»åå表 new |
| | | |
| | | //å è½½æºåç±»å |
| | |
| | | //读ååæ®å表 |
| | | // |
| | | |
| | | form.on('submit(Cancel)', function () { |
| | | parent.location.href = "../../../views/index.html" |
| | | form.on('submit(cmdCancel)', function () { |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | parent.location.href = "../../../views/index_Mobile.html" |
| | | }); |
| | | //window.close();//å
³éå½å页 |
| | | }) |
| | | |
| | | //ç¼è¾ |
| | | form.on('submit(cmdModify)', function () { |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | //ajaxLabelData = data; |
| | | //layer.alert(rows); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'éå®åºåºå' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../颿åè´§/éå®åºåº/Kf_SellOutBill_Fast.html?linterid=' + data[0].HInterID, 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | $(".layui-btn").removeClass("layui-btn-disabled"); |
| | | , data = checkStatus.data; |
| | | |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/TempList_Modify_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HInterID": data[0].HInterID, "HBillNo": data[0].HBillNo, "HBillType": sBillType }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'éå®åºåºå' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../颿åè´§/éå®åºåº/Kf_SellOutBill_Fast.html?OperationType=2&HInterID=' + data[0].HInterID, 'yes'] |
| | | //, content: ['../../颿åè´§/éå®åºåº/Kf_SellOutBill_Fast.html?linterid=' + data[0].HInterID, 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | $(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg("é误" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }) |
| | | }); |
| | | }); |
| | | |
| | | form.on('submit(cmdRefresh)', function () {//å·æ° |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 100 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }), |
| | | table.render(option); |
| | | table.render({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, HMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , page: true // å¼å¯å页 |
| | | , limits: [20, 40, 80, 100] |
| | | , limit: 20 |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 100 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HOrgID', title: 'ç»ç»', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HOrgID', title: 'ç»ç»', width: 120 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | |
| | | |
| | | //æ¤éåè½ |
| | | form.on('submit(cmdRescind)', function () { |
| | | var checkStatus = table.checkStatus('yd-table') |
| | | , data = checkStatus.data; |
| | | var sInterID = data[0].HInterID |
| | | var sBillNo = data[0].HBillNo |
| | | var checkStatus = table.checkStatus('yd-table'); |
| | | var checkStatus2 = table.checkStatus('sy-table'); |
| | | var checkStatus3 = table.checkStatus('dj-table'); |
| | | var data = ""; |
| | | if (checkStatus.data.length != 0) { |
| | | data = checkStatus.data; |
| | | } else if (checkStatus2.data.length != 0) { |
| | | data = checkStatus2.data; |
| | | } else if (checkStatus3.data.length != 0) { |
| | | data = checkStatus3.data; |
| | | }else { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | var sInterID = data[0].HInterID == 'undefined' ? data[0].åæ®å
ç : data[0].HInterID; |
| | | var sBillNo = data[0].HBillNo == 'undefined' ? data[0].åæ®å· : data[0].HBillNo; |
| | | var sBillType = '1205' |
| | | $.ajax( |
| | | { |
| | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | //å é¤ |
| | | form.on('submit(cmdDelete)', function () { |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | var sInterID = data[0].HInterID |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductInBillList/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº, |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | if (checkStatus.data.length === 1) { |
| | | var sInterID = data[0].HInterID == 'undefined' ? data[0].åæ®å
ç : data[0].HInterID; |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductInBillList/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº, |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | |
| | | }); |
| | | //æ¥è¯¢ |
| | | //form.on('submit(cmdQuery)', function () { |
| | | // var HBillNo = $("#HBillNo").val(); |
| | | // var HSourceBillNo = $("#HSourceBillNo").val(); |
| | | // //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | // $.ajax({ |
| | | // url: GetWEBURL() + '/Gy_Mould/list1', |
| | | // type: "GET", |
| | | // data: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo }, |
| | | // success: function (data1) { |
| | | // if (data1.count == 1) { |
| | | // option.data = data1.data; |
| | | // table.render(option); |
| | | // layer.close(index); |
| | | // } else { |
| | | // layer.close(index); |
| | | // layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | // } |
| | | // }, error: function () { |
| | | // layer.close(index); |
| | | // layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | // } |
| | | // }); |
| | | //}); |
| | | |
| | | form.on('submit(cmdQuery)', function () { |
| | | var HBillNo = $("#HBillNo").val(); |
| | | var HSourceBillNo = $("#HSourceBillNo").val();; |
| | | |
| | | |
| | | table.render({ |
| | | elem: '#sy-table' |
| | | , url: GetWEBURL() + '/ProductInBillList/list1' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HOrgID', title: 'ç»ç»', width: 120 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | |
| | | |
| | | var sBillType = '1205' |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 100 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | , { field: 'åæ®å
ç ', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 150 } |
| | | , { field: 'å¶å人', title: 'å¶å人', width: 120 } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 100 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 150 } |
| | | , { field: '红èå', title: '红èå', width: 120 } |
| | | , { field: 'æºåç±»å', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | |
| | | } |
| | | }) |
| | | |
| | | |
| | | |
| | | //å·²ä¸ä¼ å表 |
| | | table.render({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, HMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , page: true // å¼å¯å页 |
| | | , limits: [20, 40, 80, 100] |
| | | , limit: 20 |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | |
| | | //å·²ä¸ä¼ æ¥è¯¢ |
| | | table.render({ |
| | | elem: '#sy-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HOrgID', title: 'ç»ç»', width: 120 } |
| | | ]] |
| | | , height: 500 |
| | | }) |
| | | |
| | | //å·æ°æç»é¡µç¾ |
| | | table.render({ |
| | | elem: '#mx-table' |