|
|
@ -1423,10 +1423,29 @@ const submitForm = async (formType, submitData) => { |
|
|
|
message.warning(t('ts.明细数据条数已超过最大数量限制【20000条】')) |
|
|
|
return |
|
|
|
} |
|
|
|
if(data.discountAmount1>0){ |
|
|
|
await ElMessageBox.alert( |
|
|
|
'请确认该申请中是否包含返利金额,请注意填写的返利金额应为负数', |
|
|
|
'重要提示', |
|
|
|
{ |
|
|
|
showCancelButton: true |
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|
formRef.value.formLoading = true |
|
|
|
await SupplierinvoiceRequestMainApi.createSupplierinvoiceRequestMain(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|
if(data.discountAmount1>0){ |
|
|
|
await ElMessageBox.alert( |
|
|
|
'请确认该申请中是否包含返利金额,请注意填写的返利金额应为负数', |
|
|
|
'重要提示', |
|
|
|
{ |
|
|
|
showCancelButton: true |
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
formRef.value.formLoading = true |
|
|
|
data.masterId = data.id |
|
|
|
await SupplierinvoiceRequestMainApi.updateSupplierinvoiceRequestMain(data) |
|
|
|