From 0de302f651e3184f9999b9798359064dc39a0600 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期五, 30 五月 2025 14:27:43 +0800
Subject: [PATCH] 出库异常时,提示优化
---
pages/mat/matQuery.vue | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/pages/mat/matQuery.vue b/pages/mat/matQuery.vue
index e3713f5..da55e82 100644
--- a/pages/mat/matQuery.vue
+++ b/pages/mat/matQuery.vue
@@ -153,6 +153,7 @@
if (tagId == null || tagId == '' || tagId == undefined) {
return;
}
+ uni.showLoading({})
uni.request({
url: that.baseUrl + '/mat/list/pda/page/auth',
data: {
@@ -168,6 +169,7 @@
that.tagList = null
var res = result.data
if (res.code === 200) {
+ uni.hideLoading()
if (res.data.records != null && res.data.records.length > 0) {
let list = res.data.records
that.matList = that.reload ? list : that.matList.concat(list);
@@ -178,6 +180,7 @@
}
that.baColor = "background-color: #1cbbb4;"
} else if (res.code === 403 ) {
+ uni.hideLoading()
uni.showToast({title: res.msg, icon: "none", position: 'top'})
setTimeout(() => {
uni.reLaunch({
@@ -185,6 +188,7 @@
});
}, 1000);
} else {
+ uni.hideLoading()
uni.showToast({title: res.msg, icon: "none",position: 'top'})
}
--
Gitblit v1.9.1