detail.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <script setup lang="ts">
  2. import { ref } from "vue"
  3. import { useDetail } from "/@/hooks/core/useDetail"
  4. import {
  5. ElCollapseItem,
  6. ElTableColumn,
  7. ElDatePicker,
  8. ElPagination,
  9. ElFormItem,
  10. ElCollapse,
  11. ElTabPane,
  12. ElInput,
  13. ElTable,
  14. ElForm,
  15. ElTabs,
  16. ElRow,
  17. ElCol
  18. } from "element-plus"
  19. const { title, collapses } = useDetail({ baseName: '收发存汇总', collapseLen: 2 });
  20. </script>
  21. <template>
  22. <div class="padding__container">
  23. <ElTabs>
  24. <ElTabPane :label="title">
  25. <ElCollapse v-model="collapses">
  26. <ElCollapseItem :title="title" name="1">
  27. <ElForm>
  28. <ElRow :gutter="10">
  29. <ElCol :span="12">
  30. <ElFormItem label="记账月份">
  31. <ElDatePicker style="width: 100%" type="month" :modelValue="'2024-11'" />
  32. </ElFormItem>
  33. </ElCol>
  34. <ElCol :span="12">
  35. <ElFormItem label="公司名称">
  36. <ElInput :model-value="'百辰荣达'" />
  37. </ElFormItem>
  38. </ElCol>
  39. <ElCol :span="24">
  40. <ElTable size="small">
  41. <ElTableColumn label="存货" align="center">
  42. <ElTableColumn label="编码" />
  43. <ElTableColumn label="代码" />
  44. <ElTableColumn label="名称" />
  45. <ElTableColumn label="规格" />
  46. <ElTableColumn label="单位" />
  47. <ElTableColumn label="重量" />
  48. <ElTableColumn label="分光" />
  49. </ElTableColumn>
  50. <ElTableColumn label="期初" align="center">
  51. <ElTableColumn label="数量" />
  52. <ElTableColumn label="单价" />
  53. <ElTableColumn label="金额" />
  54. </ElTableColumn>
  55. <ElTableColumn label="收入" align="center">
  56. <ElTableColumn label="数量" />
  57. <ElTableColumn label="单价" />
  58. <ElTableColumn label="金额" />
  59. </ElTableColumn>
  60. <ElTableColumn label="发出" align="center">
  61. <ElTableColumn label="数量" />
  62. <ElTableColumn label="单价" />
  63. <ElTableColumn label="金额" />
  64. </ElTableColumn>
  65. <ElTableColumn label="结存" align="center">
  66. <ElTableColumn label="数量" />
  67. <ElTableColumn label="单价" />
  68. <ElTableColumn label="金额" />
  69. </ElTableColumn>
  70. </ElTable>
  71. <ElPagination />
  72. </ElCol>
  73. </ElRow>
  74. </ElForm>
  75. </ElCollapseItem>
  76. </ElCollapse>
  77. </ElTabPane>
  78. </ElTabs>
  79. </div>
  80. </template>