From 47ae3682d3d9253331df420044e93827cf13597d Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期五, 12 九月 2025 11:21:58 +0800 Subject: [PATCH] 1.调拨入库缓存修改 --- H5/Js/Xsck.js | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 54 insertions(+), 1 deletions(-) diff --git a/H5/Js/Xsck.js b/H5/Js/Xsck.js index 672c7c6..ab3e8ff 100644 --- a/H5/Js/Xsck.js +++ b/H5/Js/Xsck.js @@ -19,6 +19,11 @@ active: 0, show: false, actions: [], + ItemTblDetail: [], + ItemDetail: [], + ItemBarKw: [], + currentIndex: -1, + zdy: "", } }, mounted() { @@ -29,6 +34,53 @@ }; }, methods: { + 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() { + + 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 = []; + }); + }, //鑾峰彇鍙戣揣閫氱煡鍗曞彿 getInfo() { this.show = true; @@ -90,6 +142,7 @@ var json = res; if (json.status == 0) { that.ItemBlDetail = json.data.tbBillList; + that.zdy = json.data.tbBillList.allList[0].createNmae; //that.daa001 = json.data.tbBillList.item1; that.$refs.barcode.focus(); } @@ -106,7 +159,7 @@ that.isLoading = false; that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); //console.log(error); - tthat.$refs.billNo.focus(); + that.$refs.billNo.focus(); that.billNo = ""; that.daa001 = ""; that.ItemBlDetail = []; -- Gitblit v1.9.3