[update] 新法规导入流程和市场清单发布流程保存换通用接口

This commit is contained in:
lideqin
2024-07-25 10:00:38 +08:00
parent e2da49bfdc
commit a5d11fe08c
2 changed files with 8 additions and 6 deletions
@@ -135,7 +135,7 @@ import PersonnelInfo from '@/components/PersonnelInfo'
import UserSelectModal from '@/components/selection/UserSelectModal'
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
import pick from 'lodash.pick'
import { NewRegulationsImportNodes, ProcessKey } from '../../../enums/commonEnums'
import { NewRegulationsImportNodes, ProcessKey, ProcessType } from '../../../enums/commonEnums'
import {
newRegulationImportAgree,
newRegulationImportApproval,
@@ -146,7 +146,7 @@ import {
processTransfer,
getLookData,
processAddSign,
newRegulationImportSubmit
newRegulationImportSubmit, processSave
} from '../../../api/workCenter'
export default {
@@ -378,6 +378,7 @@ export default {
// 流程信息
paramObj.basicProcessInfoDTO = Object.assign({}, processInfoForm)
paramObj.basicProcessInfoDTO.processInstanceId = this.$route.query.processInstanceId
paramObj.basicProcessInfoDTO.processType = ProcessType.NEW_REGULATIONS_IMPORT.value
// 流程审批信息
paramObj.basicTaskInfoDTO = Object.assign({}, approvalInfoForm)
paramObj.basicTaskInfoDTO.taskId = this.$route.query.taskId
@@ -393,7 +394,7 @@ export default {
paramObj.infoJsonStr = JSON.stringify(paramObj)
this.loading = true
// 保存到草稿
newRegulationImportSave(paramObj).then(res => {
processSave(paramObj).then(res => {
if (res.success) {
this.$message.success(res.message)
this.goBack()