|
@ -599,12 +599,11 @@ const submitForm = async (formType, submitData) => { |
|
|
if (formType === 'create') { |
|
|
if (formType === 'create') { |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
await ProductionMainApi.createProductionMain(data).then((res) => { |
|
|
await ProductionMainApi.createProductionMain(data).then((res) => { |
|
|
// console.log(565,res) |
|
|
|
|
|
if (res.status == '6') { |
|
|
if (res.status == '6') { |
|
|
autoCreatePlanRequest(res) |
|
|
autoCreatePlanRequest(res) |
|
|
} |
|
|
} |
|
|
|
|
|
message.success(t('common.createSuccess')) |
|
|
}) |
|
|
}) |
|
|
// message.success(t('common.createSuccess')) |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
await ProductionMainApi.updateProductionMain(data) |
|
|
await ProductionMainApi.updateProductionMain(data) |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|