Procházet zdrojové kódy

增加菜单路由

ZaiZai před 2 roky
rodič
revize
46b0cd7411

+ 10 - 5
src/router/menus.js

@@ -50,18 +50,23 @@ export default [
     },
     {
         source: 'home-3',
-        name: '计划管理',
+        name: '预算计划管理',
         code: 'program',
         children: [
             {
                 source: 'home-3',
-                name: '制定计划',
-                code: 'program-index',
+                name: '年度经营预算',
+                code: 'program-annual',
             },
             {
                 source: 'home-3',
-                name: '计划任务',
-                code: 'program-task',
+                name: '项目计划预算',
+                code: 'program-project',
+            },
+            {
+                source: 'home-3',
+                name: '部门月度计划预算',
+                code: 'program-section',
             },
         ]
     },

+ 37 - 16
src/router/modules/base.js

@@ -130,27 +130,48 @@ export default [
     {
         path: '/program',
         name: 'program',
-        redirect: '/program/index',
-        meta: {title: '计划管理'},
+        redirect: '/program/annual',
+        meta: {title: '预算计划管理'},
         component: Layout,
         children: [
+            //年度经营预算
             {
-                path: '/program/index',
-                name: 'program-index',
-                meta: {title: '制定计划'},
-                component: () => import('~src/views/program/index.vue')
+                path: '/program/annual',
+                name: 'program-annual',
+                meta: {title: '年度经营预算'},
+                component: () => import('~src/views/program/annual/index.vue')
             },
             {
-                path: '/program/index-info',
-                name: 'program-index-info',
-                meta: {title: '计划详情'},
-                component: () => import('~src/views/program/edit-info.vue')
+                path: '/program/annual-form',
+                name: 'program-annual-form',
+                meta: {title: '年度经营预算信息'},
+                component: () => import('~src/views/program/annual/form.vue')
             },
+            //项目计划预算
             {
-                path: '/program/task',
-                name: 'program-task',
-                meta: {title: '计划任务'},
-                component: () => import('~src/views/program/task.vue')
+                path: '/program/project',
+                name: 'program-project',
+                meta: {title: '项目计划预算'},
+                component: () => import('~src/views/program/project/index.vue')
+            },
+            {
+                path: '/program/project-form',
+                name: 'program-project-form',
+                meta: {title: '项目计划预算信息'},
+                component: () => import('~src/views/program/project/form.vue')
+            },
+            //部门月度计划预算
+            {
+                path: '/program/section',
+                name: 'program-section',
+                meta: {title: '部门月度计划预算'},
+                component: () => import('~src/views/program/section/index.vue')
+            },
+            {
+                path: '/program/section-form',
+                name: 'program-section-form',
+                meta: {title: '部门月度计划预算信息'},
+                component: () => import('~src/views/program/section/form.vue')
             },
         ],
     },
@@ -307,8 +328,8 @@ export default [
                 meta: {title: '离职管理'},
                 component: () => import('~src/views/humanmanager/dimission.vue')
             },
-    
-    
+
+
 
         ],
     },

+ 6 - 3
src/router/modules/token.js

@@ -16,9 +16,12 @@ export default [
     'project-contract',
     'project-contract-form',
     'project-contract-update',
-    'program-index',
-    'program-index-info',
-    'program-task',
+    'program-annual',
+    'program-annual-form',
+    'program-project',
+    'program-project-form',
+    'program-section',
+    'program-section-form',
     'logs-index',
     'user-index',
     'user-config',

+ 161 - 0
src/views/program/annual/form.vue

@@ -0,0 +1,161 @@
+<template>
+    <HcCard>
+        <template #header>
+            <div class="w-36">
+                <el-select v-model="searchForm.planType" block clearable placeholder="计划类型" size="large">
+                    <el-option v-for="item in planType" :label="item.name" :value="item.key"/>
+                </el-select>
+            </div>
+            <div class="w-36 ml-2">
+                <el-select v-model="searchForm.department" block clearable placeholder="选择部门" size="large">
+                    <el-option v-for="item in department" :label="item.name" :value="item.key"/>
+                </el-select>
+            </div>
+            <div class="w-36 ml-4">
+                <el-date-picker class="block" v-model="searchForm.startTime" type="month" value-format="YYYY-MM" placeholder="开始日期" clearable size="large"/>
+            </div>
+            <div class="mx-2">~</div>
+            <div class="w-36">
+                <el-date-picker class="block" v-model="searchForm.endTime" type="month" value-format="YYYY-MM" placeholder="结束日期" clearable size="large"/>
+            </div>
+            <div class="w-40 ml-2">
+                <el-input v-model="searchForm.queryValue" clearable placeholder="请输入计划名称" @keyup="keyUpEvent" size="large"/>
+            </div>
+            <div class="ml-4">
+                <el-button size="large" type="primary" @click="searchClick">
+                    <HcIcon name="search-2"/>
+                    <span>搜索</span>
+                </el-button>
+            </div>
+            <div class="ml-2">
+                <el-button size="large" @click="resetClick">
+                    <HcIcon name="close-circle"/>
+                    <span>重置</span>
+                </el-button>
+            </div>
+        </template>
+        <template #extra>
+            <el-button size="large" type="primary" hc-btn @click="addRowClick">
+                <HcIcon name="add"/>
+                <span>新增计划</span>
+            </el-button>
+        </template>
+
+        <HcTable :isIndex="false" :column="tableColumn" :datas="tableData" :loading="tableLoading">
+            <template #key1="{row}">
+                <span class="text-blue">{{row.key1}}</span>
+            </template>
+            <template #key4="{row}">
+                <span>{{row.key4}}条</span>
+            </template>
+            <template #key5="{row}">
+                <span>{{row.key5}}条</span>
+            </template>
+            <template #key6="{row}">
+                <span>{{row.key6}}条</span>
+            </template>
+            <template #action="{row,index}">
+                <el-button plain size="small" type="primary" @click="editRowClick(row)">编辑</el-button>
+                <el-button plain size="small" type="danger">删除</el-button>
+            </template>
+        </HcTable>
+
+        <template #action>
+            <HcPages :pages="searchForm" @change="pageChange"/>
+        </template>
+    </HcCard>
+</template>
+
+<script setup>
+import {ref} from "vue";
+import {useRouter} from 'vue-router'
+
+const router = useRouter()
+
+//计划类型
+const planType = ref([
+    {name: '临时计划', key: '1'},
+    {name: '月度计划', key: '2'},
+    {name: '年度计划', key: '3'},
+])
+
+//选择部门
+const department = ref([
+    {name: '研发部门', key: '1'},
+    {name: '业务部门', key: '2'},
+    {name: '人事部门', key: '3'},
+])
+
+//搜索表单
+const searchForm = ref({
+    planType: null, startTime: null, endTime: null, department: null, queryValue: '',
+    current: 1, size: 20, total: 0
+})
+
+//搜索框回车
+const keyUpEvent = (event) => {
+    if (event.key === "Enter") {
+        searchForm.value.current = 1;
+        getTableData()
+    }
+}
+
+//搜索
+const searchClick = () => {
+    searchForm.value.current = 1;
+    getTableData()
+}
+
+//重置搜索表单
+const resetClick = () => {
+    searchForm.value = {current: 1, size: 20, total: 0}
+}
+
+//分页被点击
+const pageChange = ({current, size}) => {
+    searchForm.value.current = current
+    searchForm.value.size = size
+    getTableData()
+}
+
+//获取数据
+const tableLoading = ref(false)
+const tableColumn = [
+    {key: 'key', name: '编号', width: '90', align: 'center'},
+    {key: 'key1', name: '计划名称'},
+    {key: 'key2', name: '计划类型', width: '120', align: 'center'},
+    {key: 'key3', name: '计划起止日期', width: '220', align: 'center'},
+    {key: 'key4', name: '计划数量', width: '120', align: 'center'},
+    {key: 'key5', name: '已完成计划', width: '120', align: 'center'},
+    {key: 'key6', name: '未完成计划', width: '100', align: 'center'},
+    {key: 'key8', name: '计划制定人', width: '100', align: 'center'},
+    {key: 'action', name: '操作', width: '130', align: 'center'},
+]
+const tableData = ref([
+    {id: 1, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 2, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 3, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 4, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+])
+
+const getTableData = () => {
+
+}
+
+//新增计划
+const addRowClick = () => {
+    router.push({
+        name: 'program-index-info'
+    })
+}
+
+//编辑预算
+const editRowClick = (row) => {
+    router.push({
+        name: 'program-index-info',
+        query: {
+            id: row.id
+        }
+    })
+}
+</script>

+ 161 - 0
src/views/program/annual/index.vue

@@ -0,0 +1,161 @@
+<template>
+    <HcCard>
+        <template #header>
+            <div class="w-36">
+                <el-select v-model="searchForm.planType" block clearable placeholder="计划类型" size="large">
+                    <el-option v-for="item in planType" :label="item.name" :value="item.key"/>
+                </el-select>
+            </div>
+            <div class="w-36 ml-2">
+                <el-select v-model="searchForm.department" block clearable placeholder="选择部门" size="large">
+                    <el-option v-for="item in department" :label="item.name" :value="item.key"/>
+                </el-select>
+            </div>
+            <div class="w-36 ml-4">
+                <el-date-picker class="block" v-model="searchForm.startTime" type="month" value-format="YYYY-MM" placeholder="开始日期" clearable size="large"/>
+            </div>
+            <div class="mx-2">~</div>
+            <div class="w-36">
+                <el-date-picker class="block" v-model="searchForm.endTime" type="month" value-format="YYYY-MM" placeholder="结束日期" clearable size="large"/>
+            </div>
+            <div class="w-40 ml-2">
+                <el-input v-model="searchForm.queryValue" clearable placeholder="请输入计划名称" @keyup="keyUpEvent" size="large"/>
+            </div>
+            <div class="ml-4">
+                <el-button size="large" type="primary" @click="searchClick">
+                    <HcIcon name="search-2"/>
+                    <span>搜索</span>
+                </el-button>
+            </div>
+            <div class="ml-2">
+                <el-button size="large" @click="resetClick">
+                    <HcIcon name="close-circle"/>
+                    <span>重置</span>
+                </el-button>
+            </div>
+        </template>
+        <template #extra>
+            <el-button size="large" type="primary" hc-btn @click="addRowClick">
+                <HcIcon name="add"/>
+                <span>新增计划</span>
+            </el-button>
+        </template>
+
+        <HcTable :isIndex="false" :column="tableColumn" :datas="tableData" :loading="tableLoading">
+            <template #key1="{row}">
+                <span class="text-blue">{{row.key1}}</span>
+            </template>
+            <template #key4="{row}">
+                <span>{{row.key4}}条</span>
+            </template>
+            <template #key5="{row}">
+                <span>{{row.key5}}条</span>
+            </template>
+            <template #key6="{row}">
+                <span>{{row.key6}}条</span>
+            </template>
+            <template #action="{row,index}">
+                <el-button plain size="small" type="primary" @click="editRowClick(row)">编辑</el-button>
+                <el-button plain size="small" type="danger">删除</el-button>
+            </template>
+        </HcTable>
+
+        <template #action>
+            <HcPages :pages="searchForm" @change="pageChange"/>
+        </template>
+    </HcCard>
+</template>
+
+<script setup>
+import {ref} from "vue";
+import {useRouter} from 'vue-router'
+
+const router = useRouter()
+
+//计划类型
+const planType = ref([
+    {name: '临时计划', key: '1'},
+    {name: '月度计划', key: '2'},
+    {name: '年度计划', key: '3'},
+])
+
+//选择部门
+const department = ref([
+    {name: '研发部门', key: '1'},
+    {name: '业务部门', key: '2'},
+    {name: '人事部门', key: '3'},
+])
+
+//搜索表单
+const searchForm = ref({
+    planType: null, startTime: null, endTime: null, department: null, queryValue: '',
+    current: 1, size: 20, total: 0
+})
+
+//搜索框回车
+const keyUpEvent = (event) => {
+    if (event.key === "Enter") {
+        searchForm.value.current = 1;
+        getTableData()
+    }
+}
+
+//搜索
+const searchClick = () => {
+    searchForm.value.current = 1;
+    getTableData()
+}
+
+//重置搜索表单
+const resetClick = () => {
+    searchForm.value = {current: 1, size: 20, total: 0}
+}
+
+//分页被点击
+const pageChange = ({current, size}) => {
+    searchForm.value.current = current
+    searchForm.value.size = size
+    getTableData()
+}
+
+//获取数据
+const tableLoading = ref(false)
+const tableColumn = [
+    {key: 'key', name: '编号', width: '90', align: 'center'},
+    {key: 'key1', name: '计划名称'},
+    {key: 'key2', name: '计划类型', width: '120', align: 'center'},
+    {key: 'key3', name: '计划起止日期', width: '220', align: 'center'},
+    {key: 'key4', name: '计划数量', width: '120', align: 'center'},
+    {key: 'key5', name: '已完成计划', width: '120', align: 'center'},
+    {key: 'key6', name: '未完成计划', width: '100', align: 'center'},
+    {key: 'key8', name: '计划制定人', width: '100', align: 'center'},
+    {key: 'action', name: '操作', width: '130', align: 'center'},
+]
+const tableData = ref([
+    {id: 1, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 2, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 3, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 4, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+])
+
+const getTableData = () => {
+
+}
+
+//新增计划
+const addRowClick = () => {
+    router.push({
+        name: 'program-index-info'
+    })
+}
+
+//编辑预算
+const editRowClick = (row) => {
+    router.push({
+        name: 'program-index-info',
+        query: {
+            id: row.id
+        }
+    })
+}
+</script>

+ 161 - 0
src/views/program/project/form.vue

@@ -0,0 +1,161 @@
+<template>
+    <HcCard>
+        <template #header>
+            <div class="w-36">
+                <el-select v-model="searchForm.planType" block clearable placeholder="计划类型" size="large">
+                    <el-option v-for="item in planType" :label="item.name" :value="item.key"/>
+                </el-select>
+            </div>
+            <div class="w-36 ml-2">
+                <el-select v-model="searchForm.department" block clearable placeholder="选择部门" size="large">
+                    <el-option v-for="item in department" :label="item.name" :value="item.key"/>
+                </el-select>
+            </div>
+            <div class="w-36 ml-4">
+                <el-date-picker class="block" v-model="searchForm.startTime" type="month" value-format="YYYY-MM" placeholder="开始日期" clearable size="large"/>
+            </div>
+            <div class="mx-2">~</div>
+            <div class="w-36">
+                <el-date-picker class="block" v-model="searchForm.endTime" type="month" value-format="YYYY-MM" placeholder="结束日期" clearable size="large"/>
+            </div>
+            <div class="w-40 ml-2">
+                <el-input v-model="searchForm.queryValue" clearable placeholder="请输入计划名称" @keyup="keyUpEvent" size="large"/>
+            </div>
+            <div class="ml-4">
+                <el-button size="large" type="primary" @click="searchClick">
+                    <HcIcon name="search-2"/>
+                    <span>搜索</span>
+                </el-button>
+            </div>
+            <div class="ml-2">
+                <el-button size="large" @click="resetClick">
+                    <HcIcon name="close-circle"/>
+                    <span>重置</span>
+                </el-button>
+            </div>
+        </template>
+        <template #extra>
+            <el-button size="large" type="primary" hc-btn @click="addRowClick">
+                <HcIcon name="add"/>
+                <span>新增计划</span>
+            </el-button>
+        </template>
+
+        <HcTable :isIndex="false" :column="tableColumn" :datas="tableData" :loading="tableLoading">
+            <template #key1="{row}">
+                <span class="text-blue">{{row.key1}}</span>
+            </template>
+            <template #key4="{row}">
+                <span>{{row.key4}}条</span>
+            </template>
+            <template #key5="{row}">
+                <span>{{row.key5}}条</span>
+            </template>
+            <template #key6="{row}">
+                <span>{{row.key6}}条</span>
+            </template>
+            <template #action="{row,index}">
+                <el-button plain size="small" type="primary" @click="editRowClick(row)">编辑</el-button>
+                <el-button plain size="small" type="danger">删除</el-button>
+            </template>
+        </HcTable>
+
+        <template #action>
+            <HcPages :pages="searchForm" @change="pageChange"/>
+        </template>
+    </HcCard>
+</template>
+
+<script setup>
+import {ref} from "vue";
+import {useRouter} from 'vue-router'
+
+const router = useRouter()
+
+//计划类型
+const planType = ref([
+    {name: '临时计划', key: '1'},
+    {name: '月度计划', key: '2'},
+    {name: '年度计划', key: '3'},
+])
+
+//选择部门
+const department = ref([
+    {name: '研发部门', key: '1'},
+    {name: '业务部门', key: '2'},
+    {name: '人事部门', key: '3'},
+])
+
+//搜索表单
+const searchForm = ref({
+    planType: null, startTime: null, endTime: null, department: null, queryValue: '',
+    current: 1, size: 20, total: 0
+})
+
+//搜索框回车
+const keyUpEvent = (event) => {
+    if (event.key === "Enter") {
+        searchForm.value.current = 1;
+        getTableData()
+    }
+}
+
+//搜索
+const searchClick = () => {
+    searchForm.value.current = 1;
+    getTableData()
+}
+
+//重置搜索表单
+const resetClick = () => {
+    searchForm.value = {current: 1, size: 20, total: 0}
+}
+
+//分页被点击
+const pageChange = ({current, size}) => {
+    searchForm.value.current = current
+    searchForm.value.size = size
+    getTableData()
+}
+
+//获取数据
+const tableLoading = ref(false)
+const tableColumn = [
+    {key: 'key', name: '编号', width: '90', align: 'center'},
+    {key: 'key1', name: '计划名称'},
+    {key: 'key2', name: '计划类型', width: '120', align: 'center'},
+    {key: 'key3', name: '计划起止日期', width: '220', align: 'center'},
+    {key: 'key4', name: '计划数量', width: '120', align: 'center'},
+    {key: 'key5', name: '已完成计划', width: '120', align: 'center'},
+    {key: 'key6', name: '未完成计划', width: '100', align: 'center'},
+    {key: 'key8', name: '计划制定人', width: '100', align: 'center'},
+    {key: 'action', name: '操作', width: '130', align: 'center'},
+]
+const tableData = ref([
+    {id: 1, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 2, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 3, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 4, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+])
+
+const getTableData = () => {
+
+}
+
+//新增计划
+const addRowClick = () => {
+    router.push({
+        name: 'program-index-info'
+    })
+}
+
+//编辑预算
+const editRowClick = (row) => {
+    router.push({
+        name: 'program-index-info',
+        query: {
+            id: row.id
+        }
+    })
+}
+</script>

+ 161 - 0
src/views/program/project/index.vue

@@ -0,0 +1,161 @@
+<template>
+    <HcCard>
+        <template #header>
+            <div class="w-36">
+                <el-select v-model="searchForm.planType" block clearable placeholder="计划类型" size="large">
+                    <el-option v-for="item in planType" :label="item.name" :value="item.key"/>
+                </el-select>
+            </div>
+            <div class="w-36 ml-2">
+                <el-select v-model="searchForm.department" block clearable placeholder="选择部门" size="large">
+                    <el-option v-for="item in department" :label="item.name" :value="item.key"/>
+                </el-select>
+            </div>
+            <div class="w-36 ml-4">
+                <el-date-picker class="block" v-model="searchForm.startTime" type="month" value-format="YYYY-MM" placeholder="开始日期" clearable size="large"/>
+            </div>
+            <div class="mx-2">~</div>
+            <div class="w-36">
+                <el-date-picker class="block" v-model="searchForm.endTime" type="month" value-format="YYYY-MM" placeholder="结束日期" clearable size="large"/>
+            </div>
+            <div class="w-40 ml-2">
+                <el-input v-model="searchForm.queryValue" clearable placeholder="请输入计划名称" @keyup="keyUpEvent" size="large"/>
+            </div>
+            <div class="ml-4">
+                <el-button size="large" type="primary" @click="searchClick">
+                    <HcIcon name="search-2"/>
+                    <span>搜索</span>
+                </el-button>
+            </div>
+            <div class="ml-2">
+                <el-button size="large" @click="resetClick">
+                    <HcIcon name="close-circle"/>
+                    <span>重置</span>
+                </el-button>
+            </div>
+        </template>
+        <template #extra>
+            <el-button size="large" type="primary" hc-btn @click="addRowClick">
+                <HcIcon name="add"/>
+                <span>新增计划</span>
+            </el-button>
+        </template>
+
+        <HcTable :isIndex="false" :column="tableColumn" :datas="tableData" :loading="tableLoading">
+            <template #key1="{row}">
+                <span class="text-blue">{{row.key1}}</span>
+            </template>
+            <template #key4="{row}">
+                <span>{{row.key4}}条</span>
+            </template>
+            <template #key5="{row}">
+                <span>{{row.key5}}条</span>
+            </template>
+            <template #key6="{row}">
+                <span>{{row.key6}}条</span>
+            </template>
+            <template #action="{row,index}">
+                <el-button plain size="small" type="primary" @click="editRowClick(row)">编辑</el-button>
+                <el-button plain size="small" type="danger">删除</el-button>
+            </template>
+        </HcTable>
+
+        <template #action>
+            <HcPages :pages="searchForm" @change="pageChange"/>
+        </template>
+    </HcCard>
+</template>
+
+<script setup>
+import {ref} from "vue";
+import {useRouter} from 'vue-router'
+
+const router = useRouter()
+
+//计划类型
+const planType = ref([
+    {name: '临时计划', key: '1'},
+    {name: '月度计划', key: '2'},
+    {name: '年度计划', key: '3'},
+])
+
+//选择部门
+const department = ref([
+    {name: '研发部门', key: '1'},
+    {name: '业务部门', key: '2'},
+    {name: '人事部门', key: '3'},
+])
+
+//搜索表单
+const searchForm = ref({
+    planType: null, startTime: null, endTime: null, department: null, queryValue: '',
+    current: 1, size: 20, total: 0
+})
+
+//搜索框回车
+const keyUpEvent = (event) => {
+    if (event.key === "Enter") {
+        searchForm.value.current = 1;
+        getTableData()
+    }
+}
+
+//搜索
+const searchClick = () => {
+    searchForm.value.current = 1;
+    getTableData()
+}
+
+//重置搜索表单
+const resetClick = () => {
+    searchForm.value = {current: 1, size: 20, total: 0}
+}
+
+//分页被点击
+const pageChange = ({current, size}) => {
+    searchForm.value.current = current
+    searchForm.value.size = size
+    getTableData()
+}
+
+//获取数据
+const tableLoading = ref(false)
+const tableColumn = [
+    {key: 'key', name: '编号', width: '90', align: 'center'},
+    {key: 'key1', name: '计划名称'},
+    {key: 'key2', name: '计划类型', width: '120', align: 'center'},
+    {key: 'key3', name: '计划起止日期', width: '220', align: 'center'},
+    {key: 'key4', name: '计划数量', width: '120', align: 'center'},
+    {key: 'key5', name: '已完成计划', width: '120', align: 'center'},
+    {key: 'key6', name: '未完成计划', width: '100', align: 'center'},
+    {key: 'key8', name: '计划制定人', width: '100', align: 'center'},
+    {key: 'action', name: '操作', width: '130', align: 'center'},
+]
+const tableData = ref([
+    {id: 1, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 2, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 3, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 4, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+])
+
+const getTableData = () => {
+
+}
+
+//新增计划
+const addRowClick = () => {
+    router.push({
+        name: 'program-index-info'
+    })
+}
+
+//编辑预算
+const editRowClick = (row) => {
+    router.push({
+        name: 'program-index-info',
+        query: {
+            id: row.id
+        }
+    })
+}
+</script>

+ 161 - 0
src/views/program/section/form.vue

@@ -0,0 +1,161 @@
+<template>
+    <HcCard>
+        <template #header>
+            <div class="w-36">
+                <el-select v-model="searchForm.planType" block clearable placeholder="计划类型" size="large">
+                    <el-option v-for="item in planType" :label="item.name" :value="item.key"/>
+                </el-select>
+            </div>
+            <div class="w-36 ml-2">
+                <el-select v-model="searchForm.department" block clearable placeholder="选择部门" size="large">
+                    <el-option v-for="item in department" :label="item.name" :value="item.key"/>
+                </el-select>
+            </div>
+            <div class="w-36 ml-4">
+                <el-date-picker class="block" v-model="searchForm.startTime" type="month" value-format="YYYY-MM" placeholder="开始日期" clearable size="large"/>
+            </div>
+            <div class="mx-2">~</div>
+            <div class="w-36">
+                <el-date-picker class="block" v-model="searchForm.endTime" type="month" value-format="YYYY-MM" placeholder="结束日期" clearable size="large"/>
+            </div>
+            <div class="w-40 ml-2">
+                <el-input v-model="searchForm.queryValue" clearable placeholder="请输入计划名称" @keyup="keyUpEvent" size="large"/>
+            </div>
+            <div class="ml-4">
+                <el-button size="large" type="primary" @click="searchClick">
+                    <HcIcon name="search-2"/>
+                    <span>搜索</span>
+                </el-button>
+            </div>
+            <div class="ml-2">
+                <el-button size="large" @click="resetClick">
+                    <HcIcon name="close-circle"/>
+                    <span>重置</span>
+                </el-button>
+            </div>
+        </template>
+        <template #extra>
+            <el-button size="large" type="primary" hc-btn @click="addRowClick">
+                <HcIcon name="add"/>
+                <span>新增计划</span>
+            </el-button>
+        </template>
+
+        <HcTable :isIndex="false" :column="tableColumn" :datas="tableData" :loading="tableLoading">
+            <template #key1="{row}">
+                <span class="text-blue">{{row.key1}}</span>
+            </template>
+            <template #key4="{row}">
+                <span>{{row.key4}}条</span>
+            </template>
+            <template #key5="{row}">
+                <span>{{row.key5}}条</span>
+            </template>
+            <template #key6="{row}">
+                <span>{{row.key6}}条</span>
+            </template>
+            <template #action="{row,index}">
+                <el-button plain size="small" type="primary" @click="editRowClick(row)">编辑</el-button>
+                <el-button plain size="small" type="danger">删除</el-button>
+            </template>
+        </HcTable>
+
+        <template #action>
+            <HcPages :pages="searchForm" @change="pageChange"/>
+        </template>
+    </HcCard>
+</template>
+
+<script setup>
+import {ref} from "vue";
+import {useRouter} from 'vue-router'
+
+const router = useRouter()
+
+//计划类型
+const planType = ref([
+    {name: '临时计划', key: '1'},
+    {name: '月度计划', key: '2'},
+    {name: '年度计划', key: '3'},
+])
+
+//选择部门
+const department = ref([
+    {name: '研发部门', key: '1'},
+    {name: '业务部门', key: '2'},
+    {name: '人事部门', key: '3'},
+])
+
+//搜索表单
+const searchForm = ref({
+    planType: null, startTime: null, endTime: null, department: null, queryValue: '',
+    current: 1, size: 20, total: 0
+})
+
+//搜索框回车
+const keyUpEvent = (event) => {
+    if (event.key === "Enter") {
+        searchForm.value.current = 1;
+        getTableData()
+    }
+}
+
+//搜索
+const searchClick = () => {
+    searchForm.value.current = 1;
+    getTableData()
+}
+
+//重置搜索表单
+const resetClick = () => {
+    searchForm.value = {current: 1, size: 20, total: 0}
+}
+
+//分页被点击
+const pageChange = ({current, size}) => {
+    searchForm.value.current = current
+    searchForm.value.size = size
+    getTableData()
+}
+
+//获取数据
+const tableLoading = ref(false)
+const tableColumn = [
+    {key: 'key', name: '编号', width: '90', align: 'center'},
+    {key: 'key1', name: '计划名称'},
+    {key: 'key2', name: '计划类型', width: '120', align: 'center'},
+    {key: 'key3', name: '计划起止日期', width: '220', align: 'center'},
+    {key: 'key4', name: '计划数量', width: '120', align: 'center'},
+    {key: 'key5', name: '已完成计划', width: '120', align: 'center'},
+    {key: 'key6', name: '未完成计划', width: '100', align: 'center'},
+    {key: 'key8', name: '计划制定人', width: '100', align: 'center'},
+    {key: 'action', name: '操作', width: '130', align: 'center'},
+]
+const tableData = ref([
+    {id: 1, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 2, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 3, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 4, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+])
+
+const getTableData = () => {
+
+}
+
+//新增计划
+const addRowClick = () => {
+    router.push({
+        name: 'program-index-info'
+    })
+}
+
+//编辑预算
+const editRowClick = (row) => {
+    router.push({
+        name: 'program-index-info',
+        query: {
+            id: row.id
+        }
+    })
+}
+</script>

+ 161 - 0
src/views/program/section/index.vue

@@ -0,0 +1,161 @@
+<template>
+    <HcCard>
+        <template #header>
+            <div class="w-36">
+                <el-select v-model="searchForm.planType" block clearable placeholder="计划类型" size="large">
+                    <el-option v-for="item in planType" :label="item.name" :value="item.key"/>
+                </el-select>
+            </div>
+            <div class="w-36 ml-2">
+                <el-select v-model="searchForm.department" block clearable placeholder="选择部门" size="large">
+                    <el-option v-for="item in department" :label="item.name" :value="item.key"/>
+                </el-select>
+            </div>
+            <div class="w-36 ml-4">
+                <el-date-picker class="block" v-model="searchForm.startTime" type="month" value-format="YYYY-MM" placeholder="开始日期" clearable size="large"/>
+            </div>
+            <div class="mx-2">~</div>
+            <div class="w-36">
+                <el-date-picker class="block" v-model="searchForm.endTime" type="month" value-format="YYYY-MM" placeholder="结束日期" clearable size="large"/>
+            </div>
+            <div class="w-40 ml-2">
+                <el-input v-model="searchForm.queryValue" clearable placeholder="请输入计划名称" @keyup="keyUpEvent" size="large"/>
+            </div>
+            <div class="ml-4">
+                <el-button size="large" type="primary" @click="searchClick">
+                    <HcIcon name="search-2"/>
+                    <span>搜索</span>
+                </el-button>
+            </div>
+            <div class="ml-2">
+                <el-button size="large" @click="resetClick">
+                    <HcIcon name="close-circle"/>
+                    <span>重置</span>
+                </el-button>
+            </div>
+        </template>
+        <template #extra>
+            <el-button size="large" type="primary" hc-btn @click="addRowClick">
+                <HcIcon name="add"/>
+                <span>新增计划</span>
+            </el-button>
+        </template>
+
+        <HcTable :isIndex="false" :column="tableColumn" :datas="tableData" :loading="tableLoading">
+            <template #key1="{row}">
+                <span class="text-blue">{{row.key1}}</span>
+            </template>
+            <template #key4="{row}">
+                <span>{{row.key4}}条</span>
+            </template>
+            <template #key5="{row}">
+                <span>{{row.key5}}条</span>
+            </template>
+            <template #key6="{row}">
+                <span>{{row.key6}}条</span>
+            </template>
+            <template #action="{row,index}">
+                <el-button plain size="small" type="primary" @click="editRowClick(row)">编辑</el-button>
+                <el-button plain size="small" type="danger">删除</el-button>
+            </template>
+        </HcTable>
+
+        <template #action>
+            <HcPages :pages="searchForm" @change="pageChange"/>
+        </template>
+    </HcCard>
+</template>
+
+<script setup>
+import {ref} from "vue";
+import {useRouter} from 'vue-router'
+
+const router = useRouter()
+
+//计划类型
+const planType = ref([
+    {name: '临时计划', key: '1'},
+    {name: '月度计划', key: '2'},
+    {name: '年度计划', key: '3'},
+])
+
+//选择部门
+const department = ref([
+    {name: '研发部门', key: '1'},
+    {name: '业务部门', key: '2'},
+    {name: '人事部门', key: '3'},
+])
+
+//搜索表单
+const searchForm = ref({
+    planType: null, startTime: null, endTime: null, department: null, queryValue: '',
+    current: 1, size: 20, total: 0
+})
+
+//搜索框回车
+const keyUpEvent = (event) => {
+    if (event.key === "Enter") {
+        searchForm.value.current = 1;
+        getTableData()
+    }
+}
+
+//搜索
+const searchClick = () => {
+    searchForm.value.current = 1;
+    getTableData()
+}
+
+//重置搜索表单
+const resetClick = () => {
+    searchForm.value = {current: 1, size: 20, total: 0}
+}
+
+//分页被点击
+const pageChange = ({current, size}) => {
+    searchForm.value.current = current
+    searchForm.value.size = size
+    getTableData()
+}
+
+//获取数据
+const tableLoading = ref(false)
+const tableColumn = [
+    {key: 'key', name: '编号', width: '90', align: 'center'},
+    {key: 'key1', name: '计划名称'},
+    {key: 'key2', name: '计划类型', width: '120', align: 'center'},
+    {key: 'key3', name: '计划起止日期', width: '220', align: 'center'},
+    {key: 'key4', name: '计划数量', width: '120', align: 'center'},
+    {key: 'key5', name: '已完成计划', width: '120', align: 'center'},
+    {key: 'key6', name: '未完成计划', width: '100', align: 'center'},
+    {key: 'key8', name: '计划制定人', width: '100', align: 'center'},
+    {key: 'action', name: '操作', width: '130', align: 'center'},
+]
+const tableData = ref([
+    {id: 1, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 2, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 3, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+    {id: 4, key: 'JH-01', key1: '2023年5月度计划', key2: '临时计划', key3: '2022-07-01~2027-04-12', key4: '36', key5: '30', key6: '6', key8: '张三'},
+])
+
+const getTableData = () => {
+
+}
+
+//新增计划
+const addRowClick = () => {
+    router.push({
+        name: 'program-index-info'
+    })
+}
+
+//编辑预算
+const editRowClick = (row) => {
+    router.push({
+        name: 'program-index-info',
+        query: {
+            id: row.id
+        }
+    })
+}
+</script>