[update] 修改企标流程节点1发起和驳回后调不同接口
This commit is contained in:
+9
-2
@@ -412,7 +412,6 @@ export default {
|
||||
activelyReportSave(paramObj).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.goBack()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
@@ -439,7 +438,15 @@ export default {
|
||||
const param = {} // 需要给后端的参数
|
||||
param.common = { ...values, ...approvalValues, ...data.formInline }
|
||||
param.flowUser = personnelObj
|
||||
activelyReportApproval(param).then(res => {
|
||||
let func
|
||||
if (this.$route.query.taskId) {
|
||||
// 有taskId说明是驳回的提交
|
||||
func = activelyReportAgree
|
||||
param.common.taskId = this.$route.query.taskId
|
||||
} else {
|
||||
func = activelyReportApproval
|
||||
}
|
||||
func(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.goBack()
|
||||
|
||||
Reference in New Issue
Block a user