index.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <div class="agri-services">
  3. <custom-header name="报价维护"></custom-header>
  4. <tabs v-model:active="active" class="tabs">
  5. <tab title="药肥报价">
  6. <fertilizer-price />
  7. </tab>
  8. <tab title="服务报价">
  9. <service-price />
  10. </tab>
  11. </tabs>
  12. </div>
  13. </template>
  14. <script setup>
  15. import { ref, onMounted } from "vue";
  16. import { Tab, Tabs } from "vant";
  17. import fertilizerPrice from "./component/fertilizerPrice.vue";
  18. import servicePrice from "./component/servicePrice.vue";
  19. import customHeader from "@/components/customHeader.vue";
  20. const active = ref(0);
  21. </script>
  22. <style lang="scss" scoped>
  23. .agri-services {
  24. width: 100%;
  25. height: 100vh;
  26. .farm-dynamics-container {
  27. ::v-deep{
  28. .task-content{
  29. height: calc(100% - 80px);
  30. }
  31. }
  32. }
  33. .tabs {
  34. height: calc(100% - 40px);
  35. ::v-deep {
  36. .van-tabs__wrap {
  37. margin-bottom: 8px;
  38. }
  39. .van-tabs__line {
  40. width: 24px;
  41. height: 4px;
  42. }
  43. .van-tab {
  44. width: 100px;
  45. flex: none;
  46. }
  47. .van-tabs__nav {
  48. justify-content: center;
  49. }
  50. .van-tabs__content {
  51. overflow: auto;
  52. height: calc(100% - 44px);
  53. background: #F5F7FB;
  54. }
  55. }
  56. }
  57. }
  58. </style>