[update] 企标流程联调
This commit is contained in:
+46
-8
@@ -156,10 +156,12 @@ import {
|
||||
activelyReportSave,
|
||||
activelyReportTurnTo,
|
||||
activelyReportAgree,
|
||||
activelyReportReject
|
||||
activelyReportReject,
|
||||
activelyReportGetDataById
|
||||
} from '@/api/workCenter'
|
||||
import Vue from 'vue'
|
||||
import { USER_INFO } from '@/store/mutation-types'
|
||||
import pick from 'lodash.pick'
|
||||
|
||||
const personData = [
|
||||
{
|
||||
@@ -236,12 +238,8 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
if (this.currentNode === 1) {
|
||||
this.personnelInfoData = personData
|
||||
} else {
|
||||
this.personnelInfoData = personData.map(item => {
|
||||
return { ...item, canChoose: false, fieldName: undefined }
|
||||
})
|
||||
if (this.$route.query.taskId) {
|
||||
this.getProcessData(this.$route.query.taskId)
|
||||
}
|
||||
// 如果是查看进入的,不可编辑,不可操作
|
||||
if (this.$route.query.onlyLook) {
|
||||
@@ -299,10 +297,50 @@ export default {
|
||||
personnelInfoData: [], // 人员信息数据
|
||||
url: {
|
||||
list: '' // 人员信息右侧表的分页查询接口
|
||||
}
|
||||
},
|
||||
model: {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getProcessData (taskId) {
|
||||
activelyReportGetDataById(taskId).then(res => {
|
||||
if (res.success) {
|
||||
this.model = res.result
|
||||
this.$nextTick(() => {
|
||||
// 初始化流程信息
|
||||
this.processInfoForm.setFieldsValue(pick(this.model.common, 'prcName', 'dueTime', 'prcMes'))
|
||||
// 初始化流程审批信息,todo:需要判断是不是草稿进来的,草稿进来的才回显审批信息
|
||||
// this.approvalInfoForm.setFieldsValue(pick(this.model[0], 'commitText', 'commitFile'))
|
||||
})
|
||||
const taskName = this.$route.query.taskName
|
||||
if (taskName) {
|
||||
if (taskName === '标准化工程师发起') {
|
||||
this.currentNode = 1
|
||||
} else if (taskName === '各部所联络人填写/下发任务') {
|
||||
this.currentNode = 2
|
||||
} else if (taskName === '工作组/所联络人填写企标') {
|
||||
this.currentNode = 3
|
||||
} else if (taskName === '收集联络人主管级领导审批') {
|
||||
this.currentNode = 4
|
||||
} else if (taskName === '各部所联络人汇总') {
|
||||
this.currentNode = 5
|
||||
} else if (taskName === '联络人主管级上一级领导审批') {
|
||||
this.currentNode = 6
|
||||
} else {
|
||||
this.currentNode = 7
|
||||
}
|
||||
}
|
||||
if (this.currentNode === 1) {
|
||||
this.personnelInfoData = personData
|
||||
} else {
|
||||
this.personnelInfoData = personData.map(item => {
|
||||
return { ...item, canChoose: false, fieldName: undefined }
|
||||
})
|
||||
}
|
||||
this.$refs.baseInfoFormRef.initData(this.model.dataList)
|
||||
}
|
||||
})
|
||||
},
|
||||
switchChange (value) {
|
||||
this.switchValue = value
|
||||
},
|
||||
|
||||
@@ -829,10 +829,10 @@ export default {
|
||||
this.$message.warning(this.$t('pleaseEnterPersonnelInfo'))
|
||||
return
|
||||
}
|
||||
// 专家审批至少需要选两个专家
|
||||
if (personnelObj.standardExpert.split(',').length < 2) {
|
||||
this.$message.warning(this.$t('workCenter.enterpriseInitChangePlan.pleaseSelectLeastTwoExpert'))
|
||||
}
|
||||
// 专家审批至少需要选两个专家 todo: 后端选多人流程进行不下去,暂时不限制传多人
|
||||
// if (personnelObj.standardExpert.split(',').length < 2) {
|
||||
// this.$message.warning(this.$t('workCenter.enterpriseInitChangePlan.pleaseSelectLeastTwoExpert'))
|
||||
// }
|
||||
console.log(this.formInline)
|
||||
this.processInfoForm.validateFields((err, values) => {
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
|
||||
@@ -143,6 +143,13 @@ export default {
|
||||
switch (record.prcType + '') {
|
||||
case '7':
|
||||
path = '/workCenter/enterpriseStandardInitChange/planApprovalChangeFlow'
|
||||
break
|
||||
case '8':
|
||||
path = '/workCenter/annualRevisionPlanActivelyReport/revisionPlanActivelyReportFlow'
|
||||
break
|
||||
case '9':
|
||||
path = '/workCenter/annualRevisionPlanStandardizationInit/revisionPlanStandardizationInitFlow'
|
||||
break
|
||||
}
|
||||
this.$router.push({
|
||||
path: path,
|
||||
|
||||
Reference in New Issue
Block a user