|
|
@ -998,12 +998,12 @@ const submitForm = async (formType, submitData) => { |
|
|
|
formRef.value.formLoading = true |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|
data.orderTypeM='1'; |
|
|
|
data.orderTypeM='3'; |
|
|
|
await PurchasereturnRequestMainApi.createPurchasereturnRequestMainMType(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|
data.orderTypeM='1'; |
|
|
|
await PurchasereceiptRequestMainApi.updatePurchasereceiptRequestMain(data) |
|
|
|
data.orderTypeM='3'; |
|
|
|
await PurchasereturnRequestMainApi.updatePurchasereturnRequestMainNewMType(data) |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
} |
|
|
|
formRef.value.dialogVisible = false |
|
|
|