detail.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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">
  62. <text v-if="item.isPay==0">未支付</text>
  63. <text v-else-if="item.isPay==1">已支付</text>
  64. <text v-else-if="item.isPay==2">支付失败</text>
  65. <text v-else-if="item.isPay==3">支付中</text>
  66. <text v-else>支付中</text>
  67. </text>
  68. </view>
  69. <view class="item" v-if="item.payTime">
  70. <text class="label">采购时间</text>
  71. <text class="desc">{{ item.payTime }}</text>
  72. </view>
  73. <view class="item">
  74. <text class="label">创建时间</text>
  75. <text class="desc">{{ item.createTime }}</text>
  76. </view>
  77. <view style="height: 50px;"></view>
  78. </view>
  79. </view>
  80. </view>
  81. </template>
  82. <script>
  83. export default {
  84. data() {
  85. return {
  86. item: {}
  87. };
  88. },
  89. onLoad(e) {
  90. if (e.id) {
  91. this.http.request({
  92. url: '/level-two-server/app/TbOrders/getDetailById',
  93. data: { ids: e.id },
  94. success: res => {
  95. let data = res.data.data;
  96. this.item = data[0];
  97. }
  98. });
  99. }
  100. },
  101. methods: {}
  102. };
  103. </script>
  104. <style lang="scss">
  105. page {
  106. background-color: $pg;
  107. }
  108. </style>