index.vue 46 KB

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