#
whycq
2024-04-05 8e054708c2f95eeadb95648300504c0dee129fee
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'] = '拣料再入库'
                     }
                     _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;
   }