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/cprk.js | 22 ++++++++++++++++------
1 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/H5/Js/cprk.js b/H5/Js/cprk.js
index 7977ac9..1b9f066 100644
--- a/H5/Js/cprk.js
+++ b/H5/Js/cprk.js
@@ -51,14 +51,22 @@
var json = res;
if (json.status == 0) {
//that.formData.sectionCode = json.data.tbBillList;
- that.$refs.barcode.focus();
+
+
+ if (that.formData.barcode == "" || that.formData.barcode == null) {
+ that.$refs.barcode.focus();
+ that.isLoading = false;
+ } else {
+ that.getScan();
+ }
}
else {
that.$toast.fail(json.message);
that.formData.sectionCode = null;
that.$refs.sectionCode.focus();
+ that.isLoading = false;
}
- that.isLoading = false;
+
})
.catch(function (error) {
@@ -89,6 +97,7 @@
//that.formData.sumQuantity = json.data.tbMesItems.quantity;
if (that.formData.sectionCode == "" || that.formData.sectionCode == null) {
that.$refs.sectionCode.focus();
+ that.isLoading = false;
} else {
that.getScan();
}
@@ -97,9 +106,9 @@
that.$toast.fail(json.message);
that.$refs.barcode.focus();
that.formData.barcode = null;
+ that.isLoading = false;
}
- that.$notify({ type: 'success', message: json.message });
- that.isLoading = false;
+
})
.catch(function (error) {
that.isLoading = false;
@@ -120,7 +129,7 @@
return;
}
that.isLoading = true;
- that.AxiosHttp("post", 'MesBarCF/CPRK', {
+ that.AxiosHttp("post", 'MesCprk/CPRK', {
userName: that.userInfo.loginAccount,
sectionCode: that.formData.sectionCode,
barcode: that.formData.barcode,
@@ -136,7 +145,8 @@
}
else {
that.$toast.fail(json.message);
- that.$refs.cfNum.focus();
+ that.$refs.barcode.focus();
+ that.formData.barcode = null;
}
that.isLoading = false;
})
--
Gitblit v1.9.3