MrShi
2025-05-07 569c6b3e6b28b2808d22af4656c8f65a973c345e
pda/pages/index/center.vue
@@ -63,6 +63,7 @@
               <view v-if="item.status == 4" class="btn active" @click="handleWork(item)">开始作业</view>
               <view v-if="item.status == 5" class="btn" @click="handleErr(item)">异常挂起</view>
               <view v-if="item.status == 8" class="btn" @click="restore(item)">异常挂起</view>
               <view v-if="item.status == 5 || item.status == 8" class="btn" @click="handleTransform(item)">转移月台</view>
               <view v-if="item.status == 5 || item.status == 8" class="btn active" @click="handleFinish(item)">作业完成</view>
            </view>
@@ -227,7 +228,8 @@
      platformMove,
      platformErr,
      platformOverNumber,
      wmsJobDetail
      wmsJobDetail,
      restoreWork
   } from '@/api'
   import {
      statusMap
@@ -565,6 +567,21 @@
                  }
               }
            })
         },
         restore(item) {
            uni.showModal({
               content: '您确认要对该任务进行恢复作业吗',
               success: (res) => {
                  if (res.confirm) {
                     restoreWork({
                        jobId: item.id
                     }).then(ress => {
                        this.showToast('恢复作业成功')
                        this.getPlatformTask()
                     })
                  }
               }
            })
         }
      }
   }