H5/Js/Qtrk.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Js/Scbg.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Qtrk.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
H5/Scbg.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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; }) 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); 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> 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>