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