detail.vue 20 KB

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