[update] 企标制修订流程最后一个节点提交二次弹框提醒插入签章

This commit is contained in:
lideqin
2024-06-13 17:35:16 +08:00
parent 3ed09edda5
commit 810937d46a
2 changed files with 62 additions and 22 deletions
+5 -1
View File
@@ -160,7 +160,11 @@ module.exports = {
esPlan: '企标计划', esPlan: '企标计划',
deadlineNeedGreaterThan: '征求意见截止日期需要比征求意见稿计划完成日期早', deadlineNeedGreaterThan: '征求意见截止日期需要比征求意见稿计划完成日期早',
noStandardTextLook: '暂无标准文本可查看', noStandardTextLook: '暂无标准文本可查看',
summaryOfOpinions: '意见汇总' summaryOfOpinions: '意见汇总',
confirmIsInsertSignature: '确认是否已插入签章',
confirmIsInsertSignatureCont: '本节点需要前往在线编辑页面插入签章,请前往在线编辑页面确认是否已经插入签章,检查签章页无误后再行提交。',
confirmIsInsertSignatureOkText: '前往在线编辑页面',
confirmIsInsertSignatureCancelText: '确认签章页无误并提交'
}, },
// 企标更改流程 // 企标更改流程
enStandardChange: { enStandardChange: {
@@ -629,27 +629,63 @@ export default {
// 提交 // 提交
handleSubmit () { handleSubmit () {
if (this.loading) return if (this.loading) return
this.approvalInfoForm.validateFields(async (approvalErr, approvalValues) => { if (this.currentNode === 18) {
const data = await this.$refs.baseInfoRef.getDataValidate() // 是最后一个节点,二次弹框确认在线编辑是否插入了签章
if (!approvalErr && data) { this.$confirm({
const param = {} // 需要传给后端的数据 title: this.$t('workCenter.enStandardRevision.confirmIsInsertSignature'),
param.common = Object.assign({}, approvalValues) content: this.$t('workCenter.enStandardRevision.confirmIsInsertSignatureCont'),
param.common.taskId = this.$route.query.taskId cancelText: this.$t('workCenter.enStandardRevision.confirmIsInsertSignatureCancelText'),
param.data = data okText: this.$t('workCenter.enStandardRevision.confirmIsInsertSignatureOkText'),
this.loading = true onOk: () => {
enStandardEditAgree(param).then(res => { this.$refs.baseInfoRef.toOnlineEditor()
if (res.success) { },
this.$message.success(res.message) onCancel: () => {
this.goBack() this.approvalInfoForm.validateFields(async (approvalErr, approvalValues) => {
} else { const data = await this.$refs.baseInfoRef.getDataValidate()
this.$message.warning(res.message) if (!approvalErr && data) {
this.loading = false const param = {} // 需要传给后端的数据
} param.common = Object.assign({}, approvalValues)
}) param.common.taskId = this.$route.query.taskId
} else { param.data = data
this.switchValue = 'base' this.loading = true
} enStandardEditAgree(param).then(res => {
}) if (res.success) {
this.$message.success(res.message)
this.goBack()
} else {
this.$message.warning(res.message)
this.loading = false
}
})
} else {
this.switchValue = 'base'
}
})
}
})
} else {
this.approvalInfoForm.validateFields(async (approvalErr, approvalValues) => {
const data = await this.$refs.baseInfoRef.getDataValidate()
if (!approvalErr && data) {
const param = {} // 需要传给后端的数据
param.common = Object.assign({}, approvalValues)
param.common.taskId = this.$route.query.taskId
param.data = data
this.loading = true
enStandardEditAgree(param).then(res => {
if (res.success) {
this.$message.success(res.message)
this.goBack()
} else {
this.$message.warning(res.message)
this.loading = false
}
})
} else {
this.switchValue = 'base'
}
})
}
}, },
// 同意 // 同意
handleAgree () { handleAgree () {