From a056b108848790f409aba7fb245fedb8a224e35b Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期二, 18 二月 2025 08:14:09 +0800
Subject: [PATCH] #
---
pages/phyz/checkLocDetl/locDetlList.vue | 49 ++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 42 insertions(+), 7 deletions(-)
diff --git a/pages/phyz/checkLocDetl/locDetlList.vue b/pages/phyz/checkLocDetl/locDetlList.vue
index b1cf4ef..61c4e70 100644
--- a/pages/phyz/checkLocDetl/locDetlList.vue
+++ b/pages/phyz/checkLocDetl/locDetlList.vue
@@ -71,6 +71,7 @@
orderNo: '',
threeCode: '',
processSts$: '',
+ type: '',
processSts$List: ['寰呭姞宸�','宸插姞宸�','鏃犻渶鍔犲伐']
}
},
@@ -81,17 +82,51 @@
// const eventChannel = this.$scope.eventChannel; // 鍏煎APP-NVUE
const eventChannel = this.getOpenerEventChannel();
// 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- eventChannel.on('item', function(data) {
+ // eventChannel.on('item', function(data) {
+ // console.log(data);
+ // _this.locNo = data.item.locNo
+ // _this.barcode = data.item.barcode
+ // for (let k of data.item.data) {
+ // k['count'] = k.anfme
+ // }
+ // _this.dataList = data.item.data
+ // })
+ eventChannel.on('baseInfo', function(data) {
console.log(data);
- _this.locNo = data.item.locNo
- _this.barcode = data.item.barcode
- for (let k of data.item.data) {
- k['count'] = k.anfme
- }
- _this.dataList = data.item.data
+ _this.getLocDetl(data.info.locNo,data.info.barcode)
+ _this.locNo = data.info.locNo
+ _this.barcode = data.info.barcode
+ _this.type = data.info.type
})
},
methods: {
+ getLocDetl(locNo,barcode) {
+ let _this = this
+ let param = {locNo:locNo,containerCode: barcode}
+ uni.request({
+ url: `${_this.baseUrl}/agvMobile/check/detl/v1`,
+ header: {'token': uni.getStorageSync('token')},
+ data: param,
+ method: 'POST',
+ success(res) {
+ res = res.data
+ console.log(res);
+ if (res.code === 200) {
+ if (_this.type == 'con') {
+ _this.dataList = res.data.containerCode
+ } else {
+ _this.dataList = res.data.locNo
+ }
+
+ } 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' })
+ }
+ }
+ })
+ },
add() {
let _this = this
uni.navigateTo({
--
Gitblit v1.9.1