index.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <template>
  2. <view class="container">
  3. <uni-navbar title="运输申请"></uni-navbar>
  4. <view class="box commonMt" style="overflow: hidden;">
  5. <view class="topMap">
  6. <mapPreview :startPoint='form.startPoint' :endPoint='form.endPoint' v-show="isMap"
  7. :mtRoutePointList='form.mtRoutePointList'></mapPreview>
  8. </view>
  9. <view class="box3">
  10. <view class="addLineSuccess-big-box commonBj commonMt">
  11. <view class="addLineSuccess-big-box-top">
  12. <image style="width: 45rpx;height: 45rpx; margin-left: 30rpx;"
  13. src="../../static/images/transport/dingwei.png" mode="widthFix">
  14. </image>
  15. <text class="listTitle">路线信息</text>
  16. </view>
  17. <view class="addLineSuccess-big-box-bottom" style="padding-bottom: 40rpx;">
  18. <view class="addLineSuccess-big-box-bottom-item">
  19. <view class="flexAlignCenter">
  20. <view class="greenCircle">
  21. </view>
  22. <text class="itemText">运输名称:</text>
  23. </view>
  24. <view class="flexAlignCenter">
  25. <text class="infoText">{{form.transportName}}</text>
  26. </view>
  27. </view>
  28. <!-- <view class="map">
  29. <mapImg :startPoint='form.startPoint' :endPoint='form.endPoint'
  30. :mtRoutePointList='form.mtRoutePointList'></mapImg>
  31. </view> -->
  32. <view class="addLineSuccess-big-box-bottom-item">
  33. <view class="flexAlignCenter">
  34. <view class="greenCircle">
  35. </view>
  36. <text class="itemText">开始地址:</text>
  37. </view>
  38. <view class="flexAlignCenter">
  39. <text class="infoText">{{form.startName}}</text>
  40. </view>
  41. </view>
  42. <!-- <view class="border-style"></view> -->
  43. <view class="addLineSuccess-big-box-bottom-item">
  44. <view class="flexAlignCenter">
  45. <view class="greenCircle">
  46. </view>
  47. <text class="itemText">结束地址:</text>
  48. </view>
  49. <view class="flexAlignCenter">
  50. <text class="infoText">{{form.endName}}</text>
  51. </view>
  52. </view>
  53. <!-- <view class="border-style"></view> -->
  54. <view class="addLineSuccess-big-box-bottom-item">
  55. <view class="flexAlignCenter">
  56. <view class="greenCircle">
  57. </view>
  58. <text class="itemText">运输期限:</text>
  59. </view>
  60. <view class="flexAlignCenter">
  61. <text class="infoText">{{form.startDate}} 至 {{form.endDate}}</text>
  62. </view>
  63. </view>
  64. <!-- <view class="border-style"></view> -->
  65. <view class="addLineSuccess-big-box-bottom-item">
  66. <view class="flexAlignCenter">
  67. <view class="greenCircle">
  68. </view>
  69. <text class="itemText">开始时间:</text>
  70. </view>
  71. <view class="flexAlignCenter">
  72. <text class="infoText">{{ changeTime(form.startTime) }}</text>
  73. </view>
  74. </view>
  75. <!-- <view class="border-style"></view> -->
  76. <view class="addLineSuccess-big-box-bottom-item">
  77. <view class="flexAlignCenter">
  78. <view class="greenCircle">
  79. </view>
  80. <text class="itemText">结束时间:</text>
  81. </view>
  82. <view class="flexAlignCenter">
  83. <text class="infoText">{{ changeTime(form.endTime) }}</text>
  84. </view>
  85. </view>
  86. <!-- <view class="border-style"></view> -->
  87. <view class="addLineSuccess-big-box-bottom-item">
  88. <view class="flexAlignCenter">
  89. <view class="greenCircle">
  90. </view>
  91. <text class="itemText">计划车辆:</text>
  92. </view>
  93. <view class="flexAlignCenter">
  94. <text class="infoText">{{form.expectCar}}</text>
  95. </view>
  96. </view>
  97. <!-- <view class="border-style"></view> -->
  98. <view class="addLineSuccess-big-box-bottom-item">
  99. <view class="flexAlignCenter">
  100. <view class="greenCircle">
  101. </view>
  102. <text class="itemText">上报企业:</text>
  103. </view>
  104. <view class="flexAlignCenter">
  105. <text class="infoText">{{form.companyName}}</text>
  106. </view>
  107. </view>
  108. <!-- <view class="border-style"></view> -->
  109. </view>
  110. </view>
  111. <!-- 审批状态 -->
  112. <view class="addLineSuccess-big-box mt31 mb43 commonGreenBj">
  113. <view class="addLineSuccess-big-box-top bg-color-green">
  114. <image style="width: 45rpx; height: 45rpx;margin-left: 30rpx;"
  115. src="../../static/images/car/yunshu.png" mode="widthFix">
  116. </image>
  117. <text class="listTitle">审批状态</text>
  118. </view>
  119. <view class="addLineSuccess-big-box-bottom">
  120. <view class="addLineSuccess-big-box-bottom-item">
  121. <view class="flexAlignCenter">
  122. <view class="greenCircle">
  123. </view>
  124. <text class="itemText">审批状态:</text>
  125. </view>
  126. <view class="flexAlignCenter ">
  127. <u-icon color="#017D3E" name="checkmark-circle-fill" style="margin-right: 12rpx;">
  128. </u-icon>
  129. <text class="greenText">通过</text>
  130. </view>
  131. </view>
  132. <!-- <view class="border-style"></view> -->
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. </template>
  139. <script>
  140. import {
  141. transportDetail
  142. } from "../../api/company/transport.js"
  143. export default {
  144. data() {
  145. return {
  146. form: {
  147. startTime: "00:00:00",
  148. endTime: "00:00:00",
  149. // 结束坐标和开始坐标
  150. endPoint: '',
  151. startPoint: '',
  152. mtRoutePointList: [],
  153. },
  154. pathData: '',
  155. isMap: true,
  156. }
  157. },
  158. methods: {
  159. // 获取运输申请详情
  160. async getDetail(id) {
  161. this.isMap = false;
  162. const res = await transportDetail(id)
  163. console.log('运输详情', res);
  164. this.form = res.data
  165. this.form.transportName = this.form.transportName.replace(/-/g, '')
  166. this.pathData = res.data.id
  167. this.isMap = true;
  168. },
  169. changeTime(time) {
  170. return time.slice(0, 5)
  171. },
  172. },
  173. onLoad(option) {
  174. if (option.id) {
  175. this.getDetail(option.id)
  176. }
  177. }
  178. }
  179. </script>
  180. <style lang="scss" scoped>
  181. .addLineSuccess-big-box {
  182. .addLineSuccess-big-box-top {
  183. height: 69rpx;
  184. background: #7FB5FF;
  185. border-radius: 26rpx 26rpx 0rpx 0rpx;
  186. display: flex;
  187. align-items: center;
  188. }
  189. .addLineSuccess-big-box-bottom {
  190. padding: 0rpx 39rpx;
  191. border-radius: 0 0 28rpx 28rpx;
  192. .addLineSuccess-big-box-bottom-item {
  193. display: flex;
  194. margin: 36rpx auto;
  195. }
  196. .map {
  197. // width: 599rpx;
  198. height: 339rpx;
  199. background: #FFFFFF;
  200. border: 2rpx solid #495B93;
  201. border-radius: 15rpx;
  202. margin: 25rpx auto 40rpx;
  203. }
  204. // .border-style {
  205. // border-top: 1rpx dashed #F98803;
  206. // margin: 0 auto;
  207. // }
  208. }
  209. }
  210. .custom-style {
  211. box-shadow: 0px 2rpx 13rpx 0rpx rgba(27, 43, 95, 0.25);
  212. border-radius: 28rpx;
  213. font-size: 28rpx;
  214. font-weight: bold;
  215. color: #FFFFFF;
  216. margin: 27rpx 0 36rpx;
  217. height: 85rpx;
  218. }
  219. .bg-color-green {
  220. background: #36C372 !important;
  221. }
  222. .mb {
  223. margin-bottom: 11rpx !important;
  224. }
  225. .mt31 {
  226. margin-top: 31rpx;
  227. }
  228. .mb43 {
  229. margin-bottom: 43rpx;
  230. }
  231. </style>