From 2edeef58633a0a303c243f1b8fcc85b79780eea1 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期二, 15 四月 2025 16:45:08 +0800 Subject: [PATCH] 1.采购退货优化 2.生产补料优化 3.生产领料优化 4.生产退料优化 --- H5/Js/PurchaseReturn.js | 32 ++++---------------------------- 1 files changed, 4 insertions(+), 28 deletions(-) diff --git a/H5/Js/PurchaseReturn.js b/H5/Js/PurchaseReturn.js index b2618f8..d836ded 100644 --- a/H5/Js/PurchaseReturn.js +++ b/H5/Js/PurchaseReturn.js @@ -14,7 +14,7 @@ quantity:0 }, formData: {}, - tableData: [], + ItemDetail: [], codeTableData: [], itemOutNoList: [], itemOutNoStr: [], @@ -148,46 +148,22 @@ .then(function (res) { var json = res; if (json.status == 0) { - that.tableData = json.data.tbBillList.sumItem; - that.scanFormData.itemNo = json.data.tbBillList.itemNo - //that.scanFormData.quantity = json.data.tbBillList.quantity - //console.log(json); + that.ItemDetail = json.data.tbBillList; that.$refs.barcode.focus(); } else { that.$toast.fail(json.message); + that.ItemDetail = []; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); - console.log(error); + that.ItemDetail = []; }); }, - //getScanBarcode() { - // var that = this; - // that.isLoading = true; - // that.AxiosHttp("post", 'MesInvItemOuts/GetScanBarcode', { - // id: that.formData.guid - // }, false) - // .then(function (res) { - // var json = res; - // if (json.status == 0) { - // that.codeTableData = res.data.tbBillList; - // } - // else { - // that.$toast.fail(json.message); - // } - // that.isLoading = false; - // }) - // .catch(function (error) { - // that.isLoading = false; - // that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); - // console.log(error); - // }); - //}, SaveBarCodes() { //if (!this.scanFormData.barcode) { -- Gitblit v1.9.3