receipt-refund.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <template name="information">
  2. <view class="information-template">
  3. <!-- 订单信息 -->
  4. <view class="list-title" @click.stop="orderDetail(order.mainOrder.orderId)">
  5. <view class="list-title-t">
  6. <view class="list-title-tip">
  7. <text class="badges">{{ order.mainOrder.orderType | formatOrderType }}</text>
  8. </view>
  9. <view class="list-title-tag" v-if="order.mainOrder.organizeId == 3">
  10. <text class="badges">维沙</text>
  11. </view>
  12. <view class="list-title-num">{{ order.mainOrder.status | stateExpFormat }}</view>
  13. </view>
  14. <view class="list-title-a">
  15. <view class="list-title-a-text">
  16. 子订单编号:<text class="text">{{ order.shopOrderNo }} ( {{ order.shopOrderId }} )</text>
  17. </view>
  18. <view class="list-title-a-text">
  19. 供应商名称:<text class="text">{{ order.shopName }}</text>
  20. </view>
  21. <view class="list-title-a-text">
  22. 订单金额:<text class="text">¥{{ order.needPayAmount | NumFormat }}</text>
  23. </view>
  24. </view>
  25. <view class="list-title-b">
  26. 客户名称:<text class="text">{{ order.mainOrder.userName ? order.mainOrder.userName : '无' }}</text>
  27. </view>
  28. <view class="list-title-b">
  29. 订单编号:<text class="text">{{ order.mainOrder.orderNo }} ( {{ order.mainOrder.orderId }} )</text>
  30. </view>
  31. <view class="list-title-b">
  32. 下单日期:<text class="text">{{ order.mainOrder.orderTime }}</text>
  33. </view>
  34. <view class="list-title-b">
  35. <view class="list-title-b-item ">
  36. 订单金额:<text class="text">¥{{ order.mainOrder.payTotalFee | NumFormat }}</text>
  37. </view>
  38. <view class="list-title-b-item ">
  39. 已收金额:<text class="text">¥{{ order.mainOrder.paidAmount | NumFormat }}</text>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. export default{
  47. name:'information',
  48. props:{
  49. orderInfo:{
  50. type:Object
  51. }
  52. },
  53. data() {
  54. return{
  55. order:{}
  56. }
  57. },
  58. created(){
  59. this.initData(this.orderInfo)
  60. },
  61. watch:{
  62. orderInfo:{
  63. handler:function(val){
  64. this.initData(val)
  65. },
  66. deep:true//对象内部的属性监听,也叫深度监听
  67. }
  68. },
  69. methods:{
  70. initData(data) {
  71. this.order = data
  72. },
  73. orderDetail(id) {
  74. //订单详情跳转
  75. this.$api.navigateTo(`/pages/relation/order/detail?orderId=${id}`)
  76. },
  77. }
  78. }
  79. </script>
  80. <style lang="scss">
  81. .list-title {
  82. width: 100%;
  83. height: auto;
  84. .list-title-t {
  85. width: 100%;
  86. height: 50rpx;
  87. float: left;
  88. font-size: $font-size-28;
  89. padding-bottom: 10rpx;
  90. .list-title-tip {
  91. float: left;
  92. .badges {
  93. display: block;
  94. float: left;
  95. padding: 0 15rpx;
  96. height: 40rpx;
  97. line-height: 40rpx;
  98. border-radius: 20rpx;
  99. background: rgba(248, 204, 148, 0.5);
  100. font-size: $font-size-24;
  101. text-align: center;
  102. color: #666666;
  103. }
  104. }
  105. .list-title-tag {
  106. float: left;
  107. margin-left: 20rpx;
  108. .badges {
  109. display: block;
  110. float: left;
  111. padding: 0 15rpx;
  112. height: 40rpx;
  113. line-height: 40rpx;
  114. border-radius: 20rpx;
  115. background: linear-gradient(270deg, #fee9ba 0%, #f0cb72 100%);
  116. font-size: $font-size-24;
  117. text-align: center;
  118. color: #666666;
  119. }
  120. }
  121. .list-title-num {
  122. float: left;
  123. text-align: left;
  124. color: #e15616;
  125. line-height: 40rpx;
  126. margin-left: 20rpx;
  127. }
  128. }
  129. .list-title-a {
  130. width: 100%;
  131. height: auto;
  132. float: left;
  133. padding: 5rpx 8rpx;
  134. border-radius: 4rpx;
  135. background-color: rgba(247, 247, 247, 1);
  136. margin: 10rpx 0;
  137. .text{
  138. color: #999999;
  139. }
  140. .list-title-a-text {
  141. width: 100%;
  142. height: 50rpx;
  143. float: left;
  144. font-size: $font-size-24;
  145. line-height: 50rpx;
  146. color: #666666;
  147. text-align: left;
  148. }
  149. }
  150. .list-title-b {
  151. width: 100%;
  152. height: 50rpx;
  153. float: left;
  154. font-size: $font-size-24;
  155. line-height: 50rpx;
  156. color: #666666;
  157. text-align: left;
  158. .text{
  159. color: #999999;
  160. }
  161. .list-title-b-item {
  162. width: 50%;
  163. height: 100%;
  164. float: left;
  165. }
  166. }
  167. }
  168. </style>