From 409c7f4171e4c5689eda68bb1e52ae7ae2905c8d Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期四, 13 二月 2025 13:43:37 +0800 Subject: [PATCH] 1.成品入库初步 2.其他入库优化 --- H5/Js/Scbl.js | 40 +++++++++++++++++++++++++++------------- 1 files changed, 27 insertions(+), 13 deletions(-) diff --git a/H5/Js/Scbl.js b/H5/Js/Scbl.js index 97962e9..23ead55 100644 --- a/H5/Js/Scbl.js +++ b/H5/Js/Scbl.js @@ -8,10 +8,12 @@ "loginAccount": '', }, sms: "", - num:"", - billNo:"", + num: "", + type: "", + billNo: "", + selectType: "", daa001: "", - barcode:"", + barcode: "", ItemBlDetail:[], modeInfo: [], active: 0, @@ -25,6 +27,8 @@ loginGuid: this.GetLoginInfor().loginGuid, loginAccount: this.GetLoginInfor().loginAccount, }; + this.type = this.Request("type"); + selectType = this.type == "bl" ? selectType = "鐢熶骇琛ユ枡" : selectType = "鐢熶骇瓒呴"; }, methods: { getInfo() { @@ -32,8 +36,11 @@ var that = this; that.isLoading = true; + + + that.AxiosHttp("post", 'MesItemBl/GetSCBLBillNo', { - type: "鐢熶骇琛ユ枡", + type: selectType, }, false) .then(function (res) { var json = res; @@ -77,13 +84,13 @@ that.isLoading = true; that.AxiosHttp("post", 'MesItemBl/GetMesItemBlDetailByBillNo', { billNo: that.billNo, - type: "鐢熶骇琛ユ枡" + type: selectType }, false) .then(function (res) { var json = res; if (json.status == 0) { - that.ItemBlDetail = json.data.tbBillList.item; - that.daa001 = json.data.tbBillList.bl001; + that.ItemBlDetail = json.data.tbBillList.item2; + that.daa001 = json.data.tbBillList.item1; } else { that.$toast.fail(json.message); @@ -132,17 +139,23 @@ userName: that.userInfo.loginAccount, barcode: that.barcode, blNo: that.billNo, - billNo: that.daa001 + billNo: that.daa001, + type: selectType }, false) .then(function (res) { var json = res; if (json.status == 0) { - that.barcode = json.data.tbBillList.item.barcode; - that.sms = json.data.tbBillList.item.fum; - that.num = json.data.tbBillList.item.num; - that.ItemBlDetail = json.data.tbBillList.pendingList + that.barcode = null; + that.sms = null; + that.num = null; + //that.ItemBlDetail = json.data.tbBillList.item2 that.$notify({ type: 'success', message: '鎵弿鎴愬姛' }); + that.GetMesItemBlDetailByBillNo(); + } else if (json.status == 2) { + that.$refs.splitNum.focus(); + that.scanInfo.splitNum = json.data.tbBillList.splitNum; + that.scanInfo.barcodeNum = json.data.tbBillList.barcodeNum; } else { that.$toast.fail(json.message); @@ -196,7 +209,8 @@ barcode: that.barcode, blNo: that.billNo, billNo: that.daa001, - num: that.sms + num: that.sms, + type: selectType }, false) .then(function (res) { var json = res; -- Gitblit v1.9.3