From ac6def9459793e5127c39e6f9117a92024dd86dc Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Mon, 16 Oct 2023 14:30:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E5=AE=9E=E4=BD=93=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/accounting/book/index.vue | 9 ++++----- src/views/accounting/report/index.vue | 10 ++++------ 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/views/accounting/book/index.vue b/src/views/accounting/book/index.vue index 5bcfba5c..7e17b730 100644 --- a/src/views/accounting/book/index.vue +++ b/src/views/accounting/book/index.vue @@ -147,12 +147,13 @@ @@ -383,10 +384,8 @@ export default { }, // 业务实体选择事件 handleCompanyChange(val) { - var data = this.organizationList.find((item) => item.id == val); - console.log(data); - this.form.companyId = data.companyId; - this.Fileform.company = data.company; + this.form.companyId = val.id; + this.form.company = val.organizationName; }, /** 取消按钮 */ cancel() { diff --git a/src/views/accounting/report/index.vue b/src/views/accounting/report/index.vue index 240f18d5..d95b7870 100644 --- a/src/views/accounting/report/index.vue +++ b/src/views/accounting/report/index.vue @@ -149,16 +149,16 @@ > - @@ -471,10 +471,8 @@ export default { }, // 业务实体选择事件 handleCompanyChange(val) { - var data = this.organizationList.find((item) => item.id == val); - console.log(data); - this.form.companyId = data.companyId; - this.Fileform.company = data.company; + this.form.companyId = val.id; + this.form.company = val.organizationName; }, /** 提交按钮 */ submitForm() {