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