update 国内、企标查看标准分解单

This commit is contained in:
赵霄
2023-10-19 18:10:00 +08:00
parent b8ce912002
commit 9a3adf5b07
4 changed files with 26 additions and 8 deletions
+2 -2
View File
@@ -114,7 +114,7 @@ export default {
clauseLabelInfo: {}, // 条文标签数据 clauseLabelInfo: {}, // 条文标签数据
clauseLabelHideField: ['item_content'], clauseLabelHideField: ['item_content'],
needDictField: [FieldType.USER_SINGLE.value, FieldType.ORGAN_SINGLE.value, FieldType.STANDARD_MORE.value, FieldType.ORGAN_MORE.value, FieldType.OPTION_SINGLE.value, FieldType.OPTION_MORE.value, FieldType.TREE.value], needDictField: [FieldType.USER_SINGLE.value, FieldType.ORGAN_SINGLE.value, FieldType.STANDARD_MORE.value, FieldType.ORGAN_MORE.value, FieldType.OPTION_SINGLE.value, FieldType.OPTION_MORE.value, FieldType.TREE.value],
splitId: null // 文档拆分处的id queryParams: {}
} }
}, },
methods: { methods: {
@@ -130,7 +130,7 @@ export default {
}, },
initDetailInfo () { initDetailInfo () {
this.loading = true this.loading = true
previewDocSplit({ id: this.splitId }).then(res => { previewDocSplit(this.queryParams).then(res => {
if (res.success) { if (res.success) {
const data = res.result || {} const data = res.result || {}
this.treeData = data.sarFileSplitMenuEO || [] this.treeData = data.sarFileSplitMenuEO || []
@@ -13,7 +13,7 @@ export default {
components: { StandardResolutionSheet }, components: { StandardResolutionSheet },
mounted () { mounted () {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.resolutionSheet.splitId = this.$route.query.id this.$refs.resolutionSheet.queryParams = { id: this.$route.query.id }
this.$refs.resolutionSheet.initClauseFieldList() this.$refs.resolutionSheet.initClauseFieldList()
this.$refs.resolutionSheet.initDetailInfo() this.$refs.resolutionSheet.initDetailInfo()
}) })
@@ -57,8 +57,12 @@
<div class="detail-page-process-manuscript-item" v-for="(formItem, formIndex) in form[part]" :key="formItem.id"> <div class="detail-page-process-manuscript-item" v-for="(formItem, formIndex) in form[part]" :key="formItem.id">
<div class="detail-page-process-manuscript-title"> <div class="detail-page-process-manuscript-title">
<span>{{ formItem.dbFieldTxt }}</span> <span>{{ formItem.dbFieldTxt }}</span>
<a-button v-if="formIndex === 0" type="primary" ghost icon="file-text">{{ $t('enterpriseStandardLibrary.standard.standardResolutionSheet') <a-button v-if="formIndex === 0"
}} type="primary"
ghost
icon="file-text"
@click="previewStandardResolutionSheet(detailData[formItem.dbFieldName + '_standardSplit'])">
{{ $t('enterpriseStandardLibrary.standard.standardResolutionSheet') }}
</a-button> </a-button>
</div> </div>
<template v-if="detailData[formItem.dbFieldName]"> <template v-if="detailData[formItem.dbFieldName]">
@@ -110,6 +114,8 @@
<update-record-modal ref="updateRecordModal"></update-record-modal> <update-record-modal ref="updateRecordModal"></update-record-modal>
<!-- 提交问题弹框 --> <!-- 提交问题弹框 -->
<submit-question-modal ref="submitQuestionModal"></submit-question-modal> <submit-question-modal ref="submitQuestionModal"></submit-question-modal>
<!-- 标准分解单-->
<standard-resolution-sheet-modal ref="standardResolutionSheetModal" />
<!-- 图片预览容器 --> <!-- 图片预览容器 -->
<div id="images"> <div id="images">
<div class="image" v-viewer="{movable: false}"> <div class="image" v-viewer="{movable: false}">
@@ -131,6 +137,8 @@ import Vue from 'vue'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import { previewPdf } from '@/utils/previewPdf' import { previewPdf } from '@/utils/previewPdf'
import { getFileInfo } from '../../../../api/api' import { getFileInfo } from '../../../../api/api'
import UserSelectModal from '@comp/selection/UserSelectModal'
import StandardResolutionSheetModal from '@views/standardRegulationLibrary/commonPage/modules/StandardResolutionSheetModal'
// 支持预览的文件后缀 // 支持预览的文件后缀
const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'raw', 'pdf', 'docx', 'doc'] const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'raw', 'pdf', 'docx', 'doc']
@@ -140,7 +148,7 @@ const Base64 = require('js-base64').Base64
export default { export default {
name: 'EnterpriseStandardDetail', name: 'EnterpriseStandardDetail',
components: { EnterpriseStandardEvaluateModal, SubmitQuestionModal, UpdateRecordModal }, components: { StandardResolutionSheetModal, UserSelectModal, EnterpriseStandardEvaluateModal, SubmitQuestionModal, UpdateRecordModal },
data () { data () {
return { return {
FieldType, FieldType,
@@ -293,7 +301,13 @@ export default {
// 提交问题 // 提交问题
submitQuestion () { submitQuestion () {
this.$refs.submitQuestionModal.open(this.detailData.standard_number) this.$refs.submitQuestionModal.open(this.detailData.standard_number)
} },
/**
* 查看标准分解单
*/
previewStandardResolutionSheet (id) {
this.$refs.standardResolutionSheetModal.open(id)
},
} }
} }
</script> </script>
@@ -39,7 +39,11 @@ export default {
open (id) { open (id) {
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.resolutionSheet.splitId = id const ids = id.split(',')
this.$refs.resolutionSheet.queryParams = {
id: ids[0],
publishBeforeId: ids[1]
}
this.$refs.resolutionSheet.initClauseFieldList() this.$refs.resolutionSheet.initClauseFieldList()
this.$refs.resolutionSheet.initDetailInfo() this.$refs.resolutionSheet.initDetailInfo()
}) })