query.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788
  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" clearable>
  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="isArrIndex(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="isArrIndex(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="isArrIndex(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="isArrIndex(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(row,1)">查阅案卷</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(row,2)">查阅文件</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">{{ fileInfo.name }}</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">{{ fileInfo.secretLevelValueame }}</div>
  139. </div>
  140. <div class="hc-info-text-item">
  141. <div class="title">保管期限:</div>
  142. <div class="content">{{ fileInfo.storageTimeValue }}</div>
  143. </div>
  144. <div class="hc-info-text-item">
  145. <div class="title">卷内文件:</div>
  146. <div class="content">{{ fileInfo.pageN }}</div>
  147. </div>
  148. <div class="hc-info-text-item">
  149. <div class="title">起止日期:</div>
  150. <div class="content">{{ fileInfo.endDate+"~"+ fileInfo.startDate}}</div>
  151. </div>
  152. <div class="hc-info-text-item">
  153. <div class="title">立卷单位:</div>
  154. <div class="content">{{ fileInfo.unit }}</div>
  155. </div>
  156. </el-scrollbar>
  157. </div>
  158. <div class="hc-csc-data-box">
  159. <HcTable :column="cscTableColumn1" :datas="cscTableData1" :loading="cscTableLoading" :isArrIndex="false" v-if="tabTypeKey === 'tab1'">
  160. <template #name="{row}">
  161. <div :class="row.id === checkId ? 'text-link' : 'text-hover'" @click="changePdf(row)">{{row?.fileName}}</div>
  162. </template>
  163. </HcTable>
  164. <HcTable :column="cscTableColumn2" :datas="cscTableData2" :loading="cscTableLoading" :isArrIndex="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" :isArrIndex="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" :isArrIndex="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 {getArrValue, arrIndex, isArrIndex} from "js-fast-way"
  239. import website from '~src/config/index'
  240. import archiveQueryApi from "~api/using/query.js";
  241. //变量
  242. const useAppState = useAppStore()
  243. const projectId = ref(useAppState.getProjectId);
  244. const contractId = ref(useAppState.getContractId);
  245. const projectInfo = ref(useAppState.getProjectInfo);
  246. const isBubble = ref(useAppState.getBubble);
  247. const userRoleId = ref(useAppState.getRoleId);
  248. const hoverHand = ref(true)
  249. //监听
  250. watch(() => [
  251. useAppState.getBubble,
  252. ], ([bubble]) => {
  253. isBubble.value = bubble
  254. })
  255. //渲染完成
  256. onMounted(() => {
  257. setAnnuals()
  258. setMonths()
  259. getTableData()
  260. })
  261. //搜索表单
  262. const searchForm = ref({
  263. current: 1, size: 20, total: 0,searchType:"1"
  264. })
  265. //卷内文件
  266. const InsearchForm = ref({
  267. current: 1, size: 20, total: 0
  268. })
  269. //热门搜索词汇
  270. const hotInputlist=ref([
  271. {name:'文件名'},
  272. {name:'案卷名'},
  273. {name:'档号'},
  274. {name:'单位'},
  275. ])
  276. const clickHottitle=(item)=>{
  277. searchInput.value=item.name
  278. searchForm.value.queryValue=item.name
  279. }
  280. //年度
  281. const annuals = ref([])
  282. const setAnnuals = () => {
  283. let annualArr = [{key: 'all', name: '所有',select:true}]
  284. const year = new Date().getFullYear()
  285. for (let i = 0; i < 8; i++) {
  286. const item = year - i + ''
  287. annualArr.push({
  288. key: item,
  289. name: item
  290. })
  291. }
  292. annuals.value = annualArr
  293. }
  294. const annual = ref([{key: 'all', name: '所有'}])
  295. const annualClick = (item) => {
  296. annual.value = setQueryFiltering(annual.value, item)
  297. searchForm.value.year=item.key;
  298. annuals.value.forEach((ele)=>{
  299. ele.select=false
  300. })
  301. item.select=true
  302. }
  303. //月份
  304. const months = ref([])
  305. const setMonths = () => {
  306. let monthArr = [{key: 'all', name: '所有'}]
  307. for (let i = 0; i < 12; i++) {
  308. let item = (i + 1) + ''
  309. item.length === 1 && (item = item)
  310. monthArr.push({
  311. key: item,
  312. name: item + '月'
  313. })
  314. }
  315. months.value = monthArr
  316. }
  317. const month = ref([{key: 'all', name: '所有'}])
  318. const monthClick = (item) => {
  319. month.value = setQueryFiltering(month.value, item)
  320. let arr=[]
  321. month.value.forEach((item)=>{
  322. arr.push(item.key)
  323. })
  324. searchForm.value.month=arr+''
  325. }
  326. //期限
  327. const deadline = ref([{key: 'all', name: '所有'}])
  328. const deadlines = ref([
  329. {key: 'all', name: '所有'},
  330. {key: '9999', name: '永久'},
  331. {key: '30', name: '30年'},
  332. {key: '10', name: '10年'}
  333. ])
  334. const deadlineClick = (item) => {
  335. deadline.value = setQueryFiltering(deadline.value, item)
  336. let arr=[]
  337. deadline.value.forEach((item)=>{
  338. arr.push(item.key)
  339. })
  340. searchForm.value.storageTime=arr+''
  341. }
  342. //密级
  343. const security = ref([{key: 'all', name: '所有'}])
  344. const securitys = ref([
  345. {key: 'all', name: '所有'},
  346. {key: '1',name: '机密'},
  347. {key: '2',name: '绝密'},
  348. {key: '3',name: '秘密'},
  349. {key: '3',name: '公开'},
  350. ])
  351. const securityClick = (item) => {
  352. security.value = setQueryFiltering(security.value, item)
  353. let arr=[]
  354. security.value.forEach((item)=>{
  355. arr.push(item.key)
  356. })
  357. searchForm.value.secretLevel=arr+''
  358. }
  359. //类别
  360. const classes = ref([{key: 'all', name: '所有'}])
  361. const classess = ref([
  362. {key: 'all', name: '所有'},
  363. {key: '1', name: '竣工图'},
  364. {key: '2', name: '试验'},
  365. {key: '3', name: '声像'},
  366. {key: '4', name: '质检'},
  367. {key: '5', name: '计量'},
  368. {key: '6', name: '隐蔽'},
  369. {key: '7', name: '管理文件'},
  370. ])
  371. const classesClick = (item) => {
  372. classes.value = setQueryFiltering(classes.value, item)
  373. let arr=[]
  374. classes.value.forEach((item)=>{
  375. arr.push(item.name)
  376. })
  377. searchForm.value.carrierType=arr+''
  378. }
  379. //设置筛选条件
  380. const setQueryFiltering = (arr, {key, name}) => {
  381. if (key === 'all') {
  382. //如果选择所有,就删除其他
  383. arr = [{key, name}]
  384. } else {
  385. //选中还是取消
  386. const index = arrIndex(arr, 'key', key)
  387. if (index !== -1) {
  388. arr.splice(index, 1)
  389. } else {
  390. arr.push({key, name})
  391. }
  392. //如果存在所有,就删除所有。
  393. if (arr.length > 1) {
  394. const isAll = arrIndex(arr, 'key', 'all')
  395. if (isAll !== -1) {
  396. arr.splice(isAll, 1)
  397. }
  398. }
  399. }
  400. return arr
  401. }
  402. //目录树
  403. const nodeTreeClick = () => {
  404. nodeTreeModal.value = true
  405. }
  406. const nodeTreeModal = ref(false)
  407. const nodeTreeModalClose = () => {
  408. nodeTreeModal.value = false
  409. }
  410. //确认
  411. const nodeTreeModalSave = () => {
  412. nodeTreeModal.value = false
  413. }
  414. //搜索筛选
  415. const filteringShow = ref('')
  416. const filteringChange = (name) => {
  417. filteringShow.value = name
  418. }
  419. //条件筛选
  420. const filteringClick = () => {
  421. if (filteringShow.value) {
  422. filteringShow.value = ''
  423. } else {
  424. filteringShow.value = 'show'
  425. }
  426. }
  427. const searchInput=ref('')
  428. //按文件查询
  429. const searchFileClick = (type) => {
  430. filteringShow.value = ''
  431. searchForm.value.searchType=type
  432. getTableData()
  433. }
  434. //按案卷查询
  435. const searchCaseClick = (type) => {
  436. filteringShow.value = ''
  437. searchForm.value.searchType=type
  438. getTableData()
  439. }
  440. //tab数据和相关处理
  441. const tabKey = ref('tab1')
  442. const tabData = ref([
  443. {key:'tab1', name: '案卷列表'},
  444. {key:'tab2', name: '档案柜'},
  445. ]);
  446. const tabChange = (item) => {
  447. tabKey.value = item?.key;
  448. }
  449. //分页被点击
  450. const pageChange = ({current, size}) => {
  451. searchForm.value.current = current
  452. searchForm.value.size = size
  453. getTableData()
  454. }
  455. //分页被点击
  456. const InpageChange = ({current, size}) => {
  457. InsearchForm.value.current = current
  458. InsearchForm.value.size = size
  459. // getTableData()
  460. }
  461. //表头
  462. const tableRef = ref(null)
  463. const tableColumn = ref([
  464. {key:'fileNumber', name: '档号', width: 180},
  465. {key:'name', name: '题名'},
  466. {key:'secretLevelValue', name: '密级', width: 120},
  467. {key:'storageTimeValue', name: '保管期限', width: 120},
  468. {key:'pageN', name: '页数', width: 120},
  469. {key:'filingUnit', name: '立卷单位', width: 260},
  470. {key:'action', name: '操作', width: 120},
  471. ])
  472. const tableData = ref([
  473. ])
  474. const pdfUrl=ref('')
  475. const tableLoading = ref(false)
  476. const getTableData = async () => {
  477. tableLoading.value = true
  478. searchForm.value.queryValue=searchInput.value
  479. for (let key in searchForm.value) {
  480. if(searchForm.value[key]==='all'||searchForm.value[key]==='所有'){
  481. searchForm.value[key]=''
  482. }
  483. }
  484. const { error, code, data } = await archiveQueryApi.getarchiveQueryPage({
  485. ...searchForm.value,
  486. projectId: projectId.value,
  487. })
  488. tableLoading.value = false
  489. if (!error && code === 200) {
  490. tableData.value = getArrValue(data['records'])
  491. searchForm.value.total = data['total'] || 0
  492. } else {
  493. tableData.value = []
  494. searchForm.value.total = 0
  495. }
  496. tableFileCloseClick()
  497. }
  498. //多选
  499. const tableKeys = ref([]);
  500. const tableSelection = (rows) => {
  501. tableKeys.value = rows
  502. }
  503. const tableAllShow = ref(false)
  504. const tableAllShowClick = () => {
  505. tableFileShow.value = false;
  506. tableAllShow.value = !tableAllShow.value;
  507. }
  508. //表头
  509. const tableFileRef = ref(null)
  510. const tableFileColumn = ref([
  511. {key:'fileNumber', name: '文件编号', width: 180},
  512. {key:'fileName', name: '文件题名'},
  513. {key:'fileTime', name: '文件日期', width: 120},
  514. {key:'dutyUser', name: '责任者', width: 120},
  515. {key:'filePage', name: '页数', width: 120},
  516. {key:'action', name: '操作', width: 120},
  517. ])
  518. const tableFileData = ref([
  519. ])
  520. const tableFileLoading = ref(false)
  521. const tableFileSelection = (rows) => {
  522. console.log(rows)
  523. }
  524. //表格行被点击
  525. const tableFileShow = ref(false)
  526. const tableRowClick = ({row}) => {
  527. tableAllShow.value = true;
  528. tableFileShow.value = true;
  529. tableFileData.value =getArrValue( row['approvalFileList'])
  530. cscTableData1.value=getArrValue( row['approvalFileList'])
  531. InsearchForm.value.total=row['approvalFileList'].length
  532. fileInfo.value=row
  533. }
  534. const tableFileCloseClick = () => {
  535. tableAllShow.value = false;
  536. tableFileShow.value = false;
  537. }
  538. const consultFileClick = (row,type) => {
  539. isCarrySpotChecksDrawer.value = true
  540. console.log(row,'row');
  541. // pdfUrl.value=row.approvalFileList
  542. if(type===1){
  543. cscTableData1.value=row.approvalFileList
  544. fileInfo.value=row
  545. }else if(type==2){
  546. checkId.value=row.id
  547. pdfUrl.value=row.pdfFileUrl
  548. }
  549. if(type===1&& cscTableData1.value.length>0&&cscTableData1.value[0]['pdfFileUrl']){
  550. checkId.value=cscTableData1.value[0].id
  551. pdfUrl.value=row.approvalFileList[0]['pdfFileUrl']
  552. }
  553. }
  554. const isCarrySpotChecksDrawer = ref(false)
  555. const fileInfo=ref({
  556. name:"",
  557. storageTimeValue:'',
  558. secretLevelValue:'',
  559. filePage:'',
  560. unit:'',
  561. time:''
  562. })//案卷信息
  563. const checkId=ref('')
  564. const changePdf=(row)=>{
  565. console.log(row,'row');
  566. pdfUrl.value=row['pdfFileUrl']||''
  567. checkId.value=row.id
  568. }
  569. //类型tab数据和相关处理
  570. const tabTypeKey = ref('tab1')
  571. const tabTypeTab = ref([
  572. {key:'tab1', name: '卷内文件'},
  573. {key:'tab2', name: '竣工资料'},
  574. {key:'tab3', name: '计量资料'},
  575. {key:'tab4', name: '关联资料'},
  576. {key:'tab5', name: '元数据'},
  577. {key:'tab6', name: '验签包'},
  578. ]);
  579. const tabTypeChange = ({key}) => {
  580. tabTypeKey.value = key
  581. }
  582. const cscTableLoading = ref(false)
  583. //卷内目录
  584. const cscTableColumn1 = [
  585. {key:'name', name: '卷内文件题名', align: 'center'}
  586. ];
  587. const cscTableData1 = ref([
  588. {id: 1, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'},
  589. {id: 2, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'},
  590. {id: 3, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'},
  591. {id: 4, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'},
  592. {id: 5, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'},
  593. {id: 6, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'},
  594. {id: 7, name: '[K8+450阳光大桥第x联(跨)墩顶负弯矩张拉压浆].PDF'}
  595. ])
  596. //竣工资料
  597. const cscTableColumn2 = [
  598. {key:'name', name: '竣工图资料', align: 'center'}
  599. ];
  600. const cscTableData2 = ref([
  601. {id: 1, name: 'S6-3-2-Q-8-32 箱梁梁底支座垫石钢筋构造图111-箱梁梁底调平垫块及支座垫石钢筋构造图.pdf'},
  602. {id: 2, name: 'J6-3-2-Q-8-34 桥墩一般构造图(1-9).pdf'},
  603. {id: 3, name: 'S6-3-2-Q-8-32 箱梁梁底支座垫石钢筋构造图111-箱梁梁底调平垫块及支座垫石钢筋构造图.pdf'},
  604. {id: 4, name: 'J6-3-2-Q-8-34 桥墩一般构造图(1-9).pdf'},
  605. {id: 5, name: 'J6-3-2-Q-8-34 桥墩一般构造图(1-9).pdf'},
  606. {id: 6, name: 'S6-3-2-Q-8-32 箱梁梁底支座垫石钢筋构造图111-箱梁梁底调平垫块及支座垫石钢筋构造图.pdf'},
  607. {id: 7, name: 'S6-3-2-Q-8-32 箱梁梁底支座垫石钢筋构造图111-箱梁梁底调平垫块及支座垫石钢筋构造图.pdf'}
  608. ])
  609. //计量资料
  610. const cscTableColumn3 = [
  611. {key:'name', name: '计量资料', align: 'center'}
  612. ];
  613. const cscTableData3 = ref([
  614. {id: 1, name: 'ZB2-17.pdf'},
  615. {id: 2, name: 'ZB2-18.pdf'},
  616. {id: 3, name: 'ZB2-19.pdf'},
  617. {id: 4, name: 'ZB2-20.pdf'},
  618. {id: 5, name: 'ZB2-21.pdf'},
  619. {id: 6, name: 'ZB2-22.pdf'},
  620. {id: 7, name: 'ZB2-23.pdf'}
  621. ])
  622. //计量资料
  623. const cscTableColumn4 = [
  624. {key:'name', name: '关联文件', align: 'center'}
  625. ];
  626. const cscTableData4 = ref([
  627. {id: 1, name: 'xxxxxxxxxxxxxxxxxxx.pdf', tag: '开工'},
  628. {id: 2, name: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.pdf', tag: '工序'},
  629. {id: 3, name: 'xxxxxxxxxxxxxxxxxxxxxxxxxx.pdf', tag: '评定'},
  630. {id: 4, name: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx.pdf', tag: '交工'},
  631. {id: 5, name: '', tag: '抽检'},
  632. {id: 6, name: '', tag: '隐蔽'}
  633. ])
  634. //验签包
  635. const cscTableColumn5 = [
  636. {key:'user', name: '签名者'},
  637. {key:'time', name: '签名时间'},
  638. {key:'val', name: '摘要'},
  639. ];
  640. const cscTableColumn51 = [
  641. {key:'user', name: '签名者', width: 300},
  642. {key:'time', name: '签名时间', width: 200},
  643. {key:'val', name: '摘要'},
  644. ];
  645. const cscTableData5 = ref([
  646. {id: 1, user: '051@王海军@0422431197502148151@1', time: '2022-05-13 08:54:15', val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'},
  647. {id: 2, user: '051@王海军@0422431197502148151@1', time: '2022-05-13 08:54:15', val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'},
  648. {id: 3, user: '051@王海军@0422431197502148151@1', time: '2022-05-13 08:54:15', val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'},
  649. {id: 4, user: '051@王海军@0422431197502148151@1', time: '2022-05-13 08:54:15', val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'},
  650. {id: 5, user: '051@王海军@0422431197502148151@1', time: '2022-05-13 08:54:15', val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'},
  651. {id: 6, user: '051@王海军@0422431197502148151@1', time: '2022-05-13 08:54:15', val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'}
  652. ])
  653. //抽检意见
  654. const reform = ref({
  655. type: false, content: ''
  656. })
  657. //显示右侧目录
  658. const isCarryDataShow = ref(true)
  659. const onCarryDataShow = () => {
  660. isCarryDataShow.value = !isCarryDataShow.value
  661. }
  662. //使用弹窗查看数据
  663. const cscTableDataModal = ref(false)
  664. const cscTableDataTitle = ref('')
  665. //显示弹窗
  666. const cscTableDataModalShow = () => {
  667. const key = tabTypeKey.value;
  668. if (key === 'tab5') {
  669. cscTableDataTitle.value = '元数据'
  670. } else if (key === 'tab6') {
  671. cscTableDataTitle.value = '验签包'
  672. }
  673. cscTableDataModal.value = true
  674. }
  675. //关闭弹窗
  676. const cscTableDataModalClose = () => {
  677. cscTableDataModal.value = false
  678. }
  679. //关闭抽查
  680. const onCarrySpotChecksDrawerClose = () => {
  681. isCarrySpotChecksDrawer.value = false
  682. pdfUrl.value=''
  683. }
  684. //tab数据和相关处理
  685. const nodeTabKey = ref('tab1')
  686. const nodeTabData = ref([
  687. {key:'tab1', name: '业主档案'},
  688. {key:'tab2', name: '施工档案'},
  689. {key:'tab3', name: '监理档案'},
  690. {key:'tab4', name: '文书档案'},
  691. ]);
  692. const nodeTabChange = (item) => {
  693. nodeTabKey.value = item?.key;
  694. }
  695. const activeName = ref('')
  696. const nodeTreeArr = ref([
  697. {id: '1', name: '一、立项审批文件'},
  698. {id: '2', name: '二、勘察设计文件'},
  699. {id: '3', name: '三、招标投标、合同协议文件'},
  700. {id: '4', name: '四、工程准备、征地、拆迁、移民等文件'},
  701. {id: '5', name: '五、项目管理文件'},
  702. {id: '6', name: '六、计量与支付、结算与审计文件'},
  703. {id: '7', name: '七、交、竣工文件'},
  704. {id: '8', name: '八、工程照片、音像资料'},
  705. ])
  706. const collapseChange = (key) => {
  707. activeName.value = key.toString();
  708. }
  709. </script>
  710. <style lang="scss" scoped>
  711. @import '~style/using/scoped/query.scss';
  712. </style>
  713. <style lang="scss">
  714. @import '~style/using/query.scss';
  715. </style>