From 32274bc8fad5251f78229d67d86c234a4b32df2e Mon Sep 17 00:00:00 2001 From: cnf <3200815559@qq.com> Date: 星期四, 11 九月 2025 17:34:32 +0800 Subject: [PATCH] 销售与其他出入库功能挪移 --- H5/Js/Dbrk.js | 34 ++++++++++++++++++++++++++-------- 1 files changed, 26 insertions(+), 8 deletions(-) diff --git a/H5/Js/Dbrk.js b/H5/Js/Dbrk.js index cb8a307..2047c93 100644 --- a/H5/Js/Dbrk.js +++ b/H5/Js/Dbrk.js @@ -17,6 +17,7 @@ active: 0, show: false, actions: [], + ItemDetail: [], } }, mounted() { @@ -49,12 +50,14 @@ } else { that.$toast.fail(json.message); + that.$playSound('error'); } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); + that.$playSound('error'); console.log(error); }); }, @@ -76,18 +79,21 @@ 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.$playSound('success'); that.$refs.sectionCode.focus(); that.sectionCode = ""; } else { that.$toast.fail(json.message); + that.$playSound('error'); that.$refs.billNo.focus(); that.billNo = ""; that.ItemBlDetail = null; @@ -97,6 +103,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); + that.$playSound('error'); that.$refs.billNo.focus(); that.billNo = ""; that.ItemBlDetail = null; @@ -110,6 +117,7 @@ if (that.sectionCode.length == 0) { this.$toast.fail("搴撲綅缂栫爜涓嶈兘涓虹┖"); + that.$playSound('error'); return; } @@ -122,11 +130,13 @@ var json = res; if (json.status == 0) { that.$notify({ type: 'success', message: json.data.tbBillList }); + that.$playSound('success'); that.$refs.barcode.focus(); that.barcode = ""; } else { that.$toast.fail(json.message); + that.$playSound('error'); that.$refs.sectionCode.focus(); that.sectionCode = ""; @@ -135,6 +145,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); + that.$playSound('error'); //console.log(error); that.$refs.sectionCode.focus(); that.sectionCode = ""; @@ -149,27 +160,30 @@ if (!that.userInfo.loginAccount) { this.$toast.fail("璇烽噸鏂版鏌ョ櫥褰曠姸鎬�"); + that.$playSound('error'); that.isLoading = false; return; } if (!that.sectionCode) { this.$toast.fail("搴撲綅涓嶈兘涓虹┖"); + that.$playSound('error'); that.isLoading = false; return; } if (!that.barcode) { this.$toast.fail("鏉$爜涓嶈兘涓虹┖"); + that.$playSound('error'); that.isLoading = false; 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, @@ -186,12 +200,15 @@ //that.barcode = json.data.form.barcode; that.ItemBlDetail = json.data.items that.$notify({ type: 'success', message: '鎵爜鎴愬姛' }); + that.$playSound('success'); that.$refs.barcode.focus(); that.barcode = ""; - //that.GetMesItemBlDetailByBillNo(); + that.billNo = json.data.form.billNo; + that.GetMesItemBlDetailByBillNo(); } else { that.$toast.fail(json.message); + that.$playSound('error'); that.$refs.barcode.focus(); that.barcode = ""; } @@ -200,6 +217,7 @@ .catch(function (error) { that.isLoading = false; that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); + that.$playSound('error'); //console.log(error); that.$refs.barcode.focus(); that.barcode = ""; -- Gitblit v1.9.3