[update 标准解读流程] 完善
This commit is contained in:
@@ -78,7 +78,7 @@ const interpretFlowReject = (params) => postAction('/process/standardInterpretFl
|
|||||||
// 保存
|
// 保存
|
||||||
const interpretFlowSave = (params) => postAction('/process/standardInterpretFlow/flowSave', params)
|
const interpretFlowSave = (params) => postAction('/process/standardInterpretFlow/flowSave', params)
|
||||||
// 保存
|
// 保存
|
||||||
const interpretFlowTransfer = (params) => postAction('/process/standardInterpretFlow/flowTransfer', params)
|
const interpretFlowTransfer = (params) => getAction('/process/standardInterpretFlow/flowTransfer', params)
|
||||||
// 获取详情
|
// 获取详情
|
||||||
const interpretGetDetail = (params) => getAction('/process/standardInterpretFlow/queryDetail', params)
|
const interpretGetDetail = (params) => getAction('/process/standardInterpretFlow/queryDetail', params)
|
||||||
|
|
||||||
|
|||||||
@@ -163,6 +163,7 @@ module.exports = {
|
|||||||
lookDetail: 'View details',
|
lookDetail: 'View details',
|
||||||
batchReject: 'Batch rejection',
|
batchReject: 'Batch rejection',
|
||||||
pleaseSelectDistributeData: 'Select the data you want to distribute',
|
pleaseSelectDistributeData: 'Select the data you want to distribute',
|
||||||
|
pleaseSelectDeleteData: 'Please select the data to be deleted',
|
||||||
deadline: 'Deadline',
|
deadline: 'Deadline',
|
||||||
submitAddAdd: 'Submit and add',
|
submitAddAdd: 'Submit and add',
|
||||||
pleaseSelectOneStandard: 'Please select at least one criterion',
|
pleaseSelectOneStandard: 'Please select at least one criterion',
|
||||||
|
|||||||
@@ -169,6 +169,7 @@ module.exports = {
|
|||||||
lookDetail: '查看详情',
|
lookDetail: '查看详情',
|
||||||
batchReject: '批量驳回',
|
batchReject: '批量驳回',
|
||||||
pleaseSelectDistributeData: '请选择要分发的数据',
|
pleaseSelectDistributeData: '请选择要分发的数据',
|
||||||
|
pleaseSelectDeleteData: '请选择要删除的数据',
|
||||||
deadline: '截止时间',
|
deadline: '截止时间',
|
||||||
submitAddAdd: '提交并新增',
|
submitAddAdd: '提交并新增',
|
||||||
pleaseSelectOneStandard: '请选择至少一条标准',
|
pleaseSelectOneStandard: '请选择至少一条标准',
|
||||||
|
|||||||
+3
-1
@@ -402,8 +402,9 @@ export default {
|
|||||||
// 发起节点
|
// 发起节点
|
||||||
if (this.isInitiate) {
|
if (this.isInitiate) {
|
||||||
const standardData = compData.standardData[0] || {}
|
const standardData = compData.standardData[0] || {}
|
||||||
|
const formData = this.info.data && this.info.data.processStandardInterpret
|
||||||
// 选择的标准数据
|
// 选择的标准数据
|
||||||
params.data.processStandardInterpret = Object.assign({}, {
|
params.data.processStandardInterpret = Object.assign({}, formData, {
|
||||||
// 分解单来源
|
// 分解单来源
|
||||||
decompositionSource: standardData.decompositionSource,
|
decompositionSource: standardData.decompositionSource,
|
||||||
// 标准id
|
// 标准id
|
||||||
@@ -422,6 +423,7 @@ export default {
|
|||||||
params.data.processStandardInterpret = Object.assign({}, this.info.data.processStandardInterpret, compData.formData, {
|
params.data.processStandardInterpret = Object.assign({}, this.info.data.processStandardInterpret, compData.formData, {
|
||||||
projectId: this.projectId
|
projectId: this.projectId
|
||||||
})
|
})
|
||||||
|
params.map.passFirst = compData.isDistribute ? IsDistribute.DISTRIBUTE.value : IsDistribute.NOT_DISTRIBUTE.value
|
||||||
// 条款列表(分发和不分发传入的字段不一样)
|
// 条款列表(分发和不分发传入的字段不一样)
|
||||||
if (compData.isDistribute) {
|
if (compData.isDistribute) {
|
||||||
params.data.processStandardInterpretClauseList = compData.clauseData
|
params.data.processStandardInterpretClauseList = compData.clauseData
|
||||||
|
|||||||
+10
-3
@@ -9,6 +9,7 @@
|
|||||||
<!-- 导入(标准主解读人节点 && 选择不分发时) -->
|
<!-- 导入(标准主解读人节点 && 选择不分发时) -->
|
||||||
<a-upload v-if="isMainInterpreterDistribute && !isDistribute"
|
<a-upload v-if="isMainInterpreterDistribute && !isDistribute"
|
||||||
:data="importParams"
|
:data="importParams"
|
||||||
|
: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" ghost>{{ $t('import') }}</a-button>
|
||||||
@@ -121,6 +122,12 @@ export default {
|
|||||||
type: Object,
|
type: Object,
|
||||||
default: () => ({}),
|
default: () => ({}),
|
||||||
required: false
|
required: false
|
||||||
|
},
|
||||||
|
// 是否禁用导入
|
||||||
|
disabledImport: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
required: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
@@ -682,9 +689,9 @@ export default {
|
|||||||
* 批量选择人员
|
* 批量选择人员
|
||||||
*/
|
*/
|
||||||
handleBatchSelectUser () {
|
handleBatchSelectUser () {
|
||||||
// 至少勾选一条数据
|
// 请选择要分发的数据
|
||||||
if (!this.selectedRowKeys.length) {
|
if (!this.selectedRowKeys.length) {
|
||||||
this.$message.warning(this.$t('selectARecord'))
|
this.$message.warning(this.$t('pleaseSelectDistributeData'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$refs.userSelectModal.open()
|
this.$refs.userSelectModal.open()
|
||||||
@@ -759,7 +766,7 @@ export default {
|
|||||||
handleBatchDelete () {
|
handleBatchDelete () {
|
||||||
// 至少勾选一条数据
|
// 至少勾选一条数据
|
||||||
if (!this.selectedRowKeys.length) {
|
if (!this.selectedRowKeys.length) {
|
||||||
this.$message.warning(this.$t('selectARecord'))
|
this.$message.warning(this.$t('pleaseSelectDeleteData'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const that = this
|
const that = this
|
||||||
|
|||||||
+2
-1
@@ -168,7 +168,7 @@ export default {
|
|||||||
// 如果来源选择不带入,至少选择一条条款信息
|
// 如果来源选择不带入,至少选择一条条款信息
|
||||||
const isNoInput = this.dataSource.length && (this.dataSource[0].decompositionSource === DecompositionSource.NO_INPUT.value)
|
const isNoInput = this.dataSource.length && (this.dataSource[0].decompositionSource === DecompositionSource.NO_INPUT.value)
|
||||||
// 是否没有条款数据
|
// 是否没有条款数据
|
||||||
const isClauseNotData = this.showClauseTable && !this.$refs.interpretationClauseTable.getData().length
|
const isClauseNotData = !this.showClauseTable || !this.$refs.interpretationClauseTable.getData().length
|
||||||
if (isNoInput && isClauseNotData) {
|
if (isNoInput && isClauseNotData) {
|
||||||
this.$message.warn(this.$t('workCenter.standardInterpretationProcess.pleaseSelectClause'))
|
this.$message.warn(this.$t('workCenter.standardInterpretationProcess.pleaseSelectClause'))
|
||||||
obj._flag = true
|
obj._flag = true
|
||||||
@@ -224,6 +224,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.interpretationClauseTable.setData([{
|
this.$refs.interpretationClauseTable.setData([{
|
||||||
uuid: randomUUID(),
|
uuid: randomUUID(),
|
||||||
|
clauseId: this.dataSource[0].standardId,
|
||||||
itemTitle: this.dataSource[0].standardName,
|
itemTitle: this.dataSource[0].standardName,
|
||||||
itemNum: this.dataSource[0].standardNumber
|
itemNum: this.dataSource[0].standardNumber
|
||||||
}])
|
}])
|
||||||
|
|||||||
+9
-2
@@ -44,6 +44,7 @@
|
|||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:current-node-id="currentNodeId"
|
:current-node-id="currentNodeId"
|
||||||
:import-params="importParams"
|
:import-params="importParams"
|
||||||
|
:disabled-import="disabledImport"
|
||||||
:is-distribute="isDistribute"/>
|
:is-distribute="isDistribute"/>
|
||||||
<!-- 不分发的表单 -->
|
<!-- 不分发的表单 -->
|
||||||
<template v-if="!isDistribute">
|
<template v-if="!isDistribute">
|
||||||
@@ -95,7 +96,7 @@
|
|||||||
import UserSelection from '@comp/selection/UserSelection'
|
import UserSelection from '@comp/selection/UserSelection'
|
||||||
import InterpretationClauseTable
|
import InterpretationClauseTable
|
||||||
from '@views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable'
|
from '@views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable'
|
||||||
import { IsDistribute } from '@/enums/commonEnums'
|
import { DecompositionSource, IsDistribute } from '@/enums/commonEnums'
|
||||||
export default {
|
export default {
|
||||||
name: 'InterpretationMainInterpreterDistribute',
|
name: 'InterpretationMainInterpreterDistribute',
|
||||||
components: { InterpretationClauseTable, UserSelection },
|
components: { InterpretationClauseTable, UserSelection },
|
||||||
@@ -217,7 +218,9 @@ export default {
|
|||||||
standardInterp: '',
|
standardInterp: '',
|
||||||
standardId: '',
|
standardId: '',
|
||||||
splitInfoId: ''
|
splitInfoId: ''
|
||||||
}
|
},
|
||||||
|
// 禁用导入,分解单来源是不带入时
|
||||||
|
disabledImport: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -310,6 +313,10 @@ export default {
|
|||||||
} 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
|
||||||
|
// 如果分解单来源是不带入,就禁用导入
|
||||||
|
if (info.decompositionSource === DecompositionSource.NO_INPUT.value) {
|
||||||
|
this.disabledImport = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 是否下发有值就自动带入下一步,并回显数据
|
// 是否下发有值就自动带入下一步,并回显数据
|
||||||
if (info.distribute) {
|
if (info.distribute) {
|
||||||
|
|||||||
Reference in New Issue
Block a user