From 70ddea1608c8402a429baf69ed03028dae9c8f87 Mon Sep 17 00:00:00 2001 From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU> Date: 星期一, 22 九月 2025 15:10:22 +0800 Subject: [PATCH] 1.受托退料:优化,添加成功声音、拆分后打印、退料后刷新库位列表。2.受托入库:列表查询与选择改为存储过程,添加成功声音 --- H5/Js/Qtck.js | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/H5/Js/Qtck.js b/H5/Js/Qtck.js index dc0552c..efd7180 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; @@ -74,6 +126,8 @@ this.show = false; this.billNo = item.name; + // 娓呯┖搴撲綅鍒楄〃 + this.ItemBarKw = []; this.GetMesItemBlDetailByBillNo(); //this.$toast(item.name); @@ -93,6 +147,10 @@ //that.ItemBlDetail = json.data.tbBillList; that.$refs.barcode.focus(); that.barcode = ""; + + // 閲嶇疆鎵�鏈夎鐨勯�変腑鐘舵�� + that.currentIndex = -1; + that.ItemBarKw = []; } else { that.$toast.fail(json.message); -- Gitblit v1.9.3