tranManagementLook.vue 11 KB

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