Browse Source

修复申诉成立赔款方仓库未选择

dev-xx
马远东 4 months ago
parent
commit
fa9b9a2582
  1. 20
      src/views/aftersales/aftersalesWorkOrdermodify.vue

20
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, //
});

Loading…
Cancel
Save