|
|
@ -484,7 +484,10 @@ const detailBasicFormOnChange = (field, cur) => { |
|
|
|
const handleDetailSubmitForm = async (formType, data) => { |
|
|
|
if (formType === 'update') { |
|
|
|
console.log('handleDetailSubmitForm',data) |
|
|
|
if(data.maxInvoicableQuantity>0){ |
|
|
|
if(data.invoicableQuantity==0){ |
|
|
|
message.error(t('ts.可开票数量不能为0')) |
|
|
|
return |
|
|
|
}else if(data.maxInvoicableQuantity>0){ |
|
|
|
if(data.invoicableQuantity<0||data.invoicableQuantity>data.maxInvoicableQuantity){ |
|
|
|
message.error(t('ts.可开票数量范围是')+`:0~${data.maxInvoicableQuantity}`) |
|
|
|
return |
|
|
@ -1375,7 +1378,10 @@ const submitForm = async (formType, submitData) => { |
|
|
|
tableData.value.forEach(item => { |
|
|
|
// 负数:默认默认开票数~0 |
|
|
|
// 正数:0~默认开票数 |
|
|
|
if(item.maxInvoicableQuantity){ |
|
|
|
if(item.invoicableQuantity==0){ |
|
|
|
flagInvoicableQuantity = true |
|
|
|
message.error(`${item.itemCode}`+t('ts.可开票数量不能为0')) |
|
|
|
}else if(item.maxInvoicableQuantity){ |
|
|
|
if(item.maxInvoicableQuantity>0){ |
|
|
|
if(item.invoicableQuantity<0||item.invoicableQuantity>item.maxInvoicableQuantity){ |
|
|
|
flagInvoicableQuantity = true |
|
|
|