Переглянути джерело

Merge remote-tracking branch 'origin/master'

sangwenwei 9 місяців тому
батько
коміт
ccc4c25ec8

+ 4 - 2
src/views/zs/reimbursement/info/ReimbursementForm.vue

@@ -2082,11 +2082,13 @@
 			if(!invoiceReimbursements) {
 				invoiceReimbursements = [];
 			}
-			if("中审众环会计师事务所(特殊普通合伙)江苏分所" !== data.BuyerInformationBuyerName){
+			//将购买方的名称中括号全部转换成英文进行比较
+			var buyerInformationBuyerName = data.BuyerInformationBuyerName.replace(/(/g, '(').replace(/)/g, ')')
+			if("中审众环会计师事务所(特殊普通合伙)江苏分所" !== buyerInformationBuyerName){
 				//删除上传的附件信息
 				this.$refs.invoiceReimbursementUpLoadComponent.parentDeleteById(file)
 				//进行提醒
-				this.$message.warning("仅可上传中审众环会计师事务所(特殊普通合伙)江苏分所的报销数电发票")
+				this.$message.warning("仅可上传中审众环会计师事务所(特殊普通合伙)江苏分所的报销数电发票")
 			}else{
 				this.reimbursementService.getEffectiveDataByInvoiceNumber(data.InvoiceNumber,this.inputForm.id).then((decide) => {
 					if(!decide.success){