[update] 企标流程查看详情
This commit is contained in:
+34
-17
@@ -614,7 +614,7 @@ export default {
|
|||||||
return infoJsonStr
|
return infoJsonStr
|
||||||
},
|
},
|
||||||
// 保存快照
|
// 保存快照
|
||||||
saveParamJsonStr () {
|
saveParamJsonStr (callback) {
|
||||||
// 流程信息表单
|
// 流程信息表单
|
||||||
const processInfoForm = this.processInfoForm.getFieldsValue()
|
const processInfoForm = this.processInfoForm.getFieldsValue()
|
||||||
// 流程审批信息
|
// 流程审批信息
|
||||||
@@ -701,9 +701,12 @@ export default {
|
|||||||
params.infoJsonStr = infoJsonStr
|
params.infoJsonStr = infoJsonStr
|
||||||
params.taskId = this.$route.query.taskId
|
params.taskId = this.$route.query.taskId
|
||||||
params.prcType = ProcessType.ES_ANNUAL_REPORT.value
|
params.prcType = ProcessType.ES_ANNUAL_REPORT.value
|
||||||
saveSnapShot(params).then(res => {
|
saveSnapShot(params).then(async res => {
|
||||||
if (!res.success) {
|
if (res.success) {
|
||||||
console.log(res.message)
|
callback && await callback()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -741,18 +744,29 @@ export default {
|
|||||||
// 快照JSON
|
// 快照JSON
|
||||||
param.common.infoJsonStr = this.getParamJsonStr()
|
param.common.infoJsonStr = this.getParamJsonStr()
|
||||||
}
|
}
|
||||||
func(param).then(async res => {
|
if (this.$route.query.taskId) {
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
func(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
if (this.$route.query.taskId) {
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
}
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
func(param).then(async res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -810,17 +824,18 @@ export default {
|
|||||||
}
|
}
|
||||||
param.common = approvalValues
|
param.common = approvalValues
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
activelyReportAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
activelyReportAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -839,17 +854,18 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
activelyReportAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
activelyReportAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -868,17 +884,18 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
activelyReportReject(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
activelyReportReject(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
+34
-16
@@ -442,7 +442,7 @@ export default {
|
|||||||
return infoJsonStr
|
return infoJsonStr
|
||||||
},
|
},
|
||||||
// 保存快照
|
// 保存快照
|
||||||
saveParamJsonStr () {
|
saveParamJsonStr (callback) {
|
||||||
// 流程信息表单
|
// 流程信息表单
|
||||||
const processInfoForm = this.processInfoForm.getFieldsValue()
|
const processInfoForm = this.processInfoForm.getFieldsValue()
|
||||||
// 流程审批信息
|
// 流程审批信息
|
||||||
@@ -460,9 +460,12 @@ export default {
|
|||||||
})
|
})
|
||||||
params.taskId = this.$route.query.taskId
|
params.taskId = this.$route.query.taskId
|
||||||
params.prcType = ProcessType.ES_ANNUAL_INIT.value
|
params.prcType = ProcessType.ES_ANNUAL_INIT.value
|
||||||
saveSnapShot(params).then(res => {
|
saveSnapShot(params).then(async res => {
|
||||||
if (!res.success) {
|
if (res.success) {
|
||||||
console.log(res.message)
|
callback && await callback()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -497,18 +500,30 @@ export default {
|
|||||||
// 快照JSON
|
// 快照JSON
|
||||||
param.common.infoJsonStr = this.getParamJsonStr()
|
param.common.infoJsonStr = this.getParamJsonStr()
|
||||||
}
|
}
|
||||||
func(param).then(async res => {
|
if (this.$route.query.taskId) {
|
||||||
|
// 先保存快照再提交
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
func(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
if (this.$route.query.taskId) {
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
}
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
func(param).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -555,17 +570,18 @@ export default {
|
|||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
param.dataList = data.dataSource
|
param.dataList = data.dataSource
|
||||||
this.loading = true
|
this.loading = true
|
||||||
standardizationInitAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
standardizationInitAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -587,17 +603,18 @@ export default {
|
|||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
param.dataList = data.dataSource
|
param.dataList = data.dataSource
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
standardizationInitAgree(param).then(async res => {
|
standardizationInitAgree(param).then(async res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -617,17 +634,18 @@ export default {
|
|||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
console.log(param, this.$route.query.taskId)
|
console.log(param, this.$route.query.taskId)
|
||||||
standardizationInitReject(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
standardizationInitReject(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -395,7 +395,7 @@ export default {
|
|||||||
return infoJsonStr
|
return infoJsonStr
|
||||||
},
|
},
|
||||||
// 保存快照
|
// 保存快照
|
||||||
saveParamJsonStr () {
|
saveParamJsonStr (callback) {
|
||||||
// 流程信息表单
|
// 流程信息表单
|
||||||
const processInfoForm = this.processInfoForm.getFieldsValue()
|
const processInfoForm = this.processInfoForm.getFieldsValue()
|
||||||
// 流程审批信息
|
// 流程审批信息
|
||||||
@@ -413,9 +413,12 @@ export default {
|
|||||||
})
|
})
|
||||||
params.taskId = this.$route.query.taskId
|
params.taskId = this.$route.query.taskId
|
||||||
params.prcType = ProcessType.ES_ABOLISH.value
|
params.prcType = ProcessType.ES_ABOLISH.value
|
||||||
saveSnapShot(params).then(res => {
|
saveSnapShot(params).then(async res => {
|
||||||
if (!res.success) {
|
if (res.success) {
|
||||||
console.log(res.message)
|
callback && await callback()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -453,18 +456,30 @@ export default {
|
|||||||
// 快照JSON
|
// 快照JSON
|
||||||
paramObj.common.infoJsonStr = this.getParamJsonStr()
|
paramObj.common.infoJsonStr = this.getParamJsonStr()
|
||||||
}
|
}
|
||||||
func(paramObj).then(async res => {
|
if (this.$route.query.taskId) {
|
||||||
|
// 保存快照后同意
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
func(paramObj).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
if (this.$route.query.taskId) {
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
}
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
func(paramObj).then(async res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -510,17 +525,18 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
enStandardAnnulAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardAnnulAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -539,11 +555,11 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
enStandardAnnulReject(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardAnnulReject(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -552,6 +568,7 @@ export default {
|
|||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.validatorRules.commitText.rules[0].required = false
|
this.validatorRules.commitText.rules[0].required = false
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -430,7 +430,7 @@ export default {
|
|||||||
return infoJsonStr
|
return infoJsonStr
|
||||||
},
|
},
|
||||||
// 保存快照
|
// 保存快照
|
||||||
saveParamJsonStr () {
|
saveParamJsonStr (callback) {
|
||||||
// 流程信息表单
|
// 流程信息表单
|
||||||
const processInfoForm = this.processInfoForm.getFieldsValue()
|
const processInfoForm = this.processInfoForm.getFieldsValue()
|
||||||
// 流程审批信息
|
// 流程审批信息
|
||||||
@@ -452,9 +452,12 @@ export default {
|
|||||||
})
|
})
|
||||||
params.taskId = this.$route.query.taskId
|
params.taskId = this.$route.query.taskId
|
||||||
params.prcType = ProcessType.ES_CHANGE.value
|
params.prcType = ProcessType.ES_CHANGE.value
|
||||||
saveSnapShot(params).then(res => {
|
saveSnapShot(params).then(async res => {
|
||||||
if (!res.success) {
|
if (res.success) {
|
||||||
console.log(res.message)
|
callback && await callback()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -498,18 +501,29 @@ export default {
|
|||||||
// 快照JSON
|
// 快照JSON
|
||||||
param.common.infoJsonStr = this.getParamJsonStr()
|
param.common.infoJsonStr = this.getParamJsonStr()
|
||||||
}
|
}
|
||||||
func(param).then(async res => {
|
if (this.$route.query.taskId) {
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
func(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
if (this.$route.query.taskId) {
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
}
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
func(param).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -555,17 +569,18 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
enStandardChangeAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardChangeAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -584,11 +599,11 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
enStandardChangeReject(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardChangeReject(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -597,6 +612,7 @@ export default {
|
|||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.validatorRules.commitText.rules[0].required = false
|
this.validatorRules.commitText.rules[0].required = false
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -944,7 +944,7 @@ export default {
|
|||||||
return infoJsonStr
|
return infoJsonStr
|
||||||
},
|
},
|
||||||
// 保存快照
|
// 保存快照
|
||||||
saveParamJsonStr () {
|
saveParamJsonStr (callback) {
|
||||||
// 流程信息表单
|
// 流程信息表单
|
||||||
const processInfoForm = this.processInfoForm.getFieldsValue()
|
const processInfoForm = this.processInfoForm.getFieldsValue()
|
||||||
// 业务基本信息-申请类型和项目类别
|
// 业务基本信息-申请类型和项目类别
|
||||||
@@ -996,9 +996,12 @@ export default {
|
|||||||
})
|
})
|
||||||
params.taskId = this.$route.query.taskId
|
params.taskId = this.$route.query.taskId
|
||||||
params.prcType = ProcessType.ES_INIT_CHANGE.value
|
params.prcType = ProcessType.ES_INIT_CHANGE.value
|
||||||
saveSnapShot(params).then(res => {
|
saveSnapShot(params).then(async res => {
|
||||||
if (!res.success) {
|
if (res.success) {
|
||||||
console.log(res.message)
|
callback && await callback()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -1105,12 +1108,11 @@ export default {
|
|||||||
// 快照JSON
|
// 快照JSON
|
||||||
param.common.infoJsonStr = this.getParamJsonStr()
|
param.common.infoJsonStr = this.getParamJsonStr()
|
||||||
}
|
}
|
||||||
|
if (this.$route.query.taskId) {
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
func(param).then(async res => {
|
func(param).then(async res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
if (this.$route.query.taskId) {
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
}
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -1135,6 +1137,35 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
func(param).then(async res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
|
if (res.message === this.$t('workCenter.enterpriseInitChangePlan.existingNumber')) {
|
||||||
|
// 已经存在编号,重新生成
|
||||||
|
if ([ProjectType.ENACT.value, ProjectType.MODIFY.value, ProjectType.MERGE.value].includes(this.formInline.projectType)) {
|
||||||
|
// 是制定修订或者合并,重新获取企标编号
|
||||||
|
this.loading = true
|
||||||
|
if (this.$refs.approvalBaseInfo) {
|
||||||
|
await this.$refs.approvalBaseInfo.getEnStandardNo()
|
||||||
|
} else if (this.$refs.changeBaseInfo) {
|
||||||
|
await this.$refs.changeBaseInfo.getEnStandardNo()
|
||||||
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
this.loading = false
|
||||||
|
// 提示顺序号已重新生成
|
||||||
|
this.$message.success(this.$t('workCenter.enterpriseInitChangePlan.numberReset'))
|
||||||
|
}, 500)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -1149,17 +1180,18 @@ export default {
|
|||||||
param.common = Object.assign({}, approvalValues)
|
param.common = Object.assign({}, approvalValues)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
param.flowUser = Object.assign({}, values)
|
param.flowUser = Object.assign({}, values)
|
||||||
enterprisePlanApprovalAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enterprisePlanApprovalAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -1246,11 +1278,11 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
enterprisePlanApprovalAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enterprisePlanApprovalAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -1258,6 +1290,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 驳回
|
// 驳回
|
||||||
handleReject () {
|
handleReject () {
|
||||||
@@ -1274,11 +1307,11 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
enterprisePlanApprovalReject(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enterprisePlanApprovalReject(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -1287,6 +1320,7 @@ export default {
|
|||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.validatorRules.commitText.rules[0].required = false
|
this.validatorRules.commitText.rules[0].required = false
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -1300,17 +1334,18 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
enterprisePlanApprovalAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enterprisePlanApprovalAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ export default {
|
|||||||
return infoJsonStr
|
return infoJsonStr
|
||||||
},
|
},
|
||||||
// 保存快照
|
// 保存快照
|
||||||
saveParamJsonStr () {
|
saveParamJsonStr (callback) {
|
||||||
// 流程信息表单
|
// 流程信息表单
|
||||||
const processInfoForm = this.processInfoForm.getFieldsValue()
|
const processInfoForm = this.processInfoForm.getFieldsValue()
|
||||||
// 流程审批信息
|
// 流程审批信息
|
||||||
@@ -470,9 +470,12 @@ export default {
|
|||||||
})
|
})
|
||||||
params.taskId = this.$route.query.taskId
|
params.taskId = this.$route.query.taskId
|
||||||
params.prcType = ProcessType.ES_RECHECK.value
|
params.prcType = ProcessType.ES_RECHECK.value
|
||||||
saveSnapShot(params).then(res => {
|
saveSnapShot(params).then(async res => {
|
||||||
if (!res.success) {
|
if (res.success) {
|
||||||
console.log(res.message)
|
callback && await callback()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -510,18 +513,29 @@ export default {
|
|||||||
// 快照JSON
|
// 快照JSON
|
||||||
paramObj.common.infoJsonStr = this.getParamJsonStr()
|
paramObj.common.infoJsonStr = this.getParamJsonStr()
|
||||||
}
|
}
|
||||||
func(paramObj).then(async res => {
|
if (this.$route.query.taskId) {
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
func(paramObj).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
if (this.$route.query.taskId) {
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
}
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
func(paramObj).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -566,17 +580,18 @@ export default {
|
|||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
param.data = Object.assign({}, data.formInline)
|
param.data = Object.assign({}, data.formInline)
|
||||||
console.log(param)
|
console.log(param)
|
||||||
enStandardRecheckAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardRecheckAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -595,17 +610,18 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
enStandardRecheckAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardRecheckAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -624,11 +640,11 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
enStandardRecheckReject(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardRecheckReject(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -637,6 +653,7 @@ export default {
|
|||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.validatorRules.commitText.rules[0].required = false
|
this.validatorRules.commitText.rules[0].required = false
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
+41
-22
@@ -580,7 +580,7 @@ export default {
|
|||||||
return infoJsonStr
|
return infoJsonStr
|
||||||
},
|
},
|
||||||
// 保存快照
|
// 保存快照
|
||||||
saveParamJsonStr () {
|
saveParamJsonStr (callback) {
|
||||||
// 流程信息表单
|
// 流程信息表单
|
||||||
const processInfoForm = this.processInfoForm.getFieldsValue()
|
const processInfoForm = this.processInfoForm.getFieldsValue()
|
||||||
// 流程审批信息
|
// 流程审批信息
|
||||||
@@ -598,9 +598,12 @@ export default {
|
|||||||
})
|
})
|
||||||
params.taskId = this.$route.query.taskId
|
params.taskId = this.$route.query.taskId
|
||||||
params.prcType = ProcessType.ES_EDIT.value
|
params.prcType = ProcessType.ES_EDIT.value
|
||||||
saveSnapShot(params).then(res => {
|
saveSnapShot(params).then(async res => {
|
||||||
if (!res.success) {
|
if (res.success) {
|
||||||
console.log(res.message)
|
callback && await callback()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -655,18 +658,29 @@ export default {
|
|||||||
// 快照JSON
|
// 快照JSON
|
||||||
param.common.infoJsonStr = this.getParamJsonStr()
|
param.common.infoJsonStr = this.getParamJsonStr()
|
||||||
}
|
}
|
||||||
func(param).then(async res => {
|
if (this.$route.query.taskId) {
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
func(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
if (this.$route.query.taskId) {
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
}
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
func(param).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -721,17 +735,18 @@ export default {
|
|||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
param.data = data
|
param.data = data
|
||||||
this.loading = true
|
this.loading = true
|
||||||
enStandardEditAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardEditAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -747,17 +762,18 @@ export default {
|
|||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
param.data = data
|
param.data = data
|
||||||
this.loading = true
|
this.loading = true
|
||||||
enStandardEditAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardEditAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -780,17 +796,18 @@ export default {
|
|||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
param.data = data
|
param.data = data
|
||||||
enStandardEditAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardEditAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
@@ -798,17 +815,18 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
enStandardEditAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardEditAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -828,11 +846,11 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
enStandardEditReject(param).then(async res => {
|
enStandardEditReject(param).then(async res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -841,6 +859,7 @@ export default {
|
|||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.validatorRules.commitText.rules[0].required = false
|
this.validatorRules.commitText.rules[0].required = false
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
+30
-14
@@ -397,7 +397,7 @@ export default {
|
|||||||
return infoJsonStr
|
return infoJsonStr
|
||||||
},
|
},
|
||||||
// 保存快照
|
// 保存快照
|
||||||
saveParamJsonStr () {
|
saveParamJsonStr (callback) {
|
||||||
// 流程信息表单
|
// 流程信息表单
|
||||||
const processInfoForm = this.processInfoForm.getFieldsValue()
|
const processInfoForm = this.processInfoForm.getFieldsValue()
|
||||||
// 流程审批信息
|
// 流程审批信息
|
||||||
@@ -415,9 +415,12 @@ export default {
|
|||||||
})
|
})
|
||||||
params.taskId = this.$route.query.taskId
|
params.taskId = this.$route.query.taskId
|
||||||
params.prcType = ProcessType.ES_ARCHIVE.value
|
params.prcType = ProcessType.ES_ARCHIVE.value
|
||||||
saveSnapShot(params).then(res => {
|
saveSnapShot(params).then(async res => {
|
||||||
if (!res.success) {
|
if (res.success) {
|
||||||
console.log(res.message)
|
callback && await callback()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -455,18 +458,29 @@ export default {
|
|||||||
// 快照JSON
|
// 快照JSON
|
||||||
paramObj.common.infoJsonStr = this.getParamJsonStr()
|
paramObj.common.infoJsonStr = this.getParamJsonStr()
|
||||||
}
|
}
|
||||||
func(paramObj).then(async res => {
|
if (this.$route.query.taskId) {
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
func(paramObj).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
if (this.$route.query.taskId) {
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
}
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
func(paramObj).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -512,17 +526,18 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
enStandardSealSaveAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardSealSaveAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -541,11 +556,11 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
enStandardSealSaveReject(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardSealSaveReject(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -554,6 +569,7 @@ export default {
|
|||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.validatorRules.commitText.rules[0].required = false
|
this.validatorRules.commitText.rules[0].required = false
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
+31
-14
@@ -395,7 +395,7 @@ export default {
|
|||||||
return infoJsonStr
|
return infoJsonStr
|
||||||
},
|
},
|
||||||
// 保存快照
|
// 保存快照
|
||||||
saveParamJsonStr () {
|
saveParamJsonStr (callback) {
|
||||||
// 流程信息表单
|
// 流程信息表单
|
||||||
const processInfoForm = this.processInfoForm.getFieldsValue()
|
const processInfoForm = this.processInfoForm.getFieldsValue()
|
||||||
// 流程审批信息
|
// 流程审批信息
|
||||||
@@ -413,9 +413,12 @@ export default {
|
|||||||
})
|
})
|
||||||
params.taskId = this.$route.query.taskId
|
params.taskId = this.$route.query.taskId
|
||||||
params.prcType = ProcessType.ES_ENABLE.value
|
params.prcType = ProcessType.ES_ENABLE.value
|
||||||
saveSnapShot(params).then(res => {
|
saveSnapShot(params).then(async res => {
|
||||||
if (!res.success) {
|
if (res.success) {
|
||||||
console.log(res.message)
|
callback && await callback()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -453,18 +456,30 @@ export default {
|
|||||||
// 快照JSON
|
// 快照JSON
|
||||||
paramObj.common.infoJsonStr = this.getParamJsonStr()
|
paramObj.common.infoJsonStr = this.getParamJsonStr()
|
||||||
}
|
}
|
||||||
func(paramObj).then(async res => {
|
if (this.$route.query.taskId) {
|
||||||
|
// 先保存快照再提交
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
func(paramObj).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
if (this.$route.query.taskId) {
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
}
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
func(paramObj).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -510,17 +525,18 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
enStandardStartUseAgree(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardStartUseAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -539,11 +555,11 @@ export default {
|
|||||||
const param = {}
|
const param = {}
|
||||||
param.common = Object.assign({}, values)
|
param.common = Object.assign({}, values)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
enStandardStartUseReject(param).then(async res => {
|
// 保存快照
|
||||||
|
this.saveParamJsonStr(() => {
|
||||||
|
enStandardStartUseReject(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 保存快照
|
|
||||||
await this.saveParamJsonStr()
|
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -552,6 +568,7 @@ export default {
|
|||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.validatorRules.commitText.rules[0].required = false
|
this.validatorRules.commitText.rules[0].required = false
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user