[update] 联调企标计划立项/变更流程转办

This commit is contained in:
lideqin
2023-10-17 10:24:53 +08:00
parent 48ac6dd11e
commit 4a5fc9f0f4
4 changed files with 20 additions and 22 deletions
+1 -1
View File
@@ -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)
// 驳回
+4 -4
View File
@@ -1,11 +1,11 @@
<template>
<a-card :bordered="false">
<template v-for="data in dataList">
<div :key="data.uid" class="title-wrapper"><span class="title-span">{{ data.text }}</span></div>
<div :key="data.uid" class="list-wrapper">
<div v-for="data in dataList" :key="data.uid">
<div class="title-wrapper"><span class="title-span">{{ data.text }}</span></div>
<div class="list-wrapper">
<div v-for="item in data.list" :key="item.title" class="list-cont" @click="processClick(item)">{{ item.title }}</div>
</div>
</template>
</div>
</a-card>
</template>
@@ -569,7 +569,7 @@ export default {
}
},
methods: {
// 根据流程id获取数据
// 根据流程id获取数据并回显
getProcessData (processId) {
getProcessDataById({ processInstanceId: processId }).then(res => {
if (res.success) {
@@ -631,7 +631,6 @@ export default {
})
})
}
console.log(res.result)
} else {
this.$message.warning(res.message)
}
@@ -641,7 +640,7 @@ export default {
switchChange (value) {
this.switchValue = value
},
// 流程名称修改
// 业务基本信息组件中获取到流程名称改变后的值
processNameChange (value) {
const param = { processName: value }
this.$nextTick(() => {
@@ -671,7 +670,6 @@ export default {
let approvalBaseInfo = {}
if (this.$refs.approvalBaseInfo) {
approvalBaseInfo = this.$refs.approvalBaseInfo.formInline
console.log(approvalBaseInfo.enStandardSystem)
// 企标体系处理成逗号分隔
if (approvalBaseInfo.enStandardSystem && approvalBaseInfo.enStandardSystem.length > 0) {
approvalBaseInfo.enStandardSystem = approvalBaseInfo.enStandardSystem.map(item => item.value).join(',')
@@ -742,16 +740,14 @@ export default {
return
}
}
// 是节点一的保存,保存到草稿
if (this.currentNode === 1) {
enterprisePlanApprovalSave(arr).then(res => {
if (res.success) {
this.$message.success(res.message)
} else {
this.$message.warning(res.message)
}
})
}
// 保存到草稿
enterprisePlanApprovalSave(arr).then(res => {
if (res.success) {
this.$message.success(res.message)
} else {
this.$message.warning(res.message)
}
})
},
// 节点一时候的提交,发起立项变更申请(业务基本信息那里是表格的就穿给后端数组里多条数据,是表单的就在数组里放一条数据)
handleStart () {
@@ -904,8 +900,9 @@ export default {
this.loading = true
let param = {}
param = Object.assign({}, values)
param.userIds = userIds
param.processId = this.model.id
param.userId = userIds
// param.taskId = this.model[0].id
param.taskId = this.$route.query.taskId
enterprisePlanApprovalTurnTo(param).then(res => {
if (res.success) {
this.$message.success(res.message)
@@ -148,7 +148,8 @@ export default {
path: path,
query: {
currentNode: record.currentNode,
processId: record.prcId // 流程id
processId: record.prcId, // 流程id
taskId: record.taskId
}
})
},