| | |
| | | //var WEBURL = "http://192.168.0.244:8082/API/"; //å¸
å¨å
ç½ |
| | | //var WEBURL = "http://192.168.1.237:9003/API"; //å¤å®å
ç½ |
| | | //var WEBURL = "http://60.190.4.42:9003/API"; //å¤å®å¤ç½ |
| | | //var WEBURL = "http://192.168.60.12/API"; //䏿§ |
| | | return WEBURL |
| | | } |
| | | |
| | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">å å·¥åä½</label> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:45px;padding-left:0px;">é¢æäºº</label> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | |
| | | $("#HBillerID").hide(); |
| | | var HSourceFlag = sessionStorage["SourceFlag"]; |
| | | |
| | | //æç»ä¿¡æ¯ |
| | | var listOption = { |
| | | elem: '#wl-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , cellMinWidth: 90 |
| | | , totalRow: true |
| | | , limit: 100 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , page: true |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HSNO', title: 'åºå·', width: 60 } |
| | | , { field: 'HQty', title: 'æ°é', width: 80, totalRow: true } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', width: 80, totalRow: true } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HPieceQty', title: 'æ¡ç æ°é', width: 150 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | } |
| | | //é»è®¤å¸¦å
¥çä»åºï¼å¦æå¯ç¨ä»ä½åä»ä½ææï¼å¦ææ²¡æå¯ç¨åä»ä½ç°åº¦ new |
| | | |
| | | |
| | |
| | | var linterid = params[params[0]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | | var lSourceBillType = params[params[2]]; //ä»åæ®è·å æºåç±»å |
| | | |
| | | //function RoadBillMain(linterid)//å 载表头 |
| | | //{ |
| | | // $.ajax({ |
| | | // url: GetWEBURL() + "/Web/GetPonderationBill", |
| | | // async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | // type: "GET", |
| | | // data: { "HInterID": linterid }, |
| | | // success: function (d) { |
| | | // // console.log(d.data); |
| | | // $("#HInterID").val(d.data[0].HInterID); |
| | | // $("#HBillNo").val(d.data[0].HBillNo); |
| | | // $("#HBillType").val(d.data[0].HSourceBillType == null ? "1604" : d.data[0].HSourceBillType); |
| | | // //è·åæºåç±»åãæºååå· |
| | | // if (d.data[0].HSourceBillType == "1604") { |
| | | // $("#HBillType").empty(); |
| | | // $("#HBillType").val("1604"); |
| | | // var optionHtml = ''; |
| | | // optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + 'å§å¤è®¢å-ææ' + "</option>"; |
| | | // $("#HBillType").append(optionHtml); |
| | | // layui.form.render('select'); |
| | | // $("#HBillType").attr("readonly", "readonly"); |
| | | // } |
| | | // else { |
| | | // //$("#HBillType").val("-1"); |
| | | // } |
| | | // $("#HSourceBillNo").val(d.data[0].HSourceBillNo); |
| | | // $("#HSourceBillNo").attr("disabled", "true"); |
| | | // HSourceFlag = true; |
| | | // $("#HDeptID").val(d.data[0].HDeptID); |
| | | // $("#HDeptName").val(d.data[0].HDeptName); |
| | | // //RoadSup(); |
| | | // } |
| | | // }) |
| | | //} |
| | | |
| | | function RoadBillMain(linterid)//å 载表头 |
| | | { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetPonderationBill", |
| | | type: "GET", |
| | | data: { "HInterID": linterid }, |
| | | url: GetWEBURL() + '/WEBSController/GetSourceBill_Temp_Json', |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HInterID": linterid, "HBillType": '1211' }, |
| | | success: function (d) { |
| | | // console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | HInterID = $('#HInterID').val() |
| | | HBillNo = $('#HBillNo').val() |
| | | $("#HBillType").val(d.data[0].HSourceBillType == null ? "1604" : d.data[0].HSourceBillType); |
| | | //è·åæºåç±»åãæºååå· |
| | | //è·åæºåç±»å |
| | | if (d.data[0].HSourceBillType == "1604") { |
| | | $("#HBillType").empty(); |
| | | $("#HBillType").val("1604"); |
| | |
| | | $("#HBillType").attr("readonly", "readonly"); |
| | | } |
| | | else { |
| | | //$("#HBillType").val("-1"); |
| | | $("#HBillType").empty(); |
| | | $("#HBillType").val("-1"); |
| | | var optionHtml = ''; |
| | | optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + 'æå·¥å½å
¥' + "</option>"; |
| | | $("#HBillType").append(optionHtml); |
| | | layui.form.render('select'); |
| | | $("#HBillType").attr("readonly", "readonly"); |
| | | } |
| | | |
| | | $("#HSourceBillNo").val(d.data[0].HSourceBillNo); |
| | | $("#HSourceBillNo").attr("disabled", "true"); |
| | | HSourceFlag = true; |
| | | $("#HDeptID").val(d.data[0].HDeptID); |
| | | $("#HDeptName").val(d.data[0].HDeptName); |
| | | //RoadSup(); |
| | | //é夿ºåæ¨¡å¼ |
| | | if (d.data[0].HMulSourceBill == 0) { |
| | | $("#HSourceBillNo").attr("readonly", "readonly"); |
| | | //$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | } |
| | | if (d.data[0].HDeptID != 0) { |
| | | $("#HDeptID").val(d.data[0].HDeptID); |
| | | $("#HDeptName").val(d.data[0].HDeptName); |
| | | } |
| | | $("#HSupID").val(d.data[0].HCusID); |
| | | $("#HSupName").val(d.data[0].HSupName); |
| | | //$("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | function RoadSup()//æ ¹æ®æºåç±»ååæºåå· å è½½ä¾åºå |
| | | { |
| | | var HSourceBillNo = $('#HSourceBillNo').val() |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var HSourceBillType = $("#HBillType").val() |
| | | //å¤æææ¬æ¡æ¯å¦ææ°æ® new |
| | | if (HSourceBillNo == "" || sInterID <= 0) { |
| | | layer.msg($('#HSourceBillNo').val(), { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | else { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/EntrustOut/get_GetWW_WWPPBomList", |
| | | type: "GET", |
| | | data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HSupID").val(result.data[0].HSupID); |
| | | $("#HSupName").val(result.data[0].HSupName); |
| | | $("#HDeptID").val(result.data[0].HDeptID); |
| | | $("#HDeptName").val(result.data[0].HDeptName); |
| | | element.tabChange('tab-EntrustOutBill', '2'); |
| | | layer.load(3); |
| | | } |
| | | else { |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | //function RoadSup()//æ ¹æ®æºåç±»ååæºåå· å è½½ä¾åºå |
| | | //{ |
| | | // var HSourceBillNo = $('#HSourceBillNo').val() |
| | | // var sInterID = $("#HInterID").val() |
| | | // var sBillNo = $("#HBillNo").val() |
| | | // var HSourceBillType = $("#HBillType").val() |
| | | // //å¤æææ¬æ¡æ¯å¦ææ°æ® new |
| | | // if (HSourceBillNo == "" || sInterID <= 0) { |
| | | // layer.msg($('#HSourceBillNo').val(), { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | // } |
| | | // else { |
| | | // $.ajax({ |
| | | // url: GetWEBURL() + "/EntrustOut/get_GetWW_WWPPBomList", |
| | | // type: "GET", |
| | | // data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo }, |
| | | // success: function (result) { |
| | | // if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | // $("#HSupID").val(result.data[0].HSupID); |
| | | // $("#HSupName").val(result.data[0].HSupName); |
| | | // $("#HDeptID").val(result.data[0].HDeptID); |
| | | // $("#HDeptName").val(result.data[0].HDeptName); |
| | | // element.tabChange('tab-EntrustOutBill', '2'); |
| | | // layer.load(3); |
| | | // } |
| | | // else { |
| | | // layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // } |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | // }); |
| | | // } |
| | | //} |
| | | |
| | | |
| | | |
| | | function RoadBillSub(linterid)//å è½½è¡¨ä½ |
| | | { |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/EntrustOut/DisBillEntryList_Entrust_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: linterid, HBillType: '1211', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | //function RoadBillSub(linterid)//å è½½è¡¨ä½ |
| | | //{ |
| | | // table.render({ |
| | | // elem: '#wl-table' |
| | | // , url: GetWEBURL() + '/EntrustOut/DisBillEntryList_Entrust_Webs_Json' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , where: { HBillID: linterid, HBillType: '1211', sWhere: '' } |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | // , { field: 'HQtyMust', title: 'åºåæ°é', width: 150 } |
| | | // , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | // , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | // , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | // , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | // , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | // , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | // ]] |
| | | // , height: 500 |
| | | // , done: function () { |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | // }); |
| | | //} |
| | | |
| | | //卿å è½½æºåç±»åå表 new |
| | | |
| | |
| | | } |
| | | else {//å¦æä¿®æ¹åèµ°ä¸é¢ new |
| | | RoadBillMain(linterid); |
| | | RoadBillSub(linterid); |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | //RoadBillSub(linterid); |
| | | } |
| | | |
| | | |
| | |
| | | }) |
| | | // } |
| | | }); |
| | | |
| | | //#region å é¤ |
| | | |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | var checkStatus = table.checkStatus('wl-table') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åå°ä¸å¯æ¢å¤ï¼", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var sMaterID = data[0].HMaterID |
| | | var sAuxPropID = data[0].HAuxPropID |
| | | var sMTONo = '' |
| | | var sSourceInterID = data[0].HSourceInterID |
| | | var sSourceEntryID = data[0].HSourceEntryID |
| | | var HBillType = '1211'; |
| | | var sHStockOrgID = sessionStorage["OrganizationID"] |
| | | layer.load(3) |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "HBillType": HBillType }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | }); |
| | | } |
| | | }); |
| | | layer.close(index) |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡è®°å½ï¼è¿è¡å é¤ï¼'); |
| | | } |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //æäº¤ |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | |
| | | $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "æ«æ¡ç ï¼æå\n"); |
| | | //element.tabChange('tab-EntrustOutBill', '3'); //è·³è½¬é¡µç¾ |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/EntrustOut/DisBillEntryList_Entrust_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , where: { HBillID: sInterID, HBillType: '1211', sWhere: '' } |
| | | , cellMinWidth: 90 |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', width: 150, totalRow: true } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | |
| | | //æç»æ¸
å |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json1', |
| | | type: "GET", |
| | | data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: '1211', sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl }, |
| | | //data: { HBillID: sInterID, HBillType: '1211', sWhere: '' }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //listOption.data = result.data.list; |
| | | table.render(result.data.list); |
| | | $("#HBarCode_B").val(result.data.list2[0].HBarCode); |
| | | $("#HMaterName_B").val(result.data.list2[0].HMaterName); |
| | | $("#HMaterModel_B").val(result.data.list2[0].HMaterModel); |
| | | $("#HBatchNo_B").val(result.data.list2[0].HBatchNo); |
| | | $("#HUnitName_B").val(result.data.list2[0].HUnitName); |
| | | $("#HQty_B").val(result.data.list2[0].HQty); |
| | | $("#HTMQty_B").val(result.data.list2[0].HTMQty); |
| | | $("#HWHName_B").val(result.data.list2[0].HWHName); |
| | | $("#HSPName_B").val(result.data.list2[0].HSPName); |
| | | } |
| | | else { |
| | | layer.msg(result.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | //table.render({ |
| | | // elem: '#wl-table' |
| | | // , url: GetWEBURL() + '/EntrustOut/DisBillEntryList_Entrust_Webs_Json' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , totalRow: true |
| | | // , where: { HBillID: sInterID, HBillType: '1211', sWhere: '' } |
| | | // , cellMinWidth: 90 |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true } |
| | | // , { field: 'HQtyMust', title: 'åºåæ°é', width: 150, totalRow: true } |
| | | // , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | // , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | // , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | // , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | // , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | // , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | // ]] |
| | | // , height: 500 |
| | | // , done: function () { |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | //}); |
| | | |
| | | ////æç»æ¸
å |
| | | //$.ajax({ |
| | | // url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json1', |
| | | // type: "GET", |
| | | // data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: '1211', sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl }, |
| | | // //data: { HBillID: sInterID, HBillType: '1211', sWhere: '' }, |
| | | // success: function (result) { |
| | | // if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | // //listOption.data = result.data.list; |
| | | // table.render(result.data.list); |
| | | // $("#HBarCode_B").val(result.data.list2[0].HBarCode); |
| | | // $("#HMaterName_B").val(result.data.list2[0].HMaterName); |
| | | // $("#HMaterModel_B").val(result.data.list2[0].HMaterModel); |
| | | // $("#HBatchNo_B").val(result.data.list2[0].HBatchNo); |
| | | // $("#HUnitName_B").val(result.data.list2[0].HUnitName); |
| | | // $("#HQty_B").val(result.data.list2[0].HQty); |
| | | // $("#HTMQty_B").val(result.data.list2[0].HTMQty); |
| | | // $("#HWHName_B").val(result.data.list2[0].HWHName); |
| | | // $("#HSPName_B").val(result.data.list2[0].HSPName); |
| | | // } |
| | | // else { |
| | | // layer.msg(result.Message); |
| | | // } |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | //}); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | } |
| | |
| | | var audio = document.getElementById("cs2"); |
| | | audio.play(); |
| | | } |
| | | //æ«æºå |
| | | ////æ«æºå |
| | | //function GetMeesageBySourceBillNo(obj) { |
| | | // var HSourceBillNo = $('#HSourceBillNo').val() |
| | | // var sInterID = $("#HInterID").val() |
| | | // var sBillNo = $("#HBillNo").val() |
| | | // var HSourceBillType = $("#HBillType").val(); |
| | | // // |
| | | // $.ajax({ |
| | | // //url: "http://61.130.49.162:9090/WMSAPI///EntrustOut/set_SavePonderationBillMain_Temp_Entrust_Source_Fast_Json", |
| | | // url: GetWEBURL() + "/EntrustOut/set_SavePonderationBillMain_Temp_Entrust_Source_Fast_Json", |
| | | // type: "GET", |
| | | // data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo }, |
| | | // success: function (result) { |
| | | // if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | // playSound1(); |
| | | // $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "æ«æºåå·ï¼æå\n"); |
| | | // HSourceFlag = true; |
| | | // element.tabChange('tab-EntrustOutBill', '2'); //è·³è½¬é¡µç¾ |
| | | // layer.load(3) |
| | | |
| | | // //æ¾ç¤ºè¡¨ä½æç» |
| | | // DisBillEntryList(); |
| | | |
| | | // //table.render({ |
| | | // // elem: '#wl-table' |
| | | // // // , url: 'http://61.130.49.162:9090/WMSAPI///EntrustOut/DisBillEntryList_Entrust_Webs_Json' |
| | | // // , url: GetWEBURL() + '/EntrustOut/DisBillEntryList_Entrust_Webs_Json' |
| | | // // , toolbar: '#toolbarDemo' |
| | | // // , totalRow: true |
| | | // // , where: { HBillID: sInterID, HBillType: '1211', sWhere: '' } |
| | | // // , cols: [[ |
| | | // // { type: 'radio' } |
| | | // // , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true} |
| | | // // , { field: 'HQtyMust', title: 'åºåæ°é', width: 150, totalRow: true} |
| | | // // , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | // // , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | // // , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | // // , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | // // , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | // // , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | // // , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | // // , { field: 'HPieceQty', title: 'æ¡ç æ°é', width: 150 } |
| | | // // ]] |
| | | // // // , data: [linterid] |
| | | // // // , page: true |
| | | // // , height: 500 |
| | | // // , done: function () { |
| | | // // layer.closeAll("loading"); |
| | | // // } |
| | | // //}); |
| | | // } |
| | | // else { |
| | | // playSound(); |
| | | // $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "æ«æºåå·ï¼å¤±è´¥\n"); |
| | | // layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // } |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | // }); |
| | | //} |
| | | |
| | | //æ«ææºåæ¡ç |
| | | function GetMeesageBySourceBillNo(obj) { |
| | | var HInterID = $("#HInterID").val() |
| | | var HBillNo = $("#HBillNo").val() |
| | | var HSourceBillNo = $('#HSourceBillNo').val() |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var HSourceBillType = $("#HBillType").val(); |
| | | // |
| | | var HSourceBillType = $("#HBillType").val() |
| | | var HMaker = sessionStorage["HUserName"]; |
| | | var HStockOrgID = sessionStorage["OrganizationID"] |
| | | layer.load(3) |
| | | $.ajax({ |
| | | //url: "http://61.130.49.162:9090/WMSAPI///EntrustOut/set_SavePonderationBillMain_Temp_Entrust_Source_Fast_Json", |
| | | url: GetWEBURL() + "/EntrustOut/set_SavePonderationBillMain_Temp_Entrust_Source_Fast_Json", |
| | | type: "GET", |
| | | data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo }, |
| | | url: GetWEBURL() + "/WEBSController/Get_SourceBarCode_EntrustOut_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBillType": '1211', "HSourceBillNo": HSourceBillNo, "HSourceBillType": HSourceBillType, "HMaker": HMaker, "HFIFOWhID": 0, "HStockOrgID": HStockOrgID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | playSound1(); |
| | | $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "æ«æºåå·ï¼æå\n"); |
| | | HSourceFlag = true; |
| | | element.tabChange('tab-EntrustOutBill', '2'); //è·³è½¬é¡µç¾ |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | // , url: 'http://61.130.49.162:9090/WMSAPI///EntrustOut/DisBillEntryList_Entrust_Webs_Json' |
| | | , url: GetWEBURL() + '/EntrustOut/DisBillEntryList_Entrust_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , where: { HBillID: sInterID, HBillType: '1211', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true} |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', width: 150, totalRow: true} |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HPieceQty', title: 'æ¡ç æ°é', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | $("#HSupName").val(result.data.hSupNameField); |
| | | $("#HSupID").val(result.data.hSupIDField); |
| | | if (result.data.hDeptIDField != 0) { |
| | | $("#HDeptID").val(result.data.hDeptIDField); |
| | | $("#HDeptName").val(result.data.hDeptNameField); |
| | | } |
| | | |
| | | $("#HSourceBillNo").val(result.data.hSourceBillNoField); |
| | | $("#HBillType").attr("disabled", "disabled"); |
| | | form.render('select'); |
| | | if (result.data.hMulSourceFlagField == 0) { |
| | | $("#HSourceBillNo").attr("readonly", "readonly"); |
| | | //$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | } |
| | | element.tabChange('tab-EntrustOutBill', '2'); |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | } |
| | | else { |
| | | playSound(); |
| | | $("#rizhi").val(RZ += Format(new Date(), "yyyy-MM-dd hh:mm:ss.S") + "æ«æºåå·ï¼å¤±è´¥\n"); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg(result.Message, { |
| | | icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | element.tabChange('tab-EntrustOutBill', '1'); |
| | | $("#HSourceBillNo").select(); |
| | | $("#HSourceBillNo").focus(); |
| | | }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | layer.closeAll("loading"); |
| | | } |
| | | |
| | | //#region æ¾ç¤ºç©æåè¡¨ä¿¡æ¯ |
| | | |
| | | function DisBillEntryList() { |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var HBillType = '1211' |
| | | var sHStockOrgID = sessionStorage["OrganizationID"]; |
| | | |
| | | //å·æ°åè¡¨ä¿¡æ¯ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + '/WEBSController/GetBillEntryTmpList_Json', |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HInterID": sInterID, "HBillNo": sBillNo, "HBillType": HBillType, "HStockOrgID": sHStockOrgID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | listOption.data = result.data.Materlist; |
| | | table.render(listOption); |
| | | if (result.data.BarCodeDetailslist[0]) |
| | | $("#HBarCode_B").val(result.data.BarCodeDetailslist[0].HBarCode); |
| | | $("#HMaterName_B").val(result.data.BarCodeDetailslist[0].HMaterName); |
| | | $("#HMaterModel_B").val(result.data.BarCodeDetailslist[0].HMaterModel); |
| | | $("#HBatchNo_B").val(result.data.BarCodeDetailslist[0].HBatchNo); |
| | | $("#HUnitName_B").val(result.data.BarCodeDetailslist[0].HUnitName); |
| | | $("#HQty_B").val(result.data.BarCodeDetailslist[0].HQty); |
| | | $("#HTMQty_B").val(result.data.BarCodeDetailslist[0].HTMQty); |
| | | $("#HWHName_B").val(result.data.BarCodeDetailslist[0].HWHName); |
| | | $("#HSPName_B").val(result.data.BarCodeDetailslist[0].HSPName); |
| | | |
| | | ////console.log(result.data.list2); |
| | | //var count = 0; |
| | | //var count1 = 0; |
| | | //for (var i = 0; i < result.data.Materlist.length; i++) { |
| | | // count += result.data.Materlist[i].HQty; |
| | | // count1 += result.data.Materlist[i].HPieceQty; |
| | | //} |
| | | //$("#HSumQtys").val(count); |
| | | //$("#HBarcodeQtys").val(count1); |
| | | ////return; |
| | | } |
| | | else { |
| | | layer.msg(result.Message); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | }); |
| | | |
| | | //以ä¸ä¸ºLayUi模å |
| | |
| | | $("#HBillerID").hide(); |
| | | |
| | | |
| | | |
| | | var listOption = { |
| | | elem: '#wl-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , cellMinWidth: 90 |
| | | , limit: 3000 |
| | | , totalRow: true |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150, totalRow: true } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HAuxPropName', title: 'è¾
å©å±æ§', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150, hide: true } |
| | | , { field: 'HPieceQty', title: 'æ¡ç æ°é', width: 150, totalRow: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: 'HAuxPropID', width: 150, hide: true } |
| | | , { field: 'HSourceInterID', title: 'HSourceInterID', width: 150, hide: true } |
| | | , { field: 'HSourceEntryID', title: 'HSourceEntryID', width: 150, hide: true } |
| | | //, { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 70 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | } |
| | | //é»è®¤å¸¦å
¥çä»åºï¼å¦æå¯ç¨ä»ä½åä»ä½ææï¼å¦ææ²¡æå¯ç¨åä»ä½ç°åº¦ new |
| | | |
| | | |
| | |
| | | function RoadBillMain(linterid) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetPonderationBill", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | type: "GET", |
| | | data: { "HInterID": linterid }, |
| | | success: function (d) { |
| | |
| | | } |
| | | else {//å¦æä¿®æ¹åèµ°ä¸é¢ new |
| | | RoadBillMain(linterid); |
| | | RoadBillSub(linterid); |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | //RoadBillSub(linterid); |
| | | HSourceFlag = true; |
| | | } |
| | | |
| | |
| | | }) |
| | | }); |
| | | |
| | | //#region å é¤ |
| | | |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | var checkStatus = table.checkStatus('wl-table') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åå°ä¸å¯æ¢å¤ï¼", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var sMaterID = data[0].HMaterID |
| | | var sAuxPropID = data[0].HAuxPropID |
| | | var sMTONo = '' |
| | | var sSourceInterID = data[0].HSourceInterID |
| | | var sSourceEntryID = data[0].HSourceEntryID |
| | | var HBillType = '1210'; |
| | | var sHStockOrgID = sessionStorage["OrganizationID"] |
| | | layer.load(3) |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "HBillType": HBillType }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | }); |
| | | } |
| | | }); |
| | | layer.close(index) |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡è®°å½ï¼è¿è¡å é¤ï¼'); |
| | | } |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //å
³éæé® |
| | | form.on('submit(Cancel)', function () { |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | layer.load(3); |
| | | element.tabChange('tab-Kf_EntrustInBill', '2'); |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , where: { HBillID: sInterID, HBillType: '1210', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150, totalRow: true } |
| | | , { 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"); |
| | | } |
| | | }); |
| | | DisBillEntryList(); |
| | | |
| | | ////æ¾ç¤ºè¡¨ä½æç» |
| | | //layer.load(3); |
| | | //element.tabChange('tab-Kf_EntrustInBill', '2'); |
| | | //table.render({ |
| | | // elem: '#wl-table' |
| | | // //, url: 'http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/DisBillEntryList_Webs_Json' |
| | | // , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , totalRow: true |
| | | // , where: { HBillID: sInterID, HBillType: '1210', sWhere: '' } |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true } |
| | | // , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150, totalRow: true } |
| | | // , { 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 { |
| | | playSound(); |
| | |
| | | } |
| | | } |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | layer.load(3); |
| | | element.tabChange('tab-Kf_EntrustInBill', '2'); |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , where: { HBillID: sInterID, HBillType: '1210', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true} |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150, totalRow: true} |
| | | , { 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"); |
| | | } |
| | | }); |
| | | DisBillEntryList(); |
| | | |
| | | ////æ¾ç¤ºè¡¨ä½æç» |
| | | //layer.load(3); |
| | | //element.tabChange('tab-Kf_EntrustInBill', '2'); |
| | | //table.render({ |
| | | // elem: '#wl-table' |
| | | // //, url: 'http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/DisBillEntryList_Webs_Json' |
| | | // , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , totalRow: true |
| | | // , where: { HBillID: sInterID, HBillType: '1210', sWhere: '' } |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true} |
| | | // , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150, totalRow: true} |
| | | // , { 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"); |
| | | // } |
| | | //}); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | } |
| | |
| | | HSourceFlag = true; |
| | | layer.load(3); |
| | | element.tabChange('tab-Kf_EntrustInBill', '2'); |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , where: { HBillID: sInterID, HBillType: '1210', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150, totalRow: true } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HPieceQty', title: 'æ¡ç æ°é', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | |
| | | //table.render({ |
| | | // elem: '#wl-table' |
| | | // //, url: 'http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/DisBillEntryList_Webs_Json' |
| | | // , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , totalRow: true |
| | | // , where: { HBillID: sInterID, HBillType: '1210', sWhere: '' } |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true } |
| | | // , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150, totalRow: true } |
| | | // , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | // , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | // , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | // , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | // , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | // , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | // , { field: 'HPieceQty', title: 'æ¡ç æ°é', width: 150 } |
| | | // ]] |
| | | // // , data: [linterid] |
| | | // // , page: true |
| | | // , height: 500 |
| | | // , done: function () { |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | //}); |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |
| | |
| | | }); |
| | | } |
| | | |
| | | //#region æ¾ç¤ºç©æåè¡¨ä¿¡æ¯ |
| | | |
| | | function DisBillEntryList() { |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var HBillType = '1210' |
| | | var sHStockOrgID = sessionStorage["OrganizationID"]; |
| | | |
| | | //å·æ°åè¡¨ä¿¡æ¯ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + '/WEBSController/GetBillEntryTmpList_Json', |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HInterID": sInterID, "HBillNo": sBillNo, "HBillType": HBillType, "HStockOrgID": sHStockOrgID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | listOption.data = result.data.Materlist; |
| | | table.render(listOption); |
| | | |
| | | //console.log(result.data.list2); |
| | | var count = 0; |
| | | var count1 = 0; |
| | | for (var i = 0; i < result.data.Materlist.length; i++) { |
| | | count += result.data.Materlist[i].HQty; |
| | | count1 += result.data.Materlist[i].HPieceQty; |
| | | } |
| | | $("#HSumQtys").val(count); |
| | | $("#HBarcodeQtys").val(count1); |
| | | //return; |
| | | } |
| | | else { |
| | | layer.msg(result.Message); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | }); |
| | | //以ä¸ä¸ºlayui模å |
| | | function GetHWHValue(obj) //è¿åè°å
¥ä»åº |