depositDetail.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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.createTime}}</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: 50rpx;background-color: #F4F5F7;"></view>
  72. <view class="bottom">
  73. <view class="defer" :style="{border:'1rpx solid #'+themeColor,color:'#'+themeColor}" @click="seeBy" >查看保养单</view>
  74. </view>
  75. </view>
  76. </template>
  77. <script>
  78. import nodata from '@/components/nodata/nodata.vue'
  79. import homenav from "@/components/homenav/nav.vue"
  80. export default {
  81. components: {
  82. nodata,homenav
  83. },
  84. data() {
  85. return {
  86. data:'',
  87. isload: false,
  88. iStatusBarHeight:'',
  89. themeColor:'',
  90. id:'',
  91. }
  92. },
  93. onLoad(opt) {
  94. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  95. this.themeColor = uni.getStorageSync("themeColor");
  96. this.id=opt.id
  97. //this.id='34435FE8-F160-4CCF-8D91-CEDF897FDC04'
  98. this.getData()
  99. },
  100. onShow() {
  101. },
  102. methods: {
  103. seeImg(imgList){
  104. uni.previewImage({
  105. urls: imgList.split(','),
  106. longPressActions: {
  107. itemList: ['发送给朋友', '保存图片', '收藏'],
  108. success: function(data) {
  109. console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
  110. },
  111. fail: function(err) {
  112. console.log(err.errMsg);
  113. }
  114. }
  115. });
  116. },
  117. goDetail(item) {
  118. //SheetType 1 商品2项目3套餐4救援5钣喷6集客
  119. uni.navigateTo({
  120. url: "rescueOrderOrderDetail?id=" + item.ID
  121. })
  122. },
  123. getData() {
  124. uni.showLoading({
  125. title: '加载中'
  126. });
  127. this.isload = false;
  128. var padata = {
  129. id:this.id
  130. }
  131. this.$http('applet/tire-deposit-sheet/detail/'+this.id, {}, 'GET').then(res => {
  132. uni.hideLoading();
  133. this.isload = true;
  134. this.data = res.data
  135. })
  136. },
  137. },
  138. onReachBottom() {
  139. this.page++;
  140. this.getData()
  141. },
  142. onPullDownRefresh() {
  143. this.page = 1;
  144. this.getData()
  145. setTimeout(function() {
  146. uni.stopPullDownRefresh();
  147. }, 1000);
  148. }
  149. }
  150. </script>
  151. <style scoped>
  152. .box {
  153. min-height: 100vh;
  154. background: #F4F5F7;
  155. }
  156. .top {
  157. height: 190rpx;
  158. background: #FF0000;
  159. }
  160. .orderState {
  161. display: flex;
  162. justify-content: center;
  163. align-items: center;
  164. padding-top: 40rpx;
  165. }
  166. .SheetState {
  167. display: flex;
  168. justify-content: center;
  169. font-size: 36rpx;
  170. font-weight: 500;
  171. color: #FFFFFF;
  172. margin-left: 15rpx;
  173. }
  174. .shopBoximg {
  175. width: 40rpx;
  176. height: 40rpx;
  177. }
  178. .shopBox {
  179. display: flex;
  180. padding: 30rpx 20rpx;
  181. margin: 0rpx 24rpx;
  182. margin-top: -60rpx;
  183. background-color: #FFFFFF;
  184. border-radius: 10rpx;
  185. }
  186. .shopName{
  187. color: #3C3C3C;
  188. line-height: 42rpx;
  189. font-size: 30rpx;
  190. }
  191. .Address{
  192. color: #999999;font-size: 24rpx;padding-top: 10rpx;
  193. }
  194. .information {
  195. background: #FFFFFF;
  196. border-radius: 10rpx;
  197. margin: 20rpx 24rpx;
  198. padding-bottom: 15rpx;
  199. }
  200. .informationLine {
  201. display: flex;
  202. padding: 15rpx 20rpx;
  203. }
  204. .informationTxt {
  205. width: 190rpx;
  206. font-size: 26rpx;
  207. color: #999999;
  208. }
  209. .informationNum {
  210. color: #333333;
  211. font-size: 26rpx;
  212. width: 500rpx;
  213. }
  214. .detailedTitle{
  215. padding: 23rpx 20rpx;
  216. display: flex;
  217. text-align: center;
  218. align-content: flex-start;
  219. border-bottom: 1rpx solid #EEEEEE;
  220. font-size: 30rpx;
  221. font-weight: bold;
  222. color: #3C3C3C;
  223. }
  224. .bottom {
  225. display: flex;
  226. justify-content: flex-end;
  227. padding: 20rpx;
  228. background-color: #FFFFFF;
  229. align-items: center;
  230. height: 98rpx;
  231. width: 100vw;
  232. position: fixed;
  233. bottom: 0rpx;
  234. padding-bottom: constant(safe-area-inset-bottom);
  235. padding-bottom: env(safe-area-inset-bottom);
  236. }
  237. .defer {
  238. color: #D53533;
  239. font-size: 28rpx;
  240. width: 180rpx;
  241. height: 56rpx;
  242. border-radius: 36rpx;
  243. border: 1rpx solid #D53533;
  244. text-align: center;
  245. line-height: 56rpx;
  246. margin-right: 40rpx;
  247. }
  248. </style>