payment.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 prop="key1" label="施工单位名称" />
  16. <el-table-column prop="key1" label="章节" />
  17. <el-table-column prop="key1" label="合同金额" />
  18. <el-table-column prop="key1" label="变更后金额" />
  19. <el-table-column label="支付金额(未扣款)" align="center">
  20. <el-table-column prop="key2" label="2020年08月" />
  21. <el-table-column prop="key3" label="2020年09月" />
  22. <el-table-column prop="key4" label="2020年10月" />
  23. <el-table-column prop="key4" label="2020年11月" />
  24. <el-table-column prop="key4" label="2023年03月" />
  25. </el-table-column>
  26. <el-table-column prop="key1" label="合计(元)" />
  27. </el-table>
  28. </div>
  29. <template #action>
  30. <hc-pages :pages="searchForm" @change="pageChange" />
  31. </template>
  32. </hc-new-card>
  33. </template>
  34. <script setup>
  35. import { onActivated, onMounted, ref } from 'vue'
  36. defineOptions({
  37. name: 'DebitPayLedgersPayment',
  38. })
  39. //渲染完成
  40. onActivated(() => {
  41. })
  42. //搜索表单
  43. const searchForm = ref({
  44. current: 1, size: 10, total: 0,
  45. })
  46. //分页
  47. const pageChange = ({ current, size }) => {
  48. searchForm.value.current = current
  49. searchForm.value.size = size
  50. }
  51. const tableData = ref([
  52. {
  53. id: 1,
  54. key1: '2016',
  55. key2: '名称名称名称',
  56. key3: '总额',
  57. hasChildren: true,
  58. },
  59. ])
  60. </script>
  61. <style scoped lang="scss">
  62. </style>