From 9ac210a2a52eebcd7ed914c49f9d421bd47f8fcf Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期三, 19 二月 2025 08:22:49 +0800 Subject: [PATCH] 1.生产领料页面交互优化 2.生产补料、超领页面交互优化 --- H5/Js/Scbg.js | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/H5/Js/Scbg.js b/H5/Js/Scbg.js index d308bec..1704dd3 100644 --- a/H5/Js/Scbg.js +++ b/H5/Js/Scbg.js @@ -92,7 +92,7 @@ this.barcode = value; var that = this; - that.isLoading = true; + if (!that.userInfo.loginAccount) { this.$toast.fail("璇烽噸鏂版鏌ョ櫥褰曠姸鎬�"); @@ -106,9 +106,10 @@ if (!that.stafId) { that.$toast.fail("鍛樺伐涓嶅厑璁镐负绌�"); + return; } - + that.isLoading = true; that.AxiosHttp("post", 'MesWorkProd/ScanWork', { userNo: that.userInfo.loginAccount, itemBarcode: that.barcode, @@ -118,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; //璁″垝鏁伴噺 @@ -128,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); -- Gitblit v1.9.3