tranManagementVehicleDispatching.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951
  1. // 汽车调度派车
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="20">
  6. <h2 class="bg-left title">汽车调度</h2>
  7. </el-col>
  8. <el-col :span="4" class="bg-right">
  9. <el-button
  10. class="bg-bottom"
  11. type="primary"
  12. size="small"
  13. @click="revert()"
  14. ><img
  15. width="6"
  16. height="10"
  17. style="vertical-align: bottom; margin-right: 3px"
  18. src="../../../public/img/lujing.png"
  19. alt=""
  20. />返回</el-button
  21. >
  22. </el-col>
  23. </el-row>
  24. <div class="center">
  25. <ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
  26. <div class="basicInformation">
  27. <div class="small-title" style="font-size: 16px">任务详情</div>
  28. <ws-info-table>
  29. <!-- 任务编号 -->
  30. <ws-form-item label="任务编号" span="1" prop="processNo">
  31. {{ deptBudgetList.processNo }}
  32. </ws-form-item>
  33. <!-- 货名 -->
  34. <ws-form-item label="货名" span="1">
  35. {{ deptBudgetList.goodsName }}
  36. </ws-form-item>
  37. <!--重量(吨)-->
  38. <ws-form-item
  39. label="重量(吨)"
  40. span="1"
  41. prop="tare"
  42. class="readonly"
  43. >
  44. {{ deptBudgetList.weight }}
  45. </ws-form-item>
  46. <!--发货地址-->
  47. <ws-form-item label="发货地址" span="1" prop="netWeight">
  48. {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
  49. }}{{ deptBudgetList.sendArea
  50. }}{{ deptBudgetList.sendDetailedAddress }}
  51. </ws-form-item>
  52. <!--发货人-->
  53. <ws-form-item label="发货人" span="1" prop="agent">
  54. {{ deptBudgetList.sender }}
  55. </ws-form-item>
  56. <!--发货人电话-->
  57. <ws-form-item label="发货人电话" span="1" prop="agent">
  58. {{ deptBudgetList.senderPhone }}
  59. </ws-form-item>
  60. <!--收货地址-->
  61. <ws-form-item label="收货地址" span="1" prop="netWeight">
  62. {{ deptBudgetList.receivePrivate }}{{ deptBudgetList.receiveCity
  63. }}{{ deptBudgetList.receiveArea
  64. }}{{ deptBudgetList.receiveDetailedAddress }}
  65. </ws-form-item>
  66. <!--收货人-->
  67. <ws-form-item label="收货人" span="1" prop="receiver">
  68. {{ deptBudgetList.receiver }}
  69. </ws-form-item>
  70. <!--收货人电话-->
  71. <ws-form-item label="收货人电话" span="1" prop="receiverPhone">
  72. {{ deptBudgetList.receiverPhone }}
  73. </ws-form-item>
  74. <!--发货日期-->
  75. <ws-form-item
  76. label="发货日期"
  77. span="1"
  78. prop="inOutDate"
  79. class="deliverydate"
  80. >
  81. {{ deptBudgetList.deliveryDateStart }}
  82. </ws-form-item>
  83. <!--最晚发货日期-->
  84. <ws-form-item
  85. label="最晚发货日期"
  86. span="1"
  87. prop="inOutDate"
  88. class="deliverydate"
  89. >
  90. {{ deptBudgetList.deliveryDateEnd }}
  91. </ws-form-item>
  92. <!--合同编号-->
  93. <ws-form-item label="合同编号" span="1" prop="contractNo">
  94. {{ deptBudgetList.contractNo }}
  95. </ws-form-item>
  96. </ws-info-table>
  97. <div class="small-title" style="font-size: 16px">派车</div>
  98. <div class="myTest">
  99. <!--当前运输单价-->
  100. <ws-form-item label="当前运输单价(元/吨):" span="1" prop="tranPrice">
  101. <ws-input
  102. v-model="deptBudgetList.tranPrice"
  103. maxlength="70"
  104. :disabled="readonly"
  105. size="small"
  106. style="width:70px"
  107. />
  108. </ws-form-item>
  109. <!--审核中的运输单价-->
  110. <ws-form-item label="审核中的运输单价(元/吨):" span="1" prop="tranPriceIng">
  111. <ws-input
  112. v-if="deptBudgetList.priceStatus=='审核中'"
  113. :disabled="readonly"
  114. v-model="deptBudgetList.tranPriceIng"
  115. maxlength="70"
  116. size="small"
  117. style="width:70px"
  118. />
  119. <ws-input
  120. v-else
  121. v-model="deptBudgetList.tranPriceIng"
  122. maxlength="70"
  123. size="small"
  124. style="width:70px"
  125. />
  126. </ws-form-item>
  127. <ws-form-item>
  128. <el-button
  129. v-if="deptBudgetList.priceStatus=='审核中'"
  130. type="primary"
  131. size="small"
  132. @click="examine()"
  133. >审核中</el-button
  134. >
  135. <el-button
  136. v-else
  137. type="primary"
  138. size="small"
  139. @click="priceSubmit()"
  140. >提交</el-button
  141. >
  142. </ws-form-item>
  143. </div>
  144. <div
  145. class="driver position liaison"
  146. v-for="(item, index) in deptBudgetList.tranCarInfoList"
  147. :key="index"
  148. >
  149. <ws-info-table>
  150. <div class="catNos">
  151. 司机-{{ index + 1 }}
  152. <span class="noservice" v-show="item.status == '未装车'">{{
  153. item.status
  154. }}</span>
  155. <span class="service" v-show="item.status == '已装车'">{{
  156. item.status
  157. }}</span>
  158. <span class="serviced" v-show="item.status == '已送达'">{{
  159. item.status
  160. }}</span>
  161. </div>
  162. <!--司机-->
  163. <ws-form-item
  164. label="姓名:"
  165. span="1"
  166. prop="driverName"
  167. class="siji"
  168. >
  169. <el-select
  170. v-show="!item.temporaryDriverFlag"
  171. v-model="item.driver"
  172. placeholder="请选择司机"
  173. class="typeselect"
  174. @change="
  175. (val) => {
  176. carchange(val, index)
  177. }
  178. "
  179. >
  180. <el-option
  181. v-for="(items, index) in carList"
  182. :key="index"
  183. :label="items.driverName"
  184. :value="items.driverName"
  185. />
  186. </el-select>
  187. <span
  188. v-show="
  189. item.temporaryDriverFlag == 0 ||
  190. item.temporaryDriverFlag == 1
  191. "
  192. >{{ item.driver }}</span
  193. >
  194. </ws-form-item>
  195. <!--司机电话-->
  196. <ws-form-item
  197. label="司机电话:"
  198. span="1"
  199. prop="impurity"
  200. class="siji"
  201. >
  202. <el-select
  203. v-show="!item.temporaryDriverFlag"
  204. v-model="item.driverPhone"
  205. placeholder="请选择司机电话"
  206. class="typeselect"
  207. @change="
  208. (val) => {
  209. phonechange(val, index)
  210. }
  211. "
  212. >
  213. <el-option
  214. v-for="(items, index) in carList"
  215. :key="index"
  216. :label="items.driverPhone"
  217. :value="items.driverPhone"
  218. />
  219. </el-select>
  220. <span
  221. v-show="
  222. item.temporaryDriverFlag == 0 ||
  223. item.temporaryDriverFlag == 1
  224. "
  225. >{{ item.driverPhone }}</span
  226. >
  227. </ws-form-item>
  228. <!--车牌号-->
  229. <ws-form-item label="车牌号:" span="1" prop="carNo" class="siji">
  230. <ws-input
  231. :disabled="readonly"
  232. v-model="item.carNo"
  233. placeholder="请输入车牌号"
  234. maxlength="120"
  235. size="small"
  236. />
  237. </ws-form-item>
  238. <!--派车编号-->
  239. <ws-form-item
  240. label="派车编号:"
  241. span="1"
  242. prop="carModel"
  243. class="siji"
  244. style="width:245px"
  245. >
  246. <ws-input
  247. :disabled="readonly"
  248. v-model="item.tranCarNo"
  249. maxlength="120"
  250. size="small"
  251. />
  252. </ws-form-item>
  253. <!--箱号-->
  254. <ws-form-item
  255. label="箱号:"
  256. span="1"
  257. prop="carModel"
  258. class="siji"
  259. >
  260. <ws-input
  261. v-if="item.status == '已装车'||item.status == '已送达'"
  262. :disabled="readonly"
  263. v-model="item.caseNo"
  264. maxlength="120"
  265. size="small"
  266. />
  267. <ws-input
  268. v-else
  269. v-model="item.caseNo"
  270. placeholder="请输入箱号"
  271. maxlength="120"
  272. size="small"
  273. />
  274. </ws-form-item>
  275. <!--封号-->
  276. <ws-form-item
  277. label="封号:"
  278. span="1"
  279. prop="carModel"
  280. class="siji"
  281. >
  282. <ws-input
  283. v-if="item.status == '已装车'||item.status == '已送达'"
  284. v-model="item.titleNo"
  285. placeholder="请输入封号"
  286. :disabled="readonly"
  287. maxlength="120"
  288. size="small"
  289. />
  290. <ws-input
  291. v-model="item.titleNo"
  292. placeholder="请输入封号"
  293. v-else
  294. maxlength="120"
  295. size="small"
  296. />
  297. </ws-form-item>
  298. <!--车型-->
  299. <ws-form-item
  300. label="车型:"
  301. span="1"
  302. prop="carModel"
  303. class="siji"
  304. >
  305. <ws-input
  306. :disabled="readonly"
  307. v-model="item.carModel"
  308. placeholder="请输入车型"
  309. maxlength="120"
  310. size="small"
  311. />
  312. </ws-form-item>
  313. <!--车长-->
  314. <ws-form-item
  315. label="车长:"
  316. span="1"
  317. prop="carLength"
  318. class="siji"
  319. >
  320. <ws-input
  321. :disabled="readonly"
  322. v-model="item.carLength"
  323. placeholder="请输入车长"
  324. maxlength="120"
  325. size="small"
  326. />
  327. </ws-form-item>
  328. <!--载重吨-->
  329. <ws-form-item
  330. label="载重(吨):"
  331. span="1"
  332. prop="loadWeight"
  333. class="siji zaizhong"
  334. >
  335. <ws-input
  336. :disabled="readonly"
  337. v-model="item.loadWeight"
  338. placeholder="请输入载重(吨)"
  339. maxlength="120"
  340. size="small"
  341. />
  342. </ws-form-item>
  343. <!--运输单价-->
  344. <ws-form-item
  345. label="运输单价(元/吨):"
  346. span="1"
  347. prop="carModel"
  348. class="siji"
  349. style="width:250px"
  350. >
  351. <ws-input
  352. :disabled="readonly"
  353. v-model="item.tranPrice"
  354. maxlength="120"
  355. size="small"
  356. />
  357. </ws-form-item>
  358. </ws-info-table>
  359. <span
  360. v-if="item.status == '未装车'||item.temporaryDriverFlag!=0"
  361. width="22"
  362. height="22"
  363. class="del"
  364. @click="del(index, item)"
  365. src="../../../public/img/del.png"
  366. alt=""
  367. >×</span
  368. >
  369. </div>
  370. <div style="text-align: right; color: #8890b1; font-size: 16px">
  371. 共{{ total }}/{{ deptBudgetList.weight }}
  372. </div>
  373. <el-button class="add" type="primary" size="small" @click="add()">
  374. <img
  375. width="22"
  376. height="22"
  377. src="../../../public/img/add.png"
  378. alt=""
  379. />
  380. <div class="spans">添加司机</div>
  381. </el-button>
  382. <div style="text-align: right; padding: 10px">
  383. <el-button
  384. class="bg-bottom-up"
  385. type="primary"
  386. size="small"
  387. @click="submit()"
  388. >提交</el-button
  389. >
  390. </div>
  391. </div>
  392. </ws-form>
  393. </div>
  394. </div>
  395. </template>
  396. <script>
  397. import Pagination from '@/components/Pagination'
  398. import WsUpload from '@/components/WsUpload'
  399. import {
  400. seeCat,
  401. nameXiala,
  402. arrange,
  403. dispatchCat,
  404. delhaulagestage,
  405. setUpTranPrice
  406. } from '@/model/transport/index'
  407. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  408. import { dayjs, EventBus } from 'base-core-lib'
  409. export default {
  410. name: 'viewSpareMoney',
  411. components: {
  412. WsUpload,
  413. Pagination,
  414. },
  415. watch: {
  416. // vesselId(val) {
  417. // this.getList()
  418. // },
  419. isShow(val) {
  420. this.showType = val
  421. },
  422. },
  423. data() {
  424. return {
  425. // 是否显示
  426. showType: true,
  427. deptBudgetTotal: 0,
  428. currentPage: 1,
  429. pageSize: 10,
  430. searchType: 1,
  431. startDate: null,
  432. endDate: null,
  433. carList: [],
  434. // 提交类型
  435. readonly: true,
  436. rules: {
  437. netWeight: [
  438. {
  439. required: true,
  440. type: 'number',
  441. message: '请输入活动名称',
  442. trigger: 'blur',
  443. },
  444. ],
  445. },
  446. size: 10,
  447. compId: sessionStorage.getItem('ws-pf_compId'),
  448. date: {
  449. year: dayjs().format('YYYY'),
  450. month: dayjs().format('MM'),
  451. },
  452. deptBudgetList: {
  453. tranCarInfoList: [],
  454. },
  455. pickerBeginDateBefore: {
  456. disabledDate: (time) => {
  457. return time.getTime() > Date.now()
  458. },
  459. },
  460. accessoryTFs: false,
  461. index:0,
  462. }
  463. },
  464. activated() {
  465. this.getList()
  466. },
  467. computed: {
  468. total: function () {
  469. if (this.deptBudgetList.tranCarInfoList.length > 0) {
  470. var maxStorage = 0
  471. for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  472. maxStorage += Number(
  473. this.deptBudgetList.tranCarInfoList[i].loadWeight
  474. )
  475. }
  476. return maxStorage
  477. }
  478. },
  479. },
  480. methods: {
  481. //返回按钮
  482. revert() {
  483. this.$router.go(-1)
  484. },
  485. del(index, row) {
  486. this.$confirm('派车信息删除后不可恢复,是否确定删除?', '提示', {
  487. confirmButtonText: '确定',
  488. cancelButtonText: '取消',
  489. type: 'warning',
  490. }).then(() => {
  491. delhaulagestage({ id: row.id })
  492. .toPromise()
  493. .then((response) => {
  494. this.$message.success('删除成功')
  495. if (this.deptBudgetList.tranCarInfoList.length > 1) {
  496. this.deptBudgetList.tranCarInfoList.splice(index, 1)
  497. }
  498. })
  499. })
  500. },
  501. add() {
  502. if(!this.deptBudgetList.tranPrice){
  503. this.$message({
  504. message: '请设置运输单价!',
  505. type: 'warning',
  506. })
  507. }
  508. else{
  509. var tmp1='C00'
  510. if(this.deptBudgetList.tranCarInfoList.length<10){
  511. this.deptBudgetList.tranCarInfoList.push({
  512. driverName: '',
  513. driverPhone: '',
  514. carLength: 0,
  515. carLengthKey: '',
  516. loadWeight: null,
  517. carModel: '',
  518. carModelKey: '',
  519. carNumber: '',
  520. disabled: false,
  521. tranType: '1',
  522. tranCarNo: tmp1+(this.deptBudgetList.count+1),
  523. tranPrice:this.deptBudgetList.tranPrice
  524. })
  525. }
  526. else if(this.deptBudgetList.tranCarInfoList.length>=10){
  527. tmp1='C0'
  528. this.deptBudgetList.tranCarInfoList.push({
  529. driverName: '',
  530. driverPhone: '',
  531. carLength: 0,
  532. carLengthKey: '',
  533. loadWeight: null,
  534. carModel: '',
  535. carModelKey: '',
  536. carNumber: '',
  537. disabled: false,
  538. tranType: '1',
  539. tranCarNo: tmp1+(this.deptBudgetList.count+1),
  540. tranPrice:this.deptBudgetList.tranPrice
  541. })
  542. }
  543. }
  544. },
  545. //审核
  546. examine(){
  547. this.$prompt('运输单价审核', {
  548. cancelButtonText: '取消',
  549. confirmButtonText: '确定',
  550. }).then(({ value }) => {
  551. var tranProcessInfo = {}
  552. tranProcessInfo.id = this.deptBudgetList.id
  553. tranProcessInfo.flag = "2"
  554. tranProcessInfo.tranPriceIng = value
  555. setUpTranPrice(tranProcessInfo)
  556. .toPromise()
  557. .then((response) => {
  558. this.$message.success('审核成功')
  559. this.getList()
  560. });
  561. }).catch(() => {
  562. this.$message({
  563. type: 'info',
  564. message: '取消审核'
  565. });
  566. });
  567. },
  568. priceSubmit(){
  569. this.$confirm(`运输单价将发送给决策人审核,确定提交?`, {
  570. cancelButtonText: '取消',
  571. confirmButtonText: '确定',
  572. type: 'warning',
  573. })
  574. .then(() => {
  575. var tranProcessInfo = {}
  576. tranProcessInfo.id = this.deptBudgetList.id
  577. tranProcessInfo.flag = "1"
  578. tranProcessInfo.tranPriceIng = this.deptBudgetList.tranPriceIng
  579. setUpTranPrice(tranProcessInfo)
  580. .toPromise()
  581. .then((response) => {
  582. this.$message.success('提交成功')
  583. this.getList()
  584. })
  585. })
  586. .catch(() => {
  587. return false
  588. })
  589. },
  590. //提交按钮
  591. submit() {
  592. for (var i = this.index; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  593. if (!this.deptBudgetList.tranCarInfoList[i].driver) {
  594. this.$message({
  595. message: '姓名不能为空!',
  596. type: 'warning',
  597. })
  598. return
  599. }
  600. for(var j = 0 ; j < this.carList.length ; j++){
  601. if (this.carList[j].driverName == this.deptBudgetList.tranCarInfoList[i].driver && this.carList[j].disableStatusFlag == 1) {
  602. this.$message({
  603. message: this.deptBudgetList.tranCarInfoList[i].driver+'该司机已被禁用!',
  604. type: 'warning',
  605. })
  606. return
  607. }
  608. }
  609. }
  610. this.$confirm(`提交成功后,任务将下发给司机,是否确定提交?`, {
  611. cancelButtonText: '取消',
  612. confirmButtonText: '确定',
  613. type: 'warning',
  614. })
  615. .then(() => {
  616. this.$refs.deptBudgetList.validate((valid) => {
  617. if (valid) {
  618. var tranCarInfo = {}
  619. tranCarInfo.id = this.deptBudgetList.id
  620. tranCarInfo.infoId = this.deptBudgetList.infoId
  621. tranCarInfo.tranCarInfoList = this.deptBudgetList.tranCarInfoList
  622. dispatchCat(tranCarInfo)
  623. .toPromise()
  624. .then((response) => {
  625. this.$message.success('提交成功')
  626. this.$router.go(-1)
  627. })
  628. } else {
  629. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  630. return false
  631. }
  632. })
  633. })
  634. .catch(() => {
  635. return false
  636. })
  637. },
  638. handleClose() {
  639. this.accessoryTFs = false
  640. },
  641. getList() {
  642. seeCat({ id: this.$route.query.id })
  643. .toPromise()
  644. .then((response) => {
  645. if (response.tranCarInfoList.length > 0) {
  646. this.index = response.tranCarInfoList.length
  647. for (var i = 0; i < response.tranCarInfoList.length; i++) {
  648. if (response.tranCarInfoList[i].id) {
  649. response.tranCarInfoList[i].disabled = true
  650. }
  651. }
  652. }
  653. this.deptBudgetList = response
  654. if (this.deptBudgetList.tranCarInfoList.length == 0) {
  655. this.deptBudgetList.tranCarInfoList = [
  656. {
  657. driverName: '',
  658. driverPhone: '',
  659. carLength: 0,
  660. carLengthKey: '',
  661. loadWeight: null,
  662. carModel: '',
  663. carModelKey: '',
  664. carNumber: '',
  665. disabled: false,
  666. tranType: '1',
  667. tranCarNo: 'C001',
  668. },
  669. ]
  670. }
  671. })
  672. nameXiala({ compId: this.compId })
  673. .toPromise()
  674. .then((response) => {
  675. this.carList = response
  676. })
  677. },
  678. carchange(val, index) {
  679. for (var i = 0; i < this.carList.length; i++) {
  680. if (this.carList[i].driverName == val) {
  681. this.deptBudgetList.tranCarInfoList[index].driverPhone =
  682. this.carList[i].driverPhone
  683. arrange({ id: this.carList[i].id })
  684. .toPromise()
  685. .then((response) => {
  686. console.log(this, response)
  687. this.deptBudgetList.tranCarInfoList[index].carNo =
  688. response.carNumber
  689. if (response.carLoad != null) {
  690. this.deptBudgetList.tranCarInfoList[index].loadWeight =
  691. response.carLoad
  692. } else {
  693. this.deptBudgetList.tranCarInfoList[index].loadWeight = 0
  694. }
  695. this.deptBudgetList.tranCarInfoList[index].carModel =
  696. response.carModel
  697. this.deptBudgetList.tranCarInfoList[index].carLength =
  698. response.carLength
  699. this.deptBudgetList.tranCarInfoList[index].carLengthKey =
  700. response.carLengthKey
  701. this.deptBudgetList.tranCarInfoList[index].carModelKey =
  702. response.carModelKey
  703. })
  704. }
  705. }
  706. },
  707. phonechange(val, index) {
  708. for (var i = 0; i < this.carList.length; i++) {
  709. if (this.carList[i].driverPhone == val) {
  710. this.deptBudgetList.tranCarInfoList[index].driver =
  711. this.carList[i].driverName
  712. arrange({ id: this.carList[i].id })
  713. .toPromise()
  714. .then((response) => {
  715. console.log(this, response)
  716. this.deptBudgetList.tranCarInfoList[index].carNo =
  717. response.carNumber
  718. if (response.carLoad != null) {
  719. this.deptBudgetList.tranCarInfoList[index].loadWeight =
  720. response.carLoad
  721. } else {
  722. this.deptBudgetList.tranCarInfoList[index].loadWeight = 0
  723. }
  724. this.deptBudgetList.tranCarInfoList[index].carModel =
  725. response.carModel
  726. this.deptBudgetList.tranCarInfoList[index].carLength =
  727. response.carLength
  728. this.deptBudgetList.tranCarInfoList[index].carLengthKey =
  729. response.carLengthKey
  730. this.deptBudgetList.tranCarInfoList[index].carModelKey =
  731. response.carModelKey
  732. })
  733. }
  734. }
  735. },
  736. },
  737. }
  738. </script>
  739. <style lang="scss" scoped>
  740. /deep/.basicInformation {
  741. height: 87vh;
  742. overflow: scroll;
  743. .ws-info-table {
  744. border: none;
  745. }
  746. .myTest{
  747. width: 800px;
  748. display: flex;
  749. height: 40px;
  750. }
  751. .el-form-item {
  752. width: 33.3333%;
  753. border: none;
  754. height: 50px;
  755. .el-form-item__label {
  756. background: transparent;
  757. border: none;
  758. }
  759. .el-form-item__content {
  760. border: none;
  761. }
  762. }
  763. }
  764. .title {
  765. position: relative;
  766. padding-left: 10px;
  767. }
  768. .title::before {
  769. content: '';
  770. display: inline-block;
  771. width: 5px;
  772. height: 30px;
  773. background: #5473e8;
  774. position: absolute;
  775. left: 0;
  776. }
  777. .el-form {
  778. padding: 0 10%;
  779. }
  780. .el-button--primary {
  781. background-color: #5878e8;
  782. border-color: #5878e8;
  783. }
  784. .el-col {
  785. background: #f6f7fc;
  786. }
  787. .bg-right {
  788. text-align: right;
  789. padding: 16px 20px;
  790. }
  791. .center {
  792. width: 90%;
  793. margin: 0 auto;
  794. }
  795. //表格文字
  796. /deep/.ws-info-table .el-form-item .el-form-item__label {
  797. text-align: center;
  798. font-size: 14px;
  799. font-weight: 400;
  800. color: #8890b1;
  801. line-height: 16px;
  802. }
  803. //蓝标
  804. .small-title {
  805. position: relative;
  806. padding: 10px;
  807. font-weight: 600;
  808. }
  809. .small-title::before {
  810. position: absolute;
  811. content: '';
  812. display: block;
  813. background: #5473e8;
  814. width: 4px;
  815. height: 14px;
  816. left: 0px;
  817. top: 13px;
  818. padding: 4px 2px;
  819. }
  820. .position {
  821. position: relative;
  822. }
  823. .position .zaizhong {
  824. width: 16%;
  825. }
  826. //减号
  827. .del {
  828. position: absolute;
  829. // right: -38px;
  830. top: 9px;
  831. cursor: pointer;
  832. right: 0;
  833. display: inline-block;
  834. font-size: 20px;
  835. width: 20px;
  836. height: 10px;
  837. line-height: 0px;
  838. }
  839. .driver .el-form-item {
  840. width: 16.63%;
  841. }
  842. /deep/.ws-info-table .el-form-item .el-form-item__content {
  843. background: #f5f7fa;
  844. border-radius: 4px;
  845. color: #8890b1;
  846. font-size: 14px;
  847. padding: 0 25px;
  848. }
  849. /deep/.driver .ws-info-table .el-form-item .el-form-item__label {
  850. width: 72px;
  851. }
  852. /deep/.liaison .ws-info-table .el-form-item {
  853. width: 16.66%;
  854. color: #8890b1;
  855. font-size: 14px;
  856. }
  857. /deep/.ws-info-table .el-form-item {
  858. border: none;
  859. height: 50px;
  860. }
  861. /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
  862. width: 50%;
  863. border: 0px solid #d8dce6;
  864. background: #f5f7fa;
  865. text-align: center;
  866. }
  867. /deep/.liaison {
  868. background: #f5f7fa;
  869. border-radius: 4px;
  870. border: 0px solid #d8dce6;
  871. }
  872. /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
  873. border: none;
  874. background: #f5f7fa;
  875. padding: 0px;
  876. }
  877. .catNos {
  878. width: 100%;
  879. height: 30px;
  880. margin-top: 10px;
  881. margin-left: 20px;
  882. font-size: 14px;
  883. }
  884. /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
  885. // border: 0px solid #d8dce6;
  886. border-radius: 0px;
  887. border-left: none;
  888. border-bottom: none;
  889. border-top: none;
  890. }
  891. /deep/.liaison .ws-info-table {
  892. background: #f6f7fc;
  893. border-radius: 4px;
  894. border: 1px solid #d8dce6;
  895. margin-top: 20px;
  896. }
  897. //送达/未送达
  898. .noservice,
  899. .service {
  900. display: inline-block;
  901. border-radius: 4px;
  902. border: 1px solid #d8dce6;
  903. padding: 2px;
  904. font-size: 12px;
  905. }
  906. .noservice {
  907. background: #c4cada;
  908. color: #ffffff;
  909. }
  910. .service {
  911. background: #e5f1f7;
  912. color: #50cad4;
  913. }
  914. .serviced {
  915. display: inline-block;
  916. border-radius: 4px;
  917. border: 1px solid #d8dce6;
  918. padding: 2px;
  919. font-size: 12px;
  920. background: #e5f1f7;
  921. color: #2c81cf;
  922. }
  923. //添加司机
  924. .add {
  925. width: 100px;
  926. height: 34px;
  927. background: #f6f7fb;
  928. border-radius: 17px;
  929. color: #5473e8;
  930. font-size: 14px;
  931. border: none;
  932. }
  933. .add img {
  934. display: inline-block;
  935. margin-top: 3px;
  936. margin-left: -12px;
  937. }
  938. .add .spans {
  939. display: table-caption;
  940. width: 56px;
  941. height: 20px;
  942. line-height: 18px;
  943. }
  944. </style>