|
@@ -6,14 +6,16 @@
|
|
|
<template #is_use>
|
|
|
<el-option v-for="i in statusList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
|
</template>
|
|
|
+ <template #type>
|
|
|
+ <el-option v-for="i in businessList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
|
+ </template>
|
|
|
</cSearch>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="two">
|
|
|
<cButton @toAdd="toAdd"> </cButton>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="thr">
|
|
|
- <cTable :fields="fields" :opera="opera" :list="list" @query="search" :total="total" @edit="toEdit" @del="toDel"
|
|
|
- @changeUse="toChangeUse"> </cTable>
|
|
|
+ <cTable :fields="fields" :opera="opera" :list="list" @query="search" :total="total" @edit="toEdit" @del="toDel" @changeUse="toChangeUse"> </cTable>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -47,6 +49,9 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</template>
|
|
|
+ <template #type>
|
|
|
+ <el-option v-for="i in businessList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
|
+ </template>
|
|
|
<template #content>
|
|
|
<cEditor v-model="form.content" url="/files/notarization/business/upload"></cEditor>
|
|
|
</template>
|
|
@@ -81,6 +86,7 @@ const $checkRes = inject('$checkRes') as Function;
|
|
|
// NeedChange
|
|
|
const statusList: Ref<any> = ref([]);
|
|
|
const typeList: Ref<any> = ref([]);
|
|
|
+const businessList: Ref<any> = ref([]);
|
|
|
const searchOther = async () => {
|
|
|
let res: IQueryResult;
|
|
|
// 是否使用
|
|
@@ -89,6 +95,9 @@ const searchOther = async () => {
|
|
|
//资料类型
|
|
|
res = await dictDataStore.query({ code: 'type', is_use: '0' });
|
|
|
if ($checkRes(res)) typeList.value = res.data;
|
|
|
+ //业务类型
|
|
|
+ res = await dictDataStore.query({ code: 'business', is_use: '0' });
|
|
|
+ if ($checkRes(res)) businessList.value = res.data;
|
|
|
};
|
|
|
// #endregion
|
|
|
|
|
@@ -135,6 +144,7 @@ const toChangeUse = async (data) => {
|
|
|
// NeedChange
|
|
|
let fields: Ref<any[]> = ref([
|
|
|
{ label: '名称', model: 'name', isSearch: true },
|
|
|
+ { label: '类型', model: 'type', format: (i) => getDict(i, 'type'), isSearch: true, type: 'select' },
|
|
|
{ label: '收费金额', model: 'money' },
|
|
|
{ label: '收费依据', model: 'basic' },
|
|
|
{ label: '邮费', model: 'postage' },
|
|
@@ -154,6 +164,9 @@ const getDict = (data, model) => {
|
|
|
case 'is_use':
|
|
|
list = statusList.value;
|
|
|
break;
|
|
|
+ case 'type':
|
|
|
+ list = businessList.value;
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
@@ -197,6 +210,7 @@ const toDel = async (data) => {
|
|
|
const defaultForm = { is_use: '0', material: [] };
|
|
|
const formFields: Ref<any> = ref([
|
|
|
{ label: '名称', model: 'name' },
|
|
|
+ { label: '类型', model: 'type', type: 'select' },
|
|
|
{ label: '收费金额', model: 'money' },
|
|
|
{ label: '收费依据', model: 'basic' },
|
|
|
{ label: '邮费', model: 'postage' },
|