From 9846455edb4f544f3f4a60f9e2e4648dddf353a4 Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Tue, 17 Oct 2023 10:11:03 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/accounting/other/index.vue | 29 +++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/views/accounting/other/index.vue b/src/views/accounting/other/index.vue index 4ab97524..f49f9847 100644 --- a/src/views/accounting/other/index.vue +++ b/src/views/accounting/other/index.vue @@ -242,7 +242,20 @@ - + + + + @@ -272,6 +285,7 @@ import { exportOtherExcel, } from "@/api/accounting/other"; import { getAccessToken, getTenantId } from "@/utils/auth"; +import { getOrganizationPage } from "@/api/setting/organization"; // import {DICT_TYPE, getDictDatas} from "@/utils/dict"; export default { name: "Other", @@ -329,10 +343,12 @@ export default { Authorization: "Bearer " + getAccessToken(), "tenant-id": getTenantId(), }, // 设置上传的请求头 + organizationList: [], }; }, created() { this.getList(); + this.getOrganizationList(); }, methods: { /** @@ -355,6 +371,12 @@ export default { this.loading = false; }); }, + // 获取业务实体 + getOrganizationList() { + getOrganizationPage().then((response) => { + this.organizationList = response.data.list; + }); + }, /** 取消按钮 */ cancel() { this.open = false; @@ -401,6 +423,11 @@ export default { console.log(res); this.form.fileUrl = res.data.url; }, + // 业务实体选择事件 + handleCompanyChange(val) { + this.form.companyId = val.id; + this.form.company = val.organizationName; + }, /** 修改按钮操作 */ handleUpdate(row) { this.reset();