diff --git a/src/views/accounting/voucher/index.vue b/src/views/accounting/voucher/index.vue index 3da72b5d..36b4fee8 100644 --- a/src/views/accounting/voucher/index.vue +++ b/src/views/accounting/voucher/index.vue @@ -173,6 +173,26 @@ append-to-body > + + + + + + + + + + @@ -484,6 +504,7 @@ import { getFlowPage } from "@/api/accounting/flow"; import { getInvoicesPage } from "@/api/accounting/invoices"; import { getBankSlipPage } from "@/api/accounting/bankSlip"; import UserSelect from "@/components/UserSelect/single.vue"; +import { getOrganizationPage } from "@/api/setting/organization"; export default { name: "Voucher", @@ -573,6 +594,7 @@ export default { showNul3: "", showNul4: "", fjUrl: "", + organizationList: [], }; }, watch() {}, @@ -581,6 +603,7 @@ export default { this.getUserList(); this.getSiteList(); this.handleInitList(); + this.getOrganizationList(); }, methods: { submitForm1() { @@ -688,6 +711,17 @@ export default { this.typeOptions = res.data.list || []; }); }, + // 获取业务实体 + getOrganizationList() { + getOrganizationPage().then((response) => { + this.organizationList = response.data.list; + }); + }, + // 业务实体选择事件 + handleCompanyChange(val) { + this.form.companyId = val.id; + this.form.company = val.organizationName; + }, //获取归档位置 getSiteList() { getSiteTree().then((response) => {