|
@ -331,18 +331,18 @@ function handleFinishOrder(row) { |
|
|
if (response.list.length == 0) { |
|
|
if (response.list.length == 0) { |
|
|
message.error(t('请先填写并完成检修明细内容!')) |
|
|
message.error(t('请先填写并完成检修明细内容!')) |
|
|
} else { |
|
|
} else { |
|
|
let unFinishedList = response.list.filter(item => { |
|
|
// let unFinishedList = response.list.filter(item => { |
|
|
return item.status == 1 |
|
|
// return item.status == 1 |
|
|
}) |
|
|
// }) |
|
|
if (unFinishedList != null && unFinishedList.length > 0) { |
|
|
// if (unFinishedList != null && unFinishedList.length > 0) { |
|
|
message.error(t('请先完成各检修明细内容!')) |
|
|
// message.error(t('请先完成各检修明细内容!')) |
|
|
return |
|
|
// return |
|
|
} else { |
|
|
// } else { |
|
|
DeviceInspectionMainApi.finishInspection(row.id).then(res => { |
|
|
DeviceInspectionMainApi.finishInspection(row.id).then(res => { |
|
|
message.success(t('common.finishSuccess')) |
|
|
message.success(t('common.finishSuccess')) |
|
|
getList() |
|
|
getList() |
|
|
}) |
|
|
}) |
|
|
} |
|
|
// } |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
message.error(t('common.finishFail')) |
|
|
message.error(t('common.finishFail')) |
|
|