| | |
| | | </view>
|
| | | <view class="line" v-else>
|
| | | <text class="label">合同单号</text>
|
| | | <text class="value">{{ item.contractNum }}</text>
|
| | | <text class="value" style="word-break: break-all;">{{ item.contractNum }}</text>
|
| | | <text class="primaryColor" @click="subDetail(item)">预约详情</text>
|
| | | </view> |
| | | <view class="line line2" v-if="item.billCode && item.wmsContractNum"> |
| | | <text class="label">合同单号</text> |
| | | <text class="value">{{ item.wmsContractNum }}</text> |
| | | <text class="value" style="word-break: break-all;">{{ item.wmsContractNum }}</text> |
| | | </view>
|
| | | <view class="line">
|
| | | <text class="label">驾驶员</text>
|
| | |
| | | <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>
|
| | |
| | | </view>
|
| | | <view class="line" v-else>
|
| | | <text class="label">合同单号</text>
|
| | | <text class="value">{{ item.contractNum }}</text>
|
| | | <text class="value" style="word-break: break-all;">{{ item.contractNum }}</text>
|
| | | <text class="primaryColor" @click="subDetail(item)">预约详情</text>
|
| | | </view> |
| | | <view class="line line2" v-if="item.billCode && item.wmsContractNum"> |
| | | <text class="label">合同单号</text> |
| | | <text class="value">{{ item.wmsContractNum }}</text> |
| | | <text class="value" style="word-break: break-all;">{{ item.wmsContractNum }}</text> |
| | | </view>
|
| | | <view class="line">
|
| | | <text class="label">驾驶员</text>
|
| | |
| | | <text class="label">运输公司</text>
|
| | | <text class="value">{{ item.carrierName }}</text>
|
| | | </view>
|
| | | <view class="btns">
|
| | | <view class="btns" style="display: flex; align-items: center; justify-content: space-between;">
|
| | | <text style="color: #279BAA; font-size: 14px; font-weight: 400;" v-if="item.signDate">签到时间:{{item.signDate.substring(5, 10)}} {{item.signDate.substring(11, 16)}}</text>
|
| | | <text v-else></text>
|
| | | <view class="btn active" @click="handleCall(item)">叫号</view>
|
| | | </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()
|
| | | })
|
| | | }
|
| | | }
|
| | | })
|
| | | }
|
| | | }
|
| | | }
|