[update] 联调企标计划立项/变更流程转办
This commit is contained in:
@@ -11,7 +11,7 @@ const deleteFlowNode = (params) => postAction('/activitiModel/deleteTask', param
|
|||||||
|
|
||||||
// 企标计划立项、变更流程相关
|
// 企标计划立项、变更流程相关
|
||||||
// 转办
|
// 转办
|
||||||
const enterprisePlanApprovalTurnTo = (params) => postAction('', params)
|
const enterprisePlanApprovalTurnTo = (params) => postAction('/process/es/initChange/transfer', params)
|
||||||
// 同意
|
// 同意
|
||||||
const enterprisePlanApprovalAgree = (params) => postAction('', params)
|
const enterprisePlanApprovalAgree = (params) => postAction('', params)
|
||||||
// 驳回
|
// 驳回
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
<template v-for="data in dataList">
|
<div v-for="data in dataList" :key="data.uid">
|
||||||
<div :key="data.uid" class="title-wrapper"><span class="title-span">{{ data.text }}</span></div>
|
<div class="title-wrapper"><span class="title-span">{{ data.text }}</span></div>
|
||||||
<div :key="data.uid" class="list-wrapper">
|
<div class="list-wrapper">
|
||||||
<div v-for="item in data.list" :key="item.title" class="list-cont" @click="processClick(item)">{{ item.title }}</div>
|
<div v-for="item in data.list" :key="item.title" class="list-cont" @click="processClick(item)">{{ item.title }}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -569,7 +569,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 根据流程id获取数据
|
// 根据流程id获取数据并回显
|
||||||
getProcessData (processId) {
|
getProcessData (processId) {
|
||||||
getProcessDataById({ processInstanceId: processId }).then(res => {
|
getProcessDataById({ processInstanceId: processId }).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
@@ -631,7 +631,6 @@ export default {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log(res.result)
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
@@ -641,7 +640,7 @@ export default {
|
|||||||
switchChange (value) {
|
switchChange (value) {
|
||||||
this.switchValue = value
|
this.switchValue = value
|
||||||
},
|
},
|
||||||
// 流程名称修改
|
// 业务基本信息组件中获取到流程名称改变后的值
|
||||||
processNameChange (value) {
|
processNameChange (value) {
|
||||||
const param = { processName: value }
|
const param = { processName: value }
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@@ -671,7 +670,6 @@ export default {
|
|||||||
let approvalBaseInfo = {}
|
let approvalBaseInfo = {}
|
||||||
if (this.$refs.approvalBaseInfo) {
|
if (this.$refs.approvalBaseInfo) {
|
||||||
approvalBaseInfo = this.$refs.approvalBaseInfo.formInline
|
approvalBaseInfo = this.$refs.approvalBaseInfo.formInline
|
||||||
console.log(approvalBaseInfo.enStandardSystem)
|
|
||||||
// 企标体系处理成逗号分隔
|
// 企标体系处理成逗号分隔
|
||||||
if (approvalBaseInfo.enStandardSystem && approvalBaseInfo.enStandardSystem.length > 0) {
|
if (approvalBaseInfo.enStandardSystem && approvalBaseInfo.enStandardSystem.length > 0) {
|
||||||
approvalBaseInfo.enStandardSystem = approvalBaseInfo.enStandardSystem.map(item => item.value).join(',')
|
approvalBaseInfo.enStandardSystem = approvalBaseInfo.enStandardSystem.map(item => item.value).join(',')
|
||||||
@@ -742,16 +740,14 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 是节点一的保存,保存到草稿
|
// 保存到草稿
|
||||||
if (this.currentNode === 1) {
|
enterprisePlanApprovalSave(arr).then(res => {
|
||||||
enterprisePlanApprovalSave(arr).then(res => {
|
if (res.success) {
|
||||||
if (res.success) {
|
this.$message.success(res.message)
|
||||||
this.$message.success(res.message)
|
} else {
|
||||||
} else {
|
this.$message.warning(res.message)
|
||||||
this.$message.warning(res.message)
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
// 节点一时候的提交,发起立项变更申请(业务基本信息那里是表格的就穿给后端数组里多条数据,是表单的就在数组里放一条数据)
|
// 节点一时候的提交,发起立项变更申请(业务基本信息那里是表格的就穿给后端数组里多条数据,是表单的就在数组里放一条数据)
|
||||||
handleStart () {
|
handleStart () {
|
||||||
@@ -904,8 +900,9 @@ export default {
|
|||||||
this.loading = true
|
this.loading = true
|
||||||
let param = {}
|
let param = {}
|
||||||
param = Object.assign({}, values)
|
param = Object.assign({}, values)
|
||||||
param.userIds = userIds
|
param.userId = userIds
|
||||||
param.processId = this.model.id
|
// param.taskId = this.model[0].id
|
||||||
|
param.taskId = this.$route.query.taskId
|
||||||
enterprisePlanApprovalTurnTo(param).then(res => {
|
enterprisePlanApprovalTurnTo(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
|||||||
@@ -148,7 +148,8 @@ export default {
|
|||||||
path: path,
|
path: path,
|
||||||
query: {
|
query: {
|
||||||
currentNode: record.currentNode,
|
currentNode: record.currentNode,
|
||||||
processId: record.prcId // 流程id
|
processId: record.prcId, // 流程id
|
||||||
|
taskId: record.taskId
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user