From 852610540a6c4e8391a51858fcc9ef8e8397cc6b Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期二, 16 四月 2024 21:25:12 +0800
Subject: [PATCH] #
---
pages/phyz/checkLocDetl/checkLocDetl.vue | 40 +++++++++++++++++++++++++++++++++++++---
1 files changed, 37 insertions(+), 3 deletions(-)
diff --git a/pages/phyz/checkLocDetl/checkLocDetl.vue b/pages/phyz/checkLocDetl/checkLocDetl.vue
index bd56f44..0a5bd4b 100644
--- a/pages/phyz/checkLocDetl/checkLocDetl.vue
+++ b/pages/phyz/checkLocDetl/checkLocDetl.vue
@@ -65,10 +65,10 @@
bay1: '',
lev1: '',
dataList: [],
-
+ item: ''
}
},
- onLoad() {
+ onShow() {
this.baseUrl = uni.getStorageSync('baseUrl');
this.token = uni.getStorageSync('token');
this.getLocMastList()
@@ -138,8 +138,42 @@
}
})
},
- goToLocDetl() {
+ goToLocDetl(e) {
+ this.locNo = e.locNo
+ this.item = e
+ if (e.locSts == 'S' || e.locSts == 'R') {
+ uni.showToast({ title: '褰撳墠搴撲綅鍦ㄤ綔涓�', icon: "error", position: 'top' })
+ return
+ }
this.$refs.check.open()
+ },
+ checkClose() {
+ this.$refs.check.close()
+ },
+ checkConfirm() {
+ let _this = this
+ let param = {
+ barcode : _this.barcode,
+ locNo : _this.locNo,
+ item: _this.item
+ }
+ uni.navigateTo({
+ url: "./locDetl",
+ success: function(res) {
+ _this.$refs.check.close()
+ // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� 鍚戝彟澶栦竴涓〉闈紶閫掑�肩殑
+ res.eventChannel.emit('item', {
+ item: param
+ })
+ },
+ events: {
+ // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� 鍙﹀涓�涓〉闈紶杩囨潵鐨�
+ acceptDataFromOpenedPage: function(data) {
+ _this.$refs.check.close()
+ _this.getLocMastList()
+ }
+ },
+ });
}
}
--
Gitblit v1.9.1