From 8e4aa88d5b4b85d19cdaf49f14fca22540b7e3dd Mon Sep 17 00:00:00 2001 From: cdk <2441919651@qq.com> Date: 星期一, 15 九月 2025 09:52:50 +0800 Subject: [PATCH] 其他出库加入库存限制 --- H5/Js/Qtck.js | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/H5/Js/Qtck.js b/H5/Js/Qtck.js index dc0552c..69bc31b 100644 --- a/H5/Js/Qtck.js +++ b/H5/Js/Qtck.js @@ -20,6 +20,9 @@ ItemDetail: [], splitNum: "", zdy: "", + ItemTblDetail: [], + ItemBarKw: [], + currentIndex: -1, } }, mounted() { @@ -30,6 +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/GetBarKwByItemCK', { + itemId: that.selItem.itemid, + userName: that.userInfo.loginAccount, + type: 'QTCK', + billNo: that.billNo + }, 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; -- Gitblit v1.9.3