|
@@ -311,7 +311,7 @@
|
|
|
import CostAuditDialog from '@/components/costAudit/CostAuditDialog.vue'
|
|
import CostAuditDialog from '@/components/costAudit/CostAuditDialog.vue'
|
|
|
import TemplatePreviewEdit from '@/components/costAudit/TemplatePreviewEdit.vue'
|
|
import TemplatePreviewEdit from '@/components/costAudit/TemplatePreviewEdit.vue'
|
|
|
import { getAllUnitList } from '@/api/auditEntityManage'
|
|
import { getAllUnitList } from '@/api/auditEntityManage'
|
|
|
- import { queryByDocumentIdandWhereValue } from '@/api/auditReviewDocManage.js'
|
|
|
|
|
|
|
+ import { getCostProjectDocumentFile } from '@/api/auditReviewDocManage.js'
|
|
|
import { getData } from '@/api/auditDocNoManage.js'
|
|
import { getData } from '@/api/auditDocNoManage.js'
|
|
|
import { updateScan, downDocument } from '@/api/taskCustomizedRelease.js'
|
|
import { updateScan, downDocument } from '@/api/taskCustomizedRelease.js'
|
|
|
import {
|
|
import {
|
|
@@ -633,15 +633,17 @@
|
|
|
let data = this.documentData.documentTypes.find(
|
|
let data = this.documentData.documentTypes.find(
|
|
|
(item) => item.id === this.document.documentId
|
|
(item) => item.id === this.document.documentId
|
|
|
)
|
|
)
|
|
|
|
|
+ console.log(data, 'data')
|
|
|
this.fileUrl = data.fileUrl
|
|
this.fileUrl = data.fileUrl
|
|
|
this.document.documentName = data.documentName
|
|
this.document.documentName = data.documentName
|
|
|
this.getDocumentData()
|
|
this.getDocumentData()
|
|
|
},
|
|
},
|
|
|
getDocumentData() {
|
|
getDocumentData() {
|
|
|
if (this.document.documentId) {
|
|
if (this.document.documentId) {
|
|
|
- queryByDocumentIdandWhereValue({
|
|
|
|
|
- documentId: this.document.documentId,
|
|
|
|
|
- whereValue: this.project.projectId,
|
|
|
|
|
|
|
+ getCostProjectDocumentFile({
|
|
|
|
|
+ // documentId: this.document.documentId,
|
|
|
|
|
+ // whereValue: this.project.projectId,
|
|
|
|
|
+ id: this.document.id,
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
this.costDocumentTemplateFiles = res.value || []
|
|
this.costDocumentTemplateFiles = res.value || []
|
|
|
})
|
|
})
|