index.vue 43 KB

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