From a1272018d3c8d0b5a520ab53588518122f6b5bf6 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期六, 15 二月 2025 14:26:06 +0800 Subject: [PATCH] 1.生产报工界面交互优化 2.其他入库界面交互优化 --- H5/Js/Qtrk.js | 27 +++++++++++++++++++++------ H5/Qtrk.aspx | 9 ++++++--- H5/Js/Scbg.js | 3 ++- H5/Scbg.aspx | 2 +- 4 files changed, 30 insertions(+), 11 deletions(-) diff --git a/H5/Js/Qtrk.js b/H5/Js/Qtrk.js index e095587..5ba8212 100644 --- a/H5/Js/Qtrk.js +++ b/H5/Js/Qtrk.js @@ -95,12 +95,20 @@ console.log(error); }); }, - getSectionCode(value) { + getSectionCode() { var that = this; - that.sectionCode = value; + //that.sectionCode = value; - if (!that.barcode) { - this.$toast.fail("鏉$爜涓嶈兘涓虹┖"); + //if (!that.barcode) { + // this.$toast.fail("鏉$爜涓嶈兘涓虹┖"); + // that.isLoading = false; + // return; + //} + + if (!that.billNo) { + this.$toast.fail("鐢宠鍗曞彿涓嶈兘涓虹┖"); + that.$refs.sectionCode.focus(); + that.sectionCode = null; that.isLoading = false; return; } @@ -110,6 +118,7 @@ that.isLoading = false; return; } + that.AxiosHttp("post", 'MesItemQtrk/ScanInDepotsQT', { billNo: that.billNo, sectionCode: that.sectionCode @@ -118,9 +127,12 @@ var json = res; if (json.status == 0) { that.$notify({ type: 'success', message: json.data.tbBillList }); + that.$refs.barcode.focus(); } else { that.$toast.fail(json.message); + that.$refs.sectionCode.focus(); + that.sectionCode = null; } that.isLoading = false; }) @@ -130,9 +142,9 @@ console.log(error); }); }, - getBarcode(value) { + getBarcode() { - this.barcode = value; + //this.barcode = value; var that = this; that.isLoading = true; @@ -177,10 +189,13 @@ that.barcode = null; that.ItemBlDetail = json.data.items; that.$notify({ type: 'success', message: '鎵弿鎴愬姛' }); + that.$refs.barcode.focus(); //that.GetMesItemBlDetailByBillNo() } else { that.$toast.fail(json.message); + that.$refs.barcode.focus(); + that.barcode = null; } that.isLoading = false; }) diff --git a/H5/Js/Scbg.js b/H5/Js/Scbg.js index d85e8e6..1704dd3 100644 --- a/H5/Js/Scbg.js +++ b/H5/Js/Scbg.js @@ -119,7 +119,7 @@ var json = res; if (json.status == 0) { - let entity = json.data.tbBillList; + let entity = json.data.result; that.taskNo = entity.taskNo; //宸ュ崟鍙� that.itemNo = entity.itemNo; //鐗╂枡缂栧彿 that.planQty = entity.planQty; //璁″垝鏁伴噺 @@ -129,6 +129,7 @@ that.itemName = entity.itemName; //鐗╂枡鍚嶇О that.itemModel = entity.itemModel; //鐗╂枡鍨嬪彿 that.$notify({ type: 'success', message: '鎵弿鎴愬姛' }); + that.barcode = null; } else { that.$toast.fail(json.message); diff --git a/H5/Qtrk.aspx b/H5/Qtrk.aspx index 2c2bbb0..e67e20a 100644 --- a/H5/Qtrk.aspx +++ b/H5/Qtrk.aspx @@ -28,20 +28,22 @@ <van-button size="small" type="info" plain @click="getInfo" >閫夋嫨</van-button> </template></van-field> <van-field + ref="sectionCode" value="" label="搴撲綅缂栫爜" clearable v-model="sectionCode" - @input="getSectionCode" + @change="getSectionCode" :right-icon-size="19" placeholder="搴撲綅缂栫爜" ></van-field> <van-field + ref="barcode" value="" label="鐗╂枡鏉$爜" clearable placeholder="璇锋壂鐮�" - @input="getBarcode" + @change="getBarcode" :right-icon-size="19" v-model="barcode" v-focus.noKeyboard @@ -54,6 +56,7 @@ :right-icon-size="19" v-model="itemNo" v-focus.noKeyboard + disabled ></van-field> <van-field value="" @@ -86,5 +89,5 @@ <comback ></comback> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> - <script src="Js/Qtrk.js?<%=1235 %>"></script> + <script src="Js/Qtrk.js?<%=1237 %>"></script> </asp:Content> diff --git a/H5/Scbg.aspx b/H5/Scbg.aspx index fa9e6ea..d5d5d85 100644 --- a/H5/Scbg.aspx +++ b/H5/Scbg.aspx @@ -128,5 +128,5 @@ <comback ></comback> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> - <script src="Js/Scbg.js?<%=12323 %>"></script> + <script src="Js/Scbg.js?<%=12324 %>"></script> </asp:Content> -- Gitblit v1.9.3