| | |
| | | <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>
|
| | |
| | | platformMove,
|
| | | platformErr,
|
| | | platformOverNumber,
|
| | | wmsJobDetail
|
| | | wmsJobDetail,
|
| | | restoreWork
|
| | | } from '@/api'
|
| | | import {
|
| | | statusMap
|
| | |
| | | }
|
| | | }
|
| | | })
|
| | | },
|
| | | restore(item) {
|
| | | uni.showModal({
|
| | | content: '您确认要对该任务进行恢复作业吗',
|
| | | success: (res) => {
|
| | | if (res.confirm) {
|
| | | restoreWork({
|
| | | jobId: item.id
|
| | | }).then(ress => {
|
| | | this.showToast('恢复作业成功')
|
| | | this.getPlatformTask()
|
| | | })
|
| | | }
|
| | | }
|
| | | })
|
| | | }
|
| | | }
|
| | | }
|