edit.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838
  1. <template>
  2. <view class="page inspection">
  3. <uni-nav-bar
  4. dark
  5. :fixed="true"
  6. :border="false"
  7. background-color="#004098"
  8. status-bar
  9. left-icon="left"
  10. :title="$t('inspection.editWorkOrder')"
  11. @clickLeft="navigatorBack()"
  12. />
  13. <template v-if="details.length > 0">
  14. <view class="page-top">
  15. <view class="top-content flex-row justify-between align-center">
  16. <view class="align-end">
  17. {{ details[currentTab].deviceName }}
  18. </view>
  19. <view class="align-end">
  20. <!-- 当前设备tab·所有步骤列表·当前步骤·indexId -->
  21. <span class="align-end" style="font-size: 24px">
  22. {{
  23. details[currentTab].allStepsList[
  24. details[currentTab].currentStep
  25. ].indexId
  26. }}
  27. </span>
  28. <span class="align-end"
  29. >/{{ details[currentTab].allStepsList.length }}</span
  30. >
  31. </view>
  32. </view>
  33. </view>
  34. <view class="page-content">
  35. <scroll-view
  36. class="tabs-container"
  37. :scroll-x="true"
  38. :scroll-left="tabScrollLeft"
  39. scroll-with-animation
  40. ref="scrollContainerRef"
  41. >
  42. <uv-tabs
  43. ref="tabsRef"
  44. :current="currentTab"
  45. :list="tabs"
  46. :line-color="'#0082CC'"
  47. :active-style="{ color: '#004098', fontWeight: '600' }"
  48. @click="onClickItem"
  49. >
  50. </uv-tabs>
  51. <uni-segmented-control
  52. ref="segmentedControlRef"
  53. class="justify-start"
  54. :current="currentTab"
  55. :values="tabs"
  56. :style-type="'text'"
  57. :active-color="'#0082CC'"
  58. @clickItem="onClickItem"
  59. v-if="false"
  60. >
  61. </uni-segmented-control>
  62. </scroll-view>
  63. <swiper
  64. class="swiper-container"
  65. :current="currentTab"
  66. duration="100"
  67. @change="onSwiperChanged($event)"
  68. >
  69. <swiper-item v-for="detail in details">
  70. <view class="step-section">
  71. <!-- 点击查看巡检项目 -->
  72. <view class="step-all" @click="allStepShow">
  73. {{ $t("inspection.clickView") }}
  74. {{ detail.deviceName }}
  75. {{ $t("inspection.proj") }}
  76. <view class="border"></view>
  77. </view>
  78. <!-- 巡检项 -->
  79. <view class="step-form">
  80. <view class="step-title">
  81. {{ currentStepInfo.item }}
  82. <view class="border"></view>
  83. </view>
  84. <!-- 巡检标准 -->
  85. <view class="step-standard">
  86. <span>{{ $t("inspection.standard") }}:</span>
  87. {{ currentStepInfo.standard }}
  88. </view>
  89. <!-- 巡检标准文件 -->
  90. <view class="step-standard file" v-if="currentStepInfo.urls">
  91. <view class="file-title">
  92. {{ $t("inspection.standardFile") }}
  93. </view>
  94. <view class="file-media">
  95. <video
  96. class="video"
  97. id="myVideo"
  98. :src="currentStepInfo.urls"
  99. controls
  100. v-if="
  101. currentStepInfo.urls &&
  102. currentStepInfo.urls.includes('mp4')
  103. "
  104. ></video>
  105. <uni-file-picker
  106. class="pic"
  107. file-mediatype="image"
  108. mode="grid"
  109. :auto-upload="false"
  110. :limit="1"
  111. :imageStyles="{ border: false }"
  112. v-model="currentStepInfo.urlsList"
  113. readonly
  114. v-if="
  115. currentStepInfo.urls &&
  116. (currentStepInfo.urls.includes('jpg') ||
  117. currentStepInfo.urls.includes('png'))
  118. "
  119. >
  120. <template #default>
  121. <view
  122. class="flex-col align-center justify-center"
  123. style="
  124. width: 60px;
  125. height: 60px;
  126. background-color: #f4f4f4;
  127. "
  128. >
  129. <uni-icons
  130. type="plusempty"
  131. color="#ACACAC"
  132. size="12"
  133. />
  134. </view>
  135. </template>
  136. </uni-file-picker>
  137. </view>
  138. </view>
  139. <view class="step-form-item">
  140. <!-- 是否异常 -->
  141. <view class="form-title">
  142. {{ $t("inspection.isAbnormal") }}
  143. </view>
  144. <view class="form-btns flex-row justify-center">
  145. <button
  146. type="default"
  147. class="abnormal-btn"
  148. :class="{ active: currentStepInfo.ifNormal == true }"
  149. @click="() => (currentStepInfo.ifNormal = true)"
  150. >
  151. {{ $t("inspection.normal") }}
  152. <uni-icons
  153. type="checkmarkempty"
  154. color="#004098"
  155. v-if="currentStepInfo.ifNormal == true"
  156. ></uni-icons>
  157. </button>
  158. <button
  159. type="default"
  160. class="abnormal-btn"
  161. :class="{ active: currentStepInfo.ifNormal == false }"
  162. @click="() => (currentStepInfo.ifNormal = false)"
  163. >
  164. {{ $t("inspection.abnormal") }}
  165. <uni-icons
  166. type="checkmarkempty"
  167. color="#004098"
  168. v-if="currentStepInfo.ifNormal == false"
  169. ></uni-icons>
  170. </button>
  171. </view>
  172. <!-- 异常描述 -->
  173. <view
  174. class="form-remark flex-row justify-between align-center"
  175. >
  176. <view class="form-title align-center">
  177. <span
  178. v-if="currentStepInfo.ifNormal == false"
  179. style="color: #ff3b36"
  180. >*</span
  181. >
  182. {{ $t("inspection.abnormalDesc") }}
  183. </view>
  184. <uni-easyinput
  185. style="text-align: right"
  186. type="textarea"
  187. :autoHeight="true"
  188. :inputBorder="false"
  189. :clearable="false"
  190. :styles="{ disableColor: '#fff' }"
  191. v-model="currentStepInfo.description"
  192. :placeholder="$t('operation.PleaseFillIn')"
  193. />
  194. </view>
  195. <!-- 图片 -->
  196. <view class="flex-row">
  197. <view class="form-title">
  198. {{ $t("general.picture") }}
  199. </view>
  200. <uni-file-picker
  201. file-mediatype="image"
  202. mode="grid"
  203. :auto-upload="false"
  204. :limit="1"
  205. :imageStyles="{ border: false }"
  206. v-model="currentStepInfo.picUrlList"
  207. @select="upload($event)"
  208. >
  209. <template #default>
  210. <view
  211. class="flex-col align-center justify-center"
  212. style="
  213. width: 60px;
  214. height: 60px;
  215. background-color: #f4f4f4;
  216. "
  217. >
  218. <uni-icons
  219. type="plusempty"
  220. color="#ACACAC"
  221. size="12"
  222. />
  223. </view>
  224. </template>
  225. </uni-file-picker>
  226. </view>
  227. </view>
  228. </view>
  229. <view class="step-btns flex-row justify-end align-center">
  230. <button
  231. type="primary"
  232. :plain="true"
  233. @click="onFault"
  234. v-if="currentStepInfo.ifNormal == false"
  235. >
  236. {{ $t("home.faultReporting") }}
  237. </button>
  238. <!-- 上一步 -->
  239. <button
  240. type="primary"
  241. :plain="true"
  242. v-if="currentStepInfo.indexId > 1"
  243. @click="onLast"
  244. >
  245. {{ $t("inspection.last") }}
  246. </button>
  247. <!-- 下一步 -->
  248. <button
  249. type="primary"
  250. :plain="false"
  251. v-if="currentStepInfo.indexId != detail.allStepsList.length"
  252. @click="onNext()"
  253. >
  254. {{ $t("inspection.next") }}
  255. </button>
  256. <button
  257. type="primary"
  258. :plain="false"
  259. v-if="currentStepInfo.indexId == detail.allStepsList.length"
  260. @click="onNext('finished')"
  261. >
  262. {{ $t("inspection.finish") }}
  263. </button>
  264. </view>
  265. </view>
  266. </swiper-item>
  267. </swiper>
  268. </view>
  269. </template>
  270. </view>
  271. <!-- 所有步骤弹窗 -->
  272. <uni-popup
  273. ref="allStepPopRef"
  274. background-color="#fff"
  275. type="top"
  276. borderRadius="0 0 10px 10px"
  277. >
  278. <view class="popup-content flex-col">
  279. <view class="step-route-desc" v-if="details[currentTab].routeDesc">
  280. <view class="popup-step-title">
  281. <uni-section
  282. class="desc-section"
  283. :title="details[currentTab].routeName"
  284. type="line"
  285. ></uni-section>
  286. </view>
  287. <view class="route-desc-content">
  288. {{ details[currentTab].routeDesc }}
  289. </view>
  290. <view class="step-border"></view>
  291. </view>
  292. <view
  293. class="step-all-content"
  294. :class="{ 'has-route': details[currentTab].routeDesc }"
  295. >
  296. <view class="popup-step-title">
  297. <uni-section title="巡检项" type="line"></uni-section>
  298. </view>
  299. <uni-steps
  300. :options="details[currentTab].allStepsList"
  301. active-color="#004098"
  302. active-icon="smallcircle-filled"
  303. :active="details[currentTab].currentStep"
  304. direction="column"
  305. />
  306. </view>
  307. </view>
  308. </uni-popup>
  309. </template>
  310. <script setup>
  311. import {
  312. ref,
  313. reactive,
  314. onMounted,
  315. computed,
  316. getCurrentInstance,
  317. nextTick,
  318. } from "vue";
  319. import { onLoad, onReady } from "@dcloudio/uni-app";
  320. import {
  321. getInspectOrderGet,
  322. getInspectOrderGetDetails,
  323. inspectOrderWrite,
  324. } from "@/api/inspection.js";
  325. import { useDataDictStore } from "@/store/modules/dataDict";
  326. import { reloginByUserId } from "@/utils/auth";
  327. import { uploadFile } from "@/api";
  328. // 引用全局变量$t
  329. const { appContext } = getCurrentInstance();
  330. const t = appContext.config.globalProperties.$t;
  331. // 巡检工单id
  332. const workOrderId = ref("");
  333. // 巡检工单tab列表
  334. const tabs = ref([]);
  335. // 巡检工单详情
  336. const details = ref([]);
  337. // 巡检工单详情原始数据
  338. const originalDetails = ref([]);
  339. // 获取巡检工单详情
  340. const getData = async () => {
  341. await getInspectOrderGetDetails({
  342. id: workOrderId.value,
  343. }).then((res) => {
  344. console.log("getInspectOrderGetDetails", res);
  345. // 遍历res.data数组中orderDetails数组
  346. res.data.map((item) => {
  347. console.log("🚀 ~ getData ~ item:", item);
  348. // 存放所有路径
  349. // 存放所有步骤
  350. item.allStepsList = [];
  351. // 默认当前步骤为0
  352. item.currentStep = 0;
  353. const ifNormalArr = [];
  354. item.orderDetails.map((detail) => {
  355. // 将picUrl和urls字段组成数组
  356. detail.picUrlList = [];
  357. detail.urlsList = [];
  358. if (detail.picUrl) {
  359. detail.picUrlList.push({
  360. url: detail.picUrl,
  361. });
  362. }
  363. if (detail.urls) {
  364. detail.urlsList.push({
  365. url: detail.urls,
  366. });
  367. }
  368. // 存放所有步骤
  369. item.allStepsList.push({
  370. title: detail.item,
  371. indexId: detail.indexId,
  372. });
  373. // 存放是否异常
  374. ifNormalArr.push(detail.ifNormal);
  375. });
  376. // 判断所有步骤是否异常是否全部选择
  377. if (ifNormalArr.every((item) => item != null)) {
  378. // 全部选择 - 将当前步骤设置为最后一步
  379. item.currentStep = ifNormalArr.length - 1;
  380. } else {
  381. // 未全部选择 - 将当前步骤设置为未选择异常的步骤
  382. item.currentStep = ifNormalArr.findIndex((item) => item == null);
  383. }
  384. });
  385. details.value = res.data;
  386. console.log("details.value", details.value);
  387. // 备份原始数据
  388. originalDetails.value = JSON.parse(JSON.stringify(res.data));
  389. // 根据原始数据生成tabs选项卡数据,避免填报时数据变化影响tab状态
  390. const tabsData = originalDetails.value.map((item) => {
  391. // 判断Tab是否已完成
  392. const isCompleted = isTabCompleted(item);
  393. return {
  394. name: item.deviceName, // 必备字段,展示的tab名称
  395. textStyle: isCompleted ? "" : { color: "#e96900" }, //手动修改组件添加的字段,用于控制文字颜色
  396. };
  397. });
  398. tabs.value = tabsData;
  399. console.log("🚀 ~ getData ~ tabs.value:", tabs.value);
  400. });
  401. };
  402. // 当前巡检步骤信息
  403. const currentStepInfo = computed(
  404. () =>
  405. details.value[currentTab.value].orderDetails[
  406. details.value[currentTab.value].currentStep
  407. ]
  408. );
  409. // --------- 巡检工单tab ---------
  410. // 当前巡检tab
  411. const currentTab = ref(0);
  412. // 巡检工单tab滚动容器
  413. const scrollContainerRef = ref(null);
  414. // 巡检工单tab segmented-control
  415. const segmentedControlRef = ref(null);
  416. // 巡检工单tab滚动容器 scroll位置
  417. const tabScrollLeft = ref(0);
  418. const tabsRef = ref(null);
  419. // 判断Tab是否已完成的方法
  420. const isTabCompleted = (item) => {
  421. // 根据实际业务逻辑判断,这里假设当前Tab索引小于当前步骤则视为已完成
  422. const { allStepsList, currentStep, orderDetails } = item;
  423. if (currentStep < allStepsList.length - 1) return false; // 如果当前步骤小于总步骤数,则说明未完成
  424. // 如果当前步骤等于总步骤数,且最后一步的ifNormal字段不为null,则说明已完成
  425. const lastStep = orderDetails[orderDetails.length - 1];
  426. return lastStep.ifNormal !== null;
  427. };
  428. // 点击切换tab
  429. const onClickItem = async (e) => {
  430. // console.log("🚀 ~ onClickItem ~ e:", e);
  431. if (currentTab.value !== e.index) {
  432. currentTab.value = e.index;
  433. }
  434. };
  435. // Swiper滑动切换Tab时,同步滚动Tab到中心
  436. const onSwiperChanged = async (e) => {
  437. // console.log("🚀 ~ onSwiperChanged ~ e:", e);
  438. const newTabIndex = e.detail.current;
  439. currentTab.value = newTabIndex;
  440. };
  441. // -------------------所有步骤弹窗-------------------
  442. const allStepPopRef = ref(null);
  443. const allStepShow = () => {
  444. allStepPopRef.value.open();
  445. };
  446. // 故障上报
  447. const onFault = () => {
  448. uni.navigateTo({
  449. url: "/pages/fault/create",
  450. success() {
  451. const data = {
  452. id: currentStepInfo.value.deviceId,
  453. deptId: currentStepInfo.value.deptId,
  454. deviceCode: details.value[currentTab.value].deviceCode,
  455. deviceName: details.value[currentTab.value].deviceName,
  456. };
  457. setTimeout(() => {
  458. uni.$emit("inspection-falut", data);
  459. }, 300);
  460. },
  461. });
  462. };
  463. // 上一步
  464. const onLast = () => {
  465. details.value[currentTab.value].currentStep -= 1;
  466. console.log(
  467. "🚀 ~ onLast ~ details.value[currentTab.value].:",
  468. details.value[currentTab.value]
  469. );
  470. };
  471. // 下一步
  472. const onNext = (finished) => {
  473. // 判断当前步骤是否异常
  474. if (currentStepInfo.value.ifNormal == null) {
  475. uni.showToast({
  476. title: t("operation.PleaseSelect") + t("inspection.isAbnormal"),
  477. icon: "none",
  478. });
  479. return;
  480. }
  481. // 判断当前步骤是否填写异常描述
  482. console.log("🚀 ~ onNext ~ currentStepInfo.value:", currentStepInfo.value);
  483. if (
  484. currentStepInfo.value.ifNormal == false &&
  485. (currentStepInfo.value.description == "" ||
  486. currentStepInfo.value.description == null)
  487. ) {
  488. uni.showToast({
  489. title: t("operation.PleaseFillIn") + t("inspection.abnormalDesc"),
  490. icon: "none",
  491. });
  492. return;
  493. }
  494. inspectOrderWrite(workOrderId.value, {
  495. description: currentStepInfo.value.description,
  496. deviceId: currentStepInfo.value.deviceId,
  497. ifNormal: currentStepInfo.value.ifNormal,
  498. indexId: currentStepInfo.value.indexId,
  499. picUrl: currentStepInfo.value.picUrl,
  500. }).then((res) => {
  501. if (res.code == 0) {
  502. if (finished) {
  503. uni.showToast({ title: t("general.submitSuccess"), icon: "none" });
  504. navigatorBack();
  505. } else {
  506. details.value[currentTab.value].currentStep += 1;
  507. }
  508. } else {
  509. uni.showToast({ title: res.msg, icon: "none" });
  510. }
  511. });
  512. };
  513. const getDataInfo = async () => {
  514. await getInspectOrderGet({
  515. id: workOrderId.value,
  516. }).then((res) => {
  517. // 将res.data.details数组中的deviceCode赋值给details.value数组中的对应deviceId 的 deviceCode
  518. res.data.details.map((item) => {
  519. const device = details.value.find(
  520. (detail) => detail.deviceId == item.deviceId
  521. );
  522. if (device) {
  523. device.deviceCode = item.deviceCode;
  524. }
  525. });
  526. console.log("details.value", details.value);
  527. });
  528. };
  529. // 上传图片
  530. const upload = async (event) => {
  531. for (const path of event.tempFilePaths) {
  532. currentStepInfo.value.picUrl = (await uploadFile(path)).data;
  533. currentStepInfo.value.picUrlList.push({
  534. url: currentStepInfo.value.picUrl,
  535. });
  536. }
  537. };
  538. const navigatorBack = () => {
  539. uni.navigateBack();
  540. };
  541. onLoad(async (option) => {
  542. console.log("🚀 ~ inspection edit ~ onLoad:");
  543. await reloginByUserId(option.reloginUserId);
  544. workOrderId.value = option.id;
  545. await getData();
  546. await getDataInfo();
  547. console.log("🚀 onLoad ~ tabs.value:", tabs.value);
  548. });
  549. onReady(async () => {
  550. console.log("🚀 ~ inspection edit ~ onReady:");
  551. });
  552. onMounted(() => {
  553. console.log("🚀 ~ inspection edit ~ onMounted:");
  554. });
  555. </script>
  556. <style lang="scss" scoped>
  557. @import "@/style/work-order-detail.scss";
  558. // 补充自定义Tab项样式,确保宽度正常(避免Tab过窄或过宽)
  559. :deep(.uni-segmented-control__item) {
  560. .tab-item {
  561. width: max-content;
  562. padding: 0 16px; // 增加Tab内边距,避免文字拥挤
  563. height: 36px; // 固定Tab高度,确保对齐
  564. line-height: 36px; // 垂直居中
  565. }
  566. }
  567. :deep(.custom-finish-tab) {
  568. .uv-tabs__wrapper__nav__item__text {
  569. // color: #79C278 !important;
  570. }
  571. }
  572. .page {
  573. padding: 0;
  574. position: relative;
  575. }
  576. .page-top {
  577. background: #004098;
  578. width: 100%;
  579. box-sizing: border-box;
  580. padding: 10px 20px;
  581. }
  582. .top-content {
  583. padding-bottom: 30px;
  584. box-sizing: border-box;
  585. width: 100%;
  586. min-height: 70px;
  587. font-weight: bold;
  588. font-size: 16px;
  589. color: #ffffff;
  590. line-height: 28px;
  591. }
  592. .page-content {
  593. width: 100%;
  594. height: calc(100% - 100px);
  595. margin-top: -30px;
  596. background: #fff;
  597. background: #ffffff;
  598. border-radius: 20px 20px 0px 0px;
  599. // z-index: 1;
  600. }
  601. .tabs-container {
  602. position: relative;
  603. width: 100%;
  604. white-space: nowrap;
  605. padding: 20px;
  606. box-sizing: border-box;
  607. }
  608. :deep(.segmented-control) {
  609. overflow: unset;
  610. }
  611. :deep(.segmented-control__item) {
  612. uni-view {
  613. width: max-content;
  614. padding: 10px;
  615. }
  616. }
  617. .swiper-container {
  618. position: relative;
  619. width: 100%;
  620. height: calc(100% - 110px);
  621. padding: 0 20px;
  622. box-sizing: border-box;
  623. }
  624. .step-section {
  625. // font-weight: 600;
  626. width: 100%;
  627. height: 100%;
  628. font-size: 14px;
  629. color: #333333;
  630. position: relative;
  631. }
  632. .step-form {
  633. height: calc(100% - 50px - 30px - 10px - var(--status-bar-height));
  634. margin-bottom: 60px;
  635. overflow-y: auto;
  636. }
  637. .step-all {
  638. font-weight: 600;
  639. font-size: 14px;
  640. color: #004098;
  641. position: relative;
  642. padding-left: 10px;
  643. margin-bottom: 10px;
  644. }
  645. .step-title {
  646. position: relative;
  647. font-weight: 600;
  648. padding-left: 10px;
  649. margin-bottom: 10px;
  650. }
  651. .border {
  652. width: 2px;
  653. height: 14px;
  654. background-color: #004098;
  655. position: absolute;
  656. left: 0;
  657. top: 3px;
  658. }
  659. .step-standard {
  660. padding-left: 10px;
  661. margin-bottom: 10px;
  662. span {
  663. font-weight: 600;
  664. }
  665. }
  666. .file-media {
  667. margin: 10px 0;
  668. .pic,
  669. .video {
  670. width: 100px !important;
  671. height: 100px !important;
  672. }
  673. :deep(.file-picker__box) {
  674. width: 100px !important;
  675. height: 100px !important;
  676. }
  677. }
  678. .abnormal-btn {
  679. width: 45%;
  680. height: 35px;
  681. line-height: 35px;
  682. margin-top: 10px;
  683. font-weight: 600;
  684. font-size: 14px;
  685. color: #666666;
  686. background: #f3f5f9;
  687. border-radius: 4px;
  688. position: relative;
  689. &.active {
  690. background: #e4effe;
  691. color: #004098;
  692. }
  693. .uni-icons {
  694. position: absolute;
  695. right: 20px;
  696. }
  697. }
  698. .form-title {
  699. margin-right: 15px;
  700. }
  701. .form-remark {
  702. height: 50px;
  703. border-bottom: 1px dashed #cacccf;
  704. margin-bottom: 20px;
  705. margin-top: 10px;
  706. }
  707. :deep(.uni-easyinput__content-textarea) {
  708. min-height: inherit;
  709. margin: 10px;
  710. }
  711. .step-btns {
  712. // margin: 10px;
  713. height: 50px;
  714. width: 100%;
  715. background: #ffffff;
  716. position: fixed;
  717. bottom: 0;
  718. left: 0;
  719. z-index: 2;
  720. padding-bottom: var(--status-bar-height);
  721. uni-button {
  722. width: calc(33.3% - 20px);
  723. font-size: 14px;
  724. height: 32px;
  725. line-height: 32px;
  726. }
  727. }
  728. .popup-content {
  729. width: 100%;
  730. min-height: 300px;
  731. max-height: 500px;
  732. overflow-y: auto;
  733. position: relative;
  734. box-sizing: border-box;
  735. padding: 20px;
  736. margin-top: var(--status-bar-height);
  737. }
  738. .step-route-desc {
  739. position: fixed;
  740. top: 0px;
  741. left: 0px;
  742. padding: 10px 20px;
  743. padding-bottom: 0;
  744. background: #f2f4f8;
  745. color: #004098;
  746. font-size: 14px;
  747. z-index: 2;
  748. box-shadow: 0px -2px 10px 0px rgba(0, 0, 0, 0.1);
  749. // max-height: 130px;
  750. overflow: hidden;
  751. }
  752. .route-desc-content {
  753. width: 100%;
  754. max-height: 100px;
  755. overflow-y: auto;
  756. }
  757. .step-border {
  758. border-bottom: 1px dashed #cacccf;
  759. padding-top: 10px;
  760. width: 100%;
  761. }
  762. .step-all-content {
  763. &.has-route {
  764. margin-top: 150px;
  765. }
  766. }
  767. .popup-step-title {
  768. :deep(.uni-section) {
  769. padding: 10px 0;
  770. }
  771. :deep(.uni-section__content-title) {
  772. font-weight: 600;
  773. }
  774. .desc-section {
  775. background: #f2f4f8;
  776. }
  777. }
  778. :deep(.uni-steps__column-text) {
  779. height: 38px;
  780. font-weight: 600;
  781. font-size: 14px;
  782. color: #666666;
  783. line-height: 30px;
  784. display: flex;
  785. // justify-content: center;
  786. border: none;
  787. }
  788. :deep(.uni-steps__column-title) {
  789. color: #666666;
  790. }
  791. :deep(.uni-steps__column-line-item) {
  792. color: #666666;
  793. height: 50px !important;
  794. }
  795. :deep(.uni-steps__column-circle) {
  796. color: #666666;
  797. height: 10px;
  798. width: 10px;
  799. }
  800. </style>