From b48cbaed482a5e530052a9e31fa0d2e8fd06cec4 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期一, 08 九月 2025 09:00:51 +0800 Subject: [PATCH] 1.巡检上下限为0的,判定为选择合格不合格(已更新) 2.AGV选择点位 3.现场收料新增参数 --- H5/Js/Scll.js | 74 ++++++++++++++++++++++++++++++++++++- 1 files changed, 72 insertions(+), 2 deletions(-) diff --git a/H5/Js/Scll.js b/H5/Js/Scll.js index 7545889..381055d 100644 --- a/H5/Js/Scll.js +++ b/H5/Js/Scll.js @@ -24,6 +24,12 @@ // { printerId: 'Printer2', ipAddress: '192.168.1.2' }, // { printerId: 'Printer3', ipAddress: '192.168.1.3' } //], // 鎵撳嵃鏈哄垪琛� + // 褰撳墠閫変腑琛岀殑绱㈠紩 + currentIndex: -1, + // 瀛樺偍閫変腑琛屾暟鎹璞� + selItem: {} , + ItemBarKw: [],//褰撳ぉ琛岀浉鍏虫潯鐮佸簱浣嶄俊鎭� + DaaInfo: {}, } }, mounted() { @@ -34,6 +40,62 @@ }; }, methods: { + + + /** + * 澶勭悊琛岀偣鍑讳簨浠讹紙鍗曢�夐�昏緫锛� + * @param {Object} item 褰撳墠琛屾暟鎹� + * @param {Number} index 褰撳墠琛岀储寮� + */ + handleRowClick(item, index) { + if (this.isLoading) { + return; + } + + // 閲嶇疆鎵�鏈夎鐨勯�変腑鐘舵�� + this.currentIndex = -1; + + // 璁剧疆褰撳墠閫変腑琛� + this.currentIndex = index; + this.selItem = { + itemid: item.fMaterialId, + index: index + }; + + console.log('褰撳墠閫変腑椤�:', this.selItem); // 璋冭瘯鐢� + + this.GetBarKwByItem(); + }, + GetBarKwByItem() { + + 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; @@ -45,14 +107,21 @@ 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.$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; @@ -60,6 +129,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); + that.$playSound('error'); console.log(error); that.$refs.daa001.focus(); that.modeInfo.daa001 = ""; @@ -312,8 +382,8 @@ that.itemInfo = json.data.tbBillList; that.actions = json.data.tbBillList.map(item => { return { - name: item.daaInfo // 鎷兼帴瀛楁 - + name: item.daaInfo, // 鎷兼帴瀛楁 + subname: item.startTime }; }); } -- Gitblit v1.9.3