From 7296835f8b7992a94e7f50cfa94331ab0e83b212 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期一, 10 二月 2025 09:14:02 +0800 Subject: [PATCH] 1.生产领料优化 “拆分领料”。 --- H5/Js/Scll.js | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/H5/Js/Scll.js b/H5/Js/Scll.js index 4d57c7b..b87acaf 100644 --- a/H5/Js/Scll.js +++ b/H5/Js/Scll.js @@ -62,6 +62,11 @@ // that.scanInfo = json.data.tbBillList; that.getModel(); } + 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); that.$refs.barcode.focus(); @@ -91,15 +96,22 @@ return; } that.isLoading = true; - that.AxiosHttp("post", 'Womdaa/ScanCode', { + that.AxiosHttp("post", 'Womdaa/ScanCodeCF', { daa001: that.modeInfo.daa001, userName: that.userInfo.loginAccount, barcode: that.scanInfo.barcode, + Num: that.scanInfo.splitNum, }, false) .then(function (res) { var json = res; if (json.status == 0) { - // that.modeInfo = json.data.tbBillList; + // that.modeInfo = json.data.tbBillList; + that.scanInfo.splitNum = null; + that.scanInfo.barcodeNum = null; + that.scanInfo.barcode = null; + that.$notify({ type: 'success', message: json.message }); + that.$refs.barcode.focus(); + that.getModel(); } else { that.$toast.fail(json.message); -- Gitblit v1.9.3