diff --git a/src/views/aftersales/aftersalesWorkOrdermodify.vue b/src/views/aftersales/aftersalesWorkOrdermodify.vue index d0160a72..a0564f90 100644 --- a/src/views/aftersales/aftersalesWorkOrdermodify.vue +++ b/src/views/aftersales/aftersalesWorkOrdermodify.vue @@ -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.state == 1 && !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||null, //赔款方是那个仓库(传入ID) + warehouseId: item.warehouseId, //赔款方是那个仓库(传入ID) workOrderId: info.id, //异常工单 }); } else if (item.state == 1) { @@ -2222,7 +2222,7 @@ const AppealEditor = () => { .join(',') ) .join(','), - warehouseId: item.warehouseId||null, //赔款方是那个仓库(传入ID) + warehouseId: item.warehouseId, //赔款方是那个仓库(传入ID) workOrderNumber: info.workOrderNumber, //工单号 workOrderId: info.id, //异常工单 });