Преглед изворни кода

发票审核时,判断关联发票号

huangguoce пре 2 месеци
родитељ
комит
8099275246

+ 2 - 1
src/views/cw/invoice/InvoiceFormTask.vue

@@ -1443,7 +1443,8 @@ export default {
 				}
 			}
 			if (this.inputForm.status === '5') {
-				if (this.inputForm.redInvoiceFlag == 1 && this.inputForm.relatedInvoice == 0) {
+				if (this.inputForm.redInvoiceFlag == 1 &&
+					(this.inputForm.relatedInvoice == 0 || this.inputForm.invoiceNumberStr == "" || this.inputForm.invoiceNumberStr == null || this.inputForm.invoiceNumberStr.length == 8)) {
 					let acc = 0
 					this.inputForm.financeInvoiceDetailDTOList.forEach((item, index) => {
 						if (this.commonJS.isEmpty(item.number)) {

+ 2 - 1
src/views/finance/invoice/InvoiceFormTask.vue

@@ -1162,7 +1162,8 @@ export default {
         }
       }
       if (this.inputForm.status === '5') {
-        if (this.inputForm.redInvoiceFlag == 1 && this.inputForm.relatedInvoice == 0) {
+        if (this.inputForm.redInvoiceFlag == 1 &&
+          (this.inputForm.relatedInvoice == 0 || this.inputForm.invoiceNumberStr == "" || this.inputForm.invoiceNumberStr == null || this.inputForm.invoiceNumberStr.length == 8)) {
           let acc = 0
           this.inputForm.financeInvoiceDetailDTOList.forEach((item, index) => {
             if (this.commonJS.isEmpty(item.number)) {