index.vue 48 KB

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