detail.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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.isOrders == 0">
  8. <text class="icon">&#xe830;</text>
  9. <text >未接单</text>
  10. </text>
  11. <text class="desc" v-else>
  12. <text class="icon" style="color: #13ce66">&#xe830;</text>
  13. <text >已接单</text>
  14. </text>
  15. </view>
  16. </view>
  17. <view class="box order_detail">
  18. <view class="item">
  19. <text class="label">收购商品</text>
  20. <text class="desc">{{ item.goodsName }}</text>
  21. </view>
  22. <view class="item">
  23. <text class="label">数量</text>
  24. <text class="desc">{{ item.goodsQuantity }}</text>
  25. </view>
  26. <view class="item">
  27. <text class="label">发布时间</text>
  28. <text class="desc">{{ item.goodsDemandTime }}</text>
  29. </view>
  30. <view class="item">
  31. <text class="label">接单组名</text>
  32. <text class="desc">{{ item.groupName }}</text>
  33. </view>
  34. <view class="item">
  35. <text class="label">接单组长</text>
  36. <text class="desc">{{ item.createName }}</text>
  37. </view>
  38. <view class="item">
  39. <text class="label">组长备注</text>
  40. <text class="desc">{{ item.remark }}</text>
  41. </view>
  42. <view class="item">
  43. <text class="label">出价金额</text>
  44. <text class="desc">{{ item.quotation }}</text>
  45. </view>
  46. <view class="item">
  47. <text class="label">报价时间</text>
  48. <text class="desc">{{ item.createTime }}</text>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. data() {
  57. return {
  58. item: {}
  59. };
  60. },
  61. onLoad(e) {
  62. if (e.id) {
  63. this.http.request({
  64. url: '/level-two-server/app/TbGoodsDemand/goodsDemandDetail',
  65. data: {id: e.id},
  66. loading: 'false',
  67. success: res => {
  68. this.item = res.data.data;
  69. }
  70. });
  71. }
  72. },
  73. methods: {}
  74. };
  75. </script>
  76. <style lang="scss">
  77. page {
  78. background-color: $pg;
  79. }
  80. </style>