From 8e054708c2f95eeadb95648300504c0dee129fee Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 05 四月 2024 16:40:00 +0800
Subject: [PATCH] #
---
pages/phyz/stationManage/stationDetl.vue | 90 +++++++++++++++++++++++++++++++++++++++------
1 files changed, 78 insertions(+), 12 deletions(-)
diff --git a/pages/phyz/stationManage/stationDetl.vue b/pages/phyz/stationManage/stationDetl.vue
index 7ae41fe..0b6a9ac 100644
--- a/pages/phyz/stationManage/stationDetl.vue
+++ b/pages/phyz/stationManage/stationDetl.vue
@@ -18,11 +18,25 @@
<!-- 宸ヤ綔妗� -->
<view class="wrkMast">
- <view >宸ヤ綔鍙�</view>
- <view>宸ヤ綔绫诲瀷</view>
- <view>婧愬簱浣�</view>
+ <view class="wrkMast-wrkNo">
+ <view style="flex:3">宸ヤ綔鍙�: {{wrkMast.wrkNo}}</view>
+ <view style="flex:1">{{wrkMast.ioTitle}}</view>
+ </view>
+ <view>宸ヤ綔绫诲瀷: {{wrkMast.ioType$}}</view>
+ <view>婧愬簱浣�: {{wrkMast.sourceLocNo}}</view>
</view>
+ <!-- 鏄庣粏 -->
+ <view class="wrkDetls">
+ <view class="wrkDetl" v-for="wrkDetl in wrkDetls">
+ <view>鍟嗗搧鍚嶇О</view>
+ <view>鍟嗗搧缂栫爜</view>
+ <view>鏁伴噺</view>
+ <view>閿�鍞鍗曞彿</view>
+ </view>
+ </view>
+
+ <view style="height: 140rpx;"></view>
<!-- 寮圭獥 -->
<view>
@@ -92,7 +106,9 @@
containerType: '',
selects: [],
option: '',
- isOpen: false
+ isOpen: false,
+ wrkMast: '',
+ wrkDetls: []
}
},
onShow() {
@@ -292,9 +308,35 @@
success(res) {
res = res.data
if (res.code === 200) {
- for (let item of res.data.records) {
-
+ if (res.data.records[0].ioType == 1) {
+ res.data.records[0]['ioTitle'] = '鍏ュ簱'
+ } else if (res.data.records[0].ioType == 10) {
+ res.data.records[0]['ioTitle'] = '绌烘澘鍏ュ簱'
+ } else if (res.data.records[0].ioType == 53) {
+ res.data.records[0]['ioTitle'] = '鎷f枡鍐嶅叆搴�'
}
+ _this.wrkMast = res.data.records[0]
+ _this.getWrkDetl(_this.wrkMast.wrkNo)
+ }
+ }
+ })
+ },
+ // 鑾峰彇宸ヤ綔鏄庣粏
+ getWrkDetl(wrkNo) {
+ let _this = this
+ uni.request({
+ url: `${_this.baseUrl}/agv/wrkDetl/list/auth`,
+ header: {'token': uni.getStorageSync('token')},
+ data: {
+ curr: 1,
+ limit: 1000,
+ wrk_no: wrkNo
+ },
+ method: 'GET',
+ success(res) {
+ res = res.data
+ if (res.code === 200) {
+ _this.wrkDetls = res.data.records
}
}
})
@@ -305,14 +347,15 @@
<style>
@import url('../../../static/css/common/order.css');
+
+ .station {
+ font-size: 18px;
+ padding: 24rpx;
+ }
.station-title {
font-size: 32px;
font-weight: bold;
padding: 24rpx 0;
- }
- .station {
- font-size: 18px;
- padding: 24rpx;
}
.station-barcode {
font-size: 24px;
@@ -330,10 +373,33 @@
.wrkMast {
-
+ background-color: #0083ff;
+ color: #fff;
+ margin-top: 10rpx;
+ font-size: 18px;
+ padding: 24rpx;
+ }
+ .wrkMast-wrkNo {
+ font-size: 32px;
+ font-weight: bold;
+ padding: 24rpx 0;
+ display: flex;
}
-
+ .wrkDetls {
+ background-color: #2299ff;
+ color: #fff;
+ margin-top: 10rpx;
+ font-size: 18px;
+ padding: 24rpx;
+ }
+ .wrkDetl {
+ padding: 16rpx 0;
+ border-bottom: 1px solid #FFF;
+ }
+ .wrkDetl:last-child {
+ border-bottom: none;
+ }
--
Gitblit v1.9.1