From 82a24ec670ac3d8dc7ed0b10b1885d79b39d473a Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期三, 19 二月 2025 08:29:59 +0800
Subject: [PATCH] 1.缓存更新
---
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