From cd757b79217ba11868a4e771298194a362621afe Mon Sep 17 00:00:00 2001 From: cdk <2441919651@qq.com> Date: 星期二, 09 九月 2025 18:04:36 +0800 Subject: [PATCH] 其他出库销售出库增加库位查询 --- H5/Js/Xsck.js | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 57 insertions(+), 3 deletions(-) diff --git a/H5/Js/Xsck.js b/H5/Js/Xsck.js index 9e004a6..7853b44 100644 --- a/H5/Js/Xsck.js +++ b/H5/Js/Xsck.js @@ -19,6 +19,10 @@ active: 0, show: false, actions: [], + ItemTblDetail: [], + ItemDetail: [], + ItemBarKw: [], + currentIndex: -1, } }, mounted() { @@ -29,8 +33,55 @@ }; }, 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; var that = this; that.isLoading = true @@ -47,11 +98,11 @@ that.actions = json.data.tbBillList.map(item => { return { name: item } }); - } } else { that.$toast.fail(json.message); + that.show = false; } that.isLoading = false; }) @@ -67,6 +118,7 @@ // this.$notify({ type: 'success', message: '鏌愭煇鐗╂枡鎵爜鎴愬姛鏌愭煇鐗╂枡鎵爜鎴愬姛鏌愭煇鐗╂枡鎵爜鎴愬姛鏌愭煇鐗╂枡鎵爜鎴愬姛' }); //}, + //鐐瑰嚮浜嬩欢 onSelect(item) { // 榛樿鎯呭喌涓嬬偣鍑婚�夐」鏃朵笉浼氳嚜鍔ㄦ敹璧� // 鍙互閫氳繃 close-on-click-action 灞炴�у紑鍚嚜鍔ㄦ敹璧� @@ -77,6 +129,7 @@ //this.$toast(item.name); }, + //鏍规嵁鍙戣揣閫氱煡鍗曞彿鑾峰彇鏄庣粏 GetMesItemDetailByBillNo() { var that = this; that.isLoading = true; @@ -110,6 +163,7 @@ that.ItemBlDetail = []; }); }, + //鎵爜 getBarcode() { //this.barcode = value; @@ -155,7 +209,6 @@ that.barcode = null; that.sms = null; that.num = null; - //that.ItemBlDetail = json.data.tbBillList.item2 that.$notify({ type: 'success', message: '鎵弿鎴愬姛' }); that.GetMesItemDetailByBillNo(); that.$refs.barcode.focus(); @@ -188,6 +241,7 @@ that.splitNum = ""; }); }, + //鏉$爜鎷嗗垎 tmcf() { //this.show = true; -- Gitblit v1.9.3