|
@@ -187,6 +187,11 @@ export default {
|
|
|
uploadDelFlag: false,
|
|
|
// reNumFiles: [], // 存储重复发票号
|
|
|
toCompany: '', //用于区分属于哪个公司的数电发票,
|
|
|
+ motorFileLabel: [
|
|
|
+ "BasicInformationTotalTaxincludedAmount",
|
|
|
+ "BasicInformationTotalTaxAm",
|
|
|
+ "SpecificInformationMotorVehicleSalesVehicleModel"
|
|
|
+ ],
|
|
|
fileLabel: [
|
|
|
"BasicInformationTotalTaxAm",//税额
|
|
|
"IssueTime",//
|
|
@@ -231,6 +236,7 @@ export default {
|
|
|
// "SellerInformationSellerIdNum",
|
|
|
// "IssuItemInformationSpecMod",
|
|
|
// "TaxBureauName"
|
|
|
+
|
|
|
]
|
|
|
}
|
|
|
},
|
|
@@ -472,6 +478,7 @@ export default {
|
|
|
if (this.toCompany === data.BuyerInformationBuyerName) {
|
|
|
invoiceReimbursements.forEach(item => {
|
|
|
if (file.name === item.name) {
|
|
|
+
|
|
|
item.invoiceType = data.InherentLabelGeneralOrSpecialVATLabelCode;
|
|
|
item.invoiceProjectName = data.IssuItemInformationItemName;
|
|
|
item.number = data.InvoiceNumber;
|
|
@@ -673,6 +680,16 @@ export default {
|
|
|
}, {});
|
|
|
},
|
|
|
fieldComparison(obj, fields) {
|
|
|
+ let labelCode = obj["InherentLabelGeneralOrSpecialVATLabelCode"]
|
|
|
+ // 处理机动车销售统一发票
|
|
|
+ if (labelCode == '03') {
|
|
|
+ obj.IssuItemInformationTaxRate = ""
|
|
|
+ obj.IssuItemInformationTotaltaxIncludedAmount = obj.BasicInformationTotalTaxincludedAmount
|
|
|
+ obj.IssuItemInformationComTaxAm = obj.BasicInformationTotalTaxAm
|
|
|
+ obj.IssuItemInformationItemName = obj.SpecificInformationMotorVehicleSalesVehicleModel
|
|
|
+ }
|
|
|
+ //--------------------------
|
|
|
+
|
|
|
// 遍历字段数组,检查每个字段名是否在对象中存在
|
|
|
for (let field of fields) {
|
|
|
// 忽略大小写来匹配属性名
|
|
@@ -690,6 +707,7 @@ export default {
|
|
|
delete obj[key];
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
async handleUploadSuccess(response, file, fileList) {
|