|
@@ -25,13 +25,20 @@
|
|
|
min-width="200"
|
|
min-width="200"
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
- <el-table-column label="资料类型" width="120" align="center">
|
|
|
|
|
|
|
+ <el-table-column label="资料类型" width="150" align="center">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<span
|
|
<span
|
|
|
- :class="{
|
|
|
|
|
- 'template-tag': scope.row.templateId,
|
|
|
|
|
- }"
|
|
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ Number(scope.row.formatRequired) === 2 && scope.row.templateId
|
|
|
|
|
+ "
|
|
|
|
|
+ class="template-tag"
|
|
|
|
|
+ style="cursor: pointer"
|
|
|
|
|
+ title="点击查看模板"
|
|
|
|
|
+ @click="handleViewTemplate(scope.row)"
|
|
|
>
|
|
>
|
|
|
|
|
+ 预置模板
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <span v-else>
|
|
|
{{ getFormatType(scope.row.formatRequired) }}
|
|
{{ getFormatType(scope.row.formatRequired) }}
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
@@ -82,12 +89,12 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="200" align="center">
|
|
<el-table-column label="操作" width="200" align="center">
|
|
|
- <template v-if="scope.row.isUpload === '1'" slot-scope="scope">
|
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
<el-button
|
|
<el-button
|
|
|
v-if="
|
|
v-if="
|
|
|
- scope.row.auditedStatus == '0' &&
|
|
|
|
|
- currentStatus === '审核中' &&
|
|
|
|
|
- currentNode === 'clcs'
|
|
|
|
|
|
|
+ scope.row.auditedStatus === '0' &&
|
|
|
|
|
+ (currentStatus === 200 || currentStatus === '200') &&
|
|
|
|
|
+ (currentNode === 'clcs' || currentNode === 'sdsh')
|
|
|
"
|
|
"
|
|
|
type="text"
|
|
type="text"
|
|
|
size="small"
|
|
size="small"
|
|
@@ -137,6 +144,57 @@
|
|
|
<el-button type="primary" @click="handleAuditSubmit">提交</el-button>
|
|
<el-button type="primary" @click="handleAuditSubmit">提交</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <!-- 单记录弹窗 -->
|
|
|
|
|
+ <survey-form-dialog
|
|
|
|
|
+ :visible.sync="singleDialogVisible"
|
|
|
|
|
+ :survey-data="{}"
|
|
|
|
|
+ :is-view-mode="true"
|
|
|
|
|
+ :audited-unit-id="
|
|
|
|
|
+ (currentTemplateRow && currentTemplateRow.auditedUnitId) || ''
|
|
|
|
|
+ "
|
|
|
|
|
+ :upload-id="(currentTemplateRow && currentTemplateRow.uploadId) || ''"
|
|
|
|
|
+ :survey-template-id="
|
|
|
|
|
+ (currentTemplateRow &&
|
|
|
|
|
+ (currentTemplateRow.templateId ||
|
|
|
|
|
+ currentTemplateRow.surveyTemplateId)) ||
|
|
|
|
|
+ ''
|
|
|
|
|
+ "
|
|
|
|
|
+ :catalog-id="(currentTemplateRow && currentTemplateRow.catalogId) || ''"
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 固定表弹窗(查看模式) -->
|
|
|
|
|
+ <fixed-table-dialog
|
|
|
|
|
+ :visible.sync="fixedDialogVisible"
|
|
|
|
|
+ :is-view-mode="true"
|
|
|
|
|
+ :audited-unit-id="
|
|
|
|
|
+ (currentTemplateRow && currentTemplateRow.auditedUnitId) || ''
|
|
|
|
|
+ "
|
|
|
|
|
+ :upload-id="(currentTemplateRow && currentTemplateRow.uploadId) || ''"
|
|
|
|
|
+ :survey-template-id="
|
|
|
|
|
+ (currentTemplateRow &&
|
|
|
|
|
+ (currentTemplateRow.templateId ||
|
|
|
|
|
+ currentTemplateRow.surveyTemplateId)) ||
|
|
|
|
|
+ ''
|
|
|
|
|
+ "
|
|
|
|
|
+ :catalog-id="(currentTemplateRow && currentTemplateRow.catalogId) || ''"
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 动态表弹窗(查看模式) -->
|
|
|
|
|
+ <dynamic-table-dialog
|
|
|
|
|
+ :visible.sync="dynamicDialogVisible"
|
|
|
|
|
+ :is-view-mode="true"
|
|
|
|
|
+ :audited-unit-id="
|
|
|
|
|
+ (currentTemplateRow && currentTemplateRow.auditedUnitId) || ''
|
|
|
|
|
+ "
|
|
|
|
|
+ :upload-id="(currentTemplateRow && currentTemplateRow.uploadId) || ''"
|
|
|
|
|
+ :survey-template-id="
|
|
|
|
|
+ (currentTemplateRow &&
|
|
|
|
|
+ (currentTemplateRow.templateId ||
|
|
|
|
|
+ currentTemplateRow.surveyTemplateId)) ||
|
|
|
|
|
+ ''
|
|
|
|
|
+ "
|
|
|
|
|
+ :catalog-id="(currentTemplateRow && currentTemplateRow.catalogId) || ''"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -163,9 +221,17 @@
|
|
|
getDataPreliminaryReviewButton,
|
|
getDataPreliminaryReviewButton,
|
|
|
doProcessBtn,
|
|
doProcessBtn,
|
|
|
} from '@/api/dataPreliminaryReview'
|
|
} from '@/api/dataPreliminaryReview'
|
|
|
|
|
+ import SurveyFormDialog from '@/views/EntDeclaration/auditTaskManagement/components/SurveyFormDialog.vue'
|
|
|
|
|
+ import FixedTableDialog from '@/views/EntDeclaration/auditTaskManagement/components/FixedTableDialog.vue'
|
|
|
|
|
+ import DynamicTableDialog from '@/views/EntDeclaration/auditTaskManagement/components/DynamicTableDialog.vue'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'AuditReview',
|
|
name: 'AuditReview',
|
|
|
|
|
+ components: {
|
|
|
|
|
+ SurveyFormDialog,
|
|
|
|
|
+ FixedTableDialog,
|
|
|
|
|
+ DynamicTableDialog,
|
|
|
|
|
+ },
|
|
|
props: {
|
|
props: {
|
|
|
id: {
|
|
id: {
|
|
|
type: [String, Number],
|
|
type: [String, Number],
|
|
@@ -179,6 +245,10 @@
|
|
|
type: String,
|
|
type: String,
|
|
|
default: '',
|
|
default: '',
|
|
|
},
|
|
},
|
|
|
|
|
+ materials: {
|
|
|
|
|
+ type: Array,
|
|
|
|
|
+ default: () => [],
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -203,6 +273,11 @@
|
|
|
showAuditDialog: false,
|
|
showAuditDialog: false,
|
|
|
// 当前审核的资料
|
|
// 当前审核的资料
|
|
|
currentAuditMaterial: null,
|
|
currentAuditMaterial: null,
|
|
|
|
|
+ // 模板查看相关
|
|
|
|
|
+ currentTemplateRow: null,
|
|
|
|
|
+ singleDialogVisible: false,
|
|
|
|
|
+ fixedDialogVisible: false,
|
|
|
|
|
+ dynamicDialogVisible: false,
|
|
|
// 资料审核表单数据
|
|
// 资料审核表单数据
|
|
|
auditForm: {
|
|
auditForm: {
|
|
|
auditedStatus: '通过', // 默认审核通过
|
|
auditedStatus: '通过', // 默认审核通过
|
|
@@ -214,18 +289,34 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
- // 监听标签页切换事件
|
|
|
|
|
activeTab(newTab) {
|
|
activeTab(newTab) {
|
|
|
- // 当切换到成本调查表标签页时,模拟加载过程
|
|
|
|
|
if (newTab === 'costSurvey') {
|
|
if (newTab === 'costSurvey') {
|
|
|
this.loadCostSurveyData()
|
|
this.loadCostSurveyData()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ materials: {
|
|
|
|
|
+ handler(newList) {
|
|
|
|
|
+ if (Array.isArray(newList) && newList.length > 0) {
|
|
|
|
|
+ this.materialData = newList
|
|
|
|
|
+ this.processMaterialData()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ deep: true,
|
|
|
|
|
+ immediate: true,
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
- this.loadMaterialData()
|
|
|
|
|
|
|
+ if (Array.isArray(this.materials) && this.materials.length > 0) {
|
|
|
|
|
+ this.materialData = this.materials
|
|
|
|
|
+ this.processMaterialData()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.loadMaterialData()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ mounted() {
|
|
|
|
|
+ console.log(this.currentNode, '123')
|
|
|
|
|
+ console.log(this.currentStatus, '222')
|
|
|
},
|
|
},
|
|
|
- mounted() {},
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
// 加载报送资料数据
|
|
// 加载报送资料数据
|
|
|
async loadMaterialData() {
|
|
async loadMaterialData() {
|
|
@@ -323,8 +414,25 @@
|
|
|
},
|
|
},
|
|
|
// 查看下载文件
|
|
// 查看下载文件
|
|
|
handleViewDownload(row) {
|
|
handleViewDownload(row) {
|
|
|
- this.$message.info(`查看下载文件:${row.name}`)
|
|
|
|
|
|
|
+ // this.$message.info(`查看下载文件:${row.name}`)
|
|
|
// 这里可以添加查看下载文件的逻辑
|
|
// 这里可以添加查看下载文件的逻辑
|
|
|
|
|
+ this.handleViewTemplate(row)
|
|
|
|
|
+ },
|
|
|
|
|
+ // 查看预置模板,按模板类型打开不同弹窗
|
|
|
|
|
+ handleViewTemplate(row) {
|
|
|
|
|
+ this.currentTemplateRow = row || null
|
|
|
|
|
+ const t = String(
|
|
|
|
|
+ (row && (row.templateType || row.templatetype)) || ''
|
|
|
|
|
+ ).trim()
|
|
|
|
|
+ if (t === '1') {
|
|
|
|
|
+ this.singleDialogVisible = true
|
|
|
|
|
+ } else if (t === '2') {
|
|
|
|
|
+ this.fixedDialogVisible = true
|
|
|
|
|
+ } else if (t === '3') {
|
|
|
|
|
+ this.dynamicDialogVisible = true
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.warning('未知的模板类型,无法打开预置模板')
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
// 查看报表
|
|
// 查看报表
|
|
|
handleViewReport(row) {
|
|
handleViewReport(row) {
|