tranManagementVehicleLook.vue 12 KB

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