| H5/Js/Wwbl.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Js/Wwck.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Js/Wwcl.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Js/Wwll.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Js/Wwllhb.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Wwbl.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Wwck.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Wwck.aspx.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Wwcl.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Wwll.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Wwllhb.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Wwllhb.aspx.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| H5/Wwtl.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
H5/Js/Wwbl.js
@@ -86,7 +86,8 @@ var json = res; if (json.status == 0) { that.ItemBlDetail = json.data.tbBillList.item2; that.ItemBlDetail = json.data.tbBillList.items; console.log(that.ItemBlDetail); that.daa001 = json.data.tbBillList.daa001; that.$refs.barcode.focus(); } @@ -159,9 +160,9 @@ that.$notify({ type: 'success', message: 'æ«ææå' }); that.GetMesItemBlDetailByBillNo(); that.$refs.barcode.focus(); that.barcode = ""; that.num = ""; that.splitNum = ""; that.barcode = json.data.success.barcode; that.sms = json.data.success.fum; that.num = json.data.success.num; } else if (json.status == 2) { that.$refs.splitNum.focus(); H5/Js/Wwck.js
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,284 @@ var vm = new Vue({ el: '#app', data: function () { return { isLoading: false, userInfo: { "loginGuid": '', "loginAccount": '', }, modeInfo: { daa001: "", planNo: "" }, scanInfo: { barcodeNum: "", splitNum: "", barcode: "" }, ItemDetail: [], ip: "", port: "", oldBarInfo: [], type: "", cfBarInfo: [], selectKey: "",//æ¥è¯¢å ³é®å actions: [],//å表çå¼ show: false,//å表å±ç¤º // å½åéä¸è¡çç´¢å¼ currentIndex: -1, // åå¨éä¸è¡æ°æ®å¯¹è±¡ selItem: {}, ItemBarKw: [],//å½å¤©è¡ç¸å ³æ¡ç åºä½ä¿¡æ¯ DaaInfo: {}, billno:"", } }, mounted() { var that = this; this.userInfo = { loginGuid: this.GetLoginInfor().loginGuid, loginAccount: this.GetLoginInfor().loginAccount, }; this.type = this.Request("type"); selectType = this.type == "bl" ? selectType = "å§å¤è¡¥æ" : selectType = "å§å¤è¶ é¢"; }, methods: { /** * å¤çè¡ç¹å»äºä»¶ï¼åéé»è¾ï¼ * @param {Object} item å½åè¡æ°æ® * @param {Number} index å½åè¡ç´¢å¼ */ handleRowClick(item, index) { if (this.isLoading) { return; } // éç½®ææè¡çéä¸ç¶æ this.currentIndex = -1; // 设置å½åéä¸è¡ this.currentIndex = index; this.selItem = { itemid: item.itemId,//驼峰å½åæ³ index: index }; console.log('å½åéä¸é¡¹:', this.selItem); // è°è¯ç¨ this.GetBarKwByItem(); }, //è·ååºä½ä¿¡æ¯ GetBarKwByItem() { //Womdaa //WwGd var that = this; that.isLoading = true; that.AxiosHttp("post", 'Womdaa/GetBarKwByItem', { itemId: that.selItem.itemid, userName: that.userInfo.loginAccount }, false) .then(function (res) { var json = res; if (json.status == 0) { that.ItemBarKw = json.data.tbBillList; } else { that.$toast.fail(json.message); that.$playSound('error'); that.ItemBarKw = []; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.$playSound('error'); console.log(error); that.ItemBarKw = []; }); }, getModel() { var that = this; that.isLoading = true; that.AxiosHttp("post", 'WwGd/GetItemsByWwckNo', { daa001: that.billno, userName: that.userInfo.loginAccount }, false) .then(function (res) { var json = res; if (json.status == 0) { that.ItemDetail = json.data.tbBillList; that.DaaInfo = json.data.tbBillList.daaInfo; that.modeInfo.planNo = json.data.tbBillList.planNo; that.modeInfo.startTime = json.data.tbBillList.startTime; that.modeInfo.daa001 = json.data.tbBillList.allList[0].daA001; that.$refs.barcode.focus(); // éç½®ææè¡çéä¸ç¶æ that.currentIndex = -1; that.ItemBarKw = []; } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.daa001.focus(); that.modeInfo.daa001 = ""; that.modeInfo.planNo = ""; that.modeInfo.startTime = ""; that.ItemDetail = []; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); console.log(error); that.$refs.daa001.focus(); that.modeInfo.daa001 = ""; }); }, //æ«ç getScan() { var that = this; if (this.isLoading) { return; } if (that.modeInfo.daa001.length <= 0) { that.$toast.fail("å§å¤å·¥åä¸è½ä¸ºç©ºï¼"); return; } that.isLoading = true; that.AxiosHttp("post", 'WwGd/WwckScanCode', { daa001: that.modeInfo.daa001, userName: that.userInfo.loginAccount, barcode: that.scanInfo.barcode, blNo: that.billno, type: selectType, }, false) .then(function (res) { var json = res; if (json.status == 0) { // that.scanInfo = json.data.tbBillList; that.$notify({ type: 'success', message: json.message }); that.getModel(); that.$refs.barcode.focus(); that.scanInfo.barcode = null; } else if (json.status == 2) { that.$refs.splitNum.focus(); that.scanInfo.splitNum = json.data.tbBillList.splitNum; that.scanInfo.barcodeNum = json.data.tbBillList.barcodeNum; } else { that.$toast.fail(json.message); that.$refs.barcode.focus(); } //that.$notify({ type: 'success', message: json.message }); that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); console.log(error); that.$refs.barcode.focus(); }); }, //æå getChaiFen() { if (this.isLoading) { return; } var that = this; if (that.modeInfo.daa001.length <= 0) { that.$toast.fail("å§å¤å·¥åå·ä¸è½ä¸ºç©ºï¼"); return; } if (that.scanInfo.splitNum * 1 <= 0) { that.$toast.fail("æåæ°éä¸è½ä¸ºç©ºï¼"); return; } if (that.scanInfo.barcode.length * 1 <= 0) { that.$toast.fail("ç©ææ¡ç ä¸è½ä¸ºç©ºï¼"); return; } that.isLoading = true; that.AxiosHttp("post", 'WwGd/WwckScanCodeCF', { daa001: that.modeInfo.daa001, userName: that.userInfo.loginAccount, barcode: that.scanInfo.barcode, Num: that.scanInfo.splitNum, blNo: that.billno, type: selectType, }, false) .then(function (res) { var json = res; if (json.status == 0) { // that.modeInfo = json.data.tbBillList; that.$notify({ type: 'success', message: json.message }); that.$playSound('success'); that.sendPrintMessage(json.data.tbBillList); that.getModel(); that.$refs.barcode.focus(); that.scanInfo.barcode = null; that.scanInfo.barcodeNum = ""; that.scanInfo.splitNum = ""; } else { that.$toast.fail(json.message); that.$refs.splitNum.focus(); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); console.log(error); that.$refs.splitNum.focus(); }); }, //è·åå·¥åä¿¡æ¯ getInfo() { this.show = true; var that = this; that.actions = []; that.isLoading = true; that.AxiosHttp("post", 'WwGd/GetWWCKsq', {//WwGd/GetXcslDaa type: selectType, selectKey: that.selectKey, }, false) .then(function (res) { var json = res; if (json.status == 0) { if (json.data.tbBillList.length <= 0) { that.$toast.fail("没æå¯ç¨çæ°æ®"); that.$playSound('error'); } else { that.itemInfo = json.data.tbBillList; that.actions = json.data.tbBillList.map(item => { return { name: item.daaInfo, // æ¼æ¥å段 subname: item.startTime }; }); } } else { that.$toast.fail(json.message); that.$playSound('error'); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.$playSound('error'); console.log(error); }); }, onSelect(item) { // é»è®¤æ åµä¸ç¹å»é项æ¶ä¸ä¼èªå¨æ¶èµ· // å¯ä»¥éè¿ close-on-click-action 屿§å¼å¯èªå¨æ¶èµ· this.show = false; console.log(item); this.billno = item.name; this.getModel(); //this.$toast(item.name); }, } }) H5/Js/Wwcl.js
@@ -138,9 +138,9 @@ var json = res; if (json.status == 0) { that.barcode = json.data.tbBillList.item.barcode; that.sms = json.data.tbBillList.item.fum; that.num = json.data.tbBillList.item.num; that.barcode = json.data.success.barcode; that.sms = json.data.success.fum; that.num = json.data.success.num; that.ItemBlDetail = json.data.tbBillList.pendingList that.$notify({ type: 'success', message: 'æ«ææå' }); } H5/Js/Wwll.js
@@ -9,6 +9,20 @@ }, modeInfo: { daa001: "", planNo: "" }, scanInfo: { barcodeNum: "", splitNum: "", barcode: "" }, ItemDetail: [], ip: "", port: "", oldBarInfo: [], cfBarInfo: [], selectKey: "",//æ¥è¯¢å ³é®å actions: [],//å表çå¼ show: false,//å表å±ç¤º // å½åéä¸è¡çç´¢å¼ currentIndex: -1, // åå¨éä¸è¡æ°æ®å¯¹è±¡ selItem: {}, ItemBarKw: [],//å½å¤©è¡ç¸å ³æ¡ç åºä½ä¿¡æ¯ DaaInfo: {}, } }, mounted() { @@ -19,6 +33,61 @@ }; }, methods: { /** * å¤çè¡ç¹å»äºä»¶ï¼åéé»è¾ï¼ * @param {Object} item å½åè¡æ°æ® * @param {Number} index å½åè¡ç´¢å¼ */ handleRowClick(item, index) { if (this.isLoading) { return; } // éç½®ææè¡çéä¸ç¶æ this.currentIndex = -1; // 设置å½åéä¸è¡ this.currentIndex = index; this.selItem = { itemid: item.itemId,//驼峰å½åæ³ index: index }; console.log('å½åéä¸é¡¹:', this.selItem); // è°è¯ç¨ this.GetBarKwByItem(); }, //è·ååºä½ä¿¡æ¯ GetBarKwByItem() { //Womdaa //WwGd var that = this; that.isLoading = true; that.AxiosHttp("post", 'Womdaa/GetBarKwByItem', { itemId: that.selItem.itemid, userName: that.userInfo.loginAccount }, false) .then(function (res) { var json = res; if (json.status == 0) { that.ItemBarKw = json.data.tbBillList; } else { that.$toast.fail(json.message); that.$playSound('error'); that.ItemBarKw = []; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.$playSound('error'); console.log(error); that.ItemBarKw = []; }); }, getModel() { var that = this; that.isLoading = true; @@ -29,13 +98,20 @@ .then(function (res) { var json = res; if (json.status == 0) { that.modeInfo = json.data.tbBillList; that.ItemDetail = json.data.tbBillList; that.DaaInfo = json.data.tbBillList.daaInfo; that.modeInfo.planNo = json.data.tbBillList.planNo; that.modeInfo.startTime = json.data.tbBillList.startTime; that.$refs.barcode.focus(); } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.daa001.focus(); that.modeInfo.daa001 = ""; that.modeInfo.planNo = ""; that.modeInfo.startTime = ""; that.ItemDetail = []; } that.isLoading = false; }) @@ -47,6 +123,7 @@ that.modeInfo.daa001 = ""; }); }, //æ«ç getScan() { var that = this; if (that.modeInfo.daa001.length <= 0) { @@ -87,6 +164,7 @@ that.$refs.barcode.focus(); }); }, //æå getChaiFen() { var that = this; if (that.modeInfo.daa001.length <= 0) { @@ -132,5 +210,63 @@ that.$refs.splitNum.focus(); }); }, //è·åå·¥åä¿¡æ¯ getInfo() { this.show = true; var that = this; that.actions = []; that.isLoading = true; that.AxiosHttp("post", 'WwGd/GetXcslDaa', { selectKey: that.selectKey, }, false) .then(function (res) { var json = res; if (json.status == 0) { if (json.data.tbBillList.length <= 0) { that.$toast.fail("没æå¯ç¨çæ°æ®"); that.$playSound('error'); } else { that.itemInfo = json.data.tbBillList; that.actions = json.data.tbBillList.map(item => { return { name: item.daaInfo, // æ¼æ¥å段 subname: item.daA021 }; }); } } else { that.$toast.fail(json.message); that.$playSound('error'); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.$playSound('error'); console.log(error); }); }, onSelect(item) { // é»è®¤æ åµä¸ç¹å»é项æ¶ä¸ä¼èªå¨æ¶èµ· // å¯ä»¥éè¿ close-on-click-action 屿§å¼å¯èªå¨æ¶èµ· this.show = false; console.log(item); // æ£åå¹é 第ä¸ä¸ªæ¹æ¬å·å 容 const regex = /\[([^\]]+)\]/; const matchResult = item.name.match(regex); if (matchResult && matchResult[1]) { this.modeInfo.daa001 = matchResult[1]; // PPBOM00000088-1 console.log('æåçDAA001:', this.modeInfo.daa001); } else { this.$toast.fail('å·¥åå·æ ¼å¼å¼å¸¸'); this.modeInfo.daa001 = ''; } this.getModel(); //this.$toast(item.name); }, } }) H5/Js/Wwllhb.js
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,367 @@ var vm = new Vue({ el: '#app', data: function () { return { isLoading: false, userInfo: { "loginGuid": '', "loginAccount": '', }, modeInfo: { daa001: "", planNo: "" }, scanInfo: { barcodeNum: "", splitNum: "", barcode: "" }, ItemDetail: [], ip: "", port: "", oldBarInfo: [], cfBarInfo: [], selectKey: "",//æ¥è¯¢å ³é®å actions: [],//å表çå¼ show: false,//å表å±ç¤º //isPrinterPopupVisible: false, // æ§å¶å¼¹çªæ¾ç¤º/éè //selectedPrinter: '', // å½åéæ©çæå°æºç¼å· //printerList: [ // { printerId: 'Printer1', ipAddress: '192.168.1.1' }, // { printerId: 'Printer2', ipAddress: '192.168.1.2' }, // { printerId: 'Printer3', ipAddress: '192.168.1.3' } //], // æå°æºå表 } }, mounted() { var that = this; this.userInfo = { loginGuid: this.GetLoginInfor().loginGuid, loginAccount: this.GetLoginInfor().loginAccount, }; }, methods: { getModel() { var that = this; that.isLoading = true; that.AxiosHttp("post", 'Wwgdhb/GetItemsByDaa001', { hbNo: that.modeInfo.daa001, userName: that.userInfo.loginAccount }, false) .then(function (res) { var json = res; if (json.status == 0) { console.log(json) that.ItemDetail = json.data.tbBillList; that.modeInfo.planNo = json.data.tbBillList.planNo; that.$playSound('success'); that.$refs.barcode.focus(); } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.daa001.focus(); that.modeInfo.daa001 = ""; that.modeInfo.planNo = ""; that.ItemDetail = []; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.$playSound('error'); console.log(error); that.$refs.daa001.focus(); that.modeInfo.daa001 = ""; }); }, getScan() { if (this.isLoading) { return; } var that = this; if (that.modeInfo.daa001.length <= 0) { that.$toast.fail("æ±æ¥åå·ä¸è½ä¸ºç©ºï¼"); that.$playSound('error'); return; } if (that.scanInfo.barcode.length * 1 <= 0) { that.$toast.fail("ç©ææ¡ç ä¸è½ä¸ºç©ºï¼"); that.$playSound('error'); return; } that.isLoading = true; that.AxiosHttp("post", 'Wwgdhb/ScanCode', { hbNo: that.modeInfo.daa001, userName: that.userInfo.loginAccount, barcode: that.scanInfo.barcode, }, false) .then(function (res) { var json = res; if (json.status == 0) { // that.scanInfo = json.data.tbBillList; that.$notify({ type: 'success', message: json.message }); that.$playSound('success'); that.getModel(); that.$refs.barcode.focus(); that.scanInfo.barcode = null; } else if (json.status == 2) { that.$refs.splitNum.focus(); that.$playSound('success'); that.scanInfo.splitNum = json.data.tbBillList.splitNum; that.scanInfo.barcodeNum = json.data.tbBillList.barcodeNum; } else { that.$toast.fail(json.message); that.$playSound('error'); that.$refs.barcode.focus(); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.$playSound('error'); that.$refs.barcode.focus(); }); }, getChaiFen() { //this.isPrinterPopupVisible = true; // æ¾ç¤ºå¼¹çª if (this.isLoading) { return; } var that = this; if (that.modeInfo.daa001.length <= 0) { that.$toast.fail("å·¥ååå·ä¸è½ä¸ºç©ºï¼"); that.$playSound('error'); return; } if (that.scanInfo.splitNum * 1 <= 0) { that.$toast.fail("æåæ°éä¸è½ä¸ºç©ºï¼"); that.$playSound('error'); return; } if (that.scanInfo.barcode.length * 1 <= 0) { that.$toast.fail("ç©ææ¡ç ä¸è½ä¸ºç©ºï¼"); that.$playSound('error'); return; } //that.ip = ""; //that.prot = ""; //that.getPrintInfo(); //if (that.ip.length <= 0 || that.prot.length <= 0) { // alert(that.ip); // alert(that.prot); // return; //} that.isLoading = true; that.AxiosHttp("post", 'Wwgdhb/ScanCodeCF', { hbNo: that.modeInfo.daa001, userName: that.userInfo.loginAccount, barcode: that.scanInfo.barcode, Num: that.scanInfo.splitNum, }, false) .then(function (res) { var json = res; if (json.status == 0) { // that.modeInfo = json.data.tbBillList; that.scanInfo.splitNum = null; that.scanInfo.barcodeNum = null; that.scanInfo.barcode = null; that.$notify({ type: 'success', message: json.message }); that.$playSound('success'); //that.sendMessage(json.data.tbBillList); that.$refs.barcode.focus(); that.getModel(); } else { that.$toast.fail(json.message); that.$playSound('error'); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.$playSound('error'); }); }, sendMessage(tbBillList) { const cfDetails = tbBillList.cfBarInfo.map(item => { return "! 0 200 200 210 1\r\n" + "PAGE - WIDTH 700 \r\n" + "BOX 0 0 700 180 0 \r\n" + `T 16 0 10 10 ç©æç¼ç ï¼\r\n` + `T 55 3 120 10 ${item.iteM_NO}\r\n` + `T 16 0 310 10 ${item.item_name}\r\n` + "T 55 2 10 42 ç©æè§æ ¼ï¼\r\n" + `T 55 2 110 42 ${item.item_model}\r\n` + "T 16 0 10 78 æ°éï¼\r\n" + `T 0 5 90 78 ${item.quantity}\r\n` + `T 16 5 180 78 ${item.barType}\r\n` + `BARCODE 128 1 25 35 350 130 ${item.iteM_BARCODE}\r\n` + `T 0 1 350 130 ${item.iteM_BARCODE}\r\n` + "T 55 0 10 125 å建æ¶é´ï¼\r\n" + `T 55 0 120 125 ${item.creatE_DATE}\r\n` + "T 55 0 10 150 æå°æ¶é´ï¼\r\n" + `T 55 0 120 150 ${item.print_date}\r\n` + "B QR 580 12 M 2 U 4\r\n" + `MA,${item.iteM_BARCODE}\r\n` + "ENDQR\r\nFORM\r\nPRINT\r\n"; }); //alert(cfDetails); let sendData = { Type: 'Bar', Barcode: tbBillList.cfBarInfo[0].iteM_BARCODE, Detail: cfDetails, Ip: tbBillList.printInfo[0].ip, Port: tbBillList.printInfo[0].port, } console.log('sendMessage å¼å§1:') console.log('sendMessage å¼å§2:' + JSON.stringify(sendData)) uni.webView.postMessage({ data: JSON.stringify(sendData) }) }, //getPrintInfo() { // var that = this; // that.AxiosHttp("post", 'MesPrint/getPrintInfo', { // userName: that.userInfo.loginAccount, // }, false) // .then(function (res) { // var json = res; // if (json.status == 0) { // alert(json.data.tbBillList[0].port); // alert(json.data.tbBillList[0].ip); // that.port = json.data.tbBillList[0].port; // that.ip = json.data.tbBillList[0].ip; // } // else { // that.$toast.fail(json.message); // that.$playSound('error'); // } // that.isLoading = false; // }) // .catch(function (error) { // that.isLoading = false; // that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); // }); //}, //printCfBar(cfBar) { // var that = this; // that.AxiosHttp("post", 'MesPrint/getCfInfo', { // userName: that.userInfo.loginAccount, // cfBar: cfBar, // oldBar: that.scanInfo.barcode // }, false) // .then(function (res) { // var json = res; // if (json.status == 0) { // that.$notify({ type: 'success', message: 'æå°è¯·æ±å·²åé' }); // that.$playSound('success'); // } // else { // that.$toast.fail(json.message); // that.$playSound('error'); // } // that.isLoading = false; // }) // .catch(function (error) { // that.isLoading = false; // that.$toast.fail("æå°æå¡å¼å¸¸ï¼" + error.message); // that.$playSound('error'); // }); //}, //æå°æºæ³¨é //selectPrinter(printer) { // this.selectedPrinter = printer.printerId; // æ´æ°éä¸çæå°æºç¼å· //}, //confirmSelection() { // if (this.selectedPrinter) { // alert(`æ¨éæ©äºæå°æºï¼${this.selectedPrinter}`); // // å¨è¿éå¤çéæ©ç»æï¼ä¾å¦è°ç¨æ¥å£ææ´æ°ç¶æ // this.isPrinterPopupVisible = false; // å ³éå¼¹çª // } else { // alert('è¯·éæ©ä¸ä¸ªæå°æºï¼'); // } //}, //onPrinterSelected(value) { // console.log('å½åéä¸çæå°æºç¼å·:', value); //}, //è·åå·¥åä¿¡æ¯ getInfo() { this.show = true; var that = this; that.actions = []; that.isLoading = true; that.AxiosHttp("post", 'Wwgdhb/GetXcslDaa', { selectKey: that.selectKey, }, false) .then(function (res) { var json = res; if (json.status == 0) { if (json.data.tbBillList.length <= 0) { that.$toast.fail("没æå¯ç¨çæ°æ®"); that.$playSound('error'); } else { that.itemInfo = json.data.tbBillList; that.actions = json.data.tbBillList.map(item => { return { name: item.daaInfo // æ¼æ¥å段 }; }); } } else { that.$toast.fail(json.message); that.$playSound('error'); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("ç½ç»é误ï¼è¯·éè¯ï¼"); that.$playSound('error'); console.log(error); }); }, onSelect(item) { // é»è®¤æ åµä¸ç¹å»é项æ¶ä¸ä¼èªå¨æ¶èµ· // å¯ä»¥éè¿ close-on-click-action 屿§å¼å¯èªå¨æ¶èµ· this.show = false; console.log(item); // æ£åå¹é 第ä¸ä¸ªæ¹æ¬å·å 容 const regex = /\[([^\]]+)\]/; const matchResult = item.name; if (matchResult) { this.modeInfo.daa001 = matchResult; // PPBOM00000088-1 console.log('æåçDAA001:', this.modeInfo.daa001); } else { this.$toast.fail('å·¥åå·æ ¼å¼å¼å¸¸'); that.$playSound('error'); this.modeInfo.daa001 = ''; } this.getModel(); //this.$toast(item.name); }, } }) H5/Wwbl.aspx
@@ -79,11 +79,11 @@ </van-row> <van-row v-for="value in ItemBlDetail" class="font"> <van-col span="12" class="text-left padding-left"> <div>{{value.bld002}}</div> <div>{{value.bld003}}</div> <div>{{value.itemNo}}</div> <div>{{value.itemName}}</div> </van-col> <van-col span="6">ç³è¯·æ°{{value.bld007}}</van-col> <van-col span="6">已颿°{{value.bld008}}</van-col> <van-col span="6">{{value.dsQty}}</van-col> <van-col span="6">{{value.sQty}}</van-col> </van-row> </van-tab> </van-tabs> @@ -97,5 +97,5 @@ <%--<comback ></comback>--%> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/Wwbl.js?<%=1441 %>"></script> <script src="Js/Wwbl.js?<%=1444 %>"></script> </asp:Content> H5/Wwck.aspx
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,188 @@ <%@ Page Title="" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style> .bg-info { background-color:#fff; } .org-info { height: 0.5rem; line-height: 0.5rem; padding: 0 0.16rem; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> <van-notice-bar :scrollable="false" :text="'å½åç»ç»ï¼' + (Cookies.get('orgName') || 'ææ ç»ç»ä¿¡æ¯')" class="org-info" /></van-notice-bar> <van-nav-bar :title="type=='cl'?'å§å¤è¶ é¢':'å§å¤è¡¥æ'" left-text="è¿å" left-arrow @click-left="GoBack()" ></van-nav-bar> <div class="mySolid"> <van-cell-group> <van-field ref ="billno" value="" label="ç³è¯·åå·" clearable placeholder="è¯·éæ©ç³è¯·åå·" :right-icon-size="19" v-model="billno" @keyup.enter.native ="getModel" ><template #button> <van-button size="small" type="info" plain @click="getInfo" >éæ©</van-button> </template></van-field> <van-field ref="daa001" v-model="modeInfo.daa001" label="å§å¤å·¥å" clearable placeholder="请æ«ç " :right-icon-size="19" v-focus.noKeyboard @keyup.enter.native="getModel" autofocus="true" ></van-field> <van-field v-model="modeInfo.planNo" label="ä»»å¡åå·" clearable :right-icon-size="19" placeholder="ä»»å¡åå·" disabled ></van-field> <%-- <van-field v-model="DaaInfo.startTime" label="å¼å·¥æ¶é´" clearable :right-icon-size="19" placeholder="å¼å·¥æ¶é´" disabled> </van-field> <van-field v-model="DaaInfo.lineName" label="线ä½åç§°" clearable :right-icon-size="19" placeholder="线ä½åç§°" disabled> </van-field>--%> <van-field ref="barcode" v-model="scanInfo.barcode" label="ç©ææ¡ç " clearable placeholder="请æ«ç " :right-icon-size="19" v-focus.noKeyboard @keyup.enter.native="getScan" ></van-field> <van-field v-model="scanInfo.barcodeNum" label="æ¡ç æ°é" placeholder="æ¡ç æ°é" disabled ></van-field> <van-field ref="splitNum" v-model="scanInfo.splitNum" center clearable label="åææ°é" placeholder="åææ°é" > <van-button slot="button" type="info" size="small" plain @click="getChaiFen">æ¡ç æå</van-button> </van-field> </van-cell-group> </div> <van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet> <van-tabs color="#000" title-active-color="#0283EF"> <van-tab title="å¾ æ«ç©æ" class="mySolid font"> <van-row> <van-col span="8" class="text-left padding-left">ç©æ</van-col> <van-col span="8" class="text-left padding-left">è§æ ¼</van-col> <van-col span="3">å¾ æ«</van-col> <van-col span="5">æ¨èåºä½</van-col> </van-row> <!-- å¢å è¡ç¹å»ä¸éä¸é«äº® --> <van-row v-for="(itm,index) in ItemDetail.items" :key="index" :style="{ background: currentIndex === index ? '#87CEEB' : '' }" @click.native="handleRowClick(itm, index)"> <van-col span="8" class="text-left padding-left"> <div class="blue-text">{{itm.itemNo}}</div> <div>{{itm.itemName}}</div> </van-col> <van-col span="8" class="text-left padding-left"> <div>{{itm.itemModel}}</div> </van-col> <van-col span="3" class="blue-text">{{itm.dsQty}}</van-col> <van-col span="5">{{itm.recoKw}}</van-col> </van-row> </van-tab> <van-tab title="åºä½å表" class="mySolid font"> <van-row> <van-col span="10" class="text-left padding-left">æ¡ç ç¼å·</van-col> <van-col span="5" class="text-left padding-left">åºä½</van-col> <van-col span="4">æ°é</van-col> <van-col span="5">ä»åº</van-col> </van-row> <van-row v-for="(itm,index) in ItemBarKw" :key="index"> <van-col span="10" class="text-left padding-left"> <div class="blue-text">{{itm.iteM_BARCODE}}</div> </van-col> <van-col span="5" class="text-left padding-left"> <div>{{itm.depoT_SECTIONS_CODE}}</div> </van-col> <van-col span="4" class="blue-text">{{itm.quantity}}</van-col> <van-col span="5" >{{itm.depot_name}}</van-col> </van-row> </van-tab> <van-tab title="å·²æ«ç©æ" class="mySolid font"> <van-row> <van-col span="8" class="text-left padding-left">ç©æ</van-col> <van-col span="8" class="text-left padding-left">è§æ ¼</van-col> <van-col span="3">é颿°</van-col> <van-col span="5">已颿°</van-col> </van-row> <van-row v-for="(itm,index) in ItemDetail.ysitems" :key="index"><%--ItemBlDetail.ysitems--%> <van-col span="8" class="text-left padding-left"> <div class="blue-text">{{itm.itemNo}}</div> <div>{{itm.itemName}}</div> </van-col> <van-col span="8" class="text-left padding-left"> <div>{{itm.itemModel}}</div> </van-col> <van-col span="3">{{itm.fQty}}</van-col> <van-col span="5" class="blue-text">{{itm.sQty}}</van-col> </van-row> </van-tab> </van-tabs> </div> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server"> <comloading v-if="isLoading"></comloading> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/Wwck.js?<%=105326 %>"></script> </asp:Content> H5/Wwck.aspx.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,14 @@ using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class H5_Scll : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } H5/Wwcl.aspx
@@ -69,11 +69,19 @@ <div class="van-tab-left"> <van-tabs @click="onClick" color="#000" title-active-color="#0283EF" > <van-tab title="å¾ åç©æ"> <van-row v-for="value in ItemBlDetail" class="font"> <van-col span="12">ç©æ:{{value.bld002}}</van-col> <van-col span="6">ç³è¯·æ°{{value.bld007}}</van-col> <van-col span="6">已颿°{{value.bld008}}</van-col> </van-row> <van-row> <van-col span="12" class="text-left padding-left">ç©æ</van-col> <van-col span="6">å¾ æ«</van-col> <van-col span="6">å·²æ«</van-col> </van-row> <van-row v-for="value in ItemBlDetail" class="font"> <van-col span="12" class="text-left padding-left"> <div>{{value.itemNo}}</div> <div>{{value.itemName}}</div> </van-col> <van-col span="6">{{value.dsQty}}</van-col> <van-col span="6">{{value.sQty}}</van-col> </van-row> </van-tab> </van-tabs> </div> @@ -86,5 +94,5 @@ <%--<comback ></comback>--%> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/Wwcl.js?<%=122 %>"></script> <script src="Js/Wwcl.js?<%=123 %>"></script> </asp:Content> H5/Wwll.aspx
@@ -4,18 +4,43 @@ .bg-info { background-color:#fff; } .org-info { height: 0.5rem; line-height: 0.5rem; padding: 0 0.16rem; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> <van-notice-bar :scrollable="false" :text="'å½åç»ç»ï¼' + (Cookies.get('orgName') || 'ææ ç»ç»ä¿¡æ¯')" class="org-info" /></van-notice-bar> <van-nav-bar title="å§å¤é¢æ" left-text="è¿å" left-arrow @click-left="GoBack()" ></van-nav-bar> <%--<div class="mySolid">--%> <div class="mySolid"> <van-cell-group> <van-field ref ="selectKey" value="" label="å·¥åæ¥è¯¢" clearable placeholder="è¯·éæ©å·¥åå·è¿è¡æ¥è¯¢" :right-icon-size="19" v-model="selectKey" ><template #button> <van-button size="small" type="info" plain @click="getInfo" >éæ©</van-button> </template></van-field> <van-field ref="daa001" v-model="modeInfo.daa001" @@ -35,6 +60,25 @@ placeholder="ä»»å¡åå·" disabled ></van-field> <%-- <van-field v-model="DaaInfo.startTime" label="å¼å·¥æ¶é´" clearable :right-icon-size="19" placeholder="å¼å·¥æ¶é´" disabled> </van-field> <van-field v-model="DaaInfo.lineName" label="线ä½åç§°" clearable :right-icon-size="19" placeholder="线ä½åç§°" disabled> </van-field>--%> <van-field ref="barcode" v-model="scanInfo.barcode" @@ -59,49 +103,85 @@ label="åææ°é" placeholder="åææ°é" > <van-button slot="button" type="info" size="small" plain @click="getChaiFen"> æ¡ç æå </van-button> <van-button slot="button" type="info" size="small" plain @click="getChaiFen">æ¡ç æå</van-button> </van-field> </van-cell-group> <%-- </div>--%> <van-tabs color="#000" title-active-color="#0283EF"> <van-tab title="å¾ åç©æ" class="mySolid font"> <van-row> <van-col span="12" class="text-left padding-left">ç©æ</van-col> <van-col span="6">å¾ æ«</van-col> <van-col span="6">å·²æ«</van-col> </van-row> <van-row v-for="(itm,index) in modeInfo.daisao1" :key="index"> <van-col span="12" class="text-left padding-left"> <div>{{itm.itemNo}}</div> <div>{{itm.itemName}}</div> </van-col> <van-col span="6">{{itm.dab006}}</van-col> <van-col span="6">{{itm.dab007}}</van-col> </van-row> </van-tab> <van-tab title="ç©ææ»æ¸ å" class="mySolid font"> <van-row> <van-col span="12" class="text-left padding-left">ç©æ</van-col> <van-col span="6">é颿°</van-col> <van-col span="6">已颿°</van-col> </div> <van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet> <van-tabs color="#000" title-active-color="#0283EF"> <van-tab title="å¾ æ«ç©æ" class="mySolid font"> <van-row> <van-col span="8" class="text-left padding-left">ç©æ</van-col> <van-col span="8" class="text-left padding-left">è§æ ¼</van-col> <van-col span="3">å¾ æ«</van-col> <van-col span="5">æ¨èåºä½</van-col> </van-row> <van-row v-for="(itm,index) in modeInfo.totals1" :key="index"> <van-col span="12" class="text-left padding-left"> <div>{{itm.itemNo}}</div> <!-- å¢å è¡ç¹å»ä¸éä¸é«äº® --> <van-row v-for="(itm,index) in ItemDetail.items" :key="index" :style="{ background: currentIndex === index ? '#87CEEB' : '' }" @click.native="handleRowClick(itm, index)"> <van-col span="8" class="text-left padding-left"> <div class="blue-text">{{itm.itemNo}}</div> <div>{{itm.itemName}}</div> </van-col> <van-col span="6">{{itm.dab006}}</van-col> <van-col span="6">{{itm.dab007}}</van-col> </van-row> </van-tab> </van-col> <van-col span="8" class="text-left padding-left"> <div>{{itm.itemModel}}</div> </van-col> <van-col span="3" class="blue-text">{{itm.dsQty}}</van-col> <van-col span="5">{{itm.recoKw}}</van-col> </van-row> </van-tab> <van-tab title="åºä½å表" class="mySolid font"> <van-row> <van-col span="10" class="text-left padding-left">æ¡ç ç¼å·</van-col> <van-col span="5" class="text-left padding-left">åºä½</van-col> <van-col span="4">æ°é</van-col> <van-col span="5">ä»åº</van-col> </van-row> <van-row v-for="(itm,index) in ItemBarKw" :key="index"> <van-col span="10" class="text-left padding-left"> <div class="blue-text">{{itm.iteM_BARCODE}}</div> </van-col> <van-col span="5" class="text-left padding-left"> <div>{{itm.depoT_SECTIONS_CODE}}</div> </van-col> <van-col span="4" class="blue-text">{{itm.quantity}}</van-col> <van-col span="5" >{{itm.depot_name}}</van-col> </van-row> </van-tab> <van-tab title="å·²æ«ç©æ" class="mySolid font"> <van-row> <van-col span="8" class="text-left padding-left">ç©æ</van-col> <van-col span="8" class="text-left padding-left">è§æ ¼</van-col> <van-col span="3">é颿°</van-col> <van-col span="5">已颿°</van-col> </van-row> <van-row v-for="(itm,index) in ItemDetail.ysitems" :key="index"><%--ItemBlDetail.ysitems--%> <van-col span="8" class="text-left padding-left"> <div class="blue-text">{{itm.itemNo}}</div> <div>{{itm.itemName}}</div> </van-col> <van-col span="8" class="text-left padding-left"> <div>{{itm.itemModel}}</div> </van-col> <van-col span="3">{{itm.fQty}}</van-col> <van-col span="5" class="blue-text">{{itm.sQty}}</van-col> </van-row> </van-tab> </van-tabs> </div> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server"> <comloading v-if="isLoading"></comloading> <%--<comback ></comback>--%> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/Wwll.js?<%=12324 %>"></script> <script src="Js/Wwll.js?<%=123265 %>"></script> </asp:Content> H5/Wwllhb.aspx
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,133 @@ <%@ Page Title="å§å¤é¢æ" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="Wwllhb.aspx.cs" Inherits="H5_Scll" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style> .bg-info { background-color: #fff; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> <div class="content-wrapper"> <van-nav-bar title="å§å¤å¤æåå¹¶" left-text="è¿å" left-arrow @click-left="GoBack()"> </van-nav-bar> <div class="mySolid"> <van-cell-group> <van-field ref ="selectKey" value="" label="åå¹¶å·¥åæ¥è¯¢" clearable placeholder="请è¾å ¥åå¹¶å·¥åå·è¿è¡æ¥è¯¢" :right-icon-size="19" v-model="selectKey" ><template #button> <van-button size="small" type="info" plain @click="getInfo" >éæ©</van-button> </template></van-field> <van-field ref="daa001" v-model="modeInfo.daa001" label="åå¹¶åå·" clearable placeholder="请æ«ç " :right-icon-size="19" v-focus.noKeyboard @keyup.enter.native="getModel" autofocus="true"> </van-field> <van-field ref="barcode" v-model="scanInfo.barcode" label="ç©ææ¡ç " clearable placeholder="请æ«ç " :right-icon-size="19" v-focus.noKeyboard @keyup.enter.native="getScan"> </van-field> <van-field v-model="scanInfo.barcodeNum" label="æ¡ç æ°é" placeholder="æ¡ç æ°é" disabled> </van-field> <van-field ref="splitNum" v-model="scanInfo.splitNum" center clearable label="åææ°é" placeholder="åææ°é"> <van-button slot="button" type="info" size="small" plain @click="getChaiFen"> æ¡ç æå </van-button> </van-field> </van-cell-group> </div> <van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet> <van-tabs color="#000" title-active-color="#0283EF"> <van-tab title="å¾ æ«ç©æ" class="mySolid font"> <van-row> <van-col span="8" class="text-left padding-left">ç©æ</van-col> <van-col span="8" class="text-left padding-left">è§æ ¼</van-col> <van-col span="3">å¾ æ«</van-col> <van-col span="5">æ¨èåºä½</van-col> </van-row> <van-row v-for="(itm,index) in ItemDetail.xcslWjsBarList" :key="index"> <van-col span="8" class="text-left padding-left"> <div class="blue-text">{{itm.itemNo}}</div> <div>{{itm.itemName}}</div> </van-col> <van-col span="8" class="text-left padding-left"> <div>{{itm.itemModel}}</div> </van-col> <van-col span="3" class="blue-text">{{itm.DSQty}}</van-col> <van-col span="5">{{itm.RecoKw}}</van-col> </van-row> </van-tab> <van-tab title="å·²æ«ç©æ" class="mySolid font"> <van-row> <van-col span="8" class="text-left padding-left">ç©æ</van-col> <van-col span="8" class="text-left padding-left">è§æ ¼</van-col> <van-col span="3">é颿°</van-col> <van-col span="5">已颿°</van-col> </van-row> <van-row v-for="(itm,index) in ItemDetail.xcslYjsBarList" :key="index"> <van-col span="8" class="text-left padding-left"> <div class="blue-text">{{itm.itemNo}}</div> <div>{{itm.itemName}}</div> </van-col> <van-col span="8" class="text-left padding-left"> <div>{{itm.itemModel}}</div> </van-col> <van-col span="3">{{itm.FQty}}</van-col> <van-col span="5" class="blue-text">{{itm.SQty}}</van-col> </van-row> </van-tab> </van-tabs> </div> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server"> <comloading v-if="isLoading"></comloading> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <script src="Js/Wwllhb.js?<%=1234 %>"></script> </asp:Content> H5/Wwllhb.aspx.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,14 @@ using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class H5_Scll : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } H5/Wwtl.aspx
@@ -80,12 +80,25 @@ <div>{{value.itemNo}}</div> <div>{{value.itemName}}</div> </van-col> <van-col span="6">ç³è¯·æ°{{value.tld005}}</van-col> <van-col span="6">已颿°{{value.tld006}}</van-col> <van-col span="6">ç³è¯·æ°{{value.dsQty}}</van-col> <van-col span="6">已颿°{{value.sQty}}</van-col> </van-row> </van-tab> <van-tab title="å·²éæç»"></van-tab> </van-tabs> <van-row> <van-col span="12" class="text-left padding-left">ç©æ</van-col> <van-col span="6">å¾ æ«</van-col> <van-col span="6">å·²æ«</van-col> </van-row> <van-row v-for="value in ItemTblDetail.items" class="font"> <van-col span="12" class="text-left padding-left"> <div>{{value.itemNo}}</div> <div>{{value.itemName}}</div> </van-col> <van-col span="6">ç³è¯·æ°{{value.dsQty}}</van-col> <van-col span="6">已颿°{{value.sQty}}</van-col> </van-row> <van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet>