jiangping
2024-10-21 9f075b3467044ca553b1efcb4668e7a483237152
pda/pages/index/center.vue
@@ -32,9 +32,9 @@
               <view class="status" v-if="item.status == 4">叫号中 {{ item.callDateTemp }}</view>
               <view class="status scs" v-if="item.status == 5">已作业 {{ item.startDateTemp }}</view>
            </view>
            <view class="line" v-if="item.code">
            <view class="line" v-if="item.billCode">
               <text class="label">运输单号</text>
               <text class="value">{{ item.code }}</text>
               <text class="value">{{ item.billCode }}</text>
               <text class="primaryColor" @click="handleDetail(item)">运单详情</text>
            </view>
            <view class="line" v-else>
@@ -246,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)
                  }
               }
            })
@@ -311,8 +315,12 @@
            const index = e.indexs[0]
            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()
               clearInterval(this.timer)
               this.timer = setInterval(() => {
                  this.getPlatformTask()
               }, 60 * 1000)
            }
            this.showPlatformgroup = false
         },