| | |
| | | } |
| | | return vars; |
| | | } |
| | | //è·å页é¢è·³è½¬åæ° |
| | | var params = getUrlVars(); |
| | | var tableData = params[params[0]]; |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | } else { |
| | | var HInterID = params[params[0]];//忮ID |
| | | var HMaterID = params[params[1]];//ç©æID |
| | | var HAuxPropID = params[params[2]];//è¾
å©å±æ§ |
| | | var HMTONo = params[params[3]];//计åè·è¸ªå· |
| | | var HWhID = params[params[4]];//ä»åºID |
| | | var HSPID = params[params[5]];//ä»ä½ID |
| | | var HSCWHID = params[params[6]];//è°åºä»åºID |
| | | var HSCSPID = params[params[7]];//è°åºä»ä½ID |
| | | var HBatchNo = params[params[8]];//æ¹æ¬¡ |
| | | var HSourceInterID = params[params[9]];//æºå主ID |
| | | var HSourceEntryID = params[params[10]];//æºååID |
| | | var HBillType = params[params[11]];//åæ®ç±»å |
| | | var HBarCode = params[params[12]];//æ¡ç |
| | | } |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | |
| | | |
| | | table.render({ |
| | | elem: '#mx-table' |
| | | // , url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub' |
| | | , data: [{HSonNo:'1',HBarCode:'421458026',HQty:'200',HBatchNo:'20200311',HWHID:'12',HStockPlaceID:'133',HMaterID:'66',HMTONo:'c19-078-019'}] |
| | | , cols: [[ |
| | | //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub' |
| | | ,url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub" |
| | | , where: { |
| | | "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": HWhID, "HSPID": HSPID, "HSCWHID": HSCWHID |
| | | , "HSCSPID": HSCSPID, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HBillType": HBillType,sWhere: '' |
| | | }, |
| | | cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HSonNo', title: 'åºå·', width: 100 } |
| | | , { field: 'HBarCode', title: 'æ¡å½¢ç ', width: 200 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HWHID', title: 'ä»åº', width: 100, hide: true } |
| | | , { field: 'HStockPlaceID', title: 'ä»ä½', width: 100, hide: true } |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 100,hide:true } |
| | | , { field: 'HMTONo', title: '计åè·è¸ªåå·', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | }); |
| | | }); |
| | | }); |
| | | |
| | | |
| | | //#region å é¤ |
| | | form.on('submit(cmdDel)', function () { |
| | | var checkStatus = table.checkStatus('mx-table') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HBarCode = data[0].HBarCode.toString(); |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "Kf_BarCodeEditDlg/DeltetBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": HInterID, "HBarCode": HBarCode, "HBillType": HBillType }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹æååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | }) |
| | | |
| | | |
| | | //ç¼è¾ |
| | | //form.on('submit(cmdChange)', function () {//ç¼è¾ |
| | | // var checkStatus = table.checkStatus('mx-table') |
| | | // , data = checkStatus.data; |
| | | // var sQty = data[0].HQty.toString(); |
| | | // var iQty = $('#HQty').val() |
| | | // $.ajax( |
| | | // { |
| | | // type: "Get", |
| | | // //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/Delete_Json", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | // url: GetWEBURL() + "/Kf_BarCodeEditDlg/GetCheckQtyByBarCodeBill", |
| | | // async: true, |
| | | // data: { |
| | | // "HInterID": HInterID, "HBillType": HBillType, "sBatchNo": HBatchNo, "sBarCode": HBarCode, "sSCWhID": HSCWHID |
| | | // , "sSCSPID": HSCSPID, "sAuxPropID": HAuxPropID, "sMTONo": HMTONo, "iQty": iQty |
| | | // , "HMaterID": HMaterID, "sWhID": HWhID, "sSPID": HSPID, "HSourceInterID": HSourceInterID |
| | | // , "HSourceEntryID": HSourceEntryID, "EndQty": EndQty, "sQty": sQty |
| | | // }, |
| | | // dataType: "json", |
| | | // success: function (data) { |
| | | // if (data.count == 1) { // 说æéªè¯æåäº |
| | | // table.render({ |
| | | // elem: '#mx-table' |
| | | // //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub' |
| | | // , url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub" |
| | | // , where: { |
| | | // "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": HWhID, "HSPID": HSPID, "HSCWHID": HSCWHID |
| | | // , "HSCSPID": HSCSPID, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HBillType": HBillType |
| | | // }, |
| | | // cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HSonNo', title: 'åºå·', width: 100 } |
| | | // , { field: 'HBarCode', title: 'æ¡å½¢ç ', width: 200 } |
| | | // , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | // , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | // , { field: 'HMTONo', title: '计åè·è¸ªåå·', width: 150 } |
| | | // ]] |
| | | // // , data: [linterid] |
| | | // }); |
| | | // alert("ç¼è¾æåï¼"); |
| | | // } |
| | | // else { |
| | | // layer.msg(data.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: "温馨æç¤º" }); |
| | | // } |
| | | // }); |
| | | |
| | | // layer.open({ |
| | | // type: 2 |
| | | // , area: ['100%', '100%'] |
| | | // , title: 'æç»å表' |
| | | // , shade: 0.6 //é®ç½©éæåº¦ |
| | | // , maxmin: true //å
许å
¨å±æå°å |
| | | // , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | // , content: ['../../../views/å
Œ
±é¡µé¢/Kf_BarCodeEditDlg.html?HInterID=' + HInterID + '&HMaterID = ' + HMaterID + '&HAuxPropID = ' + HAuxPropID + '& HMTONo = ' + HMTONo + '&HWhID = ' + HWhID + '&HSPID = ' + HSPID + '&HSCWHID = ' + HSCWHID + '&HSCSPID= ' + HSCSPID + '&HBatchNo= ' + HBatchNo + '&HSourceInterID= ' + HSourceInterID + '&HSourceEntryID= ' + HSourceEntryID + '&HBillType= ' + HBillType + '&HBarCode= ' + HBarCode + '' |
| | | // , 'yes'] |
| | | // , resize: false |
| | | // , cancel: function () { |
| | | // //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | // } |
| | | // }) |
| | | // } else { |
| | | // layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | // } |
| | | }) |
| | | |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |