detail.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <view>
  3. <view class="cmain">
  4. <!-- <view class="box order_detail" style="margin-top: 0px">
  5. <view class="item">
  6. <text class="label">订单状态</text>
  7. <text class="desc" v-if="item.isDelivery == 1">
  8. <text class="icon" style="color: #13ce66">&#xe830;</text>
  9. <text>已完成</text>
  10. </text>
  11. <text class="desc" v-else>
  12. <text class="icon">&#xe830;</text>
  13. <text>待收货</text>
  14. </text>
  15. </view>
  16. </view> -->
  17. <view class="box order_detail">
  18. <u-divider text="订单信息"></u-divider>
  19. <view class="item" style="padding-top: 0px">
  20. <text class="label">订单编号</text>
  21. <text class="desc">{{ item.orderNo }}</text>
  22. </view>
  23. <view class="item">
  24. <text class="label">口岸</text>
  25. <text class="desc">{{ item.tradeAreaName }}</text>
  26. </view>
  27. <view class="item">
  28. <text class="label">车牌</text>
  29. <text class="desc">{{ item.veNo }}</text>
  30. </view>
  31. <view class="item">
  32. <text class="label">店主</text>
  33. <text class="desc">{{ item.leaderName }}</text>
  34. </view>
  35. <view class="item">
  36. <text class="label">联系号码</text>
  37. <text class="desc">{{item.leaderPhone}}</text>
  38. </view>
  39. <view class="item">
  40. <text class="label">商品名称</text>
  41. <text class="desc">{{ item.goodsName }}</text>
  42. </view>
  43. <view class="item">
  44. <text class="label">计价单位</text>
  45. <text class="desc">{{ item.goodsUnit }}</text>
  46. </view>
  47. <view class="item">
  48. <text class="label">商品重量</text>
  49. <text class="desc">{{ item.netWet }}</text>
  50. </view>
  51. <view class="item">
  52. <text class="label">单价</text>
  53. <text class="desc">{{ item.singlePrice }}</text>
  54. </view>
  55. <view class="item">
  56. <text class="label">总价</text>
  57. <text class="desc">{{ item.resalePrice }}</text>
  58. </view>
  59. <view class="item">
  60. <text class="label">时间</text>
  61. <text class="desc">{{ item.createTime }}</text>
  62. </view>
  63. <view class="item">
  64. <text class="label">支付状态</text>
  65. <text class="desc">
  66. <text v-if="item.isPay==1">已支付</text>
  67. <text v-else>未支付</text>
  68. </text>
  69. </view>
  70. <view class="item" v-if="item.payTime">
  71. <text class="label">支付时间</text>
  72. <text class="desc">{{ item.payTime }}</text>
  73. </view>
  74. <view style="height: 50px;"></view>
  75. </view>
  76. </view>
  77. </view>
  78. </template>
  79. <script>
  80. export default {
  81. data() {
  82. return {
  83. item: {}
  84. };
  85. },
  86. onLoad(e) {
  87. if (e.id) {
  88. this.http.request({
  89. url: '/level-two-server/app/TbOrders/getDetailById',
  90. data: { ids: e.id },
  91. success: res => {
  92. let data = res.data.data;
  93. this.item = data[0];
  94. }
  95. });
  96. }
  97. },
  98. methods: {}
  99. };
  100. </script>
  101. <style lang="scss">
  102. page {
  103. background-color: $pg;
  104. }
  105. </style>