feat : "需求上报, 项目立项, 项目验收, 阶段变更, 专项资金" 上传文件旁边加上模板下载功能
This commit is contained in:
@@ -284,7 +284,7 @@
|
||||
<baseTitle title="附件文件"></baseTitle>
|
||||
<div :style="{marginRight:!formData.isSpecialFund?'20px':'80px'}">
|
||||
<AttachmentUpload ref="attachment" label="需求申请书附件"
|
||||
:showTable="showTable"
|
||||
:showTable="showTable" templateName="科技创新项目需求申请书" :templateDownloadBtnShow="true"
|
||||
v-model:otherFileList="otherFileList"
|
||||
@getOtherFile="getOtherFile"
|
||||
:showSingleTable="showSingleTable" @getAttachment="getAttachment"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</el-form>
|
||||
<user-picker :multiple="true" ref="userPicker" title="请选择抄送人员" v-model:value="userList"
|
||||
@ok="ccPersonPickerOkOrCancel" @cancelOrClear="ccPersonPickerOkOrCancel"/>
|
||||
<AttachmentUpload ref="attachment" label="阶段变更附件" :showTable="showTable" v-model:otherFileList="otherFileList"
|
||||
<AttachmentUpload ref="attachment" label="阶段变更附件" :showTable="showTable" v-model:otherFileList="otherFileList" templateName="科技创新项目变更申请表" :templateDownloadBtnShow="true"
|
||||
@getAttachment="getAttachment" v-model:singleList="singleList" :showSingleTable="showSingleTable"
|
||||
@getOtherFile="getOtherFile" :showFileList="true" :formData="formData" tag="阶段变更"
|
||||
:preview="name === 'Phase/edit'"/>
|
||||
|
||||
@@ -34,7 +34,10 @@
|
||||
</el-row>
|
||||
</el-form>
|
||||
<baseTitle title="附件文件" style="margin-right: 10px"></baseTitle>
|
||||
<file-upload @getFile="getFile"/>
|
||||
<div style="display:flex;">
|
||||
<file-upload @getFile="getFile"/>
|
||||
<el-button color="#DED0B2" @click="handleImportTemplateDownload" style="margin-left: 10px">模板下载</el-button>
|
||||
</div>
|
||||
|
||||
<fvTable style="width: 100%;max-height: 160px;" v-if="showTable"
|
||||
:tableConfig="tableConfig" height="160" :data="formData.files"
|
||||
@@ -84,7 +87,7 @@ import {addFund, resubmitFund, getFundDetail, getFundDetailProcess, getFundProce
|
||||
import {useRouter} from "vue-router";
|
||||
import {useTagsView} from '@/stores/tagsview.js'
|
||||
import {useProcessStore} from '@/stores/processStore.js';
|
||||
import {downloadFile, deleteFile} from "@/api/project-demand";
|
||||
import {downloadFile, deleteFile,downloadTemplate} from "@/api/project-demand";
|
||||
|
||||
const changeDiagram = ref(false)
|
||||
const tagsViewStore = useTagsView()
|
||||
@@ -161,6 +164,18 @@ const filePreviewParam = ref({
|
||||
fileType: 'pdf'
|
||||
})
|
||||
const filePreviewShow = ref(false)
|
||||
|
||||
|
||||
const handleImportTemplateDownload=()=>{
|
||||
downloadTemplate('13').then(res => {
|
||||
const blob = new Blob([res])
|
||||
let a = document.createElement('a')
|
||||
a.href = URL.createObjectURL(blob)
|
||||
a.download = '科技创新项目专项资金任务书.docx'
|
||||
a.click()
|
||||
})
|
||||
}
|
||||
|
||||
const clickToPreview = (row) => {
|
||||
filePreviewShow.value = false
|
||||
filePreviewParam.value = {
|
||||
|
||||
Reference in New Issue
Block a user