From c48093016b1511ce8b33ffb49062a3bf7a1aed16 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期四, 06 六月 2024 08:24:10 +0800
Subject: [PATCH] Merge branch 'phyzasrs' of http://47.97.1.152:5880/r/wms_app into phyzasrs
---
pages/phyz/stationManage/stationManage.vue | 57 ++++++++++++++++++++++++++++++++++-----------------------
1 files changed, 34 insertions(+), 23 deletions(-)
diff --git a/pages/phyz/stationManage/stationManage.vue b/pages/phyz/stationManage/stationManage.vue
index ad329dc..217b386 100644
--- a/pages/phyz/stationManage/stationManage.vue
+++ b/pages/phyz/stationManage/stationManage.vue
@@ -1,5 +1,5 @@
<template>
- <view>
+ <view style="font-size: 14px;">
<view class="code">
<uni-search-bar :focus="searchValueFocus" v-model="searchValue" @input="searchValueInput()"
maxlength="500" ancel="cancel" @clear="clear" placeholder="杈撳叆 / 鎵弿 绔欑偣鍙�">
@@ -173,7 +173,11 @@
}
_this.getOrderDetl(res.data.records[0])
}
-
+ } else if (res.code == 403) {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
+ } else {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
}
}
})
@@ -197,6 +201,11 @@
_this.waitPakins = res.data.records
// _this.getWrkDetl(item.wrkNo)
}
+ } else if (res.code == 403) {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
+ } else {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
}
}
})
@@ -220,6 +229,11 @@
_this.wrkMast = item
_this.getWrkDetl(item.wrkNo)
}
+ } else if (res.code == 403) {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
+ } else {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
}
}
})
@@ -240,6 +254,11 @@
res = res.data
if (res.code === 200) {
_this.wrkDetls = res.data.records
+ } else if (res.code == 403) {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
+ } else {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
}
}
})
@@ -262,12 +281,11 @@
_this.wrkDetls = []
_this.waitPakins = []
},100)
+ } else if (res.code == 403) {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
} else {
- uni.showToast({ title: res.msg, icon: "error", position: 'top' })
- setTimeout(()=> {
- _this.searchValue = ''
- _this.getBasDevp()
- },2000)
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
}
}
})
@@ -292,12 +310,11 @@
_this.wrkDetls = []
_this.waitPakins = []
},100)
+ } else if (res.code == 403) {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
} else {
- uni.showToast({ title: res.msg, icon: "error", position: 'top' })
- setTimeout(()=> {
- _this.searchValue = ''
- _this.getBasDevp()
- },2000)
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
}
}
})
@@ -340,16 +357,10 @@
position: 'top'
})
} else if (res.code == 403) {
- that.messageText = res.msg
- that.messageToggle('error')
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
} else {
- that.messageText = res.msg
- that.messageToggle('error')
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
}
}
});
@@ -378,14 +389,14 @@
// 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� 鍚戝彟澶栦竴涓〉闈紶閫掑�肩殑
res.eventChannel.emit('item', {
item: e
- }),
+ })
_this.searchValue = ''
},
events: {
// 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� 鍙﹀涓�涓〉闈紶杩囨潵鐨�
acceptDataFromOpenedPage: function(data) {
_this.searchValueFocus = true
- },
+ }
},
});
}
--
Gitblit v1.9.1