cargoTerminalDetail.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <template>
  2. <view class="content">
  3. <view class="content1">
  4. <view class="title">
  5. 发运信息
  6. </view>
  7. <view class="row1 row">
  8. <view class="left">
  9. 发货地
  10. </view>
  11. <view class="right">
  12. {{dataObj.sendPrivate}} {{dataObj.sendCity}} {{dataObj.sendArea}}
  13. </view>
  14. </view>
  15. <view class="row2 row right">
  16. <view class="left">
  17. 地址
  18. </view>
  19. <view class="right">
  20. {{dataObj.sendDetailedAddress}}
  21. </view>
  22. </view>
  23. <view class="row3 row">
  24. <view class="left">
  25. 卸货地
  26. </view>
  27. <view class="right">
  28. {{dataObj.unloadPrivate}} {{dataObj.unloadCity}} {{dataObj.unloadArea}}
  29. </view>
  30. </view>
  31. <view class="row4 row right">
  32. {{dataObj.unloadDetailedAddress}}
  33. </view>
  34. <view class="row5 row">
  35. <view class="left">
  36. 装车时间
  37. </view>
  38. <view class="right">
  39. {{date}} {{time}}
  40. </view>
  41. </view>
  42. <view class="row6 row">
  43. <view class="left">
  44. 运输距离
  45. </view>
  46. <view class="right">
  47. {{dataObj.cargoDistance}}
  48. </view>
  49. </view>
  50. <view class="row7 row">
  51. <view class="left">
  52. 运价
  53. </view>
  54. <view class="right">
  55. <text>¥{{dataObj.freightPrice}}</text>
  56. <text v-if="dataObj.billingMethod==0">元/吨</text>
  57. <text v-if="dataObj.billingMethod==1">元/车</text>
  58. <text v-if="dataObj.billingMethod==2">元/方</text>
  59. </view>
  60. </view>
  61. <view class="row8 row">
  62. <view class="top">
  63. 备注
  64. </view>
  65. <view class="bottom">
  66. {{dataObj.remark}}
  67. </view>
  68. </view>
  69. </view>
  70. <view class="content2">
  71. <view class="title">
  72. 车辆货物信息
  73. </view>
  74. <view class="row">
  75. <view class="left">
  76. 货名
  77. </view>
  78. <view class="right">
  79. {{dataObj.goodsName}}
  80. </view>
  81. </view>
  82. <view class="row">
  83. <view class="left">
  84. 货物重量
  85. </view>
  86. <view class="right">
  87. {{dataObj.weight}} 吨
  88. </view>
  89. </view>
  90. <view class="row">
  91. <view class="left">
  92. 货物体积
  93. </view>
  94. <view class="right">
  95. {{dataObj.volume}} 方
  96. </view>
  97. </view>
  98. <view class="row">
  99. <view class="left">
  100. 包装方式
  101. </view>
  102. <view class="right">
  103. {{dataObj.packageType}}
  104. </view>
  105. </view>
  106. <view class="row">
  107. <view class="left">
  108. 用车数量
  109. </view>
  110. <view class="right">
  111. {{dataObj.expectedNum}}辆
  112. </view>
  113. </view>
  114. <view class="row">
  115. <view class="left">
  116. 车型
  117. </view>
  118. <view class="right">
  119. {{dataObj.carModel}}
  120. </view>
  121. </view>
  122. <view class="row">
  123. <view class="left">
  124. 车长
  125. </view>
  126. <view class="right">
  127. {{dataObj.carLength}}
  128. </view>
  129. </view>
  130. </view>
  131. <view class="content3">
  132. <view class="title">
  133. 货站信息
  134. </view>
  135. <view class="row">
  136. <view class="left">
  137. 联系人
  138. </view>
  139. <view class="right">
  140. {{dataObj.contacts}}
  141. </view>
  142. </view>
  143. <view class="row">
  144. <view class="left">
  145. 联系电话
  146. </view>
  147. <view class="right">
  148. {{dataObj.contactsPhone}}
  149. </view>
  150. </view>
  151. <view class="row">
  152. <view class="left">
  153. 货站名称
  154. </view>
  155. <view class="right">
  156. {{dataObj.freightStationName}}
  157. </view>
  158. </view>
  159. <view class="row">
  160. <view class="left">
  161. 信息费
  162. </view>
  163. <view class="right">
  164. {{dataObj.stationFee}}
  165. </view>
  166. </view>
  167. </view>
  168. </view>
  169. </template>
  170. <script>
  171. export default {
  172. data() {
  173. return {
  174. dataObj: {},
  175. date:"",
  176. time:''
  177. };
  178. },
  179. onLoad(options) {
  180. this.id = options.id
  181. this.init()
  182. },
  183. methods: {
  184. init() {
  185. this.$request.baseRequest('get', '/hyReleaseGoodsInfo/seeTask', {
  186. id: this.id
  187. }).then(res => {
  188. uni.hideLoading()
  189. this.dataObj = res.data
  190. this.date = this.dataObj.loadingDate.split(",")[0]+'~'+this.dataObj.loadingDate.split(",")[this.dataObj.loadingDate.split(",").length-1]
  191. this.time = this.dataObj.periodOfTime.split(",")[0]+'~'+this.dataObj.periodOfTime.split(",")[1]
  192. })
  193. .catch(res => {});
  194. },
  195. }
  196. }
  197. </script>
  198. <style lang="scss" scoped>
  199. .content {
  200. padding: 20rpx;
  201. }
  202. .content1,
  203. .content2,
  204. .content3 {
  205. background: #fff;
  206. border-radius: 20rpx;
  207. padding: 20rpx;
  208. box-sizing: border-box;
  209. margin-bottom: 20rpx;
  210. }
  211. .row {
  212. display: flex;
  213. justify-content: space-between;
  214. margin-bottom: 10rpx;
  215. .left {
  216. width: 200rpx;
  217. text-align: left;
  218. // background: red;
  219. color: rgba(153, 153, 153, 1);
  220. }
  221. }
  222. .right {
  223. display: flex;
  224. justify-content: flex-end;
  225. text-align: right;
  226. }
  227. .row8 {
  228. display: flex;
  229. flex-direction: column;
  230. }
  231. .title {
  232. font-weight: 700;
  233. font-size: 32rpx;
  234. color: rgb(51, 51, 51);
  235. margin: 20rpx 0;
  236. }
  237. .row2,
  238. .row4,
  239. .row8 .top {
  240. // color: rgb(153, 153, 153)
  241. }
  242. .row7 .right {
  243. color: rgb(255, 134, 0);
  244. }
  245. </style>