From 6acdfc2c867d8fde898a4cc67bdefa2b97f03e3e Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期三, 09 七月 2025 10:58:54 +0800 Subject: [PATCH] 1.条码入库前拆分优化 2.其他入库优化 --- H5/Js/Scbl.js | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) diff --git a/H5/Js/Scbl.js b/H5/Js/Scbl.js index f8b69fb..b4d5fa7 100644 --- a/H5/Js/Scbl.js +++ b/H5/Js/Scbl.js @@ -19,6 +19,7 @@ active: 0, show: false, actions: [], + ItemDetail: [], } }, mounted() { @@ -64,11 +65,6 @@ console.log(error); }); }, - onClick(index, title) { - this.$toast(`${index} ${title}`); - this.$notify({ type: 'success', message: '鏌愭煇鐗╂枡鎵爜鎴愬姛鏌愭煇鐗╂枡鎵爜鎴愬姛鏌愭煇鐗╂枡鎵爜鎴愬姛鏌愭煇鐗╂枡鎵爜鎴愬姛' }); - - }, onSelect(item) { // 榛樿鎯呭喌涓嬬偣鍑婚�夐」鏃朵笉浼氳嚜鍔ㄦ敹璧� // 鍙互閫氳繃 close-on-click-action 灞炴�у紑鍚嚜鍔ㄦ敹璧� @@ -89,8 +85,8 @@ .then(function (res) { var json = res; if (json.status == 0) { - that.ItemBlDetail = json.data.tbBillList.item2; - that.daa001 = json.data.tbBillList.item1; + that.ItemDetail = json.data.tbBillList; + that.daa001 = json.data.tbBillList.daa001; that.$refs.barcode.focus(); } else { @@ -113,7 +109,11 @@ }); }, getBarcode() { - + // 娣诲姞闃叉姈鍒ゆ柇 + if (this.isLoading) { + return; + } + //this.barcode = value; var that = this; @@ -239,12 +239,16 @@ var json = res; if (json.status == 0) { that.ItemBlDetail = json.data.pendingList; - that.$notify({ type: 'success', message: '鎵弿鎴愬姛' }); - that.$refs.barcode.focus(); that.barcode = ""; that.num = ""; that.splitNum = ""; + that.$notify({ type: 'success', message: json.message }); + that.$playSound('success'); that.GetMesItemBlDetailByBillNo(); + //that.sendMessage(json.data.tbBillList); + that.sendPrintMessage(json.data.tbBillList); + + that.$refs.barcode.focus(); } else { that.$toast.fail(json.message); -- Gitblit v1.9.3