BUG 30522
This commit is contained in:
@@ -12,7 +12,6 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</ai-title>
|
</ai-title>
|
||||||
|
|
||||||
<template #content>
|
<template #content>
|
||||||
<ai-sidebar :tabTitle="menuList" @change="change"/>
|
<ai-sidebar :tabTitle="menuList" @change="change"/>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
@@ -52,17 +51,21 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-if="currentMenu==1">
|
<template v-if="currentMenu==1">
|
||||||
<ai-card title="申请表单">
|
<ai-card title="申请表单">
|
||||||
|
<template #right>
|
||||||
|
<ai-dialog-btn text="信息报告" :dialog-title="cpConfig.dialogTitle">
|
||||||
|
<component :is="cpConfig.component" v-bind="cpConfig.params"/>
|
||||||
|
</ai-dialog-btn>
|
||||||
|
</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
<el-form label-suffix=":" label-width="180px" size="small">
|
<el-form label-suffix=":" label-width="180px" size="small">
|
||||||
<div class="border-wrap">
|
<div class="border-wrap">
|
||||||
<div v-for="(item, index) in applyForm" :key="index">
|
<div v-for="(item, index) in applyForm" :key="index">
|
||||||
<ai-title :title="index"/>
|
<ai-title :title="index"/>
|
||||||
<el-form-item v-for="e in item" :key="e.id" :label="[e.fieldName,e.fieldNameSuffix].join('')">
|
<el-form-item v-for="e in item" :key="e.id" :label="[e.fieldName,e.fieldNameSuffix].join('')">
|
||||||
<el-input :value="getFieldValue(e)" readonly style="width: 100%;"
|
<el-input :value="getFieldValue(e)" readonly style="width: 100%;" v-if="e.fieldDataType!=5"/>
|
||||||
v-if="e.fieldDataType!=5"/>
|
|
||||||
<el-checkbox-group v-else v-model="!e.fieldValue ? '' : String(e.fieldValue).split(',')">
|
<el-checkbox-group v-else v-model="!e.fieldValue ? '' : String(e.fieldValue).split(',')">
|
||||||
<el-checkbox :label="val.dictValue" disabled
|
<el-checkbox :label="val.dictValue" disabled v-for="(val,idx) in dict.getDict(e.dictionaryCode)" :key="idx">
|
||||||
v-for="(val,idx) in dict.getDict(e.dictionaryCode)" :key="idx">{{ val.dictName }}
|
{{ val.dictName }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -204,8 +207,6 @@
|
|||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</template>
|
</template>
|
||||||
</ai-detail>
|
</ai-detail>
|
||||||
|
|
||||||
|
|
||||||
<!--审批同意、拒绝-->
|
<!--审批同意、拒绝-->
|
||||||
<el-dialog :title="titleType" center :visible.sync="isAgree" width="720px" v-loading="loading"
|
<el-dialog :title="titleType" center :visible.sync="isAgree" width="720px" v-loading="loading"
|
||||||
:close-on-click-modal="false" @close="form.fieldInfos = []">
|
:close-on-click-modal="false" @close="form.fieldInfos = []">
|
||||||
@@ -301,11 +302,15 @@ import moment from 'dayjs'
|
|||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
import Viewer from 'v-viewer'
|
import Viewer from 'v-viewer'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
|
import AiDialogBtn from "../../../../components/AiDialogBtn";
|
||||||
|
import PersonCreditReport from "../../../../components/personCreditReport";
|
||||||
|
import EnterpriseDialog from "../../../../components/enterpriseDialog";
|
||||||
|
|
||||||
Vue.use(Viewer)
|
Vue.use(Viewer)
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "approvalDetail",
|
name: "approvalDetail",
|
||||||
|
components: {EnterpriseDialog, PersonCreditReport, AiDialogBtn},
|
||||||
inject: ['approval'],
|
inject: ['approval'],
|
||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
@@ -366,7 +371,15 @@ export default {
|
|||||||
{slot: "options"}
|
{slot: "options"}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
titleType: v => v.form.pass ? '审批同意' : '审批拒绝'
|
titleType: v => v.form.pass ? '审批同意' : '审批拒绝',
|
||||||
|
cpConfig() {
|
||||||
|
const {objId, objType} = this.detail
|
||||||
|
let configs = {
|
||||||
|
0: {dialogTitle: "个人信息报告", params: {...this.$props, personId: objId}, component: PersonCreditReport},
|
||||||
|
1: {dialogTitle: "企业信息报告", params: {...this.$props, enterpriseId: objId}, component: EnterpriseDialog},
|
||||||
|
}
|
||||||
|
return configs?.[objType] || {}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleDownload() {
|
handleDownload() {
|
||||||
|
|||||||
Reference in New Issue
Block a user