[update 标准解读流程] 完善

This commit is contained in:
danshihao
2024-07-15 17:33:12 +08:00
parent 12b169eb2d
commit 177c28861b
8 changed files with 42 additions and 33 deletions
+4 -1
View File
@@ -77,8 +77,10 @@ const interpretFlowStart = (params) => postAction('/process/standardInterpretFlo
const interpretFlowReject = (params) => postAction('/process/standardInterpretFlow/flowReject', params) const interpretFlowReject = (params) => postAction('/process/standardInterpretFlow/flowReject', params)
// 保存 // 保存
const interpretFlowSave = (params) => postAction('/process/standardInterpretFlow/flowSave', params) const interpretFlowSave = (params) => postAction('/process/standardInterpretFlow/flowSave', params)
// 保存 // 转办
const interpretFlowTransfer = (params) => getAction('/process/standardInterpretFlow/flowTransfer', params) const interpretFlowTransfer = (params) => getAction('/process/standardInterpretFlow/flowTransfer', params)
// 加签
const interpretFlowCountersign = (params) => getAction('/process/standardInterpretFlow/flowCountersign', params)
// 获取详情 // 获取详情
const interpretGetDetail = (params) => getAction('/process/standardInterpretFlow/queryDetail', params) const interpretGetDetail = (params) => getAction('/process/standardInterpretFlow/queryDetail', params)
@@ -148,6 +150,7 @@ export {
interpretFlowReject, interpretFlowReject,
interpretFlowSave, interpretFlowSave,
interpretFlowTransfer, interpretFlowTransfer,
interpretFlowCountersign,
interpretGetDetail, interpretGetDetail,
compulsoryWithdrawal, compulsoryWithdrawal,
+1
View File
@@ -81,6 +81,7 @@ module.exports = {
mainInterpreter: 'Main Interpreter', mainInterpreter: 'Main Interpreter',
interpretingTasksIsDistribute: 'Is the interpretation task issued', interpretingTasksIsDistribute: 'Is the interpretation task issued',
departInterpretingPeople: 'Interpreters from various departments involved', departInterpretingPeople: 'Interpreters from various departments involved',
interpreter: 'Interpreting people',
batchSelectionUser: 'Batch selection of personnel', batchSelectionUser: 'Batch selection of personnel',
pleaseSelectTheNextStep: 'Please select the next step', pleaseSelectTheNextStep: 'Please select the next step',
translation: 'Translation', translation: 'Translation',
+1
View File
@@ -81,6 +81,7 @@ module.exports = {
mainInterpreter: '主解读人', mainInterpreter: '主解读人',
interpretingTasksIsDistribute: '解读任务是否下发', interpretingTasksIsDistribute: '解读任务是否下发',
departInterpretingPeople: '各涉及部门解读人', departInterpretingPeople: '各涉及部门解读人',
interpreter: '解读人',
batchSelectionUser: '批量选择人员', batchSelectionUser: '批量选择人员',
pleaseSelectTheNextStep: '请选择下一步', pleaseSelectTheNextStep: '请选择下一步',
translation: '译文', translation: '译文',
+3 -4
View File
@@ -209,12 +209,11 @@ export const StandardInterpretationNodes = new EsEnums({
controlDepartLiaisonDistribution: { text: '主控部门联络人分发', value: 'contact_person_distribute', btn: ['transfer', 'save', 'submit'] }, controlDepartLiaisonDistribution: { text: '主控部门联络人分发', value: 'contact_person_distribute', btn: ['transfer', 'save', 'submit'] },
standardInterpreterDistribution: { text: '标准主解读人分发', value: 'master_interpret_distribute', btn: ['reject', 'transfer', 'save', 'submit'] }, standardInterpreterDistribution: { text: '标准主解读人分发', value: 'master_interpret_distribute', btn: ['reject', 'transfer', 'save', 'submit'] },
standardInterpreterReDistribution: { text: '标准主解读人分发', value: 'master_interpret_again_distribute', btn: ['reject', 'transfer', 'save', 'submit'] }, standardInterpreterReDistribution: { text: '标准主解读人分发', value: 'master_interpret_again_distribute', btn: ['reject', 'transfer', 'save', 'submit'] },
interpreterFillInfoOne: { text: '解读人填写信息', value: 'master_interpret_fillout', btn: ['reject', 'transfer', 'save', 'submit'] }, interpreterFillInfo: { text: '解读人填写信息', value: 'interpreting_people_fillout', btn: ['reject', 'transfer', 'save', 'submit'] },
interpreterFillInfoTwo: { text: '解读人填写信息', value: 'interpreting_people_fillout', btn: ['reject', 'transfer', 'save', 'submit'] },
mainInterpreterSingleLineReview: { text: '标准主解读人单线审核', value: 'master_interpret_approve', btn: ['reject', 'transfer', 'save', 'submit'] }, mainInterpreterSingleLineReview: { text: '标准主解读人单线审核', value: 'master_interpret_approve', btn: ['reject', 'transfer', 'save', 'submit'] },
standardInterpreterSummary: { text: '标准主解读人汇总', value: 'master_interpret_summary', btn: ['transfer', 'save', 'submit'] }, standardInterpreterSummary: { text: '标准主解读人汇总', value: 'master_interpret_summary', btn: ['transfer', 'save', 'submit'] },
countersignOne: { text: '会签', value: 'jointly_sign_1', btn: ['reject', 'transfer', 'save', 'submit'] }, countersignOne: { text: '会签', value: 'jointly_sign_1', btn: ['countersign', 'reject', 'transfer', 'save', 'submit'] },
countersignTwo: { text: '会签', value: 'jointly_sign_2', btn: ['reject', 'transfer', 'save', 'submit'] }, countersignTwo: { text: '会签', value: 'jointly_sign_2', btn: ['countersign', 'reject', 'transfer', 'save', 'submit'] },
departManagerReviewOne: { text: '各涉及部门科室经理审核', value: 'department_manager_approve_1', btn: ['reject', 'transfer', 'save', 'submit'] }, departManagerReviewOne: { text: '各涉及部门科室经理审核', value: 'department_manager_approve_1', btn: ['reject', 'transfer', 'save', 'submit'] },
departManagerReviewTwo: { text: '各涉及部门科室经理审核', value: 'department_manager_approve_2', btn: ['reject', 'transfer', 'save', 'submit'] }, departManagerReviewTwo: { text: '各涉及部门科室经理审核', value: 'department_manager_approve_2', btn: ['reject', 'transfer', 'save', 'submit'] },
manageOrTechnicalOfficerApprovalOne: { text: '主控部门高级经理/法规认证技术官批准', value: 'technical_officer_approval_1', btn: ['transfer', 'save', 'agree', 'reject'] }, manageOrTechnicalOfficerApprovalOne: { text: '主控部门高级经理/法规认证技术官批准', value: 'technical_officer_approval_1', btn: ['transfer', 'save', 'agree', 'reject'] },
@@ -149,7 +149,7 @@ import {
interpretFlowSave, interpretFlowSave,
interpretFlowReject, interpretFlowReject,
interpretFlowTransfer, interpretFlowTransfer,
getLookData getLookData, interpretFlowCountersign
} from '@api/workCenter' } from '@api/workCenter'
import InterpretationInitiate from '@views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate' import InterpretationInitiate from '@views/workCenter/standardInterpretationProcess/modules/InterpretationInitiate'
import UserSelectModal from '@comp/selection/UserSelectModal' import UserSelectModal from '@comp/selection/UserSelectModal'
@@ -495,7 +495,7 @@ export default {
userSelectCallback (userId) { userSelectCallback (userId) {
switch (this.selectUserType) { switch (this.selectUserType) {
case '1': case '1':
this.countersignCallback() this.countersignCallback(userId)
break break
case '2': case '2':
this.continueTurnToCallback(userId) this.continueTurnToCallback(userId)
@@ -506,23 +506,23 @@ export default {
if (this.loading) return if (this.loading) return
this.loading = true this.loading = true
const params = { const params = {
projectId: this.projectId,
taskId: this.$route.query.taskId, taskId: this.$route.query.taskId,
userId userId
} }
// interpretFlowTransfer(params).then(res => { interpretFlowCountersign(params).then(res => {
// if (res.success) { if (res.success) {
// this.$message.success(res.message) this.$message.success(res.message)
// this.goBack() } else {
// } else { this.$message.warn(res.message)
// this.$message.warn(res.message) }
// } }).catch(() => {
// }).catch(() => { this.loading = false
// this.loading = false }).finally(() => {
// }).finally(() => { setTimeout(() => {
// setTimeout(() => { this.loading = false
// this.loading = false }, 1000)
// }, 1000) })
// })
}, },
// 转办 // 转办
continueTurnToCallback (userId) { continueTurnToCallback (userId) {
@@ -12,7 +12,7 @@
:disabled="disabledImport" :disabled="disabledImport"
name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importUrl" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importUrl"
@change="handleImport"> @change="handleImport">
<a-button type="primary" icon="download" ghost>{{ $t('import') }}</a-button> <a-button type="primary" icon="download" :disabled="disabledImport" ghost>{{ $t('import') }}</a-button>
</a-upload> </a-upload>
<!-- 批量编辑(解读人填写) --> <!-- 批量编辑(解读人填写) -->
<a-button type="primary" ghost @click="handleBatchEdit" v-if="showBatchEditBtn"> <a-button type="primary" ghost @click="handleBatchEdit" v-if="showBatchEditBtn">
@@ -174,10 +174,10 @@ export default {
}, },
// 解读人回显列(解读人填写信息之后的节点显示) // 解读人回显列(解读人填写信息之后的节点显示)
interpretingPeopleDictColumn: { interpretingPeopleDictColumn: {
title: this.$t('workCenter.standardInterpretationProcess.departInterpretingPeople'), title: this.$t('workCenter.standardInterpretationProcess.interpreter'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'interpretPersonIds_dictText', dataIndex: 'interpretPersonId_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
// 解读的其他字段(拆分表的字段) // 解读的其他字段(拆分表的字段)
@@ -445,8 +445,7 @@ export default {
] ]
// 显示解读其他信息的节点(填写完解读信息及后的节点都显示) // 显示解读其他信息的节点(填写完解读信息及后的节点都显示)
const showExtendNodeId = [ const showExtendNodeId = [
StandardInterpretationNodes.interpreterFillInfoOne.value, // 解读人填写信息 StandardInterpretationNodes.interpreterFillInfo.value, // 解读人填写信息
StandardInterpretationNodes.interpreterFillInfoTwo.value, // 解读人填写信息
...showInterpreterNodes // 填写解读信息之后的节点 ...showInterpreterNodes // 填写解读信息之后的节点
] ]
// 是否回显解读人 // 是否回显解读人
@@ -494,8 +493,7 @@ export default {
// 显示批量编辑按钮 // 显示批量编辑按钮
showBatchEditBtn () { showBatchEditBtn () {
return [ return [
StandardInterpretationNodes.interpreterFillInfoOne.value, // 解读人填写信息 StandardInterpretationNodes.interpreterFillInfo.value // 解读人填写信息
StandardInterpretationNodes.interpreterFillInfoTwo.value // 解读人填写信息
].includes(this.currentNodeId) ].includes(this.currentNodeId)
}, },
// 是否显示编辑按钮 // 是否显示编辑按钮
@@ -505,8 +503,7 @@ export default {
return true return true
} }
return [ return [
StandardInterpretationNodes.interpreterFillInfoOne.value, // 解读人填写信息 StandardInterpretationNodes.interpreterFillInfo.value, // 解读人填写信息
StandardInterpretationNodes.interpreterFillInfoTwo.value, // 解读人填写信息
StandardInterpretationNodes.standardInterpreterSummary.value // 标准主解读人汇总 StandardInterpretationNodes.standardInterpreterSummary.value // 标准主解读人汇总
].includes(this.currentNodeId) ].includes(this.currentNodeId)
}, },
@@ -173,8 +173,8 @@ export default {
this.$message.warn(this.$t('workCenter.standardInterpretationProcess.pleaseSelectClause')) this.$message.warn(this.$t('workCenter.standardInterpretationProcess.pleaseSelectClause'))
obj._flag = true obj._flag = true
} }
// 来源选择其他,没有条款数据提示至少一条数据 // 选择条款后来源选择其他,没有条款数据提示至少一条数据
if (!isNoInput && isClauseNotData) { if (this.showClauseTable && !isNoInput && isClauseNotData) {
this.$message.warn(this.$t('addAtLeastOneRowOfData')) this.$message.warn(this.$t('addAtLeastOneRowOfData'))
// 校验失败就标记true // 校验失败就标记true
obj._flag = true obj._flag = true
@@ -265,7 +265,7 @@ export default {
} else { } else {
// 只要下一步了,对新增的部分进行校验 // 只要下一步了,对新增的部分进行校验
obj.clauseData = this.$refs.interpretationClauseTable.getData() obj.clauseData = this.$refs.interpretationClauseTable.getData()
// 至少一条条款数据 // 至少一条条款数据(重新分发节点可以删了代表不分发)
if (!obj.clauseData.length) { if (!obj.clauseData.length) {
this.$message.warn(this.$t('addAtLeastOneRowOfData')) this.$message.warn(this.$t('addAtLeastOneRowOfData'))
obj._flag = true obj._flag = true
@@ -311,8 +311,12 @@ export default {
this.isDistribute = true this.isDistribute = true
this.clauseDataSource = data.data.processStandardInterpretClauseList this.clauseDataSource = data.data.processStandardInterpretClauseList
} else if (info.distribute === IsDistribute.NOT_DISTRIBUTE.value) { } else if (info.distribute === IsDistribute.NOT_DISTRIBUTE.value) {
// 不下发回显
this.isDistribute = false this.isDistribute = false
this.clauseDataSource = data.data.processStandardInterpretClauseSublistList this.clauseDataSource = data.data.processStandardInterpretClauseSublistList
this.$nextTick(() => {
this.userForm.setFieldsValue(this.formInline)
})
// 如果分解单来源是不带入,就禁用导入 // 如果分解单来源是不带入,就禁用导入
if (info.decompositionSource === DecompositionSource.NO_INPUT.value) { if (info.decompositionSource === DecompositionSource.NO_INPUT.value) {
this.disabledImport = true this.disabledImport = true
@@ -331,6 +335,10 @@ export default {
handleNextStep () { handleNextStep () {
this.form.validateFields((err, values) => { this.form.validateFields((err, values) => {
if (!err) { if (!err) {
// 不带入就禁用导入
if (this.formInline.decompositionSource === DecompositionSource.NO_INPUT.value) {
this.disabledImport = true
}
this.isDistribute = values.distribute === IsDistribute.DISTRIBUTE.value this.isDistribute = values.distribute === IsDistribute.DISTRIBUTE.value
this.isNextStep = true this.isNextStep = true
this.$nextTick(() => { this.$nextTick(() => {