You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

order-details-cancel-numberplate.vue 8.6KB

2 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. <!-- 解除车牌占用-订单详情 -->
  2. <template>
  3. <view>
  4. <image :src="`${$imgUrl}applyCard/bg-nav.png`" style='height: 300rpx;width: 100%;'></image>
  5. <view class="props-txt-wrap">
  6. <view class="pro-txt" :class="{'pro-txt-primary':state.step >= 1}">发起业务</view>
  7. <view class="pro-txt pro-center" :class="{'pro-txt-primary':state.step >= 2}">审核中</view>
  8. <view class="pro-txt" :class="{'pro-txt-primary':state.step >= 3}">完成</view>
  9. </view>
  10. <view class="pros-wrap">
  11. <view :class="state.step >= 1 ? 'item-circle' : 'item-circle-no'">1</view>
  12. <view :class="state.step >= 2 ? 'item-line-solid' : 'item-line'"></view>
  13. <view :class="state.step >= 2 ? 'item-circle' : 'item-circle-no'">2</view>
  14. <view :class="state.step >= 3 ? 'item-line-solid' : 'item-line'"></view>
  15. <view :class="state.step >= 3 ? 'item-circle' : 'item-circle-no'">3</view>
  16. </view>
  17. </view>
  18. <view class="content">
  19. <view class="title">基础信息</view>
  20. <view class="content-box" v-for="(item,index) in state.orderBaseInfo" :key="index">
  21. <order-info-item :label="item.label" :value="item.value"></order-info-item>
  22. </view>
  23. <view class="title">卡/OBU设备信息</view>
  24. <view class="card-box as-layout-horizontal as-gravity-center-start">
  25. <image :src="`${$imgUrl}card2.png`" mode="" class="left"></image>
  26. <view class="right">
  27. <view class="number">2023022700012</view>
  28. <view class="info as-layout-horizontal">
  29. <view class="card-type">储蓄卡</view>
  30. <view class="card-status">正常</view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="card-box as-layout-horizontal as-gravity-center-start">
  35. <image :src="`${$imgUrl}card1.png`" mode="" class="left"></image>
  36. <view class="right">
  37. <view class="number">2023022700012</view>
  38. <view class="info as-layout-horizontal">
  39. <view class="card-status">正常</view>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="title">是否本人车辆:是/否</view>
  44. <view class="imgs">
  45. <image v-for="(img,index) in state.imgList" :key="index" :src="img" @click="checkBigImg(index,state.imgList)" mode="aspectFill"></image>
  46. </view>
  47. <view class="title">其他信息</view>
  48. <view class="content-box" v-for="(item,index) in state.otherInfo" :key="index">
  49. <order-info-item :label="item.label" :value="item.value"></order-info-item>
  50. </view>
  51. <view style="height: 30rpx;"></view>
  52. </view>
  53. </template>
  54. <script setup lang="ts">
  55. import {onLoad,onUnload} from "@dcloudio/uni-app";
  56. import {reactive} from "vue";
  57. import orderInfoItem from "./components/order-info-item";
  58. import {checkBigImg, msg} from "@/utils/utils";
  59. import {request} from "@/utils/network/request";
  60. import {stringToJson} from "@/utils/network/encryption";
  61. import {orderDetail} from "@/utils/network/api";
  62. const state = reactive({
  63. //当前步骤
  64. step: 2,
  65. //订单信息
  66. orderInfo:{} as any,
  67. //基本信息
  68. orderBaseInfo: [{
  69. label: '审核进度:',
  70. value: '',
  71. field:'orderStep'
  72. },
  73. {
  74. label: '审核时间:',
  75. value: '',
  76. field:'insertTime'
  77. },
  78. {
  79. label: '审核不通过原因:',
  80. value: '',
  81. field:'cancelReason'
  82. },
  83. {
  84. label: '用户名称:',
  85. value: '',
  86. field:'customerName'
  87. },
  88. {
  89. label: '用户证件类型:',
  90. value: '',
  91. field:'customerIdtype'
  92. },
  93. {
  94. label: '用户证件号:',
  95. value: '',
  96. field:'customerIdnum'
  97. },
  98. {
  99. label: '收费类型:',
  100. value: '',
  101. field:'vehicleClass'
  102. },
  103. {
  104. label: '订单车牌号:',
  105. value: '',
  106. field:'vehiclePlate'
  107. },
  108. ],
  109. //其他信息
  110. otherInfo: [{
  111. label: '姓名:',
  112. value: '',
  113. field:''
  114. },{
  115. label: '性别:',
  116. value: '',
  117. field:''
  118. },{
  119. label: '身份证号:',
  120. value: '',
  121. field:''
  122. },{
  123. label: '地址:',
  124. value: '',
  125. field:''
  126. },{
  127. label: '证件有效期:',
  128. value: '',
  129. field:''
  130. },
  131. {
  132. label: '所有人:',
  133. value: '',
  134. field:'agentName'
  135. },
  136. {
  137. label: '车辆类型:',
  138. value: '',
  139. field:'vehicleType'
  140. },
  141. {
  142. label: '使用性质:',
  143. value: '',
  144. field:'type'
  145. },
  146. {
  147. label: '车牌号:',
  148. value: '',
  149. field:'vehiclePlate'
  150. },
  151. {
  152. label: '车辆识别代号:',
  153. value: '',
  154. field:'vehicleVin'
  155. },
  156. {
  157. label: '发动机号码:',
  158. value: '',
  159. field:'vehicleEngineNum'
  160. },
  161. {
  162. label: '注册日期:',
  163. value: '',
  164. field:'agreementEnableTime'
  165. },
  166. {
  167. label: '发证日期:',
  168. value: '',
  169. field:'agreementEnableTime'
  170. },
  171. {
  172. label: '核定载人数:',
  173. value: '',
  174. field:'vehicleApprovedCount'
  175. },
  176. {
  177. label: '整备质量:',
  178. value: '',
  179. field:'vehicleMaintenaceMass'
  180. },
  181. {
  182. label: '外廓尺寸:',
  183. value: '',
  184. field:'vehicleDimensions'
  185. },
  186. {
  187. label: '总质量:',
  188. value: '',
  189. field:'vehicleTotalMass'
  190. },
  191. ],
  192. //图片信息
  193. imgList:[
  194. "https://p6.itc.cn/q_70/images03/20220911/e5f32181a5dc4ac4a3834123a559b4e5.jpeg",
  195. "https://image2.sina.com.cn/dy/o/2005-02-01/1107213262_.haWGD.jpg",
  196. "https://p7.itc.cn/q_70/images03/20220313/2dd50e60a3f046d9b46d2c21662cecc3.jpeg",
  197. "https://img2.baidu.com/it/u=599111116,2784860352&fm=253&fmt=auto&app=120&f=JPEG?w=1024&h=381"
  198. ]
  199. });
  200. //获取订单详情
  201. const getOrderDetails = (id) => {
  202. if(!id) {
  203. msg('无效的订单id');
  204. return;
  205. }
  206. const options = {
  207. type: 2,
  208. data: {"id": id},
  209. method: 'POST',
  210. showLoading: true,
  211. }
  212. request(orderDetail, options).then((res) => {
  213. state.orderInfo = stringToJson(res.bizContent);
  214. setOrderData();
  215. })
  216. }
  217. //设置订单数据
  218. const setOrderData = () =>{
  219. state.orderBaseInfo.map((item) => {
  220. item.value = state.orderInfo[item.field];
  221. })
  222. state.otherInfo.map((item)=>{
  223. item.value = (state.orderInfo.orderInfoExt as {})[item.field];
  224. })
  225. }
  226. onLoad((options)=>{
  227. getOrderDetails(options.id);
  228. })
  229. onUnload(()=>{
  230. })
  231. </script>
  232. <style lang="scss" scoped>
  233. .props-txt-wrap {
  234. position: absolute;
  235. top: -50rpx;
  236. left: 30rpx;
  237. right: 30rpx;
  238. height: 200rpx;
  239. display: flex;
  240. justify-content: space-between;
  241. align-items: center;
  242. .pro-txt {
  243. font-size: 28rpx;
  244. color: #333333;
  245. }
  246. .pro-txt-primary {
  247. color: #ffffff;
  248. }
  249. .pro-center {
  250. margin-left: -50rpx;
  251. }
  252. }
  253. .pros-wrap {
  254. position: absolute;
  255. top: 20rpx;
  256. left: 30rpx;
  257. right: 30rpx;
  258. height: 180rpx;
  259. display: flex;
  260. justify-content: space-between;
  261. align-items: center;
  262. .item-circle-no {
  263. width: 52rpx;
  264. height: 52rpx;
  265. background: rgba(255, 255, 255, 0.5);
  266. border-radius: 50%;
  267. display: flex;
  268. justify-content: center;
  269. align-items: center;
  270. color: #25D8C9;
  271. font-size: 30rpx;
  272. font-weight: 700;
  273. }
  274. .item-circle {
  275. width: 52rpx;
  276. height: 52rpx;
  277. background: #FFFFFF;
  278. border-radius: 50%;
  279. display: flex;
  280. justify-content: center;
  281. align-items: center;
  282. color: #25D8C9;
  283. font-size: 30rpx;
  284. font-weight: 700;
  285. }
  286. .item-line-solid {
  287. width: calc(calc(100% - 270rpx) / 2);
  288. height: 2rpx;
  289. background-color: #FFFFFF;
  290. margin: 0 12rpx;
  291. }
  292. .item-line {
  293. border: 1px dashed rgba(255, 255, 255, 0.5);
  294. width: calc(calc(100% - 270rpx) / 2);
  295. margin: 0 12rpx;
  296. }
  297. }
  298. .content {
  299. padding: -40rpx 30rpx 0rpx;
  300. margin-top: -130rpx;
  301. background: #ffffff;
  302. border-radius: 30rpx 30rpx 0rpx 30rpx;
  303. position: relative;
  304. min-height: 100rpx;
  305. .title{
  306. font-size: 30rpx;
  307. color: #333333;
  308. font-weight: 600;
  309. padding: 30rpx 30rpx 0rpx;
  310. }
  311. .content-box{
  312. padding: 28rpx 30rpx 0rpx;
  313. }
  314. .imgs{
  315. display: flex;
  316. flex-direction: row;
  317. flex-wrap: wrap;
  318. padding: 0rpx 30rpx 30rpx;
  319. align-items: center;
  320. justify-content: space-between;
  321. image{
  322. width: calc(calc(100% - 30rpx) / 2);
  323. height: 200rpx;
  324. margin-top: 30rpx;
  325. }
  326. }
  327. .card-box{
  328. background: #FFFFFF;
  329. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223,223,223,0.8);
  330. border-radius: 20rpx;
  331. margin: 30rpx 30rpx 0rpx;
  332. padding: 30rpx;
  333. .left{
  334. width: 100rpx;
  335. height: 90rpx;
  336. }
  337. .right{
  338. margin-left: 30rpx;
  339. .number{
  340. font-size: 32rpx;
  341. font-family: Noto Sans S Chinese;
  342. font-weight: 400;
  343. color: #333333;
  344. }
  345. .info{
  346. margin-top: 20rpx;
  347. .card-type{
  348. margin-right: 20rpx;
  349. font-size: 26rpx;
  350. font-weight: 400;
  351. color: #666666;
  352. }
  353. .card-status{
  354. height: 40rpx;
  355. line-height: 40rpx;
  356. background: #D3F2EF;
  357. border-radius: 6rpx;
  358. font-size: 20rpx;
  359. font-family: Noto Sans S Chinese;
  360. font-weight: 400;
  361. color: #0A8F8A;
  362. text-align: center;
  363. padding: 0rpx 30rpx
  364. }
  365. }
  366. }
  367. }
  368. }
  369. </style>