collect.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <hc-new-card>
  3. <template #header>
  4. <el-date-picker v-model="searchForm.key2" format="YYYY-MM-DD" type="date" value-format="YYYY-MM-DD" />
  5. </template>
  6. <template #extra>
  7. <el-button hc-btn type="primary">
  8. <HcIcon name="download" />
  9. <span>导出</span>
  10. </el-button>
  11. </template>
  12. <div class="hc-table-ref-box no-border">
  13. <el-table class="w-full" :data="tableData" row-key="id" height="100%" highlight-current-row border>
  14. <el-table-column prop="key1" label="合同段" />
  15. <el-table-column label="合同金额" align="center">
  16. <el-table-column prop="key2" label="合同金额" />
  17. <el-table-column prop="key3" label="变更金额" />
  18. <el-table-column prop="key4" label="变更后金额" />
  19. </el-table-column>
  20. <el-table-column prop="key1" label="累计计量金额" />
  21. <el-table-column prop="key1" label="完成比例(%)" />
  22. </el-table>
  23. </div>
  24. <template #action>
  25. <hc-pages :pages="searchForm" @change="pageChange" />
  26. </template>
  27. </hc-new-card>
  28. </template>
  29. <script setup>
  30. import { onActivated, onMounted, ref } from 'vue'
  31. defineOptions({
  32. name: 'DebitPayLedgersCollect',
  33. })
  34. //渲染完成
  35. onActivated(() => {
  36. })
  37. //搜索表单
  38. const searchForm = ref({
  39. current: 1, size: 10, total: 0,
  40. })
  41. //分页
  42. const pageChange = ({ current, size }) => {
  43. searchForm.value.current = current
  44. searchForm.value.size = size
  45. }
  46. const tableData = ref([
  47. {
  48. id: 1,
  49. key1: '2016',
  50. key2: '名称名称名称',
  51. key3: '总额',
  52. hasChildren: true,
  53. },
  54. ])
  55. </script>
  56. <style scoped lang="scss">
  57. </style>