update 企标稽查所有流程调整
This commit is contained in:
+12
-33
@@ -143,9 +143,6 @@ export default {
|
||||
mixins: [WorkCenterMixin],
|
||||
data () {
|
||||
return {
|
||||
// 当前流程信息
|
||||
EsInspectionPlan,
|
||||
info: {},
|
||||
loading: false,
|
||||
switchValue: 'base',
|
||||
disabled: false,
|
||||
@@ -165,6 +162,9 @@ export default {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 22 }
|
||||
},
|
||||
// 当前流程信息
|
||||
EsInspectionPlan,
|
||||
info: {},
|
||||
currentNode: '',
|
||||
currentNodeName: '',
|
||||
// 项目id
|
||||
@@ -199,9 +199,11 @@ export default {
|
||||
validateTrigger: 'change'
|
||||
}
|
||||
},
|
||||
// 流程基本信息
|
||||
// 流程表单
|
||||
processInfoForm: this.$form.createForm(this),
|
||||
// 会签表单
|
||||
countersignForm: this.$form.createForm(this),
|
||||
// 流程审批信息表单
|
||||
approvalInfoForm: this.$form.createForm(this),
|
||||
// 是否会签
|
||||
isCountersign: null,
|
||||
@@ -212,9 +214,10 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
pageTitle () {
|
||||
return this.$t('flowCenter') + this.$route.meta.title + '(' + this.subTitle + ')'
|
||||
return this.$t('flowCenter') + this.$route.meta.title + '(' + this.nodeTitle + ')'
|
||||
},
|
||||
subTitle () {
|
||||
// 节点标题
|
||||
nodeTitle () {
|
||||
return this.$route.query.taskName || EsInspectionPlan.initiate.text
|
||||
},
|
||||
processDisabled () {
|
||||
@@ -231,8 +234,9 @@ export default {
|
||||
this.currentNode = nodeId || EsInspectionPlan.initiate.value
|
||||
this.currentNodeName = taskName || EsInspectionPlan.initiate.text
|
||||
this.projectId = projectId
|
||||
this.btn = EsInspectionPlan.propertyOfValue('btn', this.currentNode)
|
||||
// 查询人员信息
|
||||
this.getPersonInfoStructure(ProcessKey.ES_Inspection_Plan.value, () => {
|
||||
this.getPersonInfoStructure(ProcessKey.ES_INSPECTION_PLAN.value, () => {
|
||||
this.initPersonInfoData(this.currentNode === EsInspectionPlan.initiate.value)
|
||||
})
|
||||
// 如果是待办进来,就获取详情数据
|
||||
@@ -249,8 +253,6 @@ export default {
|
||||
*/
|
||||
getProjectId () {
|
||||
this.loading = true
|
||||
this.currentNode = EsInspectionPlan.initiate.value
|
||||
this.btn = EsInspectionPlan.initiate.btn
|
||||
// 否则就是创建一个新的流程
|
||||
getInspectPlanProjectId().then(res => {
|
||||
if (res) {
|
||||
@@ -265,23 +267,6 @@ export default {
|
||||
*/
|
||||
loadPage () {
|
||||
const { projectId, taskId } = this.$route.query
|
||||
switch (this.currentNode) {
|
||||
case EsInspectionPlan.initiate.value:
|
||||
this.btn = EsInspectionPlan.initiate.btn
|
||||
break
|
||||
case EsInspectionPlan.fillInComments.value:
|
||||
this.btn = EsInspectionPlan.fillInComments.btn
|
||||
break
|
||||
case EsInspectionPlan.liaisonCollect.value:
|
||||
this.btn = EsInspectionPlan.liaisonCollect.btn
|
||||
break
|
||||
case EsInspectionPlan.relevantPersonnelCountersign.value:
|
||||
this.btn = EsInspectionPlan.relevantPersonnelCountersign.btn
|
||||
break
|
||||
case EsInspectionPlan.liaisonLeaderApproval.value:
|
||||
this.btn = EsInspectionPlan.liaisonLeaderApproval.btn
|
||||
break
|
||||
}
|
||||
this.loading = true
|
||||
getInspectPlanDetail({
|
||||
projectId,
|
||||
@@ -332,11 +317,6 @@ export default {
|
||||
const userList = this.$refs.inspectionPlanTable.dataSource.map(item => item.objectOfConsultation.split(',')).flat(Infinity)
|
||||
personnelObj.opinionFillList = Array.from(new Set(userList))
|
||||
}
|
||||
// else if (this.currentNode === EsInspectionPlan.liaisonCollect.value) {
|
||||
// // 节点3:只给后端leader
|
||||
// const map = this.$refs.personnelInfo[funName]()
|
||||
// personnelObj.leader = map.leader
|
||||
// }
|
||||
return personnelObj
|
||||
},
|
||||
// 获取页面参数
|
||||
@@ -445,8 +425,7 @@ export default {
|
||||
case EsInspectionPlan.initiate.value:
|
||||
fn = startInspectPlan
|
||||
break
|
||||
case EsInspectionPlan.fillInComments.value:
|
||||
case EsInspectionPlan.liaisonCollect.value:
|
||||
default:
|
||||
fn = approvalInspectPlan
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user