tranManagementShippingLook.vue 12 KB

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