[update] 新法规导入流程
This commit is contained in:
@@ -90,7 +90,7 @@ const compulsoryWithdrawal = (params) => postAction('/workCenter/forcedWithdrawa
|
|||||||
const processTransfer = (params) => postAction('/workCenter/transfer', params)
|
const processTransfer = (params) => postAction('/workCenter/transfer', params)
|
||||||
|
|
||||||
// 流程中心-草稿-办理
|
// 流程中心-草稿-办理
|
||||||
const getDataDraft = (params) => getAction('/process/common/draftHandle', params)
|
const getDataDraft = (params) => getAction('/workCenter/draftHandle', params)
|
||||||
|
|
||||||
// 在线编辑-生成空白模板
|
// 在线编辑-生成空白模板
|
||||||
const generateEmptyFileTemplate = (params) => getAction('/onlyOffice/saveEditFile', params)
|
const generateEmptyFileTemplate = (params) => getAction('/onlyOffice/saveEditFile', params)
|
||||||
|
|||||||
+11
-11
@@ -343,7 +343,7 @@ export default {
|
|||||||
// 业务基本信息
|
// 业务基本信息
|
||||||
const baseInfo = this.$refs.baseInfoRef.getData()
|
const baseInfo = this.$refs.baseInfoRef.getData()
|
||||||
// 判断是否每一项都没填
|
// 判断是否每一项都没填
|
||||||
const param = { ...processInfoForm, ...baseInfo.formInline, ...approvalInfoForm, ...personnelObj }
|
const param = { ...processInfoForm, ...baseInfo, ...approvalInfoForm, ...personnelObj }
|
||||||
const flag = Object.values(param).some(v => !!v || v === 0)
|
const flag = Object.values(param).some(v => !!v || v === 0)
|
||||||
if (!flag) {
|
if (!flag) {
|
||||||
// 提示至少填写一项
|
// 提示至少填写一项
|
||||||
@@ -358,15 +358,15 @@ export default {
|
|||||||
// 流程审批信息
|
// 流程审批信息
|
||||||
paramObj.basicTaskInfoDTO = Object.assign({}, approvalInfoForm)
|
paramObj.basicTaskInfoDTO = Object.assign({}, approvalInfoForm)
|
||||||
paramObj.basicTaskInfoDTO.taskId = this.$route.query.taskId
|
paramObj.basicTaskInfoDTO.taskId = this.$route.query.taskId
|
||||||
// 草稿id
|
|
||||||
if (this.model.infoJsonStr) {
|
|
||||||
paramObj.draftId = this.model.id
|
|
||||||
}
|
|
||||||
// 业务信息
|
// 业务信息
|
||||||
paramObj.businessInfoDTO = baseInfo
|
paramObj.businessInfoDTO = baseInfo
|
||||||
// 人员信息
|
// 人员信息
|
||||||
paramObj.userInfoMap = personnelObj
|
paramObj.userInfoMap = personnelObj
|
||||||
// 业务基本信息和人员信息
|
// 草稿id
|
||||||
|
if (this.model.infoJsonStr) {
|
||||||
|
paramObj.draftId = this.model.id
|
||||||
|
}
|
||||||
|
// 草稿JSON
|
||||||
paramObj.infoJsonStr = JSON.stringify(paramObj)
|
paramObj.infoJsonStr = JSON.stringify(paramObj)
|
||||||
this.loading = true
|
this.loading = true
|
||||||
// 保存到草稿
|
// 保存到草稿
|
||||||
@@ -416,7 +416,7 @@ export default {
|
|||||||
if (this.$route.query.taskId) {
|
if (this.$route.query.taskId) {
|
||||||
// 有taskId说明是驳回的提交
|
// 有taskId说明是驳回的提交
|
||||||
func = newRegulationImportAgree
|
func = newRegulationImportAgree
|
||||||
paramObj.common.taskId = this.$route.query.taskId
|
paramObj.basicTaskInfoDTO.taskId = this.$route.query.taskId
|
||||||
} else {
|
} else {
|
||||||
func = newRegulationImportApproval
|
func = newRegulationImportApproval
|
||||||
}
|
}
|
||||||
@@ -472,8 +472,8 @@ export default {
|
|||||||
if (!err) {
|
if (!err) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.basicTaskInfoDTO = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.basicTaskInfoDTO.taskId = this.$route.query.taskId
|
||||||
newRegulationImportAgree(param).then(res => {
|
newRegulationImportAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
@@ -499,8 +499,8 @@ export default {
|
|||||||
if (!err) {
|
if (!err) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.basicTaskInfoDTO = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.basicTaskInfoDTO.taskId = this.$route.query.taskId
|
||||||
newRegulationImportReject(param).then(res => {
|
newRegulationImportReject(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
|||||||
Reference in New Issue
Block a user