| | |
| | | |
| | | //æ«æ¡ç |
| | | $('#HBarCode').on('keydown', function (event) { //æ«æ¡ç |
| | | var sOldBarCode = $('#HBarCode').val() |
| | | var HDeleteFlag = sOldBarCode.substring(0, 1); |
| | | var sBarCode = sOldBarCode.slice(1); |
| | | |
| | | var sSubStr = table.cache['wl-table']; |
| | | var sBarCode = $('#HBarCode').val() |
| | | //var sBarCode = $('#HBarCode').val() |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var sQty = $("#HQty").val() |
| | |
| | | var SCSPID = $("#HOutStockPlaceID").val()//è°åºä»ä½ |
| | | var HMaker = $("#HMaker").val();//å¶å人 |
| | | var HOrgID = $("#HOrgID").val();//ç»ç» |
| | | var sBillType = '1207' |
| | | if (sQty == "") { |
| | | sQty = 0; |
| | | } |
| | | if (event.keyCode == 13) { |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | if (sQty != "") { |
| | | $('#HQty').val(""); |
| | | } |
| | | if ($("#HWHNAME").val() == '') { |
| | | layer.msg("è°å
¥ä»åºæ²¡æéæ©!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | //if ($("#HWHID").val() == $("#HSCWHID").val() && $("#HStockPlaceID").val() == $("#HOutStockPlaceID").val()) { |
| | | // layer.msg("è°å
¥ä»åºãä»ä½ä¸è½åè°åºä»åºãä»ä½é½ç¸å!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //if ($("#HSCWHNAME").val() == '') { |
| | | // layer.msg("è°åºä»åºæ²¡æéæ©!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | if ($("#HBillNo").val() == '') { |
| | | layer.msg("é误çåæ®å·!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if ($("#HInterID").val() == '') { |
| | | layer.msg("é误çå
ç !", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/MoveStockBill/get_InfoByBarCode_Source_Json", |
| | | type: "GET", |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sQty": sQty, "HWHID": HWHID, "HSPID": HSPID, "SCWhID": SCWhID, "SCSPID": SCSPID, "HMaker": HMaker, "HOrgID": HOrgID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | element.tabChange('tab-MoveStockBill', '3'); |
| | | //$("#HWHNAME").attr("readOnly", "true");//è°å
¥ä»åºä¸å¯å |
| | | //$("#HWHID-BT").attr("disabled", "true"); |
| | | //$("#HStockPlaceName").attr("readOnly", "true");//è°å
¥ä»ä½ä¸å¯å |
| | | //$("#HSpID-BT").attr("disabled", "true"); |
| | | //$("#HSCWHNAME").attr("readOnly", "true");//è°åºä»åºä¸å¯å |
| | | //$("#HSCWHID-BT").attr("disabled", "true"); |
| | | //$("#HOutStockPlaceName").attr("readOnly", "true");//è°å
¥ä»ä½ä¸å¯å |
| | | //$("#HOSpID-BT").attr("disabled", "true"); |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio', totalRowText: 'å计' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true } |
| | | , { field: 'ä»¶æ°', 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: 'HMaterID', title: 'ç©æå
ç ', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: '', width: 150, hide: true } |
| | | , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 150, hide: true } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 70 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | //, height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | var sSubStr = table.cache['wl-table']; |
| | | } |
| | | else { |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | if (HDeleteFlag == "*") { |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | //, |
| | | //error: function (XMLHttpRequest, textStatus, errorThrown) { |
| | | // alert("请æ±å¯¹è±¡XMLHttpRequest: " + XMLHttpRequest); |
| | | // alert("é误类åtextStatus: " + textStatus); |
| | | // alert("å¼å¸¸å¯¹è±¡errorThrown: " + errorThrown); |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductIn/Delete_Json", |
| | | async: true, |
| | | data: { "HInterID": sInterID, "HBillNo": sBillNo, "HBillType": sBillType, "HBarCode": sBarCode }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1207', 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 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 70 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | 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: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | var sBarCode = $('#HBarCode').val() |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | if (sQty != "") { |
| | | $('#HQty').val(""); |
| | | } |
| | | if ($("#HWHNAME").val() == '') { |
| | | layer.msg("è°å
¥ä»åºæ²¡æéæ©!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | //if ($("#HWHID").val() == $("#HSCWHID").val() && $("#HStockPlaceID").val() == $("#HOutStockPlaceID").val()) { |
| | | // layer.msg("è°å
¥ä»åºãä»ä½ä¸è½åè°åºä»åºãä»ä½é½ç¸å!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | }); |
| | | //if ($("#HSCWHNAME").val() == '') { |
| | | // layer.msg("è°åºä»åºæ²¡æéæ©!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | if ($("#HBillNo").val() == '') { |
| | | layer.msg("é误çåæ®å·!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if ($("#HInterID").val() == '') { |
| | | layer.msg("é误çå
ç !", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/MoveStockBill/get_InfoByBarCode_Source_Json", |
| | | type: "GET", |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sQty": sQty, "HWHID": HWHID, "HSPID": HSPID, "SCWhID": SCWhID, "SCSPID": SCSPID, "HMaker": HMaker, "HOrgID": HOrgID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | element.tabChange('tab-MoveStockBill', '3'); |
| | | //$("#HWHNAME").attr("readOnly", "true");//è°å
¥ä»åºä¸å¯å |
| | | //$("#HWHID-BT").attr("disabled", "true"); |
| | | //$("#HStockPlaceName").attr("readOnly", "true");//è°å
¥ä»ä½ä¸å¯å |
| | | //$("#HSpID-BT").attr("disabled", "true"); |
| | | //$("#HSCWHNAME").attr("readOnly", "true");//è°åºä»åºä¸å¯å |
| | | //$("#HSCWHID-BT").attr("disabled", "true"); |
| | | //$("#HOutStockPlaceName").attr("readOnly", "true");//è°å
¥ä»ä½ä¸å¯å |
| | | //$("#HOSpID-BT").attr("disabled", "true"); |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio', totalRowText: 'å计' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true } |
| | | , { field: 'ä»¶æ°', 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: 'HMaterID', title: 'ç©æå
ç ', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: '', width: 150, hide: true } |
| | | , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 150, hide: true } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 70 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | //, height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | var sSubStr = table.cache['wl-table']; |
| | | } |
| | | else { |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | //, |
| | | //error: function (XMLHttpRequest, textStatus, errorThrown) { |
| | | // alert("请æ±å¯¹è±¡XMLHttpRequest: " + XMLHttpRequest); |
| | | // alert("é误类åtextStatus: " + textStatus); |
| | | // alert("å¼å¸¸å¯¹è±¡errorThrown: " + errorThrown); |
| | | //} |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | |
| | |
| | | return vars; |
| | | } |
| | | //è·å页é¢è·³è½¬åæ° |
| | | var params = get_UrlVars(); |
| | | var params = getUrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | } else { |
| | |
| | | ,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 |
| | | , "HSCSPID": HSCSPID, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HBillType": HBillType,sWhere: '' |
| | | }, |
| | | cols: [[ |
| | | { type: 'radio' } |
| | |
| | | |
| | | |
| | | //#region å é¤ |
| | | function set_DeleteBill() { |
| | | form.on('submit(cmdDel)', function () { |
| | | var checkStatus = table.checkStatus('mx-table') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | |
| | | 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('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | }) |
| | | |
| | | |
| | | }); |
| | | //ç¼è¾ |
| | | //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> |
| | |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRefresh">å·æ°</button> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRescind">æ¤é</button> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">éåº</button> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | |
| | | |
| | | |
| | | |
| | | 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({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, HMaker: 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: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HOrgID', title: 'ç»ç»', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | |
| | | //æ¤éåè½ |
| | | 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 sBillType = '1211' |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Web/Rescind_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType }, |
| | | 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 |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | // console.log(data); |
| | | // var sInterID = $('#HInterID').val() |
| | | , data = checkStatus.data; |
| | | var sInterID = data[0].HInterID |
| | | //var sMaterID = data[0].HMaterID |
| | | //var sBillType = $('#HBillType').val() |
| | | //var sAuxPropID = data[0].HAuxPropID |
| | | ////var sMTONo = data[0].HMTONo |
| | | //var sMTONo = 0 |
| | | //var sSourceInterID = data[0].HSourceInterID |
| | | //var sSourceEntryID = data[0].HSourceEntryID |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Web/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //layer.msg(data.Message, { icon: 1 }); |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | , cellMinWidth: 80 |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: '1211', sWhere: '' } |
| | | , 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 |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | { |
| | | 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 |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | |
| | | var sBillType = '1211' |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | ,toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType,sWhere:''} |
| | | , 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({ |
| | | 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({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, HMaker: 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: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HOrgID', title: 'ç»ç»', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | //å·æ°æç»é¡µç¾ |
| | | table.render({ |
| | | elem: '#mx-table' |
| | |
| | | |
| | | //æ«æ¡ç -ç´æ¥è°webservice |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | var sBarCode = $('#HBarCode').val()//æ¡ç |
| | | var sOldBarCode = $('#HBarCode').val() |
| | | var HDeleteFlag = sOldBarCode.substring(0, 1); |
| | | var sBarCode = sOldBarCode.slice(1); |
| | | |
| | | |
| | | //var sBarCode = $('#HBarCode').val()//æ¡ç |
| | | var sInterID = $("#HInterID").val()//åæ®å·ID |
| | | var sBillType = '1205' |
| | | var sBillNo = $("#HBillNo").val()//åæ®å· |
| | |
| | | //var SourceFlag = sessionStorage["SourceFlag"]; |
| | | var sSourceBillNo = $("#HSourceBillNo").val();//æºåå· |
| | | var sHBillType = $("#HBillType").val() //æºåç±»å-åè´§éç¥åï¼1402ï¼éå®è®¢å1401 |
| | | |
| | | var sBillType = '1205' |
| | | if (sQty == "") { |
| | | sQty = 0; |
| | | } |
| | | if (event.keyCode == 13) { |
| | | if (sBarCode == '') { |
| | | layer.msg("æ¡ç 为空ï¼ä¸è½æ«æï¼", { icon: 5, btn: ['ç¡®å®'], time: 100000, offset: 't' }); |
| | | return false; |
| | | } |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/SellOut/get_CheckTypeByBarCode_Json", |
| | | type: "GET", |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "HBillType": sBillType, "sBillNo": sBillNo, "sMaker": sMaker, "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | if (result.data.HBarType == 'ä»åºæ¡ç ') { |
| | | $("#HWHNAME").val(result.data.HWhName); |
| | | $("#HWHID").val(result.data.HWhID); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HNote").val(";ä¸é®æ«ç ä»åºæ¡ç "); |
| | | element.tabChange('tab-Kf_SellOutBill', '3'); //è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'ä»ä½æ¡ç ') { |
| | | $("#HStockPlaceName").val(result.data.HSPName); |
| | | $("#HStockPlaceID").val(result.data.HSPID); |
| | | $("#HWHNAME").val(result.data.HWhName); |
| | | $("#HWHID").val(result.data.HWhID); |
| | | $("#HNote").val(";ä¸é®æ«ç ä»ä½æ¡ç "); |
| | | element.tabChange('tab-Kf_SellOutBill', '3');//è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'é¨é¨æ¡ç ') { |
| | | $("#HDeptName").val(result.data.HDeptName); |
| | | $("#HDeptID").val(result.data.HDeptID); |
| | | $("#HNote").val(";ä¸é®æ«ç é¨é¨æ¡ç "); |
| | | element.tabChange('tab-Kf_SellOutBill', '3');//è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'æºåæ¡ç ') { |
| | | //$("#HSupName").val(result.data.HSupName); |
| | | $("#HSupID").val(result.data.HSupID); |
| | | //$("#HDeptName").val(result.data.HDeptName); |
| | | $("#HDeptID").val(result.data.HDeptID); |
| | | $("#HSourceBillNo").val(result.data.HSourceBillNo); |
| | | HSourceFlag = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | if (result.data.HSourceBillType == "1402") { |
| | | $("#HBillType").val("1402"); |
| | | |
| | | } |
| | | else if (result.data.HSourceBillType == "1401") { |
| | | $("#HBillType").val("1401"); |
| | | if (HDeleteFlag == "*") { |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductIn/Delete_Json", |
| | | async: true, |
| | | data: { "HInterID": sInterID, "HBillNo": sBillNo, "HBillType": sBillType, "HBarCode": sBarCode }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | // , url: 'http://61.130.49.162:9090/WMSAPI///OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1205', 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 } |
| | | , { field: 'HInterID', title: '忮ID', width: 150, hide: true } |
| | | , { field: 'HBilltype', title: 'åæ®ç±»å', width: 150, hide: true } |
| | | , { field: 'Hbarcode', title: 'æ¡ç ç¼å·', width: 150, hide: true } |
| | | , { field: 'HSCWHID', title: 'è°åºä»åºID', width: 150, hide: true } |
| | | , { field: 'HSCSPID', title: 'è°åºä»ä½ID', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§ID', width: 150, hide: true } |
| | | , { field: 'HMTONo', title: 'MTOå·', width: 150, hide: true } |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 150, hide: true } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | //, height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | else { |
| | | $("#HBillType").val("æå·¥å½å
¥"); |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | $("#HNote").val(";ä¸é®æ«ç æºåæ¡ç "); |
| | | element.tabChange('tab-Kf_SellOutBill', '3'); |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | else { |
| | | if (HSourceFlag == "true") { |
| | | element.tabChange('tab-Kf_SellOutBill', '3'); |
| | | }); |
| | | } |
| | | else { |
| | | var sBarCode = $('#HBarCode').val() |
| | | if (sBarCode == '') { |
| | | layer.msg("æ¡ç 为空ï¼ä¸è½æ«æï¼", { icon: 5, btn: ['ç¡®å®'], time: 100000, offset: 't' }); |
| | | return false; |
| | | } |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/SellOut/get_CheckTypeByBarCode_Json", |
| | | type: "GET", |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "HBillType": sBillType, "sBillNo": sBillNo, "sMaker": sMaker, "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | if (result.data.HBarType == 'ä»åºæ¡ç ') { |
| | | $("#HWHNAME").val(result.data.HWhName); |
| | | $("#HWHID").val(result.data.HWhID); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HNote").val(";ä¸é®æ«ç ä»åºæ¡ç "); |
| | | element.tabChange('tab-Kf_SellOutBill', '3'); //è·³è½¬é¡µç¾ |
| | | } |
| | | else { |
| | | else if (result.data.HBarType == 'ä»ä½æ¡ç ') { |
| | | $("#HStockPlaceName").val(result.data.HSPName); |
| | | $("#HStockPlaceID").val(result.data.HSPID); |
| | | $("#HWHNAME").val(result.data.HWhName); |
| | | $("#HWHID").val(result.data.HWhID); |
| | | $("#HNote").val(";ä¸é®æ«ç ä»ä½æ¡ç "); |
| | | element.tabChange('tab-Kf_SellOutBill', '3');//è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'é¨é¨æ¡ç ') { |
| | | $("#HDeptName").val(result.data.HDeptName); |
| | | $("#HDeptID").val(result.data.HDeptID); |
| | | $("#HNote").val(";ä¸é®æ«ç é¨é¨æ¡ç "); |
| | | element.tabChange('tab-Kf_SellOutBill', '3');//è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'æºåæ¡ç ') { |
| | | //$("#HSupName").val(result.data.HSupName); |
| | | $("#HSupID").val(result.data.HSupID); |
| | | //$("#HDeptName").val(result.data.HDeptName); |
| | |
| | | else if (result.data.HSourceBillType == "1401") { |
| | | $("#HBillType").val("1401"); |
| | | } |
| | | //else if (result.data.HSourceBillType == "1601") { |
| | | // $("#HBillType").val("1601"); |
| | | //} |
| | | $("#HNote").val(";ç©ææ¡ç "); |
| | | else { |
| | | $("#HBillType").val("æå·¥å½å
¥"); |
| | | } |
| | | $("#HNote").val(";ä¸é®æ«ç æºåæ¡ç "); |
| | | element.tabChange('tab-Kf_SellOutBill', '3'); |
| | | } |
| | | else { |
| | | if (HSourceFlag == "true") { |
| | | element.tabChange('tab-Kf_SellOutBill', '3'); |
| | | } |
| | | else { |
| | | //$("#HSupName").val(result.data.HSupName); |
| | | $("#HSupID").val(result.data.HSupID); |
| | | //$("#HDeptName").val(result.data.HDeptName); |
| | | $("#HDeptID").val(result.data.HDeptID); |
| | | $("#HSourceBillNo").val(result.data.HSourceBillNo); |
| | | HSourceFlag = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | if (result.data.HSourceBillType == "1402") { |
| | | $("#HBillType").val("1402"); |
| | | |
| | | } |
| | | else if (result.data.HSourceBillType == "1401") { |
| | | $("#HBillType").val("1401"); |
| | | } |
| | | //else if (result.data.HSourceBillType == "1601") { |
| | | // $("#HBillType").val("1601"); |
| | | //} |
| | | $("#HNote").val(";ç©ææ¡ç "); |
| | | element.tabChange('tab-Kf_SellOutBill', '3'); |
| | | } |
| | | } |
| | | //$("#HSupID").val(result.data.HSupID); |
| | | //$("#HSupName").val(result.data.HSupName); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | //$("#HDeptName").val(result.data.HDeptName); |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | // , url: 'http://61.130.49.162:9090/WMSAPI///OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1205', 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 } |
| | | , { field: 'HInterID', title: '忮ID', width: 150, hide: true } |
| | | , { field: 'HBilltype', title: 'åæ®ç±»å', width: 150, hide: true } |
| | | , { field: 'Hbarcode', title: 'æ¡ç ç¼å·', width: 150, hide: true } |
| | | , { field: 'HSCWHID', title: 'è°åºä»åºID', width: 150, hide: true } |
| | | , { field: 'HSCSPID', title: 'è°åºä»ä½ID', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§ID', width: 150, hide: true } |
| | | , { field: 'HMTONo', title: 'MTOå·', width: 150, hide: true } |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 150, hide: true } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | //, height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | //$("#HSupID").val(result.data.HSupID); |
| | | //$("#HSupName").val(result.data.HSupName); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | //$("#HDeptName").val(result.data.HDeptName); |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | // , url: 'http://61.130.49.162:9090/WMSAPI///OtherInStockBill/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1205', 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 } |
| | | , { field: 'HInterID', title: '忮ID', width: 150, hide: true } |
| | | , { field: 'HBilltype', title: 'åæ®ç±»å', width: 150, hide: true } |
| | | , { field: 'Hbarcode', title: 'æ¡ç ç¼å·', width: 150, hide: true } |
| | | , { field: 'HSCWHID', title: 'è°åºä»åºID', width: 150, hide: true } |
| | | , { field: 'HSCSPID', title: 'è°åºä»ä½ID', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§ID', width: 150, hide: true } |
| | | , { field: 'HMTONo', title: 'MTOå·', width: 150, hide: true } |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 150, hide: true } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | //, height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | else { |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/MateOutBill/get_CheckTypeByBarCode_Json", |
| | | type: "GET", |
| | | data: { "sCode": '1001456360', "sInterID": 122554, "HBillType": '1204', "sBillNo": 'MATO00000055', "sMaker": sessionStorage["HUserName"], "WhID": 484080, "SPID": 0, "sQty": 0, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": 'PPBOM202112226', "sSourceType": '3720', "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | //data: { "sCode": sBarCode, "sInterID": sInterID, "HBillType": sBillType, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | //data: { "sCode": '1001456360', "sInterID": 122554, "HBillType": '1204', "sBillNo": 'MATO00000055', "sMaker": sessionStorage["HUserName"], "WhID": 484080, "SPID": 0, "sQty": 0, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": 'PPBOM202112226', "sSourceType": '3720', "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "HBillType": sBillType, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | if (result.data.HBarType == 'ä»åºæ¡ç ') { |
| | |
| | | }); |
| | | |
| | | //æ«æ¡ç |
| | | $('#HBarCode').on('keydown', function (event) { //æ«æ¡ç |
| | | var sSubStr = table.cache['wl-table']; |
| | | var sBarCode = $('#HBarCode').val() |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var sQty = $("#HQty").val() |
| | | var sHBillType = $("#HBillType").val() //æºåç±»å |
| | | var sBillType = '1202' |
| | | var sHWHID = $("#HWHID").val() |
| | | var sHSPID = $("#HStockPlaceID").val() |
| | | var sSourceBillNo = $("#HSourceBillNo").val() |
| | | //var Flag = sessionStorage["SourceFlag"]; |
| | | if (sQty == "") { |
| | | sQty = 0; |
| | | } |
| | | if (event.keyCode == 13) { |
| | | //夿æ¡ç æ¯å¦ä¸ºç©º new |
| | | if (sBarCode == '') { |
| | | layer.msg("æ¡ç 为空ï¼ä¸è½æ«æï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | if (sQty != "") { |
| | | $('#HQty').val(""); |
| | | } |
| | | if (sHWHID == "184154") |
| | | $('#HBarCode').on('keydown', function (event) { //æ«æ¡ç |
| | | var sOldBarCode = $('#HBarCode').val() |
| | | var HDeleteFlag = sOldBarCode.substring(0, 1); |
| | | var sBarCode = sOldBarCode.slice(1); |
| | | var sSubStr = table.cache['wl-table']; |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var sQty = $("#HQty").val() |
| | | var sHBillType = $("#HBillType").val() //æºåç±»å |
| | | var sBillType = '1202' |
| | | var sHWHID = $("#HWHID").val() |
| | | var sHSPID = $("#HStockPlaceID").val() |
| | | var sSourceBillNo = $("#HSourceBillNo").val() |
| | | if (event.keyCode == 13) { |
| | | if (HDeleteFlag == "*") |
| | | { |
| | | if (sHSPID == "0") |
| | | { |
| | | layer.msg("ä»ä½ä¸ºç©ºï¼è¯·éæ©ä»ä½ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | } |
| | | //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//é空éªè¯ |
| | | $.ajax({ |
| | | //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/get_CheckTypeByBarCode_Json", |
| | | url: GetWEBURL() + "/ProductIn/get_CheckTypeByBarCode_Json", |
| | | type: "GET", |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | //debugger; |
| | | if (result.count == 1) { |
| | | if (result.data.HBarType == 'ä»åºæ¡ç ') { |
| | | $("#HWHNAME").val(result.data.HWhName); |
| | | $("#HWHID").val(result.data.HWhID); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HNote").val(";ä¸é®æ«ç ä»åºæ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '2'); //è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'ä»ä½æ¡ç ') { |
| | | $("#HStockPlaceName").val(result.data.HSPName); |
| | | $("#HStockPlaceID").val(result.data.HSPID); |
| | | $("#HWHNAME").val(result.data.HWhName); |
| | | $("#HWHID").val(result.data.HWhID); |
| | | $("#HNote").val(";ä¸é®æ«ç ä»ä½æ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '2');//è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'é¨é¨æ¡ç ') { |
| | | $("#HDeptName").val(result.data.HDeptName); |
| | | $("#HDeptID").val(result.data.HDeptID); |
| | | $("#HNote").val(";ä¸é®æ«ç é¨é¨æ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '2');//è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'æºåæ¡ç ') { |
| | | $("#HSupName").val(result.data.HSupName); |
| | | $("#HSupID").val(result.data.HSupID); |
| | | $("#HDeptName").val(result.data.HDeptName); |
| | | $("#HDeptID").val(result.data.HDeptID); |
| | | $("#HSourceBillNo").val(result.data.HSourceBillNo); |
| | | HSourceFlag = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | //if (result.data.HSourceBillType == "3711") { |
| | | // $("#HBillType").val("3711"); |
| | | //} |
| | | //else { |
| | | // $("#HBillType").val("-1"); |
| | | //} |
| | | $("#HNote").val(";ä¸é®æ«ç æºåæ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '3'); |
| | | } |
| | | else { |
| | | if (HSourceFlag == "true") { |
| | | element.tabChange('tab-ProductlnBill', '3'); |
| | | var sBarCode = sOldBarCode.slice(1); |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductIn/Delete_Json", |
| | | async: true, |
| | | data: { "HInterID": sInterID, "HBillNo": sBillNo, "HBillType": sBillType, "HBarCode": sBarCode}, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1202', 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 () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | else { |
| | | $("#HSupName").val(result.data.HSupName); |
| | | $("#HSupID").val(result.data.HSupID); |
| | | //$("#HDeptName").val(result.data.HDept); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | $("#HSourceBillNo").val(result.data.HSourceBillNo); |
| | | HSourceFlag = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | //if (result.data.HSourceBillType == "3711") { |
| | | // $("#HBillType").val("3711"); |
| | | |
| | | //} |
| | | |
| | | //else { |
| | | // $("#HBillType").val("-1"); |
| | | //} |
| | | $("#HNote").val(";ç©ææ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '3'); |
| | | 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: "温馨æç¤º" }); |
| | | } |
| | | //$("#HSupID").val(result.data.HSupID); |
| | | //$("#HSupName").val(result.data.HSupName); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | //$("#HDeptName").val(result.data.HDeptName); |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1202', 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 () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.msg("æ¥å£è¯·æ±å¼å¸¸:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | console.log(err); |
| | | }); |
| | | } |
| | | else { |
| | | var sBarCode = $('#HBarCode').val() |
| | | //var Flag = sessionStorage["SourceFlag"]; |
| | | if (sQty == "") { |
| | | sQty = 0; |
| | | } |
| | | }); |
| | | } |
| | | //else |
| | | //{ |
| | | // layer.msg(result.Message, { icon: 5 }); |
| | | //} |
| | | //layer.closeAll("loading"); |
| | | //} |
| | | |
| | | //夿æ¡ç æ¯å¦ä¸ºç©º new |
| | | if (sBarCode == '') { |
| | | layer.msg("æ¡ç 为空ï¼ä¸è½æ«æï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | if (sQty != "") { |
| | | $('#HQty').val(""); |
| | | } |
| | | if (sHWHID == "184154") { |
| | | if (sHSPID == "0") { |
| | | layer.msg("ä»ä½ä¸ºç©ºï¼è¯·éæ©ä»ä½ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | } |
| | | //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//é空éªè¯ |
| | | $.ajax({ |
| | | //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/get_CheckTypeByBarCode_Json", |
| | | url: GetWEBURL() + "/ProductIn/get_CheckTypeByBarCode_Json", |
| | | type: "GET", |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | //debugger; |
| | | if (result.count == 1) { |
| | | if (result.data.HBarType == 'ä»åºæ¡ç ') { |
| | | $("#HWHNAME").val(result.data.HWhName); |
| | | $("#HWHID").val(result.data.HWhID); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HNote").val(";ä¸é®æ«ç ä»åºæ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '2'); //è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'ä»ä½æ¡ç ') { |
| | | $("#HStockPlaceName").val(result.data.HSPName); |
| | | $("#HStockPlaceID").val(result.data.HSPID); |
| | | $("#HWHNAME").val(result.data.HWhName); |
| | | $("#HWHID").val(result.data.HWhID); |
| | | $("#HNote").val(";ä¸é®æ«ç ä»ä½æ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '2');//è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'é¨é¨æ¡ç ') { |
| | | $("#HDeptName").val(result.data.HDeptName); |
| | | $("#HDeptID").val(result.data.HDeptID); |
| | | $("#HNote").val(";ä¸é®æ«ç é¨é¨æ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '2');//è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'æºåæ¡ç ') { |
| | | $("#HSupName").val(result.data.HSupName); |
| | | $("#HSupID").val(result.data.HSupID); |
| | | $("#HDeptName").val(result.data.HDeptName); |
| | | $("#HDeptID").val(result.data.HDeptID); |
| | | $("#HSourceBillNo").val(result.data.HSourceBillNo); |
| | | HSourceFlag = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | //if (result.data.HSourceBillType == "3711") { |
| | | // $("#HBillType").val("3711"); |
| | | //} |
| | | //else { |
| | | // $("#HBillType").val("-1"); |
| | | //} |
| | | $("#HNote").val(";ä¸é®æ«ç æºåæ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '3'); |
| | | } |
| | | else { |
| | | if (HSourceFlag == "true") { |
| | | element.tabChange('tab-ProductlnBill', '3'); |
| | | } |
| | | else { |
| | | $("#HSupName").val(result.data.HSupName); |
| | | $("#HSupID").val(result.data.HSupID); |
| | | //$("#HDeptName").val(result.data.HDept); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | $("#HSourceBillNo").val(result.data.HSourceBillNo); |
| | | HSourceFlag = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | //if (result.data.HSourceBillType == "3711") { |
| | | // $("#HBillType").val("3711"); |
| | | |
| | | //} |
| | | |
| | | //else { |
| | | // $("#HBillType").val("-1"); |
| | | //} |
| | | $("#HNote").val(";ç©ææ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '3'); |
| | | } |
| | | } |
| | | //$("#HSupID").val(result.data.HSupID); |
| | | //$("#HSupName").val(result.data.HSupName); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | //$("#HDeptName").val(result.data.HDeptName); |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1202', 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 () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.msg("æ¥å£è¯·æ±å¼å¸¸:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | console.log(err); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | //æ«æºå |
| | |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRefresh">å·æ°</button> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRescind">æ¤é</button> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">éåº</button> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | |
| | | }) |
| | | }); |
| | | |
| | | form.on('submit(cmdRefresh)', function () {//ç¼è¾ |
| | | var sBillType = '1203' |
| | | |
| | | form.on('submit(cmdRefresh)', function () {//å·æ° |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | ,toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType,sWhere:''} |
| | | , 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({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, HMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | { 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: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 100 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | , { field: 'HOrgID', title: 'ç»ç»', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | |
| | | //æ¤éåè½ |
| | | 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 sBillType = '1203' |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Web/Rescind_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType }, |
| | | 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 |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | |
| | | |
| | | |
| | | var sBillType = '1203' |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | ,toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType,sWhere:''} |
| | | , 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({ |
| | | 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({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, HMaker: 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: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HOrgID', title: 'ç»ç»', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | //å·æ°æç»é¡µç¾ |
| | | table.render({ |
| | | elem: '#mx-table' |
| | |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRefresh">å·æ°</button> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRescind">æ¤é</button> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">éåº</button> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | |
| | | }); |
| | | |
| | | form.on('submit(cmdRefresh)', function () {// |
| | | var sBillType = '1210' |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | , 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({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, sWhere: '' } |
| | | , where: { HBillType: sBillType, HMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | { 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: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 100 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | , { field: 'HOrgID', title: 'ç»ç»', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | |
| | | /æ¤éåè½ |
| | | 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 sBillType = '1210' |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Web/Rescind_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType }, |
| | | 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 |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | // console.log(data); |
| | | // var sInterID = $('#HInterID').val() |
| | | , data = checkStatus.data; |
| | | var sInterID = data[0].HInterID |
| | | //var sMaterID = data[0].HMaterID |
| | | //var sBillType = $('#HBillType').val() |
| | | //var sAuxPropID = data[0].HAuxPropID |
| | | ////var sMTONo = data[0].HMTONo |
| | | //var sMTONo = 0 |
| | | //var sSourceInterID = data[0].HSourceInterID |
| | | //var sSourceEntryID = data[0].HSourceEntryID |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Web/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //layer.msg(data.Message, { icon: 1 }); |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | , cellMinWidth: 80 |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: '1210', sWhere: '' } |
| | | , 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 |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | { |
| | | 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 |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | |
| | | var sBillType = '1210' |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, sWhere: '' } |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 100 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | |
| | | |
| | | //å·²ä¸ä¼ å表 |
| | | table.render({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, HMaker: 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: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HOrgID', title: 'ç»ç»', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | //å·æ°æç»é¡µç¾ |
| | | table.render({ |