From d62dfe4ab73e23a39753fb13a890effaa25deb51 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期三, 26 二月 2025 13:19:56 +0800 Subject: [PATCH] 1.调拨入库(正常流程通) 2.调拨出库(正常流程通) --- H5/Js/Dbck.js | 29 ++++++++++++++++++++++------- 1 files changed, 22 insertions(+), 7 deletions(-) diff --git a/H5/Js/Dbck.js b/H5/Js/Dbck.js index 04b74cc..4a5a8c4 100644 --- a/H5/Js/Dbck.js +++ b/H5/Js/Dbck.js @@ -83,21 +83,29 @@ var json = res; if (json.status == 0) { that.ItemBlDetail = json.data.tbBillList; + that.$refs.barcode.focus(); + that.barcode = ""; } else { that.$toast.fail(json.message); + that.$refs.billNo.focus(); + that.billNo = ""; + that.ItemBlDetail = null; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); - console.log(error); + that.$refs.billNo.focus(); + that.billNo = ""; + that.ItemBlDetail = null; + //console.log(error); }); }, - getBarcode(value) { + getBarcode() { - this.barcode = value; + //this.barcode = value; var that = this; that.isLoading = true; @@ -130,21 +138,28 @@ if (json.status == 0) { that.itemNo = json.data.form.itemNo; - that.num = json.data.form.num; - that.barcode = json.data.form.barcode; - that.fum = json.data.form.fum; + //that.num = json.data.form.num; + //that.fum = json.data.form.fum; that.ItemBlDetail = json.data.items that.$notify({ type: 'success', message: '鎵爜鎴愬姛' }); + + that.$refs.barcode.focus(); + that.barcode = ""; + //that.GetMesItemBlDetailByBillNo(); } else { that.$toast.fail(json.message); + that.$refs.barcode.focus(); + that.barcode = ""; } that.isLoading = false; }) .catch(function (error) { that.isLoading = false; that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); - console.log(error); + //console.log(error); + that.$refs.barcode.focus(); + that.barcode = ""; }); }, tmcf() { -- Gitblit v1.9.3