carry-spot-checks.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. <template>
  2. <div>
  3. <HcDrawer
  4. :show="isDrawer" to-id="carry-spot-checks-layout-target"
  5. uis="hc-carry-spot-checks-target" @close="onCarrySpotChecksDrawerClose"
  6. >
  7. <div class="hc-carry-spot-checks-pdf">
  8. <HcPdf v-loading="pdfLoading" :src="pdfUrl" />
  9. <el-tooltip :disabled="!isBubble" content="展开/收起 右侧目录" placement="top">
  10. <div class="hc-csc-pdf-btn" @click="onCarryDataShow">
  11. <HcIcon v-show="isCarryDataShow" name="arrow-right-s" />
  12. <HcIcon v-show="!isCarryDataShow" name="arrow-left-s" />
  13. </div>
  14. </el-tooltip>
  15. </div>
  16. <div v-show="isCarryDataShow" class="hc-carry-spot-checks-data">
  17. <div class="hc-csc-switch">
  18. <HcNewSwitch
  19. :datas="tabTypeTab" :keys="tabTypeKey" :round="false" size="default"
  20. @change="tabTypeChange"
  21. />
  22. </div>
  23. <div class="hc-csc-info-box">
  24. <el-scrollbar>
  25. <div class="hc-info-text-item">
  26. <div class="title">案卷题名:</div>
  27. <div class="content">
  28. {{ fileInfo.name }}
  29. </div>
  30. </div>
  31. <div class="hc-info-text-item">
  32. <div class="title">
  33. <span>密</span>
  34. <span class="ml-7">级:</span>
  35. </div>
  36. <div class="content"> {{ fileInfo.secretLevelValue }}</div>
  37. </div>
  38. <div class="hc-info-text-item">
  39. <div class="title">保管期限:</div>
  40. <div class="content"> {{ fileInfo.storageTimeValue }}</div>
  41. </div>
  42. <div class="hc-info-text-item">
  43. <div class="title">卷内文件:</div>
  44. <div class="content"> {{ fileInfo.pageNumber }}</div>
  45. </div>
  46. <div class="hc-info-text-item">
  47. <div class="title">起止日期:</div>
  48. <div v-if="fileInfo?.endDate !== '' || fileInfo?.startDate !== null" class="content">
  49. {{ `${splitDate(fileInfo?.startDate)}~${splitDate(fileInfo?.endDate)}` }}
  50. </div>
  51. <div v-else class="content" />
  52. </div>
  53. <div class="hc-info-text-item">
  54. <div class="title">立卷单位:</div>
  55. <div class="content"> {{ fileInfo.unit }}</div>
  56. </div>
  57. </el-scrollbar>
  58. </div>
  59. <div class="hc-csc-data-box" :style="{ height: checkId ? '' : 'calc(100% - 363px)' }">
  60. <HcTable
  61. v-if="tabTypeKey === 'tab1'" :column="cscTableColumn1" :datas="cscTableData1"
  62. :is-index="false" :loading="cscTableLoading" is-new :index-style="{ width: 60 }"
  63. >
  64. <template #name="{ row }">
  65. <div :class="row.id === checkId ? 'bg-orange-400' : 'text-hover'" @click="changePdf(row)">{{ row?.fileName }}</div>
  66. </template>
  67. </HcTable>
  68. <HcTable
  69. v-if="tabTypeKey === 'tab2'" :column="cscTableColumn2" :datas="cscTableData2"
  70. :is-index="false" :loading="cscTableLoading" is-new
  71. >
  72. <template #name="{ row }">
  73. <div :class="row.id === 2 ? 'text-link' : 'text-hover'">{{ row?.name }}</div>
  74. </template>
  75. </HcTable>
  76. <HcTable
  77. v-if="tabTypeKey === 'tab3'" :column="cscTableColumn3" :datas="cscTableData3"
  78. :is-index="false" :loading="cscTableLoading" is-new
  79. >
  80. <template #name="{ row }">
  81. <div :class="row.id === 2 ? 'text-link' : 'text-hover'">{{ row?.name }}</div>
  82. </template>
  83. </HcTable>
  84. <HcTable
  85. v-if="tabTypeKey === 'tab4'" :column="cscTableColumn4" :datas="cscTableData4"
  86. :is-index="false" :loading="cscTableLoading" is-new
  87. >
  88. <template #name="{ row }">
  89. <div :class="row.id === 2 ? 'text-link' : 'text-hover'" class="hc-csc-associated-row">
  90. <el-tag effect="dark">{{ row?.tag }}</el-tag>
  91. <span class="ml-3">{{ row?.name }}</span>
  92. </div>
  93. </template>
  94. </HcTable>
  95. <MetaTable v-if="tabTypeKey === 'tab5'" :loading="cscmetaTableLoading" :meta-data-table="cscmetaDataTabledata" :ishow-file="ishowFile" />
  96. <HcTable
  97. v-if="tabTypeKey === 'tab6'" :column="cscTableColumn5" :datas="cscTableData5"
  98. :loading="cscTableLoading" is-new
  99. />
  100. <el-tooltip
  101. v-if="tabTypeKey === 'tab6' || tabTypeKey === 'tab5'" :disabled="!isBubble"
  102. content="使用弹窗查看数据"
  103. placement="top"
  104. >
  105. <div class="hc-table-info-btn" @click="cscTableDataModalShow">
  106. <HcIcon name="airplay" />
  107. </div>
  108. </el-tooltip>
  109. </div>
  110. <div v-if="checkId" class="hc-csc-action-box">
  111. <div class="header-box">
  112. <div class="title">抽检意见:</div>
  113. <div class="extra">
  114. <el-checkbox v-model="reform.type" class="size-xl">需要整改</el-checkbox>
  115. </div>
  116. </div>
  117. <div class="textarea-box">
  118. <div v-if="ishowAllopinion">
  119. <el-input v-model="reform.content" type="textarea" :autosize="{ minRows: 5 }" resize="none" placeholder="请填写抽检意见" @focus="contentClick" />
  120. </div>
  121. <div v-else>
  122. <el-input ref="saveTagInput" v-model="reform.myOpinion" type="textarea" :autosize="{ minRows: 5 }" resize="none" placeholder="请填写抽检意见" />
  123. </div>
  124. </div>
  125. <div class="btn-box">
  126. <el-button hc-btn @click="onCarrySpotChecksDrawerClose">
  127. <HcIcon name="close" />
  128. <span>{{ closeText }}</span>
  129. </el-button>
  130. <el-button hc-btn type="primary" :loading="submitLoading" @click="submitOpinion">
  131. <HcIcon name="check" />
  132. <span>{{ checkText }}</span>
  133. </el-button>
  134. </div>
  135. </div>
  136. <div v-if="checkId.length == 0" class="btn-box" style="text-align: center;">
  137. <el-button hc-btn @click="onCarrySpotChecksDrawerClose">
  138. <HcIcon name="close" />
  139. <span>取消查阅</span>
  140. </el-button>
  141. </div>
  142. </div>
  143. </HcDrawer>
  144. <!-- 使用弹窗查看数据 -->
  145. <hc-new-dialog v-model="cscTableDataModal" :footer="false" :title="cscTableDataTitle" is-table widths="1080px" @close="cscTableDataModalClose">
  146. <MetaTable v-if="tabTypeKey === 'tab5'" :loading="cscmetaTableLoading" :meta-data-table="cscmetaDataTabledata" :ishow-file="ishowFile" />
  147. <HcTable
  148. v-if="tabTypeKey === 'tab6'" :column="cscTableColumn51" :datas="cscTableData5"
  149. :loading="cscTableLoading" is-new :index-style="{ width: 60 }"
  150. />
  151. </hc-new-dialog>
  152. </div>
  153. </template>
  154. <script setup>
  155. import { nextTick, onActivated, onMounted, ref, watch } from 'vue'
  156. import { useAppStore } from '~src/store'
  157. import MetaTable from './meta-table.vue'
  158. import archiveQueryApi from '~api/using/query.js'
  159. import { getArrValue, getObjValue } from 'js-fast-way'
  160. import tuningApi from '~api/archiveConfig/tuning.js'
  161. import initialgApi from '~api/initial/initial'
  162. //参数
  163. const props = defineProps({
  164. projectId: {
  165. type: [String, Number],
  166. default: '',
  167. },
  168. contractId: {
  169. type: [String, Number],
  170. default: '',
  171. },
  172. show: {
  173. type: Boolean,
  174. default: false,
  175. },
  176. closeText: {
  177. type: [String, Number],
  178. default: '取消查阅',
  179. },
  180. checkText: {
  181. type: [String, Number],
  182. default: '保存抽检意见',
  183. },
  184. fileId:{
  185. type: [String, Number],
  186. default: '', //案卷ID
  187. },
  188. fileInfo:{
  189. type: Object,
  190. default: () => ({}),
  191. },
  192. })
  193. //事件
  194. const emit = defineEmits(['close', 'check'])
  195. const useAppState = useAppStore()
  196. //变量
  197. const projectId = ref(props.projectId)
  198. const contractId = ref(props.contractId)
  199. const nodeData = ref(props.treeData)
  200. const isBubble = ref(useAppState.getBubble)
  201. const isDrawer = ref(props.show)
  202. const fileId = ref(props.fileId)//案卷ID
  203. const fileInfo = ref(props.fileInfo)//案卷ID
  204. const userInfo = ref(useAppState.getUserInfo)
  205. //监听
  206. watch(() => [
  207. props.show,
  208. useAppState.getBubble,
  209. props.fileId,
  210. props.fileInfo,
  211. props.projectId,
  212. ], ([show, bubble, FileId, FileInfo, ProjectId]) => {
  213. isDrawer.value = show
  214. isBubble.value = bubble
  215. fileId.value = FileId
  216. fileInfo.value = FileInfo
  217. projectId.value = ProjectId
  218. if (fileId.value && isDrawer.value) {
  219. getArchiveFileListData()
  220. let url
  221. viewPdf(fileId.value).then((res)=>{
  222. console.log(res, 'res')
  223. url = res
  224. pdfUrl.value = url
  225. if (pdfUrl.value && pdfUrl?.value.length > 0 ) {
  226. setTimeout(() => {
  227. serReviewFile()
  228. }, 30000)
  229. }
  230. })
  231. }
  232. })
  233. onMounted(()=>{
  234. console.log(fileId.value, 'fileId.value')
  235. })
  236. //类型tab数据和相关处理
  237. const tabTypeKey = ref('tab1')
  238. const tabTypeTab = ref([
  239. { key: 'tab1', name: '卷内文件' },
  240. { key: 'tab2', name: '竣工资料' },
  241. { key: 'tab3', name: '计量资料' },
  242. { key: 'tab4', name: '关联资料' },
  243. { key: 'tab5', name: '元数据' },
  244. { key: 'tab6', name: '验签包' },
  245. ])
  246. const tabTypeChange = ({ key }) => {
  247. tabTypeKey.value = key
  248. }
  249. const cscTableLoading = ref(false)
  250. //卷内目录
  251. const cscTableColumn1 = [
  252. { key: 'name', name: '卷内文件题名', align: 'center' },
  253. ]
  254. const cscTableData1 = ref([])
  255. //获取卷内文件数据
  256. const getArchiveFileListData = async ()=>{
  257. const { error, code, msg, data } = await archiveQueryApi.getArchiveFileList({
  258. id: fileId.value, //案卷id
  259. })
  260. //处理返回数据
  261. if (!error && code === 200) {
  262. fileInfo.value.pageNumber = data.pageNumber
  263. cscTableData1.value = getArrValue(data['approvalFileList'])
  264. if (cscTableData1.value.length > 0) {
  265. checkmetaFileId.value = cscTableData1.value[0].id
  266. getmetaInfo()
  267. }
  268. } else {
  269. cscTableData1.value = []
  270. }
  271. }
  272. const ishowFile = ref(false)
  273. const pdfLoading = ref(false)
  274. const pdfUrl = ref('')
  275. const checkId = ref('')
  276. const checkmetaFileId = ref('')
  277. const ishowAllopinion = ref(false)
  278. const saveTagInput = ref(null)
  279. const contentClick = ()=>{
  280. console.log(11111)
  281. ishowAllopinion.value = false
  282. nextTick(()=>{
  283. saveTagInput.value?.focus()
  284. })
  285. }
  286. const changePdf = (row)=>{
  287. console.log(row, 'row')
  288. ishowFile.value = true
  289. pdfLoading.value = false
  290. pdfUrl.value = row['pdfFileUrl'] || ''
  291. checkId.value = row.id
  292. checkmetaFileId.value = row.id
  293. getmetaInfo()
  294. ishowAllopinion.value = true
  295. getopiniondata()
  296. if (pdfUrl.value && pdfUrl?.value.length > 0) {
  297. setTimeout(() => {
  298. serReviewFile()
  299. }, 30000)
  300. }
  301. }
  302. //设置为已查阅
  303. const serReviewFile = async ()=>{
  304. const { error, code, data, msg } = await initialgApi.updateInspectStatus({
  305. archiveId: fileInfo.value.id,
  306. projectId:projectId.value,
  307. })
  308. }
  309. const opid = ref('')
  310. //获取抽检意见
  311. const getopiniondata = async ()=>{
  312. const { error, code, data, msg } = await initialgApi.getArchiveFileOpinion({
  313. fileId: checkId.value,
  314. projectId:projectId.value,
  315. })
  316. if (!error && code === 200) {
  317. console.log(data, 'data')
  318. let opiniondata = getObjValue(data)
  319. reform.value.content = opiniondata?.allOpinion
  320. reform.value.type = opiniondata?.allOpinion?.length > 0 ? true : false
  321. reform.value.myOpinion = opiniondata?.opinion
  322. opid.value = opiniondata?.id
  323. }
  324. }
  325. //获取元数据信息
  326. //获取元数据
  327. const cscmetaTableLoading = ref(false)
  328. const cscmetaDataTabledata = ref([])
  329. const getmetaInfo = async (fileId)=>{
  330. cscmetaTableLoading.value = true
  331. const { error, code, data } = await tuningApi.getMetadataFileByid({
  332. fileId: checkmetaFileId.value,
  333. })
  334. cscmetaTableLoading.value = false
  335. if (!error && code === 200) {
  336. cscmetaDataTabledata.value = getArrValue(data)
  337. } else {
  338. cscmetaDataTabledata.value = []
  339. }
  340. }
  341. //竣工资料
  342. const cscTableColumn2 = [
  343. { key: 'name', name: '竣工图资料', align: 'center' },
  344. ]
  345. const cscTableData2 = ref([
  346. // {id: 1, name: 'S6-3-2-Q-8-32 箱梁梁底支座垫石钢筋构造图111-箱梁梁底调平垫块及支座垫石钢筋构造图.pdf'},
  347. // {id: 2, name: 'J6-3-2-Q-8-34 桥墩一般构造图(1-9).pdf'},
  348. // {id: 3, name: 'S6-3-2-Q-8-32 箱梁梁底支座垫石钢筋构造图111-箱梁梁底调平垫块及支座垫石钢筋构造图.pdf'},
  349. // {id: 4, name: 'J6-3-2-Q-8-34 桥墩一般构造图(1-9).pdf'},
  350. // {id: 5, name: 'J6-3-2-Q-8-34 桥墩一般构造图(1-9).pdf'},
  351. // {id: 6, name: 'S6-3-2-Q-8-32 箱梁梁底支座垫石钢筋构造图111-箱梁梁底调平垫块及支座垫石钢筋构造图.pdf'},
  352. // {id: 7, name: 'S6-3-2-Q-8-32 箱梁梁底支座垫石钢筋构造图111-箱梁梁底调平垫块及支座垫石钢筋构造图.pdf'}
  353. ])
  354. //计量资料
  355. const cscTableColumn3 = [
  356. { key: 'name', name: '计量资料', align: 'center' },
  357. ]
  358. const cscTableData3 = ref([
  359. // {id: 1, name: 'ZB2-17.pdf'},
  360. // {id: 2, name: 'ZB2-18.pdf'},
  361. // {id: 3, name: 'ZB2-19.pdf'},
  362. // {id: 4, name: 'ZB2-20.pdf'},
  363. // {id: 5, name: 'ZB2-21.pdf'},
  364. // {id: 6, name: 'ZB2-22.pdf'},
  365. // {id: 7, name: 'ZB2-23.pdf'}
  366. ])
  367. //计量资料
  368. const cscTableColumn4 = [
  369. { key: 'name', name: '关联文件', align: 'center' },
  370. ]
  371. const cscTableData4 = ref([
  372. // {id: 1, name: 'xxxxxxxxxxxxxxxxxxx.pdf', tag: '开工'},
  373. // {id: 2, name: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.pdf', tag: '工序'},
  374. // {id: 3, name: 'xxxxxxxxxxxxxxxxxxxxxxxxxx.pdf', tag: '评定'},
  375. // {id: 4, name: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx.pdf', tag: '交工'},
  376. // {id: 5, name: '', tag: '抽检'},
  377. // {id: 6, name: '', tag: '隐蔽'}
  378. ])
  379. //验签包
  380. const cscTableColumn5 = [
  381. { key: 'user', name: '签名者' },
  382. { key: 'time', name: '签名时间' },
  383. { key: 'val', name: '摘要' },
  384. ]
  385. const cscTableColumn51 = [
  386. { key: 'user', name: '签名者', width: 300 },
  387. { key: 'time', name: '签名时间', width: 200 },
  388. { key: 'val', name: '摘要' },
  389. ]
  390. const cscTableData5 = ref([
  391. // {
  392. // id: 1,
  393. // user: '051@王海军@0422431197502148151@1',
  394. // time: '2022-05-13 08:54:15',
  395. // val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'
  396. // },
  397. // {
  398. // id: 2,
  399. // user: '051@王海军@0422431197502148151@1',
  400. // time: '2022-05-13 08:54:15',
  401. // val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'
  402. // },
  403. // {
  404. // id: 3,
  405. // user: '051@王海军@0422431197502148151@1',
  406. // time: '2022-05-13 08:54:15',
  407. // val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'
  408. // },
  409. // {
  410. // id: 4,
  411. // user: '051@王海军@0422431197502148151@1',
  412. // time: '2022-05-13 08:54:15',
  413. // val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'
  414. // },
  415. // {
  416. // id: 5,
  417. // user: '051@王海军@0422431197502148151@1',
  418. // time: '2022-05-13 08:54:15',
  419. // val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'
  420. // },
  421. // {
  422. // id: 6,
  423. // user: '051@王海军@0422431197502148151@1',
  424. // time: '2022-05-13 08:54:15',
  425. // val: '签名有效。由051@王海军@0422431197502148151@1签名。自应用本签名以来,文档未被修改过。签名者身份有效。'
  426. // }
  427. ])
  428. //抽检意见
  429. const reform = ref({
  430. type: false, content: '',
  431. })
  432. //显示右侧目录
  433. const isCarryDataShow = ref(true)
  434. const onCarryDataShow = () => {
  435. isCarryDataShow.value = !isCarryDataShow.value
  436. }
  437. //使用弹窗查看数据
  438. const cscTableDataModal = ref(false)
  439. const cscTableDataTitle = ref('')
  440. //显示弹窗
  441. const cscTableDataModalShow = () => {
  442. const key = tabTypeKey.value
  443. if (key === 'tab5') {
  444. cscTableDataTitle.value = '元数据'
  445. } else if (key === 'tab6') {
  446. cscTableDataTitle.value = '验签包'
  447. }
  448. cscTableDataModal.value = true
  449. }
  450. //关闭弹窗
  451. const cscTableDataModalClose = () => {
  452. cscTableDataModal.value = false
  453. }
  454. //关闭抽查
  455. const onCarrySpotChecksDrawerClose = () => {
  456. isDrawer.value = false
  457. ishowFile.value = false
  458. checkmetaFileId.value = ''
  459. checkId.value = ''
  460. emit('close', false)
  461. }
  462. const checkClick = () => {
  463. emit('check')
  464. }
  465. const submitLoading = ref(false)
  466. const submitOpinion = async ()=>{
  467. submitLoading.value = true
  468. const { error, code, data, msg } = await initialgApi.saveInspect({
  469. fileId: checkId.value,
  470. archiveId:fileInfo.value.id,
  471. // opinion:reform.value.content,
  472. opinion:reform.value.myOpinion,
  473. projectId:projectId.value,
  474. userId:userInfo.value.user_id,
  475. archiveName:fileInfo.value.name,
  476. id: opid.value || null,
  477. })
  478. submitLoading.value = false
  479. if (!error && code === 200) {
  480. window.$message.success(msg)
  481. serReviewFile()
  482. }
  483. // addOpinion
  484. }
  485. //截取日期
  486. const splitDate = (val)=>{
  487. if (val) {
  488. return val?.substring(0, 10)
  489. } else {
  490. return ''
  491. }
  492. }
  493. //查阅案卷pdf
  494. const viewPdf = async (id) => {
  495. window.$message?.info('预览案卷需要合并pdf,需要一点时间')
  496. pdfLoading.value = true
  497. const { error, code, data, msg } = await tuningApi.printArchive({
  498. id: id,
  499. })
  500. pdfLoading.value = false
  501. if (!error && code === 200) {
  502. if (data) {
  503. return data
  504. } else {
  505. window.$message?.warning('文件不存在')
  506. }
  507. }
  508. }
  509. </script>
  510. <style lang="scss" scoped>
  511. .hc-carry-spot-checks-pdf {
  512. position: relative;
  513. flex: 1 1 auto;
  514. height: 100%;
  515. transition: 0.2s;
  516. .hc-csc-pdf-btn {
  517. position: absolute;
  518. right: 0;
  519. top: 50%;
  520. color: white;
  521. font-size: 25px;
  522. z-index: 111;
  523. cursor: pointer;
  524. width: 36px;
  525. height: 40px;
  526. display: flex;
  527. padding-left: 6px;
  528. align-items: center;
  529. justify-content: center;
  530. border-radius: 150px 0 0 150px;
  531. background: linear-gradient(to right, var(--el-color-primary-light-5), var(--el-color-primary), var(--el-color-primary-dark-2));
  532. box-shadow: -2px 0 10px 0 rgba(32, 37, 50, 0.03), 0 10px 21px 20px rgba(32, 37, 50, 0.03);
  533. background-size: 200%;
  534. transition: background-position 0.5s;
  535. &:hover {
  536. background-position: 100% 0;
  537. }
  538. }
  539. }
  540. .hc-carry-spot-checks-data {
  541. position: relative;
  542. height: 100%;
  543. width: 480px;
  544. padding-left: 14px;
  545. border-left: 1px solid #e9e9e9;
  546. transition: 0.2s;
  547. .hc-csc-switch {
  548. position: relative;
  549. margin-bottom: 10px;
  550. }
  551. .hc-csc-info-box {
  552. position: relative;
  553. background: #E7EEF4;
  554. border-radius: 10px;
  555. padding: 12px;
  556. height: 244px;
  557. margin-bottom: 20px;
  558. .hc-info-text-item {
  559. position: relative;
  560. font-size: 14px;
  561. display: flex;
  562. align-items: flex-start;
  563. .title {
  564. font-weight: bold;
  565. }
  566. .content {
  567. flex: 1;
  568. position: relative;
  569. color: #101010;
  570. }
  571. }
  572. .hc-info-text-item + .hc-info-text-item {
  573. margin-top: 8px;
  574. }
  575. }
  576. .hc-csc-data-box {
  577. position: relative;
  578. background: #E7EEF4;
  579. border-radius: 10px;
  580. padding: 12px;
  581. height: calc(100% - 562px);
  582. margin-bottom: 16px;
  583. .hc-csc-associated-row {
  584. position: relative;
  585. text-align: left;
  586. display: flex;
  587. align-items: center;
  588. }
  589. .hc-table-info-btn {
  590. position: absolute;
  591. right: -5px;
  592. top: -12px;
  593. color: white;
  594. font-size: 20px;
  595. z-index: 111;
  596. cursor: pointer;
  597. border-radius: 50px;
  598. width: 34px;
  599. height: 34px;
  600. display: flex;
  601. align-items: center;
  602. justify-content: center;
  603. background: linear-gradient(to right, var(--el-color-primary-light-5), var(--el-color-primary), var(--el-color-primary-dark-2));
  604. box-shadow: -2px 0 10px 0 rgba(32, 37, 50, 0.03), 0 10px 21px 20px rgba(32, 37, 50, 0.03);
  605. background-size: 200%;
  606. transition: background-position 0.5s;
  607. &:hover {
  608. background-position: 100% 0;
  609. }
  610. }
  611. }
  612. .hc-csc-action-box {
  613. position: relative;
  614. background: white;
  615. border-radius: 10px;
  616. padding: 12px;
  617. height: 240px;
  618. .header-box {
  619. position: relative;
  620. display: flex;
  621. align-items: center;
  622. .title {
  623. flex: 1;
  624. color: #9A9A9A;
  625. font-size: 15px;
  626. }
  627. }
  628. .textarea-box {
  629. margin-top: 12px;
  630. }
  631. .btn-box {
  632. position: relative;
  633. margin-top: 20px;
  634. text-align: center;
  635. }
  636. }
  637. }
  638. </style>
  639. <style lang="scss">
  640. .hc-carry-spot-checks-target.el-overlay {
  641. position: absolute;
  642. margin: -24px;
  643. height: revert;
  644. background-color: transparent;
  645. .hc-drawer-box.el-drawer {
  646. --el-drawer-bg-color: transparent;
  647. .el-drawer__body {
  648. padding: 24px;
  649. overflow: hidden;
  650. .el-card__body {
  651. padding: 10px;
  652. }
  653. .hc-card-main-box {
  654. display: flex;
  655. }
  656. }
  657. }
  658. }
  659. .hc-csc-action-box .btn-box {
  660. .el-button + .el-button {
  661. margin-left: 50px;
  662. }
  663. }
  664. </style>