|
|
|
@ -2173,14 +2173,14 @@ const AppealEditor = () => {
|
|
|
|
|
console.log(form.value.responsibilitiesList); |
|
|
|
|
console.log(form.value.completion); |
|
|
|
|
let completion = form.value; |
|
|
|
|
let _warehouseId = form.value.completion.find(res => !res.warehouseId); |
|
|
|
|
if (_warehouseId) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: `有赔款方或受款方仓库未选择`, |
|
|
|
|
type: 'warning', |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// let _warehouseId = form.value.completion.find(res => !res.warehouseId); |
|
|
|
|
// if (_warehouseId) { |
|
|
|
|
// ElMessage({ |
|
|
|
|
// message: `有赔款方或受款方仓库未选择`, |
|
|
|
|
// type: 'warning', |
|
|
|
|
// }); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
ElMessageBox.confirm('是否提交完结信息?', '完结', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
@ -2206,7 +2206,7 @@ const AppealEditor = () => {
|
|
|
|
|
reason: item.reason, //原因 |
|
|
|
|
money: item.money, //金额 |
|
|
|
|
compensationPersonnel: item.compensationPersonnel, //责任人(手动填写) |
|
|
|
|
warehouseId: item.warehouseId, //赔款方是那个仓库(传入ID) |
|
|
|
|
warehouseId: item.warehouseId||null, //赔款方是那个仓库(传入ID) |
|
|
|
|
workOrderId: info.id, //异常工单 |
|
|
|
|
}); |
|
|
|
|
} else if (item.state == 1) { |
|
|
|
@ -2222,7 +2222,7 @@ const AppealEditor = () => {
|
|
|
|
|
.join(',') |
|
|
|
|
) |
|
|
|
|
.join(','), |
|
|
|
|
warehouseId: item.warehouseId, //赔款方是那个仓库(传入ID) |
|
|
|
|
warehouseId: item.warehouseId||null, //赔款方是那个仓库(传入ID) |
|
|
|
|
workOrderNumber: info.workOrderNumber, //工单号 |
|
|
|
|
workOrderId: info.id, //异常工单 |
|
|
|
|
}); |
|
|
|
|