[update] 企标流程查看详情
This commit is contained in:
+62
-45
@@ -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) {
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
func(param).then(res => {
|
||||||
if (this.$route.query.taskId) {
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
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
|
||||||
}
|
}
|
||||||
this.goBack()
|
})
|
||||||
} else {
|
}
|
||||||
this.$message.warning(res.message)
|
|
||||||
this.loading = false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -810,16 +824,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
activelyReportAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
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,16 +854,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
activelyReportAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -868,16 +884,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
activelyReportReject(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
+63
-45
@@ -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) {
|
||||||
if (res.success) {
|
// 先保存快照再提交
|
||||||
this.$message.success(res.message)
|
this.saveParamJsonStr(() => {
|
||||||
if (this.$route.query.taskId) {
|
func(param).then(res => {
|
||||||
await this.saveParamJsonStr()
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
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
|
||||||
}
|
}
|
||||||
this.goBack()
|
})
|
||||||
} else {
|
}
|
||||||
this.$message.warning(res.message)
|
|
||||||
this.loading = false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -555,16 +570,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
standardizationInitAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
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,16 +603,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
standardizationInitAgree(param).then(async res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -617,16 +634,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
standardizationInitReject(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
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) {
|
||||||
if (res.success) {
|
// 保存快照后同意
|
||||||
this.$message.success(res.message)
|
this.saveParamJsonStr(() => {
|
||||||
if (this.$route.query.taskId) {
|
func(paramObj).then(res => {
|
||||||
await this.saveParamJsonStr()
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
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
|
||||||
}
|
}
|
||||||
this.goBack()
|
})
|
||||||
} else {
|
}
|
||||||
this.$message.warning(res.message)
|
|
||||||
this.loading = false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -510,16 +525,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardAnnulAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -539,18 +555,19 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardAnnulReject(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
}).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) {
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
func(param).then(res => {
|
||||||
if (this.$route.query.taskId) {
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
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
|
||||||
}
|
}
|
||||||
this.goBack()
|
})
|
||||||
} else {
|
}
|
||||||
this.$message.warning(res.message)
|
|
||||||
this.loading = false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -555,16 +569,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardChangeAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -584,18 +599,19 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardChangeReject(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
}).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,35 +1108,63 @@ export default {
|
|||||||
// 快照JSON
|
// 快照JSON
|
||||||
param.common.infoJsonStr = this.getParamJsonStr()
|
param.common.infoJsonStr = this.getParamJsonStr()
|
||||||
}
|
}
|
||||||
func(param).then(async res => {
|
if (this.$route.query.taskId) {
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
func(param).then(async res => {
|
||||||
if (this.$route.query.taskId) {
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
}
|
this.goBack()
|
||||||
this.goBack()
|
} else {
|
||||||
} else {
|
this.$message.warning(res.message)
|
||||||
this.$message.warning(res.message)
|
this.loading = false
|
||||||
this.loading = false
|
if (res.message === this.$t('workCenter.enterpriseInitChangePlan.existingNumber')) {
|
||||||
if (res.message === this.$t('workCenter.enterpriseInitChangePlan.existingNumber')) {
|
// 已经存在编号,重新生成
|
||||||
// 已经存在编号,重新生成
|
if ([ProjectType.ENACT.value, ProjectType.MODIFY.value, ProjectType.MERGE.value].includes(this.formInline.projectType)) {
|
||||||
if ([ProjectType.ENACT.value, ProjectType.MODIFY.value, ProjectType.MERGE.value].includes(this.formInline.projectType)) {
|
// 是制定修订或者合并,重新获取企标编号
|
||||||
// 是制定修订或者合并,重新获取企标编号
|
this.loading = true
|
||||||
this.loading = true
|
if (this.$refs.approvalBaseInfo) {
|
||||||
if (this.$refs.approvalBaseInfo) {
|
await this.$refs.approvalBaseInfo.getEnStandardNo()
|
||||||
await this.$refs.approvalBaseInfo.getEnStandardNo()
|
} else if (this.$refs.changeBaseInfo) {
|
||||||
} else if (this.$refs.changeBaseInfo) {
|
await this.$refs.changeBaseInfo.getEnStandardNo()
|
||||||
await this.$refs.changeBaseInfo.getEnStandardNo()
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
this.loading = false
|
||||||
|
// 提示顺序号已重新生成
|
||||||
|
this.$message.success(this.$t('workCenter.enterpriseInitChangePlan.numberReset'))
|
||||||
|
}, 500)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
} 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)
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
|
||||||
this.loading = false
|
|
||||||
// 提示顺序号已重新生成
|
|
||||||
this.$message.success(this.$t('workCenter.enterpriseInitChangePlan.numberReset'))
|
|
||||||
}, 500)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -1149,16 +1180,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enterprisePlanApprovalAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
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,16 +1278,17 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
enterprisePlanApprovalAgree(param).then(async res => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enterprisePlanApprovalAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -1274,18 +1307,19 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enterprisePlanApprovalReject(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.validatorRules.commitText.rules[0].required = false
|
this.validatorRules.commitText.rules[0].required = false
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -1300,16 +1334,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enterprisePlanApprovalAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
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) {
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
func(paramObj).then(res => {
|
||||||
if (this.$route.query.taskId) {
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
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
|
||||||
}
|
}
|
||||||
this.goBack()
|
})
|
||||||
} else {
|
}
|
||||||
this.$message.warning(res.message)
|
|
||||||
this.loading = false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -566,16 +580,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardRecheckAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
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,16 +610,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardRecheckAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -624,18 +640,19 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardRecheckReject(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.validatorRules.commitText.rules[0].required = false
|
this.validatorRules.commitText.rules[0].required = false
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
+86
-67
@@ -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) {
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
func(param).then(res => {
|
||||||
if (this.$route.query.taskId) {
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
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
|
||||||
}
|
}
|
||||||
this.goBack()
|
})
|
||||||
} else {
|
}
|
||||||
this.$message.warning(res.message)
|
|
||||||
this.loading = false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -721,16 +735,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardEditAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
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,16 +762,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardEditAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
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,16 +796,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardEditAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -798,16 +815,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardEditAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -828,18 +846,19 @@ 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
|
||||||
enStandardEditReject(param).then(async res => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardEditReject(param).then(async res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.validatorRules.commitText.rules[0].required = false
|
this.validatorRules.commitText.rules[0].required = false
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
+53
-37
@@ -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) {
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
func(paramObj).then(res => {
|
||||||
if (this.$route.query.taskId) {
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
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
|
||||||
}
|
}
|
||||||
this.goBack()
|
})
|
||||||
} else {
|
}
|
||||||
this.$message.warning(res.message)
|
|
||||||
this.loading = false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -512,16 +526,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardSealSaveAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -541,18 +556,19 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardSealSaveReject(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.validatorRules.commitText.rules[0].required = false
|
this.validatorRules.commitText.rules[0].required = false
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
+54
-37
@@ -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) {
|
||||||
if (res.success) {
|
// 先保存快照再提交
|
||||||
this.$message.success(res.message)
|
this.saveParamJsonStr(() => {
|
||||||
if (this.$route.query.taskId) {
|
func(paramObj).then(res => {
|
||||||
await this.saveParamJsonStr()
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
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
|
||||||
}
|
}
|
||||||
this.goBack()
|
})
|
||||||
} else {
|
}
|
||||||
this.$message.warning(res.message)
|
|
||||||
this.loading = false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.switchValue = 'base'
|
this.switchValue = 'base'
|
||||||
}
|
}
|
||||||
@@ -510,16 +525,17 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardStartUseAgree(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -539,18 +555,19 @@ 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 => {
|
// 保存快照
|
||||||
if (res.success) {
|
this.saveParamJsonStr(() => {
|
||||||
this.$message.success(res.message)
|
enStandardStartUseReject(param).then(res => {
|
||||||
// 保存快照
|
if (res.success) {
|
||||||
await this.saveParamJsonStr()
|
this.$message.success(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.validatorRules.commitText.rules[0].required = false
|
this.validatorRules.commitText.rules[0].required = false
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user