TaskOnlinePipeEquipmentList.vue 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404
  1. <route lang="json5" type="page">
  2. {
  3. layout: 'default',
  4. style: {
  5. navigationBarTitleText: '管线集列表(分配项目)',
  6. navigationStyle: 'custom',
  7. disableScroll: true,
  8. 'app-plus': {
  9. bounce: 'none',
  10. },
  11. },
  12. }
  13. </route>
  14. <template>
  15. <view class="equipment-list-container">
  16. <NavBar title="管道工程列表" />
  17. <scroll-view
  18. class="list-scroll"
  19. scroll-y
  20. refresher-enabled
  21. :refresher-triggered="refreshing"
  22. @refresherrefresh="onRefresh"
  23. >
  24. <wd-collapse v-model="expandedNames" @change="handleCollapseChange">
  25. <wd-collapse-item
  26. v-for="pipeSet in pipeSetList"
  27. :key="pipeSet.id"
  28. :title="pipeSet.equipName + '(' + pipeSet.productNo + ')'"
  29. :name="pipeSet.id"
  30. >
  31. <template #title>
  32. <view class="pipe-set-header" @click.stop>
  33. <view class="row">
  34. <view v-if="orderId" class="checkbox-wrapper" @click="handleSelectPipeSet(pipeSet)">
  35. <view class="checkbox" :class="{ checked: selectedPipeSetMap[pipeSet.id] }">
  36. <image
  37. v-if="selectedPipeSetMap[pipeSet.id]"
  38. class="check-icon"
  39. src="/static/images/white-check.png"
  40. mode="aspectFit"
  41. />
  42. </view>
  43. </view>
  44. <view class="cell-top-left" @click="handleSelectPipeSet(pipeSet)">
  45. <text class="equip-name">{{ pipeSet.equipName }}({{ pipeSet.projectNo }})</text>
  46. <text class="main-checker">主检人:{{ mainCheckerUser.nickname || '' }}</text>
  47. <view
  48. class="status-tag"
  49. :class="
  50. pipeSet?.taskStatus !== PressureCheckerMyTaskStatus.CONFIRMED
  51. ? 'status-pending'
  52. : 'status-done'
  53. "
  54. >
  55. <text class="status-text">
  56. {{ PressureCheckerMyTaskStatusMap[pipeSet?.taskStatus] }}
  57. </text>
  58. </view>
  59. </view>
  60. <view class="expand-arrow" @click.stop="toggleCollapse(pipeSet.id)">
  61. <image
  62. class="arrow-icon"
  63. :class="{ 'arrow-expanded': expandedNames.includes(pipeSet.id) }"
  64. :src="iconMap.ArrowRight"
  65. />
  66. </view>
  67. </view>
  68. </view>
  69. </template>
  70. <view v-if="!pipeSetChildren[pipeSet.id]" class="loading-text">加载中...</view>
  71. <view v-else-if="pipeSetChildren[pipeSet.id].length === 0" class="empty-text-small">
  72. <text>暂无下级管线</text>
  73. </view>
  74. <view v-else>
  75. <view
  76. v-for="childPipe in pipeSetChildren[pipeSet.id]"
  77. :key="childPipe.id"
  78. class="child-pipe-cell"
  79. >
  80. <view
  81. class="child-pipe-top"
  82. @click="handleSelectChildPipe(childPipe, pipeSet.id, pipeSet.mainID)"
  83. >
  84. <view class="row">
  85. <view v-if="orderId" class="checkbox-wrapper">
  86. <view class="checkbox" :class="{ checked: selectedChildPipeMap[childPipe.id] }">
  87. <image
  88. v-if="selectedChildPipeMap[childPipe.id]"
  89. class="check-icon"
  90. src="/static/images/white-check.png"
  91. mode="aspectFit"
  92. />
  93. </view>
  94. </view>
  95. <view class="cell-top-left">
  96. <text class="child-pipe-name">
  97. {{ childPipe.equipName || childPipe.pipeName || '' }}({{ childPipe.pipeNo }})
  98. </text>
  99. </view>
  100. </view>
  101. </view>
  102. <view
  103. class="child-pipe-info"
  104. @click="handleRouteToEquipmentDetail(childPipe, 'EQUIPMENT')"
  105. >
  106. <view class="info-box">
  107. <text class="info-label">
  108. 设备注册代码:
  109. <text class="info-value">{{ childPipe.pipeRegCode || '' }}</text>
  110. </text>
  111. </view>
  112. </view>
  113. <view class="cell-bottom">
  114. <view
  115. v-if="childPipe.isClaim"
  116. class="record-btn blue-btn"
  117. @click="handleRouteToEquipmentDetail(childPipe, 'INSPECT')"
  118. >
  119. <text class="blue-btn-text">记录录入</text>
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. </wd-collapse-item>
  125. </wd-collapse>
  126. <view v-if="loading && pipeSetList.length === 0" class="loading-text">加载中...</view>
  127. <view v-if="!loading && pipeSetList.length === 0" class="empty-text">
  128. <text>暂无数据</text>
  129. </view>
  130. </scroll-view>
  131. <view v-if="orderId" class="bottom-operate">
  132. <view class="select-all" @click="handleSelectAllPipeSet">
  133. <view class="checkbox" :class="{ checked: selectAllPipeSet }">
  134. <image
  135. v-if="selectAllPipeSet"
  136. class="check-icon"
  137. src="/static/images/white-check.png"
  138. mode="aspectFit"
  139. />
  140. </view>
  141. <text class="select-all-text">全选项目</text>
  142. </view>
  143. <view class="btn-group">
  144. <button class="operate-btn blue-btn" @click="showMoreOperate = true">更多操作</button>
  145. <button
  146. class="operate-btn blue-btn"
  147. :class="{ 'btn-disabled': selectedChildPipes.length > 0 }"
  148. :style="selectedChildPipes.length > 0 ? { opacity: 0.5 } : {}"
  149. @click="selectedChildPipes.length === 0 && showCheckProjectPopup()"
  150. >
  151. 添加项目
  152. </button>
  153. </view>
  154. </view>
  155. <view v-if="showMoreOperate" class="more-operate-overlay" @click="showMoreOperate = false">
  156. <view class="more-operate-panel" :class="{ 'more-panel-show': showMoreOperate }">
  157. <view
  158. class="more-btn-item"
  159. :class="{ disabled: !canInform }"
  160. @click="canInform && createInform()"
  161. >
  162. <view class="more-btn-inner more-btn-border">
  163. <text class="more-btn-text" :style="{ color: canInform ? 'rgb(51,51,51)' : '#ccc' }">
  164. 重大问题线索
  165. </text>
  166. </view>
  167. </view>
  168. <view
  169. class="more-btn-item"
  170. :class="{ disabled: !canSuspend }"
  171. @click="canSuspend && showSuspendPopupFunc()"
  172. >
  173. <view class="more-btn-inner more-btn-border">
  174. <text class="more-btn-text" :style="{ color: canSuspend ? 'rgb(51,51,51)' : '#ccc' }">
  175. 客户拒检
  176. </text>
  177. </view>
  178. </view>
  179. <view
  180. class="more-btn-item"
  181. :class="{ disabled: !canAddInspectionplan }"
  182. @click="canAddInspectionplan && showAddInspectionplanPopup()"
  183. >
  184. <view class="more-btn-inner more-btn-border">
  185. <text
  186. class="more-btn-text"
  187. :style="{ color: canAddInspectionplan ? 'rgb(51,51,51)' : '#ccc' }"
  188. >
  189. 检验方案
  190. </text>
  191. </view>
  192. </view>
  193. <view
  194. class="more-btn-item"
  195. :class="{ disabled: !canUpdateContact }"
  196. @click="canUpdateContact && handleUpdateContact()"
  197. >
  198. <view class="more-btn-inner more-btn-border">
  199. <text
  200. class="more-btn-text"
  201. :style="{ color: canUpdateContact ? 'rgb(51,51,51)' : '#ccc' }"
  202. >
  203. 修改安全管理员
  204. </text>
  205. </view>
  206. </view>
  207. </view>
  208. </view>
  209. <view v-if="showSuspendPopup" class="popup-mask" @click="closeSuspendPopup">
  210. <view class="popup-content suspend-popup" @click.stop>
  211. <text class="popup-title">客户拒检</text>
  212. <view class="form-item">
  213. <text class="form-label">拒检类别</text>
  214. <wd-picker
  215. v-model="suspendReasonDict"
  216. :columns="refuseCategoryColumns"
  217. placeholder="请选择拒检类别"
  218. />
  219. </view>
  220. <textarea
  221. v-if="suspendReasonDict === '5'"
  222. v-model="suspendReason"
  223. class="suspend-textarea"
  224. placeholder="请输入拒绝检验原因"
  225. />
  226. <view class="popup-actions suspend-actions">
  227. <button class="action-btn cancel-btn" @click="closeSuspendPopup">取消</button>
  228. <button class="action-btn confirm-btn" @click="suspendCheck(1)">上报市局</button>
  229. <button class="action-btn warn-btn" @click="suspendCheck(0)">无需上报</button>
  230. </view>
  231. </view>
  232. </view>
  233. <view v-if="showInspectionplanPopup" class="popup-mask" @click="closeInspectionplanPopup">
  234. <view class="popup-content inspectionplan-popup" @click.stop>
  235. <text class="popup-title">添加检验方案</text>
  236. <view class="tab-row">
  237. <view
  238. :class="['tab-item', { active: inspectionPlanType === 'commPlan' }]"
  239. @click="inspectionPlanType = 'commPlan'"
  240. >
  241. 通用
  242. </view>
  243. <view
  244. :class="['tab-item', { active: inspectionPlanType === 'selfPlan' }]"
  245. @click="inspectionPlanType = 'selfPlan'"
  246. >
  247. 自编
  248. </view>
  249. </view>
  250. <view class="form-item">
  251. <text class="form-label">
  252. {{ inspectionPlanType === 'commPlan' ? '检验方案' : '模板封面' }}
  253. </text>
  254. <wd-picker
  255. custom-style="background-color: #f5f5f5;border: #d3d2d2 solid 1px;border-radius: 4px;"
  256. v-model="selectedTemplateId"
  257. :columns="templateListColumn"
  258. @confirm="onTemplateChange"
  259. />
  260. </view>
  261. <view class="form-item">
  262. <text class="form-label">检验方案名称</text>
  263. <input v-model="inspectionplanName" class="form-input" placeholder="请输入检验方案名称" />
  264. </view>
  265. <view class="popup-actions">
  266. <button class="action-btn cancel-btn" @click="closeInspectionplanPopup">取消</button>
  267. <button class="action-btn confirm-btn" @click="addInspectionplanConfirm">确定</button>
  268. </view>
  269. </view>
  270. </view>
  271. <UpdateSafetyManagerPopup
  272. v-if="showUpdateContactPopup"
  273. :safe-manager="currentSafeManager.name"
  274. :safe-manager-phone="currentSafeManager.phone"
  275. @hide="showUpdateContactPopup = false"
  276. @confirm="handleUpdateSafetyManagerConfirm"
  277. />
  278. <view
  279. v-if="showCheckProject"
  280. class="popup-mask"
  281. @click="closeCheckProjectPopup"
  282. @touchmove.stop.prevent
  283. >
  284. <view class="popup-content check-project-popup" @click.stop @touchmove.stop>
  285. <view class="popup-header">
  286. <text class="popup-title">添加检验项目</text>
  287. <text class="popup-close" @click="closeCheckProjectPopup">✕</text>
  288. </view>
  289. <PipeCheckProject
  290. v-if="showCheckProject"
  291. :propject-list="checkProjectList"
  292. :select-templates="selectTemplates"
  293. use-online="1"
  294. :equip-data="equipDataForPopup"
  295. @change="handleCheckProjectChange"
  296. @confirm="handleCheckProjectConfirm"
  297. @cancel="closeCheckProjectPopup"
  298. />
  299. </view>
  300. </view>
  301. </view>
  302. </template>
  303. <script lang="ts" setup>
  304. import { ref, computed } from 'vue'
  305. import { onLoad, onShow } from '@dcloudio/uni-app'
  306. import { pressure2NotVerifyPageApi } from '@/api/task'
  307. import { useUserStore } from '@/store/user'
  308. import {
  309. PressureCheckerMyTaskStatus,
  310. PressureCheckerMyTaskStatusMap,
  311. PressureReportType,
  312. EquipmentType,
  313. } from '@/utils/dictMap'
  314. import { getStrDictOptions } from '@/utils/dictStoreUtil'
  315. import iconMap from '@/utils/imagesMap'
  316. import dayjs from 'dayjs'
  317. import UpdateSafetyManagerPopup from '@/pages/unClaim/components/UpdateSafetyManagerPopup.vue'
  318. import { TaskOrderFuncName, requestFunc } from '@/api/ApiRouter/taskOrder'
  319. import {
  320. getPipeDetailByOrderItemId,
  321. getPipeTaskItemListByOrderId,
  322. addInspectProject,
  323. getInputIdByEquipId,
  324. } from '@/api/pipe/pipeTaskOrder'
  325. import { updateEquipPipeSafetyManager } from '@/api/pipe/pipeEquip'
  326. import NavBar from '@/components/NavBar/NavBar.vue'
  327. import PipeCheckProject from '@/pages/taskOnline/components/PipeCheckProject.vue'
  328. interface PopupData {
  329. text: string
  330. isClaim: boolean
  331. }
  332. defineOptions({ name: 'TaskOnlinePipeEquipmentList' })
  333. const userStore = useUserStore()
  334. const userInfo = computed(() => userStore.userInfo)
  335. const orderId = ref('')
  336. const orderNo = ref('')
  337. const pipeSetList = ref<any[]>([])
  338. const loading = ref(false)
  339. const refreshing = ref(false)
  340. const expandedNames = ref<string[]>([])
  341. const pipeSetChildren = ref<Record<string, any[]>>({})
  342. const pipeSetChildrenLoading = ref<Record<string, boolean>>({})
  343. const selectedPipeSets = ref<any[]>([])
  344. const selectedPipeSetMap = ref<Record<string, boolean>>({})
  345. const selectAllPipeSet = ref(false)
  346. const selectedChildPipes = ref<any[]>([])
  347. const selectedChildPipeMap = ref<Record<string, boolean>>({})
  348. const canInform = ref(false)
  349. const canSuspend = ref(false)
  350. const canAddInspectionplan = ref(false)
  351. const canUpdateContact = ref(false)
  352. const showMoreOperate = ref(false)
  353. const showSuspendPopup = ref(false)
  354. const suspendReason = ref('')
  355. const suspendReasonDict = ref('')
  356. const refuseCategoryColumns = computed(() => {
  357. return getStrDictOptions('refuseInspectedCategory').value.map((item: any) => ({
  358. label: item.label,
  359. value: item.value,
  360. }))
  361. })
  362. const showInspectionplanPopup = ref(false)
  363. const inspectionPlanType = ref('commPlan')
  364. const inspectionplanName = ref('')
  365. const selectedTemplate = ref<any>(null)
  366. const selectedTemplateId = ref('')
  367. const templateList = ref<any[]>([])
  368. const optionsResult = ref<any[]>([])
  369. const filteredTemplateList = computed(() => {
  370. if (inspectionPlanType.value === 'commPlan') {
  371. return optionsResult.value.filter(
  372. (item) => item.reportType === 900 && (item.pjType === 3 || item.pjType === 5),
  373. )
  374. } else if (inspectionPlanType.value === 'selfPlan') {
  375. return optionsResult.value.filter((item) => item.reportType === 500 && item.pjType === 5)
  376. }
  377. return []
  378. })
  379. const templateListColumn = computed(() => [
  380. filteredTemplateList.value.map((item) => ({ label: item.tbName, value: item.id })),
  381. ])
  382. const showUpdateContactPopup = ref(false)
  383. const currentItem = ref<any>({})
  384. const showCheckProject = ref(false)
  385. const checkProjectList = ref<any[][]>([])
  386. const selectTemplates = ref<Record<string, any[]>>({})
  387. const currentSelectedItems = ref<any[]>([])
  388. const equipDataForPopup = ref<any>({})
  389. const mainCheckerUser = ref<any>({})
  390. const currentSafeManager = computed(() => ({
  391. name: currentItem.value?.securityMan || '',
  392. phone: currentItem.value?.securityManPhone || '',
  393. }))
  394. onLoad((options: any) => {
  395. orderId.value = options?.orderId || ''
  396. orderNo.value = options?.orderNo || ''
  397. })
  398. onShow(() => {
  399. fetchPipeSetList()
  400. })
  401. const fetchPipeSetList = async () => {
  402. loading.value = true
  403. try {
  404. const res = await getPipeTaskItemListByOrderId({ id: orderId.value })
  405. pipeSetList.value = res?.data?.orderItems || []
  406. mainCheckerUser.value = res?.data?.manager
  407. } catch (error) {
  408. console.error('获取管道工程列表失败:', error)
  409. } finally {
  410. loading.value = false
  411. }
  412. }
  413. const onRefresh = async () => {
  414. refreshing.value = true
  415. await fetchPipeSetList()
  416. refreshing.value = false
  417. }
  418. const refreshList = async () => {
  419. await fetchPipeSetList()
  420. // 刷新已展开的管道设备的子数据
  421. const expanded = expandedNames.value
  422. if (expanded.length) {
  423. pipeSetChildren.value = {}
  424. await Promise.all(expanded.map((id) => fetchPipeSetChildren(id)))
  425. }
  426. }
  427. const handleCollapseChange = ({ value }: any) => {
  428. const newNames = Array.isArray(value) ? value : [value]
  429. const added = newNames.find((name: string) => !expandedNames.value.includes(name))
  430. expandedNames.value = newNames
  431. if (added && !pipeSetChildren.value[added]) {
  432. fetchPipeSetChildren(added)
  433. }
  434. }
  435. const toggleCollapse = (pipeSetId: string) => {
  436. const isExpanded = expandedNames.value.includes(pipeSetId)
  437. if (isExpanded) {
  438. expandedNames.value = expandedNames.value.filter((id) => id !== pipeSetId)
  439. } else {
  440. expandedNames.value = [...expandedNames.value, pipeSetId]
  441. if (!pipeSetChildren.value[pipeSetId]) {
  442. fetchPipeSetChildren(pipeSetId)
  443. }
  444. }
  445. }
  446. const fetchPipeSetChildren = async (pipeSetId: string) => {
  447. pipeSetChildrenLoading.value[pipeSetId] = true
  448. try {
  449. const pipeSet = pipeSetList.value.find((item) => item.id === pipeSetId)
  450. const mainID = pipeSet?.mainID || pipeSetId
  451. const res = await getPipeDetailByOrderItemId({ orderItemId: mainID })
  452. pipeSetChildren.value[pipeSetId] = res?.data || []
  453. } catch (error) {
  454. console.error('获取管道设备失败:', error)
  455. pipeSetChildren.value[pipeSetId] = []
  456. } finally {
  457. pipeSetChildrenLoading.value[pipeSetId] = false
  458. }
  459. }
  460. const handleSelectPipeSet = (item: any) => {
  461. if (!orderId.value) return
  462. const isSelected = !selectedPipeSetMap.value[item.id]
  463. selectedPipeSetMap.value[item.id] = isSelected
  464. if (isSelected) {
  465. selectedPipeSets.value.push(item)
  466. } else {
  467. selectedPipeSets.value = selectedPipeSets.value.filter((ele) => ele.id !== item.id)
  468. }
  469. updateOperateStatus()
  470. selectAllPipeSet.value = selectedPipeSets.value.length === pipeSetList.value.length
  471. }
  472. const handleSelectChildPipe = (childPipe: any, pipeSetId: string, orderItemId: string) => {
  473. if (!orderId.value) return
  474. const isSelected = !selectedChildPipeMap.value[childPipe.id]
  475. selectedChildPipeMap.value[childPipe.id] = isSelected
  476. if (isSelected) {
  477. selectedChildPipes.value.push({ ...childPipe, pipeSetId, orderItemId })
  478. } else {
  479. selectedChildPipes.value = selectedChildPipes.value.filter((ele) => ele.id !== childPipe.id)
  480. }
  481. updateOperateStatus()
  482. }
  483. const handleSelectAllPipeSet = () => {
  484. const newSelectAll = !selectAllPipeSet.value
  485. selectAllPipeSet.value = newSelectAll
  486. selectedPipeSets.value = []
  487. const newMap: Record<string, boolean> = {}
  488. for (const item of pipeSetList.value) {
  489. newMap[item.id] = newSelectAll
  490. if (newSelectAll) {
  491. selectedPipeSets.value.push(item)
  492. }
  493. }
  494. selectedPipeSetMap.value = newMap
  495. updateOperateStatus()
  496. }
  497. const updateOperateStatus = () => {
  498. const hasChildPipeSelected = selectedChildPipes.value.length > 0
  499. if (hasChildPipeSelected) {
  500. canInform.value = false
  501. canAddInspectionplan.value = false
  502. canUpdateContact.value = false
  503. canSuspend.value = selectedChildPipes.value.length >= 1
  504. } else {
  505. canInform.value = selectedPipeSets.value.length === 1
  506. canAddInspectionplan.value = selectedPipeSets.value.length >= 1
  507. canUpdateContact.value = selectedPipeSets.value.length === 1
  508. canSuspend.value = false
  509. }
  510. }
  511. const initSelect = () => {
  512. selectedPipeSets.value = []
  513. selectedPipeSetMap.value = {}
  514. selectAllPipeSet.value = false
  515. selectedChildPipes.value = []
  516. selectedChildPipeMap.value = {}
  517. updateOperateStatus()
  518. }
  519. const showCheckProjectPopup = async () => {
  520. if (selectedChildPipes.value.length) {
  521. return uni.showToast({ title: '选中管道设备时不可添加项目', icon: 'error' })
  522. }
  523. if (!selectedPipeSets.value.length) {
  524. return uni.showToast({ title: '请先选择管道工程', icon: 'error' })
  525. }
  526. try {
  527. uni.showLoading({ title: '加载中...' })
  528. const firstSelectedPipeSet = selectedPipeSets.value[0]
  529. if (firstSelectedPipeSet) {
  530. equipDataForPopup.value = {
  531. taskOrder: {
  532. id: orderId.value,
  533. checkType: firstSelectedPipeSet.checkType,
  534. },
  535. taskOrderItem: firstSelectedPipeSet,
  536. reportList: firstSelectedPipeSet.reportRespVOList || [],
  537. }
  538. }
  539. const projectList: any[][] = []
  540. for (const item of selectedPipeSets.value) {
  541. if (item.reportRespVOList || item.reportDOList) {
  542. projectList.push(item.reportRespVOList || item.reportDOList)
  543. }
  544. }
  545. checkProjectList.value = projectList
  546. uni.hideLoading()
  547. } catch (error) {
  548. uni.hideLoading()
  549. console.error('加载管道工程详情失败:', error)
  550. return uni.showToast({ title: '加载失败', icon: 'error' })
  551. }
  552. selectTemplates.value = {}
  553. currentSelectedItems.value = []
  554. showCheckProject.value = true
  555. }
  556. const closeCheckProjectPopup = () => {
  557. showCheckProject.value = false
  558. currentSelectedItems.value = []
  559. }
  560. const handleCheckProjectChange = (selectedItems: any[]) => {
  561. currentSelectedItems.value = selectedItems
  562. }
  563. const handleCheckProjectConfirm = async (itemList: any[]) => {
  564. const reqList = []
  565. selectedPipeSets.value.forEach((item: any) => {
  566. itemList.forEach((project: any) => {
  567. reqList.push({
  568. connectId: project.connectId,
  569. fee: project.fee,
  570. templateId: project.templateId,
  571. type: project.type,
  572. orderItemId: item.mainID,
  573. })
  574. })
  575. })
  576. closeCheckProjectPopup()
  577. uni.showLoading({ title: '提交中...' })
  578. try {
  579. await addInspectProject({
  580. itemList: reqList,
  581. type: 200,
  582. orderId: orderId.value,
  583. })
  584. initSelect()
  585. await fetchPipeSetList()
  586. } catch (error) {
  587. console.error('添加检验项目失败:', error)
  588. uni.showToast({ title: '添加项目失败', icon: 'error' })
  589. } finally {
  590. uni.hideLoading()
  591. }
  592. }
  593. const showSuspendPopupFunc = () => {
  594. const networkType = uni.getNetworkType?.()
  595. if (networkType === 'none') {
  596. return uni.showToast({ title: '当前网络连接不可用,请检查网络设置后重新操作', icon: 'error' })
  597. }
  598. if (!selectedChildPipes.value.length) {
  599. return uni.showToast({ title: '请先选择管道设备', icon: 'error' })
  600. }
  601. showMoreOperate.value = false
  602. suspendReasonDict.value = ''
  603. suspendReason.value = ''
  604. showSuspendPopup.value = true
  605. }
  606. const closeSuspendPopup = () => {
  607. showSuspendPopup.value = false
  608. suspendReasonDict.value = ''
  609. suspendReason.value = ''
  610. }
  611. const suspendCheck = async (flag: number) => {
  612. if (!suspendReasonDict.value) {
  613. return uni.showToast({ title: '请选择拒检类别', icon: 'error' })
  614. }
  615. if (suspendReasonDict.value === '5' && !suspendReason.value.trim()) {
  616. return uni.showToast({ title: '请输入拒绝检验原因', icon: 'error' })
  617. }
  618. uni.showLoading({ title: '加载中' })
  619. try {
  620. const reqData = {
  621. orderItemDetails: selectedChildPipes.value.map((item: any) => ({
  622. id: item.id,
  623. equipPipeId: item.orderItemId,
  624. })),
  625. reason: suspendReason.value,
  626. reasonDict: suspendReasonDict.value,
  627. flag,
  628. }
  629. const result = await requestFunc(
  630. TaskOrderFuncName.BatchSuspendEquip,
  631. EquipmentType.PIPE,
  632. reqData,
  633. )
  634. uni.hideLoading()
  635. if (result?.code === 0) {
  636. initSelect()
  637. refreshList()
  638. uni.showToast({ title: '中止检验成功', icon: 'success' })
  639. uni.$emit('RefreshOrder')
  640. } else {
  641. const msg = result?.msg || '中止检验失败'
  642. uni.showToast({ title: msg, icon: 'error' })
  643. }
  644. } catch (error) {
  645. uni.showToast({ title: '中止检验失败', icon: 'error' })
  646. } finally {
  647. uni.hideLoading()
  648. closeSuspendPopup()
  649. }
  650. }
  651. const createInform = async () => {
  652. const networkType = uni.getNetworkType?.()
  653. if (networkType === 'none') {
  654. return uni.showToast({ title: '无网络连接,请联网重试' })
  655. }
  656. if (!orderId.value) return
  657. if (selectedPipeSets.value.length !== 1) {
  658. return uni.showToast({ title: '只能选择一个管道工程添加重大问题线索', icon: 'error' })
  659. }
  660. const selectedPipeSet = selectedPipeSets.value[0]
  661. const majorIssue = selectedPipeSet.reportRespVOList?.find(
  662. (item: any) => item.reportType == PressureReportType.MAINQUESTION,
  663. )
  664. if (majorIssue) {
  665. return uni.showToast({ title: '该管道工程已添加了重大问题线索', icon: 'error' })
  666. }
  667. uni.showLoading({ title: '提交中...', mask: true })
  668. try {
  669. const orderFormResp = await requestFunc(TaskOrderFuncName.GetOrderForm, EquipmentType.PIPE, {
  670. orderId: orderId.value,
  671. businessType: 400,
  672. orderItemId: selectedPipeSet.mainID,
  673. })
  674. const templateId = orderFormResp?.data?.templateId || ''
  675. const reqData = {
  676. orderFormEnterReqVO: {
  677. businessType: 400,
  678. modifiedReason: '',
  679. orderId: orderId.value,
  680. orderItemId: selectedPipeSet.mainID,
  681. },
  682. orderId: orderId.value,
  683. orderItemId: selectedPipeSet.mainID,
  684. prepareId: userInfo.value?.id || '',
  685. prepareName: userInfo.value?.nickname || '',
  686. templateId: templateId,
  687. }
  688. const addMajorIssueResp = await requestFunc(
  689. TaskOrderFuncName.AddMajorIssues,
  690. EquipmentType.PIPE,
  691. reqData,
  692. )
  693. if (addMajorIssueResp?.code !== 0) {
  694. return uni.showToast({ title: addMajorIssueResp?.msg || '操作失败', icon: 'error' })
  695. }
  696. const refId = addMajorIssueResp?.data || ''
  697. uni.navigateTo({
  698. url: `/pages/editor/mainQuestionEditor?templateId=${templateId}&refId=${refId}`,
  699. })
  700. } catch (error) {
  701. uni.hideLoading()
  702. uni.showToast({ title: '操作失败', icon: 'error' })
  703. } finally {
  704. uni.hideLoading()
  705. }
  706. }
  707. const showAddInspectionplanPopup = async () => {
  708. if (!canAddInspectionplan.value) {
  709. if (selectedChildPipes.value.length) {
  710. return uni.showToast({ title: '选中管道设备时不可添加检验方案', icon: 'error' })
  711. }
  712. return uni.showToast({ title: '请先选择管道工程', icon: 'error' })
  713. }
  714. showMoreOperate.value = false
  715. showInspectionplanPopup.value = true
  716. inspectionPlanType.value = 'commPlan'
  717. inspectionplanName.value = ''
  718. selectedTemplate.value = null
  719. try {
  720. const result = await pressure2NotVerifyPageApi({
  721. type: '6',
  722. reportType: 600,
  723. status: 200,
  724. pageNo: 1,
  725. pageSize: 9999,
  726. })
  727. optionsResult.value = result?.data || []
  728. } catch (error) {
  729. console.error('获取模板列表失败:', error)
  730. }
  731. }
  732. const closeInspectionplanPopup = () => {
  733. showInspectionplanPopup.value = false
  734. }
  735. const onTemplateChange = (selected) => {
  736. selectedTemplate.value = selected.selectedItems.label
  737. selectedTemplateId.value = selected.selectedItems.value
  738. }
  739. const addInspectionplanConfirm = async () => {
  740. if (!selectedTemplate.value) {
  741. return uni.showToast({ title: '请选择模板封面', icon: 'error' })
  742. }
  743. if (!inspectionplanName.value.trim()) {
  744. return uni.showToast({ title: '请输入检验方案名称', icon: 'error' })
  745. }
  746. closeInspectionplanPopup()
  747. uni.showLoading({ title: '提交中...', mask: true })
  748. try {
  749. const reqData = {
  750. orderId: orderId.value,
  751. orderItemIds: selectedPipeSets.value.map((item) => item.mainID),
  752. prepareId: userInfo.value?.id || '',
  753. prepareJson: JSON.stringify({
  754. prepareName: userInfo.value?.nickname || '',
  755. prepareDate: dayjs().format('YYYY年MM月DD日'),
  756. }),
  757. prepareName: userInfo.value?.nickname || '',
  758. reportName: inspectionplanName.value.trim(),
  759. templateId: selectedTemplateId.value,
  760. }
  761. const res = await requestFunc(TaskOrderFuncName.AddMajorIssues, EquipmentType.PIPE, reqData)
  762. if (res?.code !== 0) {
  763. return uni.showToast({ title: res?.msg || '操作失败', icon: 'error' })
  764. }
  765. uni.navigateTo({
  766. url: `/pages/editor/inspectionPlanEditor?templateId=${selectedTemplateId.value}&refId=${res?.data || ''}`,
  767. })
  768. } catch (error) {
  769. uni.hideLoading()
  770. uni.showToast({ title: '操作失败', icon: 'error' })
  771. }
  772. }
  773. const handleUpdateContact = () => {
  774. const current = selectedPipeSets.value[0]
  775. currentItem.value = current || {}
  776. showMoreOperate.value = false
  777. showUpdateContactPopup.value = true
  778. }
  779. const handleUpdateSafetyManagerConfirm = async (params: { name: string; phone: string }) => {
  780. if (selectedPipeSets.value.length < 1) {
  781. return uni.showToast({ title: '请选择管道工程', icon: 'error' })
  782. }
  783. try {
  784. uni.showLoading({ title: '提交中...' })
  785. const selectedPipeSet = selectedPipeSets.value[0]
  786. const results = await updateEquipPipeSafetyManager({
  787. id: selectedPipeSet.id,
  788. securityMan: params.name,
  789. securityManPhone: params.phone,
  790. })
  791. uni.hideLoading()
  792. const isSuccess = results?.code === 0
  793. if (isSuccess) {
  794. uni.showToast({ title: '修改成功', icon: 'success' })
  795. showUpdateContactPopup.value = false
  796. initSelect()
  797. await refreshList()
  798. } else {
  799. uni.showToast({ title: '修改失败', icon: 'none' })
  800. }
  801. } catch (error) {
  802. uni.hideLoading()
  803. console.error('修改安全管理员失败:', error)
  804. uni.showToast({ title: '修改失败', icon: 'none' })
  805. }
  806. }
  807. const handleRouteToEquipmentDetail = async (item: any, pageType: string) => {
  808. uni.showLoading({ title: '加载中' })
  809. const equipPipeId = item.equipPipeId
  810. const inputIdResp = await getInputIdByEquipId({ equipId: equipPipeId })
  811. if (inputIdResp.code != 0 || inputIdResp.data == '') {
  812. uni.showToast({ title: '查找设备信息失败', icon: 'none' })
  813. return
  814. }
  815. uni.hideLoading()
  816. const inputId = inputIdResp.data
  817. uni.navigateTo({
  818. url: `/pages/equipment/detail/equipmentDetail?orderId=${orderId.value}&orderItemId=${inputId}&equipId=${equipPipeId}&pageType=${pageType}&useOnline=1&canEdit=${true}`,
  819. })
  820. }
  821. </script>
  822. <style lang="scss" scoped>
  823. .equipment-list-container {
  824. display: flex;
  825. flex-direction: column;
  826. height: 100vh;
  827. background-color: #f5f5f5;
  828. }
  829. .list-scroll {
  830. flex: 1;
  831. overflow: hidden;
  832. }
  833. .pipe-set-header {
  834. flex: 1;
  835. }
  836. .expand-arrow {
  837. display: flex;
  838. align-items: center;
  839. justify-content: center;
  840. width: 32px;
  841. height: 32px;
  842. margin-left: 8px;
  843. }
  844. .arrow-icon {
  845. width: 21px;
  846. height: 21px;
  847. }
  848. .arrow-icon.arrow-expanded {
  849. transform: rotate(90deg);
  850. }
  851. .row {
  852. display: flex;
  853. flex-direction: row;
  854. align-items: center;
  855. }
  856. .checkbox-wrapper {
  857. margin-right: 10px;
  858. }
  859. .checkbox {
  860. display: flex;
  861. align-items: center;
  862. justify-content: center;
  863. width: 18px;
  864. height: 18px;
  865. border: 1px solid rgb(187, 187, 187);
  866. border-radius: 3px;
  867. }
  868. .checkbox.checked {
  869. background-color: #2f8eff;
  870. border-color: #2f8eff;
  871. }
  872. .check-icon {
  873. width: 12px;
  874. height: 12px;
  875. }
  876. .cell-top-left {
  877. display: flex;
  878. flex: 1;
  879. flex-direction: row;
  880. flex-wrap: wrap;
  881. align-items: center;
  882. justify-content: space-between;
  883. }
  884. .equip-name {
  885. flex: 1;
  886. font-size: 16px;
  887. font-weight: bold;
  888. color: rgb(51, 51, 51);
  889. }
  890. .main-checker {
  891. flex-basis: 160px;
  892. flex-shrink: 0;
  893. font-size: 16px;
  894. font-weight: bold;
  895. color: rgb(51, 51, 51);
  896. }
  897. .status-tag {
  898. display: flex;
  899. flex-basis: 80px;
  900. flex-direction: row;
  901. flex-shrink: 0;
  902. align-items: center;
  903. justify-content: center;
  904. padding: 5px 0;
  905. border-radius: 4px;
  906. }
  907. .status-pending {
  908. background-color: rgba(230, 162, 60, 0.3);
  909. border: 1px solid rgba(230, 162, 60, 0.5);
  910. }
  911. .status-done {
  912. background-color: rgba(103, 194, 58, 0.3);
  913. border: 1px solid rgba(103, 194, 58, 0.5);
  914. }
  915. .status-text {
  916. font-size: 12px;
  917. color: rgb(202, 135, 35);
  918. }
  919. .status-done .status-text {
  920. color: rgb(80, 175, 33);
  921. }
  922. .child-pipe-cell {
  923. padding: 10px;
  924. margin-bottom: 8px;
  925. background-color: #fff;
  926. border: 1px solid #f0f0f0;
  927. border-radius: 5px;
  928. }
  929. .child-pipe-top {
  930. padding-bottom: 8px;
  931. margin-bottom: 8px;
  932. border-bottom: 1px solid rgb(244, 244, 244);
  933. }
  934. .child-pipe-name {
  935. flex: 1;
  936. font-size: 14px;
  937. font-weight: bold;
  938. color: rgb(51, 51, 51);
  939. }
  940. .child-pipe-info {
  941. display: flex;
  942. flex-direction: row;
  943. align-items: center;
  944. justify-content: space-between;
  945. margin-bottom: 8px;
  946. }
  947. .info-box {
  948. display: flex;
  949. flex: 1;
  950. flex-direction: row;
  951. flex-wrap: wrap;
  952. justify-content: space-between;
  953. padding: 8px 12px;
  954. background-color: rgb(244, 244, 244);
  955. border-radius: 5px;
  956. }
  957. .info-label {
  958. margin-top: 4px;
  959. font-size: 12px;
  960. color: rgb(108, 108, 108);
  961. }
  962. .info-value {
  963. color: rgb(51, 51, 51);
  964. }
  965. .cell-bottom {
  966. display: flex;
  967. flex-direction: row;
  968. align-items: center;
  969. justify-content: flex-end;
  970. }
  971. .claim-btn,
  972. .record-btn {
  973. display: flex;
  974. align-items: center;
  975. justify-content: center;
  976. min-width: 75px;
  977. height: 29px;
  978. padding: 0 5px;
  979. margin-left: 5px;
  980. border-radius: 3px;
  981. }
  982. .blue-btn {
  983. color: white;
  984. background-color: rgb(47, 142, 255);
  985. }
  986. .white-btn {
  987. background-color: #fff;
  988. border: 1px solid rgb(217, 217, 217);
  989. }
  990. .blue-btn-text {
  991. font-size: 12px;
  992. color: rgb(222, 238, 255);
  993. }
  994. .white-btn-text {
  995. font-size: 12px;
  996. color: rgb(59, 59, 59);
  997. }
  998. .loading-text {
  999. padding: 15px;
  1000. font-size: 14px;
  1001. color: #999;
  1002. text-align: center;
  1003. }
  1004. .empty-text-small {
  1005. display: flex;
  1006. align-items: center;
  1007. justify-content: center;
  1008. padding: 20px 0;
  1009. font-size: 13px;
  1010. color: #999;
  1011. }
  1012. .empty-text {
  1013. display: flex;
  1014. flex-direction: column;
  1015. align-items: center;
  1016. justify-content: center;
  1017. padding: 60px 0;
  1018. font-size: 14px;
  1019. color: #999;
  1020. }
  1021. .bottom-operate {
  1022. display: flex;
  1023. flex-direction: row;
  1024. align-items: center;
  1025. justify-content: space-between;
  1026. height: 68px;
  1027. padding: 8px 12px;
  1028. background-color: #fff;
  1029. border-top: 1px solid #eee;
  1030. }
  1031. .select-all {
  1032. display: flex;
  1033. flex-direction: row;
  1034. align-items: center;
  1035. }
  1036. .select-all-text {
  1037. margin-left: 6px;
  1038. font-size: 14px;
  1039. color: #333;
  1040. }
  1041. .btn-group {
  1042. display: flex;
  1043. flex-direction: row;
  1044. align-items: center;
  1045. }
  1046. .btn-group > button {
  1047. min-width: 70px;
  1048. height: 32px;
  1049. padding: 8px 4px;
  1050. margin-left: 6px;
  1051. font-size: 14px;
  1052. line-height: 1;
  1053. border: none;
  1054. border-radius: 3px;
  1055. }
  1056. .operate-btn {
  1057. display: flex;
  1058. align-items: center;
  1059. justify-content: center;
  1060. }
  1061. .popup-mask {
  1062. position: fixed;
  1063. top: 0;
  1064. right: 0;
  1065. bottom: 0;
  1066. left: 0;
  1067. z-index: 999;
  1068. display: flex;
  1069. align-items: center;
  1070. justify-content: center;
  1071. background-color: rgba(0, 0, 0, 0.5);
  1072. }
  1073. .popup-content {
  1074. width: 80%;
  1075. max-width: 320px;
  1076. padding: 20px;
  1077. background-color: #fff;
  1078. border-radius: 8px;
  1079. }
  1080. .tips-text {
  1081. display: block;
  1082. margin-bottom: 20px;
  1083. font-size: 16px;
  1084. color: #333;
  1085. text-align: center;
  1086. }
  1087. .popup-actions {
  1088. display: flex;
  1089. flex-direction: row;
  1090. justify-content: space-around;
  1091. }
  1092. .action-btn {
  1093. display: flex;
  1094. align-items: center;
  1095. justify-content: center;
  1096. width: 100px;
  1097. height: 36px;
  1098. font-size: 14px;
  1099. border: none;
  1100. border-radius: 4px;
  1101. }
  1102. .cancel-btn {
  1103. color: #666;
  1104. background-color: #f5f5f5;
  1105. }
  1106. .confirm-btn {
  1107. color: #fff;
  1108. background-color: #2f8eff;
  1109. }
  1110. .warn-btn {
  1111. color: #fff;
  1112. background-color: #e6a23c;
  1113. }
  1114. .suspend-actions {
  1115. gap: 8px;
  1116. }
  1117. .suspend-actions .action-btn {
  1118. flex: 1;
  1119. width: auto;
  1120. }
  1121. .more-operate-overlay {
  1122. position: fixed;
  1123. top: 0;
  1124. right: 0;
  1125. bottom: 0;
  1126. left: 0;
  1127. z-index: 998;
  1128. }
  1129. .more-operate-panel {
  1130. position: fixed;
  1131. right: 0;
  1132. bottom: 68px;
  1133. left: 0;
  1134. z-index: 999;
  1135. display: flex;
  1136. flex-direction: column;
  1137. overflow: hidden;
  1138. background-color: #fff;
  1139. border-radius: 5px;
  1140. box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  1141. transition: transform 0.3s ease;
  1142. transform: translateY(100%);
  1143. }
  1144. .more-panel-show {
  1145. transform: translateY(0);
  1146. }
  1147. .more-btn-item {
  1148. display: flex;
  1149. align-items: center;
  1150. justify-content: center;
  1151. padding: 0 15px 10px;
  1152. background-color: #fff;
  1153. }
  1154. .more-btn-inner {
  1155. display: flex;
  1156. align-items: center;
  1157. justify-content: center;
  1158. width: 100%;
  1159. padding-top: 10px;
  1160. }
  1161. .more-btn-border {
  1162. border-top: 1px solid #f4f5f6;
  1163. }
  1164. .more-btn-item.disabled {
  1165. opacity: 1;
  1166. }
  1167. .more-btn-text {
  1168. font-size: 14px;
  1169. color: #333;
  1170. }
  1171. .suspend-popup .popup-title,
  1172. .inspectionplan-popup .popup-title {
  1173. display: block;
  1174. margin-bottom: 15px;
  1175. font-size: 16px;
  1176. font-weight: 500;
  1177. color: #333;
  1178. text-align: center;
  1179. }
  1180. .tab-row {
  1181. display: flex;
  1182. margin-bottom: 12px;
  1183. border-radius: 4px;
  1184. overflow: hidden;
  1185. border: 1px solid #2f8eff;
  1186. }
  1187. .tab-item {
  1188. flex: 1;
  1189. padding: 8px 0;
  1190. font-size: 14px;
  1191. color: #2f8eff;
  1192. text-align: center;
  1193. background-color: #fff;
  1194. }
  1195. .tab-item.active {
  1196. color: #fff;
  1197. background-color: #2f8eff;
  1198. }
  1199. .suspend-textarea {
  1200. box-sizing: border-box;
  1201. width: 100%;
  1202. height: 80px;
  1203. padding: 8px;
  1204. margin-bottom: 15px;
  1205. font-size: 14px;
  1206. border: 1px solid #ddd;
  1207. border-radius: 4px;
  1208. }
  1209. .form-item {
  1210. display: flex;
  1211. flex-direction: column;
  1212. margin-bottom: 12px;
  1213. }
  1214. .form-label {
  1215. margin-bottom: 6px;
  1216. font-size: 14px;
  1217. color: #333;
  1218. }
  1219. .form-input {
  1220. height: 46px;
  1221. padding: 0 0 0 15px;
  1222. font-size: 14px;
  1223. background-color: #f5f5f5;
  1224. border-radius: 4px;
  1225. border: #d3d2d2 solid 1px;
  1226. }
  1227. ::deep(.wd-collapse-item) {
  1228. margin: 12px;
  1229. margin-bottom: 0;
  1230. overflow: hidden;
  1231. background-color: #fff;
  1232. border-radius: 5px;
  1233. }
  1234. ::deep(.wd-collapse-item__title) {
  1235. padding: 12px 15px;
  1236. font-size: 15px;
  1237. }
  1238. ::deep(.wd-collapse-item__title-wrapper) {
  1239. background-color: #fff;
  1240. }
  1241. ::deep(.wd-collapse-item__content) {
  1242. padding: 10px;
  1243. }
  1244. ::deep(.wd-collapse-item__arrow) {
  1245. display: none;
  1246. }
  1247. .check-project-popup {
  1248. width: 85%;
  1249. max-width: none;
  1250. height: 80vh;
  1251. padding: 0;
  1252. overflow: hidden;
  1253. }
  1254. .popup-header {
  1255. display: flex;
  1256. flex-direction: row;
  1257. align-items: center;
  1258. justify-content: space-between;
  1259. padding: 15px;
  1260. border-bottom: 1px solid #eee;
  1261. }
  1262. .popup-close {
  1263. font-size: 20px;
  1264. color: #999;
  1265. }
  1266. </style>