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/BarCfBefore.aspx | 2 +- H5/Js/Qtrk.js | 5 ----- H5/Js/BarCfBefore.js | 4 +++- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/H5/BarCfBefore.aspx b/H5/BarCfBefore.aspx index b394b21..2b5368b 100644 --- a/H5/BarCfBefore.aspx +++ b/H5/BarCfBefore.aspx @@ -73,5 +73,5 @@ <%--<comback ></comback>--%> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> - <script src="Js/BarCfBefore.js?<%=00 %>"></script> + <script src="Js/BarCfBefore.js?<%=001 %>"></script> </asp:Content> diff --git a/H5/Js/BarCfBefore.js b/H5/Js/BarCfBefore.js index 9d8451e..5709a88 100644 --- a/H5/Js/BarCfBefore.js +++ b/H5/Js/BarCfBefore.js @@ -115,10 +115,12 @@ that.$toast.fail("鎷嗗垎鏁伴噺涓嶈兘涓虹┖锛�"); return; } - if (that.formData.cfNum > that.formData.sumQuantity) { + // ... existing code ... + if (parseFloat(that.formData.cfNum) > parseFloat(that.formData.sumQuantity)) { that.$toast.fail("鎷嗗垎鏁伴噺涓嶈兘澶т簬鏉$爜鏁伴噺锛�"); return; } + // ... existing code ... if (that.formData.barcode.length * 1 <= 0) { that.$toast.fail("鐗╂枡鏉$爜涓嶈兘涓虹┖锛�"); return; diff --git a/H5/Js/Qtrk.js b/H5/Js/Qtrk.js index 0b6c397..946ec05 100644 --- a/H5/Js/Qtrk.js +++ b/H5/Js/Qtrk.js @@ -63,11 +63,6 @@ console.log(error); }); }, - onClick(index, title) { - this.$toast(`${index} ${title}`); - this.$notify({ type: 'success', message: '鏌愭煇鐗╂枡鎵爜鎴愬姛鏌愭煇鐗╂枡鎵爜鎴愬姛鏌愭煇鐗╂枡鎵爜鎴愬姛鏌愭煇鐗╂枡鎵爜鎴愬姛' }); - - }, onSelect(item) { // 榛樿鎯呭喌涓嬬偣鍑婚�夐」鏃朵笉浼氳嚜鍔ㄦ敹璧� // 鍙互閫氳繃 close-on-click-action 灞炴�у紑鍚嚜鍔ㄦ敹璧� -- Gitblit v1.9.3