From 22906e3b0f3b3cf8527736715efbd97c1291acf6 Mon Sep 17 00:00:00 2001 From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU> Date: 星期二, 16 九月 2025 11:00:31 +0800 Subject: [PATCH] 采购退料:添加库位隔离 --- H5/Js/Dbrk.js | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git a/H5/Js/Dbrk.js b/H5/Js/Dbrk.js index cb8a307..7cc93b8 100644 --- a/H5/Js/Dbrk.js +++ b/H5/Js/Dbrk.js @@ -17,6 +17,7 @@ active: 0, show: false, actions: [], + ItemDetail: [], } }, mounted() { @@ -76,15 +77,16 @@ GetMesItemBlDetailByBillNo() { var that = this; that.isLoading = true; - that.AxiosHttp("post", 'TransferOut/GetTransferOutDetailListByBillNo', { + that.AxiosHttp("post", 'TransferOut/GetTransferInDetailListByBillNo', { billNo: that.billNo }, false) .then(function (res) { var json = res; if (json.status == 0) { - that.ItemBlDetail = json.data.tbBillList; + //that.ItemBlDetail = json.data.tbBillList; + that.ItemDetail = json.data.tbBillList; that.$refs.sectionCode.focus(); - that.sectionCode = ""; + //that.sectionCode = ""; } else { that.$toast.fail(json.message); @@ -128,7 +130,7 @@ else { that.$toast.fail(json.message); that.$refs.sectionCode.focus(); - that.sectionCode = ""; + //that.sectionCode = ""; } }) @@ -137,7 +139,7 @@ that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); //console.log(error); that.$refs.sectionCode.focus(); - that.sectionCode = ""; + //that.sectionCode = ""; }); }, getBarcode() { @@ -165,11 +167,11 @@ return; } - if (!that.billNo) { - this.$toast.fail("鐢宠鍗曞彿涓嶈兘涓虹┖"); - that.isLoading = false; - return; - } + //if (!that.billNo) { + // this.$toast.fail("鐢宠鍗曞彿涓嶈兘涓虹┖"); + // that.isLoading = false; + // return; + //} that.AxiosHttp("post", 'TransferOut/ScanReceiveBarcode', { userName: that.userInfo.loginAccount, @@ -188,7 +190,8 @@ that.$notify({ type: 'success', message: '鎵爜鎴愬姛' }); that.$refs.barcode.focus(); that.barcode = ""; - //that.GetMesItemBlDetailByBillNo(); + that.billNo = json.data.form.billNo; + that.GetMesItemBlDetailByBillNo(); } else { that.$toast.fail(json.message); -- Gitblit v1.9.3