feat(glt): 添加水票管理功能模块

- 创建水票模板API接口和数据模型
- 实现水票模板的增删改查功能
- 创建用户水票API接口和数据模型
- 实现用户水票的增删改查功能
- 添加水票消费日志管理功能
- 实现水票释放管理功能
- 开发水票模板管理页面界面
- 创建水票编辑弹窗组件
- 集成表格展示和搜索功能
- 实现批量操作和删除确认功能
This commit is contained in:
2026-02-04 00:54:05 +08:00
parent dde5f20402
commit 513059380b
20 changed files with 3028 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<!-- 搜索表单 -->
<template>
<a-space :size="10" style="flex-wrap: wrap">
<a-button type="primary" class="ele-btn-icon" @click="add">
<template #icon>
<PlusOutlined />
</template>
<span>添加</span>
</a-button>
</a-space>
</template>
<script lang="ts" setup>
import { PlusOutlined } from '@ant-design/icons-vue';
import type { GradeParam } from '@/api/user/grade/model';
import { watch } from 'vue';
const props = withDefaults(
defineProps<{
// 选中的角色
selection?: [];
}>(),
{}
);
const emit = defineEmits<{
(e: 'search', where?: GradeParam): void;
(e: 'add'): void;
(e: 'remove'): void;
(e: 'batchMove'): void;
}>();
// 新增
const add = () => {
emit('add');
};
watch(
() => props.selection,
() => {}
);
</script>