query.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743
  1. <template>
  2. <div class="hc-page-box" id="carry-spot-checks-layout-target">
  3. <HcCard ui="hc-query-card-box" v-show="!isCarrySpotChecksDrawer">
  4. <div class="hc-query-input-box">
  5. <el-input placeholder="可按关键字模糊搜索,多个关键字用“,” 隔开" v-model="searchInput">
  6. <template #prepend>
  7. <div class="prepend-filtering" @click="filteringClick">
  8. <span class="name">条件筛选</span>
  9. <HcIcon name="arrow-up-double" v-if="filteringShow === 'show'"/>
  10. <HcIcon name="arrow-down-double" v-else/>
  11. </div>
  12. </template>
  13. <template #append>
  14. <div class="append-search-btn-box">
  15. <el-button type="primary" class="search-btn" @click="searchCaseClick('1')">
  16. 按案卷查询
  17. </el-button>
  18. <el-button type="primary" class="search-btn" @click="searchFileClick('2')">
  19. 按文件查询
  20. </el-button>
  21. </div>
  22. </template>
  23. </el-input>
  24. </div>
  25. <div class="hc-query-filtering-collapse-box">
  26. <el-collapse v-model="filteringShow" @change="filteringChange" accordion>
  27. <el-collapse-item name="show">
  28. <div class="hc-search-hot-key">
  29. <span>热门搜索词汇:</span>
  30. <span class="text-hover ml-4" v-for="item in hotInputlist" @click="clickHottitle(item)">{{ item.name }}</span>
  31. </div>
  32. <div class="hc-search-screening-item">
  33. <div class="title">年度:</div>
  34. <template v-for="item in annuals">
  35. <div class="screening-key" :class="item.select ? 'cut': ''" @click="annualClick(item)">{{item.name}}</div>
  36. </template>
  37. </div>
  38. <div class="hc-search-screening-item">
  39. <div class="title">月份:</div>
  40. <template v-for="item in months">
  41. <div class="screening-key" :class="isIndex(month,'key', item.key) ? 'cut': ''" @click="monthClick(item)">{{item.name}}</div>
  42. </template>
  43. </div>
  44. <div class="hc-search-screening-item">
  45. <div class="title">期限:</div>
  46. <template v-for="item in deadlines">
  47. <div class="screening-key" :class="isIndex(deadline,'key', item.key) ? 'cut': ''" @click="deadlineClick(item)">{{item.name}}</div>
  48. </template>
  49. </div>
  50. <div class="hc-search-screening-item">
  51. <div class="title">密级:</div>
  52. <template v-for="item in securitys">
  53. <div class="screening-key" :class="isIndex(security,'key', item.key) ? 'cut': ''" @click="securityClick(item)">{{item.name}}</div>
  54. </template>
  55. </div>
  56. <div class="hc-search-screening-item">
  57. <div class="title">类别:</div>
  58. <template v-for="item in classess">
  59. <div class="screening-key" :class="isIndex(classes,'key', item.key) ? 'cut': ''" @click="classesClick(item)">{{item.name}}</div>
  60. </template>
  61. </div>
  62. <div class="hc-search-screening-item mb-4">
  63. <div class="title">目录:</div>
  64. <div class="screening-key text-link" @click="nodeTreeClick">
  65. <HcIcon name="node-tree" :line="false"/>
  66. <span class="ml-1">目录树</span>
  67. </div>
  68. </div>
  69. </el-collapse-item>
  70. </el-collapse>
  71. </div>
  72. <div class="hc-query-content-header-box">
  73. <div class="header">
  74. <HcNewSwitch :datas="tabData" :keys="tabKey" @change="tabChange" :round="false"/>
  75. </div>
  76. <div class="extra">
  77. <el-button type="primary" hc-btn>
  78. <HcIcon name="download"/>
  79. <span>下载</span>
  80. </el-button>
  81. </div>
  82. </div>
  83. <div class="hc-gather-card-box" :class="tableAllShow?'file-table':''">
  84. <HcCardItem ui="hc-card-item-main">
  85. <HcTable ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading" isCurrentRow isCheck @selection-change="tableSelection" @row-click="tableRowClick" :ui="hoverHand?'hover-hand':''">
  86. <template #action="{row,index}">
  87. <el-button type="primary" size="small" @click.stop="consultFileClick">查阅案卷</el-button>
  88. </template>
  89. </HcTable>
  90. <template #action>
  91. <HcPages :pages="searchForm" @change="pageChange"/>
  92. </template>
  93. </HcCardItem>
  94. <HcCardItem ui="hc-card-item-file" title="卷内文件">
  95. <template #extra>
  96. <div class="hc-icon-close text-hover" @click="tableFileCloseClick">
  97. <HcIcon name="close"/>
  98. </div>
  99. </template>
  100. <HcTable ref="tableFileRef" :column="tableFileColumn" :datas="tableFileData" :loading="tableFileLoading" isCheck @selection-change="tableFileSelection">
  101. <template #action="{row,index}">
  102. <el-button type="primary" size="small" @click.stop="consultFileClick">查阅文件</el-button>
  103. </template>
  104. </HcTable>
  105. <template #action>
  106. <HcPages :pages="InsearchForm" @change="InpageChange"/>
  107. </template>
  108. </HcCardItem>
  109. </div>
  110. </HcCard>
  111. <!--展开抽查-->
  112. <HcDrawer :show="isCarrySpotChecksDrawer" uis="hc-carry-spot-checks-target" to-id="carry-spot-checks-layout-target" @close="onCarrySpotChecksDrawerClose">
  113. <div class="hc-carry-spot-checks-pdf">
  114. <!-- <HcPdf src="https://bladex-test-info.oss-cn-chengdu.aliyuncs.com//upload/20221212/ce9799c7d18efc03efefd6f242439f2e.pdf"/> -->
  115. <HcPdf :src="pdfUrl"/>
  116. <el-tooltip content="展开/收起 右侧目录" placement="top" :disabled="!isBubble">
  117. <div class="hc-csc-pdf-btn" @click="onCarryDataShow">
  118. <HcIcon name="arrow-right-s" v-show="isCarryDataShow"/>
  119. <HcIcon name="arrow-left-s" v-show="!isCarryDataShow"/>
  120. </div>
  121. </el-tooltip>
  122. </div>
  123. <div class="hc-carry-spot-checks-data" v-show="isCarryDataShow">
  124. <div class="hc-csc-switch">
  125. <HcNewSwitch :datas="tabTypeTab" :keys="tabTypeKey" @change="tabTypeChange" size="default" :round="false"/>
  126. </div>
  127. <div class="hc-csc-info-box">
  128. <el-scrollbar>
  129. <div class="hc-info-text-item">
  130. <div class="title">案卷题名:</div>
  131. <div class="content">安康至来凤国家高速公路奉节至巫山(渝鄂界)段干岩洞隧道LK3+425~LK3+393初期支护钢筋网分项开工报告、检验申请批复单、质量检验报告单、记录表、试验检测记录及评定报告、中间交工证书</div>
  132. </div>
  133. <div class="hc-info-text-item">
  134. <div class="title">
  135. <span>密</span>
  136. <span class="ml-7">级:</span>
  137. </div>
  138. <div class="content">机密</div>
  139. </div>
  140. <div class="hc-info-text-item">
  141. <div class="title">保管期限:</div>
  142. <div class="content">永久</div>
  143. </div>
  144. <div class="hc-info-text-item">
  145. <div class="title">卷内文件:</div>
  146. <div class="content">9</div>
  147. </div>
  148. <div class="hc-info-text-item">
  149. <div class="title">起止日期:</div>
  150. <div class="content">2022.02.12~2023.11.02</div>
  151. </div>
  152. <div class="hc-info-text-item">
  153. <div class="title">立卷单位:</div>
  154. <div class="content">贵州路桥集团xxxxx</div>
  155. </div>
  156. </el-scrollbar>
  157. </div>
  158. <div class="hc-csc-data-box">
  159. <HcTable :column="cscTableColumn1" :datas="cscTableData1" :loading="cscTableLoading" :isIndex="false" v-if="tabTypeKey === 'tab1'">
  160. <template #name="{row}">
  161. <div :class="row.id === 2 ? 'text-link' : 'text-hover'">{{row?.name}}</div>
  162. </template>
  163. </HcTable>
  164. <HcTable :column="cscTableColumn2" :datas="cscTableData2" :loading="cscTableLoading" :isIndex="false" v-if="tabTypeKey === 'tab2'">
  165. <template #name="{row}">
  166. <div :class="row.id === 2 ? 'text-link' : 'text-hover'">{{row?.name}}</div>
  167. </template>
  168. </HcTable>
  169. <HcTable :column="cscTableColumn3" :datas="cscTableData3" :loading="cscTableLoading" :isIndex="false" v-if="tabTypeKey === 'tab3'">
  170. <template #name="{row}">
  171. <div :class="row.id === 2 ? 'text-link' : 'text-hover'">{{row?.name}}</div>
  172. </template>
  173. </HcTable>
  174. <HcTable :column="cscTableColumn4" :datas="cscTableData4" :loading="cscTableLoading" :isIndex="false" v-if="tabTypeKey === 'tab4'">
  175. <template #name="{row}">
  176. <div class="hc-csc-associated-row" :class="row.id === 2 ? 'text-link' : 'text-hover'">
  177. <el-tag effect="dark">{{row?.tag}}</el-tag>
  178. <span class="ml-3">{{row?.name}}</span>
  179. </div>
  180. </template>
  181. </HcTable>
  182. <MetaTable :loading="cscTableLoading" v-if="tabTypeKey === 'tab5'"/>
  183. <HcTable :column="cscTableColumn5" :datas="cscTableData5" :loading="cscTableLoading" v-if="tabTypeKey === 'tab6'"/>
  184. <el-tooltip content="使用弹窗查看数据" placement="top" :disabled="!isBubble" v-if="tabTypeKey === 'tab6' || tabTypeKey === 'tab5'">
  185. <div class="hc-table-info-btn" @click="cscTableDataModalShow">
  186. <HcIcon name="airplay"/>
  187. </div>
  188. </el-tooltip>
  189. </div>
  190. <div class="hc-csc-action-box">
  191. <div class="btn-box">
  192. <el-button hc-btn @click="onCarrySpotChecksDrawerClose">
  193. <HcIcon name="close"/>
  194. <span>取消查阅</span>
  195. </el-button>
  196. </div>
  197. </div>
  198. </div>
  199. </HcDrawer>
  200. <!--使用弹窗查看数据-->
  201. <HcDialog :show="cscTableDataModal" :title="cscTableDataTitle" widths="1080px" isTable :footer="false" @close="cscTableDataModalClose">
  202. <MetaTable :loading="cscTableLoading" v-if="tabTypeKey === 'tab5'"/>
  203. <HcTable :column="cscTableColumn51" :datas="cscTableData5" :loading="cscTableLoading" v-if="tabTypeKey === 'tab6'"/>
  204. </HcDialog>
  205. <!--目录树-->
  206. <HcDialog :show="nodeTreeModal" widths="1080px" isTable saveText="确认" :isClose="false" @close="nodeTreeModalClose" @save="nodeTreeModalSave">
  207. <template #header>
  208. <div role="heading" class="el-dialog__title">
  209. <span class="mr-3">选择目录</span>
  210. <span class="text-sm text-orange">点击左侧黄色文件夹可展开下一级</span>
  211. </div>
  212. </template>
  213. <template #extra>
  214. <HcNewSwitch :datas="nodeTabData" :keys="nodeTabKey" @change="nodeTabChange" :round="false"/>
  215. </template>
  216. <el-collapse class="hc-node-tree-collapse" v-model="activeName" accordion @change="collapseChange">
  217. <template v-for="item in nodeTreeArr">
  218. <el-collapse-item :name="item.id.toString()">
  219. <template #title>
  220. <div class="hc-collapse-item-title">
  221. <HcIcon name="folder-3" fill class="icon"/>
  222. <span class="title">{{item.name}}</span>
  223. </div>
  224. </template>
  225. <HcNodeTree :projectId="projectId" :contractId="contractId"/>
  226. </el-collapse-item>
  227. </template>
  228. </el-collapse>
  229. </HcDialog>
  230. </div>
  231. </template>
  232. <script setup>
  233. import {ref, nextTick, onMounted, watch} from "vue";
  234. import {useAppStore} from "~src/store";
  235. import MetaTable from "../transfer/components/meta-table.vue"
  236. //import HcNodeTree from "./components/query/hc-tree.vue"
  237. import HcNodeTree from "~src/components/tree/hc-tree-1.vue"
  238. import { getIndex, isIndex } from "vue-utils-plus"
  239. import website from '~src/config/index'
  240. import archiveQueryApi from "~api/using/query.js";
  241. import {getArrValue} from "js-fast-way"
  242. //变量
  243. const useAppState = useAppStore()
  244. const projectId = ref(useAppState.getProjectId);
  245. const contractId = ref(useAppState.getContractId);
  246. const projectInfo = ref(useAppState.getProjectInfo);
  247. const isBubble = ref(useAppState.getBubble);
  248. const userRoleId = ref(useAppState.getRoleId);
  249. const hoverHand = ref(true)
  250. //监听
  251. watch(() => [
  252. useAppState.getBubble,
  253. ], ([bubble]) => {
  254. isBubble.value = bubble
  255. })
  256. //渲染完成
  257. onMounted(() => {
  258. setAnnuals()
  259. setMonths()
  260. getTableData()
  261. })
  262. //搜索表单
  263. const searchForm = ref({
  264. current: 1, size: 20, total: 0,searchType:"1"
  265. })
  266. //卷内文件
  267. const InsearchForm = ref({
  268. current: 1, size: 20, total: 0
  269. })
  270. //热门搜索词汇
  271. const hotInputlist=ref([
  272. {name:'文件名'},
  273. {name:'案卷名'},
  274. {name:'档号'},
  275. {name:'单位'},
  276. ])
  277. const clickHottitle=(item)=>{
  278. searchInput.value=item.name
  279. searchForm.value.queryValue=item.name
  280. }
  281. //年度
  282. const annuals = ref([])
  283. const setAnnuals = () => {
  284. let annualArr = [{key: 'all', name: '所有',select:true}]
  285. const year = new Date().getFullYear()
  286. for (let i = 0; i < 8; i++) {
  287. const item = year - i + ''
  288. annualArr.push({
  289. key: item,
  290. name: item
  291. })
  292. }
  293. annuals.value = annualArr
  294. }
  295. const annual = ref([{key: 'all', name: '所有'}])
  296. const annualClick = (item) => {
  297. annual.value = setQueryFiltering(annual.value, item)
  298. searchForm.value.year=item.name;
  299. annuals.value.forEach((ele)=>{
  300. ele.select=false
  301. })
  302. item.select=true
  303. }
  304. //月份
  305. const months = ref([])
  306. const setMonths = () => {
  307. let monthArr = [{key: 'all', name: '所有'}]
  308. for (let i = 0; i < 12; i++) {
  309. let item = (i + 1) + ''
  310. item.length === 1 && (item = item)
  311. monthArr.push({
  312. key: item,
  313. name: item + '月'
  314. })
  315. }
  316. months.value = monthArr
  317. }
  318. const month = ref([{key: 'all', name: '所有'}])
  319. const monthClick = (item) => {
  320. month.value = setQueryFiltering(month.value, item)
  321. let arr=[]
  322. month.value.forEach((item)=>{
  323. arr.push(item.key)
  324. })
  325. searchForm.value.month=arr+''
  326. }
  327. //期限
  328. const deadline = ref([{key: 'all', name: '所有'}])
  329. const deadlines = ref([
  330. {key: 'all', name: '所有'},
  331. {key: '9999', name: '永久'},
  332. {key: '30', name: '30年'},
  333. {key: '10', name: '10年'}
  334. ])
  335. const deadlineClick = (item) => {
  336. deadline.value = setQueryFiltering(deadline.value, item)
  337. let arr=[]
  338. deadline.value.forEach((item)=>{
  339. arr.push(item.key)
  340. })
  341. searchForm.value.storageTime=arr+''
  342. }
  343. //密级
  344. const security = ref([{key: 'all', name: '所有'}])
  345. const securitys = ref([
  346. {key: 'all', name: '所有'},
  347. {key: '1',name: '机密'},
  348. {key: '2',name: '绝密'},
  349. {key: '3',name: '秘密'},
  350. {key: '3',name: '公开'},
  351. ])
  352. const securityClick = (item) => {
  353. security.value = setQueryFiltering(security.value, item)
  354. let arr=[]
  355. security.value.forEach((item)=>{
  356. arr.push(item.key)
  357. })
  358. searchForm.value.secretLevel=arr+''
  359. }
  360. //类别
  361. const classes = ref([{key: 'all', name: '所有'}])
  362. const classess = ref([
  363. {key: 'all', name: '所有'},
  364. {key: '1', name: '竣工图'},
  365. {key: '2', name: '试验'},
  366. {key: '3', name: '声像'},
  367. {key: '4', name: '质检'},
  368. {key: '5', name: '计量'},
  369. {key: '6', name: '隐蔽'},
  370. {key: '7', name: '管理文件'},
  371. ])
  372. const classesClick = (item) => {
  373. classes.value = setQueryFiltering(classes.value, item)
  374. let arr=[]
  375. classes.value.forEach((item)=>{
  376. arr.push(item.name)
  377. })
  378. searchForm.value.carrierType=arr+''
  379. }
  380. //设置筛选条件
  381. const setQueryFiltering = (arr, {key, name}) => {
  382. if (key === 'all') {
  383. //如果选择所有,就删除其他
  384. arr = [{key, name}]
  385. } else {
  386. //选中还是取消
  387. const index = getIndex(arr, 'key', key)
  388. if (index !== -1) {
  389. arr.splice(index, 1)
  390. } else {
  391. arr.push({key, name})
  392. }
  393. //如果存在所有,就删除所有。
  394. if (arr.length > 1) {
  395. const isAll = getIndex(arr, 'key', 'all')
  396. if (isAll !== -1) {
  397. arr.splice(isAll, 1)
  398. }
  399. }
  400. }
  401. return arr
  402. }
  403. //目录树
  404. const nodeTreeClick = () => {
  405. nodeTreeModal.value = true
  406. }
  407. const nodeTreeModal = ref(false)
  408. const nodeTreeModalClose = () => {
  409. nodeTreeModal.value = false
  410. }
  411. //确认
  412. const nodeTreeModalSave = () => {
  413. nodeTreeModal.value = false
  414. }
  415. //搜索筛选
  416. const filteringShow = ref('')
  417. const filteringChange = (name) => {
  418. filteringShow.value = name
  419. }
  420. //条件筛选
  421. const filteringClick = () => {
  422. if (filteringShow.value) {
  423. filteringShow.value = ''
  424. } else {
  425. filteringShow.value = 'show'
  426. }
  427. }
  428. const searchInput=ref('')
  429. //按文件查询
  430. const searchFileClick = (type) => {
  431. filteringShow.value = ''
  432. searchForm.value.searchType=type
  433. getTableData()
  434. }
  435. //按案卷查询
  436. const searchCaseClick = (type) => {
  437. filteringShow.value = ''
  438. searchForm.value.searchType=type
  439. getTableData()
  440. }
  441. //tab数据和相关处理
  442. const tabKey = ref('tab1')
  443. const tabData = ref([
  444. {key:'tab1', name: '案卷列表'},
  445. {key:'tab2', name: '档案柜'},
  446. ]);
  447. const tabChange = (item) => {
  448. tabKey.value = item?.key;
  449. }
  450. //分页被点击
  451. const pageChange = ({current, size}) => {
  452. searchForm.value.current = current
  453. searchForm.value.size = size
  454. getTableData()
  455. }
  456. //表头
  457. const tableRef = ref(null)
  458. const tableColumn = ref([
  459. {key:'fileNumber', name: '档号', width: 180},
  460. {key:'name', name: '题名'},
  461. {key:'secretLevelValue', name: '密级', width: 120},
  462. {key:'storageTimeValue', name: '保管期限', width: 120},
  463. {key:'pageN', name: '页数', width: 120},
  464. {key:'filingUnit', name: '立卷单位', width: 260},
  465. {key:'action', name: '操作', width: 120},
  466. ])
  467. const tableData = ref([
  468. ])
  469. const pdfUrl=ref('https://bladex-test-info.oss-cn-chengdu.aliyuncs.com//upload/20221212/ce9799c7d18efc03efefd6f242439f2e.pdf')
  470. const tableLoading = ref(false)
  471. const getTableData = async () => {
  472. tableLoading.value = true
  473. searchForm.value.queryValue=searchInput.value
  474. const { error, code, data } = await archiveQueryApi.getarchiveQueryPage({
  475. ...searchForm.value,
  476. projectId: projectId.value,
  477. })
  478. tableLoading.value = false
  479. if (!error && code === 200) {
  480. tableData.value = getArrValue(data['records'])
  481. searchForm.value.total = data['total'] || 0
  482. } else {
  483. tableData.value = []
  484. searchForm.value.total = 0
  485. }
  486. }
  487. //多选
  488. const tableKeys = ref([]);
  489. const tableSelection = (rows) => {
  490. tableKeys.value = rows
  491. }
  492. const tableAllShow = ref(false)
  493. const tableAllShowClick = () => {
  494. tableFileShow.value = false;
  495. tableAllShow.value = !tableAllShow.value;
  496. }
  497. //表头
  498. const tableFileRef = ref(null)
  499. const tableFileColumn = ref([
  500. {key:'fileNumber', name: '文件编号', width: 180},
  501. {key:'fileName', name: '文件题名'},
  502. {key:'fileTime', name: '文件日期', width: 120},
  503. {key:'dutyUser', name: '责任者', width: 120},
  504. {key:'filePage', name: '页数', width: 120},
  505. {key:'action', name: '操作', width: 120},
  506. ])
  507. const tableFileData = ref([
  508. ])
  509. const tableFileLoading = ref(false)
  510. const tableFileSelection = (rows) => {
  511. console.log(rows)
  512. }
  513. //表格行被点击
  514. const tableFileShow = ref(false)
  515. const tableRowClick = ({row}) => {
  516. tableAllShow.value = true;
  517. tableFileShow.value = true;
  518. tableFileData.value =getArrValue( row['approvalFileList'])
  519. InsearchForm.value.total=row['approvalFileList'].length
  520. }
  521. const tableFileCloseClick = () => {
  522. tableAllShow.value = false;
  523. tableFileShow.value = false;
  524. }
  525. const consultFileClick = ({row}) => {
  526. isCarrySpotChecksDrawer.value = true
  527. pdfUrl.value=row['pdfFileUrl']
  528. }
  529. const isCarrySpotChecksDrawer = ref(false)
  530. //类型tab数据和相关处理
  531. const tabTypeKey = ref('tab1')
  532. const tabTypeTab = ref([
  533. {key:'tab1', name: '卷内文件'},
  534. {key:'tab2', name: '竣工资料'},
  535. {key:'tab3', name: '计量资料'},
  536. {key:'tab4', name: '关联资料'},
  537. {key:'tab5', name: '元数据'},
  538. {key:'tab6', name: '验签包'},
  539. ]);
  540. const tabTypeChange = ({key}) => {
  541. tabTypeKey.value = key
  542. }
  543. const cscTableLoading = ref(false)
  544. //卷内目录
  545. const cscTableColumn1 = [
  546. {key:'name', name: '卷内文件题名', align: 'center'}
  547. ];
  548. const cscTableData1 = ref([
  549. {id: 1, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'},
  550. {id: 2, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'},
  551. {id: 3, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'},
  552. {id: 4, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'},
  553. {id: 5, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'},
  554. {id: 6, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'},
  555. {id: 7, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'}
  556. ])
  557. //竣工资料
  558. const cscTableColumn2 = [
  559. {key:'name', name: '竣工图资料', align: 'center'}
  560. ];
  561. const cscTableData2 = ref([
  562. {id: 1, name: 'S6-3-2-Q-8-32 箱梁梁底支座垫石钢筋构造图111-箱梁梁底调平垫块及支座垫石钢筋构造图.pdf'},
  563. {id: 2, name: 'J6-3-2-Q-8-34 桥墩一般构造图(1-9).pdf'},
  564. {id: 3, name: 'S6-3-2-Q-8-32 箱梁梁底支座垫石钢筋构造图111-箱梁梁底调平垫块及支座垫石钢筋构造图.pdf'},
  565. {id: 4, name: 'J6-3-2-Q-8-34 桥墩一般构造图(1-9).pdf'},
  566. {id: 5, name: 'J6-3-2-Q-8-34 桥墩一般构造图(1-9).pdf'},
  567. {id: 6, name: 'S6-3-2-Q-8-32 箱梁梁底支座垫石钢筋构造图111-箱梁梁底调平垫块及支座垫石钢筋构造图.pdf'},
  568. {id: 7, name: 'S6-3-2-Q-8-32 箱梁梁底支座垫石钢筋构造图111-箱梁梁底调平垫块及支座垫石钢筋构造图.pdf'}
  569. ])
  570. //计量资料
  571. const cscTableColumn3 = [
  572. {key:'name', name: '计量资料', align: 'center'}
  573. ];
  574. const cscTableData3 = ref([
  575. {id: 1, name: 'ZB2-17.pdf'},
  576. {id: 2, name: 'ZB2-18.pdf'},
  577. {id: 3, name: 'ZB2-19.pdf'},
  578. {id: 4, name: 'ZB2-20.pdf'},
  579. {id: 5, name: 'ZB2-21.pdf'},
  580. {id: 6, name: 'ZB2-22.pdf'},
  581. {id: 7, name: 'ZB2-23.pdf'}
  582. ])
  583. //计量资料
  584. const cscTableColumn4 = [
  585. {key:'name', name: '关联文件', align: 'center'}
  586. ];
  587. const cscTableData4 = ref([
  588. {id: 1, name: 'xxxxxxxxxxxxxxxxxxx.pdf', tag: '开工'},
  589. {id: 2, name: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.pdf', tag: '工序'},
  590. {id: 3, name: 'xxxxxxxxxxxxxxxxxxxxxxxxxx.pdf', tag: '评定'},
  591. {id: 4, name: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx.pdf', tag: '交工'},
  592. {id: 5, name: '', tag: '抽检'},
  593. {id: 6, name: '', tag: '隐蔽'}
  594. ])
  595. //验签包
  596. const cscTableColumn5 = [
  597. {key:'user', name: '签名者'},
  598. {key:'time', name: '签名时间'},
  599. {key:'val', name: '摘要'},
  600. ];
  601. const cscTableColumn51 = [
  602. {key:'user', name: '签名者', width: 300},
  603. {key:'time', name: '签名时间', width: 200},
  604. {key:'val', name: '摘要'},
  605. ];
  606. const cscTableData5 = ref([
  607. {id: 1, user: '051@王海军@0422431197502148151@1', time: '2022-05-13 08:54:15', val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'},
  608. {id: 2, user: '051@王海军@0422431197502148151@1', time: '2022-05-13 08:54:15', val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'},
  609. {id: 3, user: '051@王海军@0422431197502148151@1', time: '2022-05-13 08:54:15', val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'},
  610. {id: 4, user: '051@王海军@0422431197502148151@1', time: '2022-05-13 08:54:15', val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'},
  611. {id: 5, user: '051@王海军@0422431197502148151@1', time: '2022-05-13 08:54:15', val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'},
  612. {id: 6, user: '051@王海军@0422431197502148151@1', time: '2022-05-13 08:54:15', val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'}
  613. ])
  614. //抽检意见
  615. const reform = ref({
  616. type: false, content: ''
  617. })
  618. //显示右侧目录
  619. const isCarryDataShow = ref(true)
  620. const onCarryDataShow = () => {
  621. isCarryDataShow.value = !isCarryDataShow.value
  622. }
  623. //使用弹窗查看数据
  624. const cscTableDataModal = ref(false)
  625. const cscTableDataTitle = ref('')
  626. //显示弹窗
  627. const cscTableDataModalShow = () => {
  628. const key = tabTypeKey.value;
  629. if (key === 'tab5') {
  630. cscTableDataTitle.value = '元数据'
  631. } else if (key === 'tab6') {
  632. cscTableDataTitle.value = '验签包'
  633. }
  634. cscTableDataModal.value = true
  635. }
  636. //关闭弹窗
  637. const cscTableDataModalClose = () => {
  638. cscTableDataModal.value = false
  639. }
  640. //关闭抽查
  641. const onCarrySpotChecksDrawerClose = () => {
  642. isCarrySpotChecksDrawer.value = false
  643. }
  644. //tab数据和相关处理
  645. const nodeTabKey = ref('tab1')
  646. const nodeTabData = ref([
  647. {key:'tab1', name: '业主档案'},
  648. {key:'tab2', name: '施工档案'},
  649. {key:'tab3', name: '监理档案'},
  650. {key:'tab4', name: '文书档案'},
  651. ]);
  652. const nodeTabChange = (item) => {
  653. nodeTabKey.value = item?.key;
  654. }
  655. const activeName = ref('')
  656. const nodeTreeArr = ref([
  657. {id: '1', name: '一、立项审批文件'},
  658. {id: '2', name: '二、勘察设计文件'},
  659. {id: '3', name: '三、招标投标、合同协议文件'},
  660. {id: '4', name: '四、工程准备、征地、拆迁、移民等文件'},
  661. {id: '5', name: '五、项目管理文件'},
  662. {id: '6', name: '六、计量与支付、结算与审计文件'},
  663. {id: '7', name: '七、交、竣工文件'},
  664. {id: '8', name: '八、工程照片、音像资料'},
  665. ])
  666. const collapseChange = (key) => {
  667. activeName.value = key.toString();
  668. }
  669. </script>
  670. <style lang="scss" scoped>
  671. @import '~style/using/scoped/query.scss';
  672. </style>
  673. <style lang="scss">
  674. @import '~style/using/query.scss';
  675. </style>