liukangdong
2024-10-21 4e45a8252d7bccd23a1a57aa541a2ea521760572
pda/pages/index/center.vue
@@ -39,7 +39,8 @@
            </view>
            <view class="line" v-else>
               <text class="label">合同单号</text>
               <text class="value">{{ item.contractNum }}</text>
               <text class="value">{{ item.contractNum }}</text>
               <text class="primaryColor" @click="subDetail(item)">预约详情</text>
            </view>
            <view class="line">
               <text class="label">驾驶员</text>
@@ -103,7 +104,8 @@
                     </view>
                     <view class="line" v-else>
                        <text class="label">合同单号</text>
                        <text class="value">{{ item.contractNum }}</text>
                        <text class="value">{{ item.contractNum }}</text>
                        <text class="primaryColor" @click="subDetail(item)">预约详情</text>
                     </view>
                     <view class="line">
                        <text class="label">驾驶员</text>
@@ -244,27 +246,31 @@
            transformPlatId: '', // 转移记录月台id
            transformId: '', // 转移记录任务id
            wmsInfo: {}
            wmsInfo: {},
            timer: null
         }
      },
      onLoad() {
         this.getPlatformGroup()
         setInterval(() => {
            this.getPlatformGroup()
         }, 1000 * 30)
         // setInterval(() => {
         //    this.getPlatformGroup()
         // }, 1000 * 30)
      },
      methods: {
         getPlatformGroup() {
            getPlatformGroupList({
               queryData: 1,
               queryType: 0
               queryType: 1
            }).then(res => {
               this.platformGroupList = res.data || []
               if (this.platformGroupList.length > 0) {
                  this.activePlatformGroup = this.platformGroupList[0]
                  if (this.activePlatformGroup.platformList && this.activePlatformGroup.platformList.length > 0) {
                     this.activePlatform = this.activePlatformGroup.platformList[0]
                     this.getPlatformTask()
                     this.activePlatform = this.activePlatformGroup.platformList[0]
                     this.getPlatformTask()
                     this.timer = setInterval(() => {
                        this.getPlatformTask()
                     },60 * 1000)
                  }
               }
            })
@@ -306,11 +312,16 @@
            }
         },
         platConfirm(e) {
            const index = e.indexs[0]
            const index = e.indexs[0]
            console.log(index);
            console.log(this.activePlatformGroup);
            this.activePlatformGroup = this.platformGroupList[index]
            if (this.activePlatformGroup.platformList && this.activePlatformGroup.platformList.length > 0) {
               this.activePlatform = this.activePlatformGroup.platformList[0]
               this.getPlatformTask()
               this.activePlatform = this.activePlatformGroup.platformList[0]
               this.getPlatformTask()
               this.timer = setInterval(() => {
                  this.getPlatformTask()
               }, 60 * 1000)
            }
            this.showPlatformgroup = false
         },
@@ -325,6 +336,11 @@
               this.wmsInfo = res.data
               this.showDetail = true
            })
         },
         subDetail(item) {
            uni.navigateTo({
              url: `/pages/index/SubDetail?id=${item.bookId}`
            })
         },
         handleFinish(item) {
            finishWork({