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() {