[update] 联调企标计划立项变更流程

This commit is contained in:
lideqin
2023-10-30 18:26:55 +08:00
parent f52c4a74ab
commit 184864acfa
10 changed files with 47 additions and 24 deletions
+19 -9
View File
@@ -56,11 +56,13 @@
<!--附件-->
<template v-slot:file="{text, record}">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
<div class="table-text can-click-table-text" v-if="text || text === 0" @click="handlePreview(record)">{{ text }}</div>
<div v-else class="table-text">{{ global.emptyLine }}</div>
</a-tooltip>
<a v-if="text" @click="fileLook(record)">{{ $t('view') }}</a>
<div v-else class="table-text">{{ global.emptyLine }}</div>
<!--<a-tooltip overlay-class-name="tooltip-style">-->
<!-- <template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>-->
<!-- <div class="table-text can-click-table-text" v-if="text || text === 0" @click="handlePreview(record)">{{ text }}</div>-->
<!-- <div v-else class="table-text">{{ global.emptyLine }}</div>-->
<!--</a-tooltip>-->
</template>
</j-table>
</div>
@@ -73,6 +75,7 @@
</div>
<flow-chart-modal ref="flowChartModal" />
<upload-file ref="uploadFile" disabled></upload-file>
</div>
</template>
@@ -85,6 +88,7 @@ import { downloadFile, getFileAccessHttpUrl, getAction } from '../api/manage.js'
import { previewPdf } from '../utils/previewPdf.js'
import { Base64 } from 'js-base64'
import FlowChartModal from './FlowChartModal.vue'
import UploadFile from './UploadFile'
// 支持预览的文件后缀
const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'raw', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'mp3', 'mp4', 'flv']
@@ -93,7 +97,7 @@ const FILE_TYPE_PDF = 'pdf'
export default {
name: 'ProcessDetailList',
components: { JTable, FlowChartModal },
components: { UploadFile, JTable, FlowChartModal },
mixins: [JeroListMixin],
props: {
// 需要有list属性,用于混入里的接口获取
@@ -169,8 +173,7 @@ export default {
{
dataIndex: 'commitText',
title: this.$t('workCenter.processDetail.opinionContent'),
width: 120,
scopedSlots: { customRender: 'projectName' }
width: 120
},
// 附件
{
@@ -181,7 +184,7 @@ export default {
},
// 状态
{
dataIndex: 'nameWorkNo',
dataIndex: 'finishFlag_dictText',
title: this.$t('status'),
width: 100
}
@@ -203,6 +206,9 @@ export default {
const params = this.getQueryParams()// 查询条件
if (this.$route.query.processInstanceId) {
params.processInstanceId = this.$route.query.processInstanceId
} else {
// 没有流程实例id,那就是新增,不用查
return
}
this.loading = true
getAction(this.url.list, params).then((res) => {
@@ -222,6 +228,10 @@ export default {
this.loading = false
})
},
// 附件列的查看点击
fileLook (record) {
this.$refs.uploadFile.open(record.commitFile)
},
handleUrge () {
},
/**