From 53e6c4d418f35384b40b090ab03b53768d5c21a1 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期三, 06 八月 2025 16:57:32 +0800 Subject: [PATCH] 1.调拨入库取消选单号 --- H5/Js/Cpbdsj.js | 76 ++++++++++++++++++++++++++++++++------ 1 files changed, 64 insertions(+), 12 deletions(-) diff --git a/H5/Js/Cpbdsj.js b/H5/Js/Cpbdsj.js index ed2086c..47681a5 100644 --- a/H5/Js/Cpbdsj.js +++ b/H5/Js/Cpbdsj.js @@ -15,8 +15,21 @@ KbBarMxInfo: [], GX: "G007:鏍稿閫佹", Xvalue:4, - XbarInfo: [], + XbarInfo: [ + //{ + // iteM_BARCODE: "", // 鏉$爜 + // item_no: "", // 鐗╂枡缂栧彿 + // item_name: "", // 鐗╂枡鍚嶇О + // item_model: "", // 瑙勬牸鍨嬪彿 + // quantity: 0, // 鏁伴噺 + // is_hedui: "0", // 鏄惁鏍稿(1:宸叉牳瀵� 0:鏈牳瀵�), + // weight: "" // 浜у搧閲嶉噺 + //} + ], DAA001: [], + show: false,//鍒楄〃灞曠ず + actions: [],//鍒楄〃鐨勫�� + xt:"", } }, mounted() { @@ -131,8 +144,6 @@ that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); }); }, - - productBinding() { if (this.isLoading) { @@ -204,15 +215,37 @@ if (matchedItem.is_hedui === "1") { that.$toast("宸叉牳瀵�"); } else { - that.$set(matchedItem, 'is_hedui', "1"); - that.$playSound('success'); - that.$notify({ type: 'success', message: "鏍稿鎴愬姛" }); - that.LsBar = ""; - // 妫�鏌ユ槸鍚︽墍鏈夎閮藉凡鏍稿 - const allChecked = that.XbarInfo.every(item => item.is_hedui === "1"); - if (allChecked && that.XbarInfo.length > 0) { - that.submitAllChecked(); - } + + that.AxiosHttp("post", 'Womdaa/GetWeightByXt', { + LsBar: that.LsBar, + userName: that.userInfo.loginAccount + }, false) + .then(function (res) { + var json = res; + if (json.status == 0) { + var weigth = json.data.tbBillList.weight; + that.$set(matchedItem, 'is_hedui', "1"); + that.$set(matchedItem, 'weight', weigth); + that.$playSound('success'); + that.$notify({ type: 'success', message: "鏍稿鎴愬姛" }); + that.LsBar = ""; + // 妫�鏌ユ槸鍚︽墍鏈夎閮藉凡鏍稿 + const allChecked = that.XbarInfo.every(item => item.is_hedui === "1"); + if (allChecked && that.XbarInfo.length > 0 && that.XbarInfo.length === that.Xvalue) { + that.submitAllChecked(); + } + } + else { + that.$playSound('error'); + that.$toast.fail(json.message); + } + that.isLoading = false; + }) + .catch(function (error) { + that.isLoading = false; + that.$playSound('error'); + that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); + }); } } else { that.$playSound('error'); @@ -220,6 +253,10 @@ } that.LsBar = ""; // 娓呯┖杈撳叆妗� + }, + + handleClear() { + }, // 鏂板鏂规硶锛氭彁浜ゆ墍鏈夊凡鏍稿鐨勬暟鎹� @@ -310,5 +347,20 @@ that.$refs.KbBar.focus(); }); }, + + onSelect(item) { + // 榛樿鎯呭喌涓嬬偣鍑婚�夐」鏃朵笉浼氳嚜鍔ㄦ敹璧� + // 鍙互閫氳繃 close-on-click-action 灞炴�у紑鍚嚜鍔ㄦ敹璧� + this.show = false; + console.log(item); + // 姝e垯鍖归厤绗竴涓柟鎷彿鍐呭 + const regex = /\[([^\]]+)\]/; + const matchResult = item.name.match(regex); + this.xt = item.name; + //this.$toast(item.name); + + }, + + } }) \ No newline at end of file -- Gitblit v1.9.3