[update] 企标制修订流程,企标更改流程点在线编辑获取到文件id后,调用保存接口
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
<!-- 业务基本信息 -->
|
<!-- 业务基本信息 -->
|
||||||
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
||||||
<!-- 节点1、主起草人发起 -->
|
<!-- 节点1、主起草人发起 -->
|
||||||
<main-drafter-init-base-info v-if="currentNode === 1" ref="baseInfoRef" @processNameChange="processNameChange"></main-drafter-init-base-info>
|
<main-drafter-init-base-info v-if="currentNode === 1" ref="baseInfoRef" @processNameChange="processNameChange" @save="handleSave(true)"></main-drafter-init-base-info>
|
||||||
<!-- 节点2、相关人员校对 -->
|
<!-- 节点2、相关人员校对 -->
|
||||||
<!-- 节点3、起草人主管级领导审批 -->
|
<!-- 节点3、起草人主管级领导审批 -->
|
||||||
<!-- 节点4、标准化审批 -->
|
<!-- 节点4、标准化审批 -->
|
||||||
@@ -308,7 +308,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 保存
|
// 保存
|
||||||
handleSave () {
|
handleSave (noReturn) {
|
||||||
if (this.loading) {
|
if (this.loading) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -368,15 +368,19 @@ export default {
|
|||||||
}
|
}
|
||||||
paramObj.infoJsonStr = JSON.stringify(personnelObj)
|
paramObj.infoJsonStr = JSON.stringify(personnelObj)
|
||||||
}
|
}
|
||||||
this.loading = true
|
if (!noReturn) {
|
||||||
|
this.loading = true
|
||||||
|
}
|
||||||
// 保存到草稿
|
// 保存到草稿
|
||||||
enStandardChangeSave(paramObj).then(res => {
|
enStandardChangeSave(paramObj).then(res => {
|
||||||
if (res.success) {
|
if (!noReturn) {
|
||||||
this.$message.success(res.message)
|
if (res.success) {
|
||||||
this.goBack()
|
this.$message.success(res.message)
|
||||||
} else {
|
this.goBack()
|
||||||
this.$message.warning(res.message)
|
} else {
|
||||||
this.loading = false
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -608,6 +608,7 @@ export default {
|
|||||||
if (validateResult) {
|
if (validateResult) {
|
||||||
console.log(this.onEditFile)
|
console.log(this.onEditFile)
|
||||||
this.onEditFile = await onlineEditor(params, this.onEditFile || this.standardCanOnlineEditFile)
|
this.onEditFile = await onlineEditor(params, this.onEditFile || this.standardCanOnlineEditFile)
|
||||||
|
this.$emit('save')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+17
-13
@@ -54,11 +54,11 @@
|
|||||||
<!-- 业务基本信息 -->
|
<!-- 业务基本信息 -->
|
||||||
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
||||||
<!-- 节点1、主起草人起草分发 -->
|
<!-- 节点1、主起草人起草分发 -->
|
||||||
<main-drafter-sent-base-info v-if="currentNode === 1" :flowInitType="flowInitType" ref="baseInfoRef" @processNameChange="processNameChange"></main-drafter-sent-base-info>
|
<main-drafter-sent-base-info v-if="currentNode === 1" :flowInitType="flowInitType" ref="baseInfoRef" @processNameChange="processNameChange" @save="handleSave(true)"></main-drafter-sent-base-info>
|
||||||
<!-- 节点2、其他起草人上传企标 -->
|
<!-- 节点2、其他起草人上传企标 -->
|
||||||
<other-drafter-upload-standard-base-info v-if="currentNode === 2" ref="baseInfoRef" @onlineEditView="onlineEditView"></other-drafter-upload-standard-base-info>
|
<other-drafter-upload-standard-base-info v-if="currentNode === 2" ref="baseInfoRef" @onlineEditView="onlineEditView"></other-drafter-upload-standard-base-info>
|
||||||
<!-- 节点3、主起草人汇总上传会议纪要 -->
|
<!-- 节点3、主起草人汇总上传会议纪要 -->
|
||||||
<main-drafter-collect-upload-minute-base-info v-if="currentNode === 3" ref="baseInfoRef"></main-drafter-collect-upload-minute-base-info>
|
<main-drafter-collect-upload-minute-base-info v-if="currentNode === 3" ref="baseInfoRef" @save="handleSave(true)"></main-drafter-collect-upload-minute-base-info>
|
||||||
<!-- 节点4、标准化审核 -->
|
<!-- 节点4、标准化审核 -->
|
||||||
<standardization-audit-base-info
|
<standardization-audit-base-info
|
||||||
v-if="currentNode === 4" ref="baseInfoRef"
|
v-if="currentNode === 4" ref="baseInfoRef"
|
||||||
@@ -77,9 +77,9 @@
|
|||||||
<!-- 节点10、部所联络人主管级领导审批 -->
|
<!-- 节点10、部所联络人主管级领导审批 -->
|
||||||
<depart-liaison-leader-approve-base-info v-if="currentNode === 10" ref="baseInfoRef" @onlineEditView="onlineEditView"></depart-liaison-leader-approve-base-info>
|
<depart-liaison-leader-approve-base-info v-if="currentNode === 10" ref="baseInfoRef" @onlineEditView="onlineEditView"></depart-liaison-leader-approve-base-info>
|
||||||
<!-- 节点11、主起草人汇总 -->
|
<!-- 节点11、主起草人汇总 -->
|
||||||
<main-drafter-collect-base-info v-if="currentNode === 11" ref="baseInfoRef"></main-drafter-collect-base-info>
|
<main-drafter-collect-base-info v-if="currentNode === 11" ref="baseInfoRef" @save="handleSave(true)"></main-drafter-collect-base-info>
|
||||||
<!-- 节点12、主起草人上传会议纪要 -->
|
<!-- 节点12、主起草人上传会议纪要 -->
|
||||||
<main-drafter-upload-minute-base-info v-if="currentNode === 12" ref="baseInfoRef"></main-drafter-upload-minute-base-info>
|
<main-drafter-upload-minute-base-info v-if="currentNode === 12" ref="baseInfoRef" @save="handleSave(true)"></main-drafter-upload-minute-base-info>
|
||||||
<!-- 节点13、其他起草人校对 -->
|
<!-- 节点13、其他起草人校对 -->
|
||||||
<!-- 节点14、主管级领导审批 -->
|
<!-- 节点14、主管级领导审批 -->
|
||||||
<!-- 节点15、标准化审批 -->
|
<!-- 节点15、标准化审批 -->
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
<!-- 只有标准文本 -->
|
<!-- 只有标准文本 -->
|
||||||
<other-drafter-proofread-base-info v-if="[13, 14, 15, 16, 17].includes(currentNode)" ref="baseInfoRef" @onlineEditView="onlineEditView"></other-drafter-proofread-base-info>
|
<other-drafter-proofread-base-info v-if="[13, 14, 15, 16, 17].includes(currentNode)" ref="baseInfoRef" @onlineEditView="onlineEditView"></other-drafter-proofread-base-info>
|
||||||
<!-- 节点18、主起草人发布 -->
|
<!-- 节点18、主起草人发布 -->
|
||||||
<main-drafter-publish-base-info v-if="currentNode === 18" ref="baseInfoRef"></main-drafter-publish-base-info>
|
<main-drafter-publish-base-info v-if="currentNode === 18" ref="baseInfoRef" @save="handleSave(true)"></main-drafter-publish-base-info>
|
||||||
|
|
||||||
<!-- 流程审批信息 -->
|
<!-- 流程审批信息 -->
|
||||||
<div class="process-part-title">{{ $t('processApprovalInformation') }}</div>
|
<div class="process-part-title">{{ $t('processApprovalInformation') }}</div>
|
||||||
@@ -456,7 +456,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 保存
|
// 保存
|
||||||
handleSave () {
|
handleSave (noReturn) {
|
||||||
if (this.loading) {
|
if (this.loading) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -513,15 +513,19 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.loading = true
|
if (!noReturn) {
|
||||||
|
this.loading = true
|
||||||
|
}
|
||||||
// 保存到草稿
|
// 保存到草稿
|
||||||
enStandardEditSave(paramObj).then(res => {
|
enStandardEditSave(paramObj).then(res => {
|
||||||
if (res.success) {
|
if (!noReturn) {
|
||||||
this.$message.success(res.message)
|
if (res.success) {
|
||||||
this.goBack()
|
this.$message.success(res.message)
|
||||||
} else {
|
this.goBack()
|
||||||
this.$message.warning(res.message)
|
} else {
|
||||||
this.loading = false
|
this.$message.warning(res.message)
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -287,6 +287,7 @@ export default {
|
|||||||
const params = this.$refs.baseInfoForm.getOnlineEditorParams()
|
const params = this.$refs.baseInfoForm.getOnlineEditorParams()
|
||||||
if (!this.onEditFile) {
|
if (!this.onEditFile) {
|
||||||
this.onEditFile = await onlineEditor(params, this.standardCanOnlineEditFile || '')
|
this.onEditFile = await onlineEditor(params, this.standardCanOnlineEditFile || '')
|
||||||
|
this.$emit('save')
|
||||||
} else {
|
} else {
|
||||||
onlineEditor(params, this.onEditFile)
|
onlineEditor(params, this.onEditFile)
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -536,6 +536,7 @@ export default {
|
|||||||
const params = this.$refs.baseInfoForm.getOnlineEditorParams()
|
const params = this.$refs.baseInfoForm.getOnlineEditorParams()
|
||||||
if (!this.onEditFile) {
|
if (!this.onEditFile) {
|
||||||
this.onEditFile = await onlineEditor(params, this.standardCanOnlineEditFile || '')
|
this.onEditFile = await onlineEditor(params, this.standardCanOnlineEditFile || '')
|
||||||
|
this.$emit('save')
|
||||||
} else {
|
} else {
|
||||||
onlineEditor(params, this.onEditFile)
|
onlineEditor(params, this.onEditFile)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -179,6 +179,7 @@ export default {
|
|||||||
params.processId = this.$route.query.processInstanceId
|
params.processId = this.$route.query.processInstanceId
|
||||||
if (!this.onEditFile) {
|
if (!this.onEditFile) {
|
||||||
this.onEditFile = await onlineEditor(params, this.standardCanOnlineEditFile || '')
|
this.onEditFile = await onlineEditor(params, this.standardCanOnlineEditFile || '')
|
||||||
|
this.$emit('save')
|
||||||
} else {
|
} else {
|
||||||
onlineEditor(params, this.onEditFile)
|
onlineEditor(params, this.onEditFile)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -239,6 +239,7 @@ export default {
|
|||||||
if (validateResult) {
|
if (validateResult) {
|
||||||
console.log(this.onEditFile || this.standardCanOnlineEditFile || '')
|
console.log(this.onEditFile || this.standardCanOnlineEditFile || '')
|
||||||
this.onEditFile = await onlineEditor(params, this.onEditFile || this.standardCanOnlineEditFile || '')
|
this.onEditFile = await onlineEditor(params, this.onEditFile || this.standardCanOnlineEditFile || '')
|
||||||
|
this.$emit('save')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -386,6 +386,7 @@ export default {
|
|||||||
const params = this.$refs.baseInfoForm.getOnlineEditorParams()
|
const params = this.$refs.baseInfoForm.getOnlineEditorParams()
|
||||||
if (!this.onEditFile) {
|
if (!this.onEditFile) {
|
||||||
this.onEditFile = await onlineEditor(params, this.standardCanOnlineEditFile || '')
|
this.onEditFile = await onlineEditor(params, this.standardCanOnlineEditFile || '')
|
||||||
|
this.$emit('save')
|
||||||
} else {
|
} else {
|
||||||
onlineEditor(params, this.onEditFile)
|
onlineEditor(params, this.onEditFile)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user