From bff91e27a649216ee4bbc7a2b321984c054e973e Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 07 二月 2025 19:43:36 +0800
Subject: [PATCH] #
---
pages/phyz/checkLocDetl/locDetlList2.vue | 48 +++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 41 insertions(+), 7 deletions(-)
diff --git a/pages/phyz/checkLocDetl/locDetlList2.vue b/pages/phyz/checkLocDetl/locDetlList2.vue
index 73783f1..987ff47 100644
--- a/pages/phyz/checkLocDetl/locDetlList2.vue
+++ b/pages/phyz/checkLocDetl/locDetlList2.vue
@@ -81,17 +81,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