|
|
@ -1272,6 +1272,7 @@ |
|
|
<el-button type="primary" v-if="!this.authUpdate" icon="el-icon-upload" style="margin-top: -5px" @click="projectDocumentList()">文档清单定义</el-button> |
|
|
<el-button type="primary" v-if="!this.authUpdate" icon="el-icon-upload" style="margin-top: -5px" @click="projectDocumentList()">文档清单定义</el-button> |
|
|
<el-button type="primary" v-if="this.proofingCurrentRow.status !== '草稿'" icon="el-icon-upload" style="margin-top: -5px" @click="uploadOtherDocument()">上传其他文档</el-button> |
|
|
<el-button type="primary" v-if="this.proofingCurrentRow.status !== '草稿'" icon="el-icon-upload" style="margin-top: -5px" @click="uploadOtherDocument()">上传其他文档</el-button> |
|
|
<el-button type="primary" v-if="this.sendMassMailFlag === true && !this.authUpdate" style="margin-top: -5px" @click="sendMassMailHandle()">邮件提醒</el-button> |
|
|
<el-button type="primary" v-if="this.sendMassMailFlag === true && !this.authUpdate" style="margin-top: -5px" @click="sendMassMailHandle()">邮件提醒</el-button> |
|
|
|
|
|
<el-button type="primary" v-loading="this.downloadLoading" v-if="projectOtherDocumentList.length>0" style="margin-top: -3px;" @click="dowloadAllFile()">一键下载</el-button> |
|
|
<el-table |
|
|
<el-table |
|
|
:data="projectOtherDocumentList" |
|
|
:data="projectOtherDocumentList" |
|
|
border |
|
|
border |
|
|
@ -1348,6 +1349,7 @@ |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane label="所有文档" name="allDocument"> |
|
|
<el-tab-pane label="所有文档" name="allDocument"> |
|
|
<el-button type="primary" v-if="this.proofingCurrentRow.status !== '草稿' && !this.authUpdate" icon="el-icon-upload" style="margin-top: -5px" @click="projectProductionValidationDocument()">选择生产确认文档</el-button> |
|
|
<el-button type="primary" v-if="this.proofingCurrentRow.status !== '草稿' && !this.authUpdate" icon="el-icon-upload" style="margin-top: -5px" @click="projectProductionValidationDocument()">选择生产确认文档</el-button> |
|
|
|
|
|
<el-button type="primary" v-loading="this.downloadLoading" v-if="projectAllDocumentList.length>0" style="margin-top: -3px;" @click="dowloadAllFile2()">一键下载</el-button> |
|
|
<el-table |
|
|
<el-table |
|
|
:data="projectAllDocumentList" |
|
|
:data="projectAllDocumentList" |
|
|
border |
|
|
border |
|
|
@ -1905,6 +1907,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
otherDocumentCurrentRow: {}, |
|
|
otherDocumentCurrentRow: {}, |
|
|
projectAllDocumentCurrentRow: {}, |
|
|
projectAllDocumentCurrentRow: {}, |
|
|
fileList: [], |
|
|
fileList: [], |
|
|
|
|
|
downloadLoading: false, |
|
|
projectOtherDocumentList: [], |
|
|
projectOtherDocumentList: [], |
|
|
extraProjectDocumentList: [], |
|
|
extraProjectDocumentList: [], |
|
|
projectDocumentSelection: [], |
|
|
projectDocumentSelection: [], |
|
|
@ -4750,6 +4753,34 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 转量产 一键下载 |
|
|
|
|
|
async dowloadAllFile(){ |
|
|
|
|
|
this.downloadLoading = true |
|
|
|
|
|
let oldList = this.projectOtherDocumentList |
|
|
|
|
|
let list = oldList.filter(item => { |
|
|
|
|
|
return this.shouldShowDelete(item) || item.projectPhase === 'SOP文档' |
|
|
|
|
|
}) |
|
|
|
|
|
for (const item of list) { |
|
|
|
|
|
await this.viewMassDocumentFile(item, true) |
|
|
|
|
|
this.downloadFile(this.projectConfirmatorFileList[0]) |
|
|
|
|
|
await new Promise(resolve => setTimeout(resolve, 500)) |
|
|
|
|
|
} |
|
|
|
|
|
this.downloadLoading = false |
|
|
|
|
|
}, |
|
|
|
|
|
// 所有文档 一键下载 |
|
|
|
|
|
async dowloadAllFile2(){ |
|
|
|
|
|
this.downloadLoading = true |
|
|
|
|
|
let oldList = this.projectAllDocumentList |
|
|
|
|
|
let list = oldList.filter(item => { |
|
|
|
|
|
return this.shouldShowDelete(item) || item.uploadedFlag === 'Y' |
|
|
|
|
|
}) |
|
|
|
|
|
for (const item of list) { |
|
|
|
|
|
await this.viewMassDocumentFile(item, true) |
|
|
|
|
|
this.downloadFile(this.projectConfirmatorFileList[0]) |
|
|
|
|
|
await new Promise(resolve => setTimeout(resolve, 500)) |
|
|
|
|
|
} |
|
|
|
|
|
this.downloadLoading = false |
|
|
|
|
|
}, |
|
|
cancelModalStatus (row) { |
|
|
cancelModalStatus (row) { |
|
|
this.modalData = { |
|
|
this.modalData = { |
|
|
site: row.site, |
|
|
site: row.site, |
|
|
@ -6077,7 +6108,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
}) |
|
|
}) |
|
|
this.viewDocumentFileVisible = true |
|
|
this.viewDocumentFileVisible = true |
|
|
}, |
|
|
}, |
|
|
viewMassDocumentFile(row) { |
|
|
|
|
|
|
|
|
async viewMassDocumentFile(row,flag) { |
|
|
let inData = { |
|
|
let inData = { |
|
|
orderRef1: row.site, |
|
|
orderRef1: row.site, |
|
|
orderRef2: row.proofingId, |
|
|
orderRef2: row.proofingId, |
|
|
@ -6091,11 +6122,14 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
page: 1, |
|
|
page: 1, |
|
|
limit: 1000 |
|
|
limit: 1000 |
|
|
} |
|
|
} |
|
|
searchProjectConfirmatorFileList(inData).then(({data}) => { |
|
|
|
|
|
|
|
|
await searchProjectConfirmatorFileList(inData).then(({data}) => { |
|
|
if (data && data.code === 0){ |
|
|
if (data && data.code === 0){ |
|
|
this.projectConfirmatorFileList = data.page.list; |
|
|
this.projectConfirmatorFileList = data.page.list; |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
if (flag){ |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
this.viewMassDocumentFileVisible = true |
|
|
this.viewMassDocumentFileVisible = true |
|
|
}, |
|
|
}, |
|
|
deleteFile(row) { |
|
|
deleteFile(row) { |
|
|
|