detail.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800
  1. <template>
  2. <view class="maintenance-container">
  3. <uni-nav-bar
  4. fixed="true"
  5. statusBar="true"
  6. left-icon="back"
  7. title="保养工单详情"
  8. @clickLeft="back"
  9. right-icon="scan"
  10. @clickRight="HandlScanCode"
  11. >
  12. </uni-nav-bar>
  13. <view class="maintenance-wrapper">
  14. <view class="maintenance-content">
  15. <KdTabs
  16. v-model="active"
  17. @change="handleTabChange"
  18. :list="['基本信息', '保养设备']"
  19. />
  20. <view class="kd-baseInfo" v-show="active === 0">
  21. <view class="kd-cell">
  22. <text class="kd-label">工单编号</text>
  23. <text class="kd-content">{{ worksheetInfo.workOrderCode }}</text>
  24. </view>
  25. <view class="kd-cell">
  26. <text class="kd-label">计划名称</text>
  27. <text class="kd-content">{{ worksheetInfo.planName }}</text>
  28. </view>
  29. <view class="kd-cell">
  30. <text class="kd-label">设备分类</text>
  31. <text class="kd-content">{{ worksheetInfo.equiTypeName }}</text>
  32. </view>
  33. <view class="kd-cell">
  34. <text class="kd-label">保养设备总数</text>
  35. <text class="kd-content text-warning"
  36. >{{
  37. worksheetInfo.equipCount - worksheetInfo.awaitInspectSum || 0
  38. }}/{{ worksheetInfo.equipCount }}</text
  39. >
  40. </view>
  41. <view class="kd-cell">
  42. <text class="kd-label">计划完成时长</text>
  43. <text class="kd-content">{{ worksheetInfo.duration }}分钟</text>
  44. </view>
  45. <view class="kd-cell">
  46. <text class="kd-label">实际完成时长</text>
  47. <text class="kd-content">{{
  48. finishTime(worksheetInfo.acceptTime, worksheetInfo.finishTime)
  49. }}</text>
  50. </view>
  51. <view class="kd-cell">
  52. <text class="kd-label">实际开始时间</text>
  53. <text class="kd-content">{{ worksheetInfo.acceptTime }}</text>
  54. </view>
  55. <view class="kd-cell">
  56. <text class="kd-label">实际完成时间</text>
  57. <text class="kd-content">{{ worksheetInfo.finishTime }}</text>
  58. </view>
  59. <!-- <u-button type="primary" size="large" text="开始执行"></u-button> -->
  60. <template v-if="worksheetInfo.status">
  61. <template v-if="worksheetInfo.status.code === 0">
  62. <button class="btn-execute" type="primary" @click="handleExecute">
  63. 开始执行
  64. </button>
  65. <div class="apply-box">
  66. <!-- <button
  67. class="btn-reassignment"
  68. type="primary"
  69. @click="sparepartApply"
  70. >
  71. 申请备品备件
  72. </button> -->
  73. </div>
  74. </template>
  75. <template v-else-if="worksheetInfo.status.code === 1">
  76. <button class="btn-execute" type="primary" @click="handleReport">
  77. 报工
  78. </button>
  79. </template>
  80. <button
  81. v-else-if="worksheetInfo.status.code === 3"
  82. :disabled="true"
  83. class="btn-execute"
  84. type="primary"
  85. >
  86. 已报工
  87. </button>
  88. <div class="apply-box">
  89. <button
  90. v-if="worksheetInfo.status.code !== 3"
  91. class="btn-reassignment"
  92. type="primary"
  93. @click="sparepartApply"
  94. >
  95. 申请备品备件
  96. </button>
  97. <button
  98. v-if="worksheetInfo.status.code === 0"
  99. class="btn-reassignment"
  100. type="primary"
  101. @click="handleAssign"
  102. >
  103. 转派
  104. </button>
  105. </div>
  106. </template>
  107. </view>
  108. <view class="kd-equipment" v-show="active === 1">
  109. <view class="kd-type-box">
  110. <text
  111. :class="{ 'type—active': typeActive === index }"
  112. v-for="(item, index) in equpStatus"
  113. :key="index"
  114. @click="typeChange(index)"
  115. >{{ item.name }}</text
  116. >
  117. </view>
  118. <view class="kd-list-container">
  119. <u-list @scrolltolower="scrolltolower">
  120. <u-list-item v-for="(item, index) in euqiList" :key="index">
  121. <view class="kd-card">
  122. <view class="kd-card-wrapper">
  123. <view class="kd-cell">
  124. <text class="kd-label">设备编码</text>
  125. <text class="kd-content">{{ item.equiCode }}</text>
  126. </view>
  127. <view class="kd-cell">
  128. <text class="kd-label">设备名称</text>
  129. <text class="kd-content">{{ item.equiName }}</text>
  130. </view>
  131. <view class="kd-cell">
  132. <text class="kd-label">设备型号</text>
  133. <text class="kd-content">{{ item.equiModel }}</text>
  134. </view>
  135. <view class="kd-cell">
  136. <text class="kd-label">设备位置</text>
  137. <text class="kd-content">{{ item.equiLocation }}</text>
  138. </view>
  139. <view class="kd-cell">
  140. <text class="kd-label">执行结果</text>
  141. <text class="kd-content">
  142. <text
  143. class="status-box text-warning"
  144. v-if="item.resultStatus === 0"
  145. >待保养</text
  146. >
  147. <text
  148. class="status-box text-primary"
  149. v-else-if="item.resultStatus === 1"
  150. >完成保养</text
  151. >
  152. <text
  153. class="status-box text-danger"
  154. v-else-if="item.resultStatus === 2"
  155. >缺陷</text
  156. >
  157. <text
  158. class="status-box text-primary"
  159. v-else-if="item.resultStatus === 3"
  160. >已报修</text
  161. >
  162. </text>
  163. </view>
  164. </view>
  165. <view class="card-footer">
  166. <button
  167. type="primary"
  168. class="primary-btn"
  169. @click="handleCheck(item)"
  170. v-if="
  171. worksheetInfo.status && worksheetInfo.status.code === 1
  172. "
  173. >
  174. 执行
  175. </button>
  176. <template
  177. v-if="
  178. worksheetInfo.status && worksheetInfo.status.code === 3
  179. "
  180. >
  181. <button
  182. type="default"
  183. v-if="item.resultStatus === 2"
  184. @click="handLbx(item)"
  185. >
  186. 报修
  187. </button>
  188. <button
  189. type="default"
  190. v-else-if="item.resultStatus === 3"
  191. @click="handLbxDetail(item)"
  192. >
  193. 报修详情
  194. </button>
  195. </template>
  196. <button
  197. type="default"
  198. v-if="
  199. [0, 3].includes(
  200. worksheetInfo.status && worksheetInfo.status.code
  201. )
  202. "
  203. @click="checkDetail(item)"
  204. >
  205. 保养详情
  206. </button>
  207. </view>
  208. </view>
  209. </u-list-item>
  210. </u-list>
  211. </view>
  212. </view>
  213. </view>
  214. </view>
  215. <uni-popup ref="inputDialog" type="dialog">
  216. <uni-popup-dialog
  217. ref="inputClose"
  218. mode="input"
  219. title="您当前已超出计划完成时间,请填写原因"
  220. placeholder="请输入内容"
  221. :before-close="true"
  222. @close="handleClose"
  223. @confirm="timeoutCauseConfirm"
  224. ></uni-popup-dialog>
  225. </uni-popup>
  226. <u-modal :show="modalShow" title="提示" @confirm="modalShow = false">
  227. <view
  228. >您还有
  229. <text class="text-warning">{{ worksheetInfo.awaitInspectSum }}</text>
  230. 台设备待检,不可报工</view
  231. >
  232. </u-modal>
  233. <Assign ref="assignRef" @success="assignSuccess" />
  234. <!-- <ScanCode @scancodedate="scancodedate" :model="'uni'"></ScanCode> -->
  235. </view>
  236. </template>
  237. <script>
  238. import { get, post, postJ } from '@/utils/api.js'
  239. import Assign from '@/components/Assign.vue'
  240. import CellInfo from '@/components/CellInfo.vue'
  241. import KdTabs from '@/components/KdTabs.vue'
  242. import dayjs from 'dayjs'
  243. import ScanCode from '@/components/ScanCode.vue'
  244. export default {
  245. components: {
  246. CellInfo,
  247. KdTabs,
  248. Assign,
  249. ScanCode
  250. },
  251. data () {
  252. return {
  253. modalShow: false,
  254. active: 0,
  255. typeActive: 0,
  256. statusList: {
  257. 0: '待接收',
  258. 1: '执行中',
  259. 3: '已完成'
  260. },
  261. pageId: '',
  262. workOrderCode: '',
  263. worksheetInfo: {
  264. equiList: [],
  265. workOrder: {}
  266. },
  267. equpStatus: [
  268. // {
  269. // name: '全部',
  270. // value: []
  271. // },
  272. {
  273. name: '待执行',
  274. value: [0]
  275. },
  276. {
  277. name: '已执行',
  278. value: [1, 2, 3]
  279. },
  280. {
  281. name: '缺陷',
  282. value: [2]
  283. },
  284. {
  285. name: '全部',
  286. value: []
  287. }
  288. ],
  289. euqiList: [],
  290. equipPage: 1,
  291. isEnd: false,
  292. barType: 0,
  293. qrContent: null
  294. }
  295. },
  296. async onLoad (options) {
  297. this.workOrderCode = options.workOrderCode
  298. this.pageId = options.id
  299. // 设备台账跳转详情
  300. if (options.qrContent) {
  301. this.qrContent = options.qrContent
  302. await this.getInfo()
  303. this.cbScancodedate({ code: this.qrContent })
  304. }
  305. },
  306. onShow () {
  307. this.getInfo()
  308. this.typeChange(0)
  309. let _this = this
  310. uni.$off('scancodedate') // 每次进来先 移除全局自定义事件监听器
  311. uni.$on('scancodedate', function (data) {
  312. _this.cbScancodedate(data)
  313. })
  314. },
  315. onHide () {
  316. uni.$off('scancodedate')
  317. },
  318. onUnload () {
  319. uni.$off('scancodedate')
  320. },
  321. methods: {
  322. // 扫码枪扫码
  323. cbScancodedate (data) {
  324. this.Scancodedate(data.code)
  325. },
  326. // 相机扫码
  327. HandlScanCode () {
  328. let _this = this
  329. uni.scanCode({
  330. onlyFromCamera: true,
  331. success: function (res) {
  332. _this.Scancodedate(res.result)
  333. }
  334. })
  335. },
  336. Scancodedate (code) {
  337. let _this = this
  338. if (this.worksheetInfo.status.code === 0) {
  339. uni.showModal({
  340. title: '提示',
  341. content: '工单未开启执行,不可进行保养操作,请先点击“开始执行”!',
  342. confirmText: '开始执行', //这块是确定按钮的文字
  343. cancelText: '取消', //这块是取消的文字
  344. success: function (res) {
  345. if (res.confirm) {
  346. _this.handleExecute() // 执行确认后的操作
  347. } else {
  348. // 执行取消后的操作
  349. }
  350. }
  351. })
  352. return
  353. }
  354. this.qrContent = code.trim()
  355. this.barType = this.setBarType(this.qrContent)
  356. _this.getData()
  357. },
  358. // 设置barType
  359. setBarType (val) {
  360. let index = val.indexOf('@_@')
  361. let result = 0
  362. if (index !== -1) {
  363. let item = val.substr(index + 3, 1)
  364. if (item) {
  365. result = Number(item)
  366. }
  367. }
  368. return result
  369. },
  370. // 根据条码请求设备数据
  371. getData () {
  372. let par = {
  373. barType: this.barType,
  374. qrContent: this.qrContent
  375. }
  376. uni.showLoading({
  377. title: '加载中',
  378. mask: true
  379. })
  380. postJ(this.apiUrl + '/scan/getAssetInfo', par)
  381. .then(res => {
  382. console.log('扫码接口返回', res)
  383. let data = res.data
  384. this.matchEquipment(data)
  385. })
  386. .finally(() => {
  387. uni.hideLoading()
  388. })
  389. },
  390. matchEquipment (data) {
  391. let par = {
  392. assetCode: data.assetCode,
  393. workOrderId: this.worksheetInfo.id
  394. }
  395. console.log('par', par)
  396. post(this.apiUrl + '/workOrder/scanMatching', par).then(res => {
  397. let data = res.data
  398. if (!data) {
  399. uni.showModal({
  400. title: '提示',
  401. content: '本工单中,无此设备!',
  402. confirmText: '好的', //这块是确定按钮的文字
  403. showCancel: false,
  404. success: function (res) {
  405. if (res.confirm) {
  406. // 执行确认后的操作
  407. } else {
  408. // 执行取消后的操作
  409. }
  410. }
  411. })
  412. } else {
  413. // 未报工
  414. if (this.worksheetInfo.status.code === 1) {
  415. this.handleCheck(data)
  416. }
  417. // 已报工
  418. if (this.worksheetInfo.status.code === 3) {
  419. this.checkDetail(data)
  420. }
  421. }
  422. })
  423. },
  424. back () {
  425. uni.navigateBack({
  426. delta: 1
  427. })
  428. },
  429. handleAssign () {
  430. this.$refs.assignRef.open(this.pageId)
  431. },
  432. assignSuccess () {
  433. this.back()
  434. },
  435. finishTime (start, end) {
  436. if (!end) return ''
  437. let dur = new Date(end).getTime() - new Date(start).getTime()
  438. return Math.ceil(dur / 1000 / 60) + '分钟'
  439. },
  440. // 申请备品备件
  441. sparepartApply () {
  442. uni.navigateTo({
  443. url: `/pages/maintenance/sparepart/sparepart?planCode=${this.worksheetInfo.planCode}&sourceId=${this.worksheetInfo.id}&sourceCode=${this.worksheetInfo.workOrderCode}`
  444. })
  445. },
  446. // 申请备品备件详情
  447. sparepartDetail () {
  448. uni.navigateTo({
  449. url: `/pages/maintenance/sparepart/sparepartDetail?applyOrder=${this.worksheetInfo.applyOrder}`
  450. })
  451. },
  452. // 报工
  453. handleReport () {
  454. // if (
  455. // new Date(this.worksheetInfo.planFinishTime).getTime() <
  456. // new Date().getTime()
  457. // ) {
  458. // this.$refs.inputDialog.open()
  459. // return
  460. // }
  461. this._report()
  462. },
  463. handleClose () {
  464. this.$refs.inputDialog.close()
  465. },
  466. timeoutCauseConfirm (value) {
  467. if (!value) {
  468. uni.showToast({
  469. title: '请输入超时原因',
  470. icon: 'none'
  471. })
  472. return
  473. }
  474. this.$refs.inputDialog.close()
  475. this._report(value)
  476. },
  477. _report (timeoutCause = '') {
  478. post(
  479. this.apiUrl + '/workOrder/reportWork',
  480. {
  481. workOrderId: this.pageId,
  482. timeoutCause
  483. },
  484. true,
  485. false
  486. )
  487. .then(res => {
  488. let _this = this
  489. if (res?.success) {
  490. let data = res.data
  491. if (data.length) {
  492. uni.showModal({
  493. title: '提示',
  494. content: `有${data.length}台设备被标记为缺陷,是否要报修?`,
  495. cancelText: '取消', // 取消按钮的文字
  496. confirmText: '报修', // 确认按钮的文字
  497. showCancel: true, // 是否显示取消按钮,默认为 true
  498. success: res => {
  499. if (res.confirm) {
  500. if (data.length > 1) {
  501. uni.navigateTo({
  502. url: `/pages/maintenance/detail/detail?workOrderCode=${this.workOrderCode}&id=${this.pageId}&chooseTab=true`
  503. })
  504. } else {
  505. uni.navigateTo({
  506. url: `/pages/repair/repair/index?source=5&workOrderCode=${this.workOrderCode}&equiCode=${data[0].equiCode}&equiId=${data[0].equiId}&workOrderId=${this.pageId}&equiName=${data[0].equiName}&equiModel=${data[0].equiModel}&equiLocation=${data[0].equiLocation}`
  507. })
  508. }
  509. } else {
  510. _this.getInfo()
  511. }
  512. }
  513. })
  514. } else {
  515. uni.showToast({
  516. icon: 'success',
  517. title: '操作成功!',
  518. duration: 2000
  519. })
  520. this.getInfo()
  521. }
  522. }
  523. })
  524. .catch(res => {
  525. if (res.code === '4444') {
  526. this.$refs.inputDialog.open()
  527. } else if (res.code === '5555') {
  528. this.modalShow = true
  529. // uni.showModal({
  530. // title: '提示',
  531. // content: `您还有 ${this.worksheetInfo.awaitInspectSum} 台设备待检,不可报工`,
  532. // success: function (res) {},
  533. // showCancel: false
  534. // })
  535. }
  536. })
  537. },
  538. // 执行工单
  539. handleExecute () {
  540. post(this.apiUrl + '/workOrder/execute', {
  541. workOrderCode: this.workOrderCode
  542. }).then(res => {
  543. if (res?.success && res.data) {
  544. uni.showToast({
  545. icon: 'success',
  546. title: '操作成功!',
  547. duration: 2000
  548. })
  549. this.active = 1
  550. this.getInfo()
  551. }
  552. })
  553. },
  554. //巡点检设备加载更多
  555. scrolltolower () {
  556. if (this.isEnd) return
  557. this.equipPage++
  558. this.getEquipList()
  559. },
  560. // 巡点检设备列表
  561. getEquipList () {
  562. const params = {
  563. workOrderId: this.pageId,
  564. resultStatus: this.equpStatus[this.typeActive].value
  565. }
  566. post(
  567. this.apiUrl +
  568. `/workOrder/getEquipmentListApp?page=${this.equipPage}&size=10`,
  569. params,
  570. true
  571. ).then(res => {
  572. if (res?.success) {
  573. if (this.equipPage === 1) {
  574. this.euqiList = res.data.records
  575. } else {
  576. this.euqiList.push(...res.data.records)
  577. }
  578. this.isEnd = this.euqiList.length >= res.data.total
  579. }
  580. })
  581. },
  582. handleTabChange (value) {
  583. if (value === 1) {
  584. this.typeChange(0)
  585. }
  586. },
  587. // 设备状态切换
  588. typeChange (type) {
  589. this.typeActive = type
  590. this.equipPage = 1
  591. this.getEquipList()
  592. },
  593. handleCheck ({ id, equiName, equiCode, sparePartsJson }) {
  594. this.$store.commit('maintenance/SET_SPAREPARTSJSON', sparePartsJson)
  595. uni.navigateTo({
  596. url: `/pages/maintenance/check/index?workOrderId=${this.pageId}&id=${id}&equiName=${equiName}&equiCode=${equiCode}&applyOrder=${this.worksheetInfo.applyOrder}&workOrderCode=${this.worksheetInfo.workOrderCode}`
  597. })
  598. },
  599. checkDetail ({ id, equiName, equiCode, sparePartsJson }) {
  600. this.$store.commit('maintenance/SET_SPAREPARTSJSON', sparePartsJson)
  601. uni.navigateTo({
  602. url: `/pages/maintenance/check/detail?workOrderId=${this.pageId}&id=${id}&equiName=${equiName}&equiCode=${equiCode}&applyOrder=${this.worksheetInfo.applyOrder}&workOrderCode=${this.worksheetInfo.workOrderCode}`
  603. })
  604. },
  605. getInfo () {
  606. post(this.apiUrl + '/workOrder/getDetailsApp', {
  607. workOrderCode: this.workOrderCode
  608. }).then(res => {
  609. if (res?.success) {
  610. this.worksheetInfo = res.data
  611. }
  612. })
  613. },
  614. // 报修
  615. handLbx (item) {
  616. uni.navigateTo({
  617. url: `/pages/repair/repair/index?source=4&workOrderCode=${this.workOrderCode}&equiCode=${item.equiCode}&equiId=${item.equiId}&workOrderId=${this.pageId}&equiName=${item.equiName}&equiModel=${item.equiModel}&equiLocation=${item.equiLocation}`
  618. })
  619. },
  620. // 报修详情
  621. handLbxDetail (item) {
  622. uni.navigateTo({
  623. url: `/pages/repair/detail/detail?id=${item.repairId}`
  624. })
  625. }
  626. }
  627. }
  628. </script>
  629. <style lang="scss" scoped>
  630. @import '@/components/submitted.scss';
  631. .list-cell {
  632. display: flex;
  633. align-items: center;
  634. justify-content: space-between;
  635. color: $uni-text-color-grey;
  636. padding: 5rpx 20rpx;
  637. }
  638. .font-sm {
  639. font-size: $uni-font-size-sm;
  640. }
  641. .font-text {
  642. color: $uni-text-color;
  643. }
  644. .btn-execute {
  645. background-color: $j-primary-border-green;
  646. width: 450rpx;
  647. margin-top: 10vh;
  648. }
  649. .btn-reassignment {
  650. color: $uni-color-primary;
  651. background-color: transparent;
  652. border: none;
  653. box-shadow: none;
  654. &::after {
  655. display: none;
  656. }
  657. }
  658. .maintenance-container {
  659. position: fixed;
  660. top: 0;
  661. bottom: 0;
  662. width: 100vw;
  663. display: flex;
  664. flex-direction: column;
  665. /deep/.u-popup {
  666. flex: none !important;
  667. }
  668. }
  669. .maintenance-wrapper {
  670. position: relative;
  671. flex: 1;
  672. }
  673. .maintenance-content {
  674. padding-top: 40rpx;
  675. box-sizing: border-box;
  676. // height: calc(100vh - 88rpx);
  677. position: absolute;
  678. top: 0;
  679. bottom: 0;
  680. left: 0;
  681. right: 0;
  682. display: flex;
  683. flex-direction: column;
  684. }
  685. .kd-cell {
  686. line-height: 90rpx;
  687. border-bottom: 1px dashed #dadada;
  688. display: flex;
  689. justify-content: space-between;
  690. .kd-label {
  691. display: inline-block;
  692. width: 7em;
  693. font-weight: bold;
  694. }
  695. .kd-content {
  696. flex: 1;
  697. text-align: left;
  698. word-break: break-all;
  699. }
  700. }
  701. .kd-baseInfo {
  702. padding: 0 32rpx;
  703. font-size: 28rpx;
  704. }
  705. .kd-equipment {
  706. flex: 1;
  707. display: flex;
  708. flex-direction: column;
  709. overflow: hidden;
  710. .kd-type-box {
  711. text-align: center;
  712. padding: 26rpx 0;
  713. text {
  714. display: inline-block;
  715. width: 120rpx;
  716. padding: 4rpx 0;
  717. color: #333;
  718. margin: 0 8rpx;
  719. &.type—active {
  720. background-color: rgba(215, 215, 215, 1);
  721. }
  722. }
  723. }
  724. .kd-list-container {
  725. flex: 1;
  726. display: flex;
  727. flex-direction: column;
  728. overflow: hidden;
  729. padding: 12rpx 18rpx;
  730. background-color: $page-bg;
  731. .u-list {
  732. flex: 1;
  733. height: 100% !important;
  734. }
  735. }
  736. }
  737. .kd-card {
  738. background-color: #fff;
  739. margin-bottom: 20rpx;
  740. padding: 8rpx 0;
  741. font-size: 28rpx;
  742. word-break: break-all;
  743. .kd-card-wrapper {
  744. padding: 0 30rpx;
  745. border-bottom: 1px solid #dadada;
  746. }
  747. .kd-cell {
  748. line-height: 60rpx;
  749. }
  750. .kd-cell:last-of-type {
  751. border-bottom: none;
  752. }
  753. .status-box {
  754. margin-right: 16rpx;
  755. }
  756. .card-footer {
  757. display: flex;
  758. justify-content: flex-end;
  759. align-items: center;
  760. padding: 8rpx 0 20rpx;
  761. button {
  762. width: 180rpx;
  763. height: 56rpx;
  764. line-height: 56rpx;
  765. font-size: 28rpx;
  766. margin: 0 8rpx;
  767. }
  768. .primary-btn {
  769. background-color: $j-primary-border-green;
  770. }
  771. }
  772. }
  773. .apply-box {
  774. width: 70%;
  775. margin: 0 auto;
  776. display: flex;
  777. align-items: center;
  778. justify-content: space-around;
  779. }
  780. </style>