historyDetail.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. <template>
  2. <view class="box">
  3. <view class="top">
  4. <view class="orderState">
  5. <image src="../../static/img/icon_order_def.png" mode="" style="width: 44rpx;height: 44rpx;"></image>
  6. <view class="SheetState">已结算</view>
  7. <view class="SheetState" v-if="orderData.SheetState==1">已结算</view>
  8. <view class="SheetState" v-if="orderData.SheetState==2">未结算</view>
  9. </view>
  10. </view>
  11. <!-- 店铺信息 -->
  12. <view class="shopBox">
  13. <image src="../../static/img/icon_store.png" mode="" class="shopBoximg"></image>
  14. <view class="shopCont">
  15. <view class="shopName">{{orderData.ShopName}}这是门店名称</view>
  16. <view class="Address">江苏省南京市鼓楼区铁路南街233
  17. {{orderData.ProvinceName}}{{orderData.CityName}}{{orderData.AreaName}}{{orderData.Address}}
  18. </view>
  19. </view>
  20. <view class="shopRightBox" @click="map">
  21. <image src="../../static/img/icon_ditu.png" mode="" class="shopRightImg"></image>
  22. <view class="shopRihgtTxt">地图</view>
  23. </view>
  24. <view class="shopsx"></view>
  25. <view class="shopRightBox" @click="call">
  26. <image src="../../static/img/icon_phone.png" mode="" class="shopRightImg"></image>
  27. <view class="shopRihgtTxt">电话</view>
  28. </view>
  29. </view>
  30. <!-- 订单信息 -->
  31. <view class="information">
  32. <view class="carMes">
  33. <view class="plate">{{orderData.billsheet.PlateNumber}}</view>
  34. <view class="mileage">{{orderData.billsheet.CurrentMileage}}km</view>
  35. </view>
  36. <view class="informationLine">
  37. <view class="informationTxt">姓名:</view>
  38. <view class="informationNum">{{orderData.billsheet.CustomerName}}</view>
  39. </view>
  40. <view class="informationLine">
  41. <view class="informationTxt">手机号:</view>
  42. <view class="informationNum">{{orderData.billsheet.MobilePhone}}</view>
  43. </view>
  44. <view class="informationLine">
  45. <view class="informationTxt">单号:</view>
  46. <view class="informationNum">{{orderData.billsheet}}no</view>
  47. </view>
  48. <view class="informationLine">
  49. <view class="informationTxt">接车时间:</view>
  50. <view class="informationNum">{{orderData.billsheet.time}}</view>
  51. </view>
  52. <view class="informationLine">
  53. <view class="informationTxt">服务顾问:</view>
  54. <view class="informationNum">{{orderData.billsheet}}no</view>
  55. </view>
  56. </view>
  57. <!-- 项目明细 -->
  58. <view class="detailedBox itemBox" v-if=" orderData.listItems.length!=0">
  59. <view class="detailedTitle">项目</view>
  60. <view class="detailedLineBox">
  61. <view class="detailedLine" v-for="(item,index) in orderData.listItems">
  62. <view class="detailedCont">
  63. <view class="detailedName">{{item.ItemName}}项目名称</view>
  64. <span>x1</span>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <!-- 商品明细-->
  70. <view class="detailedBox itemBox" v-if="orderData.listParts.length!=0">
  71. <view class="detailedTitle">商品</view>
  72. <view class="detailedLineBox">
  73. <view class="detailedLine" v-for="(item,index) in orderData.listParts">
  74. <view class="detailedCont">
  75. <view class="detailedName">{{item.GoodsName}}商品名称</view>
  76. <span>x{{item.SaleQty}}</span>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </template>
  83. <script>
  84. export default {
  85. data() {
  86. return {
  87. location: '',
  88. id: '',
  89. orderData: '',
  90. }
  91. },
  92. onLoad(opt) {
  93. this.location = uni.getStorageSync("locationCity");
  94. this.id = opt.id
  95. this.getData()
  96. },
  97. onShow() {
  98. if (this.id) {
  99. this.getData()
  100. }
  101. },
  102. methods: {
  103. map() {
  104. console.log("打开地图")
  105. var that = this;
  106. if (!that.orderData.Lat || !that.orderData.Lng) {
  107. uni.showToast({
  108. title: '该店铺未设置定位',
  109. icon: 'none',
  110. duration: 3000
  111. });
  112. } else {
  113. uni.openLocation({
  114. latitude: Number(that.orderData.Lat),
  115. longitude: Number(that.orderData.Lng),
  116. name: that.orderData.ShopName,
  117. address: that.orderData.Address,
  118. success: function() {
  119. console.log('success');
  120. },
  121. fail(err) {
  122. console.log(err)
  123. }
  124. });
  125. }
  126. },
  127. call() {
  128. uni.makePhoneCall({
  129. phoneNumber: this.orderData.MobilePhone
  130. });
  131. },
  132. getData() {
  133. uni.showLoading({
  134. title: '加载中'
  135. });
  136. this.$http('worldKeepCar/keepCarMy/queryMiNiAppTSheetDetail', {
  137. lat: this.location.lat,
  138. lng: this.location.lng,
  139. id: this.id,
  140. }, 'GET').then(res => {
  141. uni.hideLoading();
  142. this.orderData = res.data;
  143. })
  144. },
  145. goback() {
  146. uni.navigateBack({})
  147. },
  148. },
  149. onPullDownRefresh() {
  150. this.getData()
  151. setTimeout(function() {
  152. uni.stopPullDownRefresh();
  153. }, 1000);
  154. },
  155. }
  156. </script>
  157. <style scoped>
  158. .box {
  159. min-height: 100vh;
  160. background: #F4F5F7;
  161. }
  162. .top {
  163. height: 190rpx;
  164. background-color: #F03B3B;
  165. }
  166. .orderState {
  167. display: flex;
  168. justify-content: center;
  169. align-items: center;
  170. padding-top: 40rpx;
  171. }
  172. .SheetState {
  173. display: flex;
  174. justify-content: center;
  175. font-size: 36rpx;
  176. font-weight: 500;
  177. color: #FFFFFF;
  178. margin-left: 15rpx;
  179. }
  180. .timeEditImg {
  181. width: 25rpx;
  182. height: 25rpx;
  183. padding-left: 20rpx;
  184. }
  185. .shopBoximg {
  186. width: 40rpx;
  187. height: 40rpx;
  188. }
  189. .shopRightImg {
  190. width: 44rpx;
  191. height: 45rpx;
  192. }
  193. .shopsx {
  194. width: 1px;
  195. height: 50rpx;
  196. background: #EEEEEE;
  197. margin-top: 30rpx;
  198. margin-left: 28rpx;
  199. }
  200. .shopBox {
  201. display: flex;
  202. padding: 30rpx 20rpx;
  203. margin: 0rpx 24rpx;
  204. margin-top: -60rpx;
  205. background-color: #FFFFFF;
  206. border-radius: 10rpx;
  207. }
  208. .shopCont {
  209. width: 405rpx;
  210. padding-left: 20rpx;
  211. }
  212. .shopName {
  213. font-size: 30rpx;
  214. font-weight: bold;
  215. color: #3C3C3C;
  216. }
  217. .Address {
  218. color: #999999;
  219. font-size: 24rpx;
  220. padding-top: 10rpx;
  221. }
  222. .shopRihgtTxt {
  223. color: #999999;
  224. font-size: 24rpx;
  225. }
  226. .shopRightBox {
  227. padding-top: 30rpx;
  228. padding-left: 28rpx;
  229. }
  230. .peopleCont {
  231. font-size: 28rpx;
  232. color: #3C3C3C;
  233. padding-left: 20rpx;
  234. }
  235. .people {
  236. display: flex;
  237. padding-left: 20rpx;
  238. padding-top: 30rpx;
  239. padding-bottom: 36rpx;
  240. }
  241. .PlateNumberBox {
  242. display: flex;
  243. padding-left: 20rpx;
  244. padding-bottom: 30rpx;
  245. }
  246. .PlateNumbercx {
  247. font-size: 28rpx;
  248. color: #3C3C3C;
  249. padding-left: 20rpx;
  250. }
  251. .PlateNumber {
  252. width: 130rpx;
  253. height: 32rpx;
  254. border-radius: 4rpx;
  255. border: 1px solid #F19D01;
  256. line-height: 32rpx;
  257. text-align: center;
  258. font-size: 22rpx;
  259. color: #F19D01;
  260. margin-left: 26rpx;
  261. }
  262. .PlateNumberBoxTop {
  263. display: flex;
  264. }
  265. .CarModel {
  266. font-size: 26rpx;
  267. color: #999999;
  268. padding-left: 20rpx;
  269. padding-top: 6rpx;
  270. padding-right: 20rpx;
  271. padding-bottom: 15rpx;
  272. width: 600rpx;
  273. }
  274. .detailedBox {
  275. background: #FFFFFF;
  276. border-radius: 10px;
  277. margin: 20rpx 24rpx;
  278. padding-bottom: 20rpx;
  279. }
  280. .itemBox {
  281. margin-top: 20rpx;
  282. }
  283. .carMes {
  284. padding: 23rpx 20rpx;
  285. display: flex;
  286. align-items: center;
  287. justify-content: flex-start;
  288. border-bottom: 1rpx solid #EEEEEE;
  289. }
  290. .plate {
  291. font-size: 30rpx;
  292. color: #3C3C3C;
  293. font-weight: bold;
  294. margin-right: 20rpx;
  295. }
  296. .mileage {
  297. font-size: 24rpx;
  298. color: #F19D01;
  299. padding: 0rpx 10rpx;
  300. border: 1rpx solid #F19D01;
  301. border-radius: 4rpx;
  302. height: 36rpx;
  303. }
  304. .detailedTitle {
  305. padding: 23rpx 20rpx;
  306. display: flex;
  307. text-align: center;
  308. align-content: flex-start;
  309. border-bottom: 1rpx solid #EEEEEE;
  310. font-size: 30rpx;
  311. font-weight: bold;
  312. color: #3C3C3C;
  313. }
  314. .detailedLine {
  315. display: flex;
  316. padding-left: 20rpx;
  317. padding-top: 40rpx;
  318. }
  319. .detailedImg {
  320. width: 120rpx;
  321. height: 120rpx;
  322. border-radius: 10rpx;
  323. }
  324. .detailedCont {
  325. padding-left: 20rpx;
  326. display: flex;
  327. justify-content: space-between;
  328. }
  329. .detailedName {
  330. font-size: 26rpx;
  331. color: #3C3C3C;
  332. }
  333. .goodscost {
  334. width: 702rpx;
  335. background: #FFFFFF;
  336. border-radius: 10px;
  337. margin-left: 24rpx;
  338. margin-top: 20rpx;
  339. padding: 15rpx 0;
  340. }
  341. .goodscostLine {
  342. display: flex;
  343. justify-content: space-between;
  344. font-size: 28rpx;
  345. padding: 20rpx 20rpx;
  346. color: #666666;
  347. }
  348. .goodsCostNum {
  349. color: #3C3C3C;
  350. }
  351. .information {
  352. width: 702rpx;
  353. background: #FFFFFF;
  354. border-radius: 10px;
  355. margin-left: 24rpx;
  356. margin-top: 20rpx;
  357. padding: 0rpx 0 15rpx 0;
  358. }
  359. .informationLine {
  360. display: flex;
  361. font-size: 26rpx;
  362. padding: 15rpx 20rpx;
  363. }
  364. .informationTxt {
  365. width: 190rpx;
  366. color: #999999;
  367. }
  368. .informationNum {
  369. color: #333333;
  370. }
  371. .copyBtn {
  372. width: 86rpx;
  373. height: 40rpx;
  374. background: #F4F5F7;
  375. border-radius: 20rpx;
  376. font-size: 24rpx;
  377. color: #333333;
  378. text-align: center;
  379. line-height: 40rpx;
  380. margin-left: 20rpx;
  381. }
  382. .orderBottom {
  383. width: 750rpx;
  384. height: 98rpx;
  385. background: #FFFFFF;
  386. position: fixed;
  387. left: 0;
  388. bottom: 0;
  389. display: flex;
  390. justify-content: flex-end;
  391. }
  392. .cancelBtn {
  393. width: 150rpx;
  394. height: 56rpx;
  395. border-radius: 36rpx;
  396. border: 2rpx solid #DDDDDD;
  397. text-align: center;
  398. line-height: 56rpx;
  399. font-size: 28rpx;
  400. color: #3C3C3C;
  401. margin-top: 21rpx;
  402. margin-right: 16rpx;
  403. margin-left: 20rpx;
  404. }
  405. .payBtn {
  406. width: 150rpx;
  407. height: 56rpx;
  408. border-radius: 36rpx;
  409. border: 2rpx solid #FF4F00;
  410. text-align: center;
  411. line-height: 56rpx;
  412. font-size: 28rpx;
  413. color: #FF4F00;
  414. margin-top: 21rpx;
  415. margin-right: 16rpx;
  416. margin-left: 20rpx;
  417. }
  418. .timeBox2 {
  419. width: 100vw;
  420. height: 100vh;
  421. background: rgba(0, 0, 0, 0.5);
  422. position: fixed;
  423. top: 0;
  424. left: 0;
  425. }
  426. .timeLeftActive {
  427. background: #FFFFFF;
  428. }
  429. .timeMain {
  430. width: 100vw;
  431. height: 70vh;
  432. margin-top: 30vh;
  433. background: #FFFFFF;
  434. border-radius: 24rpx 24rpx 0px 0px;
  435. }
  436. .timesfNo {
  437. background: #F5F5F5;
  438. }
  439. .timesfActive {
  440. background: #FF4F00;
  441. }
  442. .timesfActive .timeSfNum {
  443. color: #FFFFFF;
  444. }
  445. .timesfActive .timeyy {
  446. color: #FFFFFF;
  447. }
  448. .topBox {
  449. padding: 20rpx 24rpx;
  450. }
  451. .timeTop {
  452. display: flex;
  453. line-height: 90rpx;
  454. padding-left: 24rpx;
  455. padding-right: 24rpx;
  456. justify-content: space-between;
  457. }
  458. .timeTopTitle {
  459. font-size: 30rpx;
  460. font-family: PingFangSC-Medium, PingFang SC;
  461. font-weight: 600;
  462. color: #3C3C3C;
  463. }
  464. .close {
  465. color: #999999;
  466. font-size: 30rpx;
  467. padding-left: 30rpx;
  468. }
  469. .timeCont {
  470. height: calc(70vh - 210rpx);
  471. }
  472. .timeSv {
  473. height: calc(70vh - 210rpx);
  474. }
  475. .timeLeft2 {
  476. width: 162rpx;
  477. background: #F4F5F7;
  478. border-top: 1px soid #F4F5F7;
  479. border-right: 1px soid #F4F5F7;
  480. }
  481. .timeRight2 {
  482. width: 588rpx;
  483. }
  484. .timesf {
  485. width: 165rpx;
  486. height: 98rpx;
  487. border-radius: 7rpx;
  488. border: 2rpx solid #EEEEEE;
  489. text-align: center;
  490. margin-left: 20rpx;
  491. margin-bottom: 24rpx;
  492. }
  493. .timeBottom {
  494. width: 750rpx;
  495. height: 120rpx;
  496. background: #FFFFFF;
  497. box-shadow: 0px -2px 20rpx 0px rgba(153, 153, 153, 0.2);
  498. display: flex;
  499. align-items: center;
  500. }
  501. .timerightBox {
  502. display: flex;
  503. flex-wrap: wrap;
  504. }
  505. .timeCont {
  506. display: flex;
  507. }
  508. .timeSfNum {
  509. color: #666666;
  510. font-size: 28rpx;
  511. padding-top: 15rpx;
  512. }
  513. .timeyy {
  514. font-size: 24rpx;
  515. color: #999999;
  516. }
  517. .timecomplete {
  518. width: 690rpx;
  519. height: 74rpx;
  520. background: linear-gradient(124deg, #FF8700 0%, #FF4F00 100%);
  521. border-radius: 37rpx;
  522. line-height: 74rpx;
  523. text-align: center;
  524. font-size: 30rpx;
  525. color: #FFFFFF;
  526. margin-left: 30rpx;
  527. }
  528. .timeleftLine {
  529. font-size: 30rpx;
  530. color: #999999;
  531. text-align: center;
  532. padding: 28rpx 10rpx;
  533. border-bottom: 1px solid #EEEEEE;
  534. }
  535. .yuyueBox {
  536. background: #FFFFFF;
  537. border-radius: 10rpx;
  538. margin-left: 24rpx;
  539. margin-right: 24rpx;
  540. }
  541. .yuyueTime {
  542. display: flex;
  543. padding-left: 20rpx;
  544. padding-top: 30rpx;
  545. padding-bottom: 36rpx;
  546. align-items: center;
  547. }
  548. .yuyueState {
  549. display: flex;
  550. padding-left: 20rpx;
  551. padding-top: 30rpx;
  552. padding-bottom: 36rpx;
  553. }
  554. .maBox {
  555. display: flex;
  556. justify-content: space-between;
  557. padding: 24rpx 20rpx;
  558. }
  559. .querenMa {
  560. margin: 20rpx 0;
  561. padding-bottom: 30rpx;
  562. }
  563. .maBoximg {
  564. width: 308rpx;
  565. height: 308rpx;
  566. margin: 30rpx 197rpx;
  567. }
  568. .rightShou {
  569. display: flex;
  570. justify-content: flex-start;
  571. align-items: center;
  572. }
  573. </style>