会计凭证-新增字段业务实体

main
mo 1 year ago
parent 1e82b2b7cd
commit 688bfa1f93

@ -173,6 +173,26 @@
append-to-body append-to-body
> >
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-row>
<el-col :span="8">
<el-form-item label="业务实体名称" prop="company">
<el-select
v-model="form.company"
placeholder="请选择业务实体"
value-key="id"
@change="handleCompanyChange"
>
<el-option
v-for="item in organizationList"
:key="item.id"
:value="item"
:label="item.organizationName"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="凭证号" prop="voucherNum"> <el-form-item label="凭证号" prop="voucherNum">
@ -484,6 +504,7 @@ import { getFlowPage } from "@/api/accounting/flow";
import { getInvoicesPage } from "@/api/accounting/invoices"; import { getInvoicesPage } from "@/api/accounting/invoices";
import { getBankSlipPage } from "@/api/accounting/bankSlip"; import { getBankSlipPage } from "@/api/accounting/bankSlip";
import UserSelect from "@/components/UserSelect/single.vue"; import UserSelect from "@/components/UserSelect/single.vue";
import { getOrganizationPage } from "@/api/setting/organization";
export default { export default {
name: "Voucher", name: "Voucher",
@ -573,6 +594,7 @@ export default {
showNul3: "", showNul3: "",
showNul4: "", showNul4: "",
fjUrl: "", fjUrl: "",
organizationList: [],
}; };
}, },
watch() {}, watch() {},
@ -581,6 +603,7 @@ export default {
this.getUserList(); this.getUserList();
this.getSiteList(); this.getSiteList();
this.handleInitList(); this.handleInitList();
this.getOrganizationList();
}, },
methods: { methods: {
submitForm1() { submitForm1() {
@ -688,6 +711,17 @@ export default {
this.typeOptions = res.data.list || []; 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() { getSiteList() {
getSiteTree().then((response) => { getSiteTree().then((response) => {

Loading…
Cancel
Save