|
|
|
@ -94,7 +94,14 @@
|
|
|
|
|
<el-table-column label="纸档位置" align="center" prop="position" />
|
|
|
|
|
<el-table-column label="审核人" align="center" prop="audit" />
|
|
|
|
|
<el-table-column label="制单人" align="center" prop="createBy" />
|
|
|
|
|
<el-table-column label="凭证类型" align="center" prop="type" />
|
|
|
|
|
<el-table-column label="凭证类型" align="center" prop="type">
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<dict-tag
|
|
|
|
|
:type="DICT_TYPE.ACCOUNTING_INVOICES_CHECK"
|
|
|
|
|
:value="scope.row.type"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="完整性" align="center" prop="cherks">
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<dict-tag
|
|
|
|
@ -155,7 +162,13 @@
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="凭证类型" prop="type">
|
|
|
|
|
<el-select v-model="form.type" placeholder="请选择凭证类型">
|
|
|
|
|
<el-option label="请选择字典生成" value="" />
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in typeOptions"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -276,6 +289,7 @@ import {
|
|
|
|
|
} from "@/api/accounting/voucher";
|
|
|
|
|
import { listUser } from "@/api/system/user";
|
|
|
|
|
import { getSiteTree } from "@/api/setting/organization";
|
|
|
|
|
import { listData } from "@/api/system/dict/data";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "Voucher",
|
|
|
|
@ -343,6 +357,7 @@ export default {
|
|
|
|
|
userOptions: [], //用户数据
|
|
|
|
|
siteOptions: [], //归档位置数据
|
|
|
|
|
siteArray: [], //归档位置选中值
|
|
|
|
|
typeOptions: [], //凭证类别
|
|
|
|
|
audit: null,
|
|
|
|
|
checker: null,
|
|
|
|
|
handle: null,
|
|
|
|
@ -352,6 +367,7 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getUserList();
|
|
|
|
|
this.getSiteList();
|
|
|
|
|
this.handleInitList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/** 查询列表 */
|
|
|
|
@ -364,6 +380,17 @@ export default {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//获取字典数据
|
|
|
|
|
handleInitList() {
|
|
|
|
|
// 获取凭证类别
|
|
|
|
|
listData({
|
|
|
|
|
pageNo: 1,
|
|
|
|
|
pageSize: 100,
|
|
|
|
|
dictType: "accounting_voucher_type",
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
this.typeOptions = res.data.list || [];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//获取归档位置
|
|
|
|
|
getSiteList() {
|
|
|
|
|
getSiteTree().then((response) => {
|
|
|
|
|