[update] 企标制修订流程最后一个节点提交二次弹框提醒插入签章
This commit is contained in:
+57
-21
@@ -629,27 +629,63 @@ export default {
|
||||
// 提交
|
||||
handleSubmit () {
|
||||
if (this.loading) return
|
||||
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'
|
||||
}
|
||||
})
|
||||
if (this.currentNode === 18) {
|
||||
// 是最后一个节点,二次弹框确认在线编辑是否插入了签章
|
||||
this.$confirm({
|
||||
title: this.$t('workCenter.enStandardRevision.confirmIsInsertSignature'),
|
||||
content: this.$t('workCenter.enStandardRevision.confirmIsInsertSignatureCont'),
|
||||
cancelText: this.$t('workCenter.enStandardRevision.confirmIsInsertSignatureCancelText'),
|
||||
okText: this.$t('workCenter.enStandardRevision.confirmIsInsertSignatureOkText'),
|
||||
onOk: () => {
|
||||
this.$refs.baseInfoRef.toOnlineEditor()
|
||||
},
|
||||
onCancel: () => {
|
||||
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'
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
} 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 () {
|
||||
|
||||
Reference in New Issue
Block a user