tranManagementShippingLook.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  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 width="6" height="10" style="vertical-align: bottom; margin-right: 3px"
  11. src="../../../public/img/lujing.png" alt />返回
  12. </el-button>
  13. </el-col>
  14. </el-row>
  15. <div class="center">
  16. <ws-form ref="deptBudgetList" :model="deptBudgetList">
  17. <div>
  18. <div class="basicInformation">
  19. <div class="small-title" style="font-size: 16px;">任务详情</div>
  20. <ws-info-table>
  21. <!-- 任务编号 -->
  22. <ws-form-item label="任务编号" span="1" prop="processNo">{{ deptBudgetList.processNo }}</ws-form-item>
  23. <!-- 货名 -->
  24. <ws-form-item label="货名" span="1" prop="goodsName">{{ deptBudgetList.goodsName }}</ws-form-item>
  25. <!--重量(吨)-->
  26. <ws-form-item label="重量(吨)" span="1" prop="weight" class="readonly">{{ deptBudgetList.weight }}
  27. </ws-form-item>
  28. <!--发货地址-->
  29. <ws-form-item label="发货地址" span="1">
  30. {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
  31. }}{{ deptBudgetList.sendArea }}
  32. </ws-form-item>
  33. <!--发货人-->
  34. <ws-form-item label="发货人" span="1" prop="sender">{{ deptBudgetList.sender }}</ws-form-item>
  35. <!--发货人电话-->
  36. <ws-form-item label="发货人电话" span="1" prop="senderPhone">{{ deptBudgetList.senderPhone }}</ws-form-item>
  37. <!--收货地址-->
  38. <ws-form-item label="收货地址" span="1" prop="receiveDetailedAddress">
  39. {{ deptBudgetList.receivePrivate }}{{ deptBudgetList.receiveCity
  40. }}{{ deptBudgetList.receiveArea }}
  41. </ws-form-item>
  42. <!--收货人-->
  43. <ws-form-item label="收货人" span="1" prop="receiver">{{ deptBudgetList.receiver }}</ws-form-item>
  44. <!--收货人电话-->
  45. <ws-form-item label="收货人电话" span="1" prop="receiverPhone">{{ deptBudgetList.receiverPhone }}
  46. </ws-form-item>
  47. <!--发船日期-->
  48. <ws-form-item label="发船日期" span="1" prop="deliveryDateStart">{{ deptBudgetList.deliveryDateStart }}
  49. </ws-form-item>
  50. <!--最晚发货日期-->
  51. <ws-form-item label="最晚到货日期" span="1" prop="deliveryDateEnd">{{ deptBudgetList.deliveryDateEnd }}
  52. </ws-form-item>
  53. <!--合同编号-->
  54. <ws-form-item label="合同编号" span="1" prop="contractNo">{{ deptBudgetList.contractNo }}</ws-form-item>
  55. </ws-info-table>
  56. </div>
  57. <div>
  58. <div class="small-title" style="font-size: 16px">联络员及航次</div>
  59. <div v-if='deptBudgetList.tranCarInfoList'>
  60. <div style="width: 100% " class="flex position middle"
  61. v-for="(item, index) in deptBudgetList.tranCarInfoList" :key="index">
  62. <div style="margin: 18px;color: #69708C;">航次信息</div>
  63. <ws-info-table>
  64. <ws-form-item label="姓名:" span="1" prop="driver" class="siji">{{item.driver}}</ws-form-item>
  65. <ws-form-item label="电话:" span="1" prop="driverPhone" style="width:210px;">{{item.driverPhone}}
  66. </ws-form-item>
  67. <ws-form-item label="发船日期:" span="1" prop="sendDateStart" class="siji">{{ item.sendDateStart }}
  68. </ws-form-item>
  69. <ws-form-item label="预计到港日期:" span="1" prop="receiveDateEnd" class="siji">{{ item.receiveDateEnd }}
  70. </ws-form-item>
  71. <ws-form-item label="船名:" span="1" prop="shipName" class="siji">{{ item.shipName }}</ws-form-item>
  72. <ws-form-item label="航次:" span="1" prop="shipNo" class="siji">{{ item.shipNo }}</ws-form-item>
  73. <ws-form-item label="类型:" span="1" prop="shipType" class="siji">{{ item.shipType }}</ws-form-item>
  74. <ws-form-item label="数量:" span="1" prop="boxNumber" class="siji" v-if="item.shipType == '集装箱'">
  75. {{ item.boxNumber }}</ws-form-item>
  76. <ws-form-item label="仓位号:" span="1" prop="impurity" class="siji" v-if="item.shipType == '散船'">
  77. {{ item.binNumber }}</ws-form-item>
  78. <ws-form-item label="重量(吨):" span="1" prop="positionWeight" class="siji" v-if="item.shipType == '散船'">
  79. {{ item.positionWeight }}</ws-form-item>
  80. </ws-info-table>
  81. </div>
  82. </div>
  83. </div>
  84. <div style="text-align: right; padding: 10px">
  85. <el-button class="bg-bottom-up" type="primary" size="small" @click="returnsales()">关闭</el-button>
  86. </div>
  87. </div>
  88. </ws-form>
  89. </div>
  90. </div>
  91. </template>
  92. <script>
  93. import {
  94. seeCat
  95. } from '@/model/transport/index'
  96. import Pagination from '@/components/Pagination'
  97. import WsUpload from '@/components/WsUpload'
  98. import {
  99. dayjs,
  100. EventBus
  101. } from 'base-core-lib'
  102. export default {
  103. name: 'viewSpareMoney',
  104. components: {
  105. WsUpload,
  106. Pagination
  107. },
  108. watch: {
  109. isShow(val) {
  110. this.showType = val
  111. }
  112. },
  113. data() {
  114. return {
  115. //弹出框
  116. dialogViewSpareMoney: false,
  117. dialogApproveFormVisible: false,
  118. // 船舶类型
  119. monetaryKey: null,
  120. // 表格显示数据
  121. tableDate: [],
  122. // 是否显示
  123. showType: true,
  124. // 年
  125. year: '',
  126. deptBudgetTotal: 0,
  127. currentPage: 1,
  128. pageSize: 10,
  129. searchType: 1,
  130. searchKeyWord: '',
  131. contractType: 2,
  132. startDate: null,
  133. endDate: null,
  134. goodnameList: {},
  135. // 提交类型
  136. submitType: true,
  137. storageType: [],
  138. readonly: true,
  139. appendixIdsAdd: '',
  140. uploadSuccess: {},
  141. onChange: {},
  142. gradeList: [],
  143. list: [],
  144. arr: [],
  145. size: 10,
  146. compId: sessionStorage.getItem('ws-pf_compId'),
  147. deptCircularPage: {},
  148. packtypeList: {},
  149. deptBudgetList: {
  150. totalStorage: 0,
  151. tranCarInfoList: [],
  152. },
  153. tranCarInfoList: {},
  154. date: {
  155. year: dayjs().format('YYYY'),
  156. month: dayjs().format('MM')
  157. },
  158. contractList: [],
  159. deptBudgetList: {},
  160. }
  161. },
  162. activated() {
  163. this.deptBudgetList.id = this.$route.query.id
  164. this.getList()
  165. },
  166. methods: {
  167. getList() {
  168. seeCat({
  169. id: this.$route.query.id
  170. })
  171. .toPromise()
  172. .then((response) => {
  173. this.deptBudgetList = response
  174. if(response.tranCarInfoList.length > 0 &&response.tranCarInfoList[0].shipType =='集装箱') {
  175. this.deptBudgetList.tranCarInfoList=[this.deptBudgetList.tranCarInfoList[0]]
  176. }else{
  177. this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
  178. }
  179. })
  180. },
  181. //返回按钮
  182. revert() {
  183. this.$router.go(-1)
  184. },
  185. returnsales() {
  186. this.$router.go(-1)
  187. },
  188. }
  189. }
  190. </script>
  191. <style lang="scss" scoped>
  192. /deep/.basicInformation {
  193. .ws-info-table {
  194. border: none;
  195. }
  196. .el-form-item {
  197. width: 33.3333%;
  198. border: none;
  199. .el-form-item__label {
  200. background: transparent;
  201. border: none;
  202. }
  203. .el-form-item__content {
  204. border: none;
  205. }
  206. }
  207. }
  208. .title {
  209. position: relative;
  210. padding-left: 10px;
  211. }
  212. .title::before {
  213. content: '';
  214. display: inline-block;
  215. width: 5px;
  216. height: 30px;
  217. background: #5473e8;
  218. position: absolute;
  219. left: 0;
  220. }
  221. .el-form {
  222. padding: 0 10%;
  223. }
  224. .el-button--primary {
  225. background-color: #5878e8;
  226. border-color: #5878e8;
  227. }
  228. .el-col {
  229. background: #f6f7fc;
  230. }
  231. .bg-right {
  232. text-align: right;
  233. padding: 16px 20px;
  234. }
  235. .center {
  236. width: 100%;
  237. margin: 0 auto;
  238. }
  239. //表格文字
  240. /deep/.ws-info-table .el-form-item .el-form-item__label {
  241. text-align: left;
  242. font-size: 14px;
  243. font-weight: 400;
  244. color: #8890b1;
  245. line-height: 16px;
  246. }
  247. //蓝标
  248. .small-title {
  249. position: relative;
  250. padding: 10px;
  251. font-weight: 600;
  252. }
  253. .small-title::before {
  254. position: absolute;
  255. content: '';
  256. display: block;
  257. background: #5473e8;
  258. width: 4px;
  259. height: 14px;
  260. left: 0px;
  261. top: 13px;
  262. padding: 4px 2px;
  263. }
  264. .position {
  265. width: 90%;
  266. }
  267. .position .siji {
  268. width: 16%;
  269. }
  270. /deep/.position .ws-info-table .el-form-item .el-form-item__label {
  271. background-color: #f5f7fa;
  272. }
  273. .position .zaizhong {
  274. width: 16%;
  275. }
  276. //减号
  277. .del {
  278. right: -70px;
  279. }
  280. // .bot{
  281. // width: 30%;
  282. // border: none;
  283. // }
  284. .siji {
  285. width: 300px;
  286. }
  287. /deep/.el-form-item {
  288. border-right: 0px;
  289. border-bottom: 0px;
  290. }
  291. /deep/.ws-info-table {
  292. border-left: 0px;
  293. border-top: 0px;
  294. }
  295. .ws-info-table .el-form-item .el-form-item__content {
  296. border-right: 0px;
  297. border-bottom: 0px;
  298. border-left: 0px;
  299. border-top: 0px;
  300. }
  301. /deep/.ws-info-table .el-form-item {
  302. border-right: 0px;
  303. border-bottom: 0px;
  304. border-left: 0px;
  305. border-top: 0px;
  306. }
  307. /deep/.ws-info-table .el-form-item .el-form-item__content {
  308. background: #f5f7fa;
  309. border-radius: 4px;
  310. border: 1px solid #d8dce6;
  311. font-family: PingFangSC-Regular, PingFang SC;
  312. margin-bottom: 5px;
  313. background-color: #fff;
  314. font-size: 13px;
  315. font-weight: 400;
  316. color: #8890b1;
  317. line-height: 16px;
  318. }
  319. /deep/.ws-info-table .el-form-item .el-form-item__content {
  320. background: #f5f7fa;
  321. border-radius: 4px;
  322. border: 1px solid #d8dce6;
  323. }
  324. /deep/.flex .ws-info-table .el-form-item .el-form-item__content {
  325. border: 0px;
  326. border-right: 1px solid #d8dce6;
  327. border-radius: 0px;
  328. }
  329. /deep/.ws-class-table-col {
  330. height: auto;
  331. padding: 0px 2px;
  332. /deep/.el-input__inner {
  333. padding: 0px 2px;
  334. }
  335. }
  336. /deep/.is-disabled {
  337. .el-input__prefix,
  338. .el-input__suffix {
  339. display: none;
  340. }
  341. .el-input__inner {
  342. background-color: #fff;
  343. border-color: #fff !important;
  344. color: #000 !important;
  345. font-size: 14px;
  346. cursor: text;
  347. padding: 0 !important;
  348. border: none;
  349. }
  350. }
  351. .xia {
  352. width: 700px;
  353. // height: 50px;
  354. border-radius: 4px;
  355. border: 1px solid #d8dce6;
  356. margin-top: 10px;
  357. border: none;
  358. }
  359. /deep/.ws-info-table .el-form-item .el-form-item__label {
  360. // background-color: #f5f7fa;
  361. font-size: 13px;
  362. font-family: PingFangSC-Regular, PingFang SC;
  363. font-weight: 400;
  364. color: #8890b1;
  365. line-height: 16px;
  366. }
  367. .position .siji {
  368. width: 14.28%;
  369. }
  370. .phone {
  371. width: 100%;
  372. }
  373. .el-form {
  374. height: 1000px;
  375. }
  376. .flex {
  377. flex-direction: column;
  378. }
  379. /deep/.position .ws-info-table .el-form-item .el-form-item__label {
  380. background-color: #f5f7fa;
  381. // text-align: center;
  382. width: 51%;
  383. }
  384. .middle {
  385. background: #f6f7fc;
  386. border-radius: 4px;
  387. border: 1px solid #d8dce6;
  388. }
  389. .line {
  390. height: 26px;
  391. margin-top: 6px;
  392. left: 2px;
  393. }
  394. /deep/.ws-info-table.el-form-item .el-form-item__label {
  395. // background-color: #eee;
  396. // padding-right: 8px;
  397. // padding-left: 8px;
  398. // width: 100px;
  399. font-size: 12px;
  400. // font-weight: bold;
  401. // color: #333;
  402. // overflow: hidden;
  403. text-overflow: ellipsis;
  404. white-space: nowrap;
  405. // line-height: 40px;
  406. text-align: center;
  407. }
  408. /deep/.cangno .ws-info-table .el-form-item .el-form-item__content {
  409. border: none;
  410. }
  411. </style>