|
|
@@ -93,14 +93,14 @@
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<template #electronicDocumentUrl="scope">
|
|
|
- <!-- <el-button
|
|
|
+ <el-button
|
|
|
v-if="!isView"
|
|
|
type="text"
|
|
|
size="mini"
|
|
|
@click="handleEditDocument(scope.row)"
|
|
|
>
|
|
|
修改
|
|
|
- </el-button> -->
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
v-if="!isView"
|
|
|
type="text"
|
|
|
@@ -319,7 +319,10 @@
|
|
|
import CostAuditDialog from '@/components/costAudit/CostAuditDialog.vue'
|
|
|
import TemplatePreviewEdit from '@/components/costAudit/TemplatePreviewEdit.vue'
|
|
|
import { getAllUnitList } from '@/api/auditEntityManage'
|
|
|
- import { getCostProjectDocumentFile } from '@/api/auditReviewDocManage.js'
|
|
|
+ import {
|
|
|
+ getCostProjectDocumentFile,
|
|
|
+ queryByDocumentIdandWhereValue,
|
|
|
+ } from '@/api/auditReviewDocManage.js'
|
|
|
import { getData } from '@/api/auditDocNoManage.js'
|
|
|
import { updateScan, downDocument } from '@/api/taskCustomizedRelease.js'
|
|
|
import {
|
|
|
@@ -647,7 +650,15 @@
|
|
|
this.getDocumentData()
|
|
|
},
|
|
|
getDocumentData() {
|
|
|
- if (this.document.documentId) {
|
|
|
+ console.log(this.document, 'this.document')
|
|
|
+ if (this.document.id === null || this.document.id === '') {
|
|
|
+ queryByDocumentIdandWhereValue({
|
|
|
+ documentId: this.document.documentId,
|
|
|
+ whereValue: this.project.projectId,
|
|
|
+ }).then((res) => {
|
|
|
+ this.costDocumentTemplateFiles = res.value || []
|
|
|
+ })
|
|
|
+ } else {
|
|
|
getCostProjectDocumentFile({
|
|
|
// documentId: this.document.documentId,
|
|
|
// whereValue: this.project.projectId,
|