1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174 |
- <template>
- <sd-webflow
- ref="docform"
- :key="key"
- :validate-form="validForm"
- :removed-tabs="['sdRelatedDoc']"
- @actionBtnClick="actionBtnClick"
- >
- <template v-slot:form="{ model, fields, FlowData }">
- <!-- 初始化模型基础信息 -->
- <table v-if="isInitData || initData(model, fields, FlowData)">
- <tr>
- <td colspan="4" style="border:none">
- <audit-advanced-group
- :expand="auditBaseGroup"
- :expand-str="'auditBaseGroup'"
- :group-label="'风险审计信息'"
- @changedClick="changedClick"
- />
- </td>
- </tr>
- <template v-if="auditBaseGroup">
- <tr v-for="(item, i) in baseFormData" :key="i">
- <template v-for="(child, j) in item">
- <!-- 是关注类并且是 -->
- <sd-form-item-td
- v-if="!(isFocus && child.name === '整改说明')"
- :key="j"
- :name="child.key"
- :label="child.name"
- :input-props="{ disabled: true }"
- :colspan="child?.col || 1"
- >
- <a-textarea
- v-if="child.name === '整改说明' || child.name === '关注风险'"
- v-model="model[child.key]"
- :auto-size="{ minRows: 3, maxRows: 5 }"
- :disabled="true"
- ></a-textarea>
- </sd-form-item-td>
- </template>
- </tr>
- </template>
- </table>
- <div v-if="auditBaseGroup" :class="$style.onlydiv">
- <!--todo 模型逻辑 -->
- <p :class="$style.modelIdea">模型逻辑:</p>
- <SdQuillEditor ref="quillEdit" v-model="model.configIdea" :options="editorOption" />
- <div :class="$style.noselect"></div>
- </div>
- <!-- 线索信息 -->
- <table>
- <tr>
- <td colspan="4" style="border:none">
- <audit-advanced-group
- :expand="auidtInfoGroup"
- :expand-str="'auidtInfoGroup'"
- :group-label="'审计线索信息'"
- @changedClick="changedClick"
- />
- </td>
- </tr>
- </table>
- <div v-if="auidtInfoGroup" :class="$style.onlydiv">
- <sd-table
- :columns="columnsDetail"
- :data-source="dataDetail"
- :row-key="(_, index) => index"
- :loading="loading"
- :scroll="{ x: 1150 }"
- >
- </sd-table>
- </div>
- <!-- 整改人能看到的模块 -->
- <template v-if="logInfo === 1 && !isFocus">
- <!-- 判定问题 -->
- <table>
- <tr>
- <td colspan="4" style="border:none">
- <audit-advanced-group
- :expand="auditJudgeGroup"
- :expand-str="'auditJudgeGroup'"
- :group-label="'判定问题'"
- @changedClick="changedClick"
- />
- </td>
- </tr>
- <template v-if="auditJudgeGroup">
- <tr>
- <sd-form-item-td :name="'questionFlag'" :label="'是否为问题'">
- <a-select v-model="questionFormData.questionFlag" placeholder="请选择问题判定">
- <a-select-option :value="1">是</a-select-option>
- <a-select-option :value="0">否</a-select-option>
- </a-select>
- </sd-form-item-td>
- <sd-form-item-td
- v-if="questionFormData.questionFlag === 0"
- :name="'nonQuestionTag'"
- :label="'非问题标签'"
- >
- <a-select
- v-model="questionFormData.questionId"
- placeholder="请选择非问题标签"
- @change="questionChange"
- >
- <a-select-option
- v-for="(item, index) in nonQuestionList"
- :key="item.id"
- :value="item.id"
- >{{ item.name }}</a-select-option
- >
- </a-select>
- </sd-form-item-td>
- </tr>
- <!-- <tr v-if="questionFormData.questionFlag === 0">-->
- <!-- <sd-form-item-td :colspan="3" name="nonQuestionDesc">-->
- <!-- <a-textarea-->
- <!-- v-model="questionFormData.nonQuestionDesc"-->
- <!-- placeholder="请填写非问题说明"-->
- <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
- <!-- :disabled="isDescStatus"-->
- <!-- />-->
- <!-- </sd-form-item-td>-->
- <!-- </tr>-->
- </template>
- </table>
- <!-- 说明 -->
- <table v-if="!isFocus">
- <tr>
- <td colspan="4" style="border:none">
- <audit-advanced-group
- :expand="auditDescGroup"
- :expand-str="'auditDescGroup'"
- :group-label="'说明'"
- @changedClick="changedClick"
- />
- </td>
- </tr>
- <template v-if="auditDescGroup">
- <tr>
- <sd-form-item-td :colspan="3" name="reformDesc" :label="logInfo === 1 && questionFormData.questionFlag === 1 ? '整改说明' : '非问题说明'">
- <a-textarea
- v-model="model.reformDesc"
- :placeholder="logInfo === 1 && questionFormData.questionFlag === 1 ? '请填写整改说明' : '请填写非问题说明'"
- :auto-size="{ minRows: 3, maxRows: 5 }"
- :disabled="logInfo !== 1"
- />
- </sd-form-item-td>
- </tr>
- </template>
- </table>
- <!-- 附件 -->
- <table v-if="!isFocus">
- <tr>
- <td :colspan="3" style="border:none">
- <audit-advanced-group
- :expand="auditAttachmentGroup"
- :expand-str="'auditAttachmentGroup'"
- :group-label="'附件'"
- @changedClick="changedClick"
- />
- </td>
- </tr>
- </table>
- <template v-if="auditAttachmentGroup">
- <div :class="$style.onlydiv">
- <div :class="[$style.upload]">
- <a-upload-dragger
- :class="$style.uploadData"
- name="RectificationFile"
- :file-list="fileListTemp"
- :accept="actualAccept"
- :multiple="true"
- :custom-request="(file) => customRequest(file, 0)"
- @change="handleChange"
- >
- <p class="ant-upload-drag-icon"><a-icon type="inbox"/></p>
- <p class="ant-upload-text">请上传整改附件</p>
- </a-upload-dragger>
- <div :class="$style.uploadList">
- <li v-for="(item, i) in fileList" :key="i">
- <span>{{ item.name }}</span>
- <!-- 删除 -->
- <a-icon type="delete" style="cursor: pointer;" @click="deleteFile(i)" />
- </li>
- </div>
- </div>
- </div>
- </template>
- </template>
- <!--审计线索明细 -->
- <template v-if="logInfo > 1 && !isFocus">
- <table>
- <tr>
- <td :colspan="4" style="border:none">
- <audit-advanced-group
- :expand="auditXsGroup"
- :expand-str="'auditXsGroup'"
- :group-label="'审计线索明细'"
- @changedClick="changedClick"
- />
- </td>
- </tr>
- <template v-if="auditXsGroup">
- <tr>
- <sd-form-item-td
- v-if="logInfo > 1"
- :colspan="logInfo === 2 && 3"
- :name="'viewAccount'"
- :label="'整改人'"
- :input-props="{ disabled: true }"
- >
- </sd-form-item-td>
- <sd-form-item-td
- v-if="logInfo > 2"
- :input-props="{ disabled: true }"
- :name="'checker'"
- :label="'初审人'"
- >
- </sd-form-item-td>
- </tr>
- <!-- 非问题标签 非问题说明, 说明 附件 问题性质 -->
- <!-- 是否是问题 -->
- <tr>
- <sd-form-item-td :colspan="3" :name="'questionFlag'" :label="'是否为问题'">
- <a-select v-model="questionFormData.questionFlag" placeholder="请选择问题判定">
- <a-select-option :value="1">是</a-select-option>
- <a-select-option :value="0">否</a-select-option>
- </a-select>
- </sd-form-item-td>
- <!-- <sd-form-item-td :colspan="3" :name="'questionFlag'" :label="'是否为问题'">-->
- <!-- <!– @slot read –>-->
- <!-- <template slot="read-and-edit">-->
- <!--<!– <a-select v-model="questionFormData.questionFlag" placeholder="请选择问题判定" :>–>-->
- <!--<!– <a-select-option :value="1">是</a-select-option>–>-->
- <!--<!– <a-select-option :value="0">否</a-select-option>–>-->
- <!--<!– </a-select>–>-->
- <!-- <span>{{ questionFormData.questionFlag === 0 ? '否' : '是' }}</span>-->
- <!-- </template>-->
- <!-- </sd-form-item-td>-->
- </tr>
- <!-- 非问题标签 -->
- <tr v-if="questionFormData.questionFlag === 0">
- <sd-form-item-td
- :colspan="3"
- :name="'nonQuestionTag'"
- :input-props="{ disabled: false }"
- :label="'非问题标签'"
- >
- <a-select
- v-model="questionFormData.questionId"
- placeholder="请选择非问题标签"
- :disabled="false"
- @change="questionChange"
- >
- <a-select-option
- v-for="(item, index) in nonQuestionList"
- :key="item.id"
- :value="item.id"
- >{{ item.name }}
- </a-select-option>
- </a-select>
- </sd-form-item-td>
- </tr>
- <!-- <tr v-if="questionFormData.questionFlag === 0">-->
- <!-- <sd-form-item-td :name="'nonQuestionDesc'" :label="'非问题说明'" :colspan="3">-->
- <!-- <a-textarea-->
- <!-- v-model="model.nonQuestionDesc"-->
- <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
- <!-- :disabled="true"-->
- <!-- />-->
- <!-- </sd-form-item-td>-->
- <!-- </tr>-->
- <tr>
- <sd-form-item-td :colspan="3" :name="'reformDesc'" :label="'说明'">
- <a-textarea
- v-model="model.reformDesc"
- :auto-size="{ minRows: 3, maxRows: 5 }"
- :disabled="false"
- @change="setQuestionFormData('nonQuestionDesc', model.reformDesc)"
- />
- </sd-form-item-td>
- </tr>
- <!-- 附件 -->
- <tr>
- <sd-form-item-td :colspan="3" name="attachment" :label="'附件'">
- <template slot="read-and-edit">
- <div :class="$style.onlydiv">
- <div :class="[$style.upload]">
- <a-upload-dragger
- :class="$style.uploadData"
- name="RectificationFile"
- :file-list="fileListTemp"
- :accept="actualAccept"
- :multiple="true"
- :custom-request="(file) => customRequest(file, 0)"
- @change="handleChange"
- >
- <p class="ant-upload-drag-icon"><a-icon type="inbox"/></p>
- <p class="ant-upload-text">请上传整改附件</p>
- </a-upload-dragger>
- <div :class="$style.uploadList">
- <li style="color: #0b75f3" v-for="(item, i) in fileList" :key="i" @click="exportClick(model, i)">
- <span>{{ item.name }}</span>
- <!-- 删除 -->
- <a-icon type="delete" style="cursor: pointer;" @click.stop="deleteFile(i)" />
- </li>
- </div>
- </div>
- </div>
- <!-- <template v-if="fileList.length > 0">-->
- <!-- <a-->
- <!-- v-for="(item, i) in fileList"-->
- <!-- :key="i"-->
- <!-- :class="$style.aclick"-->
- <!-- @click="exportClick(model, i)"-->
- <!-- >{{ item.name }}</a-->
- <!-- >-->
- <!-- </template>-->
- <!-- <template v-else>-->
- <!-- <span>暂未上传附件</span>-->
- <!-- </template>-->
- </template>
- </sd-form-item-td>
- </tr>
- <!-- 问题性质 -->
- <tr v-if="logInfo === 2 && questionFormData.questionFlag === 1">
- <sd-form-item-td :colspan="3" :name="'questionNature'" :label="'问题性质'">
- <a-cascader :options="questionNatureList" v-model="questionNature" change-on-select placeholder="请选择问题性质" />
- <!-- <a-select v-model="model.questionNature" placeholder="请选择问题性质">-->
- <!-- <a-select-option v-for="(item, i) in questionOption" :key="i" :value="item">{{-->
- <!-- item-->
- <!-- }}</a-select-option>-->
- <!-- </a-select>-->
- </sd-form-item-td>
- </tr>
- <tr v-else-if="questionFormData.questionFlag === 1">
- <!-- 只读问题性质 -->
- <sd-form-item-td
- :colspan="3"
- :name="'questionNature'"
- :label="'问题性质'"
- :input-props="{ disabled: true }"
- />
- </tr>
- </template>
- </table>
- </template>
- <template v-if="![1,2,3].includes(logInfo)">
- <table>
- <tr>
- <td :colspan="4" style="border:none">
- <audit-advanced-group
- :expand="auditXsGroup"
- :expand-str="'auditXsGroup'"
- :group-label="'审计线索明细'"
- @changedClick="changedClick"
- />
- </td>
- </tr>
- <template v-if="auditXsGroup">
- <tr>
- <sd-form-item-td
- :colspan="3"
- :name="'viewAccount'"
- :label="'整改人'"
- :input-props="{ disabled: true }"
- >
- </sd-form-item-td>
- <sd-form-item-td
- :input-props="{ disabled: true }"
- :name="'checker'"
- :label="'初审人'"
- >
- </sd-form-item-td>
- </tr>
- <!-- 非问题标签 非问题说明, 说明 附件 问题性质 -->
- <!-- 是否是问题 -->
- <tr>
- <!-- <sd-form-item-td :colspan="3" :name="'questionFlag'" :label="'是否为问题'">-->
- <!-- <a-select v-model="questionFormData.questionFlag" placeholder="请选择问题判定">-->
- <!-- <a-select-option :value="1">是</a-select-option>-->
- <!-- <a-select-option :value="0">否</a-select-option>-->
- <!-- </a-select>-->
- <!-- </sd-form-item-td>-->
- <sd-form-item-td :colspan="3" :name="'questionFlag'" :label="'是否为问题'">
- <!-- @slot read -->
- <template slot="read-and-edit">
- <!-- <a-select v-model="questionFormData.questionFlag" placeholder="请选择问题判定" :>-->
- <!-- <a-select-option :value="1">是</a-select-option>-->
- <!-- <a-select-option :value="0">否</a-select-option>-->
- <!-- </a-select>-->
- <span>{{ questionFormData.questionFlag === 0 ? '否' : '是' }}</span>
- </template>
- </sd-form-item-td>
- </tr>
- <!-- 非问题标签 -->
- <tr v-if="questionFormData.questionFlag === 0">
- <sd-form-item-td
- :colspan="3"
- :name="'nonQuestionTag'"
- :input-props="{ disabled: true }"
- :label="'非问题标签'"
- >
- <!-- <a-select-->
- <!-- v-model="questionFormData.questionId"-->
- <!-- placeholder="请选择非问题标签"-->
- <!-- :disabled="false"-->
- <!-- @change="questionChange"-->
- <!-- >-->
- <!-- <a-select-option-->
- <!-- v-for="(item, index) in nonQuestionList"-->
- <!-- :key="item.id"-->
- <!-- :value="item.id"-->
- <!-- >{{ item.name }}-->
- <!-- </a-select-option>-->
- <!-- </a-select>-->
- </sd-form-item-td>
- </tr>
- <!-- <tr v-if="questionFormData.questionFlag === 0">-->
- <!-- <sd-form-item-td :name="'nonQuestionDesc'" :label="'非问题说明'" :colspan="3">-->
- <!-- <a-textarea-->
- <!-- v-model="model.nonQuestionDesc"-->
- <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
- <!-- :disabled="true"-->
- <!-- />-->
- <!-- </sd-form-item-td>-->
- <!-- </tr>-->
- <tr>
- <sd-form-item-td :colspan="3" :name="'reformDesc'" :label="'说明'">
- <a-textarea
- v-model="model.reformDesc"
- :auto-size="{ minRows: 3, maxRows: 5 }"
- :disabled="true"
- @change="setQuestionFormData('nonQuestionDesc', model.reformDesc)"
- />
- </sd-form-item-td>
- </tr>
- <!-- 附件 -->
- <tr>
- <sd-form-item-td :colspan="3" name="attachment" :label="'附件'">
- <template slot="read-and-edit">
- <!-- <div :class="$style.onlydiv">-->
- <!-- <div :class="[$style.upload]">-->
- <!-- <a-upload-dragger-->
- <!-- :class="$style.uploadData"-->
- <!-- name="RectificationFile"-->
- <!-- :file-list="fileListTemp"-->
- <!-- :accept="actualAccept"-->
- <!-- :multiple="true"-->
- <!-- :custom-request="(file) => customRequest(file, 0)"-->
- <!-- @change="handleChange"-->
- <!-- >-->
- <!-- <p class="ant-upload-drag-icon"><a-icon type="inbox"/></p>-->
- <!-- <p class="ant-upload-text">请上传整改附件</p>-->
- <!-- </a-upload-dragger>-->
- <!-- <div :class="$style.uploadList">-->
- <!-- <li v-for="(item, i) in fileList" :key="i">-->
- <!-- <span>{{ item.name }}</span>-->
- <!-- <!– 删除 –>-->
- <!-- <a-icon type="delete" style="cursor: pointer;" @click="deleteFile(i)" />-->
- <!-- </li>-->
- <!-- </div>-->
- <!-- </div>-->
- <!-- </div>-->
- <template v-if="fileList.length > 0">
- <a
- v-for="(item, i) in fileList"
- :key="i"
- :class="$style.aclick"
- @click="exportClick(model, i)"
- >{{ item.name }}</a
- >
- </template>
- <template v-else>
- <span>暂未上传附件</span>
- </template>
- </template>
- </sd-form-item-td>
- </tr>
- <!-- 问题性质 -->
- <!-- <tr v-if="logInfo === 2 && questionFormData.questionFlag === 1">-->
- <!-- <sd-form-item-td :colspan="3" :name="'questionNature'" :label="'问题性质'">-->
- <!-- <a-cascader :options="questionNatureList" v-model="questionNature" change-on-select placeholder="请选择问题性质" />-->
- <!-- <a-select v-model="model.questionNature" placeholder="请选择问题性质">-->
- <!-- <a-select-option v-for="(item, i) in questionOption" :key="i" :value="item">{{-->
- <!-- item-->
- <!-- }}</a-select-option>-->
- <!-- </a-select>-->
- <!-- </sd-form-item-td>-->
- <!-- </tr>-->
- <tr>
- <!-- 只读问题性质 -->
- <sd-form-item-td
- :colspan="3"
- :name="'questionNature'"
- :label="'问题性质'"
- :input-props="{ disabled: true }"
- />
- </tr>
- </template>
- </table>
- </template>
- </template>
- </sd-webflow>
- </template>
- <script>
- import components from './_import-components/audit-issued-form-import'
- import { message } from 'ant-design-vue'
- import auditAdvancedGroup from '../../components/audit-advanced-group.vue'
- import auditAdvancedGroupMixins from '../../components/audit-advanced-group-mixins'
- import download from '@/common/services/download'
- import { sdLocalStorage } from '@/common/services/storage-service'
- import axios from '@/common/services/axios-instance'
- import SdQuillEditor from '@/common/components/sd-quill-editor.vue'
- import moment from 'moment'
- import AuditRiskbraryService from './riskLibrary'
- import { getUserInfo } from '@/common/store-mixin'
- const xzList = [
- '有业务无制度',
- '有制度难执行',
- '制度太宽泛缺乏操作细则',
- '制度过时不具备可操作性',
- '制度脱离实际难落地实施',
- '有制度未遵循',
- '特殊事项已经线下审批',
- '事项紧急重目标轻合规',
- '制度理解存在人为偏差',
- '工作疏忽未按制度行事',
- '人为规避制度管控要求',
- ]
- const baseData = [
- [
- {
- name: '业务编码',
- key: 'businessCode',
- },
- {
- name: '模型编码',
- key: 'batchCode',
- },
- ],
- [
- {
- name: '模型类型',
- key: 'modelTypeName',
- },
- {
- name: '模型名称',
- key: 'batchName',
- },
- ],
- [
- // todo 字段需要确认
- {
- name: '业务领域',
- key: 'modelDomainName',
- },
- {
- name: '业务阶段',
- key: 'modelPhaseName',
- },
- ],
- [
- {
- name: '单位',
- key: 'unit',
- },
- {
- name: '二级单位',
- key: 'secondUnit',
- },
- ],
- [
- {
- name: '问题推送时间',
- key: 'pushDate',
- },
- {
- name: '整改截至日期',
- key: 'reformDeadline',
- },
- ],
- [
- {
- name: '关注风险',
- key: 'risk',
- col: 3,
- },
- ],
- [
- {
- name: '整改说明',
- key: 'modelReformDesc',
- col: 3,
- },
- ],
- ]
- export default {
- name: 'AuditIssuedForm',
- metaInfo: {
- title: 'AuditIssuedForm',
- },
- components: {
- auditAdvancedGroup,
- SdQuillEditor,
- ...components,
- },
- mixins: [auditAdvancedGroupMixins],
- data() {
- return {
- // 流程 key
- key: 0,
- // 控制流程模块展开
- auditBaseGroup: false,
- // 审计线索信息
- auidtInfoGroup: false,
- // 判定问题
- auditJudgeGroup: false,
- // 说明
- auditDescGroup: false,
- // 附件
- auditAttachmentGroup: false,
- // 审计线索明细
- auditXsGroup: false,
- baseFormData: baseData,
- // 问题性质
- questionOption: xzList,
- infoSearchData: {},
- // 是否是整改人 1:整改人 2:初审人 3:复审人
- logInfo: 0,
- // 问题判定
- questionFormData: {
- questionFlag: 0,
- nonQuestionDesc: null,
- questionId: null,
- nonQuestionTag: null,
- },
- questionNature:[],
- questionNatureList: [
- {
- label: '有业务无制度',
- value: '有业务无制度',
- children: [
- ]
- },
- {
- label: '有制度难执行',
- value: '有制度难执行',
- children: [
- {
- label: '制度太宽泛缺乏操作细则',
- value: '制度太宽泛缺乏操作细则'
- },
- {
- label: '制度过时不具备可操作性',
- value: '制度过时不具备可操作性'
- },
- {
- label: '制度脱离实际难落地实施',
- value: '制度脱离实际难落地实施'
- },
- ]
- },
- {
- label: '有制度未遵循',
- value: '有制度未遵循',
- children: [{
- label:'特殊事项已经线下审批',
- value: '特殊事项已经线下审批'
- },{
- label:'事项紧急重目标轻合规',
- value: '事项紧急重目标轻合规'
- },{
- label:'制度理解存在人为偏差',
- value: '制度理解存在人为偏差'
- },{
- label:'工作疏忽未按制度行事',
- value: '工作疏忽未按制度行事'
- },{
- label:'人为规避制度管控要求',
- value: '人为规避制度管控要求'
- }]
- }
- ],
- isDescStatus: false,
- nonQuestionList: [],
- // 初始化 上传附件部分
- flagIs: true,
- fileList: [],
- fileListTemp: [],
- attachments: [],
- editorOption: {
- // 只读
- readOnly: true,
- editable: false,
- modules: {
- toolbar: {
- container: [
- ['bold', 'italic', 'underline', 'strike'], // toggled buttons
- ['blockquote', 'code-block'],
- [{ header: 1 }, { header: 2 }], // custom button values
- [{ list: 'ordered' }, { list: 'bullet' }],
- [{ script: 'sub' }, { script: 'super' }], // superscript/subscript
- [{ indent: '-1' }, { indent: '+1' }], // outdent/indent
- [{ direction: 'rtl' }], // text direction
- [{ size: ['small', false, 'large', 'huge'] }], // custom dropdown
- [{ header: [1, 2, 3, 4, 5, 6, false] }],
- [{ color: [] }, { background: [] }], // dropdown with defaults from theme
- [{ font: [] }],
- [{ align: [] }],
- ['clean'], // remove formatting button
- ['link', 'image'], // link and image, video
- ],
- },
- },
- },
- columnsDetail: [],
- dataDetail: [],
- loading: false,
- // 表单数据
- isInitData: false,
- webFlowData: {},
- // 是否只查看
- isWebFlow: false,
- lockId: 0,
- // 是否是关注类
- isFocus: false,
- }
- },
- computed: {
- actualAccept() {
- // 优先使用前端配置的类型限制,如未配置,则使用后端支持的类型
- return (
- this.accept || JSON.parse(sdLocalStorage.getItem('commonConfig') || '{}').attachType || ''
- )
- },
- },
- watch: {
- questionNature(val) {
- this.questionNature = val
- },
- fileList: {
- handler(val) {
- this.fileListTemp = val.map((item) => {
- return {
- name: item.name,
- url: item.url,
- }
- })
- },
- immediate: true,
- },
- 'questionFormData.questionFlag': {
- handler(val) {
- if (val === 1) {
- this.questionFormData.questionId = null
- this.questionFormData.nonQuestionDesc = null
- this.questionFormData.nonQuestionTag = null
- }
- },
- },
- isInitData: {
- handler: function(val) {
- this.$nextTick(() => {
- this.setInitData()
- })
- },
- },
- },
- mounted() {
- axios({ url: 'api/xcoa-mobile/v1/problem-statement/all', method: 'get' }).then((res) => {
- res.data.length ? (this.nonQuestionList = res.data) : (this.nonQuestionList = [])
- })
- },
- methods: {
- // 表单验证
- validForm(e) {
- return Promise.resolve(true)
- },
- actionBtnClick(evt, { button, FlowData }) {
- const { model } = FlowData
- if (button.buttonId === 'G_1_FXWTSJ.4') {
- }
- // 根据
- if (button.fakeId === 'save' || button.fakeId === 'workflow-push') {
- // 保存前先校验计划是否已经存在
- evt.waitUntil(
- new Promise((resolve, reject) => {
- this.saveForm(button.buttonId).then((res) => {
- if (!res) {
- evt.preventDefault()
- }
- resolve()
- })
- })
- )
- }
- },
- saveForm() {
- return new Promise((resolve) => {
- // 如果没有则提示请选择问题类型
- const { questionFlag, questionId, nonQuestionDesc } = this.questionFormData
- if (questionFlag !== 0 && questionFlag !== 1 && this.logInfo === 1) {
- message.warning('请选择问题类型')
- resolve(false)
- return
- }
- // 校验非问题类型参数
- if ( questionFlag === 0 ) {
- if (!questionId) {
- message.warning('请选择非问题标签')
- resolve(false)
- return
- }
- // if (!nonQuestionDesc) {
- // message.warning('请填写非问题说明')
- // resolve(false)
- // return
- // }
- }
- // 如果是处于第一阶段则需要选择问题性质
- if (this.logInfo === 2 && questionFlag === 1) {
- console.log(this.questionFormData, this.questionNature)
- // 判断问题性质是否已经选择
- if (!this.questionNature) {
- message.warning('请选择问题性质')
- resolve(false)
- return
- }
- if (!this.questionNature.length) {
- message.warning('请选择问题性质')
- resolve(false)
- return
- }
- this.questionFormData.questionNature = this.questionNature.join('|')
- }
- Object.keys(this.questionFormData).map((val) => {
- this.$refs.docform.setFieldValue(val, this.questionFormData[val])
- })
- // 校验说明是否有值
- // 获取reformDesc
- const reformDesc = this.$refs.docform.getFieldValue('reformDesc')
- if (!reformDesc) {
- message.warning('请填写整改说明')
- resolve(false)
- return
- }
- resolve(true)
- })
- },
- // 初始化基础信息
- initData(model, fields, FlowData) {
- this.isInitData = true
- this.webFlowData = {
- model,
- fields,
- FlowData,
- }
- return true
- },
- setInitData() {
- const { model, fields, FlowData } = this.webFlowData
- this.lockId = FlowData.lockId
- // 如果整改人是自己则可以上传
- // 显示信息
- // todo修改流程后更改
- // 2整改 3初审 4复审
- // http://10.104.32.30/api/framework/v1/task-form-process/inst-logs-process/17733
- // 给整改人G_1_FXWTSJ.7 viewAccount reformDate
- // ,初审人G_1_FXWTSJ.2 checker checkDate,
- // 复审人G_1_FXWTSJ.4 reviewer reviewDate
- // 现在的阶段
- let filedName = ''
- let filedDate = ''
- const isFlag = FlowData.processActiveLogInfo[0]
- if (isFlag?.stepId === 'G_1_FXWTSJ.7') {
- this.logInfo = 1
- filedName = 'viewAccount'
- filedDate = 'reformDate'
- }
- if (isFlag?.stepId === 'G_1_FXWTSJ.2') {
- this.logInfo = 2
- filedName = 'checker'
- filedDate = 'checkDate'
- }
- if (isFlag?.stepId === 'G_1_FXWTSJ.4') {
- this.logInfo = 3
- filedName = 'reviewer'
- filedDate = 'reviewDate'
- }
- this.$refs.docform.setFieldValue(filedName, getUserInfo().name)
- const strTime = moment().format('YYYY-MM-DD')
- this.$refs.docform.setFieldValue(filedDate, strTime)
- // 是否只查看
- this.isWebFlow = FlowData.mode !== 'EDIT'
- this.questionFormData.nonQuestionDesc = model.nonQuestionDesc // 将值赋值给问题
- this.questionFormData.nonQuestionTag = model.nonQuestionTag
- this.questionFormData.questionFlag = model.questionFlag
- this.questionFormData.questionId = model.questionId
- const attachmentList = (model.attachment || '').split(',')
- const fileNameList = (model.fileName || '').split(',')
- this.fileList = []
- if (model.attachment) {
- for (let i = 0; i < attachmentList.length; i++) {
- this.fileList.push({
- name: fileNameList[i],
- url: attachmentList[i],
- })
- }
- }
- // 初始化线索信息
- // 获取模型信息
- const data = { id: model.modelId + '' }
- AuditRiskbraryService.getIamModelMaintain(data).then((val) => {
- // this.$refs.docform.setFieldValue('modelType', val.modelType)
- const datas = {}
- val.data.pageFormData.pageFieldInfos.map((val) => {
- datas[val.name] = val.value
- })
- // 模型类型
- // isFocus
- this.$nextTick(() => {
- this.$refs.docform.setFieldValue('modelTypeName', datas.modelTypeName)
- this.$refs.docform.setFieldValue('batchName', datas.modelName)
- // 模型编码
- this.$refs.docform.setFieldValue('batchCode', datas.modelCode)
- this.$refs.docform.setFieldValue('modelDomainName', datas.modelDomainName)
- this.$refs.docform.setFieldValue('modelPhaseName', datas.modelPhaseName)
- this.$refs.docform.setFieldValue('modelReformDesc', datas.reformDesc)
- // modelTypeName
- this.isFocus = datas.modelTypeName.includes('关注类')
- })
- })
- this.getRiskDetail()
- this.auditBaseGroup = true
- this.auidtInfoGroup = true
- this.auditJudgeGroup = true
- this.auditDescGroup = true
- this.auditAttachmentGroup = true
- this.auditXsGroup = true
- },
- // 非问题处理
- questionChange(val) {
- const onDesc = this.nonQuestionList.find((item) => item.id === val)
- const { description, name } = onDesc
- this.questionFormData.nonQuestionDesc = description
- this.questionFormData.nonQuestionTag = name
- // 如果详情为空或者null则 isDescStatus ==false
- if (description === '' || description === null) {
- this.isDescStatus = false
- } else {
- this.isDescStatus = true
- }
- },
- // 附件上传
- // 附件自定义上传
- customRequest(data, catnum = 0, item) {
- if (data.file.size === 0) {
- message.warn(`不能上传大小为0的文件`)
- return
- }
- const file = {
- FileName: data.file.name,
- Completed: 0,
- CatNum: catnum,
- }
- const userInfo = getUserInfo()
- this.attachments = [...this.attachments]
- const strTime = moment().format('YYYY-MM-DD HH:mm:ss')
- const formData = new FormData()
- formData.append('file', data.file)
- formData.append('FileName', data.file.name)
- formData.append('lockId', this.lockId)
- formData.append('groupId', this.groupId)
- formData.append(
- 'querystring',
- `<file_unid></file_unid><file_name>${data.file.name}</file_name><file_size>${data.file.size}</file_size><completed>1</completed><file_create>${strTime}</file_create><file_update>${strTime}</file_update><file_editmodel>0</file_editmodel><file_lockuser>0</file_lockuser><CreateInfo>${userInfo?.account} ${strTime}</CreateInfo><filetype></filetype><user_name>${userInfo?.account}</user_name><UpdateInfo>${userInfo?.account}于${strTime}创建.</UpdateInfo><TaodaInfo></TaodaInfo><CatNum>${catnum}</CatNum><Ext></Ext>`
- )
- const url = 'api/xcoa-mobile/v1/iam-attachment-extend/attachments-upload/indi'
- axios
- .post(url, formData, {
- headers: {
- 'Content-Type': 'multipart/form-data',
- },
- })
- .then((_) => {
- if (_.data.startsWith('false')) {
- message.error(`${data.file.name} 上传失败`)
- } else {
- this.fileList.push({
- name: data.file.name,
- url: _.data,
- })
- const attachment = this.fileList.map((item) => item.url).join(',')
- const nameList = this.fileList.map((item) => item.name).join(',')
- this.$refs.docform.setFieldValue('attachment', attachment)
- this.$refs.docform.setFieldValue('fileName', nameList)
- data.onSuccess(_, data.file)
- }
- })
- .catch((e) => {
- message.error(`${data.file.name} 上传失败`)
- throw e
- })
- },
- // 附件上传
- handleChange(info) {
- const status = info.file.status
- if (status === 'done') {
- message.success(`${info.file.name} 上传成功.`)
- } else if (status === 'error') {
- message.error(`${info.file.name} 上传失败.`)
- }
- },
- // <!-- 删除已上传附件 -->
- deleteFile(index) {
- this.fileList.splice(index, 1)
- const attachment = this.fileList.map((item) => item.url).join(',')
- const nameList = this.fileList.map((item) => item.name).join(',')
- this.$refs.docform.setFieldValue('attachment', attachment)
- this.$refs.docform.setFieldValue('fileName', nameList)
- },
- // 下载附件
- exportClick(row, i) {
- const attachmentList = row.attachment.split(',')
- const fileNameList = row.fileName.split(',')
- const spliceIndex = attachmentList[i].lastIndexOf('|')
- const destStep = attachmentList[i].substring(spliceIndex + 1, attachmentList[i].length)
- download(
- 'api/framework/v1/task-form-process/download-attachments/' + destStep,
- fileNameList[i]
- )
- },
- // 获取table数据
- getRiskDetail() {
- const { model } = this.webFlowData
- this.loading = true
- this.infoSearchData = {
- modelId: model.modelId,
- detailGroupId: model.detailGroupId,
- jmEventType: model.jmEventType,
- unitCode: model.unitCode,
- }
- AuditRiskbraryService.getDetailInfo(this.infoSearchData)
- .then((res) => {
- const allField = []
- this.columnsDetail = res.data[0].detailArr.map((item) => {
- allField.push(item.commit)
- return {
- title: item.commit,
- dataIndex: item.commit,
- width: item.value === 'null' ? '100px' : '240px',
- ellipsis: true,
- }
- })
- // 过滤事件标签 业务主键 业务时间 buss_key event_type buss_time
- this.columnsDetail = this.columnsDetail.filter((item) => {
- return (
- item.title !== 'buss_key' &&
- item.title !== 'event_type' &&
- item.title !== 'buss_time' &&
- item.title !== '事件标签' &&
- item.title !== '业务主键' &&
- item.title !== '业务时间'
- )
- })
- this.dataDetail = res.data.map((item) => {
- const obj = {}
- allField.forEach((field) => {
- const onfield = item.detailArr.find((i) => i.commit === field).value
- obj[field] = onfield !== 'null' ? onfield : ''
- })
- obj.id = item.questionId
- return obj
- })
- })
- .finally(() => {
- this.loading = false
- })
- },
- setQuestionFormData(name, value, isArray = false) {
- if (isArray){
- value = value.split('|')
- }
- this.questionFormData[name] = value
- console.log(this.questionFormData)
- },
- questionNatureGet(val){
- console.log(val)
- this.questionNature = val
- }
- },
- }
- </script>
- <style module lang="scss">
- @use '@/common/design' as *;
- .upload {
- display: flex;
- min-width: 800px;
- min-height: 200px;
- .upload-list {
- width: calc(30% - 10px);
- margin-left: 10px;
- li {
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 100%;
- height: 30px;
- padding: 0 10px;
- margin-bottom: 10px;
- line-height: 30px;
- border-radius: 4px;
- span {
- display: inline-block;
- width: 80%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
- }
- .upload-data {
- width: 70%;
- }
- }
- .model-idea {
- // 上下边距
- margin: 10px 0;
- }
- .onlydiv {
- position: relative;
- width: 90%;
- margin: 0 auto;
- .noselect {
- position: absolute;
- top: 0;
- z-index: 100;
- width: 100%;
- height: 100%;
- }
- }
- .aclick {
- display: block;
- }
- </style>
|