From 806007c405aad9c6caa0e9ca31f4e460edb47c53 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 16 七月 2024 10:14:09 +0800
Subject: [PATCH] #
---
pages/out/checkOut.vue | 24 ++++++++++++++++++++----
manifest.json | 4 ++--
2 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/manifest.json b/manifest.json
index 0120ced..225d20a 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "涓壃WMS",
"appid" : "__UNI__DA5854D",
"description" : "",
- "versionName" : "2024031401",
- "versionCode" : "100",
+ "versionName" : "2024071601",
+ "versionCode" : 101,
"transformPx" : false,
/* 5+App鐗规湁鐩稿叧 */
"app-plus" : {
diff --git a/pages/out/checkOut.vue b/pages/out/checkOut.vue
index 974e0ac..bc53f97 100644
--- a/pages/out/checkOut.vue
+++ b/pages/out/checkOut.vue
@@ -135,6 +135,7 @@
matFocus: false,
matData: '',
removeNum: 0,
+ targetBatch: ''
}
},
onLoad() {
@@ -152,9 +153,11 @@
// barcode input 浜嬩欢
barcodeInput() {
let _this = this
- // let barcode = this.barcode.split(",")
- // _this.barcode = barcode[0]
- // let batch = barcode[0]
+ let barcode = this.barcode.split(" ")
+ console.log(barcode);
+ this.targetBatch = barcode[1].slice(3)
+ console.log(this.targetBatch);
+ console.log(this.barcode);
uni.request({
url: _this.baseUrl + '/mobile/wrkDetl/search/batch/auth',
header: {'token': uni.getStorageSync('token')},
@@ -165,6 +168,17 @@
console.log(res);
if (res.code === 200) {
_this.dataList.push(res.data)
+ } else if (res.code == 403) {
+ _this.messageText = res.msg
+ _this.messageToggle('error')
+ setTimeout(() => {
+ uni.reLaunch({
+ url: '../login/login'
+ });
+ }, 1000);
+ } else {
+ _this.messageText = res.data
+ _this.messageToggle('error')
}
}
@@ -355,7 +369,7 @@
let that = this;
uni.request({
url: that.baseUrl + '/mobile/order/search/batch/auth',
- data: that.barcode,
+ data: that.targetBatch,
method: 'POST',
header: {'token': uni.getStorageSync('token')},
method:'POST',
@@ -391,6 +405,7 @@
resetConfirm() {
this.dataList = []
this.barcode = ''
+ this.targetBatch = ''
this.messageText = "閲嶇疆瀹屾垚"
this.messageToggle('success')
},
@@ -402,6 +417,7 @@
resst() {
this.dataList = []
this.barcode = ''
+ this.targetBatch = ''
this.barcodeFocuss()
},
}
--
Gitblit v1.9.1