|
|
@ -12,7 +12,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="mt20"> |
|
|
|
<view class="mt20"> |
|
|
|
关联任务编号: |
|
|
|
关联任务编号:{{details.info.install && details.info.install.no}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
@ -87,7 +87,8 @@ |
|
|
|
确认完工 |
|
|
|
确认完工 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="button primaryColor" @click="handleConfirmCompletion"> |
|
|
|
<view class="button primaryColor" @click="handleConfirmCompletion" |
|
|
|
|
|
|
|
v-if="details.buttonPermissionObj.confirmAOG"> |
|
|
|
确认到货 |
|
|
|
确认到货 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
@ -347,6 +348,28 @@ |
|
|
|
|
|
|
|
|
|
|
|
return false |
|
|
|
return false |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
/** 确认到货 */ |
|
|
|
|
|
|
|
confirmAOG: computed(() => { |
|
|
|
|
|
|
|
const { id } = details.userInfo |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log('id :>> ', id); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { installSales, installWork } = details.info as any |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (utils.getObjType(installSales) !== 'object' || utils.getObjType(installWork) !== 'object') return false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!installWork.work_user_ids || !installWork.work_user_ids.includes(id)) return false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (installSales.type === 5 || installSales.type === 6) return true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const _status = Number(installSales.status) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const whiteArr = [4] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (whiteArr.includes(_status)) return true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false |
|
|
|
|
|
|
|
}), |
|
|
|
/** 确认指派 */ |
|
|
|
/** 确认指派 */ |
|
|
|
confirmAssign: computed(() => { |
|
|
|
confirmAssign: computed(() => { |
|
|
|
console.log('Number(details.userInfo.role_code) :>> ', Number(details.userInfo.role_code)); |
|
|
|
console.log('Number(details.userInfo.role_code) :>> ', Number(details.userInfo.role_code)); |
|
|
@ -373,8 +396,6 @@ |
|
|
|
onLoad(async (e) => { |
|
|
|
onLoad(async (e) => { |
|
|
|
console.log('e :>> ', e); |
|
|
|
console.log('e :>> ', e); |
|
|
|
details.pageInfo = JSON.parse(e.pageInfo) |
|
|
|
details.pageInfo = JSON.parse(e.pageInfo) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
onShow(async () => { |
|
|
|
onShow(async () => { |
|
|
|