tranManagementVehicleLook.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  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. <ws-form ref="deptBudgetList" :rules="rules" :model="deptBudgetList">
  25. <div class="small-title" style="font-size: 16px;">任务详情</div>
  26. <ws-info-table>
  27. <!--任务编号-->
  28. <ws-form-item label="任务编号" span="1" prop="processNo">
  29. {{ deptBudgetList.processNo }}
  30. </ws-form-item>
  31. <!--货名-->
  32. <ws-form-item label="货名" span="1" prop="goodsName">
  33. {{ deptBudgetList.goodsName }}
  34. </ws-form-item>
  35. <!--重量(吨)-->
  36. <ws-form-item label="重量(吨)" span="1" prop="weight">
  37. {{ deptBudgetList.weight }}
  38. </ws-form-item>
  39. <!--发货地址-->
  40. <ws-form-item label="发货地址" span="1" prop="sendDetailedAddress">
  41. {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
  42. }}{{ deptBudgetList.sendArea }}
  43. </ws-form-item>
  44. <!--发货人-->
  45. <ws-form-item label="发货人" span="1" prop="sender" class="readonly">
  46. {{ deptBudgetList.sender }}
  47. </ws-form-item>
  48. <!--发货人电话-->
  49. <ws-form-item
  50. label="发货人电话"
  51. span="1"
  52. prop="senderPhone"
  53. class="readonly"
  54. >
  55. {{ deptBudgetList.senderPhone }}
  56. </ws-form-item>
  57. <!--收货地址-->
  58. <ws-form-item label="收货地址" span="1" prop="receiveDetailedAddress">
  59. {{ deptBudgetList.receivePrivate }}{{ deptBudgetList.receiveCity
  60. }}{{ deptBudgetList.receiveArea }}
  61. </ws-form-item>
  62. <!--收货人-->
  63. <ws-form-item label="收货人" span="1" prop="receiver">
  64. {{ deptBudgetList.receiver }}
  65. </ws-form-item>
  66. <!--收货人电话-->
  67. <ws-form-item label="收货人电话" span="1" prop="receiverPhone">
  68. {{ deptBudgetList.receiverPhone }}
  69. </ws-form-item>
  70. <!--发货日期-->
  71. <ws-form-item label="发货日期" span="1" prop="deliveryDateStart">
  72. {{ deptBudgetList.deliveryDateStart }}
  73. </ws-form-item>
  74. <!--最晚到货日期-->
  75. <ws-form-item label="最晚到货日期" span="1" prop="deliveryDateEnd">
  76. {{ deptBudgetList.deliveryDateEnd }}
  77. </ws-form-item>
  78. <!--合同编号-->
  79. <ws-form-item label="合同编号" span="1" prop="contractNo">
  80. {{ deptBudgetList.contractNo }}
  81. </ws-form-item>
  82. </ws-info-table>
  83. <div class="small-title" style="font-size: 16px;">派车</div>
  84. <div
  85. style="width: 100%"
  86. class="driver"
  87. v-for="(item, index) in deptBudgetList.tranCarInfoList"
  88. >
  89. <ws-info-table>
  90. <div class="catNos">
  91. 司机-{{ index + 1 }}
  92. <span class="noservice" v-show="item.status == '未送达'">{{
  93. item.status
  94. }}</span>
  95. <span class="service" v-show="item.status == '已送达'">{{
  96. item.status
  97. }}</span>
  98. </div>
  99. <!--姓名-->
  100. <ws-form-item label="姓名" span="1" prop="driver">
  101. {{ item.driver }}
  102. </ws-form-item>
  103. <ws-form-item class="phone" label="电话" span="1" prop="driverPhone">
  104. {{ item.driverPhone }}
  105. </ws-form-item>
  106. <ws-form-item label="车牌号" span="1" prop="carNo">
  107. {{ item.carNo }}
  108. </ws-form-item>
  109. <ws-form-item label="装车(吨)" span="1" prop="loadNetWeight">
  110. {{ item.loadNetWeight }}
  111. </ws-form-item>
  112. <ws-form-item label="卸车(吨)" span="1" prop="unloadNetWeight">
  113. {{ item.unloadNetWeight }}
  114. </ws-form-item>
  115. <ws-form-item label="损耗(吨)" span="1" prop="loss">
  116. {{ item.loss }}
  117. </ws-form-item>
  118. <ws-form-item label="合同" span="1" prop="unloadNetWeight" class="hetong">
  119. </ws-form-item>
  120. </ws-info-table>
  121. </div>
  122. </ws-form>
  123. <div style="text-align: right; padding: 10px">
  124. <el-button
  125. class="bg-bottom-up"
  126. type="primary"
  127. size="small"
  128. @click="revert()"
  129. >关闭</el-button
  130. >
  131. </div>
  132. </div>
  133. </template>
  134. <script>
  135. import { pullDown, addstorageputList } from '@/model/warehouse/index'
  136. import Pagination from '@/components/Pagination'
  137. import WsUpload from '@/components/WsUpload'
  138. import { seeCat } from '@/model/transport/index'
  139. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  140. import { dayjs, EventBus } from 'base-core-lib'
  141. export default {
  142. name: 'viewSpareMoney',
  143. components: {
  144. WsUpload,
  145. Pagination,
  146. },
  147. watch: {
  148. // vesselId(val) {
  149. // this.getList()
  150. // },
  151. isShow(val) {
  152. this.showType = val
  153. },
  154. },
  155. data() {
  156. return {
  157. //弹出框
  158. dialogViewSpareMoney: false,
  159. dialogApproveFormVisible: false,
  160. // 船舶类型
  161. monetaryKey: null,
  162. // 表格显示数据
  163. tableDate: [],
  164. // 是否显示
  165. showType: true,
  166. // 年
  167. year: '',
  168. disabled: true,
  169. deptBudgetTotal: 0,
  170. currentPage: 1,
  171. pageSize: 10,
  172. searchType: 1,
  173. searchKeyWord: '',
  174. contractType: 2,
  175. startDate: null,
  176. endDate: null,
  177. goodnameList: {},
  178. // 提交类型
  179. submitType: true,
  180. storageType: [],
  181. readonly: true,
  182. appendixIdsAdd: '',
  183. uploadSuccess: {},
  184. onChange: {},
  185. gradeList: [],
  186. rules: {
  187. netWeight: [
  188. {
  189. required: true,
  190. type: 'number',
  191. message: '请输入活动名称',
  192. trigger: 'blur',
  193. },
  194. ],
  195. },
  196. size: 10,
  197. compId: sessionStorage.getItem('ws-pf_compId'),
  198. deptCircularPage: {},
  199. packtypeList: {},
  200. date: {
  201. year: dayjs().format('YYYY'),
  202. month: dayjs().format('MM'),
  203. },
  204. contractList: [],
  205. deptBudgetList: {
  206. warehouseInOutDetail: {},
  207. },
  208. historyList: [],
  209. pickerBeginDateBefore: {
  210. disabledDate: (time) => {
  211. return time.getTime() > Date.now()
  212. },
  213. },
  214. accessoryTFs: false,
  215. }
  216. },
  217. activated() {
  218. this.getList()
  219. },
  220. methods: {
  221. //返回按钮
  222. revert() {
  223. this.$router.push({ path: 'tranManagementVehicle' })
  224. },
  225. del(index) {
  226. if (this.freightspace.length > 1) {
  227. this.freightspace.splice(index, 1)
  228. }
  229. },
  230. getList() {
  231. seeCat({ id: this.$route.query.id })
  232. .toPromise()
  233. .then((response) => {
  234. for (var i = 0; i < response.tranCarInfoList.length; i++) {
  235. if (
  236. response.tranCarInfoList[i].loadNetWeight &&
  237. response.tranCarInfoList[i].unloadNetWeight
  238. ) {
  239. response.tranCarInfoList[i].loss =
  240. response.tranCarInfoList[i].loadNetWeight -
  241. response.tranCarInfoList[i].unloadNetWeight
  242. } else if (response.tranCarInfoList[i].loadNetWeight) {
  243. response.tranCarInfoList[i].loss =
  244. response.tranCarInfoList[i].loadNetWeight
  245. } else {
  246. response.tranCarInfoList[i].loss = 0
  247. }
  248. }
  249. this.deptBudgetList = response
  250. })
  251. },
  252. handleExamine(row) {
  253. this.$router.push({
  254. name: 'salesContractExamine',
  255. query: { id: row.id },
  256. })
  257. },
  258. // 关闭 dialog时 处理文件url 初始化upload组件
  259. // handleCloe() {
  260. // this.dialogViewSpareMoney = false
  261. // },
  262. // history(row) {
  263. // billoperatehis({ id: row.id })
  264. // .toPromise()
  265. // .then((response) => {
  266. // this.historyList = response
  267. // })
  268. // },
  269. // deletecontract(){},
  270. //删除
  271. approve() {},
  272. listQuery() {},
  273. },
  274. }
  275. </script>
  276. <style lang="scss" scoped>
  277. /deep/.basicInformation {
  278. .ws-info-table {
  279. border: none;
  280. }
  281. .el-form-item {
  282. width: 33.3333%;
  283. border: none;
  284. .el-form-item__label {
  285. background: transparent;
  286. border: none;
  287. }
  288. .el-form-item__content {
  289. border: none;
  290. }
  291. }
  292. }
  293. .small-title {
  294. position: relative;
  295. padding: 10px;
  296. font-weight: 600;
  297. }
  298. .small-title::before {
  299. position: absolute;
  300. content: '';
  301. display: block;
  302. background: #5473e8;
  303. width: 4px;
  304. height: 14px;
  305. left: 0px;
  306. top: 13px;
  307. }
  308. .title {
  309. position: relative;
  310. padding-left: 10px;
  311. }
  312. .title::before {
  313. content: '';
  314. display: inline-block;
  315. width: 5px;
  316. height: 30px;
  317. background: #5473e8;
  318. position: absolute;
  319. left: 0;
  320. }
  321. .el-form {
  322. padding: 0 10%;
  323. }
  324. .el-button--primary {
  325. background-color: #5878e8;
  326. border-color: #5878e8;
  327. }
  328. .el-col {
  329. background: #f6f7fc;
  330. }
  331. .bg-right {
  332. text-align: right;
  333. padding: 16px 20px;
  334. }
  335. /deep/.ws-info-table .el-form-item {
  336. width: 33.33%;
  337. }
  338. /deep/.el-form-item__label {
  339. width: 160px;
  340. }
  341. //选填
  342. /deep/.el-form-item {
  343. width: 50%;
  344. }
  345. .container {
  346. overflow: scroll;
  347. height: 120vh;
  348. }
  349. /deep/.ws-info-table .el-form-item .el-form-item__label {
  350. text-align: center;
  351. }
  352. .deliverydate {
  353. display: inline-block;
  354. width: 10%;
  355. }
  356. //表格文字
  357. /deep/.ws-info-table .el-form-item .el-form-item__label {
  358. text-align: left;
  359. font-size: 14px;
  360. font-weight: 400;
  361. color: #000;
  362. line-height: 16px;
  363. }
  364. .small-title {
  365. position: relative;
  366. padding: 10px;
  367. font-weight: 600;
  368. }
  369. .small-title::before {
  370. position: absolute;
  371. content: '';
  372. display: block;
  373. width: 4px;
  374. height: 14px;
  375. left: 0px;
  376. top: 13px;
  377. padding: 4px 2px;
  378. }
  379. // .ws-info-table[data-v-850a44a6] .el-form-item {
  380. // width: 16.66%;
  381. // }
  382. //去边框
  383. /deep/.el-form-item,
  384. /deep/.ws-info-table {
  385. border: none;
  386. }
  387. /deep/.ws-info-table .el-form-item .el-form-item__content {
  388. border: none;
  389. }
  390. /deep/.ws-info-table .el-form-item {
  391. border: none;
  392. height: 50px;
  393. }
  394. /deep/.ws-info-table .el-form-item .el-form-item__content {
  395. background: #f5f7fa;
  396. color: #8890B1;
  397. font-size: 14px;
  398. }
  399. .driver {
  400. position: relative;
  401. background: #f6f7fb;
  402. border-radius: 4px;
  403. border: 1px solid #d8dce6;
  404. margin-top: 20px;
  405. }
  406. .not,
  407. .already {
  408. position: absolute;
  409. left: -45px;
  410. top: 10px;
  411. }
  412. /deep/.ws-info-table .el-form-item .el-form-item__label {
  413. background: #fff;
  414. color: #8890B1;
  415. font-size: 14px;
  416. }
  417. /deep/.driver .ws-info-table .el-form-item {
  418. width: 14.28%;
  419. }
  420. /deep/.driver .ws-info-table .el-form-item .el-form-item__label {
  421. width: 86px;
  422. text-align: center;
  423. background: #f6f7fb;
  424. font-size: 14px;
  425. color: #8890b1;
  426. }
  427. /deep/.driver .ws-info-table .el-form-item.phone .el-form-item__label {
  428. width: 50px;
  429. }
  430. /deep/.catNos {
  431. width: 100%;
  432. margin-top: 10px;
  433. margin-left: 15px;
  434. }
  435. /deep/.driver .ws-info-table .el-form-item .el-form-item__content {
  436. border-right: 1px solid #8890b1;
  437. background: #f6f7fb;
  438. font-size: 14px;
  439. color: #8890b1;
  440. }
  441. /deep/.hetong .ws-info-table .el-form-item .el-form-item__content{
  442. border: none;
  443. }
  444. //送达/未送达
  445. .noservice,
  446. .service {
  447. display: inline-block;
  448. border-radius: 4px;
  449. border: 1px solid #d8dce6;
  450. padding: 2px;
  451. font-size: 12px;
  452. }
  453. .noservice {
  454. background: #c4cada;
  455. color: #ffffff;
  456. }
  457. .service {
  458. background: #e5f1f7;
  459. color: #50cad4;
  460. }
  461. /deep/.driver.ws-info-table .el-form-item .el-form-item__content{
  462. border:none
  463. }
  464. </style>