ll
liukangdong
2024-10-24 8f4771b3b83a496643b72a45a1a9dcb32a6bb2c8
pda/pages/index/center.vue
@@ -50,7 +50,7 @@
               <text class="label">总运输量</text>
               <text class="value">{{ item.totalNum }}万支</text>
            </view>
            <view class="line" v-if="item.type != 4">
            <view class="line" v-if="item.carrierName">
               <text class="label">运输公司</text>
               <text class="value">{{ item.carrierName }}</text>
            </view>
@@ -115,7 +115,7 @@
                        <text class="label">总运输量</text>
                        <text class="value">{{ item.totalNum }}万支</text>
                     </view>
                     <view class="line" v-if="item.type != 4">
                     <view class="line" v-if="item.carrierName">
                        <text class="label">运输公司</text>
                        <text class="value">{{ item.carrierName }}</text>
                     </view>
@@ -182,7 +182,7 @@
         <view class="TransformModal">
            <view class="title">转移月台</view>
            <view class="transform_list">
               <view class="line" @click="transformPlatClick(item)" v-for="item in activePlatformGroup.platformList"
               <view class="line" @click="transformPlatClick(item)" v-for="item in TransferList"
                  :key="item.id">
                  <view class="name">{{ item.name }}</view>
                  <view class="status" :class="{ green: item.workStatus == 1 }">({{ item.workStatus == 0 ? "空闲" : "作业中" }})
@@ -245,7 +245,8 @@
            callType: 1,
            transformPlatId: '', // 转移记录月台id
            transformId: '', // 转移记录任务id
            transformId: '', // 转移记录任务id
            TransferList: [],
            wmsInfo: {},
            timer: null
         }
@@ -256,7 +257,17 @@
         //    this.getPlatformGroup()
         // }, 1000 * 30)
      },
      methods: {
      methods: {
         getTransferList() {
            getPlatformWorkData({
               platformId: this.activePlatform.id
            }).then(res => {
               console.log('res.data', res.data);
               if(res.data && res.data.platformJobList){
                  this.TransferList = res.data.platformJobList
               }
            })
         },
         getPlatformGroup() {
            getPlatformGroupList({
               queryData: 1,
@@ -275,15 +286,19 @@
               }
            })
         },
         getPlatformTask() {
         getPlatformTask() {
            uni.showLoading({title:"加载中..."})
            getPlatformWorkData({
               platformId: this.activePlatform.id
            }).then(res => {
            }).then(res => {
               uni.hideLoading()
               this.platformTaskInfo = res.data
               this.circulInitTaskList()
               setInterval(() => {
                  this.circulInitTaskList()
               }, 1000)
            }, () => {
               uni.hideLoading()
            })
         },
         circulInitTaskList() {
@@ -470,7 +485,8 @@
               activePlatform
            } = this
            this.transformId = item.id
            this.transformPlatId = activePlatform.id
            this.transformPlatId = activePlatform.id
            this.getTransferList()
            this.showTransform = true
         },
         handleErr(item) {