[update] 联调企标计划立项/变更流程转办
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user