collection.vue 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853
  1. <template>
  2. <hc-body :loading="!isAppLoading" :project-nmae="projectInfo?.name" class="hc-file-collection-page" split>
  3. <template #tree>
  4. <HcTree
  5. ref="treeRef" :auto-expand-keys="treeAutoExpandKeys" :contract-id="contractId" :menus="ElTreeMenu"
  6. :project-id="projectId"
  7. @node-tap="projectTreeClick" @node-loading="treeNodeLoading" @menu-tap="ElTreeMenuClick"
  8. />
  9. </template>
  10. <hc-new-card>
  11. <template #header>
  12. <HcTooltip keys="file_collection_btn_upload_scanned_files">
  13. <el-button hc-btn type="primary" @click="uploadModalClick">上传扫描文件</el-button>
  14. </HcTooltip>
  15. <HcTooltip keys="file_collection_btn_sorting">
  16. <el-button hc-btn type="success" @click="sortingClick">分盒整理</el-button>
  17. </HcTooltip>
  18. <HcTooltip keys="file_collection_btn_download">
  19. <el-button :disabled="tableCheckedKeys.length <= 0" hc-btn>下载</el-button>
  20. </HcTooltip>
  21. <HcTooltip keys="file_collection_btn_certified">
  22. <el-button :disabled="tableCheckedKeys.length <= 0" hc-btn @click="certificationModalClick">认证</el-button>
  23. </HcTooltip>
  24. <HcTooltip keys="file_collection_btn_report">
  25. <el-button :disabled="tableCheckedKeys.length <= 0" hc-btn type="warning" @click="reportModalClick">上报</el-button>
  26. </HcTooltip>
  27. <HcTooltip keys="file_collection_btn_edit">
  28. <el-button :disabled="tableCheckedKeys.length <= 0" hc-btn @click="batchEditClick">编辑</el-button>
  29. </HcTooltip>
  30. <HcTooltip keys="file_collection_btn_repeal">
  31. <el-button :disabled="tableCheckedKeys.length <= 0" hc-btn @click="repealModalClick">废除</el-button>
  32. </HcTooltip>
  33. <HcTooltip keys="file_collection_btn_del">
  34. <el-button :disabled="tableCheckedKeys.length <= 0" hc-btn type="danger" @click="delModalClick">删除</el-button>
  35. </HcTooltip>
  36. <el-button :disabled="tableCheckedKeys.length <= 0" :loading="onlineLoading" color="#e03997" hc-btn @click="batchOnline">在线验签</el-button>
  37. </template>
  38. <template #extra>
  39. <HcTooltip keys="file_collection_sort_date">
  40. <el-button hc-btn class="mr-1" type="success" @click="dateClick">按日期排序</el-button>
  41. </HcTooltip>
  42. <HcTooltip keys="file_collection_btn_moves">
  43. <el-button color="#626aef" hc-btn @click="movesClick">跨目录移动</el-button>
  44. </HcTooltip>
  45. </template>
  46. <template #search>
  47. <div class="w-40">
  48. <el-select v-model="searchForm.isApprovalValue" clearable placeholder="审批状态">
  49. <el-option v-for="item in approvalStatus" :key="item.value" :label="item.label" :value="item.value" />
  50. </el-select>
  51. </div>
  52. <div class="ml-2 w-40">
  53. <el-select v-model="searchForm.isCertificationValue" clearable placeholder="认证状态">
  54. <el-option v-for="item in certifiedStatus" :key="item.value" :label="item.label" :value="item.value" />
  55. </el-select>
  56. </div>
  57. <div class="ml-2 w-64">
  58. <el-input v-model="searchForm.queryValue" clearable placeholder="请输入名称关键词检索" @keyup="keyUpEvent" />
  59. </div>
  60. <div class="ml-2">
  61. <el-button type="primary" @click="searchClick">搜索</el-button>
  62. </div>
  63. </template>
  64. <HcTable
  65. ref="tableRef" :check-style="{ width: 29 }" :column="tableColumn" :datas="tableData"
  66. :index-style="{ width: 80 }" :loading="tableLoading" is-check is-new
  67. @selection-change="tableSelection"
  68. >
  69. <template #table-column-header-num>
  70. <HcTooltip keys="file_collection_btn_sort">
  71. <span class="text-link text-lg" @click="tableSortClick">
  72. <HcIcon name="arrow-up-down" />
  73. </span>
  74. </HcTooltip>
  75. </template>
  76. <template #isApprovalValue="{ row }">
  77. <el-tag v-if="row?.isApprovalValue" :type="`${row.isApprovalValue === '已审批' ? 'success' : row.isApprovalValue === '待审批' ? 'warning' : row.isApprovalValue === '已废除' ? 'danger' : 'info'}`" class="mx-1" effect="dark">
  78. {{ row.isApprovalValue }}
  79. </el-tag>
  80. </template>
  81. <template #fileName="{ row }">
  82. <span class="text-link" @click="tableRowName(row)">{{ row?.fileName }}</span>
  83. </template>
  84. <template #sourceType="{ row }">
  85. <span>{{ row?.sourceType === 1 ? '原生' : '数字化' }}</span>
  86. </template>
  87. <template #fileTime="{ row }">
  88. <span>{{ getTableFileTime(row.fileTime) }}</span>
  89. </template>
  90. </HcTable>
  91. <template #action>
  92. <div class="lr-dialog-footer h-full">
  93. <div class="left hc-flex h-full text-14px">
  94. <span class="text">当前页的文件总页数:</span>
  95. <span>{{ fileTotalPage || 0 }}</span>
  96. </div>
  97. <div class="right">
  98. <HcPages :pages="searchForm" :sizes="[20, 50, 100, 200, 300, 500]" @change="pageChange" />
  99. </div>
  100. </div>
  101. </template>
  102. </hc-new-card>
  103. <!-- 预组卷整理 -->
  104. <hc-new-dialog v-model="sortingModal" is-row-footer is-table title="预组卷整理" widths="850px" @close="sortingModalClose">
  105. <div class="hc-sorting-modal-collapse">
  106. <el-collapse v-model="sortingActiveKey">
  107. <template v-for="(item, index) in sortingItemData" :key="index">
  108. <el-collapse-item :id="`item-${index}`" :name="`item-${index}`" disabled>
  109. <template #title>
  110. <div class="hc-collapse-item-header">
  111. <div class="item-index">盒{{ index + 1 }}</div>
  112. <el-divider direction="vertical" />
  113. <div class="item-input">
  114. <el-input
  115. v-model="item.boxName" :class="item.isName ? 'is-error' : ''"
  116. placeholder="请输入案卷题名"
  117. @change="tableIsInput($event, item, 'isName')"
  118. @input="tableIsInput($event, item, 'isName')"
  119. />
  120. </div>
  121. <el-divider direction="vertical" />
  122. <div class="item-action">
  123. <el-button type="primary" @click="sortingSelectFile(item, index)">选择文件</el-button>
  124. <el-button type="danger" @click="sortingDelData(item, index)">删除</el-button>
  125. </div>
  126. </div>
  127. </template>
  128. <HcTable
  129. ref="sorTableRef" :check-style="{ width: 29 }" :column="sortingTableColumn" :datas="item.list"
  130. :index-style="{ width: 60 }" :loading="sortingTableLoading" is-check is-new
  131. @selection-change="rows => sortingTableSelection(rows, item.list, index)"
  132. @single-select="singleCheck"
  133. >
  134. <template #name="{ row }">
  135. <span class="text-link">{{ row?.fileName }}</span>
  136. </template>
  137. </HcTable>
  138. </el-collapse-item>
  139. </template>
  140. </el-collapse>
  141. </div>
  142. <template #leftRowFooter>
  143. <el-button hc-btn type="primary" @click="addSortingModalClick">
  144. <HcIcon name="add" />
  145. <span>添加分盒</span>
  146. </el-button>
  147. </template>
  148. <template #rightRowFooter>
  149. <el-button hc-btn @click="sortingModalClose">
  150. <HcIcon name="close" />
  151. <span>取消</span>
  152. </el-button>
  153. <el-button :loading="sortingModalLoading" hc-btn type="primary" @click="sortingModalSave">
  154. <HcIcon name="check" />
  155. <span>确认</span>
  156. </el-button>
  157. </template>
  158. </hc-new-dialog>
  159. <!-- 预组卷整理 无数据 -->
  160. <hc-new-dialog v-model="sortingNoneModal" is-row-footer is-table title="预组卷整理" widths="850px" @close="sortingNoneModalClose">
  161. <div class="flex-center">
  162. <i class="el-icon" data-v-029747aa="" style="font-size: 200px;color:#81b337;cursor: pointer;" @click="toSortingModal">
  163. <svg data-v-029747aa="" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
  164. <path d="M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z" fill="currentColor" />
  165. </svg>
  166. </i>
  167. <span>添加分盒</span>
  168. </div>
  169. </hc-new-dialog>
  170. <!-- 跨目录移动 -->
  171. <hc-new-dialog v-model="movesModal" :loading="movesModalLoading" is-table title="跨目录移动" widths="990px" @close="movesModalClose" @save="movesModalSave">
  172. <div class="hc-moves-transfer-box">
  173. <div class="hc-moves-transfer-panel">
  174. <div class="panel-header">
  175. <div class="panel-header-label">
  176. <el-checkbox v-model="movesCheckAll" :indeterminate="isIndeterminate" class="space size-xl" @change="handleCheckAllChange">
  177. 选择需要迁移的文件
  178. </el-checkbox>
  179. </div>
  180. <div class="panel-header-extra">{{ checkedMoves.length }}/{{ fileDatasList.length }}</div>
  181. </div>
  182. <div class="panel-body">
  183. <el-scrollbar v-loading="fileDatasListLoading">
  184. <el-checkbox-group v-model="checkedMoves" @change="handleCheckedMovesChange">
  185. <!-- <div v-for="item in fileDatasList" :key="item.id" class="hc-file-checkbox">
  186. <el-checkbox class="size-xl space" :label="item">
  187. {{ item.fileName }}
  188. </el-checkbox>
  189. </div> -->
  190. <recycle-scroller
  191. :buffer="1000" :item-size="110" :items="fileDatasList"
  192. :prerender="200" class="virtual-list" key-field="id"
  193. style="height: 900px"
  194. >
  195. <template #default="{ item, index }">
  196. <div :key="index">
  197. <el-checkbox :value="item" class="space mt-5 size-xl">{{ item.fileName }}</el-checkbox>
  198. </div>
  199. </template>
  200. </recycle-scroller>
  201. </el-checkbox-group>
  202. </el-scrollbar>
  203. </div>
  204. </div>
  205. <div class="hc-moves-transfer-buttons">
  206. <HcIcon name="arrow-right-double" style="font-size: 22px;" type="primary" />
  207. </div>
  208. <div class="hc-moves-transfer-panel">
  209. <div class="panel-header">选择移动目录</div>
  210. <div v-loading="treePanelLoading" class="panel-body">
  211. <el-scrollbar>
  212. <HcTree
  213. :contract-id="contractId" :is-show-menu="false" :project-id="projectId"
  214. :show-radio-fun="showRadioFun" id-prefix="hc-tree-moves-" is-radio
  215. @radio-change="radioChange" @node-loading="panelTreeLoading"
  216. />
  217. </el-scrollbar>
  218. </div>
  219. </div>
  220. </div>
  221. </hc-new-dialog>
  222. <!-- 调整排序 -->
  223. <hc-new-dialog v-model="sortModal" is-row-footer is-table title="调整排序" widths="80vw" @close="sortModalClose">
  224. <el-alert :closable="false" title="可拖动排序,也可在后面点击图标,切换排序" type="error" />
  225. <div class="hc-table-h">
  226. <HcTable
  227. :column="sortTableColumn" :datas="sortTableData" :index-style="{ width: 80 }"
  228. :loading="sortTableLoading"
  229. is-new is-row-drop quick-sort ui="hc-table-row-drop"
  230. @row-drop="sortTableRowDrop" @row-sort="sortTableRowDrop"
  231. >
  232. <template #action="{ index }">
  233. <span class="text-link text-xl" @click="upSortClick(index)">
  234. <HcIcon fill name="arrow-up" />
  235. </span>
  236. <span class="text-link ml-2 text-xl" @click="downSortClick(index)">
  237. <HcIcon fill name="arrow-down" />
  238. </span>
  239. </template>
  240. </HcTable>
  241. </div>
  242. <template #leftRowFooter>
  243. <el-button hc-btn @click="sortModalClose">
  244. <HcIcon name="close" />
  245. <span>取消</span>
  246. </el-button>
  247. <el-button :loading="sortModalLoading" hc-btn type="primary" @click="sortModalSave">
  248. <HcIcon name="check" />
  249. <span>确认</span>
  250. </el-button>
  251. </template>
  252. <template #rightRowFooter>
  253. <HcPages :pages="sortSearchForm" :sizes="[10, 20, 50, 100, 200, 300, 400, 500, 600]" @change="sortPageChange" />
  254. </template>
  255. </hc-new-dialog>
  256. <!-- 新增编辑文件 -->
  257. <hc-new-dialog v-model="showUploadModal" is-table title="上传工程文件" widths="90vw" @close="uploadModalClose">
  258. <HcTable
  259. :column="tableUploadColumn" :datas="tableUploadData" :index-style="{ width: 80 }"
  260. :loading="uploadSaveLoading"
  261. is-new is-sort ui="hc-form-table" @row-sort="tableUploadRowSort"
  262. >
  263. <template #fileNumber="{ row }">
  264. <!-- <el-input v-model="row.fileNumber" :class="row['isFileNumber'] ? 'is-error' : ''" @input="tableIsInput($event, row, 'isFileNumber')"/> -->
  265. <el-input v-model="row.fileNumber" />
  266. </template>
  267. <template #fileName="{ row }">
  268. <el-input v-model="row.fileName" :class="row.isFileName ? 'is-error' : ''" @input="tableIsInput($event, row, 'isFileName')" />
  269. </template>
  270. <template #fileTime="{ row }">
  271. <div class="relative w-full">
  272. <el-date-picker v-model="row.fileTime" class="w-full!" :clearable="false" format="YYYYMMDD" type="date" value-format="YYYYMMDD" />
  273. </div>
  274. <!-- <el-input v-model="row.fileTime" :class="row['isFileTime'] ? 'is-error' : ''" @input="tableIsInput($event, row, 'isFileTime')"/> -->
  275. </template>
  276. <template v-if="isBuiltDrawing === 2" #sheetType="{ row }">
  277. <el-select v-model="row.sheetType">
  278. <el-option v-for="item in sheetType" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" />
  279. </el-select>
  280. </template>
  281. <template v-if="isBuiltDrawing === 2" #sheetSource="{ row }">
  282. <el-select v-model="row.sheetSource">
  283. <el-option v-for="item in sheetSourceType" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" />
  284. </el-select>
  285. </template>
  286. <template v-if="isBuiltDrawing === 2" #drawingNo="{ row }">
  287. <el-input v-model="row.drawingNo" />
  288. </template>
  289. <template v-if="isBuiltDrawing === 2" #citeChangeNumber="{ row }">
  290. <el-input v-model="row.citeChangeNumber" />
  291. </template>
  292. <template #isApproval="{ row }">
  293. <el-select v-model="row.isApproval">
  294. <el-option v-for="item in whetherData" :key="item.value" :label="item.label" :value="item.value" />
  295. </el-select>
  296. </template>
  297. <template #isNeedCertification="{ row }">
  298. <el-select v-model="row.isNeedCertification">
  299. <el-option v-for="item in whetherData" :key="item.value" :label="item.label" :value="item.value" />
  300. </el-select>
  301. </template>
  302. <template #dutyUser="{ row }">
  303. <el-input v-model="row.dutyUser" />
  304. </template>
  305. <template #isElement="{ row }">
  306. <el-select v-model="row.isElement">
  307. <el-option :value="1" label="是" />
  308. <el-option :value="0" label="否" />
  309. </el-select>
  310. </template>
  311. <template #action="{ row, index }">
  312. <el-button v-if="tableUploadType === 'edit'" plain size="small" type="warning" @click="tableRowName(row)">查看文件</el-button>
  313. <el-button v-if="tableUploadType === 'edit'" :loading="row.newBtnLoading" plain size="small" type="primary" @click="substitutionClick(row)">替换</el-button>
  314. <el-button :loading="row.delBtnLoading" plain size="small" type="danger" @click="delUploadData(row, index)">删除</el-button>
  315. </template>
  316. </HcTable>
  317. <template #footer>
  318. <div class="lr-dialog-footer">
  319. <div class="left flex items-center">
  320. <el-button v-if="tableUploadType === 'add'" hc-btn type="primary" @click="uploadFileClick">
  321. <HcIcon name="add-circle" />
  322. <span>新增上传</span>
  323. </el-button>
  324. </div>
  325. <div class="right">
  326. <el-button size="large" :loading="uploadSaveLoading" @click="batchUploadCancel">
  327. <HcIcon name="close" />
  328. <span>取消</span>
  329. </el-button>
  330. <el-button :loading="uploadSaveLoading" hc-btn type="primary" @click="batchUploadSave">
  331. <HcIcon name="save" />
  332. <span>提交保存</span>
  333. </el-button>
  334. </div>
  335. </div>
  336. </template>
  337. </hc-new-dialog>
  338. <!-- 批量认证 -->
  339. <hc-new-dialog v-model="showCertificationModal" is-table title="批量认证" widths="80vw">
  340. <div class="hc-card-body-flex">
  341. <div class="flex-table">
  342. <HcTable
  343. :column="CertColumns" :datas="CertData" :index-style="{ width: 80 }"
  344. is-new ui="hc-form-table"
  345. @row-click="CertRowClick"
  346. >
  347. <template #action="{ row, index }">
  348. <el-button plain size="small" type="primary" @click.stop="CertRowClick2(row)">预览</el-button>
  349. </template>
  350. </HcTable>
  351. </div>
  352. <div v-if="CertPdf" class="flex-iframe">
  353. <iframe :src="CertPdf" allow="display-capture" frameborder="1" height="100%" width="100%" />
  354. </div>
  355. <div v-else class="flex-iframe hc-no-table-form">
  356. <div class="table-form-no">
  357. <img :src="notableform" alt="">
  358. <div class="desc">暂无 PDF 数据</div>
  359. </div>
  360. </div>
  361. </div>
  362. <template #footer>
  363. <div class="dialog-footer">
  364. <el-button size="large" @click="showCertificationModal = false">
  365. <HcIcon name="close" />
  366. <span>取消</span>
  367. </el-button>
  368. <el-button :loading="CertLoading" hc-btn type="primary" @click="CertClick">
  369. <HcIcon name="save" />
  370. <span>确认认证</span>
  371. </el-button>
  372. </div>
  373. </template>
  374. </hc-new-dialog>
  375. <!-- 批量编辑 -->
  376. <HcReport :data="reportData" :show="isReport" @finish="reportFinish" @hide="isReport = false" />
  377. <!-- 在线验签 -->
  378. <hc-new-drawer v-model="isOnlineVerifyDrawer" modal-class="hc-online-verify-drawer" to-id="app" @close="onlineVerifyDrawerClose">
  379. <hc-new-card>
  380. <template #header>
  381. <div class="online-verify-title">这是标题名称</div>
  382. </template>
  383. <template #extra>
  384. <div class="online-verify-icon" @click="onlineVerifyDrawerClose">
  385. <HcIcon name="close-circle" />
  386. <span class="ml-1">关闭</span>
  387. </div>
  388. </template>
  389. <hc-body :options="onlineVerifyOptions" padding="0px" split>
  390. <template #left>
  391. <hc-new-card>
  392. <HcPdf :src="onlineVerifyData.pdfUrl" />
  393. </hc-new-card>
  394. </template>
  395. <hc-new-card>
  396. <HcTable :column="cscTableColumn" :datas="cscTableData" :index-style="{ width: 60 }" is-new />
  397. </hc-new-card>
  398. </hc-body>
  399. </hc-new-card>
  400. </hc-new-drawer>
  401. </hc-body>
  402. </template>
  403. <script setup>
  404. import { useAppStore } from '~src/store'
  405. import { getStoreValue, setStoreValue } from '~src/utils/storage'
  406. import { computed, nextTick, onMounted, ref, watch } from 'vue'
  407. import HcTree from '~src/components/tree/hc-tree.vue'
  408. import HcReport from './components/HcReport.vue'
  409. import notableform from '~src/assets/view/notableform.svg'
  410. import { rowsToId } from '~uti/tools'
  411. import { HcDelMsg, HcUploadFileApi } from 'hc-vue3-ui'
  412. import archiveFileApi from '~api/archiveFile/archiveFile'
  413. import tasksFlowApi from '~api/tasks/flow'
  414. import { arrKeySort, arrToId, deepClone, getArrValue, getObjVal, isNullES } from 'js-fast-way'
  415. import tasksApi from '~api/tasks/data'
  416. import ossApi from '~api/oss'
  417. import { toPdfPage } from '~uti/btn-auth'
  418. //变量
  419. const useAppState = useAppStore()
  420. const projectId = ref(useAppState.getProjectId)
  421. const contractId = ref(useAppState.getContractId)
  422. const projectInfo = ref(useAppState.getProjectInfo)
  423. const isCollapse = ref(useAppState.getCollapse)
  424. //上传进度
  425. const uploadsLoading = ref(false)
  426. const treeRef = ref(null)
  427. //监听
  428. watch(() => [
  429. useAppState.getCollapse,
  430. ], ([Collapse]) => {
  431. isCollapse.value = Collapse
  432. })
  433. //监听
  434. watch(() => [useAppState.getProjectId, useAppState.getContractId, useAppState.getProjectInfo], ([pid, cid, info]) => {
  435. projectId.value = pid
  436. contractId.value = cid
  437. projectInfo.value = info
  438. }, { deep: true })
  439. //加载中
  440. const isAppLoading = computed(() => {
  441. return !isNullES(projectId.value) && !isNullES(contractId.value)
  442. })
  443. //监听变化
  444. watch(() => isAppLoading.value, (val) => {
  445. if (val) {
  446. treeLoading.value = true
  447. setTableColumns()
  448. }
  449. })
  450. //渲染完成
  451. onMounted(() => {
  452. if (isAppLoading.value) {
  453. treeLoading.value = true
  454. setTableColumns()
  455. }
  456. if (tableRef.value) {
  457. const scrollWidth = tableRef.value.scrollWidth
  458. // 使用scrollWidth进行后续操作
  459. }
  460. })
  461. //设置树菜单数据
  462. const ElTreeMenu = ref([
  463. { icon: 'add-circle', label: '新增', key: 'add' },
  464. { icon: 'draft', label: '编辑', key: 'edit' },
  465. { icon: 'delete-bin', label: '删除', key: 'del' },
  466. { icon: 'refresh', label: '目录同步', key: 'sync' },
  467. { icon: 'sort-asc', label: '排序', key: 'sort' },
  468. ])
  469. const dutyUser = ref('')
  470. //设置责任者
  471. const setdutyUser = async () => {
  472. const { error, code, data } = await archiveFileApi.getDutyUser({
  473. contractId: treecontractId.value,
  474. projectId: projectId.value,
  475. })
  476. if (!error && code === 200) {
  477. if (data?.contractType === 1) {
  478. dutyUser.value = data?.constructionUnitName || ''
  479. } else if (data?.contractType === 2) {
  480. dutyUser.value = data?.supervisionUnitName || ''
  481. } else if (data?.contractType === 3) {
  482. dutyUser.value = data?.contractorUnitName || ''
  483. }
  484. }
  485. }
  486. //打开文件选择框
  487. const uploadFileClick = () => {
  488. HcUploadFileApi({
  489. multiple: true,
  490. progress: () => {
  491. uploadsLoading.value = true
  492. },
  493. success: (file, res) => {
  494. uploadsChange(file.id, res.data)
  495. },
  496. error: (file) => {
  497. uploadsLoading.value = false
  498. window.$message.error(`${file.name} 上传失败`)
  499. },
  500. finish: () => {
  501. uploadsLoading.value = false
  502. window.$message.success('全部上传完成')
  503. },
  504. })
  505. }
  506. //替换文件
  507. const substitutionClick = (row) => {
  508. HcUploadFileApi({
  509. multiple: false,
  510. progress: () => {
  511. uploadsLoading.value = true
  512. },
  513. success: (_, { data }) => {
  514. //更新数据
  515. row.fileName = data?.originalName
  516. row.ossFileName = data?.name || ''
  517. row.fileUrl = data?.link || ''
  518. row.pdfFileUrl = data?.pdfUrl || ''
  519. row.filePage = data?.page || ''
  520. row.isUpdateUrl = 1
  521. uploadsLoading.value = false
  522. window.$message.success('上传成功')
  523. },
  524. error: (file) => {
  525. uploadsLoading.value = false
  526. window.$message.error(`${file.name} 上传失败`)
  527. },
  528. })
  529. }
  530. //树加载
  531. const treeLoading = ref(false)
  532. const treeNodeLoading = () => {
  533. treeLoading.value = false
  534. }
  535. const treePanelLoading = ref(false)
  536. const panelTreeLoading = () => {
  537. treePanelLoading.value = false
  538. }
  539. //审批状态
  540. const approvalStatus = ref([
  541. { label: '未上报', value: '0' },
  542. { label: '待审批', value: '1' },
  543. { label: '已审批', value: '2' },
  544. ])
  545. //认证状态
  546. const certifiedStatus = ref([
  547. { label: '已认证', value: '1' },
  548. { label: '未认证', value: '0' },
  549. ])
  550. //搜索表单
  551. const searchForm = ref({
  552. nodeIds: '',
  553. approval: null, certified: null, queryValue: null,
  554. current: 1, size: 20, total: 0,
  555. })
  556. //树相关的变量
  557. const isBuiltDrawing = ref(0)
  558. const isStorageNode = ref(0)
  559. const nodeIds = ref('')
  560. const treecontractId = ref('')
  561. //自动展开缓存
  562. const treeAutoExpandKeys = ref(getStoreValue('wbsTreeExpandKeys') || [])
  563. const projectTreeClick = ({ data, keys }) => {
  564. setStoreValue('wbsTreeExpandKeys', keys)
  565. treeAutoExpandKeys.value = keys || []
  566. nodeIds.value = data.id || ''
  567. isStorageNode.value = data['isStorageNode'] || 0
  568. treecontractId.value = data?.contractId || ''
  569. //设置搜索数据
  570. searchForm.value.current = 1
  571. searchForm.value.nodeIds = data.id || ''
  572. sortSearchForm.value.nodeIds = data.id || ''
  573. isBuiltDrawing.value = data.storageType
  574. getTableData()
  575. }
  576. //树菜单被点击
  577. const ElTreeMenuClick = async ({ data, keys }) => {
  578. // debugger
  579. setStoreValue('wbsTreeExpandKeys', keys)
  580. treeAutoExpandKeys.value = keys || []
  581. if (data?.extType === 2) {
  582. // 声像节点显示声像文件同步菜单
  583. ElTreeMenu.value = [
  584. { icon: 'add-circle', label: '新增', key: 'add' },
  585. { icon: 'draft', label: '编辑', key: 'edit' },
  586. { icon: 'delete-bin', label: '删除', key: 'del' },
  587. { icon: 'refresh', label: '目录同步', key: 'sync' },
  588. { icon: 'refresh', label: '文件同步', key: 'fileSync' },
  589. { icon: 'sort-asc', label: '排序', key: 'sort' },
  590. ]
  591. } else {
  592. if (data?.associationType === 3) {
  593. //声像
  594. ElTreeMenu.value = [
  595. { icon: 'add-circle', label: '新增', key: 'add' },
  596. { icon: 'draft', label: '编辑', key: 'edit' },
  597. { icon: 'delete-bin', label: '删除', key: 'del' },
  598. //{ icon: 'refresh', label: '目录同步', key: 'sync' },
  599. { icon: 'sort-asc', label: '排序', key: 'sort' },
  600. { icon: 'refresh', label: '声像文件同步', key: 'syncVocie' },
  601. ]
  602. } else if (data?.associationType === 6) {
  603. //日志
  604. ElTreeMenu.value = [
  605. { icon: 'add-circle', label: '新增', key: 'add' },
  606. { icon: 'draft', label: '编辑', key: 'edit' },
  607. { icon: 'delete-bin', label: '删除', key: 'del' },
  608. //{ icon: 'refresh', label: '目录同步', key: 'sync' },
  609. { icon: 'sort-asc', label: '排序', key: 'sort' },
  610. { icon: 'refresh', label: '日志文件同步', key: 'syncVocie' },
  611. ]
  612. } else if (data?.associationType === 2) {
  613. //试验
  614. ElTreeMenu.value = [
  615. { icon: 'add-circle', label: '新增', key: 'add' },
  616. { icon: 'draft', label: '编辑', key: 'edit' },
  617. { icon: 'delete-bin', label: '删除', key: 'del' },
  618. //{ icon: 'refresh', label: '目录同步', key: 'sync' },
  619. { icon: 'sort-asc', label: '排序', key: 'sort' },
  620. { icon: 'refresh', label: '试验文件同步', key: 'syncVocie' },
  621. ]
  622. } else {
  623. ElTreeMenu.value = [
  624. { icon: 'add-circle', label: '新增', key: 'add' },
  625. { icon: 'draft', label: '编辑', key: 'edit' },
  626. { icon: 'delete-bin', label: '删除', key: 'del' },
  627. { icon: 'refresh', label: '目录同步', key: 'sync' },
  628. { icon: 'sort-asc', label: '排序', key: 'sort' },
  629. ]
  630. }
  631. }
  632. }
  633. //回车搜索
  634. const keyUpEvent = (e) => {
  635. if (e.key === 'Enter') {
  636. searchForm.value.current = 1
  637. getTableData()
  638. }
  639. }
  640. //搜索
  641. const searchClick = () => {
  642. searchForm.value.current = 1
  643. getTableData()
  644. }
  645. //分页被点击
  646. const pageChange = ({ current, size }) => {
  647. searchForm.value.current = current
  648. searchForm.value.size = size
  649. getTableData()
  650. }
  651. //表格数据
  652. const tableRef = ref(null)
  653. const tableColumn = ref([])
  654. //设置表头
  655. const setTableColumns = () => {
  656. if (isBuiltDrawing.value === 1) {
  657. tableColumn.value = [
  658. { key: 'sourceType', name: '文件来源', width: 100 },
  659. { key: 'fileNumber', name: '文件编号', width: 100, autoWidth: true },
  660. { key: 'fileName', name: '文件名称' },
  661. { key: 'filePage', name: '文件页数', width: 120 },
  662. { key: 'sheetType', name: '图幅', width: 110 },
  663. { key: 'sheetSourceValue', name: '图表来源', width: 110 },
  664. { key: 'drawingNo', name: '图号', width: 110 },
  665. { key: 'citeChangeNumber', name: '引用变更令编号', width: 110 },
  666. { key: 'isCertificationValue', name: '认证状态', width: 100 },
  667. { key: 'isApprovalValue', name: '状态', width: 100 },
  668. { key: 'fileTime', name: '文件时间', width: 120, autoWidth: true },
  669. { key: 'dutyUser', name: '责任者', width: 140 },
  670. ]
  671. sheetTypeStatus()
  672. sheetSourceStatus()
  673. } else {
  674. tableColumn.value = [
  675. { key: 'sourceType', name: '文件来源', width: 100 },
  676. { key: 'fileNumber', name: '文件编号', width: 100, autoWidth: true },
  677. { key: 'fileName', name: '文件名称' },
  678. { key: 'filePage', name: '文件页数', width: 100 },
  679. { key: 'isCertificationValue', name: '认证状态', width: 100 },
  680. { key: 'isApprovalValue', name: '状态', width: 100 },
  681. { key: 'fileTime', name: '文件时间', width: 120, autoWidth: true },
  682. { key: 'dutyUser', name: '责任者', width: 140 },
  683. ]
  684. }
  685. }
  686. const tableData = ref([])
  687. //获取数据
  688. const tableLoading = ref(false)
  689. const getTableData = async () => {
  690. tableLoading.value = true
  691. fileTotalPage.value = 0
  692. const { error, code, data } = await archiveFileApi.getarchiveFilePage({
  693. ...searchForm.value,
  694. projectId: projectId.value,
  695. contractId: contractId.value,
  696. })
  697. tableLoading.value = false
  698. if (!error && code === 200) {
  699. tableData.value = getArrValue(data['records'])
  700. searchForm.value.total = data['total'] || 0
  701. } else {
  702. tableData.value = []
  703. searchForm.value.total = 0
  704. }
  705. getFileTotalPage()
  706. }
  707. //获取当前页的总页数
  708. const fileTotalPage = ref(0)
  709. const getFileTotalPage = () => {
  710. const arr = tableData.value
  711. if (arr.length <= 0) {
  712. fileTotalPage.value = 0
  713. return
  714. }
  715. //遍历数据
  716. let newPage = 0
  717. for (let i = 0; i < arr.length; i++) {
  718. newPage = newPage + Number(arr[i].filePage || 0)
  719. }
  720. fileTotalPage.value = newPage
  721. }
  722. //多选
  723. const tableCheckedKeys = ref([])
  724. const tableSelection = (rows) => {
  725. tableCheckedKeys.value = rows
  726. }
  727. //分盒整理
  728. const sortingModal = ref(false)
  729. const sortingClick = async () => {
  730. if (nodeIds.value && isStorageNode.value === 1) {
  731. const { error, code, data } = await archiveFileApi.getBoxNameAndBoxNumber({
  732. nodeId: nodeIds.value,
  733. })
  734. if (!error && code === 200) {
  735. if (data.length > 0) {
  736. sortingActiveKey.value = []
  737. sortingModal.value = true
  738. sortingItemData.value = getArrValue(data)
  739. sortingOldData.value = deepClone(sortingItemData.value)
  740. } else {
  741. console.log(1111111)
  742. sortingNoneModal.value = true
  743. }
  744. }
  745. } else {
  746. window?.$message?.warning('请先选择一个子节点')
  747. }
  748. }
  749. const sortingNoneModal = ref(false)//无数据显示的弹窗
  750. const toSortingModal = () => {
  751. sortingNoneModal.value = false
  752. sortingActiveKey.value = []
  753. sortingItemData.value = []
  754. sortingModal.value = true
  755. }
  756. const sortingNoneModalClose = () => {
  757. sortingNoneModal.value = false
  758. }
  759. const sortingItemData = ref([])
  760. const sortingOldData = ref([])//旧数据,用来对比是否修改名字
  761. //校验
  762. const tableIsInput = (val, row, key) => {
  763. //检测是否改过案卷名字
  764. if (key === 'isName') {
  765. row.isChange = true
  766. }
  767. row[key] = !val
  768. }
  769. const sortingActiveKey = ref([])
  770. const tableIndex = ref('')
  771. const sortingSelectFile = (row, index) => {
  772. tableIndex.value = index
  773. const key = `item-${index}`
  774. const indexNum = sortingActiveKey.value.indexOf(key)
  775. if (indexNum > -1) {
  776. sortingActiveKey.value.splice(indexNum, 1)
  777. } else {
  778. sortingActiveKey.value.push(key)
  779. if (!(row.list && row.list.length > 0)) {
  780. getSortingTableData(row, index)
  781. }
  782. }
  783. }
  784. //表格
  785. const sortingTableColumn = [
  786. { key: 'name', name: '文件名称' },
  787. ]
  788. //获取数据
  789. const sortingTableLoading = ref(false)
  790. const getSortingTableData = async (row, index) => {
  791. sortingTableLoading.value = true
  792. tableindex.value = index
  793. const { error, code, data } = await archiveFileApi.pageByBoxName({
  794. size: 99999,
  795. current: 1,
  796. projectId: projectId.value,
  797. contractId: contractId.value,
  798. nodeIds: nodeIds.value,
  799. boxName: row.boxName ? row.boxName : '',
  800. })
  801. sortingTableLoading.value = false
  802. if (!error && code === 200) {
  803. row.list = getArrValue(data['records'])
  804. setTableCheck(row, index).then()
  805. } else {
  806. row.list = []
  807. }
  808. }
  809. //表格ref
  810. const sorTableRef = ref([])
  811. const tableindex = ref('')
  812. //回显勾选
  813. const setTableCheck = async (row, index) => {
  814. if (row.ids) {
  815. const keys = row.ids.split(','), list = row.list
  816. for (let i = 0; i < list.length; i++) {
  817. const item = list[i]
  818. if (keys.indexOf(item.id) > -1) {
  819. item.checked = true
  820. await nextTick()
  821. // console.log(sorTableRef.value[index], 'sorTableRef.value[index]')
  822. sorTableRef.value[index].toggleRowSelection(item, true)
  823. }
  824. }
  825. }
  826. }
  827. //多选
  828. const checkList = ref([])
  829. const arrfliter = ref([])
  830. const singleCheck = async ({ row }) => {
  831. let isCheck = false
  832. let checkrow = JSON.parse(JSON.stringify(row))
  833. if (checkrow.checked === false || checkrow.checked === undefined) {
  834. if (checkList.value.length > 0) {
  835. let arr = checkList.value.filter(e => e.id === checkrow.id)
  836. if (arr.length > 0) {
  837. window.$message.warning('多个盒子不能选择同一份文件')
  838. await nextTick()
  839. sorTableRef.value[tableindex.value].toggleRowSelection(row, false)
  840. isCheck = true
  841. } else {
  842. isCheck = false
  843. row.tableindex = tableindex.value
  844. checkList.value.push(row)
  845. }
  846. } else {
  847. row.tableindex = tableindex.value
  848. checkList.value.push(row)
  849. }
  850. } else {
  851. let arr = checkList.value.filter(e => e.id === checkrow.id)
  852. if (isCheck === false && arr[0]?.checked === true || isCheck) {
  853. arrfliter.value = checkList.value.filter(e => e.id !== checkrow.id)
  854. } else {
  855. arrfliter.value = checkList.value
  856. }
  857. let newarr = []
  858. arrfliter.value.forEach((item) => {
  859. newarr.push(JSON.parse(JSON.stringify(item)))
  860. })
  861. checkList.value = newarr
  862. }
  863. }
  864. const sortingTableSelection = (rows, list, index) => {
  865. tableindex.value = index
  866. if (list) {
  867. list.forEach(element => {
  868. element.checked = false
  869. })
  870. }
  871. rows.forEach((element) => {
  872. element.checked = true
  873. })
  874. }
  875. //删除
  876. const sortingDelData = (row, index) => {
  877. sortingItemData.value.splice(index, 1)
  878. console.log(checkList.value, 'checkList.value')
  879. // checkList.value=[]
  880. //过滤掉当前选择的文件
  881. checkList.value = checkList.value.filter(e => e.tableindex !== index)
  882. if (row.boxNumber) {
  883. HcDelMsg(async (resolve) => {
  884. const { error, code } = await archiveFileApi.removeAllocation({
  885. boxName: row.boxName,
  886. boxNumber: row.boxNumber,
  887. })
  888. if (!error && code === 200) {
  889. window.$message?.success('删除成功!')
  890. sortingClick()
  891. }
  892. resolve() //关闭弹窗的回调
  893. })
  894. }
  895. }
  896. //添加分盒
  897. const addSortingModalClick = () => {
  898. console.log('添加分盒')
  899. sortingItemData.value.push({
  900. boxName: '',
  901. })
  902. }
  903. //确认保存
  904. const sortingModalLoading = ref(false)
  905. const sortingModalSave = async () => {
  906. sortingModalLoading.value = true
  907. //检测案卷名是否重复
  908. let nameRes = await checkNames()
  909. //console.log(nameRes)
  910. //return;
  911. for (let i = 0; i < nameRes.length; i++) {
  912. if (typeof nameRes[i].data == 'string') {
  913. window.$message?.error(nameRes[i].data + ',案卷名重复')
  914. sortingModalLoading.value = false
  915. return
  916. }
  917. }
  918. //组装数据
  919. let rows = []
  920. sortingItemData.value.forEach((item, index) => {
  921. let obj = {
  922. ids: '',
  923. boxName: item.boxName,
  924. boxNumber: index + 1,
  925. }
  926. let list = []
  927. if (item.list) {
  928. item.list.forEach((item2) => {
  929. if (item2.checked) {
  930. list.push(item2.id)
  931. }
  932. })
  933. obj.ids = list.join(',')
  934. } else {
  935. obj.ids = item.ids
  936. }
  937. rows.push(obj)
  938. })
  939. console.log(rows, 'rows')
  940. if (rows[0]?.ids) {
  941. const { error, code, data } = await archiveFileApi.allocation({
  942. list: rows,
  943. })
  944. if (!error && code === 200) {
  945. window.$message?.success('保存成功')
  946. sortingModal.value = false
  947. } else {
  948. window.$message?.error('保存失败')
  949. }
  950. } else {
  951. window.$message?.warning('空数据不能提交')
  952. }
  953. sortingModalLoading.value = false
  954. }
  955. const checkNames = () => {
  956. const arr = []
  957. sortingItemData.value.forEach((item) => {
  958. if (item.boxNumber) {
  959. if (item.isChange) {
  960. //是否修改过
  961. //对比旧的数据,是否相同
  962. for (let i = 0; i < sortingOldData.value.length; i++) {
  963. if (sortingOldData.value[i].boxNumber == item.boxNumber) {
  964. if (sortingOldData.value[i].boxName != item.boxName) {
  965. arr.push(
  966. archiveFileApi.getIsBoxName({
  967. boxName: item.boxName,
  968. }),
  969. )
  970. }
  971. return
  972. }
  973. }
  974. }
  975. } else {
  976. arr.push(
  977. archiveFileApi.getIsBoxName({
  978. boxName: item.boxName,
  979. }),
  980. )
  981. }
  982. })
  983. return Promise.all(arr)
  984. }
  985. //关闭
  986. const sortingModalClose = () => {
  987. sortingModal.value = false
  988. }
  989. //删除
  990. const delModalClick = () => {
  991. const rows = tableCheckedKeys.value
  992. //待审批,已审批都不能删除 豆海涛说,先取消限制
  993. /*const result = rows.some(({ isApprovalValue }) => {
  994. return isApprovalValue === '待审批' || isApprovalValue === '已审批'
  995. })
  996. if (result) {
  997. window.$message.warning('待审批或者已审批的文件都不能删除')
  998. return
  999. }
  1000. if (rows.length <= 0) {
  1001. window.$message?.error('请选择需要删除的数据')
  1002. } else {
  1003. HcDelMsg(async (resolve) => {
  1004. const keys = arrToId(rows)
  1005. const { error, code } = await archiveFileApi.removeFile({
  1006. ids: keys,
  1007. })
  1008. if (!error && code === 200) {
  1009. window.$message?.success('删除成功!')
  1010. searchClick()
  1011. }
  1012. resolve() //关闭弹窗的回调
  1013. })
  1014. }*/
  1015. HcDelMsg(async (resolve) => {
  1016. const keys = arrToId(rows)
  1017. const { error, code } = await archiveFileApi.removeFile({
  1018. ids: keys,
  1019. })
  1020. if (!error && code === 200) {
  1021. window.$message?.success('删除成功!')
  1022. searchClick()
  1023. }
  1024. resolve() //关闭弹窗的回调
  1025. })
  1026. }
  1027. //废除
  1028. const repealModalClick = async () => {
  1029. const rows = tableCheckedKeys.value
  1030. if (rows.length <= 0) {
  1031. window.$message?.error('请选择需要废除的数据')
  1032. } else {
  1033. window?.$messageBox?.alert('请谨慎考虑后,确认是否需要废除?', '废除提醒', {
  1034. showCancelButton: true,
  1035. confirmButtonText: '确认废除',
  1036. cancelButtonText: '取消',
  1037. type: 'warning',
  1038. callback: async (action, instance, done) => {
  1039. if (action === 'confirm') {
  1040. instance.confirmButtonLoading = true
  1041. const keys = arrToId(rows)
  1042. const { error, code } = await tasksFlowApi.batchRepealTaskArchive({
  1043. ids: keys,
  1044. type: 1,
  1045. projectId: projectId.value,
  1046. contractId: contractId.value,
  1047. })
  1048. if (!error && code === 200) {
  1049. window.$message?.success('废除成功!')
  1050. searchClick()
  1051. }
  1052. instance.confirmButtonLoading = false
  1053. done()
  1054. } else {
  1055. done()
  1056. }
  1057. },
  1058. })
  1059. }
  1060. }
  1061. //跨目录移动
  1062. const movesModal = ref(false)
  1063. const movesClick = async () => {
  1064. movesModal.value = true
  1065. checkedMoves.value = []
  1066. movesCheckAll.value = false
  1067. treePanelLoading.value = true
  1068. fileDatasListLoading.value = true
  1069. const { error, code, data } = await archiveFileApi.getarchiveFilePage({
  1070. ...searchForm.value,
  1071. current: 1,
  1072. size: 50000,
  1073. projectId: projectId.value,
  1074. contractId: contractId.value,
  1075. })
  1076. fileDatasListLoading.value = false
  1077. if (!error && code === 200) {
  1078. fileDatasList.value = getArrValue(data['records'])
  1079. } else {
  1080. fileDatasList.value = []
  1081. }
  1082. }
  1083. //选择需要迁移的文件
  1084. const movesCheckAll = ref(false)
  1085. const isIndeterminate = ref(true)
  1086. const checkedMoves = ref([])
  1087. //左侧待迁移文件
  1088. const fileDatasList = ref([])
  1089. const fileDatasListLoading = ref(false)
  1090. //全选
  1091. const handleCheckAllChange = (val) => {
  1092. console.log(val, 'val')
  1093. const checked = fileDatasList.value
  1094. checkedMoves.value = val ? checked : []
  1095. isIndeterminate.value = false
  1096. }
  1097. //勾选
  1098. const handleCheckedMovesChange = (value) => {
  1099. const keys = fileDatasList.value
  1100. const checkedCount = value.length
  1101. movesCheckAll.value = checkedCount === keys.length
  1102. isIndeterminate.value = checkedCount > 0 && checkedCount < keys.length
  1103. }
  1104. //右侧radio
  1105. let radioNodeId = ''
  1106. const radioChange = (id) => {
  1107. //console.log(id)
  1108. radioNodeId = id
  1109. }
  1110. //只显示储存节点的单选
  1111. const showRadioFun = (data) => {
  1112. if (data.isStorageNode == 1) {
  1113. return true
  1114. } else {
  1115. return false
  1116. }
  1117. }
  1118. //保存
  1119. const movesModalLoading = ref(false)
  1120. const movesModalSave = async () => {
  1121. const keys = rowsToId(checkedMoves.value)
  1122. let ids = keys
  1123. if (checkedMoves.value.length < 1) {
  1124. window.$message?.warning('请勾选需要迁移的文件')
  1125. return
  1126. }
  1127. if (radioNodeId == '') {
  1128. window.$message?.warning('请选择要移动到的节点')
  1129. return
  1130. }
  1131. movesModalLoading.value = true
  1132. const { error, code, data } = await archiveFileApi.migrateFile({
  1133. ids: ids,
  1134. nodeId: radioNodeId,
  1135. })
  1136. movesModalLoading.value = false
  1137. if (!error && code === 200) {
  1138. window.$message?.success('保存成功')
  1139. movesModal.value = false
  1140. getTableData()
  1141. } else {
  1142. window.$message?.error('保存失败')
  1143. }
  1144. }
  1145. //关闭
  1146. const movesModalClose = () => {
  1147. movesModal.value = false
  1148. }
  1149. //表格排序
  1150. const sortModal = ref(false)
  1151. //显示
  1152. const tableSortClick = () => {
  1153. sortModal.value = true
  1154. getSortTableData()
  1155. }
  1156. //搜索表单
  1157. const sortSearchForm = ref({
  1158. nodeIds: '',
  1159. current: 1, size: 20, total: 0,
  1160. })
  1161. //分页被点击
  1162. const sortPageChange = ({ current, size }) => {
  1163. sortSearchForm.value.current = current
  1164. sortSearchForm.value.size = size
  1165. getSortTableData()
  1166. }
  1167. //表格数据
  1168. const sortTableColumn = ref([
  1169. { key: 'fileNumber', name: '文件编号', width: 160 },
  1170. { key: 'fileName', name: '文件名称' },
  1171. { key: 'fileTime', name: '文件时间', width: 120 },
  1172. { key: 'action', name: '排序', width: 90 },
  1173. ])
  1174. const sortTableData = ref([])
  1175. const sortTableLoading = ref(false)
  1176. const getSortTableData = async () => {
  1177. sortTableLoading.value = true
  1178. const { error, code, data } = await archiveFileApi.getarchiveFilePage({
  1179. ...sortSearchForm.value,
  1180. projectId: projectId.value,
  1181. contractId: contractId.value,
  1182. })
  1183. sortTableLoading.value = false
  1184. if (!error && code === 200) {
  1185. sortTableData.value = getArrValue(data['records'])
  1186. sortSearchForm.value.total = data['total'] || 0
  1187. } else {
  1188. sortTableData.value = []
  1189. sortSearchForm.value.total = 0
  1190. }
  1191. }
  1192. //拖动完成
  1193. const sortTableRowDrop = (rows) => {
  1194. sortTableData.value = [] // 先清空,否则排序会异常
  1195. nextTick(() => {
  1196. sortTableData.value = rows
  1197. })
  1198. }
  1199. //向下
  1200. const downSortClick = (index) => {
  1201. const indexs = index + 1
  1202. const data = sortTableData.value
  1203. if (indexs !== data.length) {
  1204. const tmp = data.splice(indexs, 1)
  1205. sortTableData.value.splice(index, 0, tmp[0])
  1206. } else {
  1207. window?.$message?.warning('已经处于置底,无法下移')
  1208. }
  1209. }
  1210. //向上
  1211. const upSortClick = (index) => {
  1212. const data = sortTableData.value || []
  1213. if (index !== 0) {
  1214. const tmp = data.splice(index - 1, 1)
  1215. sortTableData.value.splice(index, 0, tmp[0])
  1216. } else {
  1217. window?.$message?.warning('已经处于置顶,无法上移')
  1218. }
  1219. }
  1220. //保存
  1221. const sortModalLoading = ref(false)
  1222. const sortModalSave = async () => {
  1223. await batchEditSaveApi(sortTableData.value)
  1224. sortModal.value = false
  1225. }
  1226. //关闭
  1227. const sortModalClose = () => {
  1228. sortModal.value = false
  1229. }
  1230. //获取认证状态
  1231. const certificationType = ref([])
  1232. const certificationStatus = async () => {
  1233. const { error, code, data } = await tasksApi.queryTaskTypeStatus({
  1234. typeOrStatus: 'certification_status',
  1235. })
  1236. //处理数据
  1237. if (!error && code === 200) {
  1238. certificationType.value = getArrValue(data)
  1239. } else {
  1240. certificationType.value = []
  1241. }
  1242. }
  1243. //获取图幅类型
  1244. const sheetType = ref([])
  1245. const sheetTypeStatus = async () => {
  1246. console.log(1111111)
  1247. const { error, code, data } = await tasksApi.queryTaskTypeStatus({
  1248. typeOrStatus: 'sheet_type',
  1249. })
  1250. //处理数据
  1251. if (!error && code === 200) {
  1252. sheetType.value = getArrValue(data)
  1253. } else {
  1254. sheetType.value = []
  1255. }
  1256. }
  1257. //获取图表来源
  1258. const sheetSourceType = ref([])
  1259. const sheetSourceStatus = async () => {
  1260. const { error, code, data } = await tasksApi.queryTaskTypeStatus({
  1261. typeOrStatus: 'sheet_source',
  1262. })
  1263. //处理数据
  1264. if (!error && code === 200) {
  1265. sheetSourceType.value = getArrValue(data)
  1266. } else {
  1267. sheetSourceType.value = []
  1268. }
  1269. }
  1270. //新增文件
  1271. const tableUploadType = ref('add')
  1272. const showUploadModal = ref(false)
  1273. const uploadModalClick = () => {
  1274. if (nodeIds.value && isStorageNode.value === 1) {
  1275. tableUploadType.value = 'add'
  1276. setTableUploadColumn()
  1277. uploadSaveLoading.value = false
  1278. tableUploadData.value = []
  1279. showUploadModal.value = true
  1280. setdutyUser()
  1281. } else {
  1282. window?.$message?.warning('请先选择一个子节点')
  1283. }
  1284. }
  1285. const uploadModalClose = () => {
  1286. batchUploadCancel()
  1287. }
  1288. //设置文件表头
  1289. const tableUploadColumn = ref([
  1290. { key: 'fileNumber', name: '文件编号' },
  1291. { key: 'fileName', name: '文件名称' },
  1292. { key: 'fileTime', name: '文件时间' },
  1293. { key: 'isApproval', name: '是否需要审批', width: 80 },
  1294. { key: 'isNeedCertification', name: '是否需要认证', width: 80 },
  1295. { key: 'dutyUser', name: '责任者' },
  1296. { key: 'isElement', name: '是否四要素' },
  1297. { key: 'action', name: '操作', width: 220 },
  1298. ])
  1299. const setTableUploadColumn = () => {
  1300. const type = tableUploadType
  1301. if (isBuiltDrawing.value === 2) {
  1302. tableUploadColumn.value = [
  1303. { key: 'fileNumber', name: '文件编号', width: 200 },
  1304. { key: 'fileName', name: '文件名称', minWidth: 400 },
  1305. { key: 'fileTime', name: '文件时间', width: 140 },
  1306. { key: 'sheetType', name: '图幅', width: 100 },
  1307. { key: 'sheetSource', name: '图表来源', width: 100 },
  1308. { key: 'drawingNo', name: '图号', width: 140 },
  1309. { key: 'citeChangeNumber', name: '引用变更令编号', width: 140 },
  1310. { key: 'isApproval', name: '是否需要审批', width: 100 },
  1311. { key: 'isNeedCertification', name: '是否需要认证', width: 100 },
  1312. { key: 'dutyUser', name: '责任者', width: 160 },
  1313. { key: 'isElement', name: '是否四要素', width: 90 },
  1314. {
  1315. key: 'action', name: '操作',
  1316. width: type.value === 'edit' ? 220 : 70,
  1317. align: 'center', fixed: 'right',
  1318. },
  1319. ]
  1320. sheetTypeStatus()
  1321. sheetSourceStatus()
  1322. } else {
  1323. tableUploadColumn.value = [
  1324. { key: 'fileNumber', name: '文件编号', width: 200 },
  1325. { key: 'fileName', name: '文件名称' },
  1326. { key: 'fileTime', name: '文件时间', width: 140 },
  1327. { key: 'isApproval', name: '是否需要审批', width: 100 },
  1328. { key: 'isNeedCertification', name: '是否需要认证', width: 100 },
  1329. { key: 'dutyUser', name: '责任者', width: 160 },
  1330. { key: 'isElement', name: '是否四要素', width: 90 },
  1331. {
  1332. key: 'action', name: '操作',
  1333. width: type.value === 'edit' ? 220 : 70,
  1334. align: 'center', fixed: 'right',
  1335. },
  1336. ]
  1337. }
  1338. }
  1339. const tableUploadData = ref([])
  1340. //上传的文件结果
  1341. const uploadsChange = (fileId, item) => {
  1342. if (getObjVal(item)) {
  1343. let newArr = tableUploadData.value
  1344. const sheet = sheetType.value, source = sheetSourceType.value
  1345. let name = item['originalName'] || ''
  1346. let fileName = name.substring(0, name.lastIndexOf('.'))
  1347. newArr.push({
  1348. fileUploadId: fileId,
  1349. projectId: projectId.value,
  1350. contractId: contractId.value,
  1351. nodeId: nodeIds.value,
  1352. fileNumber: '',
  1353. fileName: fileName,
  1354. ossFileName: item?.name || '',
  1355. fileTime: null,
  1356. fileUrl: item?.link || '',
  1357. sheetType: sheet.length > 0 ? sheet[0]['dictKey'] || '' : '',
  1358. sheetSource: source.length > 0 ? source[0]['dictKey'] || '' : '',
  1359. drawingNo: '',
  1360. citeChangeNumber: '',
  1361. isApproval: 1,
  1362. isNeedCertification: 1,
  1363. dutyUser: dutyUser.value,
  1364. pdfFileUrl: item?.pdfUrl || '',
  1365. filePage: item?.page || '',
  1366. isElement: 0,
  1367. isUpdateUrl: 0,
  1368. fileSize: item?.fileSize,
  1369. })
  1370. //tableUploadData.value = newArr
  1371. tableUploadData.value = arrKeySort(newArr, 'fileUploadId')
  1372. } else {
  1373. console.log(item)
  1374. }
  1375. }
  1376. //表单下拉数据
  1377. const whetherData = ref([
  1378. { label: '不需要', value: 0 },
  1379. { label: '需要', value: 1 },
  1380. ])
  1381. //表格数据排序
  1382. const tableUploadRowSort = (arr) => {
  1383. tableUploadData.value = arr
  1384. }
  1385. //删除
  1386. const delUploadData = async (row, index) => {
  1387. if (row['ossFileName']) {
  1388. row['delBtnLoading'] = true
  1389. await ossApi.removeFile({ fileName: row['ossFileName'] })
  1390. row['delBtnLoading'] = false
  1391. tableUploadData.value.splice(index, 1)
  1392. } else {
  1393. tableUploadData.value.splice(index, 1)
  1394. }
  1395. }
  1396. //批量上传保存
  1397. const uploadSaveLoading = ref(false)
  1398. const batchUploadSave = async () => {
  1399. const rows = tableUploadData.value
  1400. if (rows.length > 0) {
  1401. //验证表单数据
  1402. uploadSaveLoading.value = true
  1403. let isTableRows = false
  1404. for (let i = 0; i < rows.length; i++) {
  1405. // if (!rows[i]['fileNumber']) {
  1406. // rows[i]['isFileNumber'] = true
  1407. // isTableRows = true
  1408. // } else if (!rows[i]['fileName']) {
  1409. // rows[i]['isFileName'] = true
  1410. // isTableRows = true
  1411. // }
  1412. // if (!rows[i]['fileTime']) {
  1413. // rows[i]['isFileTime'] = true
  1414. // isTableRows = true
  1415. // }
  1416. // else
  1417. if (!rows[i]['fileName']) {
  1418. rows[i]['isFileName'] = true
  1419. isTableRows = true
  1420. }
  1421. }
  1422. //判断数据
  1423. if (isTableRows) {
  1424. uploadSaveLoading.value = false
  1425. window.$message?.warning('请先完善表单信息')
  1426. } else {
  1427. if (tableUploadType.value === 'add') {
  1428. await batchUploadSaveApi(rows)
  1429. } else {
  1430. await batchEditSaveApi(rows)
  1431. }
  1432. }
  1433. } else {
  1434. window.$message?.warning('请先上传文件')
  1435. }
  1436. }
  1437. //确认上传保存
  1438. const batchUploadSaveApi = async (rows) => {
  1439. uploadSaveLoading.value = true
  1440. const { error, code } = await archiveFileApi.batchUploadSave({
  1441. list: rows,
  1442. }, false)
  1443. //判断状态
  1444. uploadSaveLoading.value = false
  1445. if (!error && code === 200) {
  1446. window.$message?.success('保存成功')
  1447. batchUploadCancel()
  1448. getTableData()
  1449. } else {
  1450. window.$message?.error('保存失败')
  1451. }
  1452. }
  1453. //取消上传
  1454. const batchUploadCancel = () => {
  1455. tableUploadData.value = []
  1456. uploadSaveLoading.value = false
  1457. uploadsLoading.value = false
  1458. showUploadModal.value = false
  1459. }
  1460. //上传新文件
  1461. // const newUploadsChange = ({fileList}, row) => {
  1462. // if (fileList.length > 0) {
  1463. // tableUploadType.value = 'edit'
  1464. // const item = fileList[0]
  1465. // const name = item['originalName'] || ''
  1466. // const fileName = name.substring(0, name.lastIndexOf("."))
  1467. // //更新数据
  1468. // row.fileName = fileName;
  1469. // row.ossFileName = item?.name || ''
  1470. // row.fileUrl = item?.link || ''
  1471. // row.pdfFileUrl = item?.pdfUrl || ''
  1472. // row.filePage = item?.page || ''
  1473. // row.isUpdateUrl=1
  1474. // }
  1475. // }
  1476. // const newUploadsProgress = (val, row) => {
  1477. // row.newBtnLoading = val
  1478. // }
  1479. //批量编辑
  1480. const batchEditClick = () => {
  1481. const rows = deepClone(tableCheckedKeys.value)
  1482. //判断是否满足条件 豆海涛说,先取消限制
  1483. /*const result = rows.every(({ status }) => {
  1484. return status !== 1 && status !== 2
  1485. })
  1486. //判断状态
  1487. if (result) {
  1488. tableUploadType.value = 'edit'
  1489. setTableUploadColumn()
  1490. uploadSaveLoading.value = false
  1491. tableUploadData.value = rows
  1492. showUploadModal.value = true
  1493. } else {
  1494. window.$message?.warning('已上报或已审批的文件不能编辑')
  1495. }*/
  1496. tableUploadType.value = 'edit'
  1497. setTableUploadColumn()
  1498. uploadSaveLoading.value = false
  1499. tableUploadData.value = rows
  1500. showUploadModal.value = true
  1501. }
  1502. //确认编辑上传保存
  1503. const batchEditSaveApi = async (rows) => {
  1504. uploadSaveLoading.value = true
  1505. const { error, code } = await archiveFileApi.batchUpdateSort({
  1506. list: rows,
  1507. }, false)
  1508. //判断状态
  1509. uploadSaveLoading.value = false
  1510. if (!error && code === 200) {
  1511. window.$message?.success('保存成功')
  1512. batchUploadCancel()
  1513. getTableData()
  1514. } else {
  1515. window.$message?.error('保存失败')
  1516. }
  1517. }
  1518. //批量认证
  1519. const CertData = ref([])
  1520. const CertIds = ref([])
  1521. const CertPdf = ref('')
  1522. const CertColumns = [
  1523. { key: 'fileName', name: '文件名称' },
  1524. { key: 'action', name: '操作', width: 100 },
  1525. ]
  1526. //批量认证弹窗
  1527. const showCertificationModal = ref(false)
  1528. const certificationModalClick = () => {
  1529. const rows = tableCheckedKeys.value
  1530. CertData.value = rows
  1531. CertIds.value = rowsToId(rows)
  1532. CertPdf.value = rows[0]?.pdfFileUrl || ''
  1533. const result = rows.every(({ isCertification }) => {
  1534. return isCertification === 0
  1535. })
  1536. const result1 = rows.every(({ status }) => {
  1537. return status === 0 || status === 3
  1538. })//已上报不能认证
  1539. if (!result1) {
  1540. window.$message.warning('已上报的文件不能进行认证')
  1541. } else {
  1542. if (result) {
  1543. CertData.value = rows
  1544. CertIds.value = rowsToId(rows)
  1545. CertPdf.value = rows[0]?.pdfFileUrl || ''
  1546. showCertificationModal.value = true
  1547. } else {
  1548. window.$message?.warning('已认证的文件不能再认证')
  1549. }
  1550. }
  1551. }
  1552. //认证行被点击
  1553. const CertRowClick = ({ row }) => {
  1554. const pdfFileUrl = row?.pdfFileUrl || ''
  1555. if (CertPdf.value !== pdfFileUrl) {
  1556. CertPdf.value = pdfFileUrl
  1557. }
  1558. }
  1559. //认证预览被点击
  1560. const CertRowClick2 = ({ pdfFileUrl }) => {
  1561. const pdfUrl = pdfFileUrl || ''
  1562. if (CertPdf.value !== pdfUrl) {
  1563. CertPdf.value = pdfUrl
  1564. }
  1565. }
  1566. //确认认证
  1567. const CertLoading = ref(false)
  1568. const CertClick = async () => {
  1569. CertLoading.value = true
  1570. const { error, code, msg } = await tasksFlowApi.batchCertification({
  1571. ids: CertIds.value,
  1572. }, false)
  1573. //判断状态
  1574. CertLoading.value = false
  1575. if (!error && code === 200) {
  1576. window.$message?.success('认证成功')
  1577. showCertificationModal.value = false
  1578. searchClick()
  1579. } else {
  1580. window.$message?.error(msg)
  1581. }
  1582. }
  1583. //名称被点击
  1584. const tableRowName = (row) => {
  1585. if (row?.isCertificationValue === '已认证' || row?.isApprovalValue === '已审批') {
  1586. if (row['eVisaFile']) {
  1587. toPdfPage(row['eVisaFile'])
  1588. } else if (row['pdfFileUrl']) {
  1589. toPdfPage(row['pdfFileUrl'])
  1590. } else {
  1591. window.$message?.warning('文件不存在')
  1592. }
  1593. } else {
  1594. if (row['pdfFileUrl']) {
  1595. toPdfPage(row['pdfFileUrl'])
  1596. } else {
  1597. window.$message?.warning('文件不存在')
  1598. }
  1599. }
  1600. }
  1601. //上报
  1602. const isReport = ref(false)
  1603. const reportData = ref([])
  1604. const reportModalClick = () => {
  1605. reportData.value = []
  1606. const rows = tableCheckedKeys.value
  1607. //判断是否满足条件
  1608. const result = rows.every(({ status }) => {
  1609. return status === 0 || status === 3
  1610. })
  1611. const result1 = rows.every(({ isCertification }) => {
  1612. return isCertification === 1
  1613. })
  1614. if (result1) {
  1615. window.$message?.warning('已认证的文件不能进行上报')
  1616. return false
  1617. } else {
  1618. if (!result) {
  1619. window.$message?.warning('已上报的文件不能进行再次上报')
  1620. return false
  1621. }
  1622. }
  1623. rows.sort((a, b) => a.sort - b.sort)
  1624. //展示上报弹窗
  1625. reportData.value = rows
  1626. console.log(reportData.value, ' reportData.valu')
  1627. isReport.value = true
  1628. }
  1629. //上报完成
  1630. const reportFinish = () => {
  1631. searchClick()
  1632. }
  1633. //在线验签
  1634. const onlineLoading = ref(false)
  1635. const onlineVerifyData = ref({})
  1636. const isOnlineVerifyDrawer = ref(false)
  1637. const onlineVerifyOptions = {
  1638. sizes: [50, 50],
  1639. snapOffset: 0,
  1640. minSize: ['10%', '80%'],
  1641. }
  1642. const batchOnline = async () => {
  1643. const rows = tableCheckedKeys.value
  1644. if (rows.length > 1) {
  1645. window.$message?.warning('在线验签只能勾选一条数据进行验签')
  1646. return
  1647. }
  1648. //判断是否满足条件
  1649. const result = rows.every(({ status }) => {
  1650. return status === 2
  1651. })
  1652. //判断状态
  1653. if (!result) {
  1654. window.$message?.warning('存在未审批或未上报数据')
  1655. return
  1656. }
  1657. //发起请求
  1658. //const ids = arrToId(rows)
  1659. onlineLoading.value = true
  1660. /*const { error, code, msg, data } = await queryApi.onlineVerify({
  1661. ids: ids,
  1662. })
  1663. //处理数据
  1664. onlineLoading.value = false
  1665. if (!error && code === 200) {
  1666. onlineVerifyData.value = getObjValue(data)
  1667. //cscTableData.value = getArrValue(data['certBeanVOList'])
  1668. isOnlineVerifyDrawer.value = true
  1669. } else {
  1670. onlineVerifyData.value = {}
  1671. window.$message?.error(msg ?? '操作失败')
  1672. }*/
  1673. onlineVerifyData.value = {}
  1674. isOnlineVerifyDrawer.value = true
  1675. }
  1676. //签名信息
  1677. const cscTableColumn = [
  1678. { key: 'user', name: '签名者', width: 300 },
  1679. { key: 'time', name: '签名时间', width: 200 },
  1680. { key: 'val', name: '摘要' },
  1681. ]
  1682. const cscTableData = ref([])
  1683. //在线验签抽屉被关闭
  1684. const onlineVerifyDrawerClose = () => {
  1685. isOnlineVerifyDrawer.value = false
  1686. onlineLoading.value = false
  1687. }
  1688. //处理时间
  1689. const getTableFileTime = (time) => {
  1690. if (isNullES(time)) return ''
  1691. return time.replace(/-/g, '')
  1692. }
  1693. //按日期排序
  1694. const dateClick = async () => {
  1695. let id = nodeIds.value
  1696. if (!id) {
  1697. window.$message?.warning('请先选择节点')
  1698. return
  1699. }
  1700. const { error, code, msg, data } = await archiveFileApi.sortByFileTime({
  1701. nodeId: id,
  1702. })
  1703. if (!error && code === 200) {
  1704. window.$message?.success('msg')
  1705. window?.location?.reload() //刷新页面
  1706. }
  1707. }
  1708. </script>
  1709. <style lang="scss">
  1710. @import '~style/file/collection.scss';
  1711. //在线验签
  1712. .hc-online-verify-drawer .el-card.hc-new-card-box {
  1713. .hc-card-header-box {
  1714. .online-verify-title {
  1715. font-size: 20px;
  1716. }
  1717. .online-verify-icon {
  1718. display: flex;
  1719. align-items: center;
  1720. cursor: pointer;
  1721. color: #5a5959;
  1722. i {
  1723. font-size: 18px;
  1724. }
  1725. &:hover {
  1726. color: var(--el-color-primary);
  1727. }
  1728. }
  1729. }
  1730. }
  1731. html.dark .hc-online-verify-drawer .el-card.hc-new-card-box {
  1732. background-color: var(--hc-bg-color);
  1733. .hc-card-header-box {
  1734. .online-verify-icon {
  1735. color: var(--el-color-primary);
  1736. }
  1737. }
  1738. }
  1739. </style>