From d2c4542a5e73035f34cd065e6d355361f3a07a8b Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Mon, 13 Jan 2025 10:13:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E5=82=B3=E7=99=BC=E7=A5=A8-=E8=88=87?= =?UTF-8?q?=E5=BE=8C=E8=87=BA=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/uploadInvoice.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/views/index/uploadInvoice.vue b/src/views/index/uploadInvoice.vue index 04ae95b2..312402ed 100644 --- a/src/views/index/uploadInvoice.vue +++ b/src/views/index/uploadInvoice.vue @@ -278,6 +278,15 @@ if(ocrName != billName && diffNumber > 2 && !res.data.ocrInvoiceRes.data.sellerName.startsWith("国家税务总局")){ errorStr = errorStr + "上传发票抬头与服务商配置不一致,设置抬头为:" + (this.billInfo.unitName || '未设置') + ",识别抬头为:" + res.data.ocrInvoiceRes.data.sellerName + ";如发票确认无误,请联系结算部:021-53682525"; } + let conList = res.data.ocrInvoiceRes.data.invoiceDetails.filter(a => a.itemName.includes("*")) + if(!res.data.ocrInvoiceRes.data.sellerName.startsWith("国家税务总局") && + conList.every(a => { + let items = a.itemName.split("*") + return (!items[1].includes("现代服务") && !items[1].includes("运输服务")) || (!items[2].includes("拖车") && !items[2].includes("救援") && !items[2].includes("施救") && !items[2].includes("清障") && !items[2].includes("道路救援")) + }) + ){ + errorStr = errorStr + "分类必须包含:现代服务/运输服务,服务名称必须包含:拖车/救援/施救/清障/道路救援 ;例如《*现代服务*拖车费》"; + } if( !flag ) { Dialog.alert({