index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907
  1. <template>
  2. <div>
  3. <basic-container>
  4. <div class="home-container">
  5. <div style="display: flex;justify-content: center;">
  6. <div class="content">
  7. <div class="content-item" @click="handleClick('')">
  8. <div class="card">
  9. <div class="card-title card-title1">
  10. <span>
  11. </span>
  12. </div>
  13. <div class="card-content">
  14. <span class="card-content-num">{{ totalData.all }}</span>
  15. <span class="card-content-text">全部</span>
  16. </div>
  17. </div>
  18. </div>
  19. <div class="divider"/>
  20. <div class="content-item" @click="handleClick('2')">
  21. <div class="card">
  22. <div class="card-title card-title4">
  23. <span>
  24. </span>
  25. </div>
  26. <div class="card-content">
  27. <span class="card-content-num">{{ totalData.two }}</span>
  28. <span class="card-content-text">未受理</span>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="divider"/>
  33. <div class="content-item" @click="handleClick('3')">
  34. <div class="card">
  35. <div class="card-title card-title5">
  36. <span>
  37. </span>
  38. </div>
  39. <div class="card-content">
  40. <span class="card-content-num">{{ totalData.three }}</span>
  41. <span class="card-content-text">未完工</span>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="divider"/>
  46. <div class="content-item" @click="handleClick('4')">
  47. <div class="card">
  48. <div class="card-title card-title6">
  49. <span>
  50. </span>
  51. </div>
  52. <div class="card-content">
  53. <span class="card-content-num">{{ totalData.four }}</span>
  54. <span class="card-content-text">已完工</span>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </basic-container>
  62. <basic-container v-if="key>0">
  63. <avue-crud
  64. :data="goodsList"
  65. :option="goodsOptionCrud"
  66. :table-loading="loading"
  67. :page.sync="page"
  68. ref="crud"
  69. @on-load="onLoad"
  70. @resetColumn="resetColumn"
  71. @saveColumn="saveColumn"
  72. @search-change="searchChange"
  73. @search-criteria-switch="searchCriteriaSwitch"
  74. @row-save="(row,done,loading)=>{rowSave(row,0,done,loading)}"
  75. @row-update="rowSave">
  76. <template slot-scope="{row}" slot="fleetId">
  77. <span>{{ row.fleetName }}</span>
  78. </template>
  79. <template slot-scope="{row}" slot="fleetIdSearch">
  80. <crop-select
  81. v-model="row.fleetId"
  82. corpType="CD"
  83. ></crop-select>
  84. </template>
  85. <template slot-scope="{row,index}" slot="menu">
  86. <el-button
  87. type="text"
  88. size="small"
  89. v-if="row.status === 2"
  90. @click="rowSaveT(row,index)"
  91. >{{ row.$cellEdit ? '保 存' : '修 改' }}
  92. </el-button>
  93. <el-button
  94. size="small"
  95. type="text"
  96. @click="designate(row, index)"
  97. v-if="row.status===2"
  98. >受 理
  99. </el-button>
  100. <el-button
  101. size="small"
  102. type="text"
  103. @click="cancelDesignate(row, index)"
  104. v-if="row.status===6"
  105. >取消受理
  106. </el-button>
  107. <el-button
  108. size="small"
  109. type="text"
  110. @click="confirmArrival(row, index)"
  111. v-if="row.status === 5"
  112. >确认到厂
  113. </el-button>
  114. <el-button
  115. size="small"
  116. type="text"
  117. @click="confirmCompletion(row, index)"
  118. v-if="row.status === 3"
  119. >确认完工
  120. </el-button>
  121. <el-button
  122. size="small"
  123. type="text"
  124. @click="suitcase(row, index)"
  125. v-if="row.status === 6"
  126. >提箱
  127. </el-button>
  128. <el-button
  129. size="small"
  130. type="text"
  131. @click="annexOpen(row, index)"
  132. >附 件
  133. </el-button>
  134. </template>
  135. <template slot="addressDetail" slot-scope="{ row,index}">
  136. <el-tooltip class="item" effect="dark" placement="top">
  137. <div v-html="ToBreak(row.addressDetail)" slot="content"></div>
  138. <div style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{row.addressDetail}}</div>
  139. </el-tooltip>
  140. </template>
  141. </avue-crud>
  142. <el-dialog
  143. title="附件"
  144. :visible.sync="dialogVisible"
  145. append-to-body
  146. width="70%">
  147. <c-upload
  148. typeUpload="GZ"
  149. :basic="true"
  150. deleteUrl="/api/blade-client/common-file/remove"
  151. :data="orderList"
  152. :disabled="form.status===4"
  153. :enumerationValue="76"
  154. ></c-upload>
  155. <span slot="footer" class="dialog-footer">
  156. <el-button @click="dialogVisible = false" size="small">取 消</el-button>
  157. <el-button type="primary" @click="saveAnnex" size="small" :loading="loadingTwo" :disabled="form.status===4">保 存</el-button>
  158. </span>
  159. </el-dialog>
  160. </basic-container>
  161. </div>
  162. </template>
  163. <script>
  164. import {
  165. driverQueryCollection,
  166. acceptanceCollection,
  167. acceptanceDispatchCollection,
  168. confirmCompletion,
  169. fleetList, motorcadeDriver, fleetDriverSave, getAttachment, saveAttached, arrival,borrow
  170. } from "@/api/landTransportation";
  171. export default {
  172. name: "index",
  173. data() {
  174. return {
  175. key:0,
  176. form: {},
  177. orderList:[],
  178. query:{},
  179. dialogVisible: false,
  180. loadingTwo: false,
  181. loading: false,
  182. activeName:'',
  183. page: {
  184. pageSize: 10,
  185. currentPage: 1,
  186. total: 0,
  187. pageSizes: [10, 50, 100, 200, 300]
  188. },
  189. roleName: localStorage.getItem("roleName").split(',')[0],
  190. goodsList: [],
  191. goodsOptionCrud:{},
  192. optionList: {
  193. stripe:true,
  194. index: true,
  195. addBtn: false,
  196. delBtn: false,
  197. cellBtn: false,
  198. cancelBtn: false,
  199. editBtn: false,
  200. addRowBtn: false,
  201. searchIcon: true,
  202. searchIndex: 2,
  203. searchSpan: 8,
  204. searchMenuPosition: "right",
  205. searchMenuSpan: 6,
  206. align: 'center',
  207. height: "auto",
  208. showSummary: true,
  209. summaryText: "合计",
  210. sumColumnList: [
  211. {
  212. name: 'landWeight',
  213. type: 'sum',
  214. decimals: 2
  215. }, {
  216. name: 'landAmountC',
  217. type: 'sum',
  218. decimals: 2
  219. }, {
  220. name: 'ctnQuantity',
  221. type: 'count'
  222. },{
  223. name: 'oneFeeC',
  224. type: 'sum',
  225. decimals: 2
  226. },{
  227. name: 'twoFeeC',
  228. type: 'sum',
  229. decimals: 2
  230. },{
  231. name: 'threeFeeC',
  232. type: 'sum',
  233. decimals: 2
  234. },{
  235. name: 'fourFeeC',
  236. type: 'sum',
  237. decimals: 2
  238. },{
  239. name: 'fiveFeeC',
  240. type: 'sum',
  241. decimals: 2
  242. }],
  243. column: [{
  244. label: '货运日期',
  245. prop: 'arrivalTime',
  246. overHidden: true,
  247. type: "date",
  248. searchRange: true,
  249. defaultTime: ['00:00:00', '23:59:59'],
  250. format: "yyyy-MM-dd HH:mm:ss",
  251. valueFormat: "yyyy-MM-dd HH:mm:ss",
  252. index: 1,
  253. width: 140,
  254. search: true,
  255. },{
  256. label: '货运地点',
  257. index: 2,
  258. width: 160,
  259. search: true,
  260. prop: 'addressDetail'
  261. },{
  262. label: '提单号',
  263. width: 100,
  264. index:3,
  265. search: true,
  266. overHidden: true,
  267. prop: 'billNo'
  268. }, {
  269. label: '场站',
  270. prop: 'station',
  271. overHidden: true,
  272. index: 4,
  273. width: 140,
  274. search: true,
  275. }, {
  276. label: '车队',
  277. width: 200,
  278. search: true,
  279. index:5,
  280. overHidden: true,
  281. prop: 'fleetId'
  282. },{
  283. label: '车号',
  284. width: 150,
  285. prop: 'plateNo',
  286. overHidden: true,
  287. index:6,
  288. type: 'select',
  289. search: true,
  290. dicUrl: "/api/blade-client/land-vehicle/vehicle-list?fleetId={{key}}",
  291. props: {
  292. label: "plateNo",
  293. value: "plateNo"
  294. }
  295. }, {
  296. label: '司机',
  297. width: 115,
  298. index:7,
  299. search: true,
  300. overHidden: true,
  301. prop: 'driverId',
  302. type: 'select',
  303. dicUrl: "/api/blade-client/land-driver/driver-list?vehicleId={{key}}",
  304. props: {
  305. label: "name",
  306. value: "id"
  307. },
  308. }, {
  309. label: '电话',
  310. width: 160,
  311. index:8,
  312. overHidden: true,
  313. search: true,
  314. prop: 'tel'
  315. }, {
  316. label: '平台号',
  317. width: 100,
  318. index: 9,
  319. search: true,
  320. overHidden: true,
  321. prop: 'orderNo'
  322. }, {
  323. label: '箱号',
  324. cell: true,
  325. width: 245,
  326. index: 10,
  327. overHidden: true,
  328. search: true,
  329. prop: 'ctnNo'
  330. },{
  331. label: '实际到厂时间',
  332. prop: 'realArrivalTime',
  333. overHidden: true,
  334. type: "date",
  335. searchRange: true,
  336. defaultTime: ['00:00:00', '23:59:59'],
  337. format: "yyyy-MM-dd HH:mm:ss",
  338. valueFormat: "yyyy-MM-dd HH:mm:ss",
  339. index: 11,
  340. width: 140
  341. },{
  342. label: '受理日期',
  343. type: "datetime",
  344. format: 'yyyy-MM-dd HH:mm:ss',
  345. valueFormat: 'yyyy-MM-dd HH:mm:ss',
  346. width: 200,
  347. index: 12,
  348. prop: 'acceptTime'
  349. },{
  350. label: '提箱时间',
  351. type: "borrowTime",
  352. format: 'yyyy-MM-dd HH:mm:ss',
  353. valueFormat: 'yyyy-MM-dd HH:mm:ss',
  354. width: 200,
  355. index: 12,
  356. prop: 'acceptTime'
  357. },{
  358. label: '完工日期',
  359. prop: 'finishedTime',
  360. overHidden: true,
  361. type: "date",
  362. searchRange: true,
  363. defaultTime: ['00:00:00', '23:59:59'],
  364. format: "yyyy-MM-dd HH:mm:ss",
  365. valueFormat: "yyyy-MM-dd HH:mm:ss",
  366. index:13,
  367. width: 140,
  368. // search: true,
  369. },{
  370. label: '箱型',
  371. width: 100,
  372. search: true,
  373. index: 14,
  374. overHidden: true,
  375. prop: 'ctnType',
  376. type: 'select',
  377. dicUrl: "/api/blade-system/dict-biz/dictionary?code=boxType",
  378. props: {
  379. label: "dictValue",
  380. value: "dictValue"
  381. },
  382. }, {
  383. label: '箱量',
  384. width: 50,
  385. index: 15,
  386. prop: 'ctnQuantity'
  387. },{
  388. label: '货物名称',
  389. overHidden: true,
  390. width: 160,
  391. search: true,
  392. index: 16,
  393. prop: 'goods'
  394. }, {
  395. label: '件数',
  396. width: 100,
  397. search: true,
  398. index: 17,
  399. overHidden: true,
  400. controls: false,
  401. cell: true,
  402. prop: 'quantity',
  403. type: 'number',
  404. precision:0
  405. }, {
  406. label: '重量(吨)',
  407. width: 160,
  408. prop: 'landWeight',
  409. controls: false,
  410. overHidden: true,
  411. index: 18,
  412. precision: 2,
  413. type: 'number'
  414. },{
  415. label: '尺码',
  416. width: 100,
  417. // search: true,
  418. index:19,
  419. overHidden: true,
  420. cell: true,
  421. prop: 'size',
  422. }, {
  423. label: '应付陆运费',
  424. overHidden: true,
  425. index: 20,
  426. prop: 'landAmountC'
  427. }, {
  428. label: '委托备注',
  429. overHidden: true,
  430. width: 245,
  431. index: 21,
  432. prop: 'remarks'
  433. }, {
  434. label: '车队备注',
  435. overHidden: true,
  436. width: 245,
  437. index: 22,
  438. prop: 'fleetRemarks'
  439. }, {
  440. label: '司机备注',
  441. overHidden: true,
  442. cell: true,
  443. width: 245,
  444. index: 23,
  445. prop: 'driverRemarks'
  446. },{
  447. label: '场站费',
  448. width: 100,
  449. precision: 2,
  450. cell: true,
  451. index: 24,
  452. controls: false,
  453. type: 'number',
  454. prop: 'oneFeeC'
  455. }, {
  456. label: '港杂费',
  457. width: 100,
  458. precision: 2,
  459. cell: true,
  460. index: 25,
  461. controls: false,
  462. type: 'number',
  463. prop: 'twoFeeC'
  464. }, {
  465. label: '扣款',
  466. width: 100,
  467. precision: 2,
  468. cell: true,
  469. index: 26,
  470. controls: false,
  471. type: 'number',
  472. prop: 'threeFeeC'
  473. }, {
  474. label: '待时费',
  475. width: 100,
  476. index: 27,
  477. precision: 2,
  478. cell: true,
  479. controls: false,
  480. type: 'number',
  481. prop: 'fourFeeC'
  482. }, {
  483. label: '其他',
  484. width: 100,
  485. precision: 2,
  486. index: 28,
  487. cell: true,
  488. type: 'number',
  489. controls: false,
  490. prop: 'fiveFeeC'
  491. }, {
  492. label: '费用备注',
  493. width: 245,
  494. index: 29,
  495. cell: true,
  496. prop: 'feeRemarksC'
  497. },{
  498. label: '制单日期',
  499. overHidden: true,
  500. prop: 'createTime',
  501. type: "date",
  502. searchRange: true,
  503. defaultTime: ['00:00:00', '23:59:59'],
  504. format: "yyyy-MM-dd HH:mm:ss",
  505. valueFormat: "yyyy-MM-dd HH:mm:ss",
  506. index: 30,
  507. width: 140,
  508. search: true,
  509. },{
  510. label: '船名航次',
  511. prop: 'factory',
  512. overHidden: true,
  513. index: 31,
  514. width: 140,
  515. search: true,
  516. },{
  517. label: '状态',
  518. width: 100,
  519. type: 'select',
  520. index:32,
  521. overHidden: true,
  522. dicUrl: "/api/blade-system/dict-biz/dictionary?code=land_order_status",
  523. props: {
  524. label: "dictValue",
  525. value: "dictKey"
  526. },
  527. dataType: "string",
  528. prop: 'status'
  529. }
  530. ],
  531. },
  532. totalData:{}
  533. }
  534. },
  535. async created() {
  536. this.goodsOptionCrud = await this.getColumnData(this.getColumnName(88), this.optionList);
  537. this.key++
  538. let i = 0;
  539. this.goodsOptionCrud.column.forEach(item => {
  540. if (item.search) i++
  541. })
  542. if (i % 3 !== 0) {
  543. const num = 3 - Number(i % 3)
  544. this.goodsOptionCrud.searchMenuSpan = num * 8;
  545. this.goodsOptionCrud.searchMenuPosition = "right";
  546. }
  547. },
  548. methods: {
  549. //自定义列保存
  550. async saveColumn() {
  551. /**
  552. * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
  553. * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
  554. * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
  555. */
  556. const inSave = await this.saveColumnData(this.getColumnName(88), this.goodsOptionCrud);
  557. if (inSave) {
  558. this.$message.success("保存成功");
  559. //关闭窗口
  560. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  561. }
  562. },
  563. //自定义列重置
  564. async resetColumn() {
  565. this.goodsOptionCrud = this.optionList;
  566. const inSave = await this.delColumnData(this.getColumnName(88), this.optionList);
  567. if (inSave) {
  568. this.$message.success("重置成功");
  569. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  570. }
  571. },
  572. // 获得高度
  573. searchCriteriaSwitch(type) {
  574. if (type) {
  575. this.goodsOptionCrud.height = this.goodsOptionCrud.height - 230
  576. } else {
  577. this.goodsOptionCrud.height = this.goodsOptionCrud.height + 230
  578. }
  579. this.$refs.crud.getTableHeight()
  580. },
  581. //箱信息保存
  582. rowSave(row, index, done, loading) {
  583. done()
  584. },
  585. //箱信息选择车队
  586. getfleetIdT(data, row) {
  587. this.$set(row, 'fleetName', data.cname)
  588. },
  589. //搜索
  590. searchChange(params, done) {
  591. let data = params
  592. if (params.arrivalTime) {
  593. data.beginArrivalTime = params.arrivalTime[0]
  594. data.endArrivalTime = params.arrivalTime[1]
  595. }
  596. if (params.createTime) {
  597. data.beginCrateTime = params.createTime[0]
  598. data.endCrateTime = params.createTime[1]
  599. }
  600. delete data.arrivalTime
  601. delete data.createTime
  602. this.query = data;
  603. this.onLoad(this.page, params)
  604. done();
  605. },
  606. //切换订单状态
  607. handleClick(tab) {
  608. this.activeName = tab
  609. this.onLoad(this.page)
  610. },
  611. //查询
  612. onLoad(page, params={}) {
  613. motorcadeDriver(4).then(res=>{
  614. this.totalData = res.data.data
  615. })
  616. let queryParams = {
  617. size: page.pageSize,
  618. current: page.currentPage,
  619. tag: '4',
  620. ...params,
  621. ...Object.assign(params, this.query)
  622. }
  623. this.loading = true;
  624. driverQueryCollection(queryParams).then(res => {
  625. this.goodsList = res.data.data.records
  626. this.page.total = res.data.data.total
  627. this.goodsOptionCrud.height = window.innerHeight - 345;
  628. }).finally(() => {
  629. this.loading = false;
  630. })
  631. },
  632. //箱信息保存
  633. rowSaveT(row, index, done, loading) {
  634. if (row.$cellEdit){
  635. fleetDriverSave(row).then(res=>{
  636. this.$message.success("保存成功");
  637. })
  638. }
  639. this.$refs.crud.rowCell(row, index)
  640. },
  641. //箱信息派车
  642. designate(row) {
  643. this.$confirm('是否确定受理', '提示', {
  644. confirmButtonText: '确定',
  645. cancelButtonText: '取消',
  646. type: 'warning'
  647. }).then(() => {
  648. acceptanceCollection(row).then(res => {
  649. this.$message.success('操作成功');
  650. this.onLoad(this.page)
  651. })
  652. }).catch(() => {
  653. this.$message({
  654. type: 'info',
  655. message: '已取消'
  656. });
  657. });
  658. },
  659. //取消派车
  660. cancelDesignate(row) {
  661. this.$confirm('是否确定取消受理', '提示', {
  662. confirmButtonText: '确定',
  663. cancelButtonText: '取消',
  664. type: 'warning'
  665. }).then(() => {
  666. acceptanceDispatchCollection({id: row.id}).then(res => {
  667. this.$message.success('操作成功');
  668. this.onLoad(this.page)
  669. })
  670. }).catch(() => {
  671. this.$message({
  672. type: 'info',
  673. message: '已取消'
  674. });
  675. });
  676. },
  677. confirmCompletion(row) {
  678. if (row.realArrivalTime){
  679. this.$confirm('是否确定完工', '提示', {
  680. confirmButtonText: '确定',
  681. cancelButtonText: '取消',
  682. type: 'warning'
  683. }).then(() => {
  684. confirmCompletion({id: row.id}).then(res => {
  685. this.$message.success('操作成功');
  686. this.onLoad(this.page)
  687. })
  688. }).catch(() => {
  689. this.$message({
  690. type: 'info',
  691. message: '已取消'
  692. });
  693. });
  694. }else {
  695. this.$message({
  696. type: 'warning',
  697. message: '请选择实际到厂时间!'
  698. });
  699. }
  700. },
  701. suitcase(row){
  702. this.$confirm('是否确定提箱', '提示', {
  703. confirmButtonText: '确定',
  704. cancelButtonText: '取消',
  705. type: 'warning'
  706. }).then(() => {
  707. borrow({id: row.id}).then(res => {
  708. this.$message.success('操作成功');
  709. this.onLoad(this.page)
  710. })
  711. }).catch(() => {
  712. this.$message({
  713. type: 'info',
  714. message: '已取消'
  715. });
  716. });
  717. },
  718. confirmArrival(row) {
  719. this.$confirm('是否确定到厂', '提示', {
  720. confirmButtonText: '确定',
  721. cancelButtonText: '取消',
  722. type: 'warning'
  723. }).then(() => {
  724. arrival({id: row.id}).then(res => {
  725. this.$message.success('操作成功');
  726. this.onLoad(this.page)
  727. })
  728. }).catch(() => {
  729. this.$message({
  730. type: 'info',
  731. message: '已取消'
  732. });
  733. });
  734. },
  735. //打开附件
  736. annexOpen(row, index){
  737. this.loadingTwo = false
  738. this.dialogVisible = true
  739. this.form = row
  740. getAttachment({id:row.id}).then(res=>{
  741. console.log(res)
  742. this.orderList = res.data.data
  743. })
  744. },
  745. //保存
  746. saveAnnex(){
  747. this.loadingTwo = true
  748. saveAttached({
  749. id:this.form.id,
  750. fileList:this.orderList
  751. }).then(res=>{
  752. this.annexOpen(this.form)
  753. })
  754. },
  755. ToBreak (val) {
  756. if (val)return val.replace(/\n/g, '<br/>')
  757. }
  758. }
  759. }
  760. </script>
  761. <style lang="scss" scoped>
  762. .home-container {
  763. padding: 0px 5px 5px 5px;
  764. box-sizing: border-box;
  765. height: 100%;
  766. ::v-deep .el-card__body {
  767. padding: 10px 15px;
  768. font-size: 14px;
  769. }
  770. &__card {
  771. width: 100%;
  772. height: 100%;
  773. }
  774. .title {
  775. display: flex;
  776. justify-content: space-between;
  777. .right {
  778. display: flex;
  779. align-items: center;
  780. &_but {
  781. margin-right: 10px;
  782. border: 1px solid #409eff;
  783. width: 80px;
  784. border-radius: 3px;
  785. display: flex;
  786. &_left {
  787. width: 40px;
  788. text-align: center;
  789. color: #409eff;
  790. cursor: pointer;
  791. }
  792. &_right {
  793. width: 40px;
  794. text-align: center;
  795. color: #409eff;
  796. cursor: pointer;
  797. }
  798. &_active {
  799. color: #fff;
  800. background-color: #409eff;
  801. }
  802. }
  803. }
  804. }
  805. }
  806. .content {
  807. display: flex;
  808. justify-content: center;
  809. align-items: center;
  810. height: 6vh;
  811. width: 80vw;
  812. .divider {
  813. display: block;
  814. height: 0px;
  815. width: 100%;
  816. border-top: 1px dashed #dcdfe6;
  817. }
  818. &-item {
  819. margin-left: 1vw;
  820. .card {
  821. width: 130px;
  822. display: flex;
  823. align-items: center;
  824. &-title {
  825. width: 40px;
  826. height: 40px;
  827. text-align: center;
  828. border-radius: 50%;
  829. font-size: 20px;
  830. font-weight: 600;
  831. display: flex;
  832. justify-content: center;
  833. align-items: center;
  834. span {
  835. line-height: 20px;
  836. }
  837. }
  838. &-title1 {
  839. color: #037fe1;
  840. background-color: rgba(3, 127, 225, 0.15);
  841. }
  842. &-title2 {
  843. color: #ffa21e;
  844. background-color: rgba(255, 162, 30, 0.15);
  845. }
  846. &-title3 {
  847. color: #fb5b60;
  848. background-color: rgba(251, 91, 96, 0.15);
  849. }
  850. &-title4 {
  851. color: #42bc6f;
  852. background-color: rgba(66, 188, 111, 0.15);
  853. }
  854. &-title5 {
  855. color: #14cde1;
  856. background-color: rgba(52, 149, 161, 0.15);
  857. }
  858. &-title6 {
  859. color: rgba(4, 66, 31, 0.63);
  860. background-color: rgba(66, 188, 111, 0.15);
  861. }
  862. &-content {
  863. padding-left: 1vw;
  864. display: flex;
  865. flex-direction: column;
  866. &-num {
  867. font-size: 20px;
  868. font-weight: 600;
  869. }
  870. &-text {
  871. color: #909399;
  872. }
  873. }
  874. }
  875. }
  876. }
  877. </style>