orderDetails.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <!-- 订单详情 -->
  3. <view>
  4. <u-navbar title="" autoBack placeholder></u-navbar>
  5. <view class="card_order_detail">
  6. <view class="orderNumber"><span>运单号:</span>{{orderList.waybillNo}}</view>
  7. <view class="title_delivery">寄件人:</view>
  8. <x-orderCard :list="senderList"></x-orderCard>
  9. <view class="title_delivery">收件人:</view>
  10. <x-orderCard :list="consigneeList"></x-orderCard>
  11. <view class="card_humiture">
  12. <view class="title_claim">
  13. <span>温度需求:</span>
  14. <view style="width: auto;">
  15. <u-tag :text="orderList.temperatureInterval" plain size="mini" type="success"></u-tag>
  16. </view>
  17. </view>
  18. <view class="title_claim">
  19. <span>配送要求:</span>
  20. <view style="width: auto;">
  21. <u-tag :text="orderList.deliveryCondition" plain size="mini" type="primary"></u-tag>
  22. </view>
  23. </view>
  24. <view class="title_claim">
  25. <span>货物类型:</span>
  26. <view style="width: auto;">
  27. <u-tag :text="orderList.cargoType" plain size="mini" type="warning"></u-tag>
  28. </view>
  29. </view>
  30. <view class="title_claim"><span>备注:</span>{{orderList.remark}}</view>
  31. </view>
  32. <view v-if="orderList.status != 1">
  33. <view class="line_back" style="margin-top: 40rpx;" @click="logistics">查看物流详情</view>
  34. <view class="line_back" @click="goHumiture">查看温湿度</view>
  35. </view>
  36. </view>
  37. <!-- <view class="btn_print" v-if="type == 'details' && orderList.status == 2 || orderList.status == 3">
  38. <u-button type="primary" text="打印条码"></u-button>
  39. </view> -->
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. type: 'details',
  47. senderList: {
  48. name: '',
  49. phone: '',
  50. address: '',
  51. },
  52. consigneeList: {
  53. name: '',
  54. phone: '',
  55. address: '',
  56. },
  57. orderList: {}
  58. }
  59. },
  60. onLoad(value) {
  61. this.type = value.type
  62. },
  63. onShow() {
  64. var orderList = this.$cache.getCache('orderDetails')
  65. // console.log(orderList,26)
  66. this.orderList = orderList
  67. this.senderList.name = orderList.senderAddressName
  68. this.senderList.phone = orderList.senderAddressPhone
  69. this.senderList.address = orderList.senderAddressDetails
  70. this.consigneeList.name = orderList.consigneeAddressName
  71. this.consigneeList.phone = orderList.consigneeAddressPhone
  72. this.consigneeList.address = orderList.consigneeAddressDetails
  73. },
  74. methods: {
  75. // 物流详情
  76. logistics() {
  77. uni.navigateTo({
  78. url: '/pages/order/logisticsDetails'
  79. });
  80. },
  81. // 温湿度记录
  82. goHumiture() {
  83. uni.navigateTo({
  84. url: '/pages/order/humiture'
  85. });
  86. }
  87. }
  88. }
  89. </script>
  90. <style lang="scss" scoped>
  91. .card_order_detail {
  92. margin: 20rpx;
  93. }
  94. .orderNumber {
  95. background-color: #fff;
  96. border-radius: 20rpx;
  97. padding: 15rpx;
  98. span {
  99. font-size: 28rpx;
  100. color: #909399;
  101. margin-right: 10rpx;
  102. }
  103. }
  104. .title_delivery {
  105. font-size: 30rpx;
  106. font-weight: 600;
  107. margin: 20rpx 0rpx 10rpx 10rpx;
  108. }
  109. .card_humiture {
  110. margin-top: 30rpx;
  111. border-radius: 20rpx;
  112. padding: 1rpx 20rpx;
  113. background-color: #fff;
  114. }
  115. .title_claim {
  116. display: flex;
  117. margin: 20rpx 0rpx;
  118. span {
  119. font-size: 28rpx;
  120. color: #909399;
  121. margin-right: 10rpx;
  122. }
  123. }
  124. .line_back {
  125. font-size: 30rpx;
  126. margin: 20rpx 0rpx;
  127. color: #3c9cff;
  128. }
  129. </style>