detail.vue 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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.declarationNumber }}</text>
  26. </view>
  27. <view class="item">
  28. <text class="label">卖家</text>
  29. <text class="desc">{{ item.quotationPerson }}(组长)</text>
  30. </view>
  31. <view class="item">
  32. <text class="label">联系号码</text>
  33. <text class="desc"></text>
  34. </view>
  35. <view class="item">
  36. <text class="label">商品名称</text>
  37. <text class="desc">{{ item.goodsName }}</text>
  38. </view>
  39. <view class="item">
  40. <text class="label">计价单位</text>
  41. <text class="desc">{{ item.goodsUnit }}</text>
  42. </view>
  43. <view class="item">
  44. <text class="label">商品量</text>
  45. <text class="desc">{{ item.goodsQuantity }}</text>
  46. </view>
  47. <view class="item">
  48. <text class="label">价格</text>
  49. <text class="desc">{{ item.quotation }}</text>
  50. </view>
  51. <view class="item">
  52. <text class="label">来源国</text>
  53. <text class="desc">{{ item.goodsFrom }}</text>
  54. </view>
  55. <view class="item">
  56. <text class="label">发布时间</text>
  57. <text class="desc">{{ item.goodsDemandTime }}</text>
  58. </view>
  59. <view class="item">
  60. <text class="label">下单时间</text>
  61. <text class="desc">{{ item.createTime }}</text>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </template>
  67. <script>
  68. export default {
  69. data() {
  70. return {
  71. item: {}
  72. };
  73. },
  74. onLoad(e) {
  75. if (e.id) {
  76. this.http.request({
  77. url: '/level-two-server/app/TbOrders/getDetailById',
  78. data: { ids: e.id },
  79. success: res => {
  80. let data = res.data.data;
  81. this.item = data[0];
  82. }
  83. });
  84. }
  85. },
  86. methods: {}
  87. };
  88. </script>
  89. <style lang="scss">
  90. page {
  91. background-color: $pg;
  92. }
  93. </style>