depositDetail.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <template>
  2. <view class="box">
  3. <homenav :iStatusBarHeight="iStatusBarHeight" :title="'寄存详情'" :cj="4"></homenav>
  4. <view class="top" :style="{background:'#'+themeColor}">
  5. <view class="orderState">
  6. <image src="../../static/img/icon_order_def.png" mode="" style="width: 44rpx;height: 44rpx;"></image>
  7. <view class="SheetState" v-if="data.sheetState==-1">待寄存</view>
  8. <view class="SheetState" v-if="data.sheetState==0">寄存中</view>
  9. <view class="SheetState" v-if="data.sheetState==1">已领取</view>
  10. <view class="SheetState" v-if="data.sheetState==2">已作废</view>
  11. </view>
  12. </view>
  13. <!-- 店铺信息 -->
  14. <view class="shopBox" ><!-- :class="{shopBoxpt:orderData.data.sheetState == 5}" -->
  15. <image src="../../static/timg/icon_che.png" mode="" class="shopBoximg"></image>
  16. <view class="shopCont">
  17. <view class="shopName">
  18. <span style="font-weight: 500;padding-left: 20rpx;">{{data.plateNumber}}</span>
  19. <span style="color: #3C3C3C;font-size: 24rpx;padding-left: 20rpx;">{{data.customerName}}</span>
  20. </view>
  21. <view class="Address">
  22. {{data.carModel}}
  23. </view>
  24. </view>
  25. </view>
  26. <!-- 基本信息 -->
  27. <view class="information">
  28. <view class="detailedTitle">基本信息</view>
  29. <view class="informationLine">
  30. <view class="informationTxt">寄存时间:</view>
  31. <view class="informationNum">{{data.billDate}}</view>
  32. </view>
  33. <view class="informationLine">
  34. <view class="informationTxt">寄存类型:</view>
  35. <view class="informationNum" >轮胎</view>
  36. </view>
  37. <view class="informationLine">
  38. <view class="informationTxt">数量:</view>
  39. <view class="informationNum">{{data.goodsQty}}</view>
  40. </view>
  41. </view>
  42. <view class="information" v-for="(item,index) in data.detailList">
  43. <view class="detailedTitle" style="display: flex;justify-content: space-between;">
  44. <view>
  45. <span v-if="item.locationType==1">左前</span>
  46. <span v-if="item.locationType==2">右前</span>
  47. <span v-if="item.locationType==3">左后</span>
  48. <span v-if="item.locationType==4">右后</span>
  49. <span v-if="item.locationType==5">备胎</span>
  50. <span >轮胎</span>
  51. </view>
  52. <view class="seeImg" @click="seeImg(item.imgList)" v-if="item.imgList" style="font-size: 24rpx;font-weight: 400;color: #666;">查看图片</view>
  53. </view>
  54. <view class="informationLine">
  55. <view class="informationTxt">品牌:</view>
  56. <view class="informationNum">{{item.brand}}</view>
  57. </view>
  58. <view class="informationLine">
  59. <view class="informationTxt">尺寸:</view>
  60. <view class="informationNum" >{{item.size}}</view>
  61. </view>
  62. <view class="informationLine">
  63. <view class="informationTxt">生产时间:</view>
  64. <view class="informationNum">{{item.productDate}}</view>
  65. </view>
  66. <view class="informationLine">
  67. <view class="informationTxt">外伤检测:</view>
  68. <view class="informationNum">{{item.tireState}}</view>
  69. </view>
  70. </view>
  71. <view style="height: 110rpx;background-color: #F4F5F7;padding-bottom: constant(safe-area-inset-bottom);
  72. padding-bottom: env(safe-area-inset-bottom);"></view>
  73. <view class="bottom">
  74. <view class="defer" :style="{border:'1rpx solid #'+themeColor,color:'#'+themeColor}" @click="seeBy" >查看保养单</view>
  75. </view>
  76. </view>
  77. </template>
  78. <script>
  79. import nodata from '@/components/nodata/nodata.vue'
  80. import homenav from "@/components/homenav/nav.vue"
  81. export default {
  82. components: {
  83. nodata,homenav
  84. },
  85. data() {
  86. return {
  87. data:'',
  88. isload: false,
  89. iStatusBarHeight:'',
  90. themeColor:'',
  91. id:'',
  92. }
  93. },
  94. onLoad(opt) {
  95. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  96. this.themeColor = uni.getStorageSync("themeColor");
  97. this.id=opt.id
  98. //this.id='34435FE8-F160-4CCF-8D91-CEDF897FDC04'
  99. this.getData()
  100. },
  101. onShow() {
  102. },
  103. methods: {
  104. seeBy() {
  105. uni.navigateTo({
  106. url: '../user/historyDetail?id=' + this.data.billSheetID
  107. })
  108. },
  109. seeImg(imgList){
  110. uni.previewImage({
  111. urls: imgList.split(','),
  112. longPressActions: {
  113. itemList: ['发送给朋友', '保存图片', '收藏'],
  114. success: function(data) {
  115. console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
  116. },
  117. fail: function(err) {
  118. console.log(err.errMsg);
  119. }
  120. }
  121. });
  122. },
  123. goDetail(item) {
  124. //SheetType 1 商品2项目3套餐4救援5钣喷6集客
  125. uni.navigateTo({
  126. url: "rescueOrderOrderDetail?id=" + item.ID
  127. })
  128. },
  129. getData() {
  130. uni.showLoading({
  131. title: '加载中'
  132. });
  133. this.isload = false;
  134. var padata = {
  135. id:this.id
  136. }
  137. this.$http('applet/tire-deposit-sheet/detail/'+this.id, {}, 'GET').then(res => {
  138. uni.hideLoading();
  139. this.isload = true;
  140. this.data = res.data
  141. })
  142. },
  143. },
  144. onReachBottom() {
  145. this.page++;
  146. this.getData()
  147. },
  148. onPullDownRefresh() {
  149. this.page = 1;
  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: #FF0000;
  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. .shopBoximg {
  181. width: 40rpx;
  182. height: 40rpx;
  183. }
  184. .shopBox {
  185. display: flex;
  186. padding: 30rpx 20rpx;
  187. margin: 0rpx 24rpx;
  188. margin-top: -60rpx;
  189. background-color: #FFFFFF;
  190. border-radius: 10rpx;
  191. }
  192. .shopName{
  193. color: #3C3C3C;
  194. line-height: 42rpx;
  195. font-size: 30rpx;
  196. }
  197. .Address{
  198. color: #999999;font-size: 24rpx;padding-top: 10rpx;
  199. }
  200. .information {
  201. background: #FFFFFF;
  202. border-radius: 10rpx;
  203. margin: 20rpx 24rpx;
  204. padding-bottom: 15rpx;
  205. }
  206. .informationLine {
  207. display: flex;
  208. padding: 15rpx 20rpx;
  209. }
  210. .informationTxt {
  211. width: 190rpx;
  212. font-size: 26rpx;
  213. color: #999999;
  214. }
  215. .informationNum {
  216. color: #333333;
  217. font-size: 26rpx;
  218. width: 500rpx;
  219. }
  220. .detailedTitle{
  221. padding: 23rpx 20rpx;
  222. display: flex;
  223. text-align: center;
  224. align-content: flex-start;
  225. border-bottom: 1rpx solid #EEEEEE;
  226. font-size: 30rpx;
  227. font-weight: bold;
  228. color: #3C3C3C;
  229. }
  230. .bottom {
  231. display: flex;
  232. justify-content: flex-end;
  233. background-color: #FFFFFF;
  234. align-items: center;
  235. height: 98rpx;
  236. width: 100vw;
  237. position: fixed;
  238. bottom: 0rpx;
  239. padding-bottom: constant(safe-area-inset-bottom);
  240. padding-bottom: env(safe-area-inset-bottom);
  241. }
  242. .defer {
  243. color: #D53533;
  244. font-size: 28rpx;
  245. width: 180rpx;
  246. height: 56rpx;
  247. border-radius: 36rpx;
  248. border: 1rpx solid #D53533;
  249. text-align: center;
  250. line-height: 56rpx;
  251. margin-right: 40rpx;
  252. }
  253. </style>