|
|
|
@ -173,6 +173,26 @@
|
|
|
|
|
append-to-body
|
|
|
|
|
>
|
|
|
|
|
<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-col :span="8">
|
|
|
|
|
<el-form-item label="凭证号" prop="voucherNum">
|
|
|
|
@ -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) => {
|
|
|
|
|