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/Sttl.js | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/H5/Js/Sttl.js b/H5/Js/Sttl.js index 12abbc2..ace746b 100644 --- a/H5/Js/Sttl.js +++ b/H5/Js/Sttl.js @@ -14,11 +14,12 @@ selectType: "", daa001: "", barcode: "", - ItemBlDetail:[], modeInfo: [], active: 0, show: false, actions: [], + ItemBlDetail: [], // 寰呮壂 + ItemYsDetail: [], // 宸叉壂 ItemTblDetail: [], ItemDetail: [], ItemBarKw: [], @@ -51,6 +52,7 @@ console.log('褰撳墠閫変腑椤�:', this.selItem); // 璋冭瘯鐢� this.GetBarKwByItem(); + //this.active = 1; //鑷姩鍒囨崲鍒板簱浣嶅垪琛╰ab }, GetBarKwByItem() { @@ -118,7 +120,7 @@ //onClick(index, title) { // this.$toast(`${index} ${title}`); // this.$notify({ type: 'success', message: '鏌愭煇鐗╂枡鎵爜鎴愬姛鏌愭煇鐗╂枡鎵爜鎴愬姛鏌愭煇鐗╂枡鎵爜鎴愬姛鏌愭煇鐗╂枡鎵爜鎴愬姛' }); - + //that.$playSound('success'); //}, onSelect(item) { // 榛樿鎯呭喌涓嬬偣鍑婚�夐」鏃朵笉浼氳嚜鍔ㄦ敹璧� @@ -142,8 +144,10 @@ .then(function (res) { var json = res; if (json.status == 0) { - that.ItemBlDetail = json.data.tbBillList; - //that.daa001 = json.data.tbBillList.item1; + //that.ItemBlDetail = json.data.tbBillList; + var tbBillList = json.data.tbBillList || {}; + that.ItemBlDetail = tbBillList.blDetails || []; // 寰呮壂 + that.ItemYsDetail = tbBillList.ysDetails || []; // 宸叉壂 that.$refs.barcode.focus(); } else { @@ -213,11 +217,13 @@ that.num = null; //that.ItemBlDetail = json.data.tbBillList.item2 that.$notify({ type: 'success', message: '鎵弿鎴愬姛' }); + that.$playSound('success'); that.GetMesItemDetailByBillNo(); that.$refs.barcode.focus(); that.barcode = ""; that.num = ""; that.splitNum = ""; + that.GetBarKwByItem(); // 閫�鏂欏悗鍒锋柊搴撲綅 } else if (json.status == 2) { @@ -301,11 +307,14 @@ if (json.status == 0) { that.ItemBlDetail = json.data.pendingList; that.$notify({ type: 'success', message: '鎵弿鎴愬姛' }); + that.$playSound('success'); + that.sendPrintMessage(json.data.tbBillList);//鎵撳嵃 that.$refs.barcode.focus(); that.barcode = ""; that.num = ""; that.splitNum = ""; that.GetMesItemDetailByBillNo(); + that.GetBarKwByItem();// 閫�鏂欏悗鍒锋柊搴撲綅 } else { that.$toast.fail(json.message); -- Gitblit v1.9.3