diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 9793a55e5..9c6aad57a 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -832,6 +832,7 @@ export default { 未税差额:'Untaxed Difference', 含税差额:'Difference including tax', 可开票数量:'Number of tickets available', + 可开票数量不能为0:'The amount invogeable cannot be 0', 采购审批人:'Procurement Approver', 采购审批时间:'Purchase approval time', 财务审批时间:'Financial approval time', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 1e78e1525..49c3e196f 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -833,6 +833,7 @@ export default { 未税差额:'未税差额', 含税差额:'含税差额', 可开票数量:'可开票数量', + 可开票数量不能为0:'可开票数量不能为0', 采购审批人:'采购审批人', 采购审批时间:'采购审批时间', 财务审批时间:'财务审批时间', diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index a5c137240..6eb1f7bde 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -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 diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts index 2e02b6143..4356beea3 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts @@ -1806,12 +1806,14 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive