tranManagementReceivingloading.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875
  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 class="bg-bottom" type="primary" size="small" @click="revert()">
  10. <img
  11. width="6"
  12. height="10"
  13. style="vertical-align: bottom; margin-right: 3px"
  14. src="../../../public/img/lujing.png"
  15. alt
  16. />返回
  17. </el-button>
  18. </el-col>
  19. </el-row>
  20. <div class="center">
  21. <ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
  22. <div class="basicInformation">
  23. <div class="small-title" style="font-size: 16px">任务详情</div>
  24. <ws-info-table>
  25. <!-- 任务编号 -->
  26. <ws-form-item label="任务编号" span="1" prop="processNo">{{ deptBudgetList.processNo }}</ws-form-item>
  27. <!-- 货名 -->
  28. <ws-form-item label="货名" span="1">{{ deptBudgetList.goodsName }}</ws-form-item>
  29. <!--重量(吨)-->
  30. <ws-form-item
  31. label="重量(吨)"
  32. span="1"
  33. prop="tare"
  34. class="readonly"
  35. >{{ deptBudgetList.weight }}</ws-form-item>
  36. <!--发货地址-->
  37. <ws-form-item label="发货地址" span="1" prop="netWeight">
  38. {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
  39. }}{{ deptBudgetList.sendArea
  40. }}{{ deptBudgetList.sendDetailedAddress }}
  41. </ws-form-item>
  42. <!--发货人-->
  43. <ws-form-item label="发货人" span="1" prop="agent">{{ deptBudgetList.sender }}</ws-form-item>
  44. <!--发货人电话-->
  45. <ws-form-item label="发货人电话" span="1" prop="agent">{{ deptBudgetList.senderPhone }}</ws-form-item>
  46. <!--收货地址-->
  47. <ws-form-item label="收货地址" span="1" prop="netWeight">
  48. {{ deptBudgetList.receivePrivate }}{{ deptBudgetList.receiveCity
  49. }}{{ deptBudgetList.receiveArea
  50. }}{{ deptBudgetList.receiveDetailedAddress }}
  51. </ws-form-item>
  52. <!--收货人-->
  53. <ws-form-item label="收货人" span="1" prop="receiver">{{ deptBudgetList.receiver }}</ws-form-item>
  54. <!--收货人电话-->
  55. <ws-form-item
  56. label="收货人电话"
  57. span="1"
  58. prop="receiverPhone"
  59. >{{ deptBudgetList.receiverPhone }}</ws-form-item>
  60. <!--发货日期-->
  61. <ws-form-item
  62. label="发货日期"
  63. span="1"
  64. prop="inOutDate"
  65. class="deliverydate"
  66. >{{ deptBudgetList.deliveryDateStart }}</ws-form-item>
  67. <!--最晚发货日期-->
  68. <ws-form-item
  69. label="最晚发货日期"
  70. span="1"
  71. prop="inOutDate"
  72. class="deliverydate"
  73. >{{ deptBudgetList.deliveryDateEnd }}</ws-form-item>
  74. <!--合同编号-->
  75. <ws-form-item label="合同编号" span="1" prop="contractNo">{{ deptBudgetList.contractNo }}</ws-form-item>
  76. <ws-form-item label="运输方式" span="1" prop="contractNo">{{ deptBudgetList.contractNo }}</ws-form-item>
  77. </ws-info-table>
  78. <div class="small-title" style="font-size: 16px;width: 50%;float: left;">卸车详情</div>
  79. <!-- 导入 -->
  80. <div style="font-size: 16px; width: 100%;text-align: right;">
  81. <!-- <el-upload style="margin-left: 8px;"
  82. class=""
  83. action="https://www.zthymaoyi.com/upload/admin"
  84. :show-file-list="false"
  85. :on-success="
  86. (res, file) => {
  87. uploadSuccessHandle(res)
  88. }
  89. "
  90. accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
  91. >
  92. <el-button type="primary">导入</el-button>
  93. </el-upload> -->
  94. <el-upload style="margin-left: 8px;"
  95. class="upload-demo inline-block margin-right-10"
  96. action=""
  97. :on-change="handleChange"
  98. :show-file-list="false"
  99. accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
  100. :auto-upload="false">
  101. <el-button type="primary">导入</el-button>
  102. </el-upload>
  103. </div>
  104. <div
  105. class="driver position liaison"
  106. v-for="(item, index) in deptBudgetList.tranCarInfoList"
  107. :key="index"
  108. >
  109. <ws-info-table>
  110. <div class="catNos" v-show="item.temporaryDriverFlag == 0">司机-{{index+1}}
  111. <span class="noservice" v-show="item.status == '未装车'">{{
  112. item.status
  113. }}</span>
  114. <span class="service" v-show="item.status == '已装车'">
  115. 未卸车
  116. </span>
  117. <span class="serviced" v-show="item.status == '已送达'">
  118. 已卸车
  119. </span>
  120. </div>
  121. <div class="catNos catNosCor" v-show="item.temporaryDriverFlag != 0">司机-{{index+1}}(临)</div>
  122. <!--姓名-->
  123. <ws-form-item
  124. label="姓名:"
  125. span="1"
  126. prop="driver"
  127. v-show="item.temporaryDriverFlag == 0"
  128. >
  129. <span v-show="item.temporaryDriverFlag == 0">{{ item.driver }}</span>
  130. </ws-form-item>
  131. <!-- 姓名 -->
  132. <ws-form-item
  133. label="姓名:"
  134. span="1"
  135. prop="driver"
  136. v-show="item.temporaryDriverFlag != 0"
  137. >
  138. <span v-show="item.temporaryDriverFlag != 0">{{item.driver}}</span>
  139. </ws-form-item>
  140. <!-- 电话 -->
  141. <ws-form-item label="司机电话:" span="1" prop="driverPhone" style="width:200px">
  142. <span v-show="item.temporaryDriverFlag != 0">{{ item.driverPhone }}</span>
  143. <span v-show="item.temporaryDriverFlag == 0">{{ item.driverPhone }}</span>
  144. </ws-form-item>
  145. <!--车牌号-->
  146. <ws-form-item label="车牌号:" span="1" prop="carNo">
  147. <span v-show="item.temporaryDriverFlag != 0">{{ item.carNo }}</span>
  148. <span v-show="item.temporaryDriverFlag == 0">{{ item.carNo }}</span>
  149. </ws-form-item>
  150. <!--装车净重-->
  151. <ws-form-item label="装车(吨):" span="1" prop="loadNetWeight" style="width:150px">{{item.loadNetWeight}}</ws-form-item>
  152. <!--卸车净重(吨)-->
  153. <ws-form-item label="卸车净重(吨):" span="1" prop="unloadNetWeight">
  154. <ws-input
  155. v-if="item.status == '已送达'||item.status == '未装车'"
  156. v-model="item.unloadNetWeight"
  157. placeholder="请输入卸车净重"
  158. maxlength="20"
  159. :disabled="readonly"
  160. size="small"
  161. />
  162. <ws-input
  163. v-else
  164. v-model="item.unloadNetWeight"
  165. placeholder="请输入卸车净重"
  166. maxlength="20"
  167. size="small"
  168. />
  169. </ws-form-item>
  170. <!--卸车日期-->
  171. <ws-form-item label="卸车日期:" span="1" prop="receiveDateEnd" style="width:275px">
  172. <ws-date-picker
  173. v-model="item.receiveDateEnd"
  174. v-if="item.status == '已送达'||item.status == '未装车'"
  175. :disabled="readonly"
  176. type="date"
  177. value-format="yyyy-MM-dd"
  178. />
  179. <ws-date-picker
  180. v-model="item.receiveDateEnd"
  181. v-else
  182. type="date"
  183. placeholder="请选择日期"
  184. value-format="yyyy-MM-dd"
  185. />
  186. </ws-form-item>
  187. <!--磅单-->
  188. <ws-form-item label="磅单:" span="1" prop="unloadPoundImg">
  189. <template >
  190. <el-upload
  191. action="https://www.zthymaoyi.com/upload/admin"
  192. :show-file-list="false"
  193. :on-success="
  194. (res) => {
  195. uploadSuccessHandle1(res,index)
  196. }
  197. "
  198. class="avatar-uploader"
  199. accept=".jpg, .jpeg, .png, .gif"
  200. >
  201. <img
  202. width="18"
  203. height="20"
  204. style="
  205. vertical-align: text-top;
  206. position: relative;
  207. "
  208. src="../../../public/img/fujian.png"
  209. alt
  210. />
  211. </el-upload>
  212. <span v-if="deptBudgetList.tranCarInfoList[index].unloadPoundImg != null " >1</span>
  213. <span
  214. v-if="
  215. deptBudgetList.tranCarInfoList[index].unloadPoundImg == null
  216. "
  217. >未上传</span>
  218. </template>
  219. </ws-form-item>
  220. <!--箱号-->
  221. <ws-form-item label="箱号:" span="1" prop="caseNo">
  222. <span>{{ item.caseNo }}</span>
  223. </ws-form-item>
  224. <!--封号-->
  225. <ws-form-item label="封号:" span="1" prop="titleNo">
  226. <span>{{ item.titleNo }}</span>
  227. </ws-form-item>
  228. <div v-show="item.temporaryDriverFlag == 0 && item.signStatus == '未签合同'" class="signStatus">
  229. {{ item.signStatus }}
  230. </div>
  231. <div v-show="item.temporaryDriverFlag == 0 && item.signStatus == '已签合同'" class="signStatus1">
  232. {{ item.signStatus }}
  233. </div>
  234. </ws-info-table>
  235. </div>
  236. </div>
  237. <div
  238. style="text-align: right; color: #8890b1; font-size: 16px"
  239. >合计{{ total }}/{{ deptBudgetList.weight }}
  240. <!--阶段状态-->
  241. <span class="noservice" v-show="deptBudgetList.receivingStatus=='执行中'">
  242. 未完货
  243. </span>
  244. <span class="service" v-show="deptBudgetList.receivingStatus=='已完货'">{{
  245. deptBudgetList.receivingStatus
  246. }}</span></div>
  247. <div style="text-align: right; padding: 10px">
  248. <el-button class="bg-bottom-up" type="primary" size="small" @click="submit()">提交</el-button>
  249. <el-button
  250. class="bg-bottom"
  251. type="primary"
  252. size="small"
  253. @click="finished (deptBudgetList)"
  254. >完货</el-button
  255. >
  256. </div>
  257. </ws-form>
  258. </div>
  259. </div>
  260. </template>
  261. <script>
  262. import Pagination from '@/components/Pagination'
  263. import WsUpload from '@/components/WsUpload'
  264. import { seeCat, packList, feedback, getbank,stateRec } from '@/model/transport/index'
  265. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  266. import { dayjs, EventBus } from 'base-core-lib'
  267. export default {
  268. name: 'viewSpareMoney',
  269. components: {
  270. WsUpload,
  271. Pagination
  272. },
  273. watch: {
  274. isShow(val) {
  275. this.showType = val
  276. }
  277. },
  278. data() {
  279. return {
  280. // 是否显示
  281. showType: true,
  282. deptBudgetTotal: 0,
  283. currentPage: 1,
  284. pageSize: 10,
  285. searchType: 1,
  286. startDate: null,
  287. endDate: null,
  288. carList: [],
  289. // 提交类型
  290. readonly: true,
  291. appendixIdsAdd: '',
  292. onChange: {},
  293. gradeList: [],
  294. rules: {
  295. netWeight: [
  296. {
  297. required: true,
  298. type: 'number',
  299. message: '请输入活动名称',
  300. trigger: 'blur'
  301. }
  302. ]
  303. },
  304. size: 10,
  305. compId: sessionStorage.getItem('ws-pf_compId'),
  306. deptCircularPage: {},
  307. packtypeList: {},
  308. date: {
  309. year: dayjs().format('YYYY'),
  310. month: dayjs().format('MM')
  311. },
  312. contractList: [],
  313. deptBudgetList: {
  314. tranCarInfoList: [
  315. {
  316. unloadPoundImg:'',
  317. }
  318. ]
  319. },
  320. historyList: [],
  321. pickerBeginDateBefore: {
  322. disabledDate: time => {
  323. return time.getTime() > Date.now()
  324. }
  325. },
  326. accessoryTFs: false
  327. }
  328. },
  329. activated() {
  330. this.deptBudgetList.id = this.$route.query.id
  331. this.getList()
  332. },
  333. computed: {
  334. total: function() {
  335. var maxStorage = 0
  336. for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
  337. maxStorage += Number(
  338. this.deptBudgetList.tranCarInfoList[i].unloadNetWeight
  339. )
  340. }
  341. return maxStorage
  342. }
  343. },
  344. mounted() {
  345. this.deptBudgetList.id = this.$route.query.id
  346. this.getList()
  347. },
  348. methods: {
  349. handleChange(file, fileList) {
  350. this.fileTemp = file.raw
  351. let fileName = file.raw.name
  352. let fileType = fileName.substring(fileName.lastIndexOf('.') + 1);
  353. // 判断上传文件格式
  354. if (this.fileTemp) {
  355. if ((fileType == 'xlsx') || (fileType == 'xls')) {
  356. this.importf(this.fileTemp)
  357. } else {
  358. this.$message({
  359. type: 'warning',
  360. message: '附件格式错误,请删除后重新上传!'
  361. })
  362. }
  363. } else {
  364. this.$message({
  365. type: 'warning',
  366. message: '请上传附件!'
  367. })
  368. }
  369. },
  370. importf(obj) {
  371. this.dialogVisible = true;
  372. let _this = this;
  373. let inputDOM = this.$refs.inputer; // 通过DOM取文件数据
  374. this.file = event.currentTarget.files[0];
  375. var rABS = false; //是否将文件读取为二进制字符串
  376. var f = this.file;
  377. var reader = new FileReader();
  378. //if (!FileReader.prototype.readAsBinaryString) {
  379. FileReader.prototype.readAsBinaryString = function (f) {
  380. var binary = "";
  381. var rABS = false; //是否将文件读取为二进制字符串
  382. var pt = this;
  383. var wb; //读取完成的数据
  384. var outdata;
  385. var reader = new FileReader();
  386. reader.onload = function (e) {
  387. var bytes = new Uint8Array(reader.result);
  388. var length = bytes.byteLength;
  389. for (var i = 0; i < length; i++) {
  390. binary += String.fromCharCode(bytes[i]);
  391. }
  392. var XLSX = require('xlsx');
  393. if (rABS) {
  394. wb = XLSX.read(btoa(fixdata(binary)), { //手动转化
  395. type: 'base64'
  396. });
  397. } else {
  398. wb = XLSX.read(binary, {
  399. type: 'binary'
  400. });
  401. }
  402. // outdata就是你想要的东西 excel导入的数据
  403. outdata = XLSX.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]]);
  404. // excel 数据再处理
  405. let arr = []
  406. outdata.map(v => {
  407. // let jsonString = JSON.stringify(v).replace(/\*/g, '').replace(/\s/ig,'');
  408. let jsonString = JSON.stringify(v).replace(/\//g, '').replace(/\s/ig,'');
  409. console.log(jsonString);
  410. v = JSON.parse(jsonString);
  411. let obj = {}
  412. //xxx代表列名
  413. obj.temporaryDriverFlag = v.临时司机标识
  414. obj.caseNo= v.箱号
  415. obj.titleNo= v.封号
  416. obj.driverPhone = v.司机电话
  417. obj.driver=v.司机姓名
  418. obj.loadNetWeight = v.装车净重
  419. obj.loadingDate = toString(v.装车日期)
  420. obj.status= v.状态
  421. obj.carNo = v.车牌号
  422. obj.unloadPoundImg = v.磅单
  423. console.log(obj)
  424. _this.freightspace.push(obj)
  425. })
  426. // _this.freightspace.concat(arr)
  427. console.log(arr,_this.freightspace)
  428. }
  429. reader.readAsArrayBuffer(f);
  430. }
  431. if (rABS) {
  432. reader.readAsArrayBuffer(f);
  433. } else {
  434. reader.readAsBinaryString(f);
  435. }
  436. console.log(reader)
  437. },
  438. //返回按钮
  439. revert() {
  440. this.$router.push({ path: 'tranManagementReceivingFeedback' })
  441. },
  442. del(index) {
  443. if (this.deptBudgetList.tranCarInfoList.length > 1) {
  444. this.deptBudgetList.tranCarInfoList.splice(index, 1)
  445. }
  446. },
  447. uploadSuccessHandle1(e,index) {
  448. this.deptBudgetList.tranCarInfoList[index].unloadPoundImg = e.url
  449. },
  450. selectwaterContent() {},
  451. //提交按钮
  452. submit() {
  453. for (var i = 0; i < this.freightspace.length; i++) {
  454. if (this.freightspace[i].unloadNetWeight == null) {
  455. this.$message({
  456. message: '卸重不能为空!',
  457. type: 'warning'
  458. })
  459. return
  460. }
  461. }
  462. this.$confirm(
  463. `所有车辆完成卸车任务后,请及时修改任务状态,确定提交卸车信息?`,
  464. {
  465. cancelButtonText: '取消',
  466. confirmButtonText: '确定',
  467. type: 'warning'
  468. }
  469. )
  470. .then(() => {
  471. this.$refs.deptBudgetList.validate(valid => {
  472. if (valid) {
  473. // this.tranCarInfoList = this.freightspace
  474. this.tranCarInfoList = this.deptBudgetList.tranCarInfoList
  475. this.tranCarInfoList.driver = this.deptBudgetList.driver
  476. this.tranCarInfoList.driverPhone = this.deptBudgetList.driverPhone
  477. this.tranCarInfoList.carNo = this.deptBudgetList.carNo
  478. this.tranCarInfoList.loadNetWeight = this.deptBudgetList.loadNetWeight
  479. this.tranCarInfoList.tranType = this.tranType
  480. // this.tranCarInfoList.unloadPoundImg = this.deptBudgetList.tranCarInfoList.unloadPoundImg
  481. console.log( this.deptBudgetList.tranCarInfoList[0].unloadPoundImg,'图片')
  482. this.tranCarInfoList.unloadNetWeight = this.deptBudgetList.unloadNetWeight
  483. for (var i = 0; i < this.tranCarInfoList.length; i++) {
  484. this.tranCarInfoList[i].id = this.freightspace[i].id
  485. if (this.tranCarInfoList[i].temporaryDriverFlag != 0) {
  486. this.tranCarInfoList[i].temporaryDriverFlag = 1
  487. this.tranCarInfoList[i].tranType = this.tranType
  488. }
  489. }
  490. console.log(this.tranCarInfoList,'12121212')
  491. var tranProcessInfo = {}
  492. tranProcessInfo.id = this.deptBudgetList.id
  493. tranProcessInfo.infoId = this.deptBudgetList.infoId
  494. tranProcessInfo.tranCarInfoList = this.tranCarInfoList
  495. feedback(tranProcessInfo)
  496. .toPromise()
  497. .then(response => {
  498. this.$message.success('提交成功')
  499. this.deptBudgetList = {}
  500. this.freightspace = {}
  501. this.selectedOptions = ''
  502. this.$router.push({
  503. path: 'tranManagementReceivingFeedback'
  504. })
  505. })
  506. } else {
  507. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  508. return false
  509. }
  510. })
  511. })
  512. .catch(() => {
  513. return false
  514. })
  515. },
  516. //导入
  517. import(){
  518. },
  519. finished(){
  520. this.$confirm(`完货操作后,卸车信息不可修改,是否确定完货?`, {
  521. confirmButtonText: '确定',
  522. cancelButtonText: '取消',
  523. type: 'warning',
  524. })
  525. .then(() => {
  526. this.$refs.deptBudgetList.validate((valid) => {
  527. if (valid) {
  528. var tranProcessInfo = {}
  529. tranProcessInfo.id = this.deptBudgetList.id
  530. stateRec(tranProcessInfo)
  531. .toPromise()
  532. .then((response) => {
  533. this.$message.success('完货成功')
  534. this.deptBudgetList = {}
  535. this.freightspace = {}
  536. this.selectedOptions = ''
  537. this.$router.push({
  538. path: 'tranManagementReceivingFeedback',
  539. })
  540. })
  541. } else {
  542. return false
  543. }
  544. })
  545. })
  546. .catch(() => {
  547. return false
  548. })
  549. },
  550. handleClose() {
  551. this.accessoryTFs = false
  552. },
  553. getList() {
  554. seeCat({ id: this.deptBudgetList.id })
  555. .toPromise()
  556. .then(response => {
  557. this.deptBudgetList = response
  558. this.freightspace = response.tranCarInfoList
  559. for (var i = 0; i < this.freightspace.length; i++) {
  560. if (!this.freightspace[i].loadNetWeight) {
  561. this.freightspace[i].loadNetWeight = 0
  562. }
  563. }
  564. })
  565. },
  566. carchange(val, index) {
  567. for (var i = 0; i < this.carList.length; i++) {
  568. if (this.carList[i].driverName == val) {
  569. this.deptBudgetList.tranCarInfoList[index].driverPhone = this.carList[
  570. i
  571. ].driverPhone
  572. arrange({ id: this.carList[i].id })
  573. .toPromise()
  574. .then(response => {
  575. this.deptBudgetList.tranCarInfoList[index].carNo =
  576. response.carNumber
  577. if (response.carLoad != null) {
  578. this.deptBudgetList.tranCarInfoList[index].loadWeight =
  579. response.carLoad
  580. } else {
  581. this.deptBudgetList.tranCarInfoList[index].loadWeight = 0
  582. }
  583. this.deptBudgetList.tranCarInfoList[index].carModel =
  584. response.carModel
  585. this.deptBudgetList.tranCarInfoList[index].carLength =
  586. response.carLength
  587. this.deptBudgetList.tranCarInfoList[index].carLengthKey =
  588. response.carLengthKey
  589. this.deptBudgetList.tranCarInfoList[index].carModelKey =
  590. response.carModelKey
  591. })
  592. }
  593. }
  594. }
  595. },
  596. phonechange(val, index) {
  597. for (var i = 0; i < this.carList.length; i++) {
  598. if (this.carList[i].driverPhone == val) {
  599. this.deptBudgetList.tranCarInfoList[index].driver = this.carList[
  600. i
  601. ].driver
  602. arrange({ id: this.carList[i].id })
  603. .toPromise()
  604. .then(response => {
  605. this.deptBudgetList.tranCarInfoList[index].carNo =
  606. response.carNumber
  607. if (response.carLoad != null) {
  608. this.deptBudgetList.tranCarInfoList[index].loadWeight =
  609. response.carLoad
  610. } else {
  611. this.deptBudgetList.tranCarInfoList[index].loadWeight = 0
  612. }
  613. this.deptBudgetList.tranCarInfoList[index].carModel =
  614. response.carModel
  615. this.deptBudgetList.tranCarInfoList[index].carLength =
  616. response.carLength
  617. this.deptBudgetList.tranCarInfoList[index].carLengthKey =
  618. response.carLengthKey
  619. this.deptBudgetList.tranCarInfoList[index].carModelKey =
  620. response.carModelKey
  621. })
  622. }
  623. }
  624. },
  625. selecttaskType(e) {
  626. for (var i = 0; i < this.taskTypeList.length; i++) {
  627. if (this.taskTypeList[i].value == e) {
  628. this.searchType = this.taskTypeList[i].type
  629. }
  630. }
  631. },
  632. }
  633. </script>
  634. <style lang="scss" scoped>
  635. /deep/.basicInformation {
  636. .ws-info-table {
  637. border: none;
  638. }
  639. .el-form-item {
  640. width: 33.3333%;
  641. border: none;
  642. height: 50px;
  643. .el-form-item__label {
  644. background: transparent;
  645. border: none;
  646. }
  647. .el-form-item__content {
  648. border: none;
  649. }
  650. }
  651. }
  652. .title {
  653. position: relative;
  654. padding-left: 10px;
  655. }
  656. .title::before {
  657. content: '';
  658. display: inline-block;
  659. width: 5px;
  660. height: 30px;
  661. background: #5473e8;
  662. position: absolute;
  663. left: 0;
  664. }
  665. .el-form {
  666. padding: 0 10%;
  667. }
  668. .el-button--primary {
  669. background-color: #5878e8;
  670. border-color: #5878e8;
  671. }
  672. .el-col {
  673. background: #f6f7fc;
  674. }
  675. .bg-right {
  676. text-align: right;
  677. padding: 16px 20px;
  678. }
  679. .center {
  680. width: 90%;
  681. margin: 0 auto;
  682. }
  683. //表格文字
  684. /deep/.ws-info-table .el-form-item .el-form-item__label {
  685. text-align: left;
  686. font-size: 13px;
  687. font-weight: 400;
  688. color: #8890b1;
  689. line-height: 16px;
  690. }
  691. //蓝标
  692. .small-title {
  693. position: relative;
  694. padding: 10px;
  695. font-weight: 600;
  696. }
  697. .small-title::before {
  698. position: absolute;
  699. content: '';
  700. display: block;
  701. background: #5473e8;
  702. width: 4px;
  703. height: 14px;
  704. left: 0px;
  705. top: 13px;
  706. padding: 4px 2px;
  707. }
  708. .position {
  709. position: relative;
  710. }
  711. .position .zaizhong {
  712. width: 16%;
  713. }
  714. //减号
  715. .del {
  716. position: absolute;
  717. // right: -38px;
  718. top: 9px;
  719. cursor: pointer;
  720. right: 0;
  721. display: inline-block;
  722. font-size: 20px;
  723. width: 20px;
  724. height: 10px;
  725. line-height: 0px;
  726. }
  727. .driver .el-form-item {
  728. width: 16.63%;
  729. }
  730. /deep/.ws-info-table .el-form-item .el-form-item__content {
  731. background: #f5f7fa;
  732. border-radius: 4px;
  733. color: #8890b1;
  734. font-size: 14px;
  735. font-weight: 400;
  736. }
  737. /deep/.driver .ws-info-table .el-form-item .el-form-item__label {
  738. width: 72px;
  739. }
  740. /deep/.liaison .ws-info-table .el-form-item {
  741. width: 15.66%;
  742. color: #8890b1;
  743. font-size: 14px;
  744. }
  745. /deep/.ws-info-table .el-form-item {
  746. border: none;
  747. height: 50px;
  748. }
  749. /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
  750. width: 53.46%;
  751. border: 0px solid #d8dce6;
  752. background: #f5f7fa;
  753. text-align: center;
  754. }
  755. /deep/.liaison {
  756. background: #f5f7fa;
  757. border-radius: 4px;
  758. border: 0px solid #d8dce6;
  759. }
  760. /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
  761. border: none;
  762. background: #f5f7fa;
  763. }
  764. .catNos {
  765. width: 100%;
  766. height: 30px;
  767. margin-top: 10px;
  768. margin-left: 20px;
  769. font-size: 14px;
  770. }
  771. /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
  772. // border: 0px solid #d8dce6;
  773. border-radius: 0px;
  774. border-left: none;
  775. border-bottom: none;
  776. border-top: none;
  777. }
  778. /deep/.liaison .ws-info-table {
  779. background: #f6f7fc;
  780. border-radius: 4px;
  781. border: 1px solid #d8dce6;
  782. margin-top: 20px;
  783. }
  784. //送达/未送达
  785. .noservice,
  786. .service {
  787. display: inline-block;
  788. border-radius: 4px;
  789. border: 1px solid #d8dce6;
  790. padding: 2px;
  791. font-size: 12px;
  792. }
  793. .noservice {
  794. background: #c4cada;
  795. color: #ffffff;
  796. }
  797. .serviced {
  798. background: #e5f1f7;
  799. color: #50cad4;
  800. }
  801. //添加司机
  802. .add {
  803. width: 100px;
  804. height: 34px;
  805. background: #f6f7fb;
  806. border-radius: 17px;
  807. color: #5473e8;
  808. font-size: 14px;
  809. border: none;
  810. }
  811. .add img {
  812. display: inline-block;
  813. margin-top: 3px;
  814. margin-left: -12px;
  815. }
  816. .add .spans {
  817. display: table-caption;
  818. width: 56px;
  819. height: 20px;
  820. line-height: 18px;
  821. }
  822. .container {
  823. overflow: scroll;
  824. height: 93vh;
  825. }
  826. .line {
  827. height: 26px;
  828. margin-top: 6px;
  829. left: 2px;
  830. margin: 0 auto;
  831. }
  832. .signStatus {
  833. height: 25px;
  834. border-radius: 3px;
  835. border: 1px solid #5473e8;
  836. padding: 0 3px;
  837. margin-left: 30px;
  838. color: #ffffff;
  839. background: #c4cada;
  840. line-height: 24px;
  841. }
  842. .signStatus1 {
  843. height: 25px;
  844. background: #e6ebff;
  845. border-radius: 3px;
  846. border: 1px solid #5473e8;
  847. padding: 0 3px;
  848. margin-left: 30px;
  849. color: #5473e8;
  850. line-height: 24px;
  851. }
  852. /deep/.ws-info-table.el-form-item .el-form-item__label {
  853. // background-color: #eee;
  854. // padding-right: 8px;
  855. // padding-left: 8px;
  856. font-size: 13px;
  857. font-weight: bold;
  858. // color: #333;
  859. // overflow: hidden;
  860. // height: 40px;
  861. /* text-overflow: ellipsis; */
  862. // white-space: nowrap;
  863. // width: 120px;
  864. // line-height: 40px;
  865. }
  866. </style>