From dadb0c0eb3e8c0e494816c2c4d8a04e0d258eb12 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期一, 08 四月 2024 22:19:29 +0800
Subject: [PATCH] #
---
pages/phyz/stationManage/stationManage.vue | 48 +++++++++++++++++++++++++++++++++---------------
1 files changed, 33 insertions(+), 15 deletions(-)
diff --git a/pages/phyz/stationManage/stationManage.vue b/pages/phyz/stationManage/stationManage.vue
index 92ba2fd..ad329dc 100644
--- a/pages/phyz/stationManage/stationManage.vue
+++ b/pages/phyz/stationManage/stationManage.vue
@@ -8,8 +8,8 @@
<view class="list" :class="item.style" v-if="stations" v-for="item in stations">
<view class="list-left">
<view>宸ヤ綅缂栧彿锛歿{item.devNo}}</view>
- <view>宸ヤ綅鐘舵�侊細{{item.locSts$}}</view>
- <view>鏉″舰鐮侊細{{item.barcode}}</view>
+ <view>绔欑偣鐘舵�侊細{{item.locSts$}}</view>
+ <view>璐ф灦鐮侊細{{item.barcode}}</view>
<view>绔欑偣绫诲瀷锛歿{item.locType1$}}</view>
<!-- <view class="card-id">{{i + 1}}</view> -->
</view>
@@ -17,17 +17,16 @@
<uni-icons type="right" color="#fff"></uni-icons>
</view>
</view>
- <view class="list" style="background-color: #3eb689;color: #fff;" v-if="station">
+ <!-- <view class="list" style="background-color: #3eb689;color: #fff;" v-if="station">
<view class="list-left">
<view>宸ヤ綅缂栧彿锛歿{station.devNo}}</view>
- <view>宸ヤ綅鐘舵�侊細{{station.locSts$}}</view>
+ <view>绔欑偣鐘舵�侊細{{station.locSts$}}</view>
<view>鏉″舰鐮侊細{{station.barcode}}</view>
- <!-- <view class="card-id">{{i + 1}}</view> -->
</view>
<view class="list-right" @click="getOrderDetl(item)">
<uni-icons type="right" color="#fff"></uni-icons>
</view>
- </view>
+ </view> -->
<view class="list" style="background-color: #019fe8;color: #fff;" v-if="wrkMast">
<view class="list-left">
<view>宸ヤ綔鍙凤細{{wrkMast.wrkNo}}</view>
@@ -118,18 +117,17 @@
option: 'pick'
}
},
- onLoad() {
+ onShow() {
this.baseUrl = uni.getStorageSync('baseUrl');
this.token = uni.getStorageSync('token');
this.getBasDevp('all')
- },
- onShow() {
-
+ this.searchValueFocus = true
},
methods: {
searchValueInput() {
if (this.searchValue == '') {
this.station = ''
+ this.stations = []
this.wrkMast = ''
this.wrkDetls = []
} else {
@@ -165,15 +163,15 @@
}
_this.stations = res.data.records
} else {
+ res.data.records
for (let item of res.data.records) {
- _this.station = item
- if (item.barcode) {
- _this.getWrkMast(item.barcode)
- _this.getWaitPakin(item.barcode)
-
+ if (item.locSts != 'O') {
+ item['style'] = 'station-wrk'
} else {
+ item['style'] = 'station-nowrk'
}
}
+ _this.getOrderDetl(res.data.records[0])
}
}
@@ -370,6 +368,26 @@
reviseConfirm() {
this.startPakin('empty')
this.$refs.revise.close()
+ },
+ // 鍓嶅線绔欑偣鏄庣粏椤甸潰
+ getOrderDetl(e) {
+ let _this = this
+ uni.navigateTo({
+ url: "./stationDetl",
+ success: function(res) {
+ // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� 鍚戝彟澶栦竴涓〉闈紶閫掑�肩殑
+ res.eventChannel.emit('item', {
+ item: e
+ }),
+ _this.searchValue = ''
+ },
+ events: {
+ // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� 鍙﹀涓�涓〉闈紶杩囨潵鐨�
+ acceptDataFromOpenedPage: function(data) {
+ _this.searchValueFocus = true
+ },
+ },
+ });
}
}
}
--
Gitblit v1.9.1