tranManagementLook.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  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" :model="deptBudgetList" :rules="rules">
  25. <div class="basicInformation">
  26. <ws-info-table>
  27. <!--任务编号-->
  28. <ws-form-item label="任务编号" span="1" prop="taskNo">
  29. {{ deptBudgetList.taskNo }}
  30. </ws-form-item>
  31. <!--合同编号-->
  32. <ws-form-item label="合同编号/移库任务编号" span="1" prop="contractNo">
  33. {{ deptBudgetList.contractNo }}
  34. </ws-form-item>
  35. <!--货名-->
  36. <ws-form-item label="货名" span="1" prop="goodsName" class="readonly">
  37. {{ deptBudgetList.goodsName }}
  38. </ws-form-item>
  39. <!-- 重量(吨) -->
  40. <ws-form-item label="重量(吨)" span="1" prop="weight">
  41. {{ deptBudgetList.weight }}
  42. </ws-form-item>
  43. </ws-info-table>
  44. <div class="address">
  45. <ws-info-table>
  46. <!-- 始发地 -->
  47. <ws-form-item label="始发地" span="1" prop="netWeight">
  48. {{ deptBudgetList.startPrivate }}/{{ deptBudgetList.startCity
  49. }}{{ deptBudgetList.startArea
  50. }}{{ deptBudgetList.startDetailedAddress }}
  51. </ws-form-item>
  52. <!--终到地-->
  53. <ws-form-item label="终到地" span="1" prop="netWeight">
  54. {{ deptBudgetList.endPrivate }}/{{ deptBudgetList.endCity
  55. }}{{ deptBudgetList.endArea
  56. }}{{ deptBudgetList.endDetailedAddress }}
  57. </ws-form-item>
  58. </ws-info-table>
  59. </div>
  60. <div class="inspector">
  61. <span class="zi">运输方式</span>
  62. <el-checkbox-group v-model="checkList">
  63. <el-checkbox disabled label="汽运"></el-checkbox>
  64. <el-checkbox disabled label="火运"></el-checkbox>
  65. <el-checkbox disabled label="船运"></el-checkbox>
  66. </el-checkbox-group>
  67. </div>
  68. </div>
  69. <div
  70. v-for="(item, index) in deptBudgetList.tranProcessInfoList"
  71. :key="index"
  72. class="datafor"
  73. >
  74. <div class="driver">运输阶段&nbsp;&nbsp;{{ index+1 }}&nbsp;&nbsp;({{ item.processNo }}-{{index +1}})</div>
  75. <!-- <div class="neifor"> -->
  76. <ws-info-table class="el-table">
  77. <!--运输方式-->
  78. <ws-form-item label="运输方式" span="1" prop="tranType">
  79. {{ item.tranType }}
  80. </ws-form-item>
  81. <!--发货日期-->
  82. <ws-form-item label="发货日期" span="1" prop="deliveryDateStart">
  83. {{ item.deliveryDateStart }}
  84. </ws-form-item>
  85. <!--最晚到货日期-->
  86. <ws-form-item label="最晚到货日期" span="1" prop="deliveryDateEnd">
  87. {{ item.deliveryDateEnd }}
  88. </ws-form-item>
  89. <ws-form-item label="本阶段运输重量(吨)" span="1" prop="weight">
  90. {{ item.weight }}
  91. </ws-form-item>
  92. </ws-info-table>
  93. <!-- </div>-->
  94. <ws-info-table>
  95. <!--发货地区-->
  96. <ws-form-item label="发货地区" span="1" prop="waterContent">
  97. {{ item.sendPrivate }}/{{ item.sendCity }}/{{ item.sendArea }}
  98. </ws-form-item>
  99. <!--发货地详细地址-->
  100. <ws-form-item
  101. label="发货地详细地址"
  102. span="1"
  103. prop="sendDetailedAddress"
  104. >
  105. {{ item.sendDetailedAddress }}
  106. </ws-form-item>
  107. <!--发货人-->
  108. <ws-form-item label="发货人" span="1" prop="sender">
  109. {{ item.sender }}
  110. </ws-form-item>
  111. <!--发货人电话-->
  112. <ws-form-item label="发货人电话" span="1" prop="senderPhone">
  113. {{ item.senderPhone }}
  114. </ws-form-item>
  115. </ws-info-table>
  116. <!-- <div class="nei"> -->
  117. <ws-info-table>
  118. <!--收货地区-->
  119. <ws-form-item label="收货地区" span="1" prop="waterContent">
  120. {{ item.receivePrivate }}/{{ item.receiveCity
  121. }}/{{ item.receiveArea }}
  122. </ws-form-item>
  123. <!--收货地详细地址-->
  124. <ws-form-item
  125. label="收货地详细地址"
  126. span="1"
  127. prop="receiveDetailedAddress"
  128. >
  129. {{ item.receiveDetailedAddress }}
  130. </ws-form-item>
  131. <!--发货人-->
  132. <ws-form-item label="收货人" span="1" prop="receiver">
  133. {{ item.receiver }}
  134. </ws-form-item>
  135. <!--发货人电话-->
  136. <ws-form-item label="收货人电话" span="1" prop="receiverPhone">
  137. {{ item.receiverPhone }}
  138. </ws-form-item>
  139. </ws-info-table>
  140. <!-- </div> -->
  141. </div>
  142. <div style="text-align: right; padding: 10px">
  143. <el-button
  144. class="bg-bottom-up"
  145. type="primary"
  146. size="small"
  147. @click="revert()"
  148. >关闭</el-button
  149. >
  150. </div>
  151. </ws-form>
  152. </div>
  153. </template>
  154. <script>
  155. import { examinetran } from '@/model/tasksport/index'
  156. import Pagination from '@/components/Pagination'
  157. import WsUpload from '@/components/WsUpload'
  158. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  159. import { dayjs, EventBus } from 'base-core-lib'
  160. export default {
  161. name: 'viewSpareMoney',
  162. components: {
  163. WsUpload,
  164. Pagination,
  165. },
  166. watch: {
  167. // vesselId(val) {
  168. // this.getList()
  169. // },
  170. isShow(val) {
  171. this.showType = val
  172. },
  173. },
  174. data() {
  175. return {
  176. //多选按钮
  177. checkList: [],
  178. //弹出框
  179. dialogViewSpareMoney: false,
  180. dialogApproveFormVisible: false,
  181. // 船舶类型
  182. monetaryKey: null,
  183. // 表格显示数据
  184. tableDate: [],
  185. // 是否显示
  186. showType: true,
  187. // 年
  188. year: '',
  189. deptBudgetTotal: 0,
  190. currentPage: 1,
  191. pageSize: 10,
  192. searchType: 1,
  193. searchKeyWord: '',
  194. contractType: 2,
  195. startDate: null,
  196. endDate: null,
  197. goodnameList: {},
  198. // 提交类型
  199. submitType: true,
  200. storageType: [],
  201. readonly: true,
  202. appendixIdsAdd: '',
  203. uploadSuccess: {},
  204. onChange: {},
  205. gradeList: [],
  206. rules: {
  207. netWeight: [
  208. {
  209. required: true,
  210. type: 'number',
  211. message: '请输入活动名称',
  212. trigger: 'blur',
  213. },
  214. ],
  215. },
  216. size: 10,
  217. compId: sessionStorage.getItem('ws-pf_compId'),
  218. deptCircularPage: {},
  219. packtypeList: {},
  220. date: {
  221. year: dayjs().format('YYYY'),
  222. month: dayjs().format('MM'),
  223. },
  224. contractList: [],
  225. deptBudgetList: {},
  226. historyList: [],
  227. pickerBeginDateBefore: {
  228. disabledDate: (time) => {
  229. return time.getTime() > Date.now()
  230. },
  231. },
  232. accessoryTFs: false,
  233. }
  234. },
  235. activated() {
  236. this.getList()
  237. },
  238. methods: {
  239. //返回按钮
  240. revert() {
  241. this.$router.push({ path: 'tranManagementTransport' })
  242. },
  243. getList() {
  244. examinetran({ id: this.$route.query.id })
  245. .toPromise()
  246. .then((response) => {
  247. this.checkList = response.tranType.split(',')
  248. this.deptBudgetList = response
  249. })
  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. .title {
  274. position: relative;
  275. padding-left: 10px;
  276. }
  277. .title::before {
  278. content: '';
  279. display: inline-block;
  280. width: 5px;
  281. height: 30px;
  282. background: #5473e8;
  283. position: absolute;
  284. left: 0;
  285. }
  286. .el-form {
  287. padding: 0 10%;
  288. margin-top: 50px;
  289. }
  290. .el-button--primary {
  291. background-color: #5878e8;
  292. border-color: #5878e8;
  293. }
  294. .el-col {
  295. background: #f6f7fc;
  296. }
  297. .bg-right {
  298. text-align: right;
  299. padding: 16px 20px;
  300. }
  301. /deep/.address .ws-info-table .el-form-item {
  302. width: 100%;
  303. border: none;
  304. }
  305. /deep/.address .el-form-item .el-form-item__content {
  306. width: 30%;
  307. }
  308. .container {
  309. overflow: scroll;
  310. height: 120vh;
  311. }
  312. .deliverydate {
  313. display: inline-block;
  314. width: 10%;
  315. }
  316. /deep/.ws-info-table .el-form-item .el-form-item__label {
  317. text-align: center;
  318. font-size: 14px;
  319. font-weight: 400;
  320. color: #8890b1;
  321. line-height: 16px;
  322. border: none;
  323. }
  324. .inspector {
  325. margin-top: 10px;
  326. }
  327. .inspector .zi {
  328. text-align: center;
  329. margin-left: 22px;
  330. color: #69708C;
  331. font-size: 14px;
  332. }
  333. .small-title {
  334. position: relative;
  335. padding: 10px;
  336. font-weight: 600;
  337. }
  338. .small-title::before {
  339. position: absolute;
  340. content: '';
  341. display: block;
  342. background: #5473e8;
  343. width: 4px;
  344. height: 14px;
  345. left: 0px;
  346. top: 13px;
  347. padding: 4px 2px;
  348. }
  349. .el-checkbox-group {
  350. margin-left: 120px;
  351. margin-top: -20px;
  352. }
  353. //底部表格
  354. /deep/.nei {
  355. .ws-info-table {
  356. border: none;
  357. }
  358. .el-form-item {
  359. // width: 33.3333%;
  360. border: none;
  361. .el-form-item__label {
  362. background: transparent;
  363. border: none;
  364. }
  365. .el-form-item__content {
  366. border: none;
  367. }
  368. }
  369. }
  370. /deep/.neifor {
  371. .ws-info-table {
  372. border: none;
  373. }
  374. .el-form-item {
  375. // width: 33.3333%;
  376. border: none;
  377. .el-form-item__label {
  378. background: transparent;
  379. border: none;
  380. }
  381. .el-form-item__content {
  382. border: none;
  383. }
  384. }
  385. }
  386. .ws-info-table .el-form-item {
  387. width: 25%;
  388. height: 50px;
  389. color: #69708c;
  390. font-size: 14px;
  391. }
  392. /deep/.basicInformation .el-form-item .el-form-item__content {
  393. background: #f5f7fa;
  394. border-radius: 4px;
  395. border: 1px solid #d8dce6;
  396. }
  397. /deep/.inspector .el-form-item .el-form-item__label {
  398. width: 30%;
  399. }
  400. .datafor {
  401. border: 1px solid #d8dce6;
  402. border-radius: 5px;
  403. margin-top: 30px;
  404. border-left: 5px solid #8890B1;
  405. }
  406. /deep/.datafor .el-form-item .el-form-item__content {
  407. background: #f5f7fa;
  408. border-radius: 5px;
  409. }
  410. /deep/.datafor .ws-info-table .el-form-item .el-form-item__label {
  411. background: #fafbfc;
  412. background: none;
  413. }
  414. /deep/.ws-info-table,
  415. /deep/.ws-info-table .el-form-item {
  416. border: none;
  417. }
  418. /deep/.ws-info-table{
  419. width: 99%;
  420. }
  421. /deep/.ws-info-table .el-form-item .el-form-item__content {
  422. border: none;
  423. }
  424. .driver {
  425. margin-left: 20px;
  426. height: 32px;
  427. line-height: 30px;
  428. font-size: 16px;
  429. color: #69708c;
  430. }
  431. .el-form{
  432. height: 73vh;
  433. overflow: scroll;
  434. }
  435. </style>