[update] 法规合规评估流程
This commit is contained in:
+45
-4
@@ -155,7 +155,19 @@
|
||||
<!-- 提交 -->
|
||||
<a-button type="primary" :loading="loading" @click="handleSubmit" icon="upload">{{ $t('submit') }}</a-button>
|
||||
</template>
|
||||
<template v-else-if="[5].includes(currentNode)">
|
||||
<!-- 转办 -->
|
||||
<a-button type="primary" ghost :loading="loading" @click="handleTurnTo" icon="arrow-up">{{ $t('turnTo') }}</a-button>
|
||||
<!-- 保存 -->
|
||||
<a-button type="primary" ghost :loading="loading" @click="handleSave"><i class="iconfont icon-save"></i> {{ $t('preservation') }}</a-button>
|
||||
<!-- 同意 -->
|
||||
<a-button type="primary" :loading="loading" @click="handleAgree" icon="check">{{ $t('agree') }}</a-button>
|
||||
<!-- 驳回 -->
|
||||
<a-button type="danger" ghost :loading="loading" @click="handleReject" icon="close">{{ $t('reject') }}</a-button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<!-- 加签 -->
|
||||
<a-button type="primary" ghost :loading="loading" @click="handleAddSign" icon="plus">{{ $t('countersign') }}</a-button>
|
||||
<!-- 转办 -->
|
||||
<a-button type="primary" ghost :loading="loading" @click="handleTurnTo" icon="arrow-up">{{ $t('turnTo') }}</a-button>
|
||||
<!-- 保存 -->
|
||||
@@ -169,6 +181,8 @@
|
||||
|
||||
<!-- 选人弹框 -->
|
||||
<user-select-modal ref="userSelectModal" type="radio" @change="userSelectModalChange"></user-select-modal>
|
||||
<!-- 加签选人 -->
|
||||
<user-select-modal ref="addSignUserSelect" type="radio" @change="addSignUserSelectChange"></user-select-modal>
|
||||
</internal-detail-page>
|
||||
</template>
|
||||
|
||||
@@ -180,7 +194,7 @@ import UserSelectModal from '@/components/selection/UserSelectModal'
|
||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||
import { RegulatoryComplianceCheckNodes, ProcessKey } from '../../../enums/commonEnums'
|
||||
import {
|
||||
getDataDraft, getLookData,
|
||||
getDataDraft, getLookData, processAddSign,
|
||||
regulatoryComplianceCheckAgree, regulatoryComplianceCheckApproval,
|
||||
regulatoryComplianceCheckGetDataById,
|
||||
regulatoryComplianceCheckReject,
|
||||
@@ -513,7 +527,7 @@ export default {
|
||||
if (this.$route.query.taskId) {
|
||||
// 有taskId说明是驳回的提交
|
||||
func = regulatoryComplianceCheckAgree
|
||||
paramObj.common.taskId = this.$route.query.taskId
|
||||
paramObj.basicTaskInfoDTO.taskId = this.$route.query.taskId
|
||||
} else {
|
||||
func = regulatoryComplianceCheckApproval
|
||||
}
|
||||
@@ -532,6 +546,33 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
// 加签
|
||||
handleAddSign () {
|
||||
if (this.loading) return
|
||||
// 点击显示选人组件
|
||||
this.$refs.addSignUserSelect.open()
|
||||
},
|
||||
// 加签选完人的回调
|
||||
addSignUserSelectChange (userIds) {
|
||||
this.loading = true
|
||||
const param = {}
|
||||
param.userId = userIds
|
||||
param.taskId = this.$route.query.taskId
|
||||
processAddSign(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
// 加签完成更新人员信息
|
||||
this.getPersonInfoStructure(ProcessKey.REGULATORY_COMPLIANCE_CHECK.value, () => {
|
||||
// 人员信息都不可选择
|
||||
this.initPersonInfoData(false)
|
||||
})
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 转办
|
||||
handleTurnTo () {
|
||||
if (this.loading) return
|
||||
@@ -673,8 +714,8 @@ export default {
|
||||
jasonObj.businessInfoDTO = baseInfo
|
||||
// 保存快照需要的JSON end
|
||||
const param = {}
|
||||
param.common = Object.assign({}, values)
|
||||
param.common.taskId = this.$route.query.taskId
|
||||
param.basicTaskInfoDTO = Object.assign({}, values)
|
||||
param.basicTaskInfoDTO.taskId = this.$route.query.taskId
|
||||
// 草稿JSON
|
||||
param.infoJsonStr = JSON.stringify(jasonObj)
|
||||
regulatoryComplianceCheckReject(param).then(res => {
|
||||
|
||||
Reference in New Issue
Block a user