|
@@ -11,30 +11,37 @@
|
|
|
</el-button>
|
|
|
</HcTooltip>
|
|
|
</template>
|
|
|
- <div class="hc-card-table-title">建设单位归档资料(1200卷)</div>
|
|
|
- <HcCardItem ui="h-half">
|
|
|
- <template #header>
|
|
|
- <span>一、立项审批</span>
|
|
|
- <span class="text-gray">(238卷)</span>
|
|
|
- </template>
|
|
|
- <HcTable
|
|
|
- ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading"
|
|
|
- heights="auto" is-new :index-style="{ width: 60 }" is-check :check-style="{ width: 29 }"
|
|
|
- @selection-change="tableSelection"
|
|
|
- />
|
|
|
- </HcCardItem>
|
|
|
+ <div v-loading="totalLoaing" class="h-screen">
|
|
|
+ <div v-for="(item, index) in totalData" :key="index">
|
|
|
+ <div class="hc-card-table-title">{{ item.unitInfo }}</div>
|
|
|
+ <HcCardItem v-for="(item1, index1) in item.nodeLists" :key="index1" ui="h-half">
|
|
|
+ <template #header>
|
|
|
+ <span>{{ item1.nodeInfo }}</span>
|
|
|
+ <!-- <span class="text-gray">(238卷)</span> -->
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <HcTable
|
|
|
+ v-if="item1.list !== null"
|
|
|
+ ref="tableRef" :column="tableColumn" :datas="item1.list" :loading="tableLoading"
|
|
|
+ is-new :index-style="{ width: 60 }" is-check :check-style="{ width: 29 }"
|
|
|
+ heights="300px"
|
|
|
+ @selection-change="tableSelection"
|
|
|
+ />
|
|
|
+ </HcCardItem>
|
|
|
|
|
|
- <HcCardItem ui="h-half">
|
|
|
- <template #header>
|
|
|
- <span>二、勘察设计文件</span>
|
|
|
- <span class="text-gray">(95卷)</span>
|
|
|
- </template>
|
|
|
- <HcTable
|
|
|
- ref="tableFileRef" :column="tableFileColumn" :datas="tableFileData" :loading="tableFileLoading"
|
|
|
- heights="auto" is-new :index-style="{ width: 60 }" is-check :check-style="{ width: 29 }"
|
|
|
- @selection-change="tableeFileSelection"
|
|
|
- />
|
|
|
- </HcCardItem>
|
|
|
+ <!-- <HcCardItem ui="h-half">
|
|
|
+ <template #header>
|
|
|
+ <span>二、勘察设计文件</span>
|
|
|
+ <span class="text-gray">(95卷)</span>
|
|
|
+ </template>
|
|
|
+ <HcTable
|
|
|
+ ref="tableFileRef" :column="tableFileColumn" :datas="tableFileData" :loading="tableFileLoading"
|
|
|
+ heights="auto" is-new :index-style="{ width: 60 }" is-check :check-style="{ width: 29 }"
|
|
|
+ @selection-change="tableeFileSelection"
|
|
|
+ />
|
|
|
+ </HcCardItem> -->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</hc-new-card>
|
|
|
|
|
|
<!-- 批量上报审批 -->
|
|
@@ -59,7 +66,7 @@
|
|
|
import { nextTick, onMounted, ref, watch } from 'vue'
|
|
|
import { getArrValue, getObjValue } from 'js-fast-way'
|
|
|
import { rowsToId } from '~uti/tools'
|
|
|
-
|
|
|
+import initialgApi from '~api/initial/initial'
|
|
|
//参数
|
|
|
const props = defineProps({
|
|
|
projectId: {
|
|
@@ -90,9 +97,24 @@ watch(() => [
|
|
|
|
|
|
//渲染完成
|
|
|
onMounted(() => {
|
|
|
-
|
|
|
+ getTotalData()
|
|
|
})
|
|
|
-
|
|
|
+const totalData = ref([])
|
|
|
+const totalLoaing = ref(false)
|
|
|
+const getTotalData = async ()=>{
|
|
|
+ totalLoaing.value = true
|
|
|
+ const { error, code, data } = await initialgApi.getAllUnitArchivesView({
|
|
|
+ projectId: projectId.value,
|
|
|
+ })
|
|
|
+ totalLoaing.value = false
|
|
|
+ if (!error && code === 200) {
|
|
|
+ console.log(data, 'data')
|
|
|
+ totalData.value = getArrValue(data)
|
|
|
+ } else {
|
|
|
+ totalData.value = []
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
//tab数据和相关处理
|
|
|
const tabKey = ref('tab2')
|
|
|
const tabData = ref([
|
|
@@ -122,38 +144,13 @@ const pageChange = ({ current, size }) => {
|
|
|
//表头
|
|
|
const tableRef = ref(null)
|
|
|
const tableColumn = ref([
|
|
|
- { key:'key1', name: '档号', width: 180 },
|
|
|
- { key:'key2', name: '案卷题名' },
|
|
|
- { key:'key3', name: '总页数', width: 120 },
|
|
|
- { key:'key4', name: '保管期限', width: 120 },
|
|
|
- { key:'key5', name: '备注' },
|
|
|
-])
|
|
|
-const tableData = ref([
|
|
|
- {
|
|
|
- id: 1,
|
|
|
- key1: 'FJZB-02-123',
|
|
|
- key2: '初步设计外业验收有关文件、工程初步设计图纸、初步设计批复、初步设计审查咨询报告',
|
|
|
- key3: '293',
|
|
|
- key4: '永久',
|
|
|
- key5: '备注信息',
|
|
|
- },
|
|
|
- {
|
|
|
- id: 2,
|
|
|
- key1: 'FJZB-02-123',
|
|
|
- key2: '初步设计外业验收有关文件、工程初步设计图纸、初步设计批复、初步设计审查咨询报告',
|
|
|
- key3: '293',
|
|
|
- key4: '永久',
|
|
|
- key5: '备注信息',
|
|
|
- },
|
|
|
- {
|
|
|
- id: 2,
|
|
|
- key1: 'FJZB-02-123',
|
|
|
- key2: '初步设计外业验收有关文件、工程初步设计图纸、初步设计批复、初步设计审查咨询报告',
|
|
|
- key3: '293',
|
|
|
- key4: '永久',
|
|
|
- key5: '备注信息',
|
|
|
- },
|
|
|
+ { key:'fileNumber', name: '档号', width: 180 },
|
|
|
+ { key:'name', name: '案卷题名' },
|
|
|
+ { key:'pageN', name: '总页数', width: 120 },
|
|
|
+ { key:'storageTimeValue', name: '保管期限', width: 120 },
|
|
|
+ { key:'remark', name: '备注' },
|
|
|
])
|
|
|
+const tableData = ref([])
|
|
|
|
|
|
//获取数据
|
|
|
const tableLoading = ref(false)
|
|
@@ -247,12 +244,12 @@ const reportModalClick = async () => {
|
|
|
rows.forEach(item => {
|
|
|
reportDataArr.push({
|
|
|
id: item?.id,
|
|
|
- name: item?.key2,
|
|
|
+ name: item?.name,
|
|
|
})
|
|
|
})
|
|
|
reportDatas.value = reportDataArr
|
|
|
//设置任务名称
|
|
|
- reportTaskName.value = rows.length > 1 ? `${row.key2}等${rows.length}个文件` : row.key2
|
|
|
+ reportTaskName.value = rows.length > 1 ? `${row.name}等${rows.length}个文件` : row.name
|
|
|
reportLoading.value = false
|
|
|
showReportModal.value = true
|
|
|
} else {
|