detail.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view>
  3. <view class="cmain">
  4. <view class="box order_detail">
  5. <view class="item">
  6. <text class="label">订单编号</text>
  7. <text class="desc">{{ item.orderNo }}</text>
  8. </view>
  9. <view class="item">
  10. <text class="label">商品名称</text>
  11. <text class="desc">{{ item.goodsName }}</text>
  12. </view>
  13. <view class="item">
  14. <text class="label">上架金额</text>
  15. <text class="desc omit">{{ item.resalePrice}}元</text>
  16. </view>
  17. <view class="item">
  18. <text class="label">单价</text>
  19. <text class="desc">{{ item.singlePrice }}</text>
  20. </view>
  21. <view class="item">
  22. <text class="label">计价单位</text>
  23. <text class="desc">{{ item.goodsUnit }}</text>
  24. </view>
  25. <view class="item">
  26. <text class="label">商品重量</text>
  27. <text class="desc">{{ item.netWet }}</text>
  28. </view>
  29. <view class="item" v-if="item.purchaserName">
  30. <text class="label">收购商</text>
  31. <text class="desc">{{ item.purchaserName }}</text>
  32. </view>
  33. <view class="item">
  34. <text class="label">车牌</text>
  35. <text class="desc">{{ item.veNo }}</text>
  36. </view>
  37. <view class="item" v-if="item.createTime">
  38. <text class="label">上架时间</text>
  39. <text class="desc">{{ item.createTime }}</text>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. data() {
  48. return {
  49. item: {},
  50. };
  51. },
  52. onLoad(e) {
  53. if (e.id) {
  54. this.http.request({
  55. url: '/level-two-server/app/TbOrders/getDetailById',
  56. data: { ids: e.id },
  57. success: res => {
  58. let data = res.data.data;
  59. this.item = data[0];
  60. }
  61. });
  62. }
  63. },
  64. methods: {
  65. }
  66. };
  67. </script>
  68. <style lang="scss">
  69. page {
  70. background-color: $pg;
  71. }
  72. </style>