index.vue 24 KB

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