From 00aa1e3fae0c218f383691030fa989272af56a2f Mon Sep 17 00:00:00 2001 From: zfl <123456> Date: Mon, 1 Apr 2024 21:16:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8=E9=80=89=E6=8B=A9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ConnectInvoice/index.vue | 8 +++++--- src/views/company/claim/index.vue | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/ConnectInvoice/index.vue b/src/components/ConnectInvoice/index.vue index 50efa5b..dd35533 100644 --- a/src/components/ConnectInvoice/index.vue +++ b/src/components/ConnectInvoice/index.vue @@ -16,7 +16,7 @@
- +
@@ -156,10 +156,12 @@ export default { // } }, methods: { - handleSetCheck(index) { + handleSetCheck(index,item,type) { // this.tableList let _this = this - this.$set(this.tableList[index], 'checked', !this.tableList[index].checked) + if(!type){ + this.$set(this.tableList[index], 'checked', !this.tableList[index].checked) + } if (this.tableList[index].checked) { if (!_this.invoiceIdsCopy.hasOwnProperty(_this.invoiceType)) { _this.invoiceIdsCopy[_this.invoiceType] = []; diff --git a/src/views/company/claim/index.vue b/src/views/company/claim/index.vue index 05918bb..0d80291 100644 --- a/src/views/company/claim/index.vue +++ b/src/views/company/claim/index.vue @@ -569,15 +569,15 @@ export default { // let nameArr = ((this.ieList.filter(item => arr.includes(item.id)) || []).map(item => item.invoiceCode)).join('、') this.$set(this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'invoiceIds', arr) this.$set(this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'show', false) - this.$set(this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'invoiceCount', this.totalCount(arr)) - this.$set(this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'invoiceName', '已关联发票') + this.$set(this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'invoiceCount', this.totalCount(arr)==0?'':this.totalCount(arr)) + this.$set(this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'invoiceName', this.totalCount(arr)==0?'请关联':'已关联发票') }, handleConfirmIe1(arr, nIndex) { // let nameArr = ((this.ieList.filter(item => arr.includes(item.id)) || []).map(item => item.invoiceCode)).join('、') this.$set(this.form.expenseClaimDetails[nIndex], 'invoiceIds', arr) this.$set(this.form.expenseClaimDetails[nIndex], 'show', false) - this.$set(this.form.expenseClaimDetails[nIndex], 'invoiceCount', this.totalCount(arr)) - this.$set(this.form.expenseClaimDetails[nIndex], 'invoiceName', '已关联发票') + this.$set(this.form.expenseClaimDetails[nIndex], 'invoiceCount', this.totalCount(arr)==0?'':this.totalCount(arr)) + this.$set(this.form.expenseClaimDetails[nIndex], 'invoiceName', this.totalCount(arr)==0?'请关联':'已关联发票') }, totalCount(obj) {