[update] 修改企标流程节点1发起和驳回后调不同接口
This commit is contained in:
+9
-4
@@ -146,8 +146,6 @@ import {
|
||||
standardizationInitReject,
|
||||
standardizationInitGetDataById
|
||||
} from '@/api/workCenter'
|
||||
import Vue from 'vue'
|
||||
import { USER_INFO } from '@/store/mutation-types'
|
||||
import pick from 'lodash.pick'
|
||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||
import { ProcessKey } from '../../../enums/commonEnums'
|
||||
@@ -331,7 +329,6 @@ export default {
|
||||
standardizationInitSave(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.goBack()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
@@ -355,7 +352,15 @@ export default {
|
||||
param.common = { ...values, ...approvalValues }
|
||||
param.dataList = data.dataSource
|
||||
param.flowUser = personnelObj
|
||||
standardizationInitApproval(param).then(res => {
|
||||
let func
|
||||
if (this.$route.query.taskId) {
|
||||
// 有taskId说明是驳回的提交
|
||||
func = standardizationInitAgree
|
||||
param.common.taskId = this.$route.query.taskId
|
||||
} else {
|
||||
func = standardizationInitApproval
|
||||
}
|
||||
func(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.goBack()
|
||||
|
||||
Reference in New Issue
Block a user