detail.vue 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 omit">{{ 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. <button class="btn">同意接单并支付</button>
  52. <button class="btn" style="background-color: #F44336;">拒绝接单</button>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. export default {
  58. data() {
  59. return {
  60. item: {}
  61. };
  62. },
  63. onLoad(e) {
  64. if (e.id) {
  65. this.http.request({
  66. url: '/level-two-server/app/TbGoodsDemand/goodsDemandDetail?id=' + e.id,
  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. .btn{
  81. margin-top: 20px;
  82. width: 70%;
  83. }
  84. </style>