|
@@ -10,15 +10,23 @@
|
|
<el-option v-for="item in InternalApproval" :key="item.value" :label="item.label" :value="item.value" />
|
|
<el-option v-for="item in InternalApproval" :key="item.value" :label="item.label" :value="item.value" />
|
|
</el-select>
|
|
</el-select>
|
|
</div> -->
|
|
</div> -->
|
|
- <div class="inline-block w-32">
|
|
|
|
- <el-select v-model="searchInternalForm.isEvaluate" clearable placeholder="是否评定">
|
|
|
|
- <el-option v-for="item in InternalAssess" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
|
|
|
+ <div class="inline-block w-40">
|
|
|
|
+ <el-select v-model="searchInternalForm.dateIsComplete" clearable placeholder="日期是否完整">
|
|
|
|
+ <el-option label="是" value="1" />
|
|
|
|
+ <el-option label="否" value="2" />
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="ml-2 inline-block w-38">
|
|
|
|
+ <el-select v-model="searchInternalForm.isFile" clearable placeholder="是否缺失附件">
|
|
|
|
+ <el-option label="是" :value="false" />
|
|
|
|
+ <el-option label="否" :value="true" />
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="ml-2 inline-block w-32">
|
|
|
|
- <el-select v-model="searchInternalForm.isExperiment" clearable placeholder="关联试验">
|
|
|
|
- <el-option v-for="item in InternalAssociation" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
|
|
|
+ <div class="ml-2 inline-block w-38">
|
|
|
|
+ <el-select v-model="searchInternalForm.selectType" clearable placeholder="节点显示">
|
|
|
|
+ <el-option label="按工序展示" :value="1" />
|
|
|
|
+ <el-option label="按本节点显示" :value="2" />
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
<div class="ml-2 inline-block w-60">
|
|
<div class="ml-2 inline-block w-60">
|
|
@@ -51,13 +59,13 @@
|
|
<HcTooltip v-if="!isWaterProject" keys="write_industry_download">
|
|
<HcTooltip v-if="!isWaterProject" keys="write_industry_download">
|
|
<el-button :disabled="tableInternalKeys.length <= 0" :loading="downloadLoading" hc-btn type="primary" @click="batchDownload">
|
|
<el-button :disabled="tableInternalKeys.length <= 0" :loading="downloadLoading" hc-btn type="primary" @click="batchDownload">
|
|
<HcIcon name="download" />
|
|
<HcIcon name="download" />
|
|
- <span>下载</span>
|
|
|
|
|
|
+ <span>导出EXCEL表格</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip v-if="isWaterProject" keys="write_industry_download">
|
|
<HcTooltip v-if="isWaterProject" keys="write_industry_download">
|
|
<el-button :disabled="tableWaterKeys.length <= 0" :loading="waterDownloadLoading" hc-btn type="primary" @click="waterBatchDownload">
|
|
<el-button :disabled="tableWaterKeys.length <= 0" :loading="waterDownloadLoading" hc-btn type="primary" @click="waterBatchDownload">
|
|
<HcIcon name="download" />
|
|
<HcIcon name="download" />
|
|
- <span>下载</span>
|
|
|
|
|
|
+ <span>导出EXCEL表格</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
</template>
|
|
</template>
|
|
@@ -83,6 +91,11 @@
|
|
<el-tag v-if="row.isExperiment" class="mx-1" effect="dark" type="success">是</el-tag>
|
|
<el-tag v-if="row.isExperiment" class="mx-1" effect="dark" type="success">是</el-tag>
|
|
<el-tag v-else class="mx-1" effect="dark" type="info">否</el-tag>
|
|
<el-tag v-else class="mx-1" effect="dark" type="info">否</el-tag>
|
|
</template>
|
|
</template>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <template #infoQueryName="{ row }">
|
|
|
|
+ <span class="text-link" @click="tableRowName(row)">{{ row?.infoQueryName }}</span>
|
|
|
|
+ </template>
|
|
</HcTable>
|
|
</HcTable>
|
|
<template #action>
|
|
<template #action>
|
|
<HcPages v-if="!isWaterProject" :pages="searchInternalForm" @change="pageInternalChange" />
|
|
<HcPages v-if="!isWaterProject" :pages="searchInternalForm" @change="pageInternalChange" />
|
|
@@ -195,7 +208,8 @@ const InternalAssociation = ref([
|
|
|
|
|
|
//搜索表单
|
|
//搜索表单
|
|
const searchInternalForm = ref({
|
|
const searchInternalForm = ref({
|
|
- taskStatus: null, isEvaluate: null, reportNumber: null, isExperiment: null,
|
|
|
|
|
|
+ taskStatus: null, isFile: null, reportNumber: null, isExperiment: null, selectType: null,
|
|
|
|
+
|
|
current: 1, size: 20, total: 0,
|
|
current: 1, size: 20, total: 0,
|
|
})
|
|
})
|
|
|
|
|
|
@@ -243,10 +257,10 @@ const tableInternalColumn = ref([
|
|
{ key: 'partChildProject', name: '子分部工程' },
|
|
{ key: 'partChildProject', name: '子分部工程' },
|
|
{ key: 'subentryProject', name: '分项工程' },
|
|
{ key: 'subentryProject', name: '分项工程' },
|
|
{ key: 'subentryChildProject', name: '子分项工程' },
|
|
{ key: 'subentryChildProject', name: '子分项工程' },
|
|
- { key: 'process', name: '工序' },
|
|
|
|
- { key: 'taskStatus', name: '审批状态', width: 120, align: 'center' },
|
|
|
|
- { key: 'isEvaluate', name: '是否评定', width: 100, align: 'center' },
|
|
|
|
- { key: 'isExperiment', name: '关联试验', width: 100, align: 'center' },
|
|
|
|
|
|
+ { key: 'infoQueryName', name: '文件题名' },
|
|
|
|
+ { key: 'taskStatus', name: '审批状态', width: 80, align: 'center' },
|
|
|
|
+ { key: 'dateIsComplete', name: '日期是否完整', width: 100, align: 'center' },
|
|
|
|
+ { key: 'fileTypeMsg', name: '附件报告', width: 100, align: 'center' },
|
|
])
|
|
])
|
|
const tableInternalData = ref([])
|
|
const tableInternalData = ref([])
|
|
|
|
|
|
@@ -303,12 +317,13 @@ const tableInternalSelection = (rows) => {
|
|
//下载
|
|
//下载
|
|
const downloadLoading = ref(false)
|
|
const downloadLoading = ref(false)
|
|
const batchDownload = async () => {
|
|
const batchDownload = async () => {
|
|
- const rows = tableInternalKeys.value
|
|
|
|
- console.log(rows, 'rows')
|
|
|
|
- const ids = arrToId(rows)
|
|
|
|
|
|
+
|
|
//批量下载
|
|
//批量下载
|
|
downloadLoading.value = true
|
|
downloadLoading.value = true
|
|
- const { error, disposition, res } = await queryApi.batchDownloadFileToZip({ ids: ids })
|
|
|
|
|
|
+ const { error, disposition, res } = await queryApi.exportNeiye({
|
|
|
|
+ ...searchInternalForm.value,
|
|
|
|
+ projectId: projectId.value,
|
|
|
|
+ })
|
|
//处理数据
|
|
//处理数据
|
|
downloadLoading.value = false
|
|
downloadLoading.value = false
|
|
if (!error) {
|
|
if (!error) {
|
|
@@ -362,4 +377,12 @@ const batchPrint = async () => {
|
|
//window.open(res, '_blank')
|
|
//window.open(res, '_blank')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+const tableRowName = (row)=>{
|
|
|
|
+ const res = row.pdfUrl
|
|
|
|
+ toPdfPage(res)
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
+
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
+
|
|
|
|
+ </style>
|