|
@@ -723,6 +723,11 @@
|
|
<el-input maxlength="50" readonly="true" v-model="scope.row.invoiceUnit" ></el-input>
|
|
<el-input maxlength="50" readonly="true" v-model="scope.row.invoiceUnit" ></el-input>
|
|
</template>
|
|
</template>
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
|
+ <vxe-table-column field="buyerName" title="购买方名称" :edit-render="{}" show-overflow="title">
|
|
|
|
+ <template #edit="scope">
|
|
|
|
+ <el-input maxlength="50" readonly="true" v-model="scope.row.buyerName" ></el-input>
|
|
|
|
+ </template>
|
|
|
|
+ </vxe-table-column>
|
|
<vxe-table-column field="amount" title="金额" :edit-render="{}" show-overflow="title">
|
|
<vxe-table-column field="amount" title="金额" :edit-render="{}" show-overflow="title">
|
|
<template #edit="scope">
|
|
<template #edit="scope">
|
|
<el-input maxlength="15" readonly="true" v-model="scope.row.amount" @input="scope.row.amount = twoDecimalPlaces(scope.row.amount)" @change="countAmount(scope.row)"></el-input>
|
|
<el-input maxlength="15" readonly="true" v-model="scope.row.amount" @input="scope.row.amount = twoDecimalPlaces(scope.row.amount)" @change="countAmount(scope.row)"></el-input>
|
|
@@ -880,6 +885,9 @@
|
|
invoiceUnit: [
|
|
invoiceUnit: [
|
|
{required: true, message: '开票单位不能为空'}
|
|
{required: true, message: '开票单位不能为空'}
|
|
],
|
|
],
|
|
|
|
+ buyerName: [
|
|
|
|
+ {required: true, message: '购买方名称不能为空'}
|
|
|
|
+ ],
|
|
amount: [
|
|
amount: [
|
|
{required: true, message: '金额不能为空'}
|
|
{required: true, message: '金额不能为空'}
|
|
],
|
|
],
|
|
@@ -1230,10 +1238,10 @@
|
|
this.loading = false
|
|
this.loading = false
|
|
throw new Error('数电发票信息 第' + k + '行请填写发票单位')
|
|
throw new Error('数电发票信息 第' + k + '行请填写发票单位')
|
|
}
|
|
}
|
|
- if (this.commonJS.isEmpty(this.inputForm.invoiceReimbursements[j].invoiceUnit)) {
|
|
|
|
- this.$message.error('数电发票信息 第' + k + '行请填写发票单位')
|
|
|
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.invoiceReimbursements[j].buyerName)) {
|
|
|
|
+ this.$message.error('数电发票信息 第' + k + '行请填写购买方名称')
|
|
this.loading = false
|
|
this.loading = false
|
|
- throw new Error('数电发票信息 第' + k + '行请填写发票单位')
|
|
|
|
|
|
+ throw new Error('数电发票信息 第' + k + '行请填写购买方名称')
|
|
}
|
|
}
|
|
if (this.commonJS.isEmpty(this.inputForm.invoiceReimbursements[j].amount)) {
|
|
if (this.commonJS.isEmpty(this.inputForm.invoiceReimbursements[j].amount)) {
|
|
this.$message.error('数电发票信息 第' + k + '行请填写金额')
|
|
this.$message.error('数电发票信息 第' + k + '行请填写金额')
|
|
@@ -2435,6 +2443,7 @@
|
|
item.amount = data.BasicInformationTotalAmWithoutTax;
|
|
item.amount = data.BasicInformationTotalAmWithoutTax;
|
|
item.taxAmount = data.BasicInformationTotalTaxAm;
|
|
item.taxAmount = data.BasicInformationTotalTaxAm;
|
|
item.count = data.BasicInformationTotalTaxincludedAmount;
|
|
item.count = data.BasicInformationTotalTaxincludedAmount;
|
|
|
|
+ item.buyerName = data.BuyerInformationBuyerName;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
//列表中未查到相同发票号
|
|
//列表中未查到相同发票号
|
|
@@ -2448,6 +2457,7 @@
|
|
amount: data.BasicInformationTotalAmWithoutTax,
|
|
amount: data.BasicInformationTotalAmWithoutTax,
|
|
taxAmount: data.BasicInformationTotalTaxAm,
|
|
taxAmount: data.BasicInformationTotalTaxAm,
|
|
count: data.BasicInformationTotalTaxincludedAmount,
|
|
count: data.BasicInformationTotalTaxincludedAmount,
|
|
|
|
+ buyerName: data.BuyerInformationBuyerName,
|
|
remarks: ''
|
|
remarks: ''
|
|
}
|
|
}
|
|
this.insertInvoiceReimbursementEvent('invoiceReimbursement',value)
|
|
this.insertInvoiceReimbursementEvent('invoiceReimbursement',value)
|
|
@@ -2486,6 +2496,14 @@
|
|
if(item.number === data.InvoiceNumber) {
|
|
if(item.number === data.InvoiceNumber) {
|
|
this.removeEvent(item,i,'invoiceReimbursement')
|
|
this.removeEvent(item,i,'invoiceReimbursement')
|
|
}
|
|
}
|
|
|
|
+ if(this.inputForm.id && item.number){
|
|
|
|
+ //根据电子发票号和报销表id去删除数据库中存在的数据
|
|
|
|
+ this.reimbursementApprovalService.deleteByIdAndNumber(this.inputForm.id,data.InvoiceNumber).then((data) => {
|
|
|
|
+ if(!data.success){
|
|
|
|
+ this.$message.error(data.message)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|