From 0ac2d43fce4d74f6eea5a51a2e16af4e6a536c7c Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 14 八月 2024 14:19:24 +0800 Subject: [PATCH] 11 --- src/views/project/tallage/computingBill/index.vue | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/views/project/tallage/computingBill/index.vue b/src/views/project/tallage/computingBill/index.vue index 3bab12a..50bcbba 100644 --- a/src/views/project/tallage/computingBill/index.vue +++ b/src/views/project/tallage/computingBill/index.vue @@ -308,6 +308,8 @@ <el-select v-model="patientqueryParams.donorname" filterable + allow-create + default-first-option placeholder="璇烽�夋嫨" > <el-option @@ -589,8 +591,8 @@ data() { return { swgatheringlist: [ - { label: "鏈畻绋�", value: 0 }, - { label: "宸茬畻绋�", value: 1 } + { label: "宸茬畻绋�", value: 1 }, + { label: "鏈畻绋�", value: 0 } ], gatheringlist: [ { label: "鏈粯娆�", value: "0" }, @@ -605,7 +607,6 @@ // pacheckno: "047", // checkstatus: 0, pfundtaxid: 0, - departid: 0, pageNum: 1, pageSize: 10 }, @@ -799,11 +800,17 @@ handleUploadError() {}, // 寮规娣诲姞 AddDispatchpatients() { - this.donorchargeorgans = this.donorchargeorgans.concat(this.overallCase); - console.log(this.donorchargeorgans, "donorchargeorgans"); - this.donorchargeorgans.forEach(item => { - CalculationDetail({ id: item.id, fundTaxId: this.form.id }); + let newArr = this.donorchargeorgans.concat(this.overallCase); + this.donorchargeorgans = newArr.filter((item, index, self) => { + return !self.slice(index + 1).some(other => other.id === item.id); }); + + console.log(this.donorchargeorgans, "donorchargeorgans"); + if (this.form.id) { + this.donorchargeorgans.forEach(item => { + CalculationDetail({ id: item.id, fundTaxId: this.form.id }); + }); + } this.donorchargeorgans.forEach(item => { item.taXmoney = item.pretaxcost - item.taxedcost; item.taXmoney = item.taXmoney.toFixed(2); @@ -871,7 +878,6 @@ if (this.multipleSelection.length <= selection.length) { this.multipleSelection = selection; } else { - console.log(11); this.multipleSelection.forEach(item => { if (selection.includes(item)) { } else { @@ -996,7 +1002,7 @@ this.title = "鏂板涓撳璐规眹鎬诲崟"; //鑾峰彇鐧诲綍鑰呬俊鎭� getUserProfile().then(res => { - this.form.username = res.createBy; + this.form.username = res.data.createBy; }); }, -- Gitblit v1.9.3