index.vue 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477
  1. <template>
  2. <div>
  3. <basic-container v-show="show">
  4. <div class="home-container"
  5. v-if="roleName.indexOf('平台') !== -1 || roleName.indexOf('客户') !== -1 || roleName.indexOf('administrator') !== -1 || roleName.indexOf('admin') !== -1">
  6. <div style="display: flex;justify-content: center;">
  7. <div class="content">
  8. <div class="content-item" @click="handleClick('')">
  9. <div class="card">
  10. <div class="card-title card-title1">
  11. <span>
  12. </span>
  13. </div>
  14. <div class="card-content">
  15. <span class="card-content-num" :class="!activeName?'selected':''">{{ totalData.all }}</span>
  16. <span class="card-content-text" :class="!activeName?'selected':''">全部</span>
  17. </div>
  18. </div>
  19. </div>
  20. <div class="divider"/>
  21. <div class="content-item" @click="handleClick('0')">
  22. <div class="card">
  23. <div class="card-title card-title7">
  24. <span>
  25. </span>
  26. </div>
  27. <div class="card-content">
  28. <span class="card-content-num" :class="activeName === '0'?'selected':''">{{ totalData.last }}</span>
  29. <span class="card-content-text" :class="activeName === '0'?'selected':''">未提交</span>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="divider"/>
  34. <div class="content-item" @click="handleClick('1')">
  35. <div class="card">
  36. <div class="card-title card-title2">
  37. <span>
  38. </span>
  39. </div>
  40. <div class="card-content">
  41. <span class="card-content-num" :class="activeName === '1'?'selected':''">{{ totalData.zero }}</span>
  42. <span class="card-content-text" :class="activeName === '1'?'selected':''">未调度</span>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="divider"/>
  47. <div class="content-item" @click="handleClick('2')">
  48. <div class="card">
  49. <div class="card-title card-title3">
  50. <span>
  51. </span>
  52. </div>
  53. <div class="card-content">
  54. <span class="card-content-num" :class="activeName === '2'?'selected':''">{{ totalData.one }}</span>
  55. <span class="card-content-text" :class="activeName === '2'?'selected':''">未派车</span>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="divider"/>
  60. <div class="content-item" @click="handleClick('3')">
  61. <div class="card">
  62. <div class="card-title card-title4">
  63. <span>
  64. </span>
  65. </div>
  66. <div class="card-content">
  67. <span class="card-content-num" :class="activeName === '3'?'selected':''">{{ totalData.two }}</span>
  68. <span class="card-content-text" :class="activeName === '3'?'selected':''">未受理</span>
  69. </div>
  70. </div>
  71. </div>
  72. <div class="divider"/>
  73. <div class="content-item" @click="handleClick('4,6')">
  74. <div class="card">
  75. <div class="card-title card-title5">
  76. <span>
  77. </span>
  78. </div>
  79. <div class="card-content">
  80. <span class="card-content-num" :class="activeName === '4,6'?'selected':''">{{
  81. totalData.three
  82. }}</span>
  83. <span class="card-content-text" :class="activeName === '4,6'?'selected':''">未完工</span>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="divider"/>
  88. <div class="content-item" @click="handleClick('5')">
  89. <div class="card">
  90. <div class="card-title card-title6">
  91. <span>
  92. </span>
  93. </div>
  94. <div class="card-content">
  95. <span class="card-content-num" :class="activeName === '5'?'selected':''">{{ totalData.four }}</span>
  96. <span class="card-content-text" :class="activeName === '5'?'selected':''">已关闭</span>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <div class="home-container" v-if="roleName.indexOf('车队') !== -1">
  104. <div style="display: flex;justify-content: center;">
  105. <div class="content">
  106. <div class="content-item" @click="handleClick('')">
  107. <div class="card">
  108. <div class="card-title card-title1">
  109. <span>
  110. </span>
  111. </div>
  112. <div class="card-content">
  113. <span class="card-content-num" :class="!activeName?'selected':''">{{ totalData.all }}</span>
  114. <span class="card-content-text" :class="!activeName?'selected':''">全部</span>
  115. </div>
  116. </div>
  117. </div>
  118. <div class="divider"/>
  119. <div class="content-item" @click="handleClick('2')">
  120. <div class="card">
  121. <div class="card-title card-title3">
  122. <span>
  123. </span>
  124. </div>
  125. <div class="card-content">
  126. <span class="card-content-num" :class="activeName === '2'?'selected':''">{{ totalData.one }}</span>
  127. <span class="card-content-text" :class="activeName === '2'?'selected':''">未派车</span>
  128. </div>
  129. </div>
  130. </div>
  131. <div class="divider"/>
  132. <div class="content-item" @click="handleClick('3')">
  133. <div class="card">
  134. <div class="card-title card-title4">
  135. <span>
  136. </span>
  137. </div>
  138. <div class="card-content">
  139. <span class="card-content-num" :class="activeName === '3'?'selected':''">{{ totalData.two }}</span>
  140. <span class="card-content-text" :class="activeName === '3'?'selected':''">未受理</span>
  141. </div>
  142. </div>
  143. </div>
  144. <div class="divider"/>
  145. <div class="content-item" @click="handleClick('4,6')">
  146. <div class="card">
  147. <div class="card-title card-title5">
  148. <span>
  149. </span>
  150. </div>
  151. <div class="card-content">
  152. <span class="card-content-num" :class="activeName === '4,6'?'selected':''">{{
  153. totalData.three
  154. }}</span>
  155. <span class="card-content-text" :class="activeName === '4,6'?'selected':''">未完工</span>
  156. </div>
  157. </div>
  158. </div>
  159. <div class="divider"/>
  160. <div class="content-item" @click="handleClick('5')">
  161. <div class="card">
  162. <div class="card-title card-title6">
  163. <span>
  164. </span>
  165. </div>
  166. <div class="card-content">
  167. <span class="card-content-num" :class="activeName === '5'?'selected':''">{{ totalData.four }}</span>
  168. <span class="card-content-text" :class="activeName === '5'?'selected':''">已关闭</span>
  169. </div>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. <div class="home-container" v-if="roleName.indexOf('司机') !== -1">
  176. <div style="display: flex;justify-content: center;">
  177. <div class="content">
  178. <div class="content-item" @click="handleClick('')">
  179. <div class="card">
  180. <div class="card-title card-title1">
  181. <span>
  182. </span>
  183. </div>
  184. <div class="card-content">
  185. <span class="card-content-num" :class="!activeName?'selected':''">{{ totalData.all }}</span>
  186. <span class="card-content-text" :class="!activeName?'selected':''">全部</span>
  187. </div>
  188. </div>
  189. </div>
  190. <div class="divider"/>
  191. <div class="content-item" @click="handleClick('3')">
  192. <div class="card">
  193. <div class="card-title card-title4">
  194. <span>
  195. </span>
  196. </div>
  197. <div class="card-content">
  198. <span class="card-content-num" :class="activeName === '3'?'selected':''">{{ totalData.two }}</span>
  199. <span class="card-content-text" :class="activeName === '3'?'selected':''">未受理</span>
  200. </div>
  201. </div>
  202. </div>
  203. <div class="divider"/>
  204. <div class="content-item" @click="handleClick('4,6')">
  205. <div class="card">
  206. <div class="card-title card-title5">
  207. <span>
  208. </span>
  209. </div>
  210. <div class="card-content">
  211. <span class="card-content-num" :class="activeName === '4,6'?'selected':''">{{
  212. totalData.three
  213. }}</span>
  214. <span class="card-content-text" :class="activeName === '4,6'?'selected':''">未完工</span>
  215. </div>
  216. </div>
  217. </div>
  218. <div class="divider"/>
  219. <div class="content-item" @click="handleClick('5')">
  220. <div class="card">
  221. <div class="card-title card-title6">
  222. <span>
  223. </span>
  224. </div>
  225. <div class="card-content">
  226. <span class="card-content-num" :class="activeName === '5'?'selected':''">{{ totalData.four }}</span>
  227. <span class="card-content-text" :class="activeName === '5'?'selected':''">已关闭</span>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </basic-container>
  235. <basic-container v-show="show">
  236. <avue-crud
  237. :key="key"
  238. :table-loading="loading"
  239. :page.sync="page"
  240. :data="dataList"
  241. ref="crud"
  242. :option="option"
  243. :search.sync="query"
  244. @on-load="onLoad"
  245. @row-del="rowDel"
  246. @search-reset="query={};activeName = ''"
  247. @selection-change="selectionChange"
  248. @resetColumn="resetColumn"
  249. @saveColumn="saveColumn"
  250. @search-criteria-switch="searchCriteriaSwitch"
  251. @search-change="searchChange">
  252. <template slot="menuLeft" slot-scope="{size}"
  253. v-if="roleName.indexOf('客户') !== -1 || roleName.indexOf('分管调度') !== -1 || roleName.indexOf('administrator') !== -1 || roleName.indexOf('admin') !== -1">
  254. <el-button type="primary" icon="el-icon-plus" :size="size" @click="rowSave">创建单据</el-button>
  255. <el-button type="success" :size="size" :disabled="selectionList.length !== 1" @click="copyDocument">复制单据
  256. </el-button>
  257. <el-button type="info" :size="size" icon="el-icon-printer">报表打印</el-button>
  258. </template>
  259. <template slot="plateNo" slot-scope="{row}" v-if="!row.$cellEdit">
  260. <span class="el-button--text" style="cursor: pointer" @click="openTrack(row)">{{ row.plateNo }}</span>
  261. </template>
  262. <template slot="corpShortNameSearch" slot-scope="{ row,index}">
  263. <crop-select
  264. v-model="row.corpId"
  265. :corpType="'KH'"
  266. :label="'shortName'"
  267. ></crop-select>
  268. </template>
  269. <!-- <template slot="corpNameSearch" slot-scope="{ row,index}">-->
  270. <!-- <crop-select-->
  271. <!-- v-model="row.corpId"-->
  272. <!-- ></crop-select>-->
  273. <!-- </template>-->
  274. <template slot="addressDetail" slot-scope="{ row,index}">
  275. <el-tooltip class="item" effect="dark" placement="top">
  276. <div v-html="ToBreak(row.addressDetail)" slot="content"></div>
  277. <div style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{ row.addressDetail }}</div>
  278. </el-tooltip>
  279. </template>
  280. <template slot="unloadingPlace" slot-scope="{ row,index}">
  281. <el-tooltip class="item" effect="dark" placement="top">
  282. <div v-html="ToBreak(row.unloadingPlace)" slot="content"></div>
  283. <div style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{ row.unloadingPlace }}</div>
  284. </el-tooltip>
  285. </template>
  286. <template slot-scope="{row,index}" slot="menu">
  287. <el-button type="text"
  288. icon="el-icon-edit"
  289. size="small"
  290. @click.stop="rowCell(row,index)">查看
  291. </el-button>
  292. <el-button type="text"
  293. icon="el-icon-delete"
  294. size="small"
  295. :disabled="roleName.indexOf('经理') !== -1 || roleName.indexOf('部门经理') !== -1 || roleName.indexOf('总经理') !== -1 || roleName.indexOf('总调度') !== -1"
  296. v-if="row.status < 1"
  297. @click.stop="$refs.crud.rowDel(row,index)">删除
  298. </el-button>
  299. </template>
  300. <template slot="corpShortName" slot-scope="{row,index}">
  301. <span class="el-button--text" style="cursor: pointer"
  302. @click.stop="rowCell(row,index)">{{ row.corpShortName }}</span>
  303. </template>
  304. <template slot="dispatchNumber" slot-scope="{row,index}">
  305. <span class="el-button--text" style="cursor: pointer"
  306. @click.stop="rowCell(row,index)">{{ row.dispatchNumber }}</span>
  307. </template>
  308. <template slot="orderNo" slot-scope="{row,index}">
  309. <span class="el-button--text" style="cursor: pointer"
  310. @click.stop="rowCell(row,index)">{{ row.orderNo }}</span>
  311. </template>
  312. <template slot="contractNo" slot-scope="{row,index}">
  313. <span class="el-button--text" style="cursor: pointer" @click.stop="rowCell(row,index)">{{
  314. row.contractNo
  315. }}</span>
  316. </template>
  317. <template slot="fleetNameDetail" slot-scope="{row,index}">
  318. <span class="el-button--text" style="cursor: pointer" @click.stop="rowCell(row,index)">{{
  319. row.fleetNameDetail
  320. }}</span>
  321. </template>
  322. </avue-crud>
  323. </basic-container>
  324. <detail-page v-if="!show" @backToList="backToList" :id="id" :home="home"></detail-page>
  325. <el-dialog
  326. title="实时位置"
  327. append-to-body
  328. custom-class="dialog_two"
  329. :visible.sync="dialogVisible"
  330. lock-scroll
  331. width="80%">
  332. <div id="container"></div>
  333. </el-dialog>
  334. </div>
  335. </template>
  336. <script>
  337. import detailPage from './detailPage'
  338. import {getSalesman, removeDelegationList, selectInvoiceList, totalList} from "@/api/landTransportation/bulkCargo";
  339. import {getQueryString} from "@/util/util";
  340. import {businessStatisticsFrequency} from "@/api/wel";
  341. import {gaude, location} from "@/api/gaude";
  342. import {customerList, fleetList} from "@/api/basicData/customerInformation";
  343. import {defaultDate} from "@/util/date";
  344. export default {
  345. name: "index",
  346. components: {
  347. detailPage
  348. },
  349. watch:{
  350. option:{
  351. handler(newValue, oldValue) {
  352. if (this.roleName.indexOf('调度中心业务员') !== -1 || this.roleName.indexOf('调度中心经理') !== -1) {
  353. this.findObject(this.option.column, "freightCollect").hide = true
  354. this.findObject(this.option.column, "freightCollect").showColumn = false
  355. }
  356. }
  357. }
  358. },
  359. data() {
  360. return {
  361. id: '',
  362. map: null,
  363. infoWindow: null,
  364. marker: null,
  365. dialogVisible: false,
  366. lineArr: [],
  367. activeName: '0',
  368. show: true,
  369. query: {},
  370. selectionList: [],
  371. dataList: [],
  372. loading: false,
  373. page: {
  374. pageSize: 10,
  375. currentPage: 1,
  376. total: 0,
  377. pageSizes: [10, 50, 100, 200, 300, 500, 1000]
  378. },
  379. key: 0,
  380. totalData: {},
  381. option: {},
  382. optionList: {},
  383. //客户
  384. optionListOne: {
  385. align: 'center',
  386. stripe: true,
  387. index: true,
  388. menu: true,
  389. menuWidth: 120,
  390. addBtn: false,
  391. editBtn: false,
  392. delBtn: false,
  393. height: "auto",
  394. searchSpan: 8,
  395. searchIcon: true,
  396. searchIndex: 2,
  397. selection: true,
  398. highlightCurrentRow: true,
  399. showSummary: true,
  400. summaryText: "合计",
  401. sumColumnList: [{
  402. name: 'freightCollect',
  403. type: 'sum',
  404. decimals: 2
  405. }, {
  406. name: 'freightPay',
  407. type: 'sum',
  408. decimals: 2
  409. }],
  410. column: [
  411. {
  412. label: '货运日期',
  413. prop: 'arrivalTime',
  414. overHidden: true,
  415. type: "date",
  416. searchRange: true,
  417. defaultTime: ['00:00:00', '23:59:59'],
  418. format: "yyyy-MM-dd HH:mm",
  419. valueFormat: "yyyy-MM-dd HH:mm:ss",
  420. index: 1,
  421. width: 126,
  422. search: true,
  423. }, {
  424. label: '业务员',
  425. index: 2,
  426. width: 70,
  427. prop: 'salesmanName',
  428. searchProp: 'salesman',
  429. search: true,
  430. overHidden: true,
  431. filterable: true,
  432. type: "select",
  433. dicUrl: "/api/blade-user/userList?roleAlias=业务员",
  434. props: {
  435. label: "realName",
  436. value: "id"
  437. }
  438. }, {
  439. label: '物流运输',
  440. prop: 'dispatchDeptName',
  441. searchProp: 'dispatchDept',
  442. search: true,
  443. filterable: true,
  444. dicUrl: "/api/blade-system/dept/top-list?deptCategory=1",
  445. type: "select",
  446. props: {
  447. label: "deptName",
  448. value: "id"
  449. },
  450. overHidden: true,
  451. index: 3,
  452. width: 80
  453. }, {
  454. label: '运输调度',
  455. prop: 'dispatcherName',
  456. overHidden: true,
  457. index: 4,
  458. width: 70,
  459. }, {
  460. label: '派车单号',
  461. width: 80,
  462. index: 5,
  463. prop: 'dispatchNumber',
  464. overHidden: true,
  465. search: true,
  466. }, {
  467. label: '装货地点',
  468. prop: 'addressDetail',
  469. index: 6,
  470. width: 132,
  471. search: true,
  472. }, {
  473. label: '卸货地点',
  474. prop: 'unloadingPlace',
  475. index: 7,
  476. width: 132,
  477. search: true,
  478. }, {
  479. label: '车队',
  480. width: 90,
  481. index: 8,
  482. overHidden: true,
  483. prop: 'fleetShortName',
  484. searchProp: 'fleetId',
  485. type: 'select',
  486. cascader: ['plateNo'],
  487. props: {
  488. label: "cname",
  489. value: "id"
  490. },
  491. filterable: true,
  492. search: true,
  493. }, {
  494. label: '车型',
  495. width: 90,
  496. index: 9,
  497. prop: 'fleetVolum'
  498. }, {
  499. label: '运费',
  500. index: 11,
  501. width: 100,
  502. prop: 'freightCollect'
  503. }, {
  504. label: '状态',
  505. prop: 'status',
  506. index: 12,
  507. dicUrl: "/api/blade-system/dict-biz/dictionary?code=land_order_status_two",
  508. props: {
  509. label: "dictValue",
  510. value: "dictKey"
  511. },
  512. dataType: "string",
  513. type: 'select',
  514. overHidden: true,
  515. search: true,
  516. width: 90
  517. }, {
  518. label: '备注',
  519. index: 13,
  520. overHidden: true,
  521. width: 130,
  522. prop: 'remarks',
  523. }, {
  524. label: '公司名称',
  525. prop: 'corpShortName',
  526. overHidden: true,
  527. index: 14,
  528. width: 120,
  529. search: true,
  530. }, {
  531. label: '制单人',
  532. prop: 'createUserName',
  533. overHidden: true,
  534. index: 15,
  535. width: 60,
  536. }, {
  537. label: '制单日期',
  538. overHidden: true,
  539. prop: 'createTime',
  540. type: "date",
  541. searchRange: true,
  542. defaultTime: ['00:00:00', '23:59:59'],
  543. format: "yyyy-MM-dd HH:mm",
  544. valueFormat: "yyyy-MM-dd HH:mm:ss",
  545. index: 16,
  546. width: 135,
  547. search: true,
  548. }]
  549. },
  550. //调度
  551. optionListTwo: {
  552. align: 'center',
  553. stripe: true,
  554. index: true,
  555. menu: true,
  556. menuWidth: 120,
  557. addBtn: false,
  558. editBtn: false,
  559. delBtn: false,
  560. height: "auto",
  561. searchSpan: 8,
  562. searchIcon: true,
  563. searchIndex: 2,
  564. selection: true,
  565. highlightCurrentRow: true,
  566. showSummary: true,
  567. summaryText: "合计",
  568. sumColumnList: [{
  569. name: 'freightCollect',
  570. type: 'sum',
  571. decimals: 2
  572. }, {
  573. name: 'freightPay',
  574. type: 'sum',
  575. decimals: 2
  576. }],
  577. column: [
  578. {
  579. label: '货运日期',
  580. prop: 'arrivalTime',
  581. overHidden: true,
  582. type: "date",
  583. searchRange: true,
  584. defaultTime: ['00:00:00', '23:59:59'],
  585. format: "yyyy-MM-dd HH:mm",
  586. valueFormat: "yyyy-MM-dd HH:mm:ss",
  587. index: 1,
  588. width: 126,
  589. search: true,
  590. }, {
  591. label: '业务员',
  592. index: 2,
  593. width: 70,
  594. prop: 'salesmanName',
  595. searchProp: 'salesman',
  596. search: true,
  597. overHidden: true,
  598. filterable: true,
  599. type: "select",
  600. dicUrl: "/api/blade-user/userList?roleAlias=业务员",
  601. props: {
  602. label: "realName",
  603. value: "id"
  604. }
  605. }, {
  606. label: '运输调度',
  607. prop: 'dispatcherName',
  608. overHidden: true,
  609. index: 3,
  610. width: 70,
  611. }, {
  612. label: '派车单号',
  613. width: 80,
  614. index: 4,
  615. prop: 'dispatchNumber',
  616. overHidden: true,
  617. search: true,
  618. }, {
  619. label: '装货地点',
  620. prop: 'addressDetail',
  621. index: 5,
  622. width: 132,
  623. search: true,
  624. }, {
  625. label: '卸货地点',
  626. prop: 'unloadingPlace',
  627. index: 6,
  628. width: 132,
  629. search: true,
  630. }, {
  631. label: '车队',
  632. width: 90,
  633. index: 7,
  634. overHidden: true,
  635. prop: 'fleetShortName',
  636. searchProp: 'fleetId',
  637. type: 'select',
  638. dicData: [],
  639. cascader: ['plateNo'],
  640. props: {
  641. label: "cname",
  642. value: "id"
  643. },
  644. filterable: true,
  645. search: true,
  646. }, {
  647. label: '车号',
  648. width: 90,
  649. index: 8,
  650. prop: 'plateNo'
  651. }, {
  652. label: '车型',
  653. width: 90,
  654. index: 9,
  655. prop: 'fleetVolum'
  656. }, {
  657. label: '应收运费',
  658. index: 11,
  659. width: 100,
  660. prop: 'freightCollect'
  661. }, {
  662. label: '状态',
  663. prop: 'status',
  664. index: 12,
  665. dicUrl: "/api/blade-system/dict-biz/dictionary?code=land_order_status_two",
  666. props: {
  667. label: "dictValue",
  668. value: "dictKey"
  669. },
  670. dataType: "string",
  671. type: 'select',
  672. overHidden: true,
  673. search: true,
  674. width: 90
  675. }, {
  676. label: '应付运费',
  677. prop: 'freightPay',
  678. overHidden: true,
  679. width: 100,
  680. index: 13,
  681. }, {
  682. label: '备注',
  683. index: 14,
  684. overHidden: true,
  685. width: 130,
  686. prop: 'remarks',
  687. }, {
  688. label: '公司名称',
  689. prop: 'corpShortName',
  690. overHidden: true,
  691. index: 15,
  692. width: 120,
  693. search: true,
  694. }, {
  695. label: '制单人',
  696. prop: 'createUserName',
  697. overHidden: true,
  698. index: 16,
  699. width: 60,
  700. }, {
  701. label: '制单日期',
  702. overHidden: true,
  703. prop: 'createTime',
  704. type: "date",
  705. searchRange: true,
  706. defaultTime: ['00:00:00', '23:59:59'],
  707. format: "yyyy-MM-dd HH:mm",
  708. valueFormat: "yyyy-MM-dd HH:mm:ss",
  709. index: 17,
  710. width: 135,
  711. search: true,
  712. }]
  713. },
  714. optionListThree: {
  715. align: 'center',
  716. stripe: true,
  717. index: true,
  718. menu: true,
  719. menuWidth: 120,
  720. addBtn: false,
  721. editBtn: false,
  722. delBtn: false,
  723. height: "auto",
  724. searchSpan: 8,
  725. searchIcon: true,
  726. searchIndex: 2,
  727. selection: true,
  728. highlightCurrentRow: true,
  729. showSummary: true,
  730. summaryText: "合计",
  731. sumColumnList: [{
  732. name: 'freightCollect',
  733. type: 'sum',
  734. decimals: 2
  735. }, {
  736. name: 'freightPay',
  737. type: 'sum',
  738. decimals: 2
  739. }],
  740. column: [
  741. {
  742. label: '货运日期',
  743. prop: 'arrivalTime',
  744. overHidden: true,
  745. type: "date",
  746. searchRange: true,
  747. defaultTime: ['00:00:00', '23:59:59'],
  748. format: "yyyy-MM-dd HH:mm",
  749. valueFormat: "yyyy-MM-dd HH:mm:ss",
  750. index: 1,
  751. width: 126,
  752. search: true,
  753. }, {
  754. label: '物流运输',
  755. prop: 'dispatchDeptName',
  756. searchProp: 'dispatchDept',
  757. search: true,
  758. filterable: true,
  759. dicUrl: "/api/blade-system/dept/top-list?deptCategory=1",
  760. type: "select",
  761. props: {
  762. label: "deptName",
  763. value: "id"
  764. },
  765. overHidden: true,
  766. index: 2,
  767. width: 80
  768. }, {
  769. label: '运输调度',
  770. prop: 'dispatcherName',
  771. overHidden: true,
  772. index: 3,
  773. width: 70,
  774. }, {
  775. label: '派车单号',
  776. width: 80,
  777. index: 4,
  778. prop: 'dispatchNumber',
  779. overHidden: true,
  780. search: true,
  781. }, {
  782. label: '装货地点',
  783. prop: 'addressDetail',
  784. index: 5,
  785. width: 132,
  786. search: true,
  787. }, {
  788. label: '卸货地点',
  789. prop: 'unloadingPlace',
  790. index: 6,
  791. width: 132,
  792. search: true,
  793. }, {
  794. label: '车队',
  795. width: 90,
  796. index: 7,
  797. overHidden: true,
  798. prop: 'fleetShortName',
  799. searchProp: 'fleetId',
  800. type: 'select',
  801. cascader: ['plateNo'],
  802. props: {
  803. label: "cname",
  804. value: "id"
  805. },
  806. filterable: true,
  807. search: true,
  808. }, {
  809. label: '车号',
  810. width: 90,
  811. index: 8,
  812. prop: 'plateNo',
  813. type: "select",
  814. cascader: ['driverId'],
  815. dicUrl: "/api/blade-client/land-vehicle/vehicle-list?fleetId={{key}}",
  816. props: {
  817. label: "plateNo",
  818. value: "plateNo"
  819. },
  820. filterable: true,
  821. search: true,
  822. }, {
  823. label: '司机',
  824. width: 70,
  825. index: 9,
  826. prop: 'driverName',
  827. searchProp: 'driverId',
  828. filterable: true,
  829. type: "select",
  830. dicUrl: "/api/blade-client/land-driver/driver-list?plateNo={{key}}",
  831. props: {
  832. label: "name",
  833. value: "id"
  834. },
  835. search: true,
  836. }, {
  837. label: '电话',
  838. width: 120,
  839. index: 10,
  840. prop: 'driverTel'
  841. }, {
  842. label: '车型',
  843. width: 90,
  844. index: 11,
  845. prop: 'fleetVolum'
  846. },
  847. // {
  848. // label: '状态',
  849. // prop: 'status',
  850. // index: 13,
  851. // dicUrl: "/api/blade-system/dict-biz/dictionary?code=land_order_status_two",
  852. // props: {
  853. // label: "dictValue",
  854. // value: "dictKey"
  855. // },
  856. // dataType: "string",
  857. // type: 'select',
  858. // overHidden: true,
  859. // search: true,
  860. // width: 140
  861. // },
  862. {
  863. label: '应付运费',
  864. prop: 'freightPay',
  865. overHidden: true,
  866. width: 100,
  867. index: 13,
  868. }, {
  869. label: '备注',
  870. index: 14,
  871. overHidden: true,
  872. width: 130,
  873. prop: 'remarks',
  874. }]
  875. },
  876. optionListFour: {
  877. align: 'center',
  878. stripe: true,
  879. index: true,
  880. menu: true,
  881. menuWidth: 120,
  882. addBtn: false,
  883. editBtn: false,
  884. delBtn: false,
  885. height: "auto",
  886. searchSpan: 8,
  887. searchIcon: true,
  888. searchIndex: 2,
  889. selection: true,
  890. highlightCurrentRow: true,
  891. showSummary: false,
  892. summaryText: "合计",
  893. sumColumnList: [{
  894. name: 'freightCollect',
  895. type: 'sum',
  896. decimals: 2
  897. }, {
  898. name: 'freightPay',
  899. type: 'sum',
  900. decimals: 2
  901. }],
  902. column: [
  903. {
  904. label: '货运日期',
  905. prop: 'arrivalTime',
  906. overHidden: true,
  907. type: "date",
  908. searchRange: true,
  909. defaultTime: ['00:00:00', '23:59:59'],
  910. format: "yyyy-MM-dd HH:mm",
  911. valueFormat: "yyyy-MM-dd HH:mm:ss",
  912. index: 1,
  913. width: 126,
  914. search: true,
  915. }, {
  916. label: '物流运输',
  917. prop: 'dispatchDeptName',
  918. searchProp: 'dispatchDept',
  919. search: true,
  920. filterable: true,
  921. dicUrl: "/api/blade-system/dept/top-list?deptCategory=1",
  922. type: "select",
  923. props: {
  924. label: "deptName",
  925. value: "id"
  926. },
  927. overHidden: true,
  928. index: 2,
  929. width: 80
  930. }, {
  931. label: '运输调度',
  932. prop: 'dispatcherName',
  933. overHidden: true,
  934. index: 3,
  935. width: 70,
  936. }, {
  937. label: '派车单号',
  938. width: 80,
  939. index: 4,
  940. prop: 'dispatchNumber',
  941. overHidden: true,
  942. search: true,
  943. }, {
  944. label: '装货地点',
  945. prop: 'addressDetail',
  946. index: 5,
  947. width: 132,
  948. search: true,
  949. }, {
  950. label: '卸货地点',
  951. prop: 'unloadingPlace',
  952. index: 6,
  953. width: 132,
  954. search: true,
  955. }, {
  956. label: '车队',
  957. width: 90,
  958. index: 7,
  959. overHidden: true,
  960. prop: 'fleetShortName',
  961. searchProp: 'fleetId',
  962. type: 'select',
  963. cascader: ['plateNo'],
  964. props: {
  965. label: "cname",
  966. value: "id"
  967. },
  968. filterable: true,
  969. search: true,
  970. }, {
  971. label: '车号',
  972. width: 90,
  973. index: 8,
  974. prop: 'plateNo',
  975. type: "select",
  976. cascader: ['driverId'],
  977. dicUrl: "/api/blade-client/land-vehicle/vehicle-list?fleetId={{key}}",
  978. props: {
  979. label: "plateNo",
  980. value: "plateNo"
  981. },
  982. filterable: true,
  983. search: true,
  984. }, {
  985. label: '司机',
  986. width: 70,
  987. index: 9,
  988. prop: 'driverName',
  989. searchProp: 'driverId',
  990. filterable: true,
  991. type: "select",
  992. dicUrl: "/api/blade-client/land-driver/driver-list?plateNo={{key}}",
  993. props: {
  994. label: "name",
  995. value: "id"
  996. },
  997. search: true,
  998. }, {
  999. label: '电话',
  1000. width: 120,
  1001. index: 10,
  1002. prop: 'driverTel'
  1003. }, {
  1004. label: '车型',
  1005. width: 90,
  1006. index: 11,
  1007. prop: 'fleetVolum'
  1008. },
  1009. // {
  1010. // label: '状态',
  1011. // prop: 'status',
  1012. // index: 13,
  1013. // dicUrl: "/api/blade-system/dict-biz/dictionary?code=land_order_status_two",
  1014. // props: {
  1015. // label: "dictValue",
  1016. // value: "dictKey"
  1017. // },
  1018. // dataType: "string",
  1019. // type: 'select',
  1020. // overHidden: true,
  1021. // search: true,
  1022. // width: 140
  1023. // },
  1024. {
  1025. label: '备注',
  1026. index: 14,
  1027. overHidden: true,
  1028. width: 130,
  1029. prop: 'remarks',
  1030. }]
  1031. },
  1032. home: false,
  1033. entrustTimer: null,
  1034. roleName: localStorage.getItem("roleName").split(','),
  1035. }
  1036. },
  1037. activated() {
  1038. if (this.$route.query.id) {
  1039. this.rowCell({id: this.$route.query.id}, 0)
  1040. this.$router.$avueRouter.closeTag(window.location.hash.slice(1))
  1041. this.home = true
  1042. }
  1043. },
  1044. async created() {
  1045. // this.option = this.optionListOne
  1046. // this.option = this.optionListTwo
  1047. // this.option = this.optionListThree
  1048. this.query = {
  1049. arrivalTime: [defaultDate(4)[0] + ' 00:00:00',defaultDate(4)[1] + ' 23:59:59']
  1050. }
  1051. if (this.roleName.indexOf('客户') !== -1 || this.roleName.indexOf('admin') !== -1) {
  1052. this.activeName = '0'
  1053. this.optionList = this.optionListOne
  1054. } else if (this.roleName.indexOf('平台') !== -1) {
  1055. this.activeName = '0'
  1056. this.optionList = this.optionListTwo
  1057. } else if (this.roleName.indexOf('车队') !== -1) {
  1058. this.activeName = '2'
  1059. this.optionList = this.optionListThree
  1060. } else {
  1061. this.activeName = '3'
  1062. this.optionList = this.optionListFour
  1063. }
  1064. this.option = await this.getColumnData(this.getColumnName(85.7), this.optionList);
  1065. this.key++
  1066. fleetList().then(res => {
  1067. this.findObject(this.option.column, "fleetShortName").dicData = res.data.data
  1068. })
  1069. getSalesman().then(res => {
  1070. this.findObject(this.option.column, "salesmanName").dicData = res.data.data
  1071. })
  1072. let i = 0;
  1073. this.option.column.forEach(item => {
  1074. if (item.search) i++
  1075. })
  1076. if (this.roleName.indexOf('经理') !== -1 || this.roleName.indexOf('部门经理') !== -1 || this.roleName.indexOf('总经理') !== -1 || this.roleName.indexOf('总调度') !== -1) {
  1077. // this.option.menu = false
  1078. this.option.header = false
  1079. }
  1080. if (i % 3 !== 0) {
  1081. const num = 3 - Number(i % 3)
  1082. this.option.searchMenuSpan = num * 8;
  1083. this.option.searchMenuPosition = "right";
  1084. }
  1085. },
  1086. mounted() {
  1087. businessStatisticsFrequency().then(res => {
  1088. // let this_ = this
  1089. // this_.entrustTimer = setInterval(function () {
  1090. // if (JSON.parse(localStorage.getItem("saber-token")).content) {
  1091. // totalList(1).then(res => {
  1092. // this_.totalData = res.data.data
  1093. // })
  1094. // }
  1095. // }, Number(res.data.data[0].dictKey)*1000)
  1096. })
  1097. },
  1098. beforeDestroy() {
  1099. this.map && this.map.destroy();
  1100. clearInterval(this.entrustTimer); //关闭
  1101. },
  1102. methods: {
  1103. openTrack(row) {
  1104. location({itemId: row.itemId, plateNo: row.plateNo, tenantId: '234557', color: '2'}).then(res => {
  1105. this.dialogVisible = true
  1106. let this_ = this
  1107. setTimeout(function () {
  1108. this_.initMap(res.data.data, row.plateNo);
  1109. }, 1000)
  1110. })
  1111. },
  1112. markerClick(e) {
  1113. this.infoWindow.setContent(e.target.content);
  1114. this.infoWindow.open(this.map, e.target.getPosition());
  1115. },
  1116. initMap(data, plateNo) {
  1117. console.log(data, plateNo)
  1118. this.map = null
  1119. this.map = new AMap.Map("container", {resizeEnable: true});
  1120. this.infoWindow = new AMap.InfoWindow({
  1121. ffset: new AMap.Pixel(0, -30),
  1122. offset: new AMap.Pixel(0, -30)
  1123. });
  1124. let icon = new AMap.Icon({
  1125. size: new AMap.Size(52, 26), // 图标尺寸
  1126. image: 'https://trade.tubaosoft.com/file/bladex/000000/1123598821738675201/che.png',
  1127. imageSize: new AMap.Size(52, 26), // 根据所设置的大小拉伸或压缩图片
  1128. });
  1129. this.marker = new AMap.Marker({
  1130. position: data.location,
  1131. map: this.map,
  1132. icon: icon,
  1133. markerMeta: new AMap.Size(28, 28),
  1134. offset: new AMap.Pixel(-26, -15),
  1135. autoRotation: true,
  1136. angle: -15
  1137. });
  1138. this.marker.content = '<div style="width: 300px;">'
  1139. + '<p style="font-size: 22px;font-weight: bold;background-color: #2d8cf0;color: #fff;">' + plateNo + '</p>'
  1140. + '<p style="padding: 5px 0"><span style="color: #a0a0a0">最后上报时间:</span>' + new Date(Number(data.time) + 8 * 60 * 60 * 1000).toJSON().split('T').join(' ').substr(0, 19) + '</p>'
  1141. + '<div style="width: 150px;float: left;">'
  1142. + '<p style="padding: 5px 0"><span style="color: #a0a0a0">车辆状态:</span>' + (data.speed > 0 ? '行驶中' : '停车') + '</p>'
  1143. + '</div>'
  1144. + '<div style="width: 150px;float: right;">'
  1145. + '<p style="padding: 5px 0"><span style="color: #a0a0a0">速度:</span>' + data.speed + 'km/h</p>'
  1146. + '</div>'
  1147. + '<p><span style="color: #a0a0a0">当前位置:</span>' + data.address + '</p>'
  1148. + '<p style="padding: 5px 0"><span style="color: #a0a0a0">经纬度:</span>' + data.location.join(',') + '</p>'
  1149. + '</div>'
  1150. this.infoWindow.open(this.map, this.map.getCenter());
  1151. this.marker.on('click', this.markerClick);
  1152. this.marker.emit('click', {target: this.marker});
  1153. this.map.setFitView();
  1154. },
  1155. selectionChange(list) {
  1156. this.selectionList = list
  1157. // this.$message.success('选中的数据'+ JSON.stringify(list));
  1158. },
  1159. //自定义列保存
  1160. async saveColumn() {
  1161. /**
  1162. * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
  1163. * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
  1164. * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
  1165. */
  1166. const inSave = await this.saveColumnData(this.getColumnName(85.7), this.option);
  1167. if (inSave) {
  1168. this.$message.success("保存成功");
  1169. //关闭窗口
  1170. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  1171. }
  1172. },
  1173. //自定义列重置
  1174. async resetColumn() {
  1175. this.option = this.optionList;
  1176. const inSave = await this.delColumnData(this.getColumnName(85.7), this.optionList);
  1177. if (inSave) {
  1178. this.$message.success("重置成功");
  1179. this.$refs.crud.$refs.dialogColumn.columnBox = false;
  1180. if (this.roleName.indexOf('经理') !== -1 || this.roleName.indexOf('部门经理') !== -1 || this.roleName.indexOf('总经理') !== -1) {
  1181. this.option.menu = false
  1182. this.option.header = false
  1183. }
  1184. }
  1185. },
  1186. // 获得高度
  1187. searchCriteriaSwitch(type) {
  1188. if (type) {
  1189. this.option.height = this.option.height - 138
  1190. } else {
  1191. this.option.height = this.option.height + 138
  1192. }
  1193. this.$refs.crud.getTableHeight()
  1194. },
  1195. //切换订单状态
  1196. handleClick(tab) {
  1197. this.activeName = tab
  1198. this.onLoad(this.page)
  1199. },
  1200. onLoad(page, params = {}) {
  1201. let queryParams = {
  1202. size: page.pageSize,
  1203. current: page.currentPage,
  1204. // itemStatus: this.activeName,
  1205. statusIds: this.activeName,
  1206. ...Object.assign(params, this.query)
  1207. }
  1208. if (queryParams.arrivalTime) {
  1209. queryParams.beginArrivalTime = queryParams.arrivalTime[0]
  1210. queryParams.endArrivalTime = queryParams.arrivalTime[1]
  1211. }
  1212. delete queryParams.arrivalTime
  1213. totalList(queryParams).then(res => {
  1214. this.totalData = res.data.data
  1215. })
  1216. this.loading = true;
  1217. selectInvoiceList(queryParams).then(res => {
  1218. this.dataList = res.data.data.records
  1219. this.page.total = res.data.data.total
  1220. this.option.height = window.innerHeight - 350;
  1221. }).finally(() => {
  1222. this.loading = false;
  1223. })
  1224. },
  1225. //搜索
  1226. searchChange(params, done) {
  1227. let data = params
  1228. if (params.arrivalTime) {
  1229. data.beginArrivalTime = params.arrivalTime[0]
  1230. data.endArrivalTime = params.arrivalTime[1]
  1231. }
  1232. if (params.createTime) {
  1233. data.beginCrateTime = params.createTime[0]
  1234. data.endCrateTime = params.createTime[1]
  1235. }
  1236. delete data.arrivalTime
  1237. delete data.createTime
  1238. this.query = data;
  1239. this.onLoad(this.page, data)
  1240. done();
  1241. },
  1242. //列表删除
  1243. rowDel(row) {
  1244. this.$confirm('此操作将永久删除该单据, 是否继续?', '提示', {
  1245. confirmButtonText: '确定',
  1246. cancelButtonText: '取消',
  1247. type: 'warning'
  1248. }).then(() => {
  1249. removeDelegationList({ids: row.id}).then(res => {
  1250. this.$message.success('删除成功');
  1251. this.onLoad(this.page)
  1252. })
  1253. }).catch(() => {
  1254. this.$message({
  1255. type: 'info',
  1256. message: '已取消删除'
  1257. });
  1258. });
  1259. },
  1260. //行编辑
  1261. rowCell(row, index) {
  1262. // console.log(localStorage.getItem("roleName").split(','))
  1263. this.id = row.id
  1264. this.show = false
  1265. },
  1266. rowSave() {
  1267. this.show = false
  1268. },
  1269. //复制单据
  1270. copyDocument() {
  1271. this.id = 'copy' + this.selectionList[0].id
  1272. this.show = false
  1273. },
  1274. backToList(type) {
  1275. if (type) {
  1276. this.home = false
  1277. this.$router.push({
  1278. path: '/landTransportation/bulkCargo/index'
  1279. });
  1280. }
  1281. this.id = ''
  1282. this.show = true
  1283. this.onLoad(this.page)
  1284. },
  1285. ToBreak(val) {
  1286. if (val) return val.replace(/\n/g, '<br/>')
  1287. }
  1288. }
  1289. }
  1290. </script>
  1291. <style lang="scss" scoped>
  1292. .selected {
  1293. color: #1e9fff !important;
  1294. }
  1295. .home-container {
  1296. padding: 0px 5px 5px 5px;
  1297. box-sizing: border-box;
  1298. height: 100%;
  1299. ::v-deep .el-card__body {
  1300. padding: 10px 5px;
  1301. font-size: 14px;
  1302. }
  1303. &__card {
  1304. width: 100%;
  1305. height: 100%;
  1306. }
  1307. .title {
  1308. display: flex;
  1309. justify-content: space-between;
  1310. .right {
  1311. display: flex;
  1312. align-items: center;
  1313. &_but {
  1314. margin-right: 10px;
  1315. border: 1px solid #409eff;
  1316. width: 80px;
  1317. border-radius: 3px;
  1318. display: flex;
  1319. &_left {
  1320. width: 40px;
  1321. text-align: center;
  1322. color: #409eff;
  1323. cursor: pointer;
  1324. }
  1325. &_right {
  1326. width: 40px;
  1327. text-align: center;
  1328. color: #409eff;
  1329. cursor: pointer;
  1330. }
  1331. &_active {
  1332. color: #fff;
  1333. background-color: #409eff;
  1334. }
  1335. }
  1336. }
  1337. }
  1338. }
  1339. .content {
  1340. display: flex;
  1341. justify-content: center;
  1342. align-items: center;
  1343. height: 6vh;
  1344. width: 80vw;
  1345. .divider {
  1346. display: block;
  1347. height: 0px;
  1348. width: 100%;
  1349. border-top: 1px dashed #dcdfe6;
  1350. }
  1351. &-item {
  1352. margin-left: 1vw;
  1353. .card {
  1354. width: 130px;
  1355. display: flex;
  1356. align-items: center;
  1357. &-title {
  1358. width: 40px;
  1359. height: 40px;
  1360. text-align: center;
  1361. border-radius: 50%;
  1362. font-size: 20px;
  1363. font-weight: 600;
  1364. display: flex;
  1365. justify-content: center;
  1366. align-items: center;
  1367. span {
  1368. line-height: 20px;
  1369. }
  1370. }
  1371. &-title1 {
  1372. color: #037fe1;
  1373. background-color: rgba(3, 127, 225, 0.15);
  1374. }
  1375. &-title2 {
  1376. color: #ffa21e;
  1377. background-color: rgba(255, 162, 30, 0.15);
  1378. }
  1379. &-title3 {
  1380. color: #fb5b60;
  1381. background-color: rgba(251, 91, 96, 0.15);
  1382. }
  1383. &-title4 {
  1384. color: #42bc6f;
  1385. background-color: rgba(66, 188, 111, 0.15);
  1386. }
  1387. &-title5 {
  1388. color: #14cde1;
  1389. background-color: rgba(52, 149, 161, 0.15);
  1390. }
  1391. &-title6 {
  1392. color: rgba(4, 66, 31, 0.63);
  1393. background-color: rgba(66, 188, 111, 0.15);
  1394. }
  1395. &-title7 {
  1396. color: rgba(231, 90, 15, 0.63);
  1397. background-color: rgba(220, 150, 42, 0.15);
  1398. }
  1399. &-content {
  1400. padding-left: 1vw;
  1401. display: flex;
  1402. flex-direction: column;
  1403. &-num {
  1404. font-size: 20px;
  1405. font-weight: 600;
  1406. }
  1407. &-text {
  1408. color: #909399;
  1409. }
  1410. }
  1411. }
  1412. }
  1413. }
  1414. #container {
  1415. height: 80vh;
  1416. width: 100%;
  1417. }
  1418. ::v-deep .el-dialog {
  1419. margin-top: 5vh !important;
  1420. margin-bottom: 0 !important;
  1421. }
  1422. ::v-deep .amap-info-close {
  1423. right: 10px !important;
  1424. top: 12px !important;
  1425. }
  1426. ::v-deep .amap-info-content {
  1427. padding: 5px 5px 5px 5px !important;
  1428. }
  1429. </style>