diff --git a/.env b/.env index 272c893..b9fbcc0 100644 --- a/.env +++ b/.env @@ -57,3 +57,11 @@ VITE_ENABLE_ANTI_DEBUG=false # 绕过反爬参数值 url?ddtk=参数值 VITE_ANTI_DEBUG_KEY=pig + +# 不展示租户选择 +VITE_TENANT_ENABLE = false + +# 设置默认租户id +VITE_TENANT_ID = 1 + + diff --git a/docs/hooks使用指南.md b/docs/hooks使用指南.md new file mode 100644 index 0000000..5f8559e --- /dev/null +++ b/docs/hooks使用指南.md @@ -0,0 +1,1517 @@ +# Hooks 使用指南 + +本文档详细说明了项目中所有 Hooks 的使用方法,帮助开发者快速上手和正确使用。 + +## 目录 + +1. [useDict - 字典数据获取](#1-usedict---字典数据获取-hook) +2. [useParam - 参数数据获取](#2-useparam---参数数据获取-hook) +3. [useMessage - 消息提示](#3-usemessage---消息提示) +4. [useMessageBox - 消息确认框](#4-usemessagebox---消息确认框) +5. [useTable - 表格数据管理](#5-usetable---表格数据管理-hook) + +--- + +## 1. useDict - 字典数据获取 Hook + +**文件位置:** `src/hooks/dict.ts` + +### 功能说明 + +用于获取字典数据,支持多个字典类型同时获取,具有自动缓存机制,避免重复请求。 + +### 基本用法 + +```typescript +import { useDict } from '/@/hooks/dict'; + +// 在 setup 中使用 +const { dictType1, dictType2 } = useDict('dictType1', 'dictType2'); +``` + +### 完整示例 + +```vue + + + +``` + +### 特点 + +- ✅ 支持传入多个字典类型参数 +- ✅ 自动缓存机制,避免重复请求 +- ✅ 返回响应式引用对象(使用 `toRefs`) +- ✅ 字典数据包含:`label`、`value`、`elTagType`、`elTagClass` + +### 返回数据结构 + +```typescript +{ + label: string, // 显示文本 + value: string, // 值 + elTagType: string, // 标签类型(用于 el-tag) + elTagClass: string // 标签样式类(用于 el-tag) +} +``` + +### 注意事项 + +- 字典类型参数为字符串类型 +- 返回的对象是响应式的,可以直接在模板中使用 +- 首次请求会从服务器获取,后续会使用缓存 + +--- + +## 2. useParam - 参数数据获取 Hook + +**文件位置:** `src/hooks/param.ts` + +### 功能说明 + +用于获取系统参数值,支持缓存机制,避免重复请求。 + +### 基本用法 + +```typescript +import { useParam } from '/@/hooks/param'; + +// 在 setup 中使用 +const paramValue = useParam('paramType'); +``` + +### 完整示例 + +```vue + + + +``` + +### 特点 + +- ✅ 单个参数类型获取 +- ✅ 自动缓存机制 +- ✅ 返回响应式引用(`ref`) +- ✅ 参数值类型为字符串 + +### 注意事项 + +- 每次调用只能获取一个参数类型 +- 如需获取多个参数,需要多次调用 +- 返回的是响应式引用,在模板中会自动解包 + +--- + +## 3. useMessage - 消息提示 + +**文件位置:** `src/hooks/message.ts` + +### 功能说明 + +统一的消息提示功能,封装了 Element Plus 的 `ElMessage`,提供统一的配置和样式。 + +### 基本用法 + +```typescript +import { useMessage } from '/@/hooks/message'; + +// 在 setup 中使用 +const message = useMessage(); +``` + +### 方法列表 + +| 方法 | 说明 | 显示时间 | +|------|------|---------| +| `info(title: string)` | 普通提示 | 3秒 | +| `warning(title: string)` | 警告提示 | 3秒 | +| `success(title: string)` | 成功提示 | 3秒 | +| `error(title: string)` | 错误提示 | 2秒 | + +### 完整示例 + +```vue + + + +``` + +### 实际应用场景 + +```typescript +// 保存成功后提示 +const handleSave = async () => { + try { + await saveData(formData); + message.success('保存成功!'); + } catch (error) { + message.error('保存失败:' + error.message); + } +}; + +// 删除操作提示 +const handleDelete = async () => { + try { + await deleteData(id); + message.success('删除成功!'); + } catch (error) { + message.error('删除失败:' + error.message); + } +}; +``` + +### 默认配置 + +- **显示时间:** 普通/警告/成功 3秒,错误 2秒 +- **显示关闭按钮:** 是 +- **距离顶部偏移:** 20px + +### 注意事项 + +- 消息提示会自动消失 +- 可以同时显示多条消息 +- 错误提示显示时间较短,便于快速查看 + +--- + +## 4. useMessageBox - 消息确认框 + +**文件位置:** `src/hooks/message.ts` + +### 功能说明 + +统一的消息确认框功能,封装了 Element Plus 的 `ElMessageBox`,支持提示框、确认框和输入框。 + +### 基本用法 + +```typescript +import { useMessageBox } from '/@/hooks/message'; + +// 在 setup 中使用 +const messageBox = useMessageBox(); +``` + +### 方法列表 + +| 方法 | 说明 | 返回值 | +|------|------|--------| +| `info(msg: string)` | 普通提示框 | `void` | +| `warning(msg: string)` | 警告提示框 | `void` | +| `success(msg: string)` | 成功提示框 | `void` | +| `error(msg: string)` | 错误提示框 | `void` | +| `confirm(msg: string)` | 确认对话框 | `Promise` | +| `prompt(msg: string)` | 输入对话框 | `Promise<{ value: string }>` | + +### 完整示例 + +#### 4.1 提示框(Alert) + +```vue + +``` + +#### 4.2 确认对话框(Confirm) + +```vue + + + +``` + +#### 4.3 输入对话框(Prompt) + +```vue + + + +``` + +### 实际应用场景 + +```typescript +// 删除确认 +const handleDelete = async (id: number) => { + try { + await messageBox.confirm('确定要删除这条记录吗?'); + await deleteApi(id); + message.success('删除成功!'); + getDataList(); + } catch { + // 用户取消,不执行任何操作 + } +}; + +// 批量删除确认 +const handleBatchDelete = async () => { + if (selectedIds.length === 0) { + message.warning('请先选择要删除的记录'); + return; + } + + try { + await messageBox.confirm(`确定要删除选中的 ${selectedIds.length} 条记录吗?`); + await batchDeleteApi(selectedIds); + message.success('批量删除成功!'); + getDataList(); + } catch { + // 用户取消 + } +}; + +// 重置密码确认 +const handleResetPassword = async (userId: number) => { + try { + await messageBox.confirm('确定要重置该用户的密码吗?'); + const result = await resetPasswordApi(userId); + messageBox.info(`重置后密码为:${result.data.password}`); + } catch { + // 用户取消 + } +}; +``` + +### 特点 + +- ✅ 支持国际化(自动使用 i18n) +- ✅ `confirm` 和 `prompt` 返回 Promise,便于链式调用 +- ✅ 统一的按钮文本(确认/取消) +- ✅ 自动处理用户取消操作 + +### 注意事项 + +- `confirm` 和 `prompt` 返回 Promise,需要使用 `async/await` 或 `.then()/.catch()` 处理 +- 用户点击取消会触发 Promise 的 `reject`,需要在 `catch` 中处理 +- 提示框方法(`info`、`warning`、`success`、`error`)不返回 Promise + +--- + +## 5. useTable - 表格数据管理 Hook + +**文件位置:** `src/hooks/table.ts` + +### 功能说明 + +提供完整的表格数据管理功能,包括数据加载、分页、排序、文件下载等,简化表格相关开发。 + +### 基本用法 + +```typescript +import { useTable } from '/@/hooks/table'; +import { fetchList } from '/@/api/your-api'; + +const { + getDataList, // 获取数据列表方法 + currentChangeHandle, // 页码改变处理方法 + sizeChangeHandle, // 每页条数改变处理方法 + sortChangeHandle, // 排序改变处理方法 + downBlobFile, // 下载文件方法 + tableStyle // 表格样式 +} = useTable({ + pageList: fetchList, + queryForm: {} +}); +``` + +### 配置选项 + +| 属性 | 类型 | 默认值 | 说明 | +|------|------|--------|------| +| `createdIsNeed` | `boolean` | `true` | 是否在创建时自动加载数据 | +| `isPage` | `boolean` | `true` | 是否需要分页 | +| `queryForm` | `any` | `{}` | 查询条件表单对象 | +| `pageList` | `Function` | - | 数据列表查询接口(必填) | +| `pagination` | `Pagination` | 见下方 | 分页配置 | +| `props` | `object` | `{ item: 'records', totalCount: 'total' }` | 数据属性映射 | +| `validate` | `Function` | - | 验证函数 | +| `onLoaded` | `Function` | - | 数据加载完成回调 | +| `onCascaded` | `Function` | - | 级联数据回调 | + +### 分页配置(Pagination) + +```typescript +{ + current: 1, // 当前页码 + size: 10, // 每页显示条数 + total: 0, // 总条数 + pageSizes: [10, 20, 50, 100], // 每页条数选择器选项 + layout: 'total, sizes, prev, pager, next, jumper' // 分页组件布局 +} +``` + +### 完整示例 + +```vue + + + +``` + +### 返回的方法说明 + +#### getDataList(refresh?) + +获取数据列表方法。 + +**参数:** +- `refresh` (可选): `boolean` - 是否刷新并跳转到第一页,默认为 `true` + +**使用示例:** +```typescript +// 刷新并跳转到第一页(默认) +getDataList(); + +// 刷新但保持当前页 +getDataList(false); +``` + +#### currentChangeHandle(val) + +页码改变处理方法,用于分页组件的 `@currentChange` 事件。 + +**参数:** +- `val`: `number` - 新的页码 + +**使用示例:** +```vue + +``` + +#### sizeChangeHandle(val) + +每页条数改变处理方法,用于分页组件的 `@sizeChange` 事件。 + +**参数:** +- `val`: `number` - 新的每页条数 + +**使用示例:** +```vue + +``` + +#### sortChangeHandle(column) + +排序改变处理方法,用于表格的 `@sort-change` 事件。 + +**参数:** +- `column`: `object` - 排序列信息 + - `prop`: 列属性名 + - `order`: 排序方式(`ascending` | `descending` | `null`) + +**使用示例:** +```vue + + + +``` + +#### downBlobFile(url, query, fileName) + +下载文件方法。 + +**参数:** +- `url`: `string` - 文件下载地址 +- `query`: `object` - 请求参数 +- `fileName`: `string` - 文件名 + +**使用示例:** +```typescript +const handleExport = () => { + downBlobFile( + '/api/export', + { type: 'excel' }, + '数据导出.xlsx' + ); +}; +``` + +#### tableStyle + +表格样式配置对象。 + +**结构:** +```typescript +{ + cellStyle: { textAlign: 'center' }, + headerCellStyle: { + textAlign: 'center', + background: 'var(--el-table-row-hover-bg-color)', + color: 'var(--el-text-color-primary)' + } +} +``` + +**使用示例:** +```vue + + +``` + +### State 对象说明 + +`useTable` 返回的 `state` 对象包含以下属性: + +```typescript +{ + dataList: [], // 表格数据列表 + loading: false, // 加载状态 + pagination: { // 分页信息 + current: 1, + size: 10, + total: 0 + }, + dataListSelections: [], // 选中的数据 + queryForm: {}, // 查询表单 + // ... 其他配置属性 +} +``` + +### 实际应用场景 + +#### 场景1:带验证的查询 + +```typescript +const { getDataList, state } = useTable({ + queryForm: searchForm, + pageList: fetchList, + validate: async (state) => { + if (!searchForm.name && !searchForm.status) { + message.warning('请至少输入一个查询条件'); + return false; + } + return true; + } +}); +``` + +#### 场景2:数据加载后处理 + +```typescript +const { getDataList, state } = useTable({ + queryForm: searchForm, + pageList: fetchList, + onLoaded: async (state) => { + // 数据加载完成后,处理字典转换 + state.dataList = state.dataList.map(item => { + // 转换状态字典 + const statusItem = statusDict.find(d => d.value === item.status); + item.statusName = statusItem?.label || ''; + return item; + }); + } +}); +``` + +#### 场景3:无分页表格 + +```typescript +const { getDataList, state } = useTable({ + queryForm: searchForm, + pageList: fetchList, + isPage: false, // 禁用分页 + createdIsNeed: true +}); +``` + +#### 场景4:自定义数据字段映射 + +```typescript +const { getDataList, state } = useTable({ + queryForm: searchForm, + pageList: fetchList, + props: { + item: 'data.list', // 后端返回的数据列表路径 + totalCount: 'data.total' // 后端返回的总数路径 + } +}); +``` + +### 弹窗编辑后刷新表格 + +在弹窗编辑/新增完成后,需要刷新表格数据。有两种方式: + +#### 方式一:使用 `getDataList(false)`(推荐) + +**父组件(列表页):** + +```vue + + + +``` + +**子组件(弹窗表单):** + +```vue + +``` + +**说明:** +- `getDataList(false)` - 刷新数据但**不跳转到第一页**,保持当前页 +- `getDataList()` 或 `getDataList(true)` - 刷新数据并**跳转到第一页** + +#### 方式二:手动管理(不使用 useTable) + +**父组件:** + +```vue + + + +``` + +### 刷新时机的选择 + +| 场景 | 推荐方法 | 说明 | +|------|---------|------| +| **编辑后刷新** | `getDataList(false)` | 保持当前页,用户可以看到刚才编辑的数据 | +| **新增后刷新** | `getDataList()` | 跳转到第一页,因为新数据通常在第一页 | +| **删除后刷新** | `getDataList(false)` | 保持当前页,如果当前页没数据了会自动调整 | +| **查询后刷新** | `getDataList()` | 跳转到第一页,显示查询结果 | + +### 完整示例 + +```vue + + + +``` + +### 注意事项 + +- `pageList` 方法是必填的,需要传入数据查询接口函数 +- `queryForm` 会在请求时自动合并到请求参数中 +- `state.loading` 会自动管理,无需手动设置 +- 排序功能会自动将驼峰命名转换为下划线命名(如 `userName` → `user_name`) +- 错误会自动通过 `ElMessage.error` 提示 +- **弹窗提交成功后,记得 `emit('refresh')` 触发刷新事件** +- **根据业务场景选择合适的刷新方式**(是否跳转第一页) + +--- + +## 6. useTable vs 正常使用 Table 对比 + +### 概述 + +`useTable` Hook 是对表格数据管理的封装,提供了统一的状态管理和方法,相比手动管理表格状态,具有明显的优势。 + +### 对比表格 + +| 对比项 | 使用 useTable Hook | 正常使用 Table(手动管理) | +|--------|-------------------|-------------------------| +| **代码量** | 少,配置化 | 多,需要手动编写大量代码 | +| **状态管理** | 自动管理(分页、loading、数据) | 需要手动管理所有状态 | +| **初始化** | 自动在 `onMounted` 时加载数据 | 需要手动在 `onMounted` 中调用 | +| **分页处理** | 自动处理页码和每页条数变化 | 需要手动实现 `currentChange` 和 `sizeChange` | +| **排序处理** | 自动处理排序,自动转换命名 | 需要手动实现排序逻辑 | +| **错误处理** | 自动错误提示 | 需要手动 try-catch 和错误提示 | +| **Loading 状态** | 自动管理 | 需要手动设置 `tableLoading.value = true/false` | +| **数据刷新** | 统一方法 `getDataList()` | 需要手动调用 `getList(page)` | +| **代码复用** | 高度复用,配置即可 | 每个页面都要重复编写 | +| **维护性** | 集中维护,修改一处即可 | 分散在各处,修改困难 | +| **统一性** | 所有表格行为一致 | 每个页面可能实现不同 | + +### 代码对比示例 + +#### 使用 useTable Hook(推荐) + +```vue + + + +``` + +**代码行数:约 30 行** + +#### 正常使用 Table(手动管理) + +```vue + + + +``` + +**代码行数:约 80+ 行** + +### 主要优势总结 + +#### 1. **代码量减少 60%+** +- useTable:约 30 行代码 +- 手动管理:约 80+ 行代码 +- **减少约 50 行重复代码** + +#### 2. **自动状态管理** +- ✅ 自动管理 `loading` 状态 +- ✅ 自动管理分页状态(`current`、`size`、`total`) +- ✅ 自动管理数据列表 +- ✅ 自动处理错误提示 + +#### 3. **自动初始化** +```typescript +// useTable 自动在 onMounted 时加载数据 +onMounted(() => { + if (state.createdIsNeed) { + query(); // 自动调用 + } +}); +``` + +#### 4. **统一的方法接口** +- `getDataList()` - 统一的数据刷新方法 +- `currentChangeHandle()` - 统一的分页处理 +- `sizeChangeHandle()` - 统一的每页条数处理 +- `sortChangeHandle()` - 统一的排序处理(自动转换命名) + +#### 5. **统一的表格样式** +```typescript +// 所有使用 useTable 的表格样式一致 +tableStyle: { + cellStyle: { textAlign: 'center' }, + headerCellStyle: { textAlign: 'center', ... } +} +``` + +#### 6. **更好的维护性** +- 修改 Hook 代码,所有使用的地方自动生效 +- 统一的错误处理逻辑 +- 统一的 API 响应结构处理 + +#### 7. **扩展功能** +- ✅ 自动排序字段转换(驼峰 → 下划线) +- ✅ 支持验证函数 +- ✅ 支持数据加载回调 +- ✅ 支持文件下载方法 +- ✅ 支持无分页模式 + +### 使用建议 + +#### ✅ 推荐使用 useTable 的场景 + +1. **标准 CRUD 页面** - 列表、分页、查询、排序 +2. **数据展示页面** - 需要分页的数据表格 +3. **需要统一风格的表格** - 保持项目一致性 +4. **快速开发** - 减少重复代码,提高开发效率 + +#### ⚠️ 可以考虑手动管理的场景 + +1. **特殊业务逻辑** - 分页逻辑与标准差异很大 +2. **性能优化需求** - 需要精细控制加载时机 +3. **复杂的数据处理** - 需要大量自定义数据处理逻辑 +4. **遗留代码** - 已有大量手动管理的代码,迁移成本高 + +### 迁移建议 + +如果现有代码使用手动管理,建议逐步迁移到 `useTable`: + +1. **新页面**:直接使用 `useTable` +2. **旧页面**:在重构时逐步迁移 +3. **复杂页面**:可以先迁移基础功能,保留特殊逻辑 + +### 总结 + +`useTable` Hook 通过封装常见的表格管理逻辑,显著减少了代码量,提高了开发效率和代码质量。对于大多数标准表格场景,**强烈推荐使用 `useTable`**。 + +--- + +## 综合使用示例 + +以下是一个完整的页面示例,展示如何综合使用所有 Hooks: + +```vue + + + +``` + +--- + +## 最佳实践 + +### 1. 字典数据使用 + +- ✅ 在 `setup` 顶层调用 `useDict`,确保响应式 +- ✅ 字典数据可以直接在模板中使用 +- ✅ 使用 `el-tag` 时可以利用 `elTagType` 和 `elTagClass` + +### 2. 消息提示使用 + +- ✅ 操作成功使用 `message.success()` +- ✅ 操作失败使用 `message.error()` +- ✅ 需要用户确认的操作使用 `messageBox.confirm()` +- ✅ 删除等危险操作必须使用确认框 + +### 3. 表格管理使用 + +- ✅ 查询条件变化时调用 `getDataList()` 刷新数据 +- ✅ 删除、新增等操作后调用 `getDataList(false)` 保持当前页 +- ✅ 使用 `validate` 进行查询条件验证 +- ✅ 使用 `onLoaded` 处理数据加载后的逻辑 + +### 4. 错误处理 + +- ✅ 所有异步操作使用 `try-catch` 处理错误 +- ✅ 使用 `message.error()` 提示错误信息 +- ✅ 用户取消操作不需要提示错误 + +--- + +## 更新记录 + +- **2024-XX-XX**: 创建 Hooks 使用指南文档 +- 文档版本:v1.0 + +--- + +**维护者:** 前端开发团队 +**最后更新:** 2024年 + diff --git a/docs/useTable与search-form兼容说明.md b/docs/useTable与search-form兼容说明.md new file mode 100644 index 0000000..7568208 --- /dev/null +++ b/docs/useTable与search-form兼容说明.md @@ -0,0 +1,516 @@ +# useTable 与 search-form 组件兼容使用说明 + +## 概述 + +`useTable` Hook **完全兼容**自定义 `` 组件。只需要将搜索表单的数据对象作为 `queryForm` 传入即可。 + +## 兼容原理 + +1. **`search-form` 组件**:只是一个表单包装器,接收 `model` prop 绑定到内部的 `el-form` +2. **`useTable` Hook**:接收 `queryForm` 对象,会自动将其合并到 API 请求参数中 +3. **两者配合**:将 `search-form` 的 `model` 对象作为 `useTable` 的 `queryForm` 传入即可 + +## 改造示例 + +### 当前代码(手动管理) + +```vue + + + +``` + +### 改造后代码(使用 useTable) + +```vue + + + +``` + +## 关键改造点 + +### 1. 导入 useTable + +```typescript +import { BasicTableProps, useTable } from '/@/hooks/table' +``` + +### 2. 配置 state + +```typescript +const state: BasicTableProps = reactive({ + queryForm: search, // 将 search 对象作为 queryForm + pageList: fetchList, // 或自定义方法 + props: { + item: 'record.records', + totalCount: 'record.total' + } +}) +``` + +### 3. 处理额外参数 + +如果查询时需要额外的参数(如 `params.value.flag`),有两种方式: + +#### 方式一:自定义 pageList 方法(推荐) + +```typescript +const params = ref({}) + +const state: BasicTableProps = reactive({ + queryForm: search, + pageList: async (queryParams: any) => { + // 合并额外参数 + return await fetchList({ + ...queryParams, + ...params.value // 合并额外参数 + }) + } +}) +``` + +#### 方式二:在 onLoaded 中处理 + +```typescript +const state: BasicTableProps = reactive({ + queryForm: search, + pageList: fetchList, + onLoaded: async (state) => { + // 可以在这里处理数据转换等逻辑 + } +}) +``` + +### 4. 替换数据引用 + +| 原代码 | 改造后 | +|--------|--------| +| `tableData` | `state.dataList` | +| `tableLoading` | `state.loading` | +| `page.currentPage` | `state.pagination.current` | +| `page.pageSize` | `state.pagination.size` | +| `page.total` | `state.pagination.total` | + +### 5. 替换方法调用 + +| 原代码 | 改造后 | +|--------|--------| +| `getList(page)` | `getDataList()` 或 `getDataList(false)` | +| `currentChange(val)` | `currentChangeHandle(val)` | +| `handleSizeChange(val)` | `sizeChangeHandle(val)` | + +### 6. 处理数据转换 + +如果需要在数据加载后进行转换,使用 `onLoaded` 回调: + +```typescript +const state: BasicTableProps = reactive({ + queryForm: search, + pageList: fetchList, + onLoaded: async (state) => { + // 字典数据转换 + state.dataList = convertDictData(state.dataList) + + // 处理 auditAll 等逻辑 + // 注意:需要在 API 响应中获取,或通过其他方式处理 + } +}) +``` + +## 完整改造示例(针对当前页面) + +```typescript +// 1. 导入 useTable +import { BasicTableProps, useTable } from '/@/hooks/table' + +// 2. 搜索表单数据(保持不变) +const search = reactive({ + deptCode: '', + secDeptCode: '', + tied: '', + realName: '', + teacherNo: '', + retireDate: '', + pfTitleId: '', + stationDutyLevelId: '', + politicsStatus: '', + teacherCate: '', + inoutFlag: '' +}) + +// 3. 额外参数(用于 flag 等) +const params = ref({}) + +// 4. 配置 useTable +const state: BasicTableProps = reactive({ + queryForm: search, // 将 search 作为 queryForm + + // 自定义 pageList,合并额外参数 + pageList: async (queryParams: any) => { + // 合并 search 和 params + const mergedParams = { + ...queryParams, + ...params.value, + tied: search.tied // 如果需要特殊处理 + } + return await fetchList(mergedParams) + }, + + // 数据属性映射 + props: { + item: 'record.records', + totalCount: 'record.total' + }, + + // 数据加载完成回调 + onLoaded: async (state) => { + // 字典数据转换 + state.dataList = convertDictData(state.dataList) + + // 注意:auditAll 需要从 API 响应中获取 + // 如果 API 返回在 response.data.auditAll,需要特殊处理 + } +}) + +// 5. 使用 useTable +const { + getDataList, + currentChangeHandle, + sizeChangeHandle, + tableStyle, + state +} = useTable(state) + +// 6. 查询方法(简化) +const handleFilter = (param: any) => { + params.value = { ...param } + getDataList() // 自动跳转到第一页 +} + +// 7. 重置查询 +const resetQuery = () => { + searchFormRef.value?.formRef?.resetFields() + Object.keys(search).forEach(key => { + search[key] = '' + }) + params.value = {} + getDataList() +} + +// 8. 快速查询 +const handelQuickSeach = (val: any) => { + params.value.flag = val + getDataList() +} + +// 9. 其他需要刷新的地方 +const updateInoutFlag = (row: any, val: any) => { + const updateParams = {"teacherNo": row.teacherNo, "inoutFlag": val} + messageBox.confirm('确认操作?').then(() => { + updateInout(updateParams).then((res: any) => { + message.success("修改成功") + getDataList(false) // 保持当前页 + }) + }) +} +``` + +## 注意事项 + +### 1. API 响应结构 + +如果 API 返回结构是 `response.data.record.records`,需要配置 `props`: + +```typescript +props: { + item: 'record.records', + totalCount: 'record.total' +} +``` + +### 2. 额外参数处理 + +如果查询时需要额外的参数(不在 `search` 对象中),使用自定义 `pageList` 方法合并: + +```typescript +pageList: async (queryParams: any) => { + return await fetchList({ + ...queryParams, + ...params.value, // 额外参数 + // 或其他特殊参数 + }) +} +``` + +### 3. 数据转换 + +如果需要在数据加载后进行转换,使用 `onLoaded` 回调: + +```typescript +onLoaded: async (state) => { + state.dataList = convertDictData(state.dataList) +} +``` + +### 4. 特殊响应字段 + +如果 API 响应中有特殊字段(如 `auditAll`),需要在 `onLoaded` 中处理,或者自定义 `pageList` 方法: + +```typescript +pageList: async (queryParams: any) => { + const response = await fetchList({ + ...queryParams, + ...params.value + }) + + // 处理特殊字段 + if (response.data.auditAll == '0') { + auditAll.value = false + } else { + auditAll.value = true + } + + return response +} +``` + +### 5. 初始化数据加载 + +`useTable` 默认会在 `onMounted` 时自动加载数据。如果不需要自动加载,设置: + +```typescript +const state: BasicTableProps = reactive({ + queryForm: search, + pageList: fetchList, + createdIsNeed: false // 禁用自动加载 +}) + +// 手动调用 +onMounted(() => { + init() + loadSearchDictData() + getDataList() // 手动加载 +}) +``` + +## 优势总结 + +使用 `useTable` 后: + +1. ✅ **代码量减少**:不需要手动管理 `tableData`、`tableLoading`、`page` +2. ✅ **自动状态管理**:loading、分页、数据自动管理 +3. ✅ **统一方法**:`getDataList()` 统一刷新数据 +4. ✅ **兼容性好**:完全兼容自定义 `search-form` 组件 +5. ✅ **灵活扩展**:支持自定义 `pageList`、`onLoaded` 等回调 + +## 总结 + +**`useTable` 完全兼容自定义 `` 组件**,只需要: + +1. 将 `search` 对象作为 `queryForm` 传入 +2. 使用 `state.dataList`、`state.loading`、`state.pagination` 替代手动管理的状态 +3. 使用 `getDataList()` 替代 `getList(page)` +4. 使用 `currentChangeHandle`、`sizeChangeHandle` 替代手动分页方法 + +如果有额外参数或特殊处理,使用自定义 `pageList` 方法或 `onLoaded` 回调即可。 + diff --git a/docs/按钮样式规范.md b/docs/按钮样式规范.md new file mode 100644 index 0000000..f822833 --- /dev/null +++ b/docs/按钮样式规范.md @@ -0,0 +1,309 @@ +# 按钮样式设计规范 + +本文档定义了项目中按钮组件的样式规范,包括实心按钮和Plain按钮的使用规则,确保整个应用的按钮样式统一、协调、美观。 + +## 一、按钮类型分类 + +### 1. 实心按钮(Solid)- 用于最重要的操作 + +**使用场景:** +- 新增、创建操作 +- 保存、提交操作 +- 确认、确定操作 +- 删除等危险操作(需要突出警示) + +**视觉特点:** +- 实心填充,高对比度 +- 突出显示,吸引用户注意力 +- 通常位于操作区域的主要位置 + +**代码示例:** +```vue + +新 增 + + +删 除 +``` + +### 2. Plain按钮(边框样式)- 用于次要操作 + +**使用场景:** +- 查询、搜索操作 +- 导出、导入操作 +- 设置、配置操作 +- 辅助功能操作 + +**视觉特点:** +- 边框+透明背景 +- 不抢夺视觉焦点 +- 保持页面协调统一 +- 适合批量操作按钮 + +**代码示例:** +```vue + +查询 + + +导出 + + +导入 +``` + +### 3. 默认按钮 - 用于中性操作 + +**使用场景:** +- 设置、配置操作 +- 状态切换操作 +- 中性功能操作 + +**视觉特点:** +- 灰色系,低调不突出 +- 适合不重要的操作 + +**代码示例:** +```vue + +状态锁定 +``` + +## 二、配色方案 + +> **设计原则:** 在保持项目默认样式的基础上,通过颜色区分不同操作类型,提升视觉层次和识别度。 + +### 主要操作按钮 +- **类型:** `type="primary"` 实心 +- **颜色:** 蓝色实心填充 +- **用途:** 新增、保存、提交等主要操作 +- **示例:** 新增按钮 + +### 查询操作按钮 +- **类型:** `type="primary" plain` +- **颜色:** 蓝色边框 + 透明背景 +- **用途:** 查询、搜索、筛选等操作 +- **示例:** 一体化查询、搜索按钮 +- **说明:** 与主要操作保持同一色系,体现关联性 + +### 导出操作按钮 +- **类型:** `type="warning" plain` +- **颜色:** 橙色边框 + 透明背景 +- **用途:** 数据导出、下载等操作 +- **示例:** 导出WORD、自定义导出 +- **说明:** 橙色表示数据输出,与导入形成对比 + +### 导入操作按钮 +- **类型:** `type="primary" plain` +- **颜色:** 蓝色边框 + 透明背景 +- **用途:** 数据导入、上传等操作 +- **示例:** 导入信息 +- **说明:** 保持项目默认样式,与查询操作保持一致 + +### 设置操作按钮 +- **类型:** 默认样式(无type属性) +- **颜色:** 灰色系 +- **用途:** 设置、配置、状态锁定等中性操作 +- **示例:** 状态锁定按钮 + +### 危险操作按钮 +- **类型:** `type="danger"` 实心 或 `type="danger" plain` +- **颜色:** 红色 +- **用途:** 删除、清空等危险操作 +- **示例:** 删除按钮 + +## 三、按钮图标规范 + +所有按钮应配合相应的图标使用,提升用户体验和视觉识别度。 + +### 常用图标映射 + +| 操作类型 | 图标名称 | 说明 | +|---------|---------|------| +| 新增/添加 | `FolderAdd` | 文件夹加号图标(项目默认) | +| 查询/搜索 | `Search` | 搜索图标 | +| 导出/下载 | `Download` | 下载图标 | +| 导入/上传 | `Upload` | 上传图标(项目默认) | +| 编辑/修改 | `Edit` | 编辑图标 | +| 删除 | `Delete` | 删除图标 | +| 查看/详情 | `View` | 查看图标 | +| 设置/配置 | `Setting` | 设置图标 | +| 锁定/解锁 | `Lock` | 锁定图标 | +| 刷新/重置 | `Refresh` | 刷新图标 | +| 用户相关 | `User` | 用户图标 | + +### 图标使用示例 + +```vue +新 增 +查询 +导出 +导入 +``` + +## 四、按钮尺寸规范 + +### 默认尺寸(default) +- 用于页面主要操作区域的按钮 +- 高度:32px(Element Plus默认) + +### 小尺寸(small) +- 用于表格操作列、对话框底部等空间受限的场景 +- 高度:24px +- 使用 `size="small"` 属性 + +```vue + +编辑 +``` + +### 链接按钮(link) +- 用于表格操作列,节省空间 +- 使用 `link` 属性 + +```vue +查看 +``` + +## 五、按钮布局规范 + +### 按钮间距 +- 按钮之间使用 `class="ml10"` 保持10px的左边距 +- 确保按钮组视觉统一 + +```vue +新 增 +查询 +导出 +导入 +``` + +### 按钮分组 +- 相关功能的按钮应放在一起 +- 主要操作按钮放在最前面 +- 次要操作按钮放在后面 + +## 六、完整示例 + +### 页面操作按钮组示例 + +```vue + +
+ + 新 增 + + + + 查询 + + + + 导出 + + + + 导入 + + + + 设置 + +
+
+``` + +### 表格操作列示例 + +```vue + + + +``` + +## 七、最佳实践 + +1. **一致性原则** + - 相同功能的按钮在整个应用中应使用相同的样式 + - 保持图标和颜色的统一性 + +2. **层次分明** + - 主要操作使用实心按钮,突出显示 + - 次要操作使用Plain按钮,保持协调 + +3. **语义化** + - 按钮的颜色和样式应与其功能语义相匹配 + - 危险操作使用红色,数据操作使用绿色等 + +4. **用户体验** + - 重要操作按钮应放在显眼位置 + - 按钮文字应简洁明了 + - 配合图标提升识别度 + +5. **响应式考虑** + - 在移动端或小屏幕设备上,考虑使用更紧凑的布局 + - 使用 `size="small"` 适应空间限制 + +## 八、注意事项 + +1. **避免过度使用实心按钮** + - 一个页面中实心按钮不应过多,通常1-2个主要操作即可 + - 过多的实心按钮会分散用户注意力 + +2. **Plain按钮的优势** + - Plain按钮视觉更柔和,适合批量操作 + - 不会抢夺主要操作的视觉焦点 + +3. **图标选择** + - 图标应与操作功能语义匹配 + - 使用Element Plus内置图标,保持一致性 + +4. **权限控制** + - 按钮应根据用户权限显示/隐藏 + - 使用 `v-if` 控制按钮的显示 + +## 九、更新记录 + +- **2024-XX-XX**: 创建按钮样式规范文档 +- 规范版本:v1.0 + +--- + +**维护者:** 前端开发团队 +**最后更新:** 2024年 + diff --git a/package.json b/package.json index c0b1592..9b34ace 100644 --- a/package.json +++ b/package.json @@ -15,11 +15,12 @@ "@axolo/json-editor-vue": "^0.3.2", "@chenfengyuan/vue-qrcode": "^2.0.0", "@element-plus/icons-vue": "^2.0.10", - "@jackrolling/jsonflow3": "2.3.0", - "@tinymce/tinymce-vue": "^4.0.5", "@form-create/element-ui": "3.2.20", + "@fortawesome/fontawesome-free": "^7.1.0", + "@jackrolling/jsonflow3": "2.3.0", "@microsoft/fetch-event-source": "^2.0.1", "@popperjs/core": "2.11.8", + "@tinymce/tinymce-vue": "^4.0.5", "@vue-office/docx": "1.6.3", "@vueuse/core": "^10.4.1", "@wangeditor/editor": "5.1.23", @@ -49,16 +50,16 @@ "mitt": "^3.0.0", "nprogress": "^0.2.0", "pinia": "2.0.32", - "print-js": "^1.6.0", "postcss": "8.4.40", + "print-js": "^1.6.0", "qrcode": "1.5.1", "qs": "^6.11.0", "screenfull": "^6.0.2", "sm-crypto": "^0.3.12", "sortablejs": "^1.15.0", "splitpanes": "^3.1.5", - "tinymce": "^5.10.2", "tailwindcss": "3.4.17", + "tinymce": "^5.10.2", "v-calendar": "3.1.2", "vue": "3.4.15", "vue-audio-record": "0.0.7", diff --git a/src/api/admin/dict.ts b/src/api/admin/dict.ts index a821eac..92aca23 100644 --- a/src/api/admin/dict.ts +++ b/src/api/admin/dict.ts @@ -7,6 +7,17 @@ export const getDicts = (type: String) => { }); }; +/** + * 获取字典类型值 + * @param type + */ +export function getTypeValue(type: string | number) { + return request({ + url: `/admin/dict/item/type/${type}`, + method: 'get', + }); +} + export function fetchList(query: any) { return request({ url: '/admin/dict/list', diff --git a/src/api/basic/appbanner.ts b/src/api/basic/appbanner.ts new file mode 100644 index 0000000..c31b5af --- /dev/null +++ b/src/api/basic/appbanner.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/appbanner/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/appbanner', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/appbanner/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/appbanner/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/appbanner', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/basic/basicclass.ts b/src/api/basic/basicclass.ts new file mode 100644 index 0000000..cbc3736 --- /dev/null +++ b/src/api/basic/basicclass.ts @@ -0,0 +1,236 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicclass/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicclass', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicclass/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicclass/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicclass', + method: 'put', + data: obj, + }); +}; + +/** + * 批量更新规则 + * @param obj + */ +export const putObjs = (obj: any) => { + return request({ + url: '/basic/basicclass/batchUpdataRuleById', + method: 'post', + data: obj, + }); +}; + +/** + * 根据信息查询所有班级 + * @param query + */ +export const queryAllClassByInfo = (query: string | number) => { + return request({ + url: `/basic/basicclass/queryAllClassByInfo/${query}`, + method: 'get', + }); +}; + +/** + * 根据专业查询班级年级 + * @param query + */ +export const queryClassGradeByMajor = (query: string | number) => { + return request({ + url: `/basic/basicclass/queryClassGradeByMajor/${query}`, + method: 'get', + }); +}; + +/** + * 根据班级编号获取班级信息 + * @param obj + */ +export const getClassByClassNo = (obj: string | number) => { + return request({ + url: `/basic/basicclass/queryClassInfoByCode/${obj}`, + method: 'get', + }); +}; + +/** + * 获取专业名称列表 + */ +export const getMajorNameList = () => { + return request({ + url: '/basic/major/getMajorNameList', + method: 'get', + }); +}; + +/** + * 获取二级学院列表 + */ +export const getDeptList = () => { + return request({ + url: '/basic/basicdept/getDeptList?secondFlag=1', + method: 'get', + }); +}; + +/** + * 获取二级部门列表 + */ +export const getDeptListByLevel2 = () => { + return request({ + url: '/basic/basicdept/getDeptList?deptLevel=2', + method: 'get', + }); +}; + +/** + * 查询所有年级列表 + */ +export const queryAllGradeList = () => { + return request({ + url: '/basic/basicclass/queryAllGradeList', + method: 'get', + }); +}; + +/** + * 获取年级列表 + */ +export const getGradeList = () => { + return request({ + url: '/basic/basicclass/getGradeList', + method: 'get', + }); +}; + +/** + * 根据部门代码查询班级 + * @param id + */ +export const queryClassByDeptCode = (id: string | number) => { + return request({ + url: `/basic/basicclass/queryClassByDeptCode/${id}`, + method: 'get', + }); +}; + +/** + * 根据查询条件查询班级名称和编号 + * @param query + */ +export const queryClassNameAndNoByQuery = (query: string | number) => { + return request({ + url: `/basic/basicclass/queryClassNameAndNoByQuery/${query}`, + method: 'get', + }); +}; + +/** + * 获取列表 + */ +export const list = () => { + return request({ + url: '/basic/basicclass/list', + method: 'get', + }); +}; + +/** + * 查班级列表 - 班主任角色查自己班级 + */ +export const getClassListByRole = () => { + return request({ + url: '/basic/basicclass/listByRole', + method: 'get', + }); +}; + +/** + * 查询所有非离校班级 + */ +export const queryNoLeavelClass = () => { + return request({ + url: '/basic/basicclass/queryNoLeavelClass', + method: 'get', + }); +}; + +/** + * 获取班级流失情况 + * @param query + */ +export const getClassLose = (query?: any) => { + return request({ + url: '/basic/basicclass/getClassLose', + method: 'get', + params: query, + }); +}; + diff --git a/src/api/basic/basicdept.ts b/src/api/basic/basicdept.ts new file mode 100644 index 0000000..351a8d6 --- /dev/null +++ b/src/api/basic/basicdept.ts @@ -0,0 +1,212 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取树形列表 + * @param query + */ +export const fetchTree = (query?: any) => { + return request({ + url: '/basic/basicdept/tree', + method: 'get', + params: query, + }); +}; + +/** + * 获取二级树形列表 + * @param query + */ +export const fetchSecondTree = (query?: any) => { + return request({ + url: '/basic/basicdept/secondTree', + method: 'get', + params: query, + }); +}; + +/** + * 获取开放部门树形列表 + * @param query + */ +export const fetchOpenDeptTree = (query?: any) => { + return request({ + url: '/basic/basicdept/openDeptTree', + method: 'get', + params: query, + }); +}; + +/** + * 获取级联选择器树形列表 + * @param query + */ +export const treeForCascader = (query?: any) => { + return request({ + url: '/basic/basicdept/treeForCascader', + method: 'get', + params: query, + }); +}; + +/** + * 获取培训树形列表 + * @param query + */ +export const treeForTrain = (query?: any) => { + return request({ + url: '/basic/basicdept/treeForTrain', + method: 'get', + params: query, + }); +}; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicdept/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicdept', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicdept/${id}`, + method: 'get', + }); +}; + +/** + * 根据部门代码获取部门信息 + * @param code + */ +export const getDeptByCode = (code: string | number) => { + return request({ + url: `/basic/basicdept/deptcode/${code}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicdept/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicdept', + method: 'put', + data: obj, + }); +}; + +/** + * 根据部门代码获取培训部门 + * @param obj + */ +export const getTrainDeptByDeptCode = (obj: string | number) => { + return request({ + url: `/basic/basicdept/getTrainDeptByDeptCode/${obj}`, + method: 'get', + }); +}; + +/** + * 获取教务开课部门 + */ +export const getTeachDept = () => { + return request({ + url: '/basic/basicdept/getDeptList?teachFlag=1', + method: 'get', + }); +}; + +/** + * 获取培训部门 + */ +export const getTrainDept = () => { + return request({ + url: '/basic/basicdept/getDeptList?trainFlag=1', + method: 'get', + }); +}; + +/** + * 获取合同起草部门 - 二级部门 + */ +export const getDeptListByLevelTwo = () => { + return request({ + url: '/basic/basicdept/getDeptListByLevelTwo', + method: 'get', + }); +}; + +/** + * 人事人员调动 - 二级联动查询子级部门列表 + * @param deptCode + */ +export const getDeptListByParent = (deptCode: string | number) => { + return request({ + url: `/basic/basicdept/getDeptListByParent/${deptCode}`, + method: 'get', + }); +}; + +/** + * 获取带教师的部门列表 + * @param query + */ +export const getDeptWithTeacher = (query?: any) => { + return request({ + url: '/basic/basicdept/getDeptWithTeacher', + method: 'get', + params: query, + }); +}; + diff --git a/src/api/basic/basicholiday.ts b/src/api/basic/basicholiday.ts new file mode 100644 index 0000000..4329ff1 --- /dev/null +++ b/src/api/basic/basicholiday.ts @@ -0,0 +1,112 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicholiday/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicholiday', + method: 'post', + data: obj, + }); +}; + +/** + * 制作假期 + * @param obj + */ +export const makeHoliday = (obj: any) => { + return request({ + url: '/basic/basicholiday/makeHoliday', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicholiday/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicholiday/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicholiday', + method: 'put', + data: obj, + }); +}; + +/** + * 获取工作日 + * @param schoolYear + */ +export const getWorkDay = (schoolYear: string | number) => { + return request({ + url: `/basic/basicholiday/getWorkDay/${schoolYear}`, + method: 'get', + }); +}; + +/** + * 获取假期日期列表 + * @param query + */ +export const getHolidayDayList = (query?: any) => { + return request({ + url: '/basic/basicholiday/getHolidayDayList', + method: 'get', + params: query, + }); +}; + diff --git a/src/api/basic/basicidcardposition.ts b/src/api/basic/basicidcardposition.ts new file mode 100644 index 0000000..b3a2ce7 --- /dev/null +++ b/src/api/basic/basicidcardposition.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicidcardposition/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicidcardposition', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicidcardposition/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicidcardposition/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicidcardposition', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/basic/basicnation.ts b/src/api/basic/basicnation.ts new file mode 100644 index 0000000..4e3b394 --- /dev/null +++ b/src/api/basic/basicnation.ts @@ -0,0 +1,97 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicnation/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicnation', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicnation/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicnation/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicnation', + method: 'put', + data: obj, + }); +}; + +/** + * 获取民族列表 + */ +export const getNationalList = () => { + return request({ + url: '/basic/basicnation/getNationalList', + method: 'get', + }); +}; + +/** + * 获取民族字典 + */ +export const getNationalDict = () => { + return request({ + url: '/basic/basicnation/getNationalDict', + method: 'get', + }); +}; + diff --git a/src/api/basic/basicpoliticsstatusbase.ts b/src/api/basic/basicpoliticsstatusbase.ts new file mode 100644 index 0000000..d7afaf6 --- /dev/null +++ b/src/api/basic/basicpoliticsstatusbase.ts @@ -0,0 +1,97 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicpoliticsstatusbase/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicpoliticsstatusbase', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicpoliticsstatusbase/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicpoliticsstatusbase/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicpoliticsstatusbase', + method: 'put', + data: obj, + }); +}; + +/** + * 获取政治面貌列表 + */ +export const getPoliticsStatusList = () => { + return request({ + url: '/basic/basicpoliticsstatusbase/getPoliticsStatusList', + method: 'get', + }); +}; + +/** + * 获取政治面貌字典 + */ +export const getPoliticsStatusDict = () => { + return request({ + url: '/basic/basicpoliticsstatusbase/getPoliticsStatusDict', + method: 'get', + }); +}; + diff --git a/src/api/basic/basicstudent.ts b/src/api/basic/basicstudent.ts new file mode 100644 index 0000000..ba18bcb --- /dev/null +++ b/src/api/basic/basicstudent.ts @@ -0,0 +1,465 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicstudent/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicstudent', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicstudent/${id}`, + method: 'get', + }); +}; + +/** + * 根据学号获取信息 + * @param stuNo + */ +export const getInfo = (stuNo: string | number) => { + return request({ + url: `/basic/basicstudent/getInfoByStuNo/${stuNo}`, + method: 'get', + }); +}; + +/** + * 获取学生信息 + * @param query + */ +export const getStuInfo = (query: any) => { + return request({ + url: '/basic/basicstudent/getStuInfo', + method: 'post', + data: query, + }); +}; + +/** + * 获取学生医生日志 + * @param query + */ +export const getStuDocterLog = (query?: any) => { + return request({ + url: '/stuwork/stuvisitlog/getStuDocterLog', + method: 'get', + params: query, + }); +}; + +/** + * 根据ID获取学生医生信息 + * @param query + */ +export const getStuDocterById = (query?: any) => { + return request({ + url: '/stuwork/stuvisitlog', + method: 'get', + params: query, + }); +}; + +/** + * 添加学生医生信息 + * @param obj + */ +export const addStuDocter = (obj: any) => { + return request({ + url: '/stuwork/stuvisitlog', + method: 'post', + data: obj, + }); +}; + +/** + * 删除学生医生信息 + * @param query + */ +export const delStuDocter = (query: any) => { + return request({ + url: '/stuwork/stuvisitlog/removeById', + method: 'post', + data: query, + }); +}; + +/** + * 添加处理 + * @param query + */ +export const addHand = (query: any) => { + return request({ + url: '/stuwork/stuvisitlog/addHand', + method: 'post', + data: query, + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicstudent/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicstudent', + method: 'put', + data: obj, + }); +}; + +/** + * 保存学生 + * @param obj + */ +export const saveStu = (obj: any) => { + return request({ + url: '/basic/basicstudent/saveStu', + method: 'post', + data: obj, + }); +}; + +/** + * 编辑是否负责人 + * @param obj + */ +export const editIsleader = (obj: any) => { + return request({ + url: '/basic/basicstudent/editIsleader', + method: 'put', + data: obj, + }); +}; + +/** + * 修改学生信息(idCard,bankCard,phone) - 免学费申请时 + * @param obj + */ +export const updateStuInfo = (obj: any) => { + return request({ + url: '/basic/basicstudent/updateStuInfo', + method: 'put', + data: obj, + }); +}; + +/** + * 根据班级代码获取学生 + * @param classCode + */ +export const getSttudentByClassCode = (classCode: string | number) => { + return request({ + url: `/basic/basicstudent/initStuScoreData/${classCode}`, + method: 'get', + }); +}; + +/** + * 根据班级查询学生列表 + * @param query + */ +export const queryStudentListByClass = (query?: any) => { + return request({ + url: '/basic/basicstudent/queryStudentListByClass', + method: 'get', + params: query, + }); +}; + +/** + * 查询成绩列表 + * @param query + */ +export const queryScoreList = (query?: any) => { + return request({ + url: '/basic/basicstudent/queryScoreData', + method: 'post', + params: query, + }); +}; + +/** + * 根据班级代码查询学生数量 + * @param query + */ +export const queryStuNumByClassCode = (query?: any) => { + return request({ + url: '/basic/basicstudent/queryStuNumByClassCode', + method: 'get', + params: query, + }); +}; + +/** + * 打印前准备 + * @param stuNo + */ +export const prePrint = (stuNo: string | number) => { + return request({ + url: `/basic/basicstudent/prePrint/${stuNo}`, + method: 'get', + }); +}; + +/** + * 更换随机二维码 + * @param stuNo + * @param qrStr + */ +export const changeQrStr = (stuNo: string | number, qrStr: string) => { + return request({ + url: `/basic/basicstudent/changeQrStr/${stuNo}/${qrStr}`, + method: 'get', + }); +}; + +/** + * 获取学生状态 + */ +export const getStuStatus = () => { + return request({ + url: '/admin/dict/item/type/student_status', + method: 'get', + }); +}; + +/** + * 重置密码 + * @param data + */ +export const resetPassWord = (data: any) => { + return request({ + url: '/basic/basicstudent/resetPassWord', + method: 'post', + data: data, + }); +}; + +/** + * 根据学号查询在校学生 + * @param data + */ +export const queryStudentByStuNo = (data?: any) => { + return request({ + url: '/basic/basicstudent/queryStudentByStuNo', + method: 'get', + params: data, + }); +}; + +/** + * 根据学号后6位查询在校学生 + * @param data + */ +export const queryStudentByLastStuNo = (data?: any) => { + return request({ + url: '/basic/basicstudent/queryStudentByLastStuNo', + method: 'get', + params: data, + }); +}; + +/** + * 根据学号查询学生 + * @param data + */ +export const queryAllStudentByStuNo = (data?: any) => { + return request({ + url: '/basic/basicstudent/queryAllStudentByStuNo', + method: 'get', + params: data, + }); +}; + +/** + * 根据班级代码查询所有学生 + * @param classCode + */ +export const queryAllStudentByClassCode = (classCode: string | number) => { + return request({ + url: `/basic/basicstudent/queryAllStudentByClassCode/${classCode}`, + method: 'get', + }); +}; + +/** + * 导出头像 + * @param data + */ +export const getDownPic = (data?: any) => { + return request({ + url: '/basic/basicstudent/getDownPic', + method: 'get', + responseType: 'blob', + headers: { 'Content-Type': 'application/json; application/octet-stream' }, + params: data, + }); +}; + +/** + * 更新进出状态 + * @param data + */ +export const updateInout = (data: any) => { + return request({ + url: '/basic/basicstudent/updateInout', + method: 'post', + data: data, + }); +}; + +/** + * 批量打印前准备 + * @param data + */ +export const preBatchPrint = (data: any) => { + return request({ + url: '/basic/basicstudent/preBatchPrint', + method: 'post', + data: data, + }); +}; + +/** + * 查询学生信息(成绩答辩用) + * @param query + */ +export const queryStuInfoForScoreDefend = (query?: any) => { + return request({ + url: '/basic/basicstudent/queryStuInfoForScoreDefend', + method: 'get', + params: query, + }); +}; + +/** + * 更新学生简单信息 + * @param data + */ +export const updateStuSimpleInfo = (data: any) => { + return request({ + url: '/basic/basicstudent/updateStuSimpleInfo', + method: 'post', + data: data, + }); +}; + +/** + * 查询专业学生信息 + * @param data + */ +export const queryMajorStuInfo = (data: any) => { + return request({ + url: '/basic/basicstudent/queryMajorStuInfo', + method: 'post', + data: data, + }); +}; + +/** + * 导出学生信息卡 + * @param data + */ +export const exportStuInfoCard = (data: any) => { + return request({ + url: '/basic/file/exportStuInfoCard', + method: 'post', + data: data, + }); +}; + +/** + * 搜索 + * @param query + */ +export const search = (query: string | number) => { + return request({ + url: `/basic/basicstudent/search/${query}`, + method: 'get', + }); +}; + +/** + * 根据编号查询学生基础信息 + * @param obj + */ +export const queryStuBaseByNo = (obj: string | number) => { + return request({ + url: `/basic/basicstudent/queryStuBaseByNo/${obj}`, + method: 'get', + }); +}; + +/** + * 获取头像列表 + */ +export const avatarList = () => { + return request({ + url: '/basic/basicstudent/avatar/list', + method: 'get', + }); +}; + +/** + * 批量更新头像审核状态 + * @param data + */ +export const batchUpdateAvatarAudit = (data: any) => { + return request({ + url: '/basic/basicstudent/avatar/batchUpdate', + method: 'post', + data: data, + }); +}; + diff --git a/src/api/basic/basicstudentadulteducation.ts b/src/api/basic/basicstudentadulteducation.ts new file mode 100644 index 0000000..b7437ed --- /dev/null +++ b/src/api/basic/basicstudentadulteducation.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicstudentadulteducation/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicstudentadulteducation', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicstudentadulteducation/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicstudentadulteducation/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicstudentadulteducation', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/basic/basicstudenteducation.ts b/src/api/basic/basicstudenteducation.ts new file mode 100644 index 0000000..2245728 --- /dev/null +++ b/src/api/basic/basicstudenteducation.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicstudenteducation/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicstudenteducation', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicstudenteducation/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicstudenteducation/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicstudenteducation', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/basic/basicstudenteducationdetail.ts b/src/api/basic/basicstudenteducationdetail.ts new file mode 100644 index 0000000..9df003d --- /dev/null +++ b/src/api/basic/basicstudenteducationdetail.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicstudenteducationdetail/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicstudenteducationdetail', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicstudenteducationdetail/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicstudenteducationdetail/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicstudenteducationdetail', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/basic/basicstudenthome.ts b/src/api/basic/basicstudenthome.ts new file mode 100644 index 0000000..71786e3 --- /dev/null +++ b/src/api/basic/basicstudenthome.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicstudenthome/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicstudenthome', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicstudenthome/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicstudenthome/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicstudenthome', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/basic/basicstudentinfo.ts b/src/api/basic/basicstudentinfo.ts new file mode 100644 index 0000000..9dba896 --- /dev/null +++ b/src/api/basic/basicstudentinfo.ts @@ -0,0 +1,135 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicstudentinfo/queryDataByPage', + method: 'get', + params: query, + }); +}; + +/** + * 查询学籍数据(分页) + * @param query + */ +export const queryXJDataByPage = (query?: any) => { + return request({ + url: '/basic/basicstudentinfo/queryXJDataByPage', + method: 'get', + params: query, + }); +}; + +/** + * 获取详情列表 + * @param query + */ +export const getDetail = (query?: any) => { + return request({ + url: '/basic/basicstudentinfo/page', + method: 'get', + params: query, + }); +}; + +/** + * 获取家庭详情列表 + * @param query + */ +export const getHomeDetailList = (query: string | number) => { + return request({ + url: `/basic/studenthomedetail/getHomeDetailList/${query}`, + method: 'get', + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicstudentinfo', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicstudentinfo/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicstudentinfo/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicstudentinfo', + method: 'put', + data: obj, + }); +}; + +/** + * 编辑学生毕业登记 + * @param obj + */ +export const editStuGraduation = (obj: any) => { + return request({ + url: '/stuwork/stugraduationregistration', + method: 'post', + data: obj, + }); +}; + +/** + * 根据学号获取学生毕业信息 + * @param id + */ +export const getStuGraduationByStuNo = (id: string | number) => { + return request({ + url: `/stuwork/stugraduationregistration/getStuGraduationByStuNo/${id}`, + method: 'get', + }); +}; + diff --git a/src/api/basic/basicstudentmajorclass.ts b/src/api/basic/basicstudentmajorclass.ts new file mode 100644 index 0000000..e354d3a --- /dev/null +++ b/src/api/basic/basicstudentmajorclass.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicstudentmajorclass/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicstudentmajorclass', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicstudentmajorclass/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicstudentmajorclass/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicstudentmajorclass', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/basic/basicstudentsocialdetail.ts b/src/api/basic/basicstudentsocialdetail.ts new file mode 100644 index 0000000..6243366 --- /dev/null +++ b/src/api/basic/basicstudentsocialdetail.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicstudentsocialdetail/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicstudentsocialdetail', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicstudentsocialdetail/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicstudentsocialdetail/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicstudentsocialdetail', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/basic/basicyear.ts b/src/api/basic/basicyear.ts new file mode 100644 index 0000000..d518ca1 --- /dev/null +++ b/src/api/basic/basicyear.ts @@ -0,0 +1,139 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/basicyear/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/basicyear', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/basicyear/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/basicyear/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/basicyear', + method: 'put', + data: obj, + }); +}; + +/** + * 根据学年查询班级和课程 + * @param obj + */ +export const queryClassAndCourseBySchoolYear = (obj: any) => { + return request({ + url: '/basic/basicyear/queryClassAndCourseBySchoolYear', + method: 'post', + data: obj, + }); +}; + +/** + * 查询所有学年 + */ +export const queryAllSchoolYear = () => { + return request({ + url: '/basic/basicyear/queryAllSchoolYear', + method: 'get', + }); +}; + +/** + * 获取所有年份和学期 + */ +export const getAllYearAndTerm = () => { + return request({ + url: '/basic/basicholiday/getAllYearAndTerm', + method: 'get', + }); +}; + +/** + * 获取当前学年 + */ +export const getNowSchoolYear = () => { + return request({ + url: '/basic/basicyear/getNowSchoolYear', + method: 'get', + }); +}; + +/** + * 获取教学学年 + */ +export const getTeachSchoolYear = () => { + return request({ + url: '/basic/basicyear/getTeachSchoolYear', + method: 'get', + }); +}; + +/** + * 获取当前学年日期 + */ +export const getNowYearDate = () => { + return request({ + url: '/basic/basicyear/getNowYearDate', + method: 'get', + }); +}; + diff --git a/src/api/basic/classinfo.ts b/src/api/basic/classinfo.ts new file mode 100644 index 0000000..8050df3 --- /dev/null +++ b/src/api/basic/classinfo.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/classinfo/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/classinfo', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/classinfo/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/classinfo/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/classinfo', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/basic/major.ts b/src/api/basic/major.ts new file mode 100644 index 0000000..10ceb57 --- /dev/null +++ b/src/api/basic/major.ts @@ -0,0 +1,108 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/major/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/major', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/major/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/major/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/major', + method: 'put', + data: obj, + }); +}; + +/** + * 获取专业代码列表 + * @param obj + */ +export const majorCodeList = (obj: string | number) => { + return request({ + url: `/basic/major/majorCodeList/${obj}`, + method: 'get', + }); +}; + +/** + * 获取专业名称列表 + */ +export const getMajorNameList = () => { + return request({ + url: '/basic/major/getMajorNameList', + method: 'get', + }); +}; + +/** + * 获取计划专业 + */ +export const planMajor = () => { + return request({ + url: '/basic/major/planMajor', + method: 'get', + }); +}; + diff --git a/src/api/basic/schoolnews.ts b/src/api/basic/schoolnews.ts new file mode 100644 index 0000000..0d8c6ee --- /dev/null +++ b/src/api/basic/schoolnews.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/schoolnews/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/schoolnews', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/schoolnews/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/schoolnews/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/schoolnews', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/basic/studenthomedetail.ts b/src/api/basic/studenthomedetail.ts new file mode 100644 index 0000000..550bc60 --- /dev/null +++ b/src/api/basic/studenthomedetail.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/basic/studenthomedetail/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/basic/studenthomedetail', + method: 'post', + data: obj, + }); +}; + +/** + * 新增家庭详情 + * @param obj + */ +export const addHomeDetailObj = (obj: any) => { + return request({ + url: '/basic/studenthomedetail', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/basic/studenthomedetail/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/basic/studenthomedetail/${id}`, + method: 'delete', + }); +}; + +/** + * 删除家庭详情 + * @param id + */ +export const delHomeDetailObj = (id: string | number) => { + return request({ + url: `/basic/studenthomedetail/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/basic/studenthomedetail', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/employteacher.ts b/src/api/professional/employteacher.ts new file mode 100644 index 0000000..6b70db7 --- /dev/null +++ b/src/api/professional/employteacher.ts @@ -0,0 +1,50 @@ +import request from '/@/utils/request'; + +/** + * 查询聘用教师 + * @param query + */ +export const queryEmployTeacher = (query?: any) => { + return request({ + url: '/professional/outercompanyemployee/queryEmployTeacher', + method: 'get', + params: query, + }); +}; + +/** + * 新增聘用教师 + * @param obj + */ +export const addEmployTeacher = (obj: any) => { + return request({ + url: '/professional/outercompanyemployee/addEmployTeacher', + method: 'post', + data: obj, + }); +}; + +/** + * 删除聘用教师 + * @param obj + */ +export const delEmployTeacher = (obj: any) => { + return request({ + url: '/professional/outercompanyemployee/delEmployTeacher', + method: 'post', + data: obj, + }); +}; + +/** + * 编辑聘用教师 + * @param obj + */ +export const editEmployTeacher = (obj: any) => { + return request({ + url: '/professional/outercompanyemployee/editEmployTeacher', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/outercompany.ts b/src/api/professional/outercompany.ts new file mode 100644 index 0000000..499f397 --- /dev/null +++ b/src/api/professional/outercompany.ts @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/outercompany/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/outercompany', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/outercompany/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/outercompany/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/outercompany', + method: 'put', + data: obj, + }); +}; + +/** + * 获取列表(不分页) + * @param query + */ +export const getList = (query?: any) => { + return request({ + url: '/professional/outercompany/getList', + method: 'get', + params: query, + }); +}; + diff --git a/src/api/professional/outercompanyemployee.ts b/src/api/professional/outercompanyemployee.ts new file mode 100644 index 0000000..42f3c9f --- /dev/null +++ b/src/api/professional/outercompanyemployee.ts @@ -0,0 +1,125 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/outercompanyemployee/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/outercompanyemployee', + method: 'post', + data: obj, + }); +}; + +/** + * 保存第二步 + * @param obj + */ +export const saveSecond = (obj: any) => { + return request({ + url: '/professional/outercompanyemployee/saveSecond', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/outercompanyemployee/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/outercompanyemployee/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/outercompanyemployee', + method: 'put', + data: obj, + }); +}; + +/** + * 批量删除 + * @param obj + */ +export const batchDel = (obj: any) => { + return request({ + url: '/professional/outercompanyemployee/batchDel', + method: 'post', + data: obj, + }); +}; + +/** + * 重置密码 + * @param data + */ +export const resetPassWord = (data: any) => { + return request({ + url: '/professional/outercompanyemployee/resetPassWord', + method: 'post', + data: data, + }); +}; + +/** + * 远程模糊检索 + * @param params + */ +export const remoteInfo = (params?: any) => { + return request({ + url: '/professional/outercompanyemployee/remoteInfo', + method: 'get', + params: params, + }); +}; + diff --git a/src/api/professional/phaseintentioncompany.ts b/src/api/professional/phaseintentioncompany.ts new file mode 100644 index 0000000..4709b6d --- /dev/null +++ b/src/api/professional/phaseintentioncompany.ts @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/phaseintentioncompany/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompany', + method: 'post', + data: obj, + }); +}; + +/** + * 重置密码 + * @param obj + */ +export const czPsd = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompany/czPsd', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompany/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompany/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompany', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/phaseintentioncompanyagreement.ts b/src/api/professional/phaseintentioncompanyagreement.ts new file mode 100644 index 0000000..ff014ef --- /dev/null +++ b/src/api/professional/phaseintentioncompanyagreement.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/phaseintentioncompanyagreement/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanyagreement', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanyagreement/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanyagreement/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanyagreement', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/phaseintentioncompanybuild.ts b/src/api/professional/phaseintentioncompanybuild.ts new file mode 100644 index 0000000..a4e4f5b --- /dev/null +++ b/src/api/professional/phaseintentioncompanybuild.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/phaseintentioncompanybuild/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanybuild', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanybuild/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanybuild/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanybuild', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/phaseintentioncompanycarrierbuild.ts b/src/api/professional/phaseintentioncompanycarrierbuild.ts new file mode 100644 index 0000000..7e49578 --- /dev/null +++ b/src/api/professional/phaseintentioncompanycarrierbuild.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/phaseintentioncompanycarrierbuild/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanycarrierbuild', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanycarrierbuild/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanycarrierbuild/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanycarrierbuild', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/phaseintentioncompanyinspect.ts b/src/api/professional/phaseintentioncompanyinspect.ts new file mode 100644 index 0000000..b06c963 --- /dev/null +++ b/src/api/professional/phaseintentioncompanyinspect.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/phaseintentioncompanyinspect/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanyinspect', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanyinspect/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanyinspect/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanyinspect', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/phaseintentioncompanyorder.ts b/src/api/professional/phaseintentioncompanyorder.ts new file mode 100644 index 0000000..4d04b00 --- /dev/null +++ b/src/api/professional/phaseintentioncompanyorder.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/phaseintentioncompanyorder/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanyorder', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanyorder/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanyorder/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanyorder', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/phaseintentioncompanyparticipate.ts b/src/api/professional/phaseintentioncompanyparticipate.ts new file mode 100644 index 0000000..5c9dc92 --- /dev/null +++ b/src/api/professional/phaseintentioncompanyparticipate.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/phaseintentioncompanyparticipate/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanyparticipate', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanyparticipate/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanyparticipate/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanyparticipate', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/phaseintentioncompanypost.ts b/src/api/professional/phaseintentioncompanypost.ts new file mode 100644 index 0000000..e1c856e --- /dev/null +++ b/src/api/professional/phaseintentioncompanypost.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/phaseintentioncompanypost/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanypost', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanypost/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanypost/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanypost', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/phaseintentioncompanypractice.ts b/src/api/professional/phaseintentioncompanypractice.ts new file mode 100644 index 0000000..30044b8 --- /dev/null +++ b/src/api/professional/phaseintentioncompanypractice.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/phaseintentioncompanypractice/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanypractice', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanypractice/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanypractice/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanypractice', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/phaseintentioncompanyschoolhz.ts b/src/api/professional/phaseintentioncompanyschoolhz.ts new file mode 100644 index 0000000..96cf1ed --- /dev/null +++ b/src/api/professional/phaseintentioncompanyschoolhz.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/phaseintentioncompanyschoolhz/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanyschoolhz', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanyschoolhz/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanyschoolhz/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanyschoolhz', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/phaseintentioncompanytech.ts b/src/api/professional/phaseintentioncompanytech.ts new file mode 100644 index 0000000..6d62efb --- /dev/null +++ b/src/api/professional/phaseintentioncompanytech.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/phaseintentioncompanytech/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanytech', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanytech/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanytech/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanytech', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/phaseintentioncompanytone.ts b/src/api/professional/phaseintentioncompanytone.ts new file mode 100644 index 0000000..49a0f10 --- /dev/null +++ b/src/api/professional/phaseintentioncompanytone.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/phaseintentioncompanytone/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanytone', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanytone/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/phaseintentioncompanytone/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/phaseintentioncompanytone', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/professionalawardcourseware.ts b/src/api/professional/professionalawardcourseware.ts new file mode 100644 index 0000000..a226f4e --- /dev/null +++ b/src/api/professional/professionalawardcourseware.ts @@ -0,0 +1,101 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalawardcourseware/page', + method: 'get', + params: query, + }); +}; + +/** + * 静态页面 + * @param query + */ +export const staticPage = (query?: any) => { + return request({ + url: '/professional/professionalawardcourseware/staticPage', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalawardcourseware', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalawardcourseware/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalawardcourseware/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalawardcourseware', + method: 'put', + data: obj, + }); +}; + +/** + * 更新状态 + * @param obj + */ +export const updateStatus = (obj: any) => { + return request({ + url: '/professional/professionalawardcourseware/updateStatus', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/professionalpatent.ts b/src/api/professional/professionalpatent.ts new file mode 100644 index 0000000..123097f --- /dev/null +++ b/src/api/professional/professionalpatent.ts @@ -0,0 +1,101 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalpatent/page', + method: 'get', + params: query, + }); +}; + +/** + * 静态页面 + * @param query + */ +export const staticPage = (query?: any) => { + return request({ + url: '/professional/professionalpatent/staticPage', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalpatent', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalpatent/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalpatent/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalpatent', + method: 'put', + data: obj, + }); +}; + +/** + * 更新状态 + * @param obj + */ +export const updateStatus = (obj: any) => { + return request({ + url: '/professional/professionalpatent/updateStatus', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/professionalpoliticsstatus.ts b/src/api/professional/professionalpoliticsstatus.ts new file mode 100644 index 0000000..7dbef43 --- /dev/null +++ b/src/api/professional/professionalpoliticsstatus.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalpoliticsstatus/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalpoliticsstatus', + method: 'post', + data: obj, + }); +}; + +/** + * 新增政治面貌 + * @param obj + */ +export const addPoliticssStatus = (obj: any) => { + return request({ + url: '/professional/professionalpoliticsstatus', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalpoliticsstatus/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalpoliticsstatus/${id}`, + method: 'delete', + }); +}; + +/** + * 删除政治面貌 + * @param id + */ +export const dePoObj = (id: string | number) => { + return request({ + url: `/professional/professionalpoliticsstatus/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalpoliticsstatus', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/professionalsalaries.ts b/src/api/professional/professionalsalaries.ts new file mode 100644 index 0000000..a083d20 --- /dev/null +++ b/src/api/professional/professionalsalaries.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalsalaries/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalsalaries', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalsalaries/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalsalaries/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalsalaries', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/professionalsocial.ts b/src/api/professional/professionalsocial.ts new file mode 100644 index 0000000..08f8324 --- /dev/null +++ b/src/api/professional/professionalsocial.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalsocial/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalsocial', + method: 'post', + data: obj, + }); +}; + +/** + * 新增社交对象 + * @param obj + */ +export const addSocialObj = (obj: any) => { + return request({ + url: '/professional/professionalsocial', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalsocial/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalsocial/${id}`, + method: 'delete', + }); +}; + +/** + * 删除社交对象 + * @param id + */ +export const delSocialObj = (id: string | number) => { + return request({ + url: `/professional/professionalsocial/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalsocial', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/professionalstationlevel.ts b/src/api/professional/professionalstationlevel.ts new file mode 100644 index 0000000..7bbe8bd --- /dev/null +++ b/src/api/professional/professionalstationlevel.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalstationlevel/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalstationlevel', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalstationlevel/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalstationlevel/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalstationlevel', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/professionalstationlevelconfig.ts b/src/api/professional/professionalstationlevelconfig.ts new file mode 100644 index 0000000..c351414 --- /dev/null +++ b/src/api/professional/professionalstationlevelconfig.ts @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalstationlevelconfig/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalstationlevelconfig', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalstationlevelconfig/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalstationlevelconfig/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalstationlevelconfig', + method: 'put', + data: obj, + }); +}; + +/** + * 获取岗位级别列表 + */ +export const getStationLevelList = () => { + return request({ + url: '/professional/professionalstationlevelconfig/getStationLevelList', + method: 'get', + }); +}; + diff --git a/src/api/professional/professionalstationrelation.ts b/src/api/professional/professionalstationrelation.ts new file mode 100644 index 0000000..dd6bbed --- /dev/null +++ b/src/api/professional/professionalstationrelation.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalstationrelation/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalstationrelation', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalstationrelation/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalstationrelation/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalstationrelation', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/professionalstatuslock.ts b/src/api/professional/professionalstatuslock.ts new file mode 100644 index 0000000..5d80540 --- /dev/null +++ b/src/api/professional/professionalstatuslock.ts @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalstatuslock/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalstatuslock', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalstatuslock/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalstatuslock/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalstatuslock', + method: 'put', + data: obj, + }); +}; + +/** + * 获取所有列表 + */ +export const getAllList = () => { + return request({ + url: '/professional/professionalstatuslock/getAllStatusList', + method: 'get', + }); +}; + +/** + * 更新状态 + * @param obj + */ +export const updateStatus = (obj: any) => { + return request({ + url: '/professional/professionalstatuslock/updateStatus', + method: 'post', + data: obj, + }); +}; + +/** + * 检查锁定状态 + * @param statusCode + */ +export const checkLocked = (statusCode: string | number) => { + return request({ + url: `/professional/professionalstatuslock/checkLocked/${statusCode}`, + method: 'get', + }); +}; + diff --git a/src/api/professional/professionalteacherlesson.ts b/src/api/professional/professionalteacherlesson.ts new file mode 100644 index 0000000..27228f1 --- /dev/null +++ b/src/api/professional/professionalteacherlesson.ts @@ -0,0 +1,101 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalteacherlesson/page', + method: 'get', + params: query, + }); +}; + +/** + * 静态页面 + * @param query + */ +export const staticPage = (query?: any) => { + return request({ + url: '/professional/professionalteacherlesson/staticPage', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalteacherlesson', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalteacherlesson/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalteacherlesson/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalteacherlesson', + method: 'put', + data: obj, + }); +}; + +/** + * 更新状态 + * @param obj + */ +export const updateStatus = (obj: any) => { + return request({ + url: '/professional/professionalteacherlesson/updateStatus', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/professionalteacherpaper.ts b/src/api/professional/professionalteacherpaper.ts new file mode 100644 index 0000000..6aabb27 --- /dev/null +++ b/src/api/professional/professionalteacherpaper.ts @@ -0,0 +1,101 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalteacherpaper/page', + method: 'get', + params: query, + }); +}; + +/** + * 统计页面 + * @param query + */ +export const staticsPage = (query?: any) => { + return request({ + url: '/professional/professionalteacherpaper/staticsPage', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalteacherpaper', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalteacherpaper/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalteacherpaper/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalteacherpaper', + method: 'put', + data: obj, + }); +}; + +/** + * 更新状态 + * @param obj + */ +export const updateStatus = (obj: any) => { + return request({ + url: '/professional/professionalteacherpaper/updateStatus', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/professionalteacherresume.ts b/src/api/professional/professionalteacherresume.ts new file mode 100644 index 0000000..6bc7d3d --- /dev/null +++ b/src/api/professional/professionalteacherresume.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalteacherresume/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalteacherresume', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalteacherresume/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalteacherresume/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalteacherresume', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/professionalteachingmaterial.ts b/src/api/professional/professionalteachingmaterial.ts new file mode 100644 index 0000000..c6e0912 --- /dev/null +++ b/src/api/professional/professionalteachingmaterial.ts @@ -0,0 +1,113 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalteachingmaterial/page', + method: 'get', + params: query, + }); +}; + +/** + * 统计页面 + * @param query + */ +export const staticsPage = (query?: any) => { + return request({ + url: '/professional/professionalteachingmaterial/staticsPage', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalteachingmaterial', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalteachingmaterial/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalteachingmaterial/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalteachingmaterial', + method: 'put', + data: obj, + }); +}; + +/** + * 更新状态 + * @param obj + */ +export const updateStatus = (obj: any) => { + return request({ + url: '/professional/professionalteachingmaterial/updateStatus', + method: 'post', + data: obj, + }); +}; + +/** + * 检查标题 + * @param obj + */ +export const checkTitle = (obj: any) => { + return request({ + url: '/professional/professionalteachingmaterial/checkTitle', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/professionaltitleconfig.ts b/src/api/professional/professionaltitleconfig.ts new file mode 100644 index 0000000..fe945d3 --- /dev/null +++ b/src/api/professional/professionaltitleconfig.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionaltitleconfig/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionaltitleconfig', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionaltitleconfig/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionaltitleconfig/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionaltitleconfig', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/professionaltopiclist.ts b/src/api/professional/professionaltopiclist.ts new file mode 100644 index 0000000..6071eb1 --- /dev/null +++ b/src/api/professional/professionaltopiclist.ts @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionaltopiclist/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionaltopiclist', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionaltopiclist/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionaltopiclist/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionaltopiclist', + method: 'put', + data: obj, + }); +}; + +/** + * 更新状态 + * @param obj + */ +export const updateStatus = (obj: any) => { + return request({ + url: '/professional/professionaltopiclist/updateStatus', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/professionaluser/professionalpartychange.ts b/src/api/professional/professionaluser/professionalpartychange.ts new file mode 100644 index 0000000..f5cf8d1 --- /dev/null +++ b/src/api/professional/professionaluser/professionalpartychange.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalpartychange/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalpartychange', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalpartychange/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalpartychange/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalpartychange', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/professionaluser/professionalqualificationrelation.ts b/src/api/professional/professionaluser/professionalqualificationrelation.ts new file mode 100644 index 0000000..a0092fe --- /dev/null +++ b/src/api/professional/professionaluser/professionalqualificationrelation.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query 查询参数 + */ +export function fetchList(query?: any) { + return request({ + url: '/professional/professionalqualificationrelation/page', + method: 'get', + params: query, + }); +} + +/** + * 添加对象 + * @param obj 对象数据 + */ +export function addObj(obj?: any) { + return request({ + url: '/professional/professionalqualificationrelation', + method: 'post', + data: obj, + }); +} + +/** + * 添加职业资格关系 + * @param obj 对象数据 + */ +export function addQuaRelation(obj?: any) { + return request({ + url: '/professional/professionalqualificationrelation', + method: 'post', + data: obj, + }); +} + +/** + * 获取对象 + * @param id 对象ID + */ +export function getObj(id: string | number) { + return request({ + url: '/professional/professionalqualificationrelation/' + id, + method: 'get', + }); +} + +/** + * 删除对象 + * @param id 对象ID + */ +export function delObj(id: string | number) { + return request({ + url: '/professional/professionalqualificationrelation/' + id, + method: 'delete', + }); +} + +/** + * 删除职业资格对象 + * @param id 对象ID + */ +export function delQuaObj(id: string | number) { + return request({ + url: '/professional/professionalqualificationrelation/' + id, + method: 'delete', + }); +} + +/** + * 更新对象 + * @param obj 对象数据 + */ +export function putObj(obj?: any) { + return request({ + url: '/professional/professionalqualificationrelation', + method: 'put', + data: obj, + }); +} + +/** + * 获取图表选项 + */ +export function getChartOption() { + return request({ + url: '/professional/professionalqualificationrelation/getChartOption', + method: 'get', + }); +} + +/** + * 获取职业资格统计信息 + */ +export function quaCountInfo() { + return request({ + url: '/professional/professionalqualificationrelation/countInfo', + method: 'get', + }); +} + +/** + * 导出Excel + * @param data 查询参数 + */ +export function exportExcel(data: any) { + return request({ + url: '/professional/professionalqualificationrelation/exportExcel', + method: 'post', + data: data, + responseType: 'blob', + }); +} + diff --git a/src/api/professional/professionaluser/professionalteacheracademicrelation.ts b/src/api/professional/professionaluser/professionalteacheracademicrelation.ts new file mode 100644 index 0000000..e9bd7b6 --- /dev/null +++ b/src/api/professional/professionaluser/professionalteacheracademicrelation.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalteacheracademicrelation/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalteacheracademicrelation', + method: 'post', + data: obj, + }); +}; + +/** + * 新增学术关系 + * @param obj + */ +export const addAcadeRelation = (obj: any) => { + return request({ + url: '/professional/professionalteacheracademicrelation', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalteacheracademicrelation/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalteacheracademicrelation/${id}`, + method: 'delete', + }); +}; + +/** + * 删除教育对象 + * @param id + */ +export const delEduObj = (id: string | number) => { + return request({ + url: `/professional/professionalteacheracademicrelation/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalteacheracademicrelation', + method: 'put', + data: obj, + }); +}; + +/** + * 获取图表配置 + */ +export const getChartOption = () => { + return request({ + url: '/professional/professionalteacheracademicrelation/getChartOption', + method: 'get', + }); +}; + +/** + * 获取统计信息 + */ +export const countInfo = () => { + return request({ + url: '/professional/professionalteacheracademicrelation/countInfo', + method: 'get', + }); +}; + +/** + * 导出Excel + * @param data 查询参数 + */ +export const exportExcel = (data: any) => { + return request({ + url: '/professional/professionalteacheracademicrelation/exportExcel', + method: 'post', + data: data, + responseType: 'blob', + }); +}; + diff --git a/src/api/professional/professionaluser/professionalteachercertificaterelation.ts b/src/api/professional/professionaluser/professionalteachercertificaterelation.ts new file mode 100644 index 0000000..5ee330a --- /dev/null +++ b/src/api/professional/professionaluser/professionalteachercertificaterelation.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalteachercertificaterelation/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalteachercertificaterelation', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalteachercertificaterelation/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalteachercertificaterelation/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalteachercertificaterelation', + method: 'put', + data: obj, + }); +}; + +/** + * 获取证书统计信息 + */ +export const cerCountInfo = () => { + return request({ + url: '/professional/professionalteachercertificaterelation/countInfo', + method: 'get', + }); +}; + +/** + * 导出Excel + * @param data 查询参数 + */ +export const exportExcel = (data: any) => { + return request({ + url: '/professional/professionalteachercertificaterelation/exportExcel', + method: 'post', + data: data, + responseType: 'blob', + }); +}; + diff --git a/src/api/professional/professionaluser/professionalteacherhonor.ts b/src/api/professional/professionaluser/professionalteacherhonor.ts new file mode 100644 index 0000000..4ff41a6 --- /dev/null +++ b/src/api/professional/professionaluser/professionalteacherhonor.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalteacherhonor/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalteacherhonor', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalteacherhonor/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalteacherhonor/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalteacherhonor', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/professionaluser/professionalteacherstationchange.ts b/src/api/professional/professionaluser/professionalteacherstationchange.ts new file mode 100644 index 0000000..5ed275f --- /dev/null +++ b/src/api/professional/professionaluser/professionalteacherstationchange.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalteacherstationchange/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalteacherstationchange', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalteacherstationchange/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalteacherstationchange/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalteacherstationchange', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/professionaluser/professionaltitlerelation.ts b/src/api/professional/professionaluser/professionaltitlerelation.ts new file mode 100644 index 0000000..253e727 --- /dev/null +++ b/src/api/professional/professionaluser/professionaltitlerelation.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionaltitlerelation/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionaltitlerelation', + method: 'post', + data: obj, + }); +}; + +/** + * 新增职称关系对象 + * @param obj + */ +export const addTitleRelationObj = (obj: any) => { + return request({ + url: '/professional/professionaltitlerelation', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionaltitlerelation/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionaltitlerelation/${id}`, + method: 'delete', + }); +}; + +/** + * 删除职称对象 + * @param id + */ +export const delTitleObj = (id: string | number) => { + return request({ + url: `/professional/professionaltitlerelation/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionaltitlerelation', + method: 'put', + data: obj, + }); +}; + +/** + * 获取图表配置 + */ +export const getChartOption = () => { + return request({ + url: '/professional/professionaltitlerelation/getChartOption', + method: 'get', + }); +}; + +/** + * 获取职称统计信息 + */ +export const titleCountInfo = () => { + return request({ + url: '/professional/professionaltitlerelation/countInfo', + method: 'get', + }); +}; + +/** + * 导出Excel + * @param data 查询参数 + */ +export const exportRelation = (data: any) => { + return request({ + url: '/professional/professionaltitlerelation/exportRelation', + method: 'post', + data: data, + responseType: 'blob', + }); +}; + diff --git a/src/api/professional/professionalyearbounds.ts b/src/api/professional/professionalyearbounds.ts new file mode 100644 index 0000000..197d82e --- /dev/null +++ b/src/api/professional/professionalyearbounds.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalyearbounds/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalyearbounds', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalyearbounds/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalyearbounds/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalyearbounds', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/rsbase/academicqualificationsconfig.ts b/src/api/professional/rsbase/academicqualificationsconfig.ts new file mode 100644 index 0000000..b183696 --- /dev/null +++ b/src/api/professional/rsbase/academicqualificationsconfig.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/academicqualificationsconfig/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/academicqualificationsconfig/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/academicqualificationsconfig/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/academicqualificationsconfig/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/academicqualificationsconfig/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取资格列表 + */ +export const getQualificationList = () => { + return request({ + url: '/professional/academicqualificationsconfig/getQualificationList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/professionalacademicdegreeconfig.ts b/src/api/professional/rsbase/professionalacademicdegreeconfig.ts new file mode 100644 index 0000000..3e8a13d --- /dev/null +++ b/src/api/professional/rsbase/professionalacademicdegreeconfig.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalacademicdegreeconfig/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalacademicdegreeconfig/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalacademicdegreeconfig/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalacademicdegreeconfig/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalacademicdegreeconfig/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取学位列表 + */ +export const getDegreeList = () => { + return request({ + url: '/professional/professionalacademicdegreeconfig/getDegreeList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/professionalacademiceducationtypeconfig.ts b/src/api/professional/rsbase/professionalacademiceducationtypeconfig.ts new file mode 100644 index 0000000..21d6388 --- /dev/null +++ b/src/api/professional/rsbase/professionalacademiceducationtypeconfig.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalacademiceducationtypeconfig/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalacademiceducationtypeconfig/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalacademiceducationtypeconfig/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalacademiceducationtypeconfig/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalacademiceducationtypeconfig/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取所有教育类型列表(用于下拉选择) + */ +export const getAllTypeList = () => { + return request({ + url: '/professional/professionalacademiceducationtypeconfig/getAllTypeList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/professionalatstation.ts b/src/api/professional/rsbase/professionalatstation.ts new file mode 100644 index 0000000..e18cff3 --- /dev/null +++ b/src/api/professional/rsbase/professionalatstation.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalatstation/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalatstation/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalatstation/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalatstation/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalatstation/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取在站列表 + */ +export const getAtStationList = () => { + return request({ + url: '/professional/professionalatstation/getAtStationList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/professionalemploymentnature.ts b/src/api/professional/rsbase/professionalemploymentnature.ts new file mode 100644 index 0000000..ab665cc --- /dev/null +++ b/src/api/professional/rsbase/professionalemploymentnature.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalemploymentnature/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalemploymentnature/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalemploymentnature/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalemploymentnature/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalemploymentnature/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取就业性质列表 + */ +export const getEmploymentNatureList = () => { + return request({ + url: '/professional/professionalemploymentnature/getEmploymentNatureList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/professionalmajorstation.ts b/src/api/professional/rsbase/professionalmajorstation.ts new file mode 100644 index 0000000..0fe5eb2 --- /dev/null +++ b/src/api/professional/rsbase/professionalmajorstation.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalmajorstation/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalmajorstation/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalmajorstation/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalmajorstation/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalmajorstation/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取主要岗位列表 + */ +export const getMajorStationList = () => { + return request({ + url: '/professional/professionalmajorstation/getMajorStationList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/professionalpaperconfig.ts b/src/api/professional/rsbase/professionalpaperconfig.ts new file mode 100644 index 0000000..ce888c3 --- /dev/null +++ b/src/api/professional/rsbase/professionalpaperconfig.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalpaperconfig/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalpaperconfig/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalpaperconfig/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalpaperconfig/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalpaperconfig/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取论文配置列表 + */ +export const getPaperConfigList = () => { + return request({ + url: '/professional/professionalpaperconfig/getPaperConfigList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/professionalpartybranch.ts b/src/api/professional/rsbase/professionalpartybranch.ts new file mode 100644 index 0000000..5ebdc26 --- /dev/null +++ b/src/api/professional/rsbase/professionalpartybranch.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalpartybranch/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalpartybranch/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalpartybranch/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalpartybranch/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalpartybranch/edit', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/rsbase/professionalqualificationconfig.ts b/src/api/professional/rsbase/professionalqualificationconfig.ts new file mode 100644 index 0000000..b09ed60 --- /dev/null +++ b/src/api/professional/rsbase/professionalqualificationconfig.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalqualificationconfig/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalqualificationconfig/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalqualificationconfig/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalqualificationconfig/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalqualificationconfig/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取级别列表 + */ +export const getLevelList = () => { + return request({ + url: '/professional/professionalqualificationconfig/getLevelList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/professionalstationdutylevel.ts b/src/api/professional/rsbase/professionalstationdutylevel.ts new file mode 100644 index 0000000..76d591f --- /dev/null +++ b/src/api/professional/rsbase/professionalstationdutylevel.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalstationdutylevel/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalstationdutylevel/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalstationdutylevel/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalstationdutylevel/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalstationdutylevel/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取岗位职级列表 + */ +export const getStationDutyLevelList = () => { + return request({ + url: '/professional/professionalstationdutylevel/getStationDutyLevelList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/professionalstationtype.ts b/src/api/professional/rsbase/professionalstationtype.ts new file mode 100644 index 0000000..21d5256 --- /dev/null +++ b/src/api/professional/rsbase/professionalstationtype.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalstationtype/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalstationtype/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalstationtype/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalstationtype/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalstationtype/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取岗位类型列表 + */ +export const getStationTypeList = () => { + return request({ + url: '/professional/professionalstationtype/getStationTypeList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/professionalteachercertificateconf.ts b/src/api/professional/rsbase/professionalteachercertificateconf.ts new file mode 100644 index 0000000..1e66ce8 --- /dev/null +++ b/src/api/professional/rsbase/professionalteachercertificateconf.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalteachercertificateconf/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalteachercertificateconf/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalteachercertificateconf/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalteachercertificateconf/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalteachercertificateconf/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取教师资格证列表(用于下拉选择) + */ +export const getTeacherCertificateList = () => { + return request({ + url: '/professional/professionalteachercertificateconf/getTeacherCertificateList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/professionalteachertype.ts b/src/api/professional/rsbase/professionalteachertype.ts new file mode 100644 index 0000000..13bf69e --- /dev/null +++ b/src/api/professional/rsbase/professionalteachertype.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalteachertype/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalteachertype/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalteachertype/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalteachertype/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalteachertype/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取教师类型列表 + */ +export const getTeacherTypeList = () => { + return request({ + url: '/professional/professionalteachertype/getTeacherTypeList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/professionalteachingmaterialconfig.ts b/src/api/professional/rsbase/professionalteachingmaterialconfig.ts new file mode 100644 index 0000000..67db0d4 --- /dev/null +++ b/src/api/professional/rsbase/professionalteachingmaterialconfig.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalteachingmaterialconfig/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalteachingmaterialconfig/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalteachingmaterialconfig/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalteachingmaterialconfig/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalteachingmaterialconfig/edit', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/rsbase/professionaltitlelevelconfig.ts b/src/api/professional/rsbase/professionaltitlelevelconfig.ts new file mode 100644 index 0000000..68cc9a8 --- /dev/null +++ b/src/api/professional/rsbase/professionaltitlelevelconfig.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionaltitlelevelconfig/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionaltitlelevelconfig/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionaltitlelevelconfig/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionaltitlelevelconfig/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionaltitlelevelconfig/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取职称列表 + */ +export const getProfessionalTitleList = () => { + return request({ + url: '/professional/professionaltitlelevelconfig/getProfessionalTitleList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/professionaltopiclevelconfig.ts b/src/api/professional/rsbase/professionaltopiclevelconfig.ts new file mode 100644 index 0000000..e9f9be8 --- /dev/null +++ b/src/api/professional/rsbase/professionaltopiclevelconfig.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionaltopiclevelconfig/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionaltopiclevelconfig/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionaltopiclevelconfig/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionaltopiclevelconfig/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionaltopiclevelconfig/edit', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/rsbase/professionaltopicsourceconfig.ts b/src/api/professional/rsbase/professionaltopicsourceconfig.ts new file mode 100644 index 0000000..de62fde --- /dev/null +++ b/src/api/professional/rsbase/professionaltopicsourceconfig.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionaltopicsourceconfig/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionaltopicsourceconfig/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionaltopicsourceconfig/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionaltopicsourceconfig/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionaltopicsourceconfig/edit', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/rsbase/professionalworktype.ts b/src/api/professional/rsbase/professionalworktype.ts new file mode 100644 index 0000000..ef5a88e --- /dev/null +++ b/src/api/professional/rsbase/professionalworktype.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/professionalworktype/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/professionalworktype/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/professionalworktype/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/professionalworktype/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/professionalworktype/edit', + method: 'post', + data: obj, + }); +}; + +/** + * 获取工作类型列表 + */ +export const getWorkTypeList = () => { + return request({ + url: '/professional/professionalworktype/getWorkTypeList', + method: 'get', + }); +}; + diff --git a/src/api/professional/rsbase/typeofworkconfig.ts b/src/api/professional/rsbase/typeofworkconfig.ts new file mode 100644 index 0000000..7445dea --- /dev/null +++ b/src/api/professional/rsbase/typeofworkconfig.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/typeofworkconfig/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/typeofworkconfig/add', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/typeofworkconfig/getById`, + method: 'get', + params: { + id: id + } + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/typeofworkconfig/deleteById`, + method: 'post', + data: { + id: id + } + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/typeofworkconfig/edit', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/salaryexportrecord.ts b/src/api/professional/salaryexportrecord.ts new file mode 100644 index 0000000..c8c89e2 --- /dev/null +++ b/src/api/professional/salaryexportrecord.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/salaryexportrecord/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/salaryexportrecord', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/salaryexportrecord/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/salaryexportrecord/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/salaryexportrecord', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/scienceachievement.ts b/src/api/professional/scienceachievement.ts new file mode 100644 index 0000000..dee85b2 --- /dev/null +++ b/src/api/professional/scienceachievement.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/scienceachievement/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/scienceachievement', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/scienceachievement/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/scienceachievement/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/scienceachievement', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/sciencechangehistory.ts b/src/api/professional/sciencechangehistory.ts new file mode 100644 index 0000000..1eb0f86 --- /dev/null +++ b/src/api/professional/sciencechangehistory.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/sciencechangehistory/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/sciencechangehistory', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/sciencechangehistory/${id}`, + method: 'get', + }); +}; + +/** + * 查询历史数据 + * @param id + */ +export const queryHistoryData = (id: string | number) => { + return request({ + url: `/professional/sciencechangehistory/queryHistoryData/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/sciencechangehistory/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/sciencechangehistory', + method: 'put', + data: obj, + }); +}; + +/** + * 上传材料 + * @param obj + */ +export const uploadMaterial = (obj: any) => { + return request({ + url: '/professional/sciencechangehistory/uploadMaterial', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/scienceendcheck.ts b/src/api/professional/scienceendcheck.ts new file mode 100644 index 0000000..7b7792d --- /dev/null +++ b/src/api/professional/scienceendcheck.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/scienceEndCheck', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/scienceEndCheck/${id}`, + method: 'get', + }); +}; + +/** + * 提交中期检查 + * @param obj + */ +export const subMidCheck = (obj: any) => { + return request({ + url: '/professional/scienceEndCheck/subMidCheck', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/sciencemidcheck.ts b/src/api/professional/sciencemidcheck.ts new file mode 100644 index 0000000..5f46329 --- /dev/null +++ b/src/api/professional/sciencemidcheck.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/sciencemidcheck', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/sciencemidcheck/${id}`, + method: 'get', + }); +}; + +/** + * 提交中期检查 + * @param obj + */ +export const subMidCheck = (obj: any) => { + return request({ + url: '/professional/sciencemidcheck/subMidCheck', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/sciencereport.ts b/src/api/professional/sciencereport.ts new file mode 100644 index 0000000..2e6ab67 --- /dev/null +++ b/src/api/professional/sciencereport.ts @@ -0,0 +1,209 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/sciencereport/page', + method: 'get', + params: query, + }); +}; + +/** + * 静态页面 + * @param query + */ +export const staticPage = (query?: any) => { + return request({ + url: '/professional/sciencereport/staticPage', + method: 'get', + params: query, + }); +}; + +/** + * 导出数据 + * @param query + */ +export const exportData = (query?: any) => { + return request({ + url: '/professional/sciencereport/exportData', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/sciencereport', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/sciencereport/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/sciencereport/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/sciencereport', + method: 'put', + data: obj, + }); +}; + +/** + * 提交其他结束材料 + * @param obj + */ +export const subOtherEndMaterial = (obj: any) => { + return request({ + url: '/professional/sciencereport/subOtherEndMaterial', + method: 'post', + data: obj, + }); +}; + +/** + * 统计报告 + * @param obj + */ +export const staticsReport = (obj: any) => { + return request({ + url: '/professional/professionalStatics/statics', + method: 'post', + data: obj, + }); +}; + +/** + * 审查报告 + * @param obj + */ +export const examReport = (obj: any) => { + return request({ + url: '/professional/sciencereport/examReport', + method: 'post', + data: obj, + }); +}; + +/** + * 审查变更 + * @param obj + */ +export const examChange = (obj: any) => { + return request({ + url: '/professional/sciencereport/examChange', + method: 'post', + data: obj, + }); +}; + +/** + * 上传材料 + * @param obj + */ +export const uploadMaterial = (obj: any) => { + return request({ + url: '/professional/sciencereport/uploadMaterial', + method: 'post', + data: obj, + }); +}; + +/** + * 提交变更 + * @param obj + */ +export const subChange = (obj: any) => { + return request({ + url: '/professional/sciencereport/subChange', + method: 'post', + data: obj, + }); +}; + +/** + * 二次确认 + * @param obj + */ +export const secConfirm = (obj: any) => { + return request({ + url: '/professional/sciencereport/secConfirm', + method: 'post', + data: obj, + }); +}; + +/** + * 其他选项 + * @param obj + */ +export const otherOption = (obj: any) => { + return request({ + url: '/professional/sciencereport/otherOption', + method: 'post', + data: obj, + }); +}; + +/** + * 编辑报告用户 + * @param obj + */ +export const editReportUser = (obj: any) => { + return request({ + url: '/professional/sciencereport/editReportUser', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/sciencereportmember.ts b/src/api/professional/sciencereportmember.ts new file mode 100644 index 0000000..d1486b9 --- /dev/null +++ b/src/api/professional/sciencereportmember.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/sciencereportmember/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/sciencereportmember', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/sciencereportmember/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/sciencereportmember/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/sciencereportmember', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/supervisevotebatch.ts b/src/api/professional/supervisevotebatch.ts new file mode 100644 index 0000000..01a91c1 --- /dev/null +++ b/src/api/professional/supervisevotebatch.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/supervisevotebatch/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/supervisevotebatch', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/supervisevotebatch/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/supervisevotebatch/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/supervisevotebatch', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/supervisevotebatchpwd.ts b/src/api/professional/supervisevotebatchpwd.ts new file mode 100644 index 0000000..2ddbdaa --- /dev/null +++ b/src/api/professional/supervisevotebatchpwd.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/supervisevotebatchpwd/list', + method: 'get', + params: query, + }); +}; + +/** + * 生成 + * @param obj + */ +export const gen = (obj: any) => { + return request({ + url: '/professional/supervisevotebatchpwd/gen', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/supervisevotemember.ts b/src/api/professional/supervisevotemember.ts new file mode 100644 index 0000000..127ea3f --- /dev/null +++ b/src/api/professional/supervisevotemember.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/supervisevotemember/list', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/supervisevotemember', + method: 'post', + data: obj, + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/supervisevotemember/${id}`, + method: 'delete', + }); +}; + diff --git a/src/api/professional/supervisevotememberresult.ts b/src/api/professional/supervisevotememberresult.ts new file mode 100644 index 0000000..f0e1391 --- /dev/null +++ b/src/api/professional/supervisevotememberresult.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/supervisevotememberresult/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/supervisevotememberresult', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/supervisevotememberresult/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/supervisevotememberresult/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/supervisevotememberresult', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/teacherawardtax.ts b/src/api/professional/teacherawardtax.ts new file mode 100644 index 0000000..46b4610 --- /dev/null +++ b/src/api/professional/teacherawardtax.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/teacherawardtax/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/teacherawardtax', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/teacherawardtax/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/teacherawardtax/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/teacherawardtax', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/teacherbase.ts b/src/api/professional/teacherbase.ts new file mode 100644 index 0000000..e204df7 --- /dev/null +++ b/src/api/professional/teacherbase.ts @@ -0,0 +1,338 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/teacherbase/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/teacherbase', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/teacherbase/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/teacherbase/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/teacherbase', + method: 'put', + data: obj, + }); +}; + +/** + * 添加信息 + * @param obj + */ +export const addInformation = (obj: any) => { + return request({ + url: '/professional/teacherbase/addInformation', + method: 'post', + data: obj, + }); +}; + +/** + * 获取部门教师 + * @param obj + */ +export const getDeptTeacher = (obj: string | number) => { + return request({ + url: `/professional/teacherbase/getDeptTeacher/${obj}`, + method: 'get', + }); +}; + +/** + * 获取所有信息列表 + */ +export const getAllInfoAboutList = () => { + return request({ + url: '/professional/teacherbase/getAllInfoAboutList', + method: 'get', + }); +}; + +/** + * 更新其他信息 + * @param obj + */ +export const updateOtherInfo = (obj: any) => { + return request({ + url: '/professional/teacherbase/updateOtherInfo', + method: 'post', + data: obj, + }); +}; + +/** + * 导出无图片用户 + */ +export const exportNoImgUser = () => { + return request({ + url: '/professional/teacherbase/exportNoImgUser', + method: 'get', + }); +}; + +/** + * 根据编号查询教师基础信息 + * @param obj + */ +export const queryTeacherBaseByNo = (obj: string | number) => { + return request({ + url: `/professional/teacherbase/queryTeacherBaseByNo/${obj}`, + method: 'get', + }); +}; + +/** + * 查询教师信息(EMS) + * @param obj + */ +export const queryTeacherInfoForEms = (obj: string | number) => { + return request({ + url: `/professional/teacherbase/queryTeacherInfoForEms/${obj}`, + method: 'get', + }); +}; + +/** + * 根据编号查询教师基础信息(资产) + * @param obj + */ +export const queryTeacherBaseByNoByAssets = (obj: string | number) => { + return request({ + url: `/professional/teacherbase/queryTeacherBaseByNoByAssets/${obj}`, + method: 'get', + }); +}; + +/** + * 获取教师信息(EMS搜索) + * @param query + */ +export const getTeacherInfoForEmsSearch = (query?: any) => { + return request({ + url: '/professional/teacherbase/getTeacherInfoForEmsSearch', + method: 'get', + params: query, + }); +}; + +/** + * 获取缺失的教师信息 + * @param query + */ +export const getMissTeacherInfo = (query?: any) => { + return request({ + url: '/professional/teacherbase/getMissTeacherInfo', + method: 'get', + params: query, + }); +}; + +/** + * 重置密码 + * @param data + */ +export const resetPassWord = (data: any) => { + return request({ + url: '/professional/teacherbase/resetPassWord', + method: 'post', + data: data, + }); +}; + +/** + * 获取我的教师编号 + */ +export const getMyTeacherNo = () => { + return request({ + url: '/professional/teacherbase/getMyTeacherNo', + method: 'get', + }); +}; + +/** + * 修改进出状态 + * @param data + */ +export const updateInout = (data: any) => { + return request({ + url: '/professional/teacherbase/updateInout', + method: 'post', + data: data, + }); +}; + +/** + * 导出教师信息 + * @param data + */ +export const exportTeacherInfo = (data: any) => { + return request({ + url: '/professional/teacherbase/exportTeacherInfo', + method: 'post', + data: data, + }); +}; + +/** + * 获取教师基础列表 + * @param query + */ +export const getTeacherBaseList = (query?: any) => { + return request({ + url: '/professional/teacherbase/TeacherBaseList', + method: 'get', + params: query, + }); +}; + +/** + * 带权限的教师列表 + * @param query + */ +export const teacherListWithPermission = (query?: any) => { + return request({ + url: '/professional/teacherbase/teacherListWithPermission', + method: 'get', + params: query, + }); +}; + +/** + * 按权限获取教师列表 + * @param query + */ +export const teacherListByPermission = (query?: any) => { + return request({ + url: '/professional/teacherbase/teacherListByPermission', + method: 'get', + params: query, + }); +}; + +/** + * 获取教师信息(通用) + * @param query + */ +export const getTeacherInfoCommon = (query?: any) => { + return request({ + url: '/professional/teacherbase/getTeacherInfoCommon', + method: 'get', + params: query, + }); +}; + +/** + * 查询所有教师 + */ +export const queryAllTeacher = () => { + return request({ + url: '/professional/teacherbase/queryAllTeacher', + method: 'get', + }); +}; + +/** + * 根据招聘查询所有教师 + */ +export const queryAllTeacherByRecruit = () => { + return request({ + url: '/professional/teacherbase/queryAllTeacherByRecruit', + method: 'get', + }); +}; + +/** + * 查询教师岗位信息 + * @param data + */ +export const queryTeacherStationInfo = (data: any) => { + return request({ + url: '/professional/teacherbase/queryTeacherStationInfo', + method: 'post', + data: data, + }); +}; + +/** + * 查询我的部门代码 + * @param data + */ +export const queryMyDeptCode = (data: any) => { + return request({ + url: '/professional/teacherbase/queryMyDeptCode', + method: 'post', + data: data, + }); +}; + +/** + * 搜索 + * @param data + */ +export const search = (data: string | number) => { + return request({ + url: `/professional/teacherbase/search/${data}`, + method: 'get', + }); +}; + diff --git a/src/api/professional/teacherpayslip.ts b/src/api/professional/teacherpayslip.ts new file mode 100644 index 0000000..0f4bdb9 --- /dev/null +++ b/src/api/professional/teacherpayslip.ts @@ -0,0 +1,183 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/teacherpayslip/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/teacherpayslip', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/teacherpayslip/${id}`, + method: 'get', + }); +}; + +/** + * 查询用户信息 + * @param obj + */ +export const queryUserInfo = (obj: any) => { + return request({ + url: '/professional/teacherpayslip/queryUserInfo', + method: 'post', + data: obj, + }); +}; + +/** + * 设置可搜索 + * @param obj + */ +export const setCanSearch = (obj: any) => { + return request({ + url: '/professional/teacherpayslip/setCanSearch', + method: 'post', + data: obj, + }); +}; + +/** + * 清空培训池 + * @param obj + */ +export const clearTrainPool = (obj: any) => { + return request({ + url: '/professional/teacherpayslip/clearTrainPool', + method: 'post', + data: obj, + }); +}; + +/** + * 更新单个薪资 + * @param obj + */ +export const updateSingleSalary = (obj: any) => { + return request({ + url: '/professional/teacherpayslip/updateSingleSalary', + method: 'post', + data: obj, + }); +}; + +/** + * 批量删除 + * @param obj + */ +export const delBatch = (obj: any) => { + return request({ + url: '/professional/teacherpayslip/delBatch', + method: 'post', + data: obj, + }); +}; + +/** + * 计算薪资金额 + * @param obj + */ +export const countSalaryMoney = (obj: any) => { + return request({ + url: '/professional/teacherpayslip/countSalaryMoney', + method: 'post', + data: obj, + }); +}; + +/** + * 导出培训池 + * @param obj + */ +export const exportTrainPool = (obj: any) => { + return request({ + url: '/professional/teacherpayslip/exportTrainPool', + method: 'post', + data: obj, + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/teacherpayslip/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/teacherpayslip', + method: 'put', + data: obj, + }); +}; + +/** + * 重新生成数据 + */ +export const remakeData = () => { + return request({ + url: '/professional/teacherpayslip/remakeData', + method: 'get', + }); +}; + +/** + * 查询扩展薪资信息 + * @param obj + */ +export const queryExtendSalaryInfo = (obj: any) => { + return request({ + url: '/professional/teacherpayslip/queryExtendSalaryInfo', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/teachersalary.ts b/src/api/professional/teachersalary.ts new file mode 100644 index 0000000..3e3c31f --- /dev/null +++ b/src/api/professional/teachersalary.ts @@ -0,0 +1,193 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/teachersalary/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/teachersalary', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/teachersalary/${id}`, + method: 'get', + }); +}; + +/** + * 查询用户信息 + * @param obj + */ +export const queryUserInfo = (obj: any) => { + return request({ + url: '/professional/teachersalary/queryUserInfo', + method: 'post', + data: obj, + }); +}; + +/** + * 设置可搜索 + * @param obj + */ +export const setCanSearch = (obj: any) => { + return request({ + url: '/professional/teachersalary/setCanSearch', + method: 'post', + data: obj, + }); +}; + +/** + * 清空培训池 + * @param obj + */ +export const clearTrainPool = (obj: any) => { + return request({ + url: '/professional/teachersalary/clearTrainPool', + method: 'post', + data: obj, + }); +}; + +/** + * 更新单个薪资 + * @param obj + */ +export const updateSingleSalary = (obj: any) => { + return request({ + url: '/professional/teachersalary/updateSingleSalary', + method: 'post', + data: obj, + }); +}; + +/** + * 批量删除 + * @param obj + */ +export const delBatch = (obj: any) => { + return request({ + url: '/professional/teachersalary/delBatch', + method: 'post', + data: obj, + }); +}; + +/** + * 计算薪资金额 + * @param obj + */ +export const countSalaryMoney = (obj: any) => { + return request({ + url: '/professional/teachersalary/countSalaryMoney', + method: 'post', + data: obj, + }); +}; + +/** + * 导出培训池 + * @param obj + */ +export const exportTrainPool = (obj: any) => { + return request({ + url: '/professional/teachersalary/exportTrainPool', + method: 'post', + data: obj, + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/teachersalary/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/teachersalary', + method: 'put', + data: obj, + }); +}; + +/** + * 重新生成数据 + */ +export const remakeData = () => { + return request({ + url: '/professional/teachersalary/remakeData', + method: 'get', + }); +}; + +/** + * 检查权限 + */ +export const checkAuth = () => { + return request({ + url: '/professional/teachersalary/checkAuth', + method: 'get', + }); +}; + +/** + * 查询扩展薪资信息 + * @param obj + */ +export const queryExtendSalaryInfo = (obj: any) => { + return request({ + url: '/professional/teachersalary/queryExtendSalaryInfo', + method: 'post', + data: obj, + }); +}; + diff --git a/src/api/professional/teachersalarytax.ts b/src/api/professional/teachersalarytax.ts new file mode 100644 index 0000000..2e495a7 --- /dev/null +++ b/src/api/professional/teachersalarytax.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/teachersalarytax/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/teachersalarytax', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/teachersalarytax/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/teachersalarytax/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/teachersalarytax', + method: 'put', + data: obj, + }); +}; + diff --git a/src/api/professional/teachertravel.ts b/src/api/professional/teachertravel.ts new file mode 100644 index 0000000..e64f992 --- /dev/null +++ b/src/api/professional/teachertravel.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import request from '/@/utils/request'; + +/** + * 获取列表 + * @param query + */ +export const fetchList = (query?: any) => { + return request({ + url: '/professional/teachertravel/page', + method: 'get', + params: query, + }); +}; + +/** + * 新增 + * @param obj + */ +export const addObj = (obj: any) => { + return request({ + url: '/professional/teachertravel', + method: 'post', + data: obj, + }); +}; + +/** + * 销假申请 - 修改返程数据 + * @param obj + */ +export const updateTravelReturn = (obj: any) => { + return request({ + url: '/professional/teachertravel/updateTravelReturn', + method: 'post', + data: obj, + }); +}; + +/** + * 获取详情 + * @param id + */ +export const getObj = (id: string | number) => { + return request({ + url: `/professional/teachertravel/${id}`, + method: 'get', + }); +}; + +/** + * 删除 + * @param id + */ +export const delObj = (id: string | number) => { + return request({ + url: `/professional/teachertravel/${id}`, + method: 'delete', + }); +}; + +/** + * 更新 + * @param obj + */ +export const putObj = (obj: any) => { + return request({ + url: '/professional/teachertravel', + method: 'put', + data: obj, + }); +}; + +/** + * 外出审批 + * @param obj + */ +export const applyData = (obj: any) => { + return request({ + url: '/professional/teachertravel/applyData', + method: 'post', + data: obj, + }); +}; + +/** + * 销假审批 + * @param obj + */ +export const applyTravelReturnData = (obj: any) => { + return request({ + url: '/professional/teachertravel/applyTravelReturnData', + method: 'post', + data: obj, + }); +}; + +/** + * 获取角色 + */ +export const getRole = () => { + return request({ + url: '/professional/teachertravel/getRole', + method: 'get', + }); +}; + +/** + * 获取逾期 + * @param query + */ +export const getOverDue = (query?: any) => { + return request({ + url: '/professional/teachertravel/getOverDue', + method: 'get', + params: query, + }); +}; + +/** + * 重新选择核酸类型 + * @param obj + */ +export const rechooseNucleType = (obj: any) => { + return request({ + url: '/professional/teachertravel/rechooseNucleType', + method: 'post', + data: obj, + }); +}; + diff --git a/src/components/AuditState/index.vue b/src/components/AuditState/index.vue new file mode 100644 index 0000000..2f6337f --- /dev/null +++ b/src/components/AuditState/index.vue @@ -0,0 +1,58 @@ + + + + + + diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index 0c78b20..3309979 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -6,7 +6,7 @@ :pager-count="5" :page-sizes="props.pageSizes" :current-page="props.current" - background + :background="props.background" :page-size="props.size" :layout="props.layout" :total="props.total" @@ -40,6 +40,10 @@ const props = defineProps({ type: String, default: 'total, sizes, prev, pager, next, jumper', }, + background: { + type: Boolean, + default: false, + }, }); // 分页改变 const sizeChangeHandle = (val: number) => { diff --git a/src/components/SearchForm/index.vue b/src/components/SearchForm/index.vue new file mode 100644 index 0000000..a5fab61 --- /dev/null +++ b/src/components/SearchForm/index.vue @@ -0,0 +1,176 @@ + + + + + + diff --git a/src/components/TeacherNameNo/index.vue b/src/components/TeacherNameNo/index.vue new file mode 100644 index 0000000..ceeb083 --- /dev/null +++ b/src/components/TeacherNameNo/index.vue @@ -0,0 +1,107 @@ + + + + + + diff --git a/src/components/index.ts b/src/components/index.ts index b8c0b82..431e362 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -1,5 +1,6 @@ import Pagination from '/@/components/Pagination/index.vue'; import RightToolbar from '/@/components/RightToolbar/index.vue'; +import SearchForm from '/@/components/SearchForm/index.vue'; import DictTag from '/@/components/DictTag/index.vue'; import DictSelect from '/@/components/DictTag/Select.vue'; import UploadExcel from '/@/components/Upload/Excel.vue'; @@ -42,6 +43,7 @@ export default { app.component('DictSelect', DictSelect); app.component('Pagination', Pagination); app.component('RightToolbar', RightToolbar); + app.component('SearchForm', SearchForm); app.component('uploadExcel', UploadExcel); app.component('UploadFile', UploadFile); app.component('UploadImg', UploadImg); diff --git a/src/components/tools/auth-img.vue b/src/components/tools/auth-img.vue new file mode 100644 index 0000000..19c9383 --- /dev/null +++ b/src/components/tools/auth-img.vue @@ -0,0 +1,93 @@ + + + diff --git a/src/components/tools/commondict.vue b/src/components/tools/commondict.vue new file mode 100644 index 0000000..a5abb9c --- /dev/null +++ b/src/components/tools/commondict.vue @@ -0,0 +1,981 @@ + + diff --git a/src/components/tools/drawer-container.vue b/src/components/tools/drawer-container.vue new file mode 100644 index 0000000..0e9c64e --- /dev/null +++ b/src/components/tools/drawer-container.vue @@ -0,0 +1,707 @@ + + + + + diff --git a/src/components/tools/sensitive.vue b/src/components/tools/sensitive.vue new file mode 100644 index 0000000..0600ba1 --- /dev/null +++ b/src/components/tools/sensitive.vue @@ -0,0 +1,139 @@ + + + + diff --git a/src/components/tools/wangEditor.vue b/src/components/tools/wangEditor.vue new file mode 100644 index 0000000..d7e0087 --- /dev/null +++ b/src/components/tools/wangEditor.vue @@ -0,0 +1,179 @@ + + + + + + + diff --git a/src/const/crud/activiti/activiti.js b/src/const/crud/activiti/activiti.js new file mode 100644 index 0000000..ab66472 --- /dev/null +++ b/src/const/crud/activiti/activiti.js @@ -0,0 +1,64 @@ +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menuWidth: 150, + menuBtn: true, + align: 'center', + editBtn: false, + delBtn: false, + filterBtn:false, + menuType: 'menu', + searchShow: false, + labelWidth: 120, + column: [{ + fixed: true, + label: '模型ID', + prop: 'id', + editDisabled: true, + addDisplay: false + }, { + fixed: true, + label: '模型标识', + prop: 'key', + editDisabled: true + }, { + label: '流程分类', + prop: 'category', + search: true + }, { + label: '模型名称', + prop: 'name' + }, { + label: '描述', + prop: 'desc', + hide: true, + editDisabled: false, + addDisplay: true + }, { + label: '版本号', + prop: 'version', + editDisabled: true, + addDisplay: false + }, { + width: 150, + label: '创建时间', + prop: 'createTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm', + valueFormat: 'timestamp', + editDisabled: true, + addDisplay: false + }, { + width: 150, + label: '最后更新时间', + prop: 'lastUpdateTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm', + valueFormat: 'timestamp', + editDisabled: true, + addDisplay: false + }] +} diff --git a/src/const/crud/activiti/assetsInvalid.js b/src/const/crud/activiti/assetsInvalid.js new file mode 100644 index 0000000..acf8034 --- /dev/null +++ b/src/const/crud/activiti/assetsInvalid.js @@ -0,0 +1,148 @@ +export const tableOption = { + border: true, + index: true, + stripe: true, + menuAlign: 'center', + align: 'center', + menuBtn: true, + editBtn: false, + delBtn: false, + addBtn: false, + filterBtn:false, + column: [ + { + label: '任务ID', + prop: 'taskId', + editDisabled: true, + addDisplay: false, + }, + { + label: '任务名称', + prop: 'taskName', + editDisabled: true, + addDisplay: false + }, + { + label: '任务描述', + prop: 'description', + editDisabled: true, + addDisplay: false, + width:450, + }, + + { + label: '提交时间', + prop: 'time', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm' + } + ] +} +export const formOption = { + submitBtn: false, + emptytBtn: false, + row: true, + span: 12, + column: [ + { + label: "任务编号", + prop: "taskId", + disabled: true + }, + { + label: "任务名称", + prop: "taskName", + disabled: true + } + ] +} + +export const tableDictItemOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + menu:false, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + showSummary:true, + addBtn: false, + refreshBtn: false, + showColumnBtn: false, + searchSize: 'mini', + height:500, + dic: [], + sumColumnList: [ + { + label:'合计:', + name: 'sum', + type: 'sum', + decimals:1 + }, + { + name: 'price', + type: 'sum' + }], + column: [ + { + //报废单审核明细列表请排个序,名称、编码、型号、部门、面积、单位、单价、数量、总价、入库日期、报废类型。另外抬头请用学校全称 + label:'江苏省常州技师学院', + children:[ + { + label: '入库时间', + prop: 'time' + }, + { + label: '数量', + prop: 'num' + }, { + label: '单价', + prop: 'price' + }, + { + label: '单位', + prop: 'unit' + } + , + { + label: '面积', + prop: 'area' + }, + { + label: '部门名称', + prop: 'oldDeptName' + } + , + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '资产编码', + prop: 'code', + } , + { + label: '资产名称', + prop: 'goodsName' + }, + + { + label: '报废类型', + prop: 'type', + type:'select', + dicData:[{label:"电子废物",value:"0"},{label:"土地房屋",value:"1"},{label:"汽车类",value:"2"},{label:"其他",value:"3"}], + props:{ + label:'label', + value:'value' + }, + }, + { + label: '报废原因', + prop: 'invalidReason' + }, + ] + } + ] +} diff --git a/src/const/crud/activiti/assetsTransfer.js b/src/const/crud/activiti/assetsTransfer.js new file mode 100644 index 0000000..a7e4b90 --- /dev/null +++ b/src/const/crud/activiti/assetsTransfer.js @@ -0,0 +1,157 @@ +export const tableOption = { + border: true, + index: true, + stripe: true, + menuAlign: 'center', + align: 'center', + menuBtn: true, + editBtn: false, + delBtn: false, + addBtn: false, + filterBtn:false, + column: [ + // { + // label: '任务ID', + // prop: 'taskId', + // editDisabled: true, + // addDisplay: false + // }, + { + label: '任务名称', + prop: 'taskName', + editDisabled: true, + addDisplay: false + }, + { + label: '任务描述', + prop: 'description', + editDisabled: true, + addDisplay: false, + width:450, + }, + + { + label: '提交时间', + prop: 'time', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm' + } + ] +} + +export const tableDictItemOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + showSummary:true, + addBtn: false, + refreshBtn: false, + showColumnBtn: false, + searchSize: 'mini', + height:500, + dic: [], + sumColumnList: [ + { + label:'合计:', + name: 'sum', + type: 'sum', + decimals:1 + }, + { + name: 'num', + type: 'sum' + }, + { + name: 'price', + type: 'sum' + }], + column: [ + { + label:'江苏省常州技师学院固定资产调拨单', + children:[ + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '面积', + prop: 'area' + }, + { + label: '单位', + prop: 'unit' + }, + { + label: '数量', + prop: 'num' + }, + { + label: '调拨时间', + prop: 'createTime' + }, { + label: '流程实例状态', + prop: 'procInsStatus' + }, + { + label: '原资产编码', + prop: 'oldCode', + }, + { + label: '原部门名称', + prop: 'oldDeptName' + }, + { + label: '新资产编码', + prop: 'newCode', + }, + { + label: '新部门名称', + prop: 'newDeptName' + }, + { + label: '资产名称', + prop: 'goodsName' + }, { + width:150, + label: '单价', + prop: 'price' + } + ] + } + ] +} + +export const taskOption = { + menu: false, + page: false, + addBtn: false, + align: 'center', + menuAlign: 'center', + column: [ + { + label: 'id', + prop: 'id', + hide: true + }, + { + label: '用户', + prop: 'userId' + }, + { + label: '批注', + prop: 'fullMessage' + }, { + label: "操作时间", + prop: "time", + type: "datetime", + format: "yyyy-MM-dd hh:mm:ss", + valueFormat: "yyyy-MM-dd hh:mm:ss", + } + ] +} + diff --git a/src/const/crud/activiti/historicFlow.js b/src/const/crud/activiti/historicFlow.js new file mode 100644 index 0000000..7aed4b5 --- /dev/null +++ b/src/const/crud/activiti/historicFlow.js @@ -0,0 +1,68 @@ +export const procHistricOption = { + border: true, + index: true, + // indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + refreshBtn:false, + columnBtn:false, + + dialogClickModal:false, + // dialogFullscreen:true, + fit:true, + dialogWeight:'90%', + dialogHeight:'90%', + dic: [], + + column: [ + { + label: '主键', + prop: 'id', + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + hide:true, + },{ + label: '执行环节', + prop: 'activityName', + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + },{ + label: '执行人', + prop: 'assigneeName', + // slot:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + },{ + label: '开始时间', + prop: 'startTime', + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + },{ + label: '结束时间', + prop: 'endTime', + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + },{ + label: '审核意见', + prop: 'comment', + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }] +} diff --git a/src/const/crud/activiti/leave-bill.js b/src/const/crud/activiti/leave-bill.js new file mode 100644 index 0000000..d7a1b06 --- /dev/null +++ b/src/const/crud/activiti/leave-bill.js @@ -0,0 +1,67 @@ +export const tableOption = { + border: true, + index: true, + stripe: true, + menuAlign: 'center', + align: 'center', + menuBtn: true, + editBtn: false, + delBtn: false, + addBtn: false, + filterBtn:false, + menuType: 'menu', + 'column': [ + { + label: 'ID', + prop: 'leaveId', + editDisabled: true, + addDisplay: false + }, + { + label: '申请人', + prop: 'username', + editDisabled: true, + addDisplay: false + }, + { + label: '天数', + prop: 'days', + type: 'number' + }, + { + label: '请假时间', + prop: 'leaveTime', + type: 'datetime', + overHidden: true, + format: 'yyyy-MM-dd HH:mm', + valueFormat: "yyyy-MM-dd hh:mm:ss" + }, + { + label: '提交时间', + prop: 'createTime', + type: 'datetime', + overHidden: true, + format: 'yyyy-MM-dd HH:mm', + editDisabled: true, + addDisplay: false, + hide: true + }, + { + label: '状态', + prop: 'state', + type: 'select', + dicUrl: '/admin/dict/type/leave_status', + search: true, + addDisplay: false + }, + { + label: '备注', + prop: 'content', + type: 'textarea', + overHidden: true, + minRows: 2, + row: true, + span: 24 + } + ] +} diff --git a/src/const/crud/activiti/process.js b/src/const/crud/activiti/process.js new file mode 100644 index 0000000..784af9d --- /dev/null +++ b/src/const/crud/activiti/process.js @@ -0,0 +1,46 @@ +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menuWidth: 150, + menuBtn: true, + align: 'center', + addBtn: false, + editBtn: false, + delBtn: false, + filterBtn:false, + menuType: 'menu', + searchShow: false, + column: [{ + fixed: true, + label: '流程ID', + prop: 'processonDefinitionId' + }, { + fixed: true, + label: '模型标识', + prop: 'key', + editDisabled: true + }, { + label: '流程分类', + prop: 'category', + search: true + }, { + label: '模型名称', + prop: 'name' + }, { + label: '版本号', + prop: 'revision', + editDisabled: true, + addDisplay: false + }, { + label: '部署时间', + prop: 'deploymentTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm', + valueFormat: 'timestamp', + editDisabled: true, + addDisplay: false + }] +} diff --git a/src/const/crud/activiti/task.js b/src/const/crud/activiti/task.js new file mode 100644 index 0000000..65d0e70 --- /dev/null +++ b/src/const/crud/activiti/task.js @@ -0,0 +1,97 @@ +export const tableOption = { + border: true, + index: true, + stripe: true, + menuAlign: 'center', + align: 'center', + menuBtn: false, + editBtn: false, + delBtn: false, + addBtn: false, + filterBtn:false, + viewBtn:false, + + // title: "培训立项申报任务", + menuType: 'menu', + column: [ + { + label: '任务ID', + prop: 'taskId', + editDisabled: true, + addDisplay: false, + }, + { + label: '任务名称', + prop: 'taskName', + editDisabled: true, + addDisplay: false + }, + // { + // label: '模块', + // prop: 'category', + // editDisabled: true, + // addDisplay: false + // }, + { + label: '任务描述', + prop: 'description', + editDisabled: true, + addDisplay: false, + width:450, + }, + + { + label: '提交时间', + prop: 'time', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm' + } + ] +} +export const formOption = { + submitBtn: false, + emptytBtn: false, + row: true, + span: 12, + column: [ + { + label: "任务编号", + prop: "taskId", + disabled: true + }, + { + label: "任务名称", + prop: "taskName", + disabled: true + } + ] +} + +export const taskOption = { + menu: false, + page: false, + addBtn: false, + align: 'center', + menuAlign: 'center', + column: [ + { + label: 'id', + prop: 'id', + hide: true + }, + { + label: '用户', + prop: 'userId' + }, + { + label: '批注', + prop: 'fullMessage' + }, { + label: "操作时间", + prop: "time", + type: "datetime", + format: "yyyy-MM-dd hh:mm:ss", + valueFormat: "yyyy-MM-dd hh:mm:ss", + } + ] +} diff --git a/src/const/crud/activiti/workamount.js b/src/const/crud/activiti/workamount.js new file mode 100644 index 0000000..9bd6623 --- /dev/null +++ b/src/const/crud/activiti/workamount.js @@ -0,0 +1,268 @@ +import {isInvalid} from "@/const/crud/asset/assets/assetassets"; + +export const procInsStatusList=[ + {label:"待提交",value:"0"}, + {label:"待部门审核",value:"1"}, + {label:"部门审核驳回",value:"2"}, + {label:"待业务分管处审核",value:"3"}, + {label:"业务分管处驳回",value:"4"}, + {label:"待财务审核",value:"5"}, + {label:"财务审核驳回",value:"6"}, + {label:"待部门负责人审批",value:"7"}, + {label:"部门负责人驳回",value:"8"}, + {label:"待分管院领导审批",value:"9"}, + {label:"分管院领导驳回",value:"10"}, + {label:"待校党委审批",value:"11"}, + {label:"校党委驳回",value:"12"}, + {label:"审核通过",value:"13"}, +] +export const procInsWanderStatusList=[ + {label:"待采购处确认",value:"-1"}, + {label:"待部门完善信息",value:"0"}, + {label:"待部门审核",value:"1"}, + {label:"部门审核驳回",value:"2"}, + {label:"待业务分管处审核",value:"3"}, + {label:"业务分管处驳回",value:"4"}, + {label:"待财务审核",value:"5"}, + {label:"财务审核驳回",value:"6"}, + {label:"待部门负责人审批",value:"7"}, + {label:"部门负责人驳回",value:"8"}, + {label:"待分管院领导审批",value:"9"}, + {label:"分管院领导驳回",value:"10"}, + {label:"待校党委审批",value:"11"}, + {label:"校党委驳回",value:"12"}, + {label:"待后勤负责人审批",value:"13"}, + {label:"后勤负责人驳回",value:"14"}, + {label:"审核通过",value:"15"}, +] + + +export const tableOption = { + border: true, + index: true, + stripe: true, + menuAlign: 'center', + align: 'center', + menuBtn: true, + editBtn: false, + delBtn: false, + addBtn: false, + filterBtn:false, + column: [ + { + label: 'ID', + prop: 'taskId', + hide:true, + editDisabled: true, + addDisplay: false + }, + { + label: '任务名称', + prop: 'taskName', + editDisabled: true, + addDisplay: false + }, + { + label: '备注', + prop: 'remark', + type:'select', + dicData:procInsStatusList, + props:{ + label:'label', + value:'value' + }, + editDisabled: true, + addDisplay: false + }, + { + label: '提交时间', + prop: 'time', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm' + } + ] +} + +export const tableOptionOther = { + border: true, + index: true, + stripe: true, + menuAlign: 'center', + align: 'center', + menuBtn: true, + editBtn: false, + delBtn: false, + addBtn: false, + filterBtn:false, + column: [ + { + label: 'ID', + prop: 'taskId', + hide:true, + editDisabled: true, + addDisplay: false + }, + { + label: '部门', + prop: 'purchasingDept', + editDisabled: true, + addDisplay: false + }, + { + label: '采购内容', + prop: 'purchasingContent', + editDisabled: true, + addDisplay: false + }, + { + label: '采购需求及依据', + prop: 'purchasingDemand', + editDisabled: true, + addDisplay: false + }, + { + label: '采购金额', + prop: 'budget', + editDisabled: true, + addDisplay: false + }, + { + label: '任务状态', + prop: 'taskName', + editDisabled: true, + hide:true, + addDisplay: false + }, + { + label: '流程状态', + prop: 'remark', + type:'select', + dicData:procInsStatusList, + props:{ + label:'label', + value:'value' + }, + editDisabled: true, + addDisplay: false + } + ] +} + +export const formOption = { + submitBtn: false, + emptytBtn: false, + row: true, + span: 12, + column: [ + { + label: "任务编号", + prop: "taskId", + disabled: true + }, + { + label: "任务名称", + prop: "taskName", + disabled: true + }, + { + label: "申请人", + prop: "createBy", + disabled: true + }, + { + label: "申请时间", + prop: "time", + type: 'datetime', + format: 'yyyy-MM-dd HH:mm', + disabled: true + }, + { + label: '批注', + prop: 'comment', + type: 'textarea', + minRows: 2, + row: true, + span: 24, + rules: [{ + required: true, + message: "请输入备注", + trigger: "blur" + }] + } + ] +} + +export const taskOption = { + menu: false, + page: false, + addBtn: false, + align: 'center', + menuAlign: 'center', + column: [ + { + label: 'id', + prop: 'id', + hide: true + }, + { + label: '用户', + prop: 'userId' + }, + { + label: '批注', + prop: 'fullMessage' + }, { + label: "操作时间", + prop: "time", + type: "datetime", + format: "yyyy-MM-dd hh:mm:ss", + valueFormat: "yyyy-MM-dd hh:mm:ss", + } + ] +} + +export const tableWanderOption = { + border: true, + index: true, + stripe: true, + menuAlign: 'center', + align: 'center', + menuBtn: true, + editBtn: false, + delBtn: false, + addBtn: false, + filterBtn:false, + column: [ + { + label: 'ID', + prop: 'taskId', + hide:true, + editDisabled: true, + addDisplay: false + }, + { + label: '任务名称', + prop: 'taskName', + editDisabled: true, + addDisplay: false + }, + { + label: '备注', + prop: 'remark', + type:'select', + dicData:procInsWanderStatusList, + props:{ + label:'label', + value:'value' + }, + editDisabled: true, + addDisplay: false + }, + { + label: '提交时间', + prop: 'time', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm' + } + ] +} diff --git a/src/const/crud/admin/client.js b/src/const/crud/admin/client.js new file mode 100644 index 0000000..24f45b8 --- /dev/null +++ b/src/const/crud/admin/client.js @@ -0,0 +1,103 @@ +const DIC = { + vaild: [{ + label: '否', + value: 'false' + }, { + label: '是', + value: 'true' + }] +} +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + viewBtn: true, + filterBtn:false, + size:"small", + column: [{ + width: 150, + label: '编号', + prop: 'clientId', + align: 'center', + sortable: true, + rules: [{ + required: true, + message: '请输入clientId', + trigger: 'blur' + }] + }, { + label: '密钥', + prop: 'clientSecret', + align: 'center', + sortable: true, + overHidden: true, + rules: [{ + required: true, + message: '请输入clientSecret', + trigger: 'blur' + }] + }, { + label: '域', + prop: 'scope', + align: 'center', + rules: [{ + required: true, + message: '请输入scope', + trigger: 'blur' + }] + }, { + label: '授权模式', + prop: 'authorizedGrantTypes', + align: 'center', + overHidden: true, + rules: [{ + required: true, + message: '请输入授权模式', + trigger: 'blur' + }] + }, { + label: '回调地址', + prop: 'webServerRedirectUri', + align: 'center', + hide: true + }, { + label: '权限', + prop: 'authorities', + align: 'center', + hide: true + }, { + label: '令牌时效', + prop: 'accessTokenValidity', + align: 'center' + }, { + label: '刷新时效', + prop: 'refreshTokenValidity', + align: 'center' + }, { + label: '扩展信息', + prop: 'additionalInformation', + align: 'center', + hide: true + }, { + label: '自动放行', + prop: 'autoapprove', + align: 'center', + type: 'radio', + dicData: DIC.vaild, + rules: [{ + required: true, + message: '请选择是否放行', + trigger: 'blur' + }] + }, { + label: '资源ID', + prop: 'resourceIds', + align: 'center', + hide: true + }] +} diff --git a/src/const/crud/admin/dept.js b/src/const/crud/admin/dept.js new file mode 100644 index 0000000..84de142 --- /dev/null +++ b/src/const/crud/admin/dept.js @@ -0,0 +1,55 @@ +export const tableOption = { + border: true, + stripe: true, + menuAlign: 'center', + menuWidth: 150, + align: 'center', + refreshBtn: false, + showColumn: false, + viewBtn: false, + addBtn: false, + editBtn: false, + delBtn: false, + filterBtn: false, + expandAll: false, + tree: true, + page: false, + size:"small", + column: [ + { + label: '部门ID', + prop: 'id', + align:'left', + display: false + }, + { + label: '父级节点', + prop: 'parentId', + type: 'tree', + dicUrl: '/admin/dept/tree', + props: { + label: 'name', + value: 'id' + }, + rules: [{ + required: true, + message: '请选择父级节点', + trigger: 'blur' + }] + }, + { + label: '部门名称', + prop: 'name', + rules: [{ + required: true, + message: '请输入部门名称', + trigger: 'blur' + }] + }, + { + label: '排序', + prop: 'sort', + type: 'number' + } + ] +} diff --git a/src/const/crud/admin/dict.js b/src/const/crud/admin/dict.js new file mode 100644 index 0000000..0f47d89 --- /dev/null +++ b/src/const/crud/admin/dict.js @@ -0,0 +1,105 @@ +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + refreshBtn: false, + showColumn: false, + viewBtn: false, + filterBtn:false, + size:"small", + column: [{ + label: '类型', + prop: 'type', + search: true, + rules: [{ + required: true, + message: '请输入字典类型', + trigger: 'blur' + }] + }, { + label: '描述', + prop: 'description', + rules: [{ + required: true, + message: '请输入字典描述', + trigger: 'blur' + }] + }, { + label: '备注信息', + prop: 'remarks' + }, { + label: '创建时间', + prop: 'createTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + addDisplay:false, + editDisabled:true + }, { + label: '修改时间', + prop: 'createTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + addDisplay:false, + editDisabled:true + }] +} + +export const tableDictItemOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + refreshBtn: false, + showColumnBtn: false, + searchSize: 'mini', + column: [{ + label: '类型', + prop: 'type', + addDisabled: true, + editDisabled: true + }, { + width: 150, + label: '数据值', + prop: 'value', + rules: [{ + required: true, + message: '请输入数据值', + trigger: 'blur' + }] + }, { + label: '标签名', + prop: 'label', + rules: [{ + required: true, + message: '请输入标签名', + trigger: 'blur' + }] + }, { + label: '描述', + prop: 'description', + rules: [{ + required: true, + message: '请输入字典描述', + trigger: 'blur' + }] + }, { + label: '排序', + prop: 'sort', + type: 'number', + rules: [{ + required: true, + message: '请输入排序', + trigger: 'blur' + }] + }, { + label: '备注信息', + prop: 'remarks' + }] +} diff --git a/src/const/crud/admin/log.js b/src/const/crud/admin/log.js new file mode 100644 index 0000000..4566ed2 --- /dev/null +++ b/src/const/crud/admin/log.js @@ -0,0 +1,51 @@ +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menuWidth: 150, + align: 'center', + refreshBtn: true, + showColumn: false, + searchSize: 'mini', + addBtn: false, + editBtn: false, + delBtn: false, + viewBtn: true, + filterBtn:false, + props: { + label: 'label', + value: 'value' + }, + column: [{ + label: '类型', + prop: 'type', + type: 'select', + search: true, + dicUrl: '/admin/dict/type/log_type' + }, { + label: '标题', + prop: 'title' + }, { + label: 'IP地址', + prop: 'remoteAddr' + }, { + label: '请求方式', + prop: 'method' + }, { + label: '客户端', + prop: 'serviceId' + }, { + width: 80, + label: '请求时间', + prop: 'time' + }, { + width: 150, + label: '创建时间', + prop: 'createTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm', + valueFormat: 'yyyy-MM-dd HH:mm:ss' + }] +} diff --git a/src/const/crud/admin/menu.js b/src/const/crud/admin/menu.js new file mode 100644 index 0000000..27dfb10 --- /dev/null +++ b/src/const/crud/admin/menu.js @@ -0,0 +1,128 @@ +const DIC = { + keepAlive: [{ + label: '关闭', + value: '0' + }, { + label: '开启', + value: '1' + }], + type: [{ + label: '按钮', + value: '1' + }, { + label: '菜单', + value: '0' + }], + isOrNo:[{ + label: '否', + value: '0' + }, { + label: '是', + value: '1' + }] +} +export const tableOption = { + border: true, + stripe: true, + menuAlign: 'center', + menuWidth: 150, + align: 'center', + refreshBtn: false, + showColumn: false, + viewBtn:false, + addBtn: false, + editBtn: false, + delBtn: false, + filterBtn: false, + // expandLevel: 2, + + + tree: true, + page: false, + dialogClickModal:false, + size:"small", + column: [ + { + label: '节点ID', + prop: 'id', + align:'left', + rules: [{ + required: true, + message: '请输入节点ID', + trigger: 'blur' + }] + }, + { + label: '父级节点', + prop: 'parentId', + type:'tree', + dicUrl: '/admin/menu/tree', + props: { + label: 'name', + value: 'id' + }, + }, + { + label: '菜单标题', + prop: 'name', + rules: [{ + required: true, + message: '请输入菜单标题', + trigger: 'blur' + }] + }, + { + label: '权限标识', + prop: 'permission' + }, + { + label: '模块', + prop: 'module' + }, + { + label: '图标', + prop: 'icon' + }, + { + label: '类型', + prop: 'type', + type: 'switch', + dicData: DIC.type + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '前端组件', + prop: 'component' + }, + { + label: '前端地址', + prop: 'path' + }, + { + label: '路由缓冲', + prop: 'keepAlive', + type: 'switch', + dicData: DIC.keepAlive + }, + { + label: '是否为手机菜单', + prop: 'mobileFlag', + type: "switch", + dicData:DIC.isOrNo + }, + { + label: '手机图标', + prop: 'mobileIcon', + slot:true, + hide:true, + formslot:true, + }, + { + label: '手机端跳转标志', + prop: 'mobileJumpFlag', + } + ] +} diff --git a/src/const/crud/admin/role.js b/src/const/crud/admin/role.js new file mode 100644 index 0000000..47c5d25 --- /dev/null +++ b/src/const/crud/admin/role.js @@ -0,0 +1,69 @@ +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + editBtn: false, + delBtn: false, + align: 'center', + addBtn: false, + viewBtn: true, + filterBtn: false, + size: "small", + column: [{ + width: 240, + fixed: true, + label: '角色名称', + prop: 'roleName', + span: 24, + rules: [{ + required: true, + message: '角色名称不能为空', + trigger: 'blur' + }, + { + min: 3, + max: 100, + message: '长度在 3 到 100 个字符', + trigger: 'blur' + } + ] + }, { + width: 240, + label: '角色标识', + prop: 'roleCode', + span: 24, + editDisabled: true, + rules: [{ + required: true, + message: '角色标识不能为空', + trigger: 'blur' + }, + { + min: 3, + max: 100, + message: '长度在 3 到 100 个字符', + trigger: 'blur' + } + ] + }, { + + label: '角色描述', + prop: 'roleDesc', + overHidden: true, + type: 'textarea', + minRows: 6, + span: 24, + }, { + width: 150, + label: '创建时间', + prop: 'createTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + editDisplay: false, + addDisplay: false, + span: 24, + }] +} diff --git a/src/const/crud/admin/sys-public-param.js b/src/const/crud/admin/sys-public-param.js new file mode 100644 index 0000000..fc55439 --- /dev/null +++ b/src/const/crud/admin/sys-public-param.js @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2018-2025, cloud All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of thecyweb.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: cloud + */ + +// import { rule } from "@/util/validateRules"; + +import {getObj} from '@/api/admin/sys-public-param' + + +var validateParam = (rule, value, callback) => { + getObj(value).then(response => { + if (window.boxType === 'edit') callback() + const result = response.data.data + if (result !== null) { + callback(new Error('参数键已经存在')) + } else { + callback() + } + }) +} + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + searchMenuSpan: 6, + column: [ + { + label: '名称', + search: true, + prop: 'publicName', + rules: [ + { required: true, message: '请输名称', trigger: 'blur' }, + { max: 30, message: '长度在 30 个字符', trigger: 'blur' }, + // { validator: rule.validatorNameCn, trigger: 'blur'} + ] + }, + { + label: '键', + prop: 'publicKey', + rules: [ + { required: true, message: '请输入键', trigger: 'blur' }, + // { validator: rule.validatorKey, trigger: 'blur'}, + { validator: validateParam, trigger: 'blur'}, + ] + + }, + { + label: '值', + overHidden: true, + prop: 'publicValue', + rules: [ + { required: true, message: '请输入值', trigger: 'blur' } + ] + }, + // { + // label: '编码', + // prop: 'validateCode' + // }, + // { + // label: '类型', + // prop: 'system', + // type: 'select', + // dicUrl: '/admin/dict/type/dict_type', + // // rules: [{ + // // required: true, + // // message: '请输入类型', + // // trigger: 'blur' + // // }], + // search: true + // }, + // { + // label: '状态', + // prop: 'status', + // width: 80, + // type: 'select', + // dicUrl: '/admin/dict/type/status_type', + // rules: [ + // { required: true, message: '请输入值', trigger: 'blur' } + // ] + // }, + // { + // label: '类型', + // prop: 'publicType', + // width: 80, + // type: 'select', + // dicUrl: '/admin/dict/type/param_type', + // rules: [{ + // required: true, + // message: '请选择类型', + // trigger: 'blur' + // }] + // } + // 省略 ... + ] +} diff --git a/src/const/crud/admin/sys-social-details.js b/src/const/crud/admin/sys-social-details.js new file mode 100644 index 0000000..9c9a191 --- /dev/null +++ b/src/const/crud/admin/sys-social-details.js @@ -0,0 +1,72 @@ +export const tableOption = { + border: true, + index: true, + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + filterBtn:false, + size:"small", + column: [{ + label: 'ID', + prop: 'id', + hide: true, + addDisplay: false, + editDisabled: true + }, + { + label: '类型', + prop: 'type', + type: 'select', + dicUrl: '/admin/dict/type/social_type', + search: true, + rules: [{ + required: true, + message: '请选择类型', + trigger: 'blur' + }] + }, + { + label: '描述', + prop: 'remark' + }, + { + label: 'appId', + prop: 'appId', + rules: [{ + required: true, + message: '请输入appId', + trigger: 'blur' + }] + }, + { + label: 'appSecret', + prop: 'appSecret', + rules: [{ + required: true, + message: '请输入appSecret', + trigger: 'blur' + }] + }, + { + label: '回调地址', + prop: 'redirectUrl', + rules: [{ + required: true, + message: '请输入回调地址', + trigger: 'blur' + }] + }, + { + valueFormat: 'timestamp', + format: 'yyyy-MM-dd hh:mm:ss', + label: '创建时间', + prop: 'createTime', + align: 'center', + addDisplay: false, + editDisabled: true + } + ] +} diff --git a/src/const/crud/admin/token.js b/src/const/crud/admin/token.js new file mode 100644 index 0000000..5029d6d --- /dev/null +++ b/src/const/crud/admin/token.js @@ -0,0 +1,43 @@ +const DIC = { + vaild: [{ + label: '否', + value: 'false' + }, { + label: '是', + value: 'true' + }] +} +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + addBtn: false, + editBtn: false, + delBtn: false, + filterBtn:false, + size:"small", + column: [{ + label: '令牌', + prop: 'token_value', + align: 'center' + }, { + label: '用户ID', + prop: 'user_id', + align: 'center' + }, { + label: '用户名', + prop: 'user_name', + align: 'center' + }, { + label: '类型', + prop: 'token_type', + align: 'center' + }, { + label: '过期时间', + prop: 'expires_in', + align: 'center' + }] +} diff --git a/src/const/crud/admin/user.js b/src/const/crud/admin/user.js new file mode 100644 index 0000000..f9680ee --- /dev/null +++ b/src/const/crud/admin/user.js @@ -0,0 +1,168 @@ +import {getDetails} from "@/api/admin/user"; + +var validateUsername = (rule, value, callback) => { + getDetails(value).then(response => { + if (window.boxType === 'edit') callback() + let result = response.data.data + if (result !== null) { + callback(new Error('用户名已经存在')) + } else { + callback() + } + }); +}; +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + editBtn: false, + delBtn: false, + align: 'center', + addBtn: false, + filterBtn: false, + size:"small", + column: [{ + fixed: true, + label: 'id', + prop: 'userId', + span: 24, + hide: true, + editDisabled: true, + editDisplay: false, + addDisplay: false, + }, { + fixed: true, + label: '用户名', + prop: 'username', + editDisabled: true, + + search: true, + span: 24, + rules: [{ + required: true, + message: "请输入用户名", + }, + { + min: 3, + max: 20, + message: "长度在 3 到 20 个字符", + trigger: "blur" + }, + {validator: validateUsername, trigger: 'blur'} + ] + }, { + label: '真实姓名', + prop: 'realName', + search: true, + span: 24, + rules: [{ + required: true, + message: "请输入真实姓名", + }] + }, + { + label: '用户类型', + prop: 'userType', + hide:true, + addDisplay:false, + editDisplay:false, + search:true, + dicUrl:'/admin/dict/item/type/sys_user_type', + type: 'select', + }, + + { + label: '密码', + prop: 'password', + type: 'password', + value: '', + hide: true, + span: 24, + rules: [{ + min: 6, + max: 20, + message: "长度在 6 到 20 个字符", + trigger: "blur" + }] + }, { + label: '所属部门', + prop: 'deptId', + formslot: true, + slot: true, + span: 24, + hide: true, + editDisabled: true, + editDisplay: false, + addDisplay: false, + rules: [{ + required: true, + message: "请选择部门", + trigger: "blur" + }] + }, { + label: '手机号', + prop: 'phone', + value: '', + hide: true, + span: 24, + editDisplay: false, + rules: [{ + min: 6, + max: 20, + message: "长度在 11 个字符", + trigger: "blur" + }] + }, { + label: '角色', + prop: 'role', + formslot: true, + slot: true, + overHidden: true, + span: 24, + rules: [{ + required: true, + message: "请选择角色", + trigger: "blur" + }], + }, { + label: '状态', + prop: "lockFlag", + type: "select", + span: 24, + rules: [{ + required: true, + message: "请选择状态", + trigger: "blur" + }], + dicData: [{ + label: '有效', + value: "0" + }, { + label: '锁定', + value: "9" + }] + }, { + width: 180, + label: '创建时间', + prop: 'createTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + hide: true, + editDisabled: true, + addDisplay: false, + editDisplay: false, + span: 24, + }, + { + width: 300, + label: '头像', + prop: 'imageUrl', + hide:true, + // slot:true, + formslot:true + }, + ] +} diff --git a/src/const/crud/admin/userphone.js b/src/const/crud/admin/userphone.js new file mode 100644 index 0000000..769e570 --- /dev/null +++ b/src/const/crud/admin/userphone.js @@ -0,0 +1,108 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + size:"small", + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide:true, + editDisabled: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '创建人', + prop: 'createBy', + hide:true, + editDisabled: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '创建时间', + prop: 'createTime', + hide:true, + editDisabled: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '更新人', + prop: 'updateBy', + hide:true, + editDisabled: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '更新时间', + prop: 'updateTime', + hide:true, + editDisabled: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '删除标记', + prop: 'delFlag', + hide:true, + editDisabled: true, + addDisplay: false, + editDisplay: false, + }, + + { + label: '所属租户', + prop: 'tenantId', + hide:true, + editDisabled: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '工号', + prop: 'username', + editDisabled: true, + }, + + { + label: '姓名', + prop: 'realName', + editDisabled: true, + }, + { + label: '手机号', + prop: 'phone' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/aj/scjajaddress.js b/src/const/crud/aj/scjajaddress.js new file mode 100755 index 0000000..a830585 --- /dev/null +++ b/src/const/crud/aj/scjajaddress.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + dic: [], + column: [ + { + label: '详细地址', + prop: 'detailAddress' + }, + { + label: '班级id', + prop: 'classId' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + + { + label: '创建时间', + prop: 'createTime' + }, + ] +} diff --git a/src/const/crud/aj/scjajarea.js b/src/const/crud/aj/scjajarea.js new file mode 100755 index 0000000..4979534 --- /dev/null +++ b/src/const/crud/aj/scjajarea.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '区域名称', + prop: 'areaName' + }, + { + label: '区域代码', + prop: 'areaCode' + }, + ] +} diff --git a/src/const/crud/aj/scjajareaaddress.js b/src/const/crud/aj/scjajareaaddress.js new file mode 100755 index 0000000..52b3fb4 --- /dev/null +++ b/src/const/crud/aj/scjajareaaddress.js @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableAddressOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '地区名称', + prop: 'addressName', + }, + ] +} diff --git a/src/const/crud/aj/scjajclassinfo.js b/src/const/crud/aj/scjajclassinfo.js new file mode 100755 index 0000000..89c04b9 --- /dev/null +++ b/src/const/crud/aj/scjajclassinfo.js @@ -0,0 +1,181 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const YES_OR_NO=[ + { + label:'展示', + value:'0' + }, + { + label:'不展示', + value:'1' + } + +] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + delBtn: false, + addBtn: false, + column: [ + { + label: '班级名称', + prop: 'className', + editDisabled:true, + search:true + }, + { + label: '培训年份', + prop: 'trainYear', + editDisabled:true, + search:true + }, + { + label: '类型', + prop: 'companyType', + type:'select', + editDisabled:true, + dicUrl: '/aj/scjajcompanytype/getAllTypeList', + props:{ + label:'typeName', + value:'id' + }, + }, + { + label: '培训地点', + prop: 'trainLocation', + editDisabled:true + + }, + { + label: '人员类型', + prop: 'personType', + type:'select', + editDisabled:true, + + dicUrl: '/admin/dict/item/type/person_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '培训类型', + prop: 'trainType', + search:true, + type:'select', + editDisabled:true, + dicUrl: '/admin/dict/item/type/train_class_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '报名截止日期', + prop: 'signEndTime', + type:'date', + format:'yyyy-MM-dd HH:mm', + valueFormat:'yyyy-MM-dd HH:mm:ss', + disabled:true + }, + { + label: '开始时间', + prop: 'trainStart', + type:'date', + format:'yyyy-MM-dd', + editDisabled:true + + }, + { + label: '结束时间', + prop: 'trainEnd', + type:'date', + format:'yyyy-MM-dd', + editDisabled:true + }, + { + label: '培训费', + prop: 'price', + type:'number', + precision: 2, + min:0, + rules:[ + { validator: function (rule, value, callback) { + if(value!=''){ + var reg =/^(\d|[1-9]\d+)(\.\d+)?$/ + if(!reg.test(value)){ + callback(new Error('请填写大于0的金额')); + }else{ + callback() + } + } + }, trigger: 'blur' } + ] + }, + { + label: '预招人数', + prop: 'totalNums', + type:'number', + disabled:true + }, + { + label: '是否展示', + prop: 'status', + type:'radio', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + search:true + } + ] +} + +export const tableAddressOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + column: [ + { + label: '详细地址', + prop: 'detailAddress', + rules: [{ + required: true, + message: '请输入地址', + trigger: 'blur' + }], + }, + { + label: '创建时间', + prop: 'createTime', + addDisabled:true, + addDisplay:false, + editDisabled:true, + }, + ] +} + diff --git a/src/const/crud/aj/scjajcombineorder.js b/src/const/crud/aj/scjajcombineorder.js new file mode 100755 index 0000000..c32add3 --- /dev/null +++ b/src/const/crud/aj/scjajcombineorder.js @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const combineOrderOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '订单号', + prop: 'orderNum' + }, + { + label: '微信账号', + prop: 'orderOutTradeNo' + }, + { + label: '应付金额', + prop: 'price' + }, + { + label: '实际到账', + prop: 'realPrice' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '付款时间', + prop: 'payTime' + }, + ] +} diff --git a/src/const/crud/aj/scjajcombinorderrelation.js b/src/const/crud/aj/scjajcombinorderrelation.js new file mode 100755 index 0000000..36b7c1a --- /dev/null +++ b/src/const/crud/aj/scjajcombinorderrelation.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '', + prop: 'combinOrderId' + }, + { + label: '', + prop: 'orderId' + }, + { + label: '', + prop: 'delFlag' + }, + ] +} diff --git a/src/const/crud/aj/scjajcompanytype.js b/src/const/crud/aj/scjajcompanytype.js new file mode 100755 index 0000000..588ea79 --- /dev/null +++ b/src/const/crud/aj/scjajcompanytype.js @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + dialogDrag:true, + column: [ + { + label: '名称', + prop: 'typeName' + }, + + ] +} diff --git a/src/const/crud/aj/scjajcompanytypesec.js b/src/const/crud/aj/scjajcompanytypesec.js new file mode 100755 index 0000000..972d081 --- /dev/null +++ b/src/const/crud/aj/scjajcompanytypesec.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '父节点', + prop: 'parentId' + }, + { + label: '类型名称', + prop: 'typeName' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + ] +} diff --git a/src/const/crud/aj/scjajcourse.js b/src/const/crud/aj/scjajcourse.js new file mode 100755 index 0000000..2ef4530 --- /dev/null +++ b/src/const/crud/aj/scjajcourse.js @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '培训班级名称', + prop: 'className', + editDisabled:true + }, + { + label: '班级名称', + prop: 'courseName', + editDisabled:true + + }, + { + label: '课时', + prop: 'courseHour', + editDisabled:true + + }, + { + label: '价格', + prop: 'price', + type:'number', + precision:2 + }, + + ] +} diff --git a/src/const/crud/aj/scjajorder.js b/src/const/crud/aj/scjajorder.js new file mode 100755 index 0000000..d4133ca --- /dev/null +++ b/src/const/crud/aj/scjajorder.js @@ -0,0 +1,277 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '订单号', + prop: 'orderNum', + addDisplay:false, + editDisabled:true + }, + { + label: '企业名', + prop: 'companyName', + editDisabled: true + }, + // { + // label: '班级', + // prop: 'className', + // editDisabled: true + // }, + // { + // label: '单价', + // prop: 'price', + // editDisabled: true + // }, + { + label: '订单类目', + prop: 'orderCate', + type:'select', + dicUrl: '/admin/dict/item/type/order_cate', + props:{ + label:'label', + value:'value' + }, + editDisabled: true + }, + { + label: '总价', + prop: 'price', + editDisabled: true + }, + { + label: '到账金额', + prop: 'realPrice', + editDisabled: true + }, + + // { + // label: '支付类别', + // prop: 'payType', + // type:'select', + // dicUrl: '/admin/dict/item/type/pay_type', + // props:{ + // label:'label', + // value:'value' + // }, + // editDisabled: true + // }, + { + label: '支付时间', + prop: 'payTime', + editDisabled: true + }, + { + label: '微信单号', + prop: 'orderOutTradeNo', + editDisabled: true + }, + { + label: '订单状态 ', + prop: 'status', + type:'select', + search:true, + dicUrl: '/admin/dict/item/type/order_status', + props:{ + label:'label', + value:'value' + }, + editDisabled: true + }, + { + label: '创建时间', + prop: 'createTime', + type:'date', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + editDisabled: true + }, + { + label: '备注', + type:'textarea', + row:true, + span:24, + prop: 'remark' + }, + ] +} + +// export const tableOrderOption = { +// border: true, +// index: true, +// indexLabel: '序号', +// stripe: true, +// menuAlign: 'center', +// align: 'center', +// editBtn: false, +// delBtn: false, +// addBtn: false, +// column: [ +// { +// label: '用户名', +// prop: 'personName', +// addDisplay:false, +// editDisabled:true +// }, +// { +// label: '电话', +// prop: 'personPhone', +// editDisabled: true +// }, +// { +// label: '性别', +// prop: 'sex', +// type: 'select', +// dicUrl: '/admin/dict/item/type/sexy', +// props:{ +// label:'label', +// value:'value' +// }, +// }, +// { +// label: '身份证号', +// prop: 'personId', +// editDisabled: true +// }, +// { +// label: '学历', +// prop: 'education', +// editDisabled: true +// }, +// { +// label: '职称', +// prop: 'proName', +// editDisabled: true +// }, +// { +// label: '培训班级名称', +// prop: 'className', +// editDisabled: true +// }, +// { +// label: '单位类型(小类)', +// prop: 'companySmalltype', +// type: 'select', +// dicUrl: '/aj/scjajcompanytypesec/getAllSecTypeList', +// props:{ +// label:'typeName', +// value:'id' +// }, +// editDisabled: true, +// }, +// { +// label: '费用', +// prop: 'price', +// editDisabled: true +// }, +// +// ] +// } + + +export const tableOrderOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '订单号', + prop: 'orderNum', + addDisplay:false, + editDisabled:true + }, + { + label: '企业名', + prop: 'companyName', + editDisabled: true + }, + { + label: '订单类目', + prop: 'orderCate', + type:'select', + dicUrl: '/admin/dict/item/type/order_cate', + props:{ + label:'label', + value:'value' + }, + editDisabled: true + }, + { + label: '总价', + prop: 'price', + editDisabled: true + }, + { + label: '到账金额', + prop: 'realPrice', + editDisabled: true + }, + { + label: '支付时间', + prop: 'payTime', + editDisabled: true + }, + { + label: '微信单号', + prop: 'orderOutTradeNo', + editDisabled: true + }, + { + label: '订单状态 ', + prop: 'status', + type:'select', + search:true, + dicUrl: '/admin/dict/item/type/order_status', + props:{ + label:'label', + value:'value' + }, + editDisabled: true + }, + { + label: '创建时间', + prop: 'createTime', + type:'date', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + editDisabled: true + }, + { + label: '备注', + type:'textarea', + row:true, + span:24, + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/aj/scjajorderpersonrelation.js b/src/const/crud/aj/scjajorderpersonrelation.js new file mode 100755 index 0000000..b7eb407 --- /dev/null +++ b/src/const/crud/aj/scjajorderpersonrelation.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '订单id', + prop: 'orderId' + }, + { + label: '用户id', + prop: 'personId' + }, + ] +} diff --git a/src/const/crud/aj/scjajperson.js b/src/const/crud/aj/scjajperson.js new file mode 100755 index 0000000..2e61d96 --- /dev/null +++ b/src/const/crud/aj/scjajperson.js @@ -0,0 +1,241 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +export const idType={ + value:'' +} + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:700, + selection:true, + + column: [ + { + label: '微信账单号', + prop: 'orderOutTradeNo', + disabled: true, + search:true, + hide:true + }, + { + label: '订单号', + prop: 'everOrderNum', + editDisabled: true, + search:true, + }, + { + label: '人员信息', + prop: 'personInfo', + editDisabled: true, + hide:true, + search:true, + display:false + }, + { + label: '人员姓名', + prop: 'personName', + }, + { + label: '人员类型', + prop: 'personType', + type: 'select', + dicUrl: '/admin/dict/item/type/person_type', + props:{ + label:'label', + value:'value' + }, + editDisabled: true, + }, + { + label: '证件类型', + prop: 'personidType', + type: 'select', + dicUrl: '/admin/dict/item/type/id_type', + props:{ + label:'label', + value:'value' + }, + rules:[ + { validator: function (rule, value, callback) { + idType['value']=value + callback() + }, + trigger: 'change' } + ] + }, + + { + label: '证件号码', + prop: 'personId', + rules:[ + { validator: function (rule, value, callback) { + if(idType['value']=='0'){ + if (value && (!(/\d{17}[\d|x]|\d{15}/).test(value) || (value.length !== 15 && value.length !== 18))) { + callback(new Error('身份证号码不规范')) + } else { + callback() + } + }else{ + callback() + } + + }, trigger: 'blur' } + ] + }, + { + label: '性别', + prop: 'sex', + type: 'radio', + dicUrl: '/admin/dict/item/type/sexy', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '电话号码', + prop: 'personPhone', + rules:[ + { validator: function (rule, value, callback) { + var reg=/^1[3456789]\d{9}$/; + if(!reg.test(value)){ + callback(new Error('请输入有效的手机号码')); + }else{ + callback() + } + }, trigger: 'blur' } + ] + }, + { + label: '培训班级名', + prop: 'className', + editDisabled: true, + search:true, + width:200 + }, + { + label: '单位信息', + prop: 'companyName', + editDisabled: true, + width:200, + search:true, + formslot:true, + }, + { + label: '单位子类型', + prop: 'secCompanyType', + type: 'select', + dicUrl: '/aj/scjajcompanytypesec/getAllSecTypeList', + props:{ + label:'typeName', + value:'id' + }, + }, + { + label: '报名时间', + prop: 'createTime', + editDisabled: true, + type:'date', + format:'yyyy-MM-dd HH:mm:ss' + }, + { + label: '职称', + prop: 'proName', + type: 'select', + dicUrl: '/admin/dict/item/type/proname_type', + props:{ + label:'label', + value:'label' + }, + }, + { + label: '学历', + prop: 'education', + type: 'select', + dicUrl: '/admin/dict/item/type/education_type', + props:{ + label:'label', + value:'label' + }, + }, + { + label: '付款时间', + prop: 'payTime', + editDisabled: true, + type:'date', + format:'yyyy-MM-dd' + }, + { + label: '付款截止时间', + prop: 'closeDate', + editDisabled: true, + type:'date', + format:'yyyy-MM-dd HH:mm:ss' + }, + { + label: '状态', + prop: 'orderStatus', + editDisabled: true, + search:true, + type: 'select', + dicUrl: '/admin/dict/item/type/order_status', + props:{ + label:'label', + value:'value' + }, + }, + // { + // label: '延迟付款时间(秒)', + // prop: 'closeTime', + // type:'number', + // hide:true + // }, + // { + // label: '关闭时间', + // prop: 'closeDate', + // type:'datetime', + // value:'yyyy-MM-dd HH:mm', + // valueFormat:'yyyy-MM-dd HH:mm:ss', + // slot:true + // }, + { + label: '是否同步', + prop: 'pushStatus', + editDisabled: true, + type: 'select', + search:true, + dicUrl: '/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '推送失败原因', + prop: 'info', + editDisabled: true, + } + ] +} diff --git a/src/const/crud/aj/scjajregister.js b/src/const/crud/aj/scjajregister.js new file mode 100755 index 0000000..1c87c0d --- /dev/null +++ b/src/const/crud/aj/scjajregister.js @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '单位名称', + prop: 'companyName', + editDisabled: true, + search:true, + }, + // { + // label: '新版营业执照', + // prop: 'isPick', + // type:'select', + // dicUrl: '/admin/dict/type/yes_no', + // props:{ + // label:'label', + // value:'value' + // }, + // + // }, + { + label: '统一社会信用代码', + prop: 'socialCode', + editDisabled: true, + search:true + }, + { + label: '区县代码', + prop: 'areaCode', + type:'select', + dicUrl: '/aj/scjajarea/getAreaNameByCode', + props:{ + label:'areaName', + value:'areaCode' + }, + }, + { + label: '详细地址', + prop: 'address', + editDisabled: true, + }, + { + label: '创建时间', + prop: 'createTime', + editDisabled:true, + }, + ] +} diff --git a/src/const/crud/aj/scjajstatistics.js b/src/const/crud/aj/scjajstatistics.js new file mode 100755 index 0000000..3f6282a --- /dev/null +++ b/src/const/crud/aj/scjajstatistics.js @@ -0,0 +1,235 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + menu:false, + searchText:'统计', + addBtn:false, + column: [ + { + label: '企业名称', + prop: 'companyName' + }, + { + label: '报名人数', + prop: 'success' + }, + { + label: '取消人数', + prop: 'fail' + }, + { + label: '毕业人数', + prop: 'gradu' + }, + ] +} + +//培训班级 +export const tablePxBjOption={ + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + menu:false, + searchText:'统计', + addBtn:false, + column: [ + { + label: '类型', + prop: 'typeName' + }, + { + label: '班级数量', + prop: 'typeNums' + } + ] +} + +//培训能力 +export const tablePxNlTjOption={ + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + menu:false, + searchText:'统计', + addBtn:false, + column: [ + { + label: '类型', + prop: 'typeName' + }, + { + label: '数量', + prop: 'typeNums' + } + ] +} + + + +//报名统计 +export const tableBmTjOption={ + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + menu:false, + searchText:'统计', + addBtn:false, + maxHeight:600, + column: [ + { + label: '班级名称', + prop: 'className', + width:300, + }, + { + label: '报名人数', + prop: 'signNums' + }, + { + label: '培训人数', + prop: 'trainNums' + }, + { + label: '一次合格', + prop: 'firPass' + }, + { + label: '补考合格', + prop: 'secPass' + }, + ] +} + + +//开班统计 +export const tableKbTjOption={ + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + menu:false, + searchText:'统计', + addBtn:false, + maxHeight:600, + column: [ + { + label: '班级名称', + prop: 'className' + }, + { + label: '类型', + prop: 'companyType' + }, + { + label: '培训开始日期', + prop: 'trainStart' + }, + { + label: '报名截止日期', + prop: 'signEndDate' + }, + { + label: '人员类型', + prop: 'personType' + }, + { + label: '培训类型', + prop: 'trainType' + }, + { + label: '报名人数', + prop: 'signNums' + }, + { + label: '签到人数', + prop: 'qdNums' + }, + { + label: '课时', + prop: 'courseTime' + }, + ] +} + + +//考核统计 +export const tableKhResultOption={ + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + menu:false, + searchText:'统计', + addBtn:false, + maxHeight:600, + column: [ + { + label: '班级名称', + prop: 'className' + }, + { + label: '开考日期', + prop: 'examDate', + type:'date', + format:"yyyy-MM-dd HH:mm" + }, + { + label: '报名人数', + prop: 'signNums' + }, + { + label: '未开考', + prop: 'noExam' + }, + { + label: '一次合格', + prop: 'firPass' + }, + { + label: '补考合格', + prop: 'secPass' + }, + { + label: '待补考', + prop: 'waitExam' + }, + { + label: '不合格', + prop: 'noPass' + }, + ] +} diff --git a/src/const/crud/analisys/classanalisys.js b/src/const/crud/analisys/classanalisys.js new file mode 100644 index 0000000..3c1066f --- /dev/null +++ b/src/const/crud/analisys/classanalisys.js @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + refreshBtn:false, + columnBtn:false, + dic: [], + column: [ + { + label: '系部', + prop: 'deptName' + }, + { + label: '班号', + prop: 'classNo' + }, + { + label: '合格率', + prop: 'standardRate', + sortable:"custom" + }, + { + label: '优秀率', + prop: 'excellentRate', + sortable:"custom" + } + ] +} diff --git a/src/const/crud/analisys/courseanalisys.js b/src/const/crud/analisys/courseanalisys.js new file mode 100644 index 0000000..2dda015 --- /dev/null +++ b/src/const/crud/analisys/courseanalisys.js @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + + +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + refreshBtn:false, + columnBtn:false, + dic: [], + column: [ + { + label: '课程', + prop: 'courseName' + }, + { + label: '合格率', + prop: 'standardRate' + }, + { + label: '优秀率', + prop: 'excellentRate' + } + ] +} diff --git a/src/const/crud/analisys/deptanalisys.js b/src/const/crud/analisys/deptanalisys.js new file mode 100644 index 0000000..a150f0d --- /dev/null +++ b/src/const/crud/analisys/deptanalisys.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + refreshBtn:false, + columnBtn:false, + dic: [], + column: [ + { + label: '开课部门', + prop: 'deptName' + }, + { + label: '合格率', + prop: 'standardRate' + }, + { + label: '优秀率', + prop: 'excellentRate' + } + ] +} diff --git a/src/const/crud/analisys/scoreanalisys.js b/src/const/crud/analisys/scoreanalisys.js new file mode 100644 index 0000000..8b68a34 --- /dev/null +++ b/src/const/crud/analisys/scoreanalisys.js @@ -0,0 +1,160 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + refreshBtn:false, + columnBtn:false, + dic: [], + column: [ + { + label:'年级', + prop:'grade', + type:'select', + dicUrl:'admin/dict/item/type/basic_class_info_grade', + props:{ + label:'label', + value:'value' + }, + search:true + }, + { + label: '系部', + prop: 'deptName' + }, + { + label: '班级', + prop: 'classCode' + }, + { + label: '学年', + prop: 'schoolYear' + }, + { + label: '学期', + prop: 'schoolTerm' + }, + { + label: '课程名称', + prop: 'courseName' + }, + { + label: '课程性质', + prop: 'coursePropertiesName' + }, + { + label: '考核方式', + prop: 'courseEvaluationMode', + type:'select', + dicUrl: '/ems/courseevaluationmode/list', + props: { + label: 'courseEvaluationModeName', + value: 'id' + }, + search:true + }, + { + label: '任课教师', + prop: 'teacherRealName' + }, + { + label: '100分', + prop: 'tine' + }, + { + label: '比率', + prop: 'tineRate' + }, + { + label: '99-90分', + prop: 'nine' + }, + { + label: '比率', + prop: 'nineRate' + }, + { + label: '89-80分', + prop: 'eight' + }, + { + label: '比率', + prop: 'eightRate' + }, + { + label: '79-70分', + prop: 'seven' + }, + { + label: '比率', + prop: 'sevenRate' + }, + { + label: '69-60分', + prop: 'six' + }, + { + label: '比率', + prop: 'sixRate' + }, + { + label: '合格', + prop: 'sixUp' + }, + { + label: '合格率', + prop: 'sixUpRate' + }, + { + label: '60分以下', + prop: 'sixDown' + }, + { + label: '比率', + prop: 'sixDownRate' + }, + { + label: '最高分', + prop: 'maxScore' + }, + { + label: '最低分', + prop: 'minScore' + }, + { + label: '考试人数', + prop: 'totalCount' + }, + { + label: '平均分', + prop: 'avgScore' + }, + { + label: '优秀率', + prop: 'excellentRate' + } + ] +} diff --git a/src/const/crud/assessment/assessmentstandardcate.js b/src/const/crud/assessment/assessmentstandardcate.js new file mode 100644 index 0000000..f23a593 --- /dev/null +++ b/src/const/crud/assessment/assessmentstandardcate.js @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '类目', + prop: 'subjectName', + span: 24, + rules: [{ required: true, message: '请输入类目', trigger: 'blur' }] + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + }, + { + label: '排序', + prop: 'sort', + type:'number', + span: 24, + rules: [{ required: true, message: '请输入类目', trigger: 'blur' }] + }, + { + label: '创建时间', + prop: 'createTime', + editDisplay: false, + addDisplay: false, + } + ] +} diff --git a/src/const/crud/assessment/assessmentstandarddetail.js b/src/const/crud/assessment/assessmentstandarddetail.js new file mode 100644 index 0000000..4e85a55 --- /dev/null +++ b/src/const/crud/assessment/assessmentstandarddetail.js @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '明细', + prop: 'subjectName', + span: 24, + rules: [{ required: true, message: '请输入明细', trigger: 'blur' }] + + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24 + }, + { + label: '排序', + prop: 'sort', + span: 24, + rules: [{ required: true, message: '请输入类目', trigger: 'blur' }] + }, + { + label: '创建时间', + prop: 'createTime', + editDisplay: false, + addDisplay: false + }, + ] +} diff --git a/src/const/crud/asset/assetReport/assetReport.js b/src/const/crud/asset/assetReport/assetReport.js new file mode 100644 index 0000000..cc44797 --- /dev/null +++ b/src/const/crud/asset/assetReport/assetReport.js @@ -0,0 +1,161 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '入库单号', + prop: 'inboundNo' + }, + { + label: '类别编码', + prop: 'codeEnName' + }, + { + label: '资产名称', + prop: 'goodsName' + }, + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '面积', + prop: 'area' + }, + { + label: '单位', + prop: 'unit' + }, + { + label: '单价', + prop: 'price' + }, + { + label: '库存', + prop: 'inboundNum' + }, + { + label: '总金额', + prop: 'totalPrice' + }, + { + label: '开始编码', + prop: 'codeStart' + }, + { + label: '结束编码', + prop: 'codeEnd' + }, + { + label: '是否审核', + prop: 'isExamine', + type:'select', + dicData:[ + { + label:'已审核', + value:1 + },{ + label:'未审核', + value:-1 + },{ + label:'审核不通过', + value:2 + } + ] + }, + { + label: '审核备注', + prop: 'examineValue' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '最小数量', + prop: 'minNum', + addDisplay: false, + editDisplay: false, + hide: true + }, + { + label: '最小单价', + prop: 'minPrice', + addDisplay: false, + editDisplay: false, + hide: true + }, + { + label: '最小面积', + prop: 'minArea', + addDisplay: false, + editDisplay: false, + hide: true + }, + { + label: '最大数量', + prop: 'maxNum', + addDisplay: false, + editDisplay: false, + hide: true + }, + { + label: '最大单价', + prop: 'maxPrice', + addDisplay: false, + editDisplay: false, + hide: true + }, + + { + label: '最大面积', + prop: 'maxArea', + addDisplay: false, + editDisplay: false, + hide: true + },{ + label: '开始时间', + prop: 'beginTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + editDisplay: false, + addDisplay: false, + hide: true + },{ + label: '结束时间', + prop: 'endTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + editDisplay: false, + addDisplay: false, + hide: true + } + ] +} diff --git a/src/const/crud/asset/assetautobound/assetautobound.js b/src/const/crud/asset/assetautobound/assetautobound.js new file mode 100644 index 0000000..685673e --- /dev/null +++ b/src/const/crud/asset/assetautobound/assetautobound.js @@ -0,0 +1,138 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '类别编码', + prop: 'codeEnName', + span: 12, + labelWidth: 120, + search:true, + rules: [{ + required: true, + message: "请填写类别编码", + trigger: "blur" + }] + }, + { + label: '资产名称', + prop: 'goodsName', + span: 12, + labelWidth: 120, + search:true, + rules: [{ + required: true, + message: "请填写资产名称", + trigger: "blur" + }] + }, + { + label: '面积', + prop: 'area', + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写面积", + trigger: "blur" + }] + }, + { + label: '单位', + prop: 'unit', + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写单位", + trigger: "blur" + }] + }, + { + label: '单价', + prop: 'price', + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写单价", + trigger: "blur" + }] + }, + { + label: '总金额', + prop: 'totalPrice', + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写总金额", + trigger: "blur" + }] + }, + { + label: '备注', + prop: 'remarks', + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写备注", + trigger: "blur" + }] + }, + { + label: '入库单号', + prop: 'inboundNo', + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写入库单号", + trigger: "blur" + }] + }, + { + label: '入库日期', + prop: 'inboundDate', + span: 12, + labelWidth: 120, + addDisplay:false, + editDisabled:true, + }, + ] +} diff --git a/src/const/crud/asset/assetcode/assetcode.js b/src/const/crud/asset/assetcode/assetcode.js new file mode 100644 index 0000000..05bf8bb --- /dev/null +++ b/src/const/crud/asset/assetcode/assetcode.js @@ -0,0 +1,323 @@ +import {getDetails} from "@/api/asset/assetcode/assetcode"; +import {validateUpperCase} from "../../../../util/validate"; +import global from "@/components/tools/commondict"; +import fa from "element-ui/src/locale/lang/fa"; + +var validateUsername = (rule, value, callback) => { + getDetails(value).then(response => { + if (!validateUpperCase(value)) { + callback(new Error('请输入大写字母')); + } + if (window.boxType === 'edit') callback() + let result = response.data.data; + if (result != null && result != undefined) { + callback(new Error('类别编码已经存在')) + } else { + callback() + } + }); +}; +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy', + // type: 'input', // 控件类型 + // maxlength: 20, //长度限制 0/n + // addDisplay:false, //添加是否显示 + // editDisplay:false, //修改是否显示 + // rules: [{ //自定义规则 + // required: false, + // trigger: 'blur', + // message:"请填写创建人" + // }] + // }, + // { + // label: '更新人', + // prop: 'updateBy', + // type: 'input', // 控件类型 + // maxlength: 20, //长度限制 0/n + // addDisplay:false, //添加是否显示 + // editDisplay:false, //修改是否显示 + // rules: [{ //自定义规则 + // required: false, + // trigger: 'blur', + // message:"请填写更新人" + // }] + // }, + // { + // label: '开始年限', + // prop: 'startYear', + // maxlength: 4, //长度限制 0/n + // rules: [{ //自定义规则 + // required: true, + // trigger: 'blur', + // message:"请填写开始年限(例:2020)" + // }] + // }, + { + label: '包含类型', + prop: 'codeName', + type: 'input', // 控件类型 + span: 24, + search:true, + maxlength: 100, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + rules: [{ //自定义规则 + required: true, + trigger: 'blur', + message:"请填写包含类型" + }] + }, + { + label: '类别编码', + prop: 'codeEnName', + span: 24, + search:true, + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + rules: [{ //自定义规则 + required: true, + trigger: 'blur', + message:"请填写类别编码" + }, + { + min: 3, + max: 3, + message: "长度在 3 个字符", + trigger: "blur" + }, + // {validator: validateUsername, trigger: 'blur'} + ] + }, + { + label: '报废时间', + prop: 'expireTime', + type:"select", + span: 24, + dicUrl:'/admin/dict/item/type/scrap_time', + props:{ + label:'label', + value:'value' + }, + rules: [{ //自定义规则 + required: true, + trigger: 'blur', + message:"请填写报废时间" + }] + }, + { + label: '类型', + prop: 'type', + type: 'select', + span: 24, + dicUrl:'/admin/dict/item/type/assets_code', + props:{ + label:'label', + value:'value' + }, + rules: [{ //自定义规则 + required: true, + trigger: 'blur', + message:"请选择类型" + }] + }, + { + label: '编码备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + }, + // { + // label: '创建时间', + // prop: 'createTime', + // addDisplay:false, //添加是否显示 + // editDisplay:false, //修改是否显示 + // }, + // { + // label: '更新时间', + // prop: 'updateTime', + // addDisplay:false, //添加是否显示 + // editDisplay:false, //修改是否显示 + // }, + ] +} +export const tableOption2 = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '类别编码', + prop: 'codeEnName', + span: 24, + search:true, + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + rules: [{ //自定义规则 + required: true, + trigger: 'blur', + message:"请填写类别编码" + }, + { + min: 3, + max: 3, + message: "长度在 3 个字符", + trigger: "blur" + }, + // {validator: validateUsername, trigger: 'blur'} + ] + }, + { + label: '包含类型', + prop: 'codeName', + type: 'input', // 控件类型 + span: 24, + search:true, + maxlength: 100, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + rules: [{ //自定义规则 + required: true, + trigger: 'blur', + message:"请填写包含类型" + }] + }, + { + label: '报废时间', + prop: 'expireTime', + type:"select", + span: 24, + dicUrl:'/admin/dict/item/type/scrap_time', + props:{ + label:'label', + value:'value' + }, + rules: [{ //自定义规则 + required: true, + trigger: 'blur', + message:"请填写报废时间" + }] + }, + { + label: '资产数量', + prop: 'num' + } + + ] +} +export const tableStaticOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu: false, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + showSummary:true, + sumColumnList: [ + { + name: 'num', + type: 'sum' + }, { + name: 'price', + type: 'sum' + } + ], + dic: [], + column: [ + { + label: '资产分布', + prop: 'times', + search:true, + hide:true, + type:'year', + valueFormat:'yyyy' + }, + { + label: '部门名称', + prop: 'deptName' + }, + { + label: '数量合计', + prop: 'num' + },{ + label: '金额合计', + prop: 'price' + } + ] +} + +export const tableStatictypeOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu: false, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + showSummary:true, + sumColumnList: [ + { + name: 'num', + type: 'sum' + }, { + name: 'price', + type: 'sum' + } + ], + dic: [], + column: [ + { + label: '资产分布', + prop: 'times', + search:tableOption, + hide:true, + type:'year', + valueFormat:'yyyy' + }, + { + label: '部门名称', + prop: 'deptName' + }, + { + label: '数量合计', + prop: 'num' + },{ + label: '金额合计', + prop: 'price' + } + ] +} diff --git a/src/const/crud/asset/assetdept/assetdept.js b/src/const/crud/asset/assetdept/assetdept.js new file mode 100644 index 0000000..230d00f --- /dev/null +++ b/src/const/crud/asset/assetdept/assetdept.js @@ -0,0 +1,154 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {ROLE_CODE} from "../../../../config/global"; +import {getDetailsByName,getDetailsByCode} from "@/api/asset/assetdept/assetdept"; +var validaterName = (rule, value, callback) => { + getDetailsByName(value).then(response => { + if (window.boxType === 'edit') callback() + let result = response.data.data; + if (result != null && result != undefined) { + callback(new Error('部门名称已经存在')) + } else { + callback() + } + }); +}; + +var validaterCode = (rule, value, callback) => { + getDetailsByCode(value).then(response => { + if (window.boxType === 'edit') callback() + let result = response.data.data; + if (result != null && result != undefined) { + callback(new Error('部门编号已经存在')) + } else { + callback() + } + }); +}; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '开始年份', + // prop: 'startYear' + // }, + + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '部门编码', + prop: 'deptCode', + search:true, + type: 'input', // 控件类型 + maxlength: 5, //长度限制 0/n + span: 24, + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + rules: [{ //自定义规则 + required: true, + trigger: 'blur', + message:"请填写部门编码" + }, + {validator: validaterCode, trigger: 'blur'}] + }, + { + label: '部门名称', + prop: 'deptName', + search:true, + type: 'input', // 控件类型 + maxlength: 10, //长度限制 0/n + span: 24, + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + rules: [{ //自定义规则 + required: true, + trigger: 'blur', + message:"请填写部门名称" + }, + {validator: validaterName, trigger: 'blur'} + ] + }, + { + span: 24, + label: '部门成员', + prop: 'deptMember', + slot: true, + overHidden: true, + type: 'select', + multiple:true, + remote: true, + props: { + label: 'realName', + value: 'realName' + }, + dicUrl: '/professional/teacherbase/queryTeacherBaseByNo/{{key}}', + rules: [{ + required: true, + message: '请设置部门成员', + trigger: 'blur' + }], + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + } + + ] +} diff --git a/src/const/crud/asset/assetinbound/assetinbound.js b/src/const/crud/asset/assetinbound/assetinbound.js new file mode 100644 index 0000000..1757bf3 --- /dev/null +++ b/src/const/crud/asset/assetinbound/assetinbound.js @@ -0,0 +1,507 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict"; +import globalDict from "@/components/newcommon/js/global_dict"; +export const tableWLOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + showSummary:true, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + sumColumnList: [ + { + label:'合计:', + name: 'sum', + type: 'sum', + decimals:1 + }, + { + name: 'totalPrice', + type: 'sum' + }], + column: [ + { + label: '入库日期', + prop: 'createTime', + + }, + + { + label: '入库单号', + prop: 'inboundNo' + }, + { + label:'开始时间', + prop:'beginTime', + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label:'结束时间', + prop:'endTime', + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label: '入库部门', + prop: 'deptCode', + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + + { + label: '合同金额', + prop: 'contractMoney' + }, + { + label: '发票金额', + prop: 'invoiceMoney' + }, + { + label: '入库总金额', + prop: 'totalPrice' + }, + { + label: '是否完善', + prop: 'isPerfect', + type:'select', + dicData:[ + { + label:'待完善', + value:"0" + },{ + label:'已完善', + value:"1" + },{ + label:'已完善,待审核', + value:"3" + } + ] + }, + { + label: '审核进度', + prop: 'isExamine', + type:'select', + dicData:[ + { + label:'待部门审核', + value:"0" + },{ + label:'待后勤审核', + value:"1" + },{ + label:'审核通过', + value:"2" + },{ + label:'驳回', + value:"3" + } + ] + }, + { + label: '资产类别', + prop: 'type', + type:'select', + dicData:global.assets_type, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '备注', + prop: 'remarks' + }, + + ] +} +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + showSummary:true, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + sumColumnList: [ + { + label:'合计:', + name: 'sum', + type: 'sum', + decimals:1 + }, + { + name: 'totalPrice', + type: 'sum' + }], + column: [ + { + label: '入库日期', + prop: 'createTime', + + }, + + { + label: '入库单号', + prop: 'inboundNo', + search:true + }, + { + label: '履约评价单', + prop: 'purchasingNo', + search:true + }, + { + label:'开始时间', + prop:'beginTime', + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label:'结束时间', + prop:'endTime', + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label: '入库部门', + prop: 'deptCode', + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + + { + label: '合同金额', + prop: 'contractMoney' + }, + { + label: '发票金额', + prop: 'invoiceMoney' + }, + { + label: '入库总金额', + prop: 'totalPrice' + }, + { + label: '是否完善', + prop: 'isPerfect', + type:'select', + dicData:[ + { + label:'待完善', + value:"0" + },{ + label:'已完善', + value:"1" + },{ + label:'已完善,待审核', + value:"3" + } + ] + }, + { + label: '审核进度', + prop: 'isExamine', + type:'select', + search:true, + dicData:[ + { + label:'待提交', + value:"-1" + }, + { + label:'待部门审核', + value:"0" + },{ + label:'待后勤审核', + value:"1" + },{ + label:'资产负责人审核', + value:"4" + },{ + label:'审核通过', + value:"2" + },{ + label:'驳回', + value:"3" + } + ] + }, + { + label: '审核意见', + prop: 'examineValue', + }, + // { + // label: '资产类别', + // prop: 'type', + // type:'select', + // dicData:global.assets_type, + // props:{ + // label:'label', + // value:'value' + // }, + // search:true + // }, + { + label: '备注', + prop: 'remarks' + }, + + ] +} + +export const tableDelOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + showSummary:true, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + sumColumnList: [ + { + label:'合计:', + name: 'sum', + type: 'sum', + decimals:1 + }, + { + name: 'totalPrice', + type: 'sum' + }], + column: [ + { + label: '删除时间', + prop: 'createTime', + }, + { + label: '入库单号', + prop: 'inboundNo', + search:true + }, + { + label:'开始时间', + prop:'beginTime', + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label:'结束时间', + prop:'endTime', + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label: '入库部门', + prop: 'deptCode', + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + + { + label: '合同金额', + prop: 'contractMoney' + }, + { + label: '发票金额', + prop: 'invoiceMoney' + }, + { + label: '入库总金额', + prop: 'totalPrice' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '资产类别', + prop: 'type', + type:'select', + dicData:global.assets_type, + props:{ + label:'label', + value:'value' + }, + search:true + }, + ] +} +export const tableDictItemOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu:false, + showSummary:true, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + sumColumnList: [ + { + label:'合计:', + name: 'sum', + type: 'sum', + decimals:1 + }, + { + name: 'totalPrice', + type: 'sum' + }], + column: [ + { + label: '入库单号', + prop: 'inboundNo' + }, + { + label: '类别编码', + prop: 'codeEnName' + }, + { + label: '资产名称', + prop: 'goodsName' + }, + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '面积', + prop: 'area' + }, + { + label: '单位', + prop: 'unit' + }, + { + label: '单价', + prop: 'price' + }, + { + label: '库存', + prop: 'inboundNum' + }, + { + label: '总金额', + prop: 'totalPrice' + }, + { + label: '开始编码', + prop: 'codeStart' + }, + { + label: '结束编码', + prop: 'codeEnd' + }, + { + label: '是否资产', + prop: 'isAssetValue', + type:'select', + dicData:[ + { + label:'否', + value: "0" + },{ + label:'固定资产', + value: "1" + },{ + label:'无形资产', + value: "2" + } + ] + }, + { + label: '资产用途', + prop: 'assetUser', + type:'select', + dicData:globalDict.ASSET_USAGE, + }, + { + label: '资产类别', + prop: 'type', + type:'select', + dicData:global.assets_type, + props:{ + label:'label', + value:'value' + }, + search:true + }, + { + label: '备注', + prop: 'remarks' + } + ] +} diff --git a/src/const/crud/asset/assetoutbound/assetoutbound.js b/src/const/crud/asset/assetoutbound/assetoutbound.js new file mode 100644 index 0000000..5082202 --- /dev/null +++ b/src/const/crud/asset/assetoutbound/assetoutbound.js @@ -0,0 +1,424 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableIndexOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '出库时间', + prop: 'createTime' + }, + { + label: '出库单号', + prop: 'outboundNo', + }, + { + label: '出库部门名称', + prop: 'deptName' + }, + + { + label: '总金额', + prop: 'totalPrice' + }, + + { + label: '出库数量', + prop: 'outboundNum' + }, + { + label: '进度', + prop: 'schedule', + formslot:true, + slot:true, + }, + { + label: '是否审核', + prop: 'isExamine', + type:'select', + dicData:[ + { + label:'待完善', + value:"0" + },{ + label:'通过', + value:"1" + },{ + label:'未通过', + value:"2" + },{ + label:'已完善,待审核', + value:"3" + } + ] + }, + { + label: '审核意见', + prop: 'examineValue' + },{ + label: '备注', + prop: 'remarks' + }, + { + label: '出库部门', + prop: 'outDeptName', + hide: true, + addDisplay: false, + editDisplay: false, + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '开始时间', + prop: 'beginTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd 00:00:00', + editDisplay: false, + addDisplay: false, + hide: true + },{ + label: '结束时间', + prop: 'endTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd 23:59:59', + editDisplay: false, + addDisplay: false, + hide: true + } + ] +} +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '出库时间', + prop: 'createTime' + }, + { + label: '出库单号', + prop: 'outboundNo', + search:true + }, + { + label: '出库部门名称', + prop: 'deptName' + }, + + { + label: '总金额', + prop: 'totalPrice' + }, + + { + label: '出库数量', + prop: 'outboundNum' + }, + { + label: '进度', + prop: 'schedule', + formslot:true, + slot:true, + }, + { + label: '是否审核', + prop: 'isExamine', + type:'select', + search:true, + dicData:[ + { + label:'待完善', + value:"0" + },{ + label:'通过', + value:"1" + },{ + label:'未通过', + value:"2" + },{ + label:'已完善,待后勤管理员审核', + value:"3" + },{ + label:'已完善,待资产负责人审核', + value:"4" + } + ] + }, + { + label: '审核意见', + prop: 'examineValue' + },{ + label: '备注', + prop: 'remarks' + }, + { + label: '出库部门', + prop: 'outDeptName', + search:true, + hide: true, + addDisplay: false, + editDisplay: false, + filterable:true, + searchFilterable:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '开始时间', + prop: 'beginTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd 00:00:00', + editDisplay: false, + addDisplay: false, + search:true, + hide: true + },{ + label: '结束时间', + prop: 'endTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd 23:59:59', + editDisplay: false, + addDisplay: false, + search:true, + hide: true + } + ] +} + + +export const tableDictItemOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + refreshBtn: false, + showColumnBtn: false, + searchSize: 'mini', + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '入库单号', + prop: 'inboundNo' + }, + { + label: '出库单号', + prop: 'outboundNo' + } , + { + label: '资产名称', + prop: 'goodsName' + }, + { + label: '类别编码', + prop: 'codeEnName' + }, + { + label: '开始编码', + prop: 'codeStart' + }, + { + label: '结束编码', + prop: 'codeEnd' + }, + + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '面积', + prop: 'area' + }, + { + label: '单位', + prop: 'unit' + }, + { + label: '单价', + prop: 'price' + }, + { + label: '出库数量', + prop: 'outboundNum' + }, + { + label: '总金额', + prop: 'totalPrice' + }, + { + label: '出库部门编码', + prop: 'deptCode' + }, + { + label: '出库部门名称', + prop: 'deptName' + }, + { + label: '备注', + prop: 'remarks' + },{ + label: '出库部门', + prop: 'outDeptName', + type:'select', + hide: true, + addDisplay: false, + editDisplay: false, + //dicUrl: '/asset/assetdept/list', + dicUrl: '/basic/basicdept/getDeptList?teachFlag=1', + props:{ + label:'deptName', + value:'deptCode' + }, + }, + { + label: '最小数量', + prop: 'minNum', + addDisplay: false, + editDisplay: false, + hide: true + }, + { + label: '最大数量', + prop: 'maxNum', + addDisplay: false, + editDisplay: false, + hide: true + }, + { + label: '最小单价', + prop: 'minPrice', + addDisplay: false, + editDisplay: false, + hide: true + }, + { + label: '最大单价', + prop: 'maxPrice', + addDisplay: false, + editDisplay: false, + hide: true + }, + { + label: '最小面积', + prop: 'minArea', + addDisplay: false, + editDisplay: false, + hide: true + }, + { + label: '最大面积', + prop: 'maxArea', + addDisplay: false, + editDisplay: false, + hide: true + }, + { + label: '最小金额', + prop: 'minTotal', + addDisplay: false, + editDisplay: false, + hide: true + }, + { + label: '最大金额', + prop: 'maxTotal', + addDisplay: false, + editDisplay: false, + hide: true + } + ,{ + label: '开始时间', + prop: 'beginTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + editDisplay: false, + addDisplay: false, + hide: true + },{ + label: '结束时间', + prop: 'endTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + editDisplay: false, + addDisplay: false, + hide: true + } + ] +} diff --git a/src/const/crud/asset/assets/assetassets.js b/src/const/crud/asset/assets/assetassets.js new file mode 100644 index 0000000..a769d11 --- /dev/null +++ b/src/const/crud/asset/assets/assetassets.js @@ -0,0 +1,1376 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict"; + +export const YES_OR_NO=[ + { + label:'待完善', + value:'0' + }, + { + label:'已通过', + value:'1' + }, + { + label:'未通过', + value:'2' + }, + { + label:'已完善,待审核', + value:'3' + }, +] +export const YES_OR_NO2=[ + { + label:'待完善', + value:'0' + }, + { + label:'已完善', + value:'1' + } +] +export const isInvalid=[ + { + label:'正常', + value:'0' + }, + { + label:'报废', + value:'1' + }, + { + label:'审核中', + value:'2' + } +] + +export const isInvalidOther=[ + { + label:'正常', + value:'0' + }, + { + label:'报废', + value:'1' + } +] +export const assetType=[ + {label: "通用设备", value: "1"}, + {label: "专用设备", value: "2"}, + {label: "图书档案", value: "3"}, + {label: "家具用具装具及动植物", value: "4"}, + {label: "文物和陈列品", value: "5"}, + {label: "房屋及构筑物", value: "6"}, + {label: "信息数据", value: "7"}, + {label: "车辆", value: "8"} +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '资产名称', + prop: 'goodsName', + search:true, + }, + { + label: '出库单号', + prop: 'outboundNo', + search:true, + }, + { + label: '部门名称', + prop: 'outDeptName', + type:'select', + hide: true, + addDisplay: false, + search:true, + editDisplay: false, + dicUrl: '/basic/basicdept/getDeptList?teachFlag=1', + props:{ + label:'deptName', + value:'deptCode' + }, + }, + { + label: '开始编码', + prop: 'codeStart', + search:true + }, + { + label: '结束编码', + prop: 'codeEnd' + }, + { + label: '面积', + prop: 'area' + }, + { + label: '部门名称', + prop: 'deptName' + }, + { + label: '单位', + prop: 'unit' + }, + + { + label: '数量', + prop: 'num' + }, + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '单价', + prop: 'price' + }, + { + label: '总金额', + prop: 'totalPrice' + }, + { + label: '日期', + prop: 'createTime' + }, + // { + // label: '存放地点', + // prop: 'place' + // }, + { + label: '进度', + prop: 'schedule', + formslot:true, + slot:true, + }, + { + label: '进度', + prop: 'schedule', + + }, + { + label: '是否完善通过', + prop: 'isPerfect', + type:'radio', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + search:true + }, + { + label: '意见', + prop: 'statusReason' + }, + { + label: '最小数量', + prop: 'minNum', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '最大数量', + prop: 'maxNum', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '最小单价', + prop: 'minPrice', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '最大单价', + prop: 'maxPrice', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '最小面积', + prop: 'minArea', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '最大面积', + prop: 'maxArea', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '最小金额', + prop: 'minTotal', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '最大金额', + prop: 'maxTotal', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + } + ] +} +export const tableDetailPageOption= { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + refreshBtn: false, + height:500, + showColumnBtn: false, + searchSize: 'mini', + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + column: [ + { + label: '资产编码', + prop: 'code', + search: true, + sortable:true, + }, + { + label: '资产类别', + prop: 'type', + search: true, + type:'select', + + dicData:assetType, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '资产名称', + prop: 'goodsName', + search: true + }, + { + label: '面积', + prop: 'area', + }, + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '单位', + prop: 'unit' + }, + { + label: '数量', + prop: 'num', + }, + { + label: '价格', + prop: 'price', + }, + { + label: '使用部门', + prop: 'belongDeptName', + }, + { + label: '入库时间', + prop: 'intTimeValue', + sortable:true, + }, + + { + label: '部门名称', + prop: 'belongDeptCode', + searchFilterable:true, + type:'select', + hide: true, + addDisplay: false, + search:true, + editDisplay: false, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props:{ + label:'deptName', + value:'deptCode' + }, + }, + { + label: '资产分类', + prop: 'codeEnName', + type:'select', + filterable:true, + searchFilterable:true, + hide: true, + addDisplay: false, + search:true, + editDisplay: false, + dicUrl: '/asset/assetcode/allList', + props:{ + label:'codeName', + value:'codeEnName' + }, + }, + { + label: '资产状态', + prop: 'isInvalid', + type:'select', + dicData:isInvalid, + props:{ + label:'label', + value:'value' + } + }, + { + label: '资产状态', + prop: 'isInvalidVal', + type:'select', + dicData:isInvalidOther, + props:{ + label:'label', + value:'value' + }, + search:true, + hide:true + }, + { + label: '开始编码', + prop: 'startCode', + hide: true, + search:true + }, + { + label: '结束编码', + prop: 'endCode', + hide: true, + search:true + }, + { + label: '是否已完善', + prop: 'isPerfect', + type:'radio', + hide: true, + dicData:YES_OR_NO2, + props:{ + label:'label', + value:'value' + }, + search:true + }, + { + label: '最小面积', + prop: 'minArea', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '最大面积', + prop: 'maxArea', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '最小单价', + prop: 'minPrice', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '最大单价', + prop: 'maxPrice', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '保管人', + prop: 'belongTeacherNo', + search:true, + }, + { + label: '入库开始时间', + prop: 'startTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + search:true, + hide: true + }, + { + label: '入库结束时间', + prop: 'endTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + search:true, + hide: true + }, + { + label: '部门编码', + prop: 'belongDeptCode', + hide: true, + }, + { + label: '存放地类型', + prop: 'roomType', + type:'select', + dicData:global.all_room_type_id, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '存放楼栋', + prop: 'buildName' + }, + { + label: '存放房间', + prop: 'roomName' + }, + { + label: '照片', + prop: 'photo', + slot: true, + formslot: true + }, + { + label: '预计报废日期', + prop: 'invalidDate', + type:'date', + format:'yyyy-MM-dd', + }, + { + label: '实际报废日期', + type:'date', + prop: 'invalidActualDate', + format:'yyyy-MM-dd', + + } + ,{ + label: '调拨日期', + prop: 'transferTime', + },{ + label: '备注', + prop: 'remarks', + search:true + },{ + label: '资产备注', + prop: 'assetRemark' + },{ + label: '老资产ID', + prop: 'oldId', + search: true + },{ + label: '调拨状态', + prop: 'transferState', + search: true, + hide: true, + type:'select', + dicData:global.transferState, + props:{ + label:'label', + value:'value' + }, + },{ + label: '报废状态', + prop: 'invalidState', + search: true, + hide: true, + type:'select', + dicData:global.invalidState, + props:{ + label:'label', + value:'value' + }, + } + ] +} + +export const tableDetail= { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + refreshBtn: false, + height:500, + showColumnBtn: false, + searchSize: 'mini', + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + column: [ + { + label: '资产编码', + prop: 'code', + search: true + }, + { + label: '资产名称', + prop: 'goodsName' + }, + { + label: '面积', + prop: 'area', + }, + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '单位', + prop: 'unit' + }, + { + label: '数量', + prop: 'num', + }, + { + label: '价格', + prop: 'price', + }, + { + label: '使用部门', + prop: 'belongDeptName', + }, + { + label: '入库时间', + prop: 'intTimeValue', + }, + + + { + label: '资产状态', + prop: 'isInvalid', + type:'select', + dicData:isInvalid, + props:{ + label:'label', + value:'value' + } + }, + { + label: '开始编码', + prop: 'startCode', + hide: true, + search:true + }, + { + label: '结束编码', + prop: 'endCode', + hide: true, + search:true + }, + { + label: '是否已完善', + prop: 'isPerfect', + type:'radio', + hide: true, + dicData:YES_OR_NO2, + props:{ + label:'label', + value:'value' + }, + search:true + }, + + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '保管人', + prop: 'belongTeacherNo', + search:true, + }, + { + label: '入库开始时间', + prop: 'startTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + hide: true + }, + { + label: '入库结束时间', + prop: 'endTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + hide: true + }, + { + label: '部门编码', + prop: 'belongDeptCode', + hide: true, + }, + { + label: '存放地类型', + prop: 'roomType', + type:'select', + dicData:global.all_room_type_id, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '存放楼栋', + prop: 'buildName' + }, + { + label: '存放房间', + prop: 'roomName' + }, + { + label: '照片', + prop: 'photo', + slot: true, + formslot: true + }, + { + label: '预计报废日期', + prop: 'invalidDate', + type:'date', + format:'yyyy-MM-dd', + }, + { + label: '实际报废日期', + type:'date', + prop: 'invalidActualDate', + format:'yyyy-MM-dd', + + } + ,{ + label: '调拨日期', + prop: 'transferTime', + },{ + label: '备注', + prop: 'remarks', + },{ + label: '老资产ID', + prop: 'oldId', + } + ] +} +export const tableDictItemOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + refreshBtn: false, + showColumnBtn: false, + showSummary:true, + sumColumnList: [ + { + name: 'num', + type: 'sum' + } + ], + searchSize: 'mini', + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '资产编码', + prop: 'code', + search:true + }, + { + label: '资产名称', + prop: 'goodsName' + }, + { + label: '入库时间', + prop: 'inTime', + }, + { + label: '金额', + prop: 'price', + }, + { + label: '数量', + prop: 'num', + }, + { + label: '保管人', + prop: 'belongTeacherNo', + }, + { + label: '部门编码', + prop: 'belongDeptCode', + hide: true, + }, + { + label: '部门名称', + prop: 'belongDeptName', + }, + { + label: '存放地类型', + prop: 'roomType', + type:'select', + dicData:global.all_room_type_id, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '存放楼栋', + prop: 'buildName' + }, + { + label: '存放房间', + prop: 'roomName' + }, + { + label: '照片', + prop: 'photo', + slot: true, + formslot: true + }, + { + label: '资产状态', + prop: 'isInvalid', + }, + { + label: '预计报废日期', + prop: 'invalidDate', + type:'date', + format:'yyyy-MM-dd', + }, + { + label: '实际报废日期', + type:'date', + prop: 'invalidActualDate', + format:'yyyy-MM-dd', + + } + ,{ + label: '调拨状态', + prop: 'isTranid', + } + ,{ + label: '老资产id', + prop: 'oldId', + } + ] +} + +export const tableTimeOutOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + refreshBtn: false, + showColumnBtn: false, + searchSize: 'mini', + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '资产编码', + prop: 'code', + }, + { + label: '资产名称', + prop: 'goodsName' + }, + { + label: '入库时间', + prop: 'inTime', + type:'date', + format:'yyyy-MM-dd', + }, + + { + label: '预计报废日期', + prop: 'invalidDate', + type:'date', + format:'yyyy-MM-dd', + }, + { + label: '金额', + prop: 'price', + }, + { + label: '保管人', + prop: 'belongTeacherNo', + }, + { + label: '部门编码', + prop: 'belongDeptCode', + hide: true, + }, + { + label: '部门名称', + prop: 'belongDeptName', + }, + { + label: '存放地类型', + prop: 'roomType', + type:'select', + dicData:global.all_room_type_id, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '存放楼栋', + prop: 'buildName' + }, + { + label: '存放房间', + prop: 'roomName' + }, + { + label: '照片', + prop: 'photo', + slot: true, + formslot: true + }, + + { + label: '实际报废日期', + type:'date', + prop: 'invalidActualDate', + format:'yyyy-MM-dd', + + } + + ] +} + +export const tableStaticOption= { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + refreshBtn: false, + showColumnBtn: false, + showSummary:true, + sumColumnList: [ + { + name: 'num', + type: 'sum' + } + ], + searchSize: 'mini', + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '资产编码', + prop: 'code' + }, + { + label: '资产名称', + prop: 'goodsName' + }, + { + label: '金额', + prop: 'price', + }, + { + label: '数量', + prop: 'num', + }, + { + label: '保管人-工号', + prop: 'belongTeacherNo', + }, + { + label: '保管人-姓名', + prop: 'belongRealName', + }, + { + label: '部门编码', + prop: 'belongDeptCode', + hide: true, + }, + { + label: '部门名称', + prop: 'belongDeptName', + }, + { + label: '存放地类型', + prop: 'roomType', + type:'select', + dicData:global.all_room_type_id, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '存放楼栋', + prop: 'buildName' + }, + { + label: '存放房间', + prop: 'roomName' + }, + { + label: '照片', + prop: 'photo', + slot: true, + formslot: true + }, + { + label: '资产状态', + prop: 'isInvalid', + }, + { + label: '预计报废日期', + prop: 'invalidDate', + type:'date', + format:'yyyy-MM-dd', + }, + { + label: '实际报废日期', + type:'date', + prop: 'invalidActualDate', + format:'yyyy-MM-dd', + + } + ,{ + label: '调拨状态', + prop: 'isTranid', + } + ] +} + +export const tableDictItemOption2 = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + refreshBtn: false, + showColumnBtn: false, + showSummary:true, + sumColumnList: [ + { + name: 'num', + type: 'sum' + } + ], + searchSize: 'mini', + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '资产编码', + prop: 'code', + search:true + }, + { + label: '资产名称', + prop: 'goodsName' + }, + { + label: '金额', + prop: 'price', + }, + { + label: '数量', + prop: 'num', + }, + { + label: '保管人-工号', + prop: 'belongTeacherNo', + }, + { + label: '保管人-姓名', + prop: 'belongRealName', + }, + { + label: '部门编码', + prop: 'belongDeptCode', + hide: true, + }, + { + label: '部门名称', + prop: 'belongDeptName', + }, + { + label: '存放地类型', + prop: 'roomType', + type:'select', + dicData:global.all_room_type_id, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '存放楼栋', + prop: 'buildName' + }, + { + label: '存放房间', + prop: 'roomName' + }, + { + label: '照片', + prop: 'photo', + slot: true, + formslot: true + }, + { + label: '资产状态', + prop: 'isInvalid', + }, + { + label: '预计报废日期', + prop: 'invalidDate', + type:'date', + format:'yyyy-MM-dd', + }, + { + label: '实际报废日期', + type:'date', + prop: 'invalidActualDate', + format:'yyyy-MM-dd', + + } + ,{ + label: '调拨状态', + prop: 'isTranid', + },{ + label: '老资产ID', + prop: 'oldId', + } + ] +} + + +export const tableOptionByNameAndTime= { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + refreshBtn: false, + showColumnBtn: false, + searchSize: 'mini', + column: [ + { + label: '资产名称', + prop: 'goodsName', + search: true + }, + { + label: '编码范围', + prop: 'codeFW' + }, + { + label: '资产编码', + prop: 'code', + search:true, + hide:true + }, + { + label: '资产分类', + prop: 'codeEnName', + type:'select', + filterable:true, + searchFilterable:true, + addDisplay: false, + search:true, + hide:true, + editDisplay: false, + dicUrl: '/asset/assetcode/allList', + props:{ + label:'codeName', + value:'codeEnName' + }, + }, + { + label: '部门名称', + prop: 'belongDeptCode', + type:'select', + hide:true, + addDisplay: false, + filterable:true, + searchFilterable:true, + search:true, + editDisplay: false, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props:{ + label:'deptName', + value:'deptCode' + }, + }, + { + label: '部门', + prop: 'belongDeptName', + }, + { + label: '资产状态', + prop: 'isInvalid', + type:'select', + dicData:isInvalid, + props:{ + label:'label', + value:'value' + } + }, + { + label: '资产状态', + prop: 'isInvalidVal', + type:'select', + hide:true, + search:true, + dicData:isInvalidOther, + props:{ + label:'label', + value:'value' + } + }, + { + label: '面积', + prop: 'area', + }, + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '单位', + prop: 'unit' + }, + { + label: '数量', + prop: 'num', + }, + { + label: '单价', + prop: 'price', + }, + { + label: '总金额', + prop: 'total', + }, + + { + label: '入库时间', + prop: 'time', + }, + + + { + label: '入库开始时间', + prop: 'startTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + search:true, + hide: true + }, + { + label: '入库结束时间', + prop: 'endTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + search:true, + hide: true + }, + { + label: '备注', + prop: 'remarks', + search:true + }, + { + label: '老资产ID', + prop: 'oldId', + search:true, + }, + { + label: '存放楼栋', + prop: 'buildId', + type:'select', + filterable:true, + searchFilterable:true, + addDisplay: false, + search:true, + hide:true, + editDisplay: false, + dicUrl: '/asset/assetsbuilding/list', + props:{ + label:'buildName', + value:'id' + }, + }, + { + label: '是否已完善', + prop: 'isPerfect', + type:'radio', + hide: true, + dicData:YES_OR_NO2, + props:{ + label:'label', + value:'value' + }, + search:true + }, + ] +} diff --git a/src/const/crud/asset/assets/assetpeopledept.js b/src/const/crud/asset/assets/assetpeopledept.js new file mode 100644 index 0000000..aa66899 --- /dev/null +++ b/src/const/crud/asset/assets/assetpeopledept.js @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '用户账号', + prop: 'userName', + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + },rules: [{ + required: true, + trigger: 'blur', + message:"请选择用户账号" + }] + }, + { + label: '部门', + prop: 'deptCode', + type:'select', + search:true, + filterable:true, + searchFilterable:true, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + },rules: [{ + required: true, + message: '部门不能为空', + trigger: 'blur' + } + ] + } + ] +} diff --git a/src/const/crud/asset/assets/assetsbuilding.js b/src/const/crud/asset/assets/assetsbuilding.js new file mode 100644 index 0000000..cbfc6af --- /dev/null +++ b/src/const/crud/asset/assets/assetsbuilding.js @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + // { + // label: '楼号', + // prop: 'buildCode', + // search:true, + // rules: [{ + // required: true, + // message: '楼号不能为空', + // trigger: 'blur' + // }, + // { + // min: 0, + // max: 10, + // message: '长度在 0 到 10 个字符', + // trigger: 'blur' + // } + // ] + // }, + { + label: '楼名', + prop: 'buildName', + search:true, + span:24, + rules: [{ + required: true, + message: '楼栋名不能为空', + trigger: 'blur' + }, + { + min: 0, + max: 50, + message: '长度在 0 到 50 个字符', + trigger: 'blur' + } + ] + }, + { + label: '备注', + type:'textarea', + row:true, + span:24, + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/asset/assets/assetscrapswitch.js b/src/const/crud/asset/assets/assetscrapswitch.js new file mode 100644 index 0000000..61777a5 --- /dev/null +++ b/src/const/crud/asset/assets/assetscrapswitch.js @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const YES_OR_NO=[ + { + label:'关闭', + value:'0' + }, + { + label:'开启', + value:'1' + } + +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + + { + label: '开始时间', + prop: 'startTime', + type: 'datetime', + span: 24, + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '开始时间不能为空', + trigger: 'blur' + }] + }, + { + label: '结束时间', + prop: 'endTime', + type: 'datetime', + span: 24, + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '结束时间不能为空', + trigger: 'blur' + }] + }, + { + label: '开启报废', + prop: 'isOpen', + type:'radio', + dicData:YES_OR_NO, + span: 24, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '是否开启报废不能为空', + trigger: 'blur' + }] + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + }, + ] +} diff --git a/src/const/crud/asset/assets/assetsroom.js b/src/const/crud/asset/assets/assetsroom.js new file mode 100644 index 0000000..8148dde --- /dev/null +++ b/src/const/crud/asset/assets/assetsroom.js @@ -0,0 +1,157 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '楼栋', + prop: 'buildCode', + filterable:true, + searchFilterable:true, + search:true, + + type:'select', + dicUrl: '/asset/assetsbuilding/list', + props: { + label: 'buildName', + value: 'id' + }, + rules: [{ + required: true, + message: '楼栋不能为空', + trigger: 'blur' + } + ] + }, + { + label: '房间号', + prop: 'roomCode', + search:true, + filterable:true, + searchFilterable:true, + rules: [{ + required: true, + message: '房间号不能为空', + trigger: 'blur' + }, + { + min: 0, + max: 20, + message: '长度在 0 到 20 个字符', + trigger: 'blur' + } + ] + }, + + { + label: '房间类型', + prop: 'roomType', + search:true, + type:'select', + filterable:true, + searchFilterable:true, + dicData:global.room_type, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '房间类型不能为空', + trigger: 'blur' + } + ] + }, + { + label: '面积', + prop: 'area' + }, + { + label: '专业', + prop: 'majorCode', + hide:true, + filterable:true, + searchFilterable:true, + multiple:true, + type:'select', + dicUrl: '/basic/major/getMajorNameList', + props: { + label: 'majorName', + value: 'majorCode' + } + }, + { + label: '全专业', + prop: 'isAll', + type: 'switch', + dicData:[{ + label:'否', + value:'0' + },{ + label:'是', + value:'1' + }] + }, + { + label: '部门', + prop: 'deptCode', + type:'select', + search:true, + filterable:true, + searchFilterable:true, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + },rules: [{ + required: true, + message: '部门不能为空', + trigger: 'blur' + } + ] + }, + + { + label: '备注', + type:'textarea', + row:true, + span:24, + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/asset/assets/checkdevice.js b/src/const/crud/asset/assets/checkdevice.js new file mode 100644 index 0000000..526b584 --- /dev/null +++ b/src/const/crud/asset/assets/checkdevice.js @@ -0,0 +1,191 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +export const wxstat=[ + { + label:'正常', + value:'0' + }, + { + label:'维修', + value:'1' + }, + { + label:'维护', + value:'2' + }, + { + label:'维修申请中', + value:'3' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + + search: true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: '学院不能为空', + trigger: 'blur' + }] + }, + { + label: '所属区域', + prop: 'buildingId', + search: true, + type:"select", + dicUrl: '/asset/checkbuilding/list', + props: { + label: 'areaName', + value: 'id' + }, + rules: [{ + required: true, + message: '所属区域不能为空', + trigger: 'blur' + }] + }, + // { + // label: '状态', + // prop: 'assetState', + // type:'select', + // dicData:wxstat, + // props:{ + // label:'label', + // value:'value' + // }, + // search:true, + // addDisplay:false, + // editDisplay:false, + // + // }, + { + label: '班级', + prop: 'classCode', + type:"select", + filterable:true, + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '任课教师', + prop: 'teacherNo', + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + }, + { + label: '设备名称', + prop: 'goodsName', + rules: [{ + required: true, + message: '设备名称不能为空', + trigger: 'blur' + }] + }, + { + label: '规格/型号', + prop: 'spec', + labelWidth:100, + + rules: [{ + required: true, + message: '规格/型号不能为空', + trigger: 'blur' + }] + }, + { + label: '面积(㎡)', + prop: 'area' + }, + { + label: '单位', + prop: 'unit', + rules: [{ + required: true, + message: '单位不能为空', + trigger: 'blur' + }] + }, + { + label: '数量', + prop: 'num', + type:'number', + rules: [{ + required: true, + message: '数量不能为空', + trigger: 'blur' + }] + }, + // { + // label: '单价', + // prop: 'price', + // type:'number', + // precision: 2, + // min:0, + // rules:[ + // { validator: function (rule, value, callback) { + // if(value!=''){ + // var reg =/^(\d|[1-9]\d+)(\.\d+)?$/ + // if(!reg.test(value)){ + // callback(new Error('请填写大于0的金额')); + // }else{ + // callback() + // } + // } + // }, trigger: 'blur' }, + // // { + // // required: true, + // // message: '单价不能为空', + // // trigger: 'blur' + // // } + // ] + // }, + { + label: '备注', + prop: 'remark', + type:'textarea', + row:true, + span:24, + }, + ] +} diff --git a/src/const/crud/asset/assets/checkhygiene.js b/src/const/crud/asset/assets/checkhygiene.js new file mode 100644 index 0000000..9db9f8f --- /dev/null +++ b/src/const/crud/asset/assets/checkhygiene.js @@ -0,0 +1,139 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const stateList=[ + { + label:'已检查', + value:'1' + }, + { + label:'未检查', + value:'0' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + + { + label: '设备名称', + prop: 'assetId', + search: true, + type:"select", + dicUrl: '/asset/checkdevice/list', + props: { + label: 'goodsName', + value: 'id' + }, + rules: [{ + required: true, + message: '资产名称不能为空', + trigger: 'blur' + }] + }, + { + label: '学院', + prop: 'deptCode', + search: true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + editDisabled: true, + editDisplay: false, + addDisplay: false, + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: '学院不能为空', + trigger: 'blur' + }] + }, + { + label: '所属区域', + prop: 'buildId', + type:"select", + dicUrl: '/asset/checkbuilding/list', + props:{ + label:'areaName', + value:'id' + }, + rules: [{ + required: true, + message: '所属区域不能为空', + trigger: 'blur' + }], + formSlot:true, + // editDisabled: true, + // editDisplay: false, + // addDisplay: false, + }, + { + label: '检查时间', + prop: 'createTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '检查时间时间不能为空', + trigger: 'blur' + }] + }, + + { + label: '检查情况图片', + prop: 'imgs', + slot: true, + formslot: true, + addDisplay:false, + editDisplay:false, + rules: [{ + required: true, + message: '账号不能为空', + trigger: 'blur' + }] + }, + // { + // label: '是否检查', + // prop: 'state', + // type: 'select', + // search:true, + // dicData: stateList, + // rules: [{ + // required: true, + // message: '类型不能为空', + // trigger: 'blur' + // }] + // }, + { + label: '备注', + prop: 'remark', + type: 'textarea', + }, + ] +} diff --git a/src/const/crud/asset/assets/checkhygienepeople.js b/src/const/crud/asset/assets/checkhygienepeople.js new file mode 100644 index 0000000..731578a --- /dev/null +++ b/src/const/crud/asset/assets/checkhygienepeople.js @@ -0,0 +1,116 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +export const typeList=[ + { + label:'巡检', + value:'1' + }, + { + label:'管理', + value:'2' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + + // { + // label: '学院', + // prop: 'deptCode', + // search: true, + // type:"select", + // dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + // props: { + // label: 'deptName', + // value: 'deptCode' + // }, + // rules: [{ + // required: true, + // message: '学院不能为空', + // trigger: 'blur' + // }] + // }, + { + label: '姓名', + prop: 'name', + search:true, + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + rules: [{ + required: true, + message: '姓名不能为空', + trigger: 'blur' + }] + }, + { + label: '电话', + prop: 'phone', + rules: [{ + required: true, + message: '电话不能为空', + trigger: 'blur' + }] + }, + { + label: '账号', + prop: 'userName', + addDisplay: false, + editDisabled: true, + rules: [{ + required: true, + message: '账号不能为空', + trigger: 'blur' + }] + }, + { + label: '类型', + prop: 'type', + type: 'select', + search:true, + dicData: typeList, + rules: [{ + required: true, + message: '类型不能为空', + trigger: 'blur' + }] + }, + { + label: '备注', + prop: 'remark', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + }, + ] +} diff --git a/src/const/crud/asset/assets/checkmaintaincode.js b/src/const/crud/asset/assets/checkmaintaincode.js new file mode 100644 index 0000000..b06b122 --- /dev/null +++ b/src/const/crud/asset/assets/checkmaintaincode.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '故障名称', + prop: 'title' + }, + { + label: '故障代码', + prop: 'code', + search:true + }, + { + label: '备注', + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/asset/assets/checkmaintaine.js b/src/const/crud/asset/assets/checkmaintaine.js new file mode 100644 index 0000000..d22570d --- /dev/null +++ b/src/const/crud/asset/assets/checkmaintaine.js @@ -0,0 +1,199 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const stateList=[ + { + label:'已撤销', + value:'-1' + }, + { + label:'待提交', + value:'0' + }, + { + label:'待部门复查', + value:'1' + }, + { + label:'部门复查驳回', + value:'2' + }, + { + label:'待部门审核', + value:'3' + }, + + { + label:'部门审核驳回', + value:'4' + }, + { + label:'待报价', + value:'5' + }, + { + label:'待部门批准', + value:'6' + }, + { + label:'部门批准驳回', + value:'7' + }, + { + label:'维修中', + value:'8' + }, + { + label:'待报修人验收', + value:'9' + }, + { + label:'待报修人验收驳回', + value:'10' + }, { + label:'待实训室审批', + value:'11' + }, + { + label:'实训室审批驳回', + value:'12' + }, + { + label:'报修完结', + value:'13' + }, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '所属区域', + prop: 'buildId', + type:"select", + dicUrl: '/asset/checkbuilding/list', + props:{ + label:'areaName', + value:'id' + }, + addDisplay: false, + editDisplay: false + }, + { + label: '设备', + prop: 'assetId', + search: true, + type:"select", + dicUrl: '/asset/checkdevice/list', + props: { + label: 'goodsName', + value: 'id' + }, + rules: [{ + required: true, + message: '设备名称不能为空', + trigger: 'blur' + }], + addDisabled: false, + editDisabled: true + }, + { + label: '维修申请原因', + prop: 'name' + }, + { + label: '维修报价', + prop: 'wxPrice', + + addDisplay: false, + editDisplay: false + }, + { + label: '状态', + prop: 'state', + search:true, + dicData: stateList, + type:'select', + props:{ + label:'label', + value:'value' + }, + addDisplay: false, + editDisplay: false + }, + { + label: '审核意见', + prop: 'examRemark', + addDisplay: false, + editDisplay: false + }, + { + label: '申请时间', + prop: 'createTime', + addDisplay: false, + editDisplay: false + }, + { + label: '备注', + type:'textarea', + row:true, + span:24, + prop: 'remark' + }, + + ] +} +export const tablestaticOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '所属区域', + prop: 'buildId', + search: true + }, + { + label: '故障时间', + prop: 'gztime', + }, + { + label: '故障类型', + prop: 'gzname', + search: true + }, + { + label: '故障次数', + prop: 'gznum', + }, + ] +} diff --git a/src/const/crud/asset/assets/checkmaintainpeople.js b/src/const/crud/asset/assets/checkmaintainpeople.js new file mode 100644 index 0000000..c85850e --- /dev/null +++ b/src/const/crud/asset/assets/checkmaintainpeople.js @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '姓名', + prop: 'name', + search:true, + rules: [{ + required: true, + message: '姓名不能为空', + trigger: 'blur' + }] + }, + { + label: '手机', + prop: 'phone', + rules: [{ + required: true, + message: '手机不能为空', + trigger: 'blur' + }] + }, + { + label: '用户名', + prop: 'userName', + rules: [{ + required: true, + message: '用户名不能为空', + trigger: 'blur' + }], + addDisabled:false, + editDisabled:true, + }, + { + label: '身份证', + prop: 'idCard', + rules: [ + { + required: true, + message: '请输入身份证号', + trigger: 'blur' + }, + { min:11 ,max:18 , message: '身份证号码应为 18位', trigger: 'blur' } + ] + }, + { + label: '备注', + prop: 'remark', + type:'textarea', + row:true, + span:24, + }, + ] +} diff --git a/src/const/crud/asset/assets/checkmaintenance.js b/src/const/crud/asset/assets/checkmaintenance.js new file mode 100644 index 0000000..e997720 --- /dev/null +++ b/src/const/crud/asset/assets/checkmaintenance.js @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + + { + label: '学院', + prop: 'deptCode', + type:'select', + search: true, + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: '学院不能为空', + trigger: 'blur' + }] + }, + { + label: '资产', + prop: 'assetId', + search: true, + type:"select", + dicUrl: '/asset/checkdevice/list', + props: { + label: 'goodsName', + value: 'id' + }, + rules: [{ + required: true, + message: '资产名称不能为空', + trigger: 'blur' + }] + }, + { + label: '所属区域', + prop: 'buildId', + type:"select", + dicUrl: '/asset/checkbuilding/list', + props:{ + label:'buildName', + value:'id' + }, + rules: [{ + required: true, + message: '所属区域不能为空', + trigger: 'blur' + }] + }, + { + label: '检查情况图片', + prop: 'imgs', + slot: true, + formslot: true, + }, + { + label: '保养时间', + prop: 'createTime' + }, + { + label: '备注', + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/asset/assets/checkmaintenancepeople.js b/src/const/crud/asset/assets/checkmaintenancepeople.js new file mode 100644 index 0000000..22347ae --- /dev/null +++ b/src/const/crud/asset/assets/checkmaintenancepeople.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '姓名', + prop: 'name', + search:true, + + rules: [{ + required: true, + message: '姓名不能为空', + trigger: 'blur' + }] + }, + { + label: '手机', + prop: 'phone', + rules: [{ + required: true, + message: '手机不能为空', + trigger: 'blur' + }] + }, + { + label: '用户名', + prop: 'userName', + rules: [{ + required: true, + message: '用户名不能为空', + trigger: 'blur' + }], + addDisabled:false, + editDisabled:true, + }, + { + label: '身份证', + prop: 'idCard', + rules: [ + { + required: true, + message: '请输入身份证号', + trigger: 'blur' + }, + { min:11 ,max:18 , message: '身份证号码应为 18位', trigger: 'blur' } + ] + }, + { + label: '备注', + prop: 'remark', + type:'textarea', + row:true, + span:24, + }, + ] +} diff --git a/src/const/crud/asset/assetsinvalid/assetassetsinvalid.js b/src/const/crud/asset/assetsinvalid/assetassetsinvalid.js new file mode 100644 index 0000000..e1f702f --- /dev/null +++ b/src/const/crud/asset/assetsinvalid/assetassetsinvalid.js @@ -0,0 +1,257 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const states=[ + { + label:'审核中', + value:'-1' + }, + { + label:'审核完成', + value:'0' + }, + { + label:'审核不通过', + value:'2' + }, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '报废单号', + prop: 'invalidNo', + }, + { + label: '资产编码', + prop: 'code', + }, + { + label: '资产名称', + prop: 'goodsName', + }, + { + label: '保管人', + prop: 'belongTeacherNo', + }, + { + label: '金额', + prop: 'price', + }, + { + label: '报废原因', + prop: 'invalidReason' + }, + { + label: '部门编码', + prop: 'deptCode', + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props:{ + label:'deptName', + value:'deptCode' + } + }, + { + label: '存放地点', + prop: 'place', + }, + { + label: '预计报废日期', + prop: 'invalidDate', + }, + { + label: '实际报废日期', + prop: 'invalidActualDate', + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} + +export const tableDictItemOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + refreshBtn: false, + searchSize: 'mini', + showSummary:true, + sumColumnList: [ + { + name: 'price', + type: 'sum' + }, + { + name: 'num', + type: 'sum' + } + ], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '报废单号', + prop: 'invalidNo', + search:true + }, + { + label: '申请时间', + prop: 'createTime', + type: 'date', // 添加这一行 + format: 'yyyy-MM-dd', + }, + { + label: '资产编码', + prop: 'code', + hide: true, + }, + { + label: '金额', + prop: 'price', + }, + { + label: '保管人-工号', + prop: 'belongTeacherNo', + hide: true, + }, + { + label: '保管人-姓名', + prop: 'belongRealName', + hide: true, + }, + { + label: '部门编码', + prop: 'deptCode', + type:'select', + addDisplay: false, + search:true, + editDisplay: false, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props:{ + label:'deptName', + value:'deptCode' + } + } ,{ + label: '报废原因', + prop: 'invalidReason', + },{ + label: '开始时间', + prop: 'beginTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd 00:00:00', + editDisplay: false, + addDisplay: false, + search:true, + hide: true + },{ + label: '结束时间', + prop: 'endTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd 23:59:59', + editDisplay: false, + addDisplay: false, + search:true, + hide: true + }, + { + label: '存放地点', + prop: 'place', + hide: true, + }, + { + label: '预计报废日期', + prop: 'invalidDate', + hide: true, + }, + { + label: '实际报废日期', + prop: 'invalidActualDate', + }, + { + label: '审核状态', + prop: 'procInsStatus', + }, + { + label: '审核状态', + type:'select', + prop: 'status', + searchFilterable:true, + dicData:states, + props:{ + label:'label', + value:'value' + }, + search:true, + hide:true + }, + { + label: '报废资产数量', + prop: 'num', + }, + { + label: '报废类型', + prop: 'type', + type:'select', + search:true, + dicData:[{label:"电子废物",value:"0"},{label:"土地房屋",value:"1"},{label:"汽车类",value:"2"},{label:"其他",value:"3"}], + props:{ + label:'label', + value:'value' + }, + }, + { + label: '审核备注', + prop: 'procInsRemork', + } + ] +} diff --git a/src/const/crud/asset/assetstransfer/addtTransfer.js b/src/const/crud/asset/assetstransfer/addtTransfer.js new file mode 100644 index 0000000..1924b59 --- /dev/null +++ b/src/const/crud/asset/assetstransfer/addtTransfer.js @@ -0,0 +1,206 @@ + +export const tableiOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu:true, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + searchBtn:false, + refreshBtn:false, + columnBtn:false, + dic: [], + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + }, + { + label: '资产编码', + prop: 'code' + }, + { + label: '部门编码', + prop: 'belongDeptCode', + hide: true, + }, + { + label: '部门', + prop: 'belongDeptName', + }, + + { + label: '资产名称', + prop: 'goodsName' + }, + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '面积', + prop: 'area' + }, + { + label: '单位', + prop: 'unit' + }, + + { + label: '单价', + prop: 'price' + },{ + label: '预计报废日期', + prop: 'invalidDate', + type:'date', + format:'yyyy-MM-dd', + }, + { + label: '实际报废日期', + type:'date', + prop: 'invalidActualDate', + format:'yyyy-MM-dd', + + }, + { + label: '报废状态', + prop: 'isInvalid', + }, + { + label: '报废审核备注', + prop: 'procInsRemork', + } + ] +} +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu:true, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + searchBtn:false, + refreshBtn:false, + columnBtn:false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + }, + { + label: '资产编码', + prop: 'code' + }, + { + label: '调出部门编码', + prop: 'belongDeptCode', + hide: true, + }, + { + label: '调出部门', + prop: 'belongDeptName', + }, + { + label: '调入部门', + prop: 'newDeptName', + }, + { + label: '资产名称', + prop: 'goodsName' + }, + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '面积', + prop: 'area' + }, + { + label: '单位', + prop: 'unit' + }, + + { + label: '单价', + prop: 'price' + } + ] +} + +export const tableOption2 = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu:true, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + searchBtn:false, + refreshBtn:false, + columnBtn:false, + dic: [], + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + }, + { + label: '资产编码', + prop: 'code' + }, + { + label: '调出部门编码', + prop: 'belongDeptCode', + hide: true, + }, + { + label: '调出部门', + prop: 'belongDeptName', + }, + { + label: '资产名称', + prop: 'goodsName' + }, + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '面积', + prop: 'area' + }, + { + label: '单位', + prop: 'unit' + }, + + { + label: '单价', + prop: 'price' + } + ] +} diff --git a/src/const/crud/asset/assetstransfer/assetassetstransfer.js b/src/const/crud/asset/assetstransfer/assetassetstransfer.js new file mode 100644 index 0000000..bd0f2f0 --- /dev/null +++ b/src/const/crud/asset/assetstransfer/assetassetstransfer.js @@ -0,0 +1,264 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import {YES_OR_NO} from "@/const/crud/asset/assets/assetassets"; + +export const states=[ + { + label:'审核中', + value:'-1' + }, + + { + label:'审核完成', + value:'0' + }, + { + label:'审核不通过', + value:'2' + }, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + showSummary:true, + sumColumnList: [ + { + name: 'price', + type: 'sum' + }, + { + name: 'num', + type: 'sum' + } + ], + height:500, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false, + }, + { + label: '调拨单号', + prop: 'transferNo', + search:"true" + }, + // { + // label: '原资产编码', + // prop: 'oldCode', + // search:"true", + // hide:false + // }, + { + label: '原部门名称', + prop: 'oldDeptName' + }, + // { + // label: '新资产编码', + // prop: 'newCode', + // search:"true", + // hide:false + // }, + { + label: '新部门名称', + prop: 'newDeptName' + }, + { + label: '数量', + prop: 'num' + }, + { + label: '金额', + prop: 'price' + }, + { + label: '审核状态', + prop: 'procInsStatus' + }, + { + label: '审核状态', + type:'select', + prop: 'status', + searchFilterable:true, + dicData:states, + props:{ + label:'label', + value:'value' + }, + search:true, + hide:true + }, + { + label: '审核意见', + prop: 'procInsRemork' + }, + { + label: '调拨时间', + prop: 'createTime' + },{ + label: '开始时间', + prop: 'beginTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd 00:00:00', + editDisplay: false, + addDisplay: false, + search:true, + hide: true + },{ + label: '结束时间', + prop: 'endTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd 23:59:59', + editDisplay: false, + addDisplay: false, + search:true, + hide: true + }, + { + label: '原部门名称', + prop: 'oldName', + type:'select', + hide: true, + addDisplay: false, + search:true, + editDisplay: false, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props:{ + label:'deptName', + value:'deptCode' + }, + }, + { + label: '新部门名称', + prop: 'newName', + type:'select', + hide: true, + addDisplay: false, + search:true, + editDisplay: false, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props:{ + label:'deptName', + value:'deptCode' + } + } + ] +} + +export const tableDictItemOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu:false, + align: 'center', + editBtn: false, + delBtn: false, + showSummary:true, + addBtn: false, + refreshBtn: false, + showColumnBtn: false, + searchSize: 'mini', + height:500, + dic: [], + sumColumnList: [ + { + label:'合计:', + name: 'sum', + type: 'sum', + decimals:1 + }, + { + name: 'price', + type: 'sum' + }], + column: [ + { + label:'江苏省常州技师学院固定资产调拨单', + children:[ + { + title: '序号', + type: 'index', + width: 50, + align: 'center' + }, + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '面积', + prop: 'area' + }, + { + label: '单位', + prop: 'unit' + }, + { + label: '数量', + prop: 'num' + }, + { + label: '调拨时间', + prop: 'createTime' + }, { + label: '审核状态', + prop: 'procInsStatus' + }, + { + label: '原资产编码', + prop: 'oldCode', + }, + { + label: '原部门名称', + prop: 'oldDeptName' + }, + { + label: '新资产编码', + prop: 'newCode', + }, + { + label: '新部门名称', + prop: 'newDeptName' + }, + { + label: '资产名称', + prop: 'goodsName' + }, { + width:150, + label: '单价', + prop: 'price' + } + ] + } + ] +} diff --git a/src/const/crud/asset/checkBuild/checkbuilding.js b/src/const/crud/asset/checkBuild/checkbuilding.js new file mode 100644 index 0000000..49cc37c --- /dev/null +++ b/src/const/crud/asset/checkBuild/checkbuilding.js @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '部门', + prop: 'deptCode', + labelWidth: 120, + search:true, + rules: [{ + required: true, + message: '部门不能为空', + trigger: 'blur' + }] + }, + + { + label: '楼号', + prop: 'buildCode', + search:true, + rules: [{ + required: true, + message: '楼号不能为空', + trigger: 'blur' + }] + }, + // { + // label: '楼名', + // labelWidth: 120, + // prop: 'buildName', + // rules: [{ + // required: true, + // message: '楼名不能为空', + // trigger: 'blur' + // }] + // }, + + { + label: '房间(区域)', + prop: 'roomCode', + search:true, + labelWidth: 120, + rules: [{ + required: true, + message: '房间(区域)不能为空', + trigger: 'blur' + }] + }, + // { + // label: '房间描述', + // prop: 'roomName', + // rules: [{ + // required: true, + // message: '房间描述不能为空', + // trigger: 'blur' + // }] + // }, + // { + // label: '区域描述', + // prop: 'areaName', + // }, + { + label: '备注', + type: 'textarea', + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/asset/checkDevice/checkdevice.js b/src/const/crud/asset/checkDevice/checkdevice.js new file mode 100644 index 0000000..9b9cf9b --- /dev/null +++ b/src/const/crud/asset/checkDevice/checkdevice.js @@ -0,0 +1,385 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict"; +import {isInvalid, YES_OR_NO2} from "@/const/crud/asset/assets/assetassets"; +export const wxstat=[ + { + label:'正常', + value:'0' + }, + { + label:'维修', + value:'1' + }, + { + label:'维护', + value:'2' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标志', + prop: 'delFlag' + }, + { + label: '租户ID', + prop: 'tenantId' + }, + { + label: '备注', + prop: 'remark' + }, + { + label: '学院', + prop: 'deptCode' + }, + { + label: '资产id', + prop: 'assetId' + }, + { + label: '资产状态0正常 1维修 2保养', + prop: 'assetState' + }, + { + label: '班级代码', + prop: 'classCode' + }, + { + label: '任课教师', + prop: 'teacherNo' + }, + { + label: '所属区域', + prop: 'buildingId' + }, + ] +} +export const tableDetailPageOption= { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + refreshBtn: false, + height:500, + showColumnBtn: false, + searchSize: 'mini', + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + column: [ + { + label: '资产编码', + prop: 'code', + search: true + }, + { + label: '资产名称', + prop: 'goodsName', + search: true + }, + { + label: '规格|型号', + prop: 'spec' + }, + { + label: '单位', + prop: 'unit' + }, + { + label: '数量', + prop: 'num', + }, + { + label: '价格', + prop: 'price', + }, + { + label: '使用部门', + prop: 'belongDeptName', + }, + { + label: '入库时间', + prop: 'intTimeValue', + }, + + { + label: '部门名称', + prop: 'belongDeptCode', + searchFilterable:true, + type:'select', + hide: true, + addDisplay: false, + search:true, + editDisplay: false, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props:{ + label:'deptName', + value:'deptCode' + }, + }, + { + label: '资产分类', + prop: 'codeEnName', + type:'select', + filterable:true, + searchFilterable:true, + hide: true, + addDisplay: false, + search:true, + editDisplay: false, + dicUrl: '/asset/assetcode/allList', + props:{ + label:'codeName', + value:'codeEnName' + }, + }, + { + label: '资产状态', + prop: 'isInvalid', + type:'select', + dicData:isInvalid, + props:{ + label:'label', + value:'value' + }, + search:true + }, + { + label: '维修/维护', + prop: 'isInvalid', + type:'select', + dicData:wxstat, + props:{ + label:'label', + value:'value' + }, + search:true + }, + { + label: '班级及任课老师', + prop: '', + }, + { + label: '开始编码', + prop: 'startCode', + hide: true, + search:true + }, + { + label: '结束编码', + prop: 'endCode', + hide: true, + search:true + }, + + { + label: '最小面积', + prop: 'minArea', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '最大面积', + prop: 'maxArea', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '最小单价', + prop: 'minPrice', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + { + label: '最大单价', + prop: 'maxPrice', + addDisplay: false, + editDisplay: false, + search:true, + hide: true + }, + + { + label: '入库开始时间', + prop: 'startTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + search:true, + hide: true + }, + { + label: '入库结束时间', + prop: 'endTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + search:true, + hide: true + }, + { + label: '部门编码', + prop: 'belongDeptCode', + hide: true, + }, + { + label: '存放地类型', + prop: 'roomType', + type:'select', + dicData:global.all_room_type_id, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '存放楼栋', + prop: 'buildName' + }, + { + label: '存放楼栋', + prop: 'buildId', + type:'select', + filterable:true, + searchFilterable:true, + addDisplay: false, + search:true, + hide:true, + editDisplay: false, + dicUrl: '/asset/assetsbuilding/list', + props:{ + label:'buildName', + value:'id' + }, + }, + { + label: '存放房间', + prop: 'roomName' + }, + { + label: '存放房间', + prop: 'roomId', + type:'select', + filterable:true, + searchFilterable:true, + addDisplay: false, + search:true, + hide:true, + editDisplay: false, + dicUrl: '/asset/assetsroom/listBuild', + props:{ + label:'roomCode', + value:'id' + }, + }, + { + label: '照片', + prop: 'photo', + slot: true, + formslot: true + }, + { + label: '调拨日期', + prop: 'transferTime', + },{ + label: '备注', + prop: 'remarks', + search:true + },{ + label: '老资产ID', + prop: 'oldId', + search: true + },{ + label: '调拨状态', + prop: 'transferState', + search: true, + hide: true, + type:'select', + dicData:global.transferState, + props:{ + label:'label', + value:'value' + }, + },{ + label: '报废状态', + prop: 'invalidState', + search: true, + hide: true, + type:'select', + dicData:global.invalidState, + props:{ + label:'label', + value:'value' + }, + } + ] +} diff --git a/src/const/crud/basic/appbanner.js b/src/const/crud/basic/appbanner.js new file mode 100755 index 0000000..dd3902f --- /dev/null +++ b/src/const/crud/basic/appbanner.js @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: true, + delBtn: true, + addBtn: true, + dic: [], + dialogHeight:500, + column: [ + { + label: '图片地址', + prop: 'imgUrl', + slot:true, + formslot:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"请上传图片" + } + ] + }, + { + label: '跳转路径', + prop: 'href', + span:15, + // type:'textarea', + row:true + }, + { + label: '备注', + prop: 'remarks', + type:'textarea', + row:true, + span:15 + }, + { + label: '排序(倒序)', + prop: 'sort', + type:'number', + span: 15 + }, + { + label: '创建时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true + }, + ] +} diff --git a/src/const/crud/basic/basicclass.js b/src/const/crud/basic/basicclass.js new file mode 100755 index 0000000..c69551e --- /dev/null +++ b/src/const/crud/basic/basicclass.js @@ -0,0 +1,320 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from '@/components/tools/commondict' +import {number} from "echarts/src/export"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection:true, + dic: [], + column: [ + + { + label: '入学日期', + prop: 'enterDate', + labelWidth: 120, + type:'date', + formslot: true, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + message: "请选择入学日期", + trigger: "blur" + }], + hide:true + }, + { + label: '专业', + prop: 'majorCode', + labelWidth: 120, + hide:true, + formslot: true, + type:'select', + dicUrl: '/basic/major/getMajorNameList', + props: { + label: 'majorCodeAndName', + value: 'majorCode' + }, + rules: [{ + required: true, + message: "请选择专业", + trigger: "blur" + }] + }, + { + label: '学院', + prop: 'deptCode', + labelWidth: 120, + formslot: true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级代码', + prop: 'classCode', + labelWidth: 120, + hide:true, + formslot: true, + rules: [{ + required: true, + message: "请填写班级代码", + trigger: "blur" + }] + }, + { + label: '班号', + prop: 'classNo', + labelWidth: 50, + formslot: true, + }, + { + label: '班级名称', + prop: 'className', + labelWidth: 120, + hide:true, + formslot: true, + rules: [{ + required: true, + message: "请填写班级名称", + trigger: "blur" + }] + }, + { + label: '班级规范名称', + prop: 'classProName', + labelWidth: 120, + formslot: true, + }, + // { + // label:'入学年份', + // prop:'grade', + // type:'select', + // dicUrl: '/basic/basicclass/list', + // props: { + // label: 'grade', + // value: 'grade' + // }, + // search:true, + // addDisplay:false, + // editDisplay:false + // }, + { + label:'入学年份', + prop:'grade', + labelWidth: 120, + search:true, + hide:true, + formslot: true, + type:'select', + dicUrl: '/basic/basicclass/getGradeList', + props: { + label: 'grade', + value: 'grade' + }, + // hide:true, + }, + { + label: '班主任', + prop: 'teacherNos', + labelWidth: 120, + hide:true, + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + rules: [{ + required: true, + message: "请选择班主任", + trigger: "blur" + }], + }, + { + label:'班主任', + prop:'teacherRealName', + search:true, + slot: true, + addDisplay:false, + editDisplay:false + }, + { + label: '班主任工号', + prop: 'teacherNo', + addDisplay:false, + editDisplay:false, + hide: true + }, + { + label: '班主任电话号码', + prop: 'teacherPhone', + addDisplay:false, + editDisplay:false + }, + { + label:'预计招生人数', + prop:'preStuNum', + labelWidth: 120, + hide:true, + type:'number', + rules: [{ + required: true, + message: "请填写招生人数", + trigger: "blur" + }], + }, + { + label:'班级现有/原始人数', + prop:'stuNum', + slot: true, + addDisplay:false, + editDisplay:false + }, + { + label:'男', + prop:'manStuNum', + addDisplay:false, + editDisplay:false, + hide: true + }, + { + label:'女', + prop:'girlStuNum', + addDisplay:false, + editDisplay:false, + hide: true + }, + { + label:'班级qq', + prop:'classQq', + labelWidth: 120, + addDisplay:false, + hide:true, + type:'number' + }, + // { + // label:'是否毕业', + // prop:'isGraduate', + // labelWidth: 120, + // addDisplay:false, + // // search:true, + // type:'select', + // dicUrl:'/admin/dict/item/type/yes_no', + // props:{ + // label:'label', + // value:'value' + // }, + // rules: [{ + // required: true, + // message: "请选择是否毕业", + // trigger: "blur" + // }], + // }, + // { + // label:'是否顶岗', + // prop:'isPractice', + // labelWidth: 120, + // addDisplay:false, + // type:'select', + // // search:true, + // dicUrl:'/admin/dict/item/type/yes_no', + // props:{ + // label:'label', + // value:'value' + // }, + // rules: [{ + // required: true, + // message: "请选择是否顶岗", + // trigger: "blur" + // }], + // }, + // { + // label:'是否更岗', + // prop:'isUpdataPractice', + // labelWidth: 120, + // addDisplay:false, + // // search:true, + // type:'select', + // dicUrl:'/admin/dict/item/type/yes_no', + // props:{ + // label:'label', + // value:'value' + // }, + // rules: [{ + // required: true, + // message: "请选择是否更岗", + // trigger: "blur" + // }], + // }, + { + label: '门禁规则', + prop: 'gateRule', + addDisplay:false, + editDisplay:false, + type: "select", + dicUrl: "/stuwork/entrancerule/queryRuleNameList", + props:{ + label:'ruleName', + value:'id' + }, + }, + { + label: '班级状态', + prop: 'classStatus', + addDisplay:false, + search:true, + type: "select", + dicData:global.CLASS_STATUS, + props:{ + label:"label", + value:"value" + } + + }, + { + label: '备注', + prop: 'remarks', + labelWidth: 120, + type:'textarea', + span:24, + hide: true + }, + { + label: '流失率', + prop: 'stuLoseRate', + labelWidth: 100, + addDisplay:false, + editDisplay:false, + slot:true + }, + ] +} diff --git a/src/const/crud/basic/basicdept.js b/src/const/crud/basic/basicdept.js new file mode 100755 index 0000000..8162ae9 --- /dev/null +++ b/src/const/crud/basic/basicdept.js @@ -0,0 +1,150 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + // border: true, + // index: true, + // indexLabel: '序号', + // stripe: true, + // menuAlign: 'center', + // align: 'center', + // editBtn: false, + // delBtn: false, + // addBtn: false, + // dic: [], + + border: true, + stripe: true, + menuAlign: 'center', + menuWidth: 150, + align: 'center', + refreshBtn: false, + showColumn: false, + viewBtn: false, + addBtn: false, + editBtn: false, + delBtn: false, + filterBtn: false, + expandAll: true, + tree: true, + page: false, + column: [ + + { + label: '部门编码', + prop: 'deptCode', + align: 'left', + slot: true, + rules: [{ + required: true, + message: '请输入部门编码', + trigger: 'blur' + }] + + }, + { + label: 'id', + prop: 'id', + hide: true, + addDisplay: false, + editDisabled: false, + editDisplay: false, + visdiplay: false + }, + { + label: '父级节点', + prop: 'parentCode', + type: 'tree', + dicUrl: '/basic/basicdept/tree', + props: { + label: 'deptName', + value: 'deptCode' + }, + hide: true, + + }, + { + label: '部门名称', + prop: 'deptName', + hide: true, + rules: [{ + required: true, + message: '请输入部门名称', + trigger: 'blur' + }] + }, + { + label: '排序', + prop: 'sort', + rules: [{ + required: true, + message: '请输入排序', + trigger: 'blur' + }] + }, + { + label: '是否为二级学院', + prop: 'secondFlag', + labelWidth: 135, + type: 'radio', + dicUrl: '/admin/dict/item/type/yes_no', + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + message: '请选择', + trigger: 'blur' + }] + }, + { + label: '是否为培训部门', + prop: 'trainFlag', + labelWidth: 135, + type: 'radio', + dicUrl: '/admin/dict/item/type/yes_no', + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + message: '请选择', + trigger: 'blur' + }] + }, + { + label: '是否为教学部门', + prop: 'teachFlag', + labelWidth: 135, + type: 'radio', + dicUrl: '/admin/dict/item/type/yes_no', + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + message: '请选择', + trigger: 'blur' + }] + }, + ] +} + + diff --git a/src/const/crud/basic/basicholiday.js b/src/const/crud/basic/basicholiday.js new file mode 100755 index 0000000..d5a21e1 --- /dev/null +++ b/src/const/crud/basic/basicholiday.js @@ -0,0 +1,204 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '学年', + prop: 'year', + type:'select', + search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + disabled:true, + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学年" + } + ] + }, + { + label: '学期', + prop: 'yearTerm', + type:'radio', + search:true, + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + disabled:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + { + label: '日期', + prop: 'holidayDate', + type: 'date', + valueFormat: 'yyyy-MM-dd', + format: 'yyyy-MM-dd', + disabled:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择日期" + } + ] + }, + { + label: '节日类型', + prop: 'holidayType', + search:true, + type:'select', + addDisplay:false, + dicUrl:'/admin/dict/item/type/holiday_type', + props:{ + label:'label', + value:'value' + }, + }, + + { + label: '备注', + prop: 'remarks', + type:'textarea' + }, + ] +} + + +export const makeHolidayOption= { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + submitText:'生成', + column: [ + { + label: '学年学期', + prop: 'yearStr', + type:'cascader', + filterable:true, + span:24, + dicUrl:'/basic/basicholiday/getAllYearAndTerm', + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学年" + } + ] + }, + { + label: '日期', + prop: 'dateRange', + type: 'daterange', + span:24, + valueFormat:'yyyy-MM-dd', + rules: [ + { + required: true, + trigger: 'blur', + message:"选择日期" + } + ] + } + ] +} + +export const addHolidayOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + // { + // label: '日期', + // prop: 'holidayDate', + // type: 'date', + // valueFormat: 'yyyy-MM-dd', + // format: 'yyyy-MM-dd', + // rules: [ + // { + // required: true, + // trigger: 'blur', + // message:"选择日期" + // } + // ] + // }, + { + label: '日期', + prop: 'dateRange', + type: 'daterange', + span:24, + valueFormat:'yyyy-MM-dd', + rules: [ + { + required: true, + trigger: 'blur', + message:"选择日期" + } + ] + }, + { + label: '节日类型', + prop: 'holidayType', + type:'select', + dicUrl:'/admin/dict/item/type/holiday_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '备注', + prop: 'remarks', + type:'textarea' + }, + ] +} diff --git a/src/const/crud/basic/basicidcardposition.js b/src/const/crud/basic/basicidcardposition.js new file mode 100755 index 0000000..33bbc2b --- /dev/null +++ b/src/const/crud/basic/basicidcardposition.js @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '租户ID', + prop: 'tenantId' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '身份证前6位', + prop: 'idCardPrefix' + }, + { + label: '户口所在地', + prop: 'position' + }, + ] +} diff --git a/src/const/crud/basic/basicnation.js b/src/const/crud/basic/basicnation.js new file mode 100755 index 0000000..2487a3a --- /dev/null +++ b/src/const/crud/basic/basicnation.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '', + // prop: 'id' + // }, + { + label: '民族编码', + prop: 'nationCode' + }, + { + label: '民族名称', + prop: 'nationName' + }, + { + label: '分类排序', + prop: 'sort' + }, + ] +} diff --git a/src/const/crud/basic/basicpoliticsstatusbase.js b/src/const/crud/basic/basicpoliticsstatusbase.js new file mode 100755 index 0000000..614fda9 --- /dev/null +++ b/src/const/crud/basic/basicpoliticsstatusbase.js @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + { + label: '政治面貌', + prop: 'politicsStatus' + }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '排序', + prop: 'sort' + }, + ] +} diff --git a/src/const/crud/basic/basicstudent.js b/src/const/crud/basic/basicstudent.js new file mode 100755 index 0000000..acc772b --- /dev/null +++ b/src/const/crud/basic/basicstudent.js @@ -0,0 +1,549 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection: true, + reserveSelection:false, + dic: [], + width:1920, + dialogHeight:700, + column: [ + { + label:'学院', + prop:'deptName', + // search:true, + addDisplay:false, + editDisplay: false, + clearable:true + }, + { + label:'专业', + prop: 'majorName', + addDisplay:false, + editDisplay: false, + // type:'select', + // dicUrl: '/basic/major/getMajorNameList', + // props: { + // label: 'majorName', + // value: 'majorCode' + // }, + }, + { + label: '班级', + prop: 'className', + // search:true, + }, + { + label: '学号', + prop: 'stuNo', + // search:true, + addDisplay:false, + editDisabled:true, + editDisplay:true, + visdiplay:false + }, + { + label: '姓名', + prop: 'realName', + // search:true, + addDisplay:false, + editDisabled:true, + editDisplay:true, + visdiplay:false + }, + { + label: '性别', + prop: 'gender', + addDisplay:false, + editDisplay: false, + type:"select", + dicUrl: '/admin/dict/item/type/sexy', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '身份证号', + prop: 'idCard', + // search:true, + addDisplay:false, + editDisplay: false, + }, + { + label: '中职卡号', + prop: 'bankCard', + // search:true, + hide:true, + addDisplay:false, + editDisplay: false, + }, + { + label: '家庭住址', + prop: 'liveAddress', + // search:true, + hide:true, + addDisplay:false, + editDisplay: false, + }, + { + label: '班主任', + prop: 'teacherNo', + addDisplay:false, + editDisplay: false, + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + }, + { + label: '住宿', + prop: 'roomNo', + addDisplay:false, + editDisplay: false, + // type: 'select', + // search:true, + // dicUrl: '/admin/dict/item/type/yes_no', + // props:{ + // label:'label', + // value:'value' + // }, + }, + { + label: '文化程度', + prop: 'education', + addDisplay:false, + editDisplay: false, + type:"select", + dicUrl: '/admin/dict/item/type/pre_school_education', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '学籍状态', + prop: 'enrollStatus', + addDisplay:false, + editDisplay: false, + type:"select", + dicUrl: '/admin/dict/item/type/enroll_status', + props:{ + label:'label', + value:'value' + }, + // search:true + }, + { + label: '个人电话', + prop: 'phone', + addDisplay:false, + editDisplay: false, + }, + { + label: '户籍所在地', + prop: 'householdAddress', + addDisplay:false, + editDisplay: false, + }, + + { + label: '班级', + prop: 'classCode', + // search:true, + hide:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + slot:true + }, + + { + label: '学生状态', + prop: 'stuStatus', + type:'select', + dicUrl:'/admin/dict/item/type/student_status', + props:{ + label:'label', + value:'value' + }, + // search:true + }, + { + label: '是否班干部', + prop: 'isClassLeader', + // search:true, + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + } + }, + { + label: '是否允许进出', + prop: 'isInout', + // search:true, + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + } + }, + { + label: '资料完成度', + prop: 'completeRate', + display:false + // slot:true, + }, + { + width: 300, + label: '头像', + prop: 'imageUrl', + hide:true, + // slot:true, + formslot:true + }, + ], + group:[ + { + icon:'el-icon-info', + label: '基础信息', + prop: 'sjlb', + column:[ + { + label: '学号', + prop: 'stuNo', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:true, + visdiplay:false + }, + { + label: '姓名', + prop: 'realName', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:true, + visdiplay:false + }, + { + label: '班级', + prop: 'classNo', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:true, + visdiplay:false + }, + + { + label: '学生状态', + prop: 'stuStatus', + type:'select', + dicUrl:'/admin/dict/item/type/student_status', + props:{ + label:'label', + value:'value' + }, + addDisplay:false, + editDisabled:true, + editDisplay:true, + visdiplay:false + }, + { + width: 300, + label: '头像', + prop: 'imageUrl', + // slot:true, + formslot:true + }, + ] + }, + { + icon:'el-icon-info', + label: '拓展信息', + prop: 'sjlb', + column: [ + { + label: '曾用名', + prop: 'oldName' + }, + { + label: '身份证号', + prop: 'idCard' + }, + { + label: '出生年月', + prop: 'birthday', + type:'datetime', + format:'yyyy-MM-dd' + }, + { + label: '户口所在地', + prop: 'householdAddress' + }, + { + label: '政治面貌', + prop: 'politicsStatus', + type:'select', + cell: true, + dicUrl:`/basic/basicpoliticsstatusbase/getPoliticsStatusDict`, + props:{ + label:'name', + value:'id', + } + }, + { + label: '民族', + prop: 'national', + type:'select', + dicUrl:'/basic/basicnation/getNationalList', + props:{ + label:'nationName', + value:'nationCode' + }, + }, + { + label: '辩色力', + prop: 'colourSense' + }, + { + label: '裸眼视力(左)', + prop: 'eyeLeft' + }, + { + label: '裸眼视力(右)', + prop: 'eyeRight' + }, + { + label: '身高', + prop: 'height' + }, + { + label: '体重', + prop: 'weight' + }, + { + label: '需关爱类型', + prop: 'careType', + type: 'select', + dicUrl: '/admin/dict/item/type/care_type', + props:{ + label:'label', + value:'value' + } + }, + { + label: '电子邮箱', + prop: 'email' + }, + { + label: 'qq/微信号', + prop: 'qq' + }, + { + label: '本人电话', + prop: 'phone' + }, + { + label: '退伍军人', + prop: 'veteran', + type: 'select', + dicUrl: '/admin/dict/item/type/veteran_status', + props:{ + label:'label', + value:'value' + } + }, + { + label: '既往病史', + prop: 'seekText' + }, + { + label: '本人特长', + prop: 'advantage' + } + ] + }, + ] +} + +export const tableStuOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + reserveSelection:false, + dic: [], + width:1920, + dialogHeight:700, + column: [ + { + label:'学院', + prop:'deptName', + addDisplay:false, + editDisplay: false, + }, + { + label:'专业', + prop: 'majorName', + addDisplay:false, + editDisplay: false, + }, + { + label: '班级', + prop: 'className', + }, + { + label: '学号', + prop: 'stuNo', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:true, + visdiplay:false + }, + { + label: '姓名', + prop: 'realName', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:true, + visdiplay:false + }, + { + label: '身份证', + prop: 'idCard', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:true, + visdiplay:false + }, + { + label: '电话', + prop: 'phone', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:true, + visdiplay:false + }, + { + label: '家长电话', + prop: 'jzPhone', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:true, + visdiplay:false + }, + { + label: '性别', + prop: 'gender', + addDisplay:false, + editDisplay: false, + type:"select", + dicUrl: '/admin/dict/item/type/sexy', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '宿舍号', + prop: 'roomNo', + addDisplay:false, + editDisplay: false, + }, + { + label: '班主任', + prop: 'teacherNo', + addDisplay:false, + editDisplay: false, + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + }, + { + label: '班主任电话', + prop: 'telPhone', + }, + + { + label: '学籍状态', + prop: 'enrollStatus', + addDisplay:false, + editDisplay: false, + type:"select", + dicUrl: '/admin/dict/item/type/enroll_status', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '学生状态', + prop: 'stuStatus', + type:'select', + dicUrl:'/admin/dict/item/type/student_status', + props:{ + label:'label', + value:'value' + }, + }, + { + width: 300, + label: '头像', + prop: 'headImg', + slot:true, + }, + ], +} diff --git a/src/const/crud/basic/basicstudentadulteducation.js b/src/const/crud/basic/basicstudentadulteducation.js new file mode 100755 index 0000000..d84b78e --- /dev/null +++ b/src/const/crud/basic/basicstudentadulteducation.js @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '租户ID', + prop: 'tenantId' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '成教院校', + prop: 'schoolName' + }, + { + label: '成教学历', + prop: 'education' + }, + { + label: '成教准考证号', + prop: 'examNo' + }, + { + label: '成教入籍日期', + prop: 'enterDate' + }, + { + label: '成教学号', + prop: 'adultNo' + }, + { + label: '成教专业', + prop: 'majorName' + }, + { + label: '成教计算机', + prop: 'computerScore' + }, + { + label: '成教英语', + prop: 'englishScore' + }, + ] +} diff --git a/src/const/crud/basic/basicstudenteducation.js b/src/const/crud/basic/basicstudenteducation.js new file mode 100755 index 0000000..210dcf9 --- /dev/null +++ b/src/const/crud/basic/basicstudenteducation.js @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '租户ID', + prop: 'tenantId' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '文化程度', + prop: 'education' + }, + { + label: '中考分数', + prop: 'examScore' + }, + { + label: '中考准考证', + prop: 'examNo' + }, + { + label: '借读学年', + prop: 'temporaryyeYear' + }, + { + label: '毕业学校校名', + prop: 'schoolName' + }, + { + label: '毕业学校所在省', + prop: 'schoolProvince' + }, + { + label: '学生来源(0:往届 1:应届)', + prop: 'position' + }, + ] +} diff --git a/src/const/crud/basic/basicstudenteducationdetail.js b/src/const/crud/basic/basicstudenteducationdetail.js new file mode 100644 index 0000000..2184fdb --- /dev/null +++ b/src/const/crud/basic/basicstudenteducationdetail.js @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '学号', + // prop: 'stuNo' + // }, + { + label: '开始年月', + prop: 'startYearMonth' + }, + { + label: '结束年月', + prop: 'endYearMonth' + }, + { + label: '学校名称', + prop: 'schoolName' + }, + { + label: '任职情况', + prop: 'positionName' + }, + + ] +} diff --git a/src/const/crud/basic/basicstudenthome.js b/src/const/crud/basic/basicstudenthome.js new file mode 100755 index 0000000..cb40e41 --- /dev/null +++ b/src/const/crud/basic/basicstudenthome.js @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '租户ID', + prop: 'tenantId' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '户口地址', + prop: 'householdAddress' + }, + { + label: '户口性质', + prop: 'householdProperties' + }, + { + label: '居住详细地址', + prop: 'liveAddress' + }, + { + label: '是否租住', + prop: 'isTemp' + }, + { + label: '家庭出身', + prop: 'homeBirth' + }, + { + label: '收入来源', + prop: 'incomeSource' + }, + { + label: '家庭收入', + prop: 'incomeMoney' + }, + { + label: '家庭人均年收入', + prop: 'incomePerMoney' + }, + { + label: '家庭困难证', + prop: 'homeDifficulty' + }, + ] +} diff --git a/src/const/crud/basic/basicstudentinfo.js b/src/const/crud/basic/basicstudentinfo.js new file mode 100755 index 0000000..00e908e --- /dev/null +++ b/src/const/crud/basic/basicstudentinfo.js @@ -0,0 +1,269 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '曾用名', + prop: 'oldName' + }, + { + label: '身份证号', + prop: 'idCard' + }, + { + label: '出生年月', + prop: 'birthday', + type:'datetime', + format:'yyyy-MM-dd' + }, + { + label: '户口所在地', + prop: 'householdAddress' + }, + { + label: '政治面貌', + prop: 'politicsStatus', + type:'select', + cell: true, + dicUrl:`/basic/basicpoliticsstatusbase/getPoliticsStatusDict`, + props:{ + label:'name', + value:'id', + } + }, + { + label: '民族', + prop: 'national', + type:'select', + dicUrl:'/basic/basicnation/getNationalList', + props:{ + label:'nationName', + value:'nationCode' + }, + }, + { + label: '辩色力', + prop: 'colourSense' + }, + { + label: '裸眼视力(左)', + prop: 'eyeLeft' + }, + { + label: '裸眼视力(右)', + prop: 'eyeRight' + }, + { + label: '身高', + prop: 'height' + }, + { + label: '体重', + prop: 'weight' + }, + { + label: '需关爱类型', + prop: 'careType', + type: 'select', + dicUrl: '/admin/dict/item/type/care_type', + props:{ + label:'label', + value:'value' + } + }, + { + label: '电子邮箱', + prop: 'email' + }, + { + label: 'qq/微信号', + prop: 'qq' + }, + { + label: '本人电话', + prop: 'phone' + }, + { + label: '退伍军人', + prop: 'veteran', + type: 'select', + dicUrl: '/admin/dict/item/type/veteran_status', + props:{ + label:'label', + value:'value' + } + }, + { + label: '既往病史', + prop: 'seekText' + }, + { + label: '本人特长', + prop: 'advantage' + }] +} + +//家庭成员 +export const relationHomeOption={ + keyId:'id', + addBtn:false, + editBtn:false, + addRowBtn:true, + cellBtn:true, + column: [{ + label:'称谓', + prop: 'appellation', + cell: true, + type:'select', + dicUrl:`/admin/dict/item/type/family_member_type`, + props:{ + label:'label', + value:'value', + }, + rules: [ + { + required: true, + message: '请输入称谓', + trigger: 'blur' + } + ] + }, + { + label:'姓名', + prop: 'realName', + cell: true, + rules: [ + { + required: true, + message: '请输入姓名', + trigger: 'blur' + } + ] + }, + { + label:'电话', + prop: 'tel', + cell: true, + rules: [ + { + required: true, + message: '请输入电话', + trigger: 'blur' + }, + { min:8 ,max: 12, message: '电话号码应为 8-12位数字', trigger: 'blur' } + ] + }, + { + label:'身份证号', + prop: 'idCard', + cell: true, + rules: [ + { + required: true, + message: '请输入身份证号', + trigger: 'blur' + }, + { min:11 ,max:18 , message: '身份证号码应为 18位', trigger: 'blur' } + ] + }, + { + label:'工作单位', + prop: 'workAddress', + cell: true, + rules: [ + { + required: true, + message: '请输入工作单位', + trigger: 'blur' + } + ] + }, + { + label:'政治面貌', + prop: 'politicsStatus', + type:'select', + cell: true, + dicUrl:`/admin/dict/item/type/political_family`, + props:{ + label:'label', + value:'value', + } + }, + { + label:'身体状况', + prop: 'health', + type:'select', + cell: true, + dicUrl:`/admin/dict/item/type/health_status`, + props:{ + label:'label', + value:'value', + } + }, + ] +} diff --git a/src/const/crud/basic/basicstudentmajorclass.js b/src/const/crud/basic/basicstudentmajorclass.js new file mode 100755 index 0000000..1f7baff --- /dev/null +++ b/src/const/crud/basic/basicstudentmajorclass.js @@ -0,0 +1,119 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '租户ID', + prop: 'tenantId' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '学籍', + prop: 'schoolRoll' + }, + { + label: '学籍号', + prop: 'schoolRollNumber' + }, + { + label: '入学日期', + prop: 'enterDate' + }, + { + label: '中技证号', + prop: 'middleNumber' + }, + { + label: '中技后文化程度', + prop: 'middleTime' + }, + { + label: '高技证号', + prop: 'highNumber' + }, + { + label: '高技后文化程度', + prop: 'highTime' + }, + { + label: '技师证号', + prop: 'technicianNumber' + }, + { + label: '毕业证号', + prop: 'graduateNumber' + }, + { + label: '毕业时间', + prop: 'graduateDate' + }, + { + label: '', + prop: 'pauseDate' + }, + { + label: '中职卡号', + prop: 'bankCard' + }, + { + label: '停车证号', + prop: 'parkingNo' + }, + ] +} diff --git a/src/const/crud/basic/basicstudentsocialdetail.js b/src/const/crud/basic/basicstudentsocialdetail.js new file mode 100644 index 0000000..e602eaf --- /dev/null +++ b/src/const/crud/basic/basicstudentsocialdetail.js @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '学号', + // prop: 'stuNo' + // }, + { + label: '称谓关系', + prop: 'appellation' + }, + { + label: '姓名', + prop: 'realName' + }, + // { + // label: '身份证号', + // prop: 'idCard' + // }, + { + label: '工作单位', + prop: 'workAddress' + }, + { + label: '政治面貌', + prop: 'politicsStatus' + }, + { + label: '健康状况', + prop: 'health' + }, + ] +} diff --git a/src/const/crud/basic/basicyear.js b/src/const/crud/basic/basicyear.js new file mode 100755 index 0000000..ee5eb7b --- /dev/null +++ b/src/const/crud/basic/basicyear.js @@ -0,0 +1,154 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict" + +const map={ + startYear:'', + endYear:'' +} + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'year', + display:false + }, + { + label: '开始年', + prop: 'startYear', + type:'year', + hide:true, + valueFormat:'yyyy', + rules: [ + { validator: function (rule, value, callback) { + map['startYear']=value + let endYear=map['endYear'] + if(value==''){ + callback(new Error('请选择开始年份')); + } + if(endYear!=''){ + if(global.compareDate(value,endYear)){ + callback(new Error('结束年份必须大于开始年份')); + }else{ + callback() + } + } + }, required:true, trigger: 'blur' } + ] + }, + { + label: '结束年', + prop: 'endYear', + type:'year', + hide:true, + valueFormat:'yyyy', + rules: [ + { validator: function (rule, value, callback) { + map['endYear']=value + let startYear=map['startYear'] + if(value==''){ + callback(new Error('请选择结束年份')); + } + if(startYear!=''){ + if(global.compareDate(startYear,value)){ + callback(new Error('结束年份必须大于开始年份')); + }else{ + callback() + } + } + }, required:true, trigger: 'blur' } + ] + }, + { + label: '学期', + prop: 'yearTerm', + type:'radio', + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + + { + label: '当前学年', + prop: 'isCurrent', + type:'radio', + dicData:global.YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"是否当前学年" + + } + ] + }, + { + label: '开启制定教学计划', + prop: 'isNextTeach', + type:'radio', + dicData:global.YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择是否开启制定教学计划" + + } + ] + }, + { + label: '备注', + prop: 'remarks', + span:24, + row: true + }, + { + label: '创建时间', + prop: 'createTime', + display:false + } + ] +} diff --git a/src/const/crud/basic/classinfo.js b/src/const/crud/basic/classinfo.js new file mode 100644 index 0000000..ae97ff7 --- /dev/null +++ b/src/const/crud/basic/classinfo.js @@ -0,0 +1,228 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + + + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '班级代码', + prop: 'classCode', + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写班级", + trigger: "blur" + }] + }, + { + label: '班号', + prop: 'classNo', + span: 12, + labelWidth: 120, + search:true, + rules: [{ + required: true, + message: "请填写班号", + trigger: "blur", + }] + }, + { + label: '班级名称', + prop: 'className', + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写班级名称", + trigger: "blur" + }] + }, + { + label: '班级规范名称', + prop: 'classOfficalName', + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写班级规范名称", + trigger: "blur" + }] + }, + { + label: '归属学院', + prop: 'classDeptCode', + span: 12, + labelWidth: 120, + type:"select", + search:true, + dicUrl:"/basic/basicdept/getDeptList?secondFlag=1", + props:{ + label:'deptName', + value:'deptCode' + }, + rules: [{ + required: true, + message: "请填写归属学院", + trigger: "blur" + }] + }, + { + label: '班主任', + prop: 'classLeader', + span: 12, + labelWidth: 120, + search:true, + type:"select", + dicUrl:'/admin/user/list', + filterable:true, + props: { + label:'userIdAndName', + value:'username' + }, + rules: [{ + required: true, + message: "请填写班主任", + trigger: "blur" + }] + }, + { + label: '年级', + prop: 'classGrade', + span: 12, + labelWidth: 120, + type:'select', + dicUrl:'/admin/dict/item/type/basic_class_info_grade', + search:true, + rules: [{ + required: true, + message: "请填写年级", + trigger: "blur" + }] + }, + { + label: '入学日期', + prop: 'classDate', + span: 12, + labelWidth: 120, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + message: "请填写入学日期", + trigger: "blur" + }], + hide:true + }, + { + label: '专业', + prop: 'majorCode', + span: 12, + labelWidth: 120, + type:"select", + dicUrl: '/basic/major/list', + filterable:true, + search:true, + props: { + label: 'majorCodeAndName', + value: 'majorCode' + }, + rules: [{ + required: true, + message: "请填写专业代码", + trigger: "blur" + }] + }, + + { + label: '备注', + prop: 'remarks', + type:"textarea", + span: 24, + labelWidth: 120 + }, + ] +} + + diff --git a/src/const/crud/basic/major.js b/src/const/crud/basic/major.js new file mode 100644 index 0000000..03151e5 --- /dev/null +++ b/src/const/crud/basic/major.js @@ -0,0 +1,222 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '专业代码', + prop: 'majorCode', + span: 12, + labelWidth: 120, + search:true, + rules: [{ + required: true, + message: "请填写专业代码", + trigger: "blur" + }] + }, + { + label: '专业名称', + prop: 'majorName', + span: 12, + labelWidth: 120, + search:true, + rules: [{ + required: true, + message: "请填写专业名称", + trigger: "blur" + }] + }, + { + label: '部门', + prop: 'deptCode', + search:true, + type:"select", + span: 12, + labelWidth: 120, + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: "请填写部门编码", + trigger: "blur" + }] + }, + // { + // label: '归属学院', + // prop: 'majorDeptCode', + // span: 12, + // labelWidth: 120, + // type:"select", + // dicUrl:"/basic/basicdept/getDeptList?secondFlag=1", + // search:true, + // props:{ + // label:'deptName', + // value:'deptCode' + // }, + // rules: [{ + // required: true, + // message: "请填写归属学院", + // trigger: "blur" + // }] + // }, + { + label: '学制', + prop: 'majorYears', + span: 12, + labelWidth: 120, + + type:"select", + dicUrl: '/admin/dict/item/type/basic_major_years', + search:true, + rules: [{ + required: true, + message: "请填写学制", + trigger: "blur" + }] + }, + { + label: '专业规范名称', + prop: 'majorProName', + span: 12, + labelWidth: 120, + search:true, + rules: [{ + required: true, + message: "请填写专业规范名称", + trigger: "blur" + }] + }, + { + label: '培养层次', + prop: 'majorLevel', + span: 12, + labelWidth: 120, + type:"select", + dicUrl: '/admin/dict/item/type/basic_major_level', + search:true, + rules: [{ + required: true, + message: "请填写培养层次", + trigger: "blur" + }] + }, + // { + // label: '是否为订单班', + // prop: 'classIsOrder', + // type:"select", + // dicUrl: '/admin/dict/item/type/yes_no', + // search:true, + // span: 12, + // labelWidth: 120, + // rules: [{ + // required: true, + // message: "请选择是否为订单班", + // trigger: "blur" + // }] + // }, + // { + // label: '是否为中德班', + // prop: 'classIsGerman', + // type:"select", + // dicUrl: '/admin/dict/item/type/yes_no', + // search:true, + // span: 12, + // labelWidth: 120, + // rules: [{ + // required: true, + // message: "请选择是否为中德班", + // trigger: "blur" + // }] + // }, + { + label: '备注', + prop: 'remarks', + type:"textarea", + span: 24, + labelWidth: 120 + }, + ] +} diff --git a/src/const/crud/basic/schoolnews.js b/src/const/crud/basic/schoolnews.js new file mode 100755 index 0000000..c4a5ac2 --- /dev/null +++ b/src/const/crud/basic/schoolnews.js @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: true, + delBtn: true, + addBtn: true, + dic: [], + dialogHeight:700, + column: [ + { + label: '新闻标题', + prop: 'title', + type:'textarea', + row:true, + span:24 + }, + { + label: '新闻内容', + prop: 'content', + hide:true, + formslot:true, + span:24, + row:true + }, + { + label: '新闻缩略图', + prop: 'thumb', + slot:true, + formslot:true, + span:24, + row:true + }, + { + label: '备注', + prop: 'remarks', + type:'textarea', + span:24, + row:true + }, + { + label: '发布时间', + prop: 'pubTime', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + row:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择发布时间" + } + ] + }, + { + label: '创建时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true + } + ] +} diff --git a/src/const/crud/basic/studenthomedetail.js b/src/const/crud/basic/studenthomedetail.js new file mode 100755 index 0000000..599dd30 --- /dev/null +++ b/src/const/crud/basic/studenthomedetail.js @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '租户ID', + prop: 'tenantId' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '称谓关系', + prop: 'appellation' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '电话', + prop: 'tel' + }, + { + label: '身份证号', + prop: 'idCard' + }, + { + label: '工作单位', + prop: 'workAddress' + }, + { + label: '政治面貌', + prop: 'politicsStatus' + }, + { + label: '健康状况', + prop: 'health' + }, + ] +} diff --git a/src/const/crud/consume/consume.js b/src/const/crud/consume/consume.js new file mode 100644 index 0000000..77abc04 --- /dev/null +++ b/src/const/crud/consume/consume.js @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + selection:true, + column: [ + + ] +} diff --git a/src/const/crud/contract/contract.js b/src/const/crud/contract/contract.js new file mode 100644 index 0000000..1f6ef0d --- /dev/null +++ b/src/const/crud/contract/contract.js @@ -0,0 +1,465 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:700, + menuWidth:250, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '年份', + prop: 'year', + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'year', + valueFormat:'yyyy' + }, + { + label: '起草部门', + fixed:true, + prop: 'deptCode', + labelWidth:124, + searchFilterable:true, + search:true, + addDisplay:false, + editDisabled:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: "请选择起草部门", + trigger: "blur" + }], + minWidth:110 + }, + { + label: '起草部门', + prop: 'deptName', + hide:true, + addDisplay:false, + editDisplay:false + }, + { + label: '合同编号', + prop: 'contractNo', + fixed:true, + search:true, + sortable:true, + labelWidth:124, + addDisplay:false, + editDisabled:true, + rules: [{ + required: true, + message: "请输入合同编号", + trigger: "blur" + }], + minWidth:170 + }, + { + label: '合同名称', + prop: 'contractName', + fixed:true, + search:true, + labelWidth:124, + rules: [{ + required: true, + message: "请输入合同名称", + trigger: "blur" + }], + minWidth:250, + }, + { + label: '合同类型', + prop: 'contractType', + labelWidth:124, + search:true, + filterable:true, + searchFilterable:true, + type:'select', + dicUrl: '/contract/contracttype/contractTypeOne', + props:{ + label:'typeName', + value:'id' + }, + rules: [{ + required: true, + message: "请选择合同类型", + trigger: "blur" + }], + minWidth:100 + }, + { + label: '采购编号', + prop: 'purchaseNo', + search:true, + minWidth:150, + }, + { + label: '是否招标', + prop: 'isBidding', + labelWidth:135, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择是否招标", + trigger: "blur" + }], + minWidth:50, + }, + { + label: '是否需要法律顾问', + prop: 'isLegalAdviser', + labelWidth:135, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择是否需要法律顾问", + trigger: "blur" + }], + minWidth:50 + }, + { + label: '是否涉及多个部门', + prop: 'isDepts', + labelWidth:135, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择是否涉及多个部门", + trigger: "blur" + }], + minWidth:50 + }, + { + label: '法律顾问意见', + prop: 'legalAdviserOpinion', + labelWidth:124, + // formslot: true, + hide:true, + }, + { + label: '是否经济类合同', + prop: 'isEconomy', + labelWidth:135, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择是否经济类合同", + trigger: "blur" + }], + minWidth:50 + }, + { + label: '是否按实/按月结算', + prop: 'isActPay', + labelWidth:135, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择是否按实/按月结算", + trigger: "blur" + }], + minWidth:50 + }, + { + label: '是否全校合同', + prop: 'isSchool', + labelWidth:135, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + search:true, + rules: [{ + required: true, + message: "请选择是否全校合同", + trigger: "blur" + }], + minWidth:50 + }, + { + label: '是否不定金额合同', + prop: 'isNotFixMoney', + labelWidth:135, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + search:true, + rules: [{ + required: true, + message: "请选择是否为不定金额合同", + trigger: "blur" + }], + minWidth:50 + }, + { + label: '质保期', + prop: 'warrantyPeriod', + labelWidth:124, + type:'select', + dicUrl:'/admin/dict/item/type/warranty_period', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择质保期", + trigger: "blur" + }], + minWidth:50 + }, + { + label: '合同开始时间', + prop: 'startTime', + labelWidth:124, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + message: "请选择开始时间", + trigger: "blur" + }], + minWidth:95 + }, + { + label: '合同结束时间', + prop: 'endTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + labelWidth:124, + rules: [{ + required: true, + message: "请选择结束时间", + trigger: "blur" + }], + minWidth:95 + }, + { + label: '支出金额', + prop: 'money', + labelWidth:124, + type:'number', + precision:2, + minRows:0, + minWidth:80 + }, + { + label: '收入金额', + prop: 'inMoney', + labelWidth:124, + type:'number', + precision:2, + minRows:0, + minWidth:80 + }, + { + label: '对方单位', + prop: 'supplierNameList', + labelWidth:124, + // search:true, + // searchFilterable:true, + formslot:true, + hide:true, + rules: [{ + required: true, + message: "请选择供应商", + trigger: "blur" + }], + }, + { + label:'对方单位', + prop:'supplierNames', + slot:true, + addDisplay:false, + editDisplay:false, + minWidth:250, + }, + { + label:'对方单位', + prop:'supplierName', + addDisplay:false, + editDisplay:false, + hide:true, + search:true, + searchFilterable:true, + type:'select', + dicUrl: '/contract/supplierinfo/getSupplierData', + props:{ + label:'supplierName', + value:'supplierName' + }, + }, + { + label:'文件数', + prop:'attachmentNum', + search:true, + slot:true, + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl: '/admin/dict/item/type/attachment_num', + props:{ + value:'value', + label:'label' + }, + minWidth:50 + }, + { + label:'状态', + prop:'contractStatus', + search:true, + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl: '/admin/dict/item/type/contract_status', + props:{ + value:'value', + label:'label' + }, + }, + { + label:'审核意见', + prop:'auditOpinion', + addDisplay:false, + editDisplay:false, + minWidth: 100, + }, + { + label: '付款分次', + prop: 'paymentType', + labelWidth:124, + hide:true, + formslot:true, + rules: [{ + required: true, + message: "请选择付款分次", + trigger: "blur" + }] + }, + { + label: '付款信息', + prop: 'paymentList', + labelWidth:124, + span:24, + hide:true, + formslot:true, + }, + { + label:'合同进度', + prop:'plan', + type:"number", + slot:true, + addDisplay:false, + editDisplay:false + }, + { + label:'合同级别', + prop:'contractLevel', + addDisplay:false, + editDisplay:false, + hide:true, + search:true, + type:'select', + dicUrl: '/admin/dict/item/type/contract_level', + props:{ + value:'value', + label:'label' + }, + } + + ] +} diff --git a/src/const/crud/contract/contractanalysis.js b/src/const/crud/contract/contractanalysis.js new file mode 100644 index 0000000..15938dd --- /dev/null +++ b/src/const/crud/contract/contractanalysis.js @@ -0,0 +1,318 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:700, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '起草部门', + prop: 'deptCode', + labelWidth:124, + searchFilterable:true, + search:true, + addDisplay:false, + editDisabled:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '合同编号', + prop: 'contractNo', + search:true, + labelWidth:124, + editDisabled:true, + }, + { + label: '合同名称', + prop: 'contractName', + search:true, + labelWidth:124, + }, + { + label: '合同类型', + prop: 'contractType', + labelWidth:124, + search:true, + filterable:true, + searchFilterable:true, + type:'select', + dicUrl: '/contract/contracttype/contractTypeTwo', + props:{ + label:'typeName', + value:'id' + }, + }, + { + label: '是否招标', + prop: 'isBidding', + labelWidth:135, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '是否需要法律顾问', + prop: 'isLegalAdviser', + labelWidth:135, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '法律顾问意见', + prop: 'legalAdviserOpinion', + labelWidth:135, + rules: [{ + required: true, + message: "请选择是否需要法律顾问", + trigger: "blur" + }] + }, + { + label: '是否涉及多个部门', + prop: 'isDepts', + labelWidth:135, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '是否经济类合同', + prop: 'isEconomy', + labelWidth:135, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '质保期', + prop: 'warrantyPeriod', + labelWidth:124, + }, + { + label: '合同开始时间', + prop: 'startTime', + labelWidth:124, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd' + }, + { + label: '合同结束时间', + prop: 'endTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + labelWidth:124 + }, + { + label: '合同金额', + prop: 'money', + labelWidth:124, + type:'number', + precision:2, + minRows:0, + }, + { + label: '对方单位', + prop: 'supplierId', + labelWidth:124, + search:true, + searchFilterable:true, + formslot:true, + type:'select', + dicUrl: '/contract/supplierinfo/getSupplierData', + props:{ + label:'supplierName', + value:'id' + } + }, + { + label:'状态', + prop:'contractStatus', + search:true, + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl: '/admin/dict/item/type/contract_status', + props:{ + value:'value', + label:'label' + }, + }, + ] +} +export const contractTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + expandAll: false, + tree: true, + showSummary:true, + refreshBtn: false, + showColumn: false, + filterBtn: false, + page: false, + dic: [], + sumColumnList: [ + { + label:'合计:', + name: 'sum', + type: 'sum', + decimals:1 + }, + { + name: 'nums', + type: 'sum' + }, + { + name: 'moneyTotal', + type: 'sum' + }], + column: [ + { + span: 24, + label: '合同类别', + prop: 'typeName', + }, + { + label: '合同数', + prop: 'nums', + span: 24, + }, + { + label: '总金额', + prop: 'moneyTotal', + span: 24, + }, + ] +} +export const supplierTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + expandAll: false, + tree: true, + showSummary:true, + refreshBtn: false, + showColumn: false, + filterBtn: false, + page: false, + dic: [], + sumColumnList: [ + { + label:'合计:', + name: 'sum', + type: 'sum', + decimals:1 + }, + { + name: 'nums', + type: 'sum' + }, + { + name: 'moneyTotal', + type: 'sum' + }], + column: [ + { + span: 24, + label: '对方单位', + prop: 'supplierName', + }, + { + label: '合同数', + prop: 'nums', + span: 24, + }, + { + label: '总金额', + prop: 'moneyTotal', + span: 24, + }, + ] +} diff --git a/src/const/crud/contract/contractattachment.js b/src/const/crud/contract/contractattachment.js new file mode 100644 index 0000000..4ad7ce3 --- /dev/null +++ b/src/const/crud/contract/contractattachment.js @@ -0,0 +1,119 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '合同编号', + prop: 'contractNo', + addDisabled:true, + // searchFilterable:true, + // filterable:true, + // type:'select', + // dicUrl: '/contract/contract/list', + // props:{ + // label:'contractNo', + // value:'contractNo' + // }, + rules: [{ + required: true, + message: "请选择合同", + trigger: "blur" + }] + }, + { + label:'合同名称', + prop:'contractName', + formslot: true, + addDisabled:true, + editDisabled:true, + }, + { + label: '附件类型', + prop: 'contractAttachmentType', + formslot: true, + type:'select', + dicUrl:'/admin/dict/item/type/attachment_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '附件名称', + prop: 'contractAttachmentName', + addDisplay:false, + editDisplay:false + }, + { + label: '附件', + prop: 'attachmentList', + hide:true, + type: 'upload', + loadText: '附件上传中,请稍等', + span: 24, + // limit:10, + action: '/contract/file/upload', + propsHttp: { + res: 'data', + name:'fileName', + }, + }, + ] +} diff --git a/src/const/crud/contract/contractbudget.js b/src/const/crud/contract/contractbudget.js new file mode 100644 index 0000000..6eb7e07 --- /dev/null +++ b/src/const/crud/contract/contractbudget.js @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:700, + dic: [], + column: [ + { + label: '起草部门', + prop: 'deptCode', + labelWidth:124, + searchFilterable:true, + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: "请选择起草部门", + trigger: "blur" + }] + }, + { + label: '合同类型', + prop: 'contractType', + labelWidth:124, + hide:true, + search:true, + filterable:true, + searchFilterable:true, + type:'select', + dicUrl: '/contract/contracttype/contractTypeOne', + props:{ + label:'typeName', + value:'id' + }, + }, + { + label: '待付款金额', + prop: 'moneyTotal', + addDisplay:false, + editDisplay:false, + }, + { + label: '合同数', + prop: 'nums', + addDisplay:false, + editDisplay:false, + }, + ] +} diff --git a/src/const/crud/contract/contractchange.js b/src/const/crud/contract/contractchange.js new file mode 100644 index 0000000..0305e2d --- /dev/null +++ b/src/const/crud/contract/contractchange.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '合同编号', + prop: 'contractNo' + }, + { + label: '变更类型', + prop: 'changeType', + type:'select', + dicUrl:'/admin/dict/item/type/contract_change_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '变更记录', + prop: 'changeContent' + }, + ] +} diff --git a/src/const/crud/contract/contractmodel.js b/src/const/crud/contract/contractmodel.js new file mode 100644 index 0000000..566c548 --- /dev/null +++ b/src/const/crud/contract/contractmodel.js @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '合同范文类型', + prop: 'contractModelType', + labelWidth:120, + search:true, + type:'select', + //看合同类别几级菜单,二级菜单就用2 + dicUrl: '/contract/contracttype/contractTypeOne', + // dicUrl: '/contract/contracttype/contractTypeTwo', + props:{ + label:'typeName', + value:'id' + }, + rules: [{ + required: true, + message: "请选择范文类型", + trigger: "blur" + }] + }, + { + label: '范文名称', + prop: 'contractModelName', + // addDisplay:false, + // editDisabled:true, + labelWidth:120, + rules: [{ + required: true, + message: "请输入范文名称", + trigger: "blur" + }] + }, + { + label: '附件', + prop: 'attachmentList', + labelWidth:120, + hide:true, + type: 'upload', + loadText: '附件上传中,请稍等', + span: 24, + limit:1, + action: '/contract/file/upload', + propsHttp: { + res: 'data', + name:'fileName', + }, + }, + ] +} diff --git a/src/const/crud/contract/contractpaymentinfo.js b/src/const/crud/contract/contractpaymentinfo.js new file mode 100644 index 0000000..a0cb02d --- /dev/null +++ b/src/const/crud/contract/contractpaymentinfo.js @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '合同编号', + prop: 'contractNo', + search:true + }, + { + label: '合同名称', + prop: 'contractName', + addDisplay:false, + editDisplay:false, + }, + { + label: '付款类型', + prop: 'paymentType', + type:'select', + dicUrl: '/admin/dict/item/type/payment_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '付款时间', + prop: 'paymentDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + }, + { + label: '付款金额', + prop: 'paymentMoney', + type:'number', + minRows:0, + precision:2, + }, + { + label: '付款状态', + prop: 'paymentStatus', + search:true, + type:'select', + dicUrl: '/admin/dict/item/type/payment_status', + props:{ + label:'label', + value:'value' + }, + }, + ] +} diff --git a/src/const/crud/contract/contractpeopledept.js b/src/const/crud/contract/contractpeopledept.js new file mode 100644 index 0000000..aa66899 --- /dev/null +++ b/src/const/crud/contract/contractpeopledept.js @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '用户账号', + prop: 'userName', + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + },rules: [{ + required: true, + trigger: 'blur', + message:"请选择用户账号" + }] + }, + { + label: '部门', + prop: 'deptCode', + type:'select', + search:true, + filterable:true, + searchFilterable:true, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + },rules: [{ + required: true, + message: '部门不能为空', + trigger: 'blur' + } + ] + } + ] +} diff --git a/src/const/crud/contract/contracttype.js b/src/const/crud/contract/contracttype.js new file mode 100644 index 0000000..8f47a13 --- /dev/null +++ b/src/const/crud/contract/contracttype.js @@ -0,0 +1,149 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +export const YES_OR_NO=[ + { + label:'否', + value:'0' + }, + { + label:'是', + value:'1' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + tree: true, + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '分类名称', + prop: 'typeName', + labelWidth:120, + rules: [{ + required: true, + message: "请填写分类名称", + trigger: "blur" + }] + }, + { + label: '是否需要付款', + prop: 'isPay', + // slot:true, + labelWidth:120, + type:'radio', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请填写分类名称", + trigger: "blur" + }] + }, + { + label: '是否需要质保', + prop: 'isZb', + // slot:true, + labelWidth:120, + type:'radio', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请填写是否需要质保", + trigger: "blur" + }] + }, + { + label: '是否有付款凭证', + prop: 'isPz', + // slot:true, + labelWidth:120, + type:'radio', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请填写是否有付款凭证", + trigger: "blur" + }] + }, + { + label: '上级菜单', + prop: 'parentId', + labelWidth:120, + hide:true, + addDisplay:false, + editDisplay:false, + type:'tree', + // search:true, + dicUrl: '/contract/contracttype/contractTypeOne', + props:{ + label:'typeName', + value:'id' + }, + }, + ] +} diff --git a/src/const/crud/contract/contractwait.js b/src/const/crud/contract/contractwait.js new file mode 100644 index 0000000..b13dd91 --- /dev/null +++ b/src/const/crud/contract/contractwait.js @@ -0,0 +1,115 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + // menu:false, + dic: [], + column: [ + { + label: '合同编号', + prop: 'contractNo', + search:true + }, + { + label: '合同名称', + prop: 'contractName', + addDisplay:false, + editDisplay:false, + }, + { + label: '付款类型', + prop: 'paymentType', + type:'select', + dicUrl: '/admin/dict/item/type/payment_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '付款时间', + prop: 'paymentDate', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + }, + { + label: '付款金额', + prop: 'paymentMoney', + addDisplay:false, + editDisplay:false, + }, + { + label: '付款单位', + prop: 'supplierName', + search:true, + }, + { + label: '付款状态', + prop: 'paymentStatus', + // search:true, + type:'select', + dicUrl: '/admin/dict/item/type/payment_status', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '合同类型', + prop: 'contractType', + labelWidth:124, + hide:true, + search:true, + filterable:true, + searchFilterable:true, + type:'select', + dicUrl: '/contract/contracttype/contractTypeOne', + props:{ + label:'typeName', + value:'id' + }, + }, + { + label: '开始日期', + prop: 'startDate', + type:'date', + // search:true, + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + hide:true + }, + { + label: '结束日期', + prop: 'endDate', + type:'date', + // search:true, + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + hide:true + }, + ] +} diff --git a/src/const/crud/contract/supplierinfo.js b/src/const/crud/contract/supplierinfo.js new file mode 100644 index 0000000..e5b4d31 --- /dev/null +++ b/src/const/crud/contract/supplierinfo.js @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '公司名称', + prop: 'supplierName', + search:true, + rules: [{ + required: true, + message: "请输入公司名称", + trigger: "blur" + }] + }, + { + label: '社会统一信用代码', + prop: 'creditCode', + search:true + }, + { + label: '公司法人', + prop: 'operName', + search:true + }, + { + label: '成立时间', + prop: 'startDate' + }, + { + label: '注册码', + prop: 'supplierNo' + }, + { + label: '公司状态', + prop: 'status' + }, + ] +} diff --git a/src/const/crud/daemon/execution-log.js b/src/const/crud/daemon/execution-log.js new file mode 100644 index 0000000..a48c4b9 --- /dev/null +++ b/src/const/crud/daemon/execution-log.js @@ -0,0 +1,82 @@ +const DIC = { + isSuccess: [{ + label: '成功', + value: 1 + }, + { + label: '失败', + value: 0 + } + ] +} + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + viewBtn: true, + filterBtn:false, + column: [ + { + label: 'ID', + prop: 'id', + hide: true + }, + { + label: '任务名称', + prop: 'jobName' + }, + { + label: '任务ID', + prop: 'taskId', + hide: true, + overHidden: true + }, + { + label: '主机名', + prop: 'hostname', + hide: true + }, + { + label: 'IP', + prop: 'ip' + }, + { + width: 80, + label: '分片项', + prop: 'shardingItem' + }, + { + label: '执行源', + prop: 'executionSource', + hide: true + }, + { + label: '失败原因', + prop: 'failureCause', + hide: true + }, + { + width: 100, + label: '执行结果', + prop: 'isSuccess', + type: 'select', + dicData: DIC.isSuccess, + }, + { + label: '开始时间', + prop: 'startTime', + hide: true + }, + { + label: '完成时间', + prop: 'completeTime' + }, + ] +} diff --git a/src/const/crud/daemon/status-trace-log.js b/src/const/crud/daemon/status-trace-log.js new file mode 100644 index 0000000..1ab0487 --- /dev/null +++ b/src/const/crud/daemon/status-trace-log.js @@ -0,0 +1,87 @@ +const DIC = { + state: [{ + label: '准备中', + value: 'TASK_STAGING' + }, + { + label: '执行中', + value: 'TASK_RUNNING' + }, { + label: '已经完成', + value: 'TASK_FINISHED' + } + ] +} + +export const tableOption = { + border: true, + index: true, + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + viewBtn: true, + filterBtn:false, + column: [{ + label: 'ID', + prop: 'id', + hide: true + }, + { + label: '作业名称', + prop: 'jobName', + search: true + }, + { + label: '原任务', + prop: 'originalTaskId', + hide: true, + width: 100 + }, + { + label: '任务ID', + prop: 'taskId', + hide: true + }, + { + label: '服务器IP', + prop: 'slaveId' + }, + { + label: '资源', + prop: 'source', + hide: true + }, + { + label: '执行类型', + prop: 'executionType', + hide: true + }, + { + width: 100, + label: '分片项', + prop: 'shardingItem' + }, + { + width: 100, + label: '状态', + prop: 'state', + type: 'select', + dicData: DIC.state, + search: true + }, + { + label: '消息', + prop: 'message', + width: 100, + overHidden: true, + hide: true + }, + { + label: '创建时间', + prop: 'creationTime' + } + ] +} diff --git a/src/const/crud/daemon/sys-job-log.js b/src/const/crud/daemon/sys-job-log.js new file mode 100644 index 0000000..2dd2b19 --- /dev/null +++ b/src/const/crud/daemon/sys-job-log.js @@ -0,0 +1,111 @@ +export const tableOption = { + border: true, + index: true, + menu: false, + page: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'right', + align: 'center', + filterBtn: false, + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: 'id', + prop: 'jobLogId', + hide: true, + showColumn:false, + display:false + }, + { + label: '任务id', + prop: 'jobId', + hide: true, + }, + { + label: '任务名称', + prop: 'jobName', + search: true, + }, + { + label: '任务组名', + prop: 'jobGroup', + search: true, + }, + { + label: '组内顺序', + prop: 'jobOrder', + hide: true + }, + { + label: '类型', + prop: 'jobType', + type: + 'select', + dicUrl: + '/admin/dict/type/job_type', + dicMethod: + 'get', + width: 100, + }, + { + label: '执行文件', + prop: 'className', + overHidden: true, + }, + { + label: '执行方法', + prop: 'methodName', + overHidden: true, + width: 120, + }, + { + label: '执行参数值', + prop: 'methodParamsValue', + width: 100, + overHidden: true, + }, + { + label: 'cron表达式', + prop: 'cronExpression', + width: 100, + overHidden: true, + }, + { + label: '状态', + prop: 'jobLogStatus', + search: true, + type: + 'select', + dicUrl: + '/admin/dict/type/job_execute_status', + dicMethod: + 'get', + slot: true + }, + { + label: '状态描述', + prop: 'jobMessage' + }, + { + label: '执行时间(ms)', + prop: 'executeTime', + width: 120, + }, + { + label: '异常信息', + prop: 'exceptionInfo', + overHidden: true, + }, + { + label: '开始时间', + prop: 'createTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + width: 160, + } + ] +}; diff --git a/src/const/crud/daemon/sys-job.js b/src/const/crud/daemon/sys-job.js new file mode 100644 index 0000000..af397a4 --- /dev/null +++ b/src/const/crud/daemon/sys-job.js @@ -0,0 +1,289 @@ +export const tableOption = { + border: true, + card: true, + index: true, + indexLabel: '序号', + stripe: true, + menu: true, + menuAlign: 'center', + filterBtn: false, + menuWidth: 300, + align: 'center', + viewBtn: true, + editBtn: true, + delBtn: true, + addBtn: true, + dialogWidth: '85%', + labelWidth: 130, + dialogHeight: '78%', + column: [ + { + label: 'jobId', + prop: 'jobId', + hide: true, + addDisplay: false, + editDisplay: false, + rules: + [{ + required: true, + message: '请输入任务类型', + trigger: 'blur' + }] + }, + { + label: '任务名称', + prop: 'jobName', + search: true, + placeholder: "任务名称", + rules: [{ + required: true, + message: '请输入任务名称', + trigger: 'blur' + }], + editDisabled: true + }, + { + label: '任务组名', + prop: + 'jobGroup', + search: + true, + rules: + [{ + required: true, + message: '请输入任务组名', + trigger: 'blur' + }], + editDisabled: true + }, + { + label: '任务状态', + prop: 'jobStatus', + type: 'select', + dicUrl: '/admin/dict/item/type/job_status', + dicMethod: 'get', + addDisplay: false, + search: + true, + + } + , + { + label: '执行状态', + prop: 'jobExecuteStatus', + type: 'select', + dicUrl: '/admin/dict/item/type/job_execute_status', + dicMethod: 'get', + addDisplay: false, + search: true, + + }, + { + label: '首次执行时间', + prop: 'startTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + width: 160, + addDisplay: false, + editDisabled: true + }, + { + label: '上次执行时间', + prop: 'previousTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + addDisplay: false, + editDisabled: true + }, + { + label: '下次执行时间', + prop: 'nextTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + addDisplay: false, + editDisabled: true + }, + { + label: '组内顺序', + prop: 'jobOrder', + type: 'silder', + step: 1, + min:1, + max: 9 + }, + { + label: '类型', + prop: 'jobType', + type: 'select', + dicUrl: '/admin/dict/item/type/job_type', + dicMethod: 'get', + width: 100, + rules: + [{ + required: true, + message: '请输入任务类型', + trigger: 'blur' + }] + }, { + label: '执行路径', + prop: 'executePath', + overHidden: true + }, + { + label: '执行文件', + prop: 'className', + overHidden: true + }, { + label: '执行方法', + prop: 'methodName', + overHidden: true, + }, { + label: '执行参数值', + prop: 'methodParamsValue', + width: 100, + overHidden: true + }, { + label: 'cron表达式', + prop: 'cronExpression', + width: 100, + formslot: true, + rules: + [{ + required: true, + max: 200, + message: '请输入cron表达式', + trigger: 'blur' + }] + }, + { + label: '错失执行策略', + prop: 'misfirePolicy', + type: 'select', + dicUrl: '/admin/dict/item/type/misfire_policy', + dicMethod: 'get', + rules: + [{ + required: true, + message: '请输入任务错失执行策略', + trigger: 'blur' + }] + }, { + label: '备注信息', + prop: 'remark', + type: 'textarea', + span: 20, + overHidden: true, + rules: [{ + max: 500, + message: '备注信息不得超过500', + trigger: 'blur' + }] + } + ] +}; + +export const tableLogOption = { + border: true, + index: false, + menu: false, + page: true, + indexLabel: '序号', + stripe: true, + filterBtn: false, + editBtn: false, + delBtn: false, + addBtn: false, + columnBtn: false, + column: [ + { + label: 'id', + prop: 'jobLogId', + hide: true + }, + { + label: '任务id', + prop: 'jobId', + hide: true + }, + { + label: '任务名称', + prop: 'jobName' + }, + { + label: '任务组名', + prop: 'jobGroup' + }, + { + label: '状态', + prop: 'jobLogStatus', + type: 'select', + dicUrl: '/admin/dict/item/type/job_execute_status', + dicMethod: 'get', + slot: true, + }, + { + label: '组内顺序', + prop: 'jobOrder', + hide: true + }, + { + label: '类型', + prop: 'jobType', + type: 'select', + dicUrl: '/admin/dict/item/type/job_type', + dicMethod: 'get', + }, + { + label: '执行路径', + prop: 'executePath', + overHidden: true + }, + { + label: '执行文件', + prop: 'className', + overHidden: true + }, + { + label: '执行方法', + prop: 'methodName', + overHidden: true, + width: 120 + }, + { + label: '执行参数值', + prop: 'methodParamsValue', + width: 100, + overHidden: true + }, + { + label: 'cron表达式', + prop: 'cronExpression', + width: 100, + overHidden: true + }, + { + label: '状态描述', + prop: 'jobMessage' + }, + { + label: '执行时间(ms)', + prop: 'executeTime', + width: 120 + }, + { + label: '异常信息', + prop: 'exceptionInfo', + overHidden: true + }, + { + label: '开始时间', + prop: 'createTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss' + } + ] +}; diff --git a/src/const/crud/ems/competingcompetition.js b/src/const/crud/ems/competingcompetition.js new file mode 100644 index 0000000..ac46bcb --- /dev/null +++ b/src/const/crud/ems/competingcompetition.js @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '赛事名称', + prop: 'competitionName' + }, + { + label: '主办单位', + prop: 'organizer' + }, + { + label: '通知文件', + prop: 'notificationFile' + }, + { + label: '通知文件名称', + prop: 'notificationFileName' + }, + ] +} diff --git a/src/const/crud/ems/competingprojects.js b/src/const/crud/ems/competingprojects.js new file mode 100644 index 0000000..f356ad8 --- /dev/null +++ b/src/const/crud/ems/competingprojects.js @@ -0,0 +1,124 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + selection:true, + addBtn: false, + dic: [], + column: [ + { + label: '比赛年份', + prop: 'competingYear', + search:true, + type:'year', + valueFormat:'yyyy', + rules: [{ + required: true, + message: "请选择比赛年份", + trigger: "blur" + }] + }, + { + label: '赛事名称', + prop: 'name', + search:true, + rules: [{ + required: true, + message: "请填写赛事名称", + trigger: "blur" + }] + }, + { + label: '参赛项目', + prop: 'projectName', + span:24, + rules: [{ + required: true, + message: "请填写参赛项目名称", + trigger: "blur" + }] + }, + { + label: '比赛开始时间', + prop: 'competingTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + editDisplay:false, + addDisplay:false, + }, + { + label: '比赛结束时间', + prop: 'competingEndTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + editDisplay:false, + addDisplay:false, + }, + { + label: '比赛时间', + span:24, + prop: 'competingTimes', + type: 'daterange', + hide:true, + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + startPlaceholder: '开始时间', + endPlaceholder: '结束时间', + rules: [{ + required: true, + message: "请选择比赛时间范围", + trigger: "blur" + }] + }, + { + label: '主办单位', + prop: 'organizer', + span:24, + rules: [{ + required: true, + message: "请填写主办单位", + trigger: "blur" + }] + }, + { + label: '通知文件', + prop: 'notificationFile', + span:24, + hide:true, + slot:true, + formslot:true + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2 + + }, + ] +} diff --git a/src/const/crud/ems/competingprojectsapplication.js b/src/const/crud/ems/competingprojectsapplication.js new file mode 100644 index 0000000..b4b8e5d --- /dev/null +++ b/src/const/crud/ems/competingprojectsapplication.js @@ -0,0 +1,272 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const DIC = { + state: [{ + label: '待审核', + value: '0' + }, + { + label: '通过', + value: '1' + }, { + label: '驳回', + value: '2' + } + ], + isAward: [{ + label: '否', + value: '0' + }, + { + label: '是', + value: '1' + } + ], + competingType: [{ + label: '单人', + value: '0' + }, + { + label: '多人', + value: '1' + } + ], +} +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:700, + dic: [], + column: [ + { + label: '所在部门', + prop: 'deptCode', + type:'select', + search:true, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: "请选择所在部门", + trigger: "blur" + }] + }, + { + label: '比赛项目', + prop: 'competingName', + editDisplay: false, + addDisplay: false + }, + { + label: '比赛项目', + prop: 'competingIdVal', + type:'select', + dicUrl: '/ems/competingprojects/list', + props: { + label: 'name', + value: 'id' + }, + hide: true, + search: true, + editDisplay: false, + addDisplay: false + }, + { + label: '比赛项目', + prop: 'competingId', + hide: true, + formslot:true, + rules: [{ + required: true, + message: "请选择竞赛项目", + trigger: "blur" + }] + }, + { + label: '竞赛类型', + prop: 'competingType', + type: 'select', + dicData: DIC.competingType, + search: true, + rules: [{ + required: true, + message: "请选择竞赛类型", + trigger: "blur" + }] + + }, + { + label: '完成度', + prop: 'progress', + formslot:true, + slot:true, + addDisplay: false, + editDisplay: false, + }, + { + label: '组别', + prop: 'groupName', + editDisplay: false, + addDisplay: false + }, + { + label: '组别', + prop: 'groupId', + formslot:true, + hide: true, + rules: [{ + required: true, + message: "请选择组别", + trigger: "blur" + }] + }, + { + label: '级别', + prop: 'levelName', + editDisplay: false, + addDisplay: false + }, + { + label: '级别', + prop: 'levelId', + formslot:true, + hide:true, + rules: [{ + required: true, + message: "请选择级别", + trigger: "blur" + }] + }, + { + label: '奖项', + prop: 'prizeName', + editDisplay: false, + addDisplay: false + }, + + + + { + label: '指导教师', + prop: 'teacherName', + editDisplay: false, + addDisplay: false + }, + { + label: '指导教师', + prop: 'teacherNos', + type:'select', + filterable:true, + multiple:true, + props:{ + label:'realName', + value:'teacherNo' + }, + dicUrl:'/professional/teacherbase/queryTeacherBase', + hide:true, + rules: [{ + required: true, + message: "请填写指导教师", + trigger: "blur" + }] + }, + { + label: '参赛学生', + prop: 'competeStuNo', + span:24, + formslot:true, + hide:true, + }, + + + { + label: '奖项', + prop: 'prizeId', + formslot:true, + hide: true, + }, + + { + label: '是否获奖', + prop: 'isAward', + type: 'select', + dicData: DIC.isAward, + search: true + + }, + { + label: '获奖学生', + prop: 'realName', + editDisplay: false, + addDisplay: false + }, + { + label: '获奖学生', + prop: 'stuNo', + formslot:true, + hide:true + }, + + + { + label: '获奖时间', + prop: 'certificateTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd HH:mm:ss' + }, + { + label: '获奖证书', + prop: 'certificateUrl', + hide:true, + formslot:true + }, + { + label: '状态', + prop: 'state', + type: 'select', + dicData: DIC.state, + search: true, + addDisplay:false, + editDisplay:false, + }, + { + label: '审核备注', + prop: 'examRemark', + addDisplay:false, + editDisplay:false, + }, + + { + label: '备注', + type:'textarea', + row:true, + span:24, + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/ems/competingprojectsgroup.js b/src/const/crud/ems/competingprojectsgroup.js new file mode 100644 index 0000000..b1bd757 --- /dev/null +++ b/src/const/crud/ems/competingprojectsgroup.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '组别名称', + prop: 'name', + span:24, + search:true, + rules: [{ + required: true, + message: "请填写组别名称", + trigger: "blur" + }] + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + }, + ] +} diff --git a/src/const/crud/ems/competingprojectslevel.js b/src/const/crud/ems/competingprojectslevel.js new file mode 100644 index 0000000..7123439 --- /dev/null +++ b/src/const/crud/ems/competingprojectslevel.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '级别名称', + prop: 'name', + span: 24, + search:true, + rules: [{ + required: true, + message: "请填写级别名称", + trigger: "blur" + }] + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + }, + ] +} diff --git a/src/const/crud/ems/competingprojectsprize.js b/src/const/crud/ems/competingprojectsprize.js new file mode 100644 index 0000000..85ab98b --- /dev/null +++ b/src/const/crud/ems/competingprojectsprize.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '奖项名称', + prop: 'name', + span: 24, + rules: [{ + required: true, + message: "请填写奖项名称", + trigger: "blur" + }] + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + }, + ] +} diff --git a/src/const/crud/ems/course.js b/src/const/crud/ems/course.js new file mode 100644 index 0000000..92bb623 --- /dev/null +++ b/src/const/crud/ems/course.js @@ -0,0 +1,291 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '课程名称', + prop: 'courseName', + span: 12, + labelWidth: 120, + search:true, + rules: [{ + required: true, + message: "请填写课程名称", + trigger: "blur" + }] + }, + { + label: '课程代码', + prop: 'courseCode', + span: 12, + labelWidth: 120, + search:true, + rules: [{ + required: true, + message: "请填写课程代码", + trigger: "blur" + }] + }, + { + label: '课程类型', + prop: 'courseType', + span: 12, + labelWidth: 120, + search:true, + type:'select', + dicUrl: '/ems/coursetype/list', + props: { + label: 'courseTypeName', + value: 'id' + }, + rules: [{ + required: true, + message: "请填写课程类型", + trigger: "blur" + }] + }, + { + label:'课程性质', + prop:'courseProperties', + span:12, + labelWidth:120, + search:true, + type:'select', + dicUrl:'/ems/courseproperties/list', + props:{ + label:'propertiesName', + value:'id' + }, + rules: [{ + required: true, + message: "请填写课程性质", + trigger: "blur" + }] + }, + { + label: '考核方式', + prop: 'courseEvaluationMode', + span: 12, + labelWidth: 120, + search:true, + type:'select', + dicUrl: '/ems/courseevaluationmode/list', + props: { + label: 'courseEvaluationModeName', + value: 'id' + }, + rules: [{ + required: true, + message: "请填写考核方式", + trigger: "blur" + }] + }, + { + label: '学分', + prop: 'courseScore', + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写学分", + trigger: "blur" + }] + }, + // { + // label: '开课部门', + // prop: 'courseDeptcode', + // span: 12, + // labelWidth: 120, + // type:'select', + // hide: true, + // rules: [{ + // required: true, + // message: "请填写开课部门", + // trigger: "blur" + // }] + // }, + { + label: '课程类别', + prop: 'courseCategory', + span: 12, + labelWidth: 120, + search:true, + type:'select', + dicUrl: '/ems/coursecategory/list', + props: { + label: 'courseCategoryName', + value: 'id' + }, + rules: [{ + required: true, + message: "请填写课程类别", + trigger: "blur" + }] + }, + { + label: '课时', + prop: 'courseTeachUnit', + span: 12, + labelWidth: 120, + type:'number', + rules: [{ + required: true, + message: "请填写课时", + trigger: "blur" + }] + }, + { + label: '周课时', + prop: 'weekUnit', + span: 12, + labelWidth: 120, + type:'number', + rules: [{ + required: true, + message: "请填写周课时", + trigger: "blur" + }] + }, + + + // { + // label: '讲课学时', + // prop: 'courseSpeakUnit', + // span: 12, + // labelWidth: 120, + // hide:true, + // type:'number', + // rules: [{ + // required: true, + // message: "请填写讲课学时", + // trigger: "blur" + // }] + // }, + // { + // label: '上机学时', + // prop: 'courseMachineUnit', + // span: 12, + // labelWidth: 120, + // hide:true, + // type:'number', + // rules: [{ + // required: true, + // message: "请填写上机学时", + // trigger: "blur" + // }] + // }, + // { + // label: '课外学时', + // prop: 'courseOuterUnit', + // span: 12, + // labelWidth: 120, + // hide:true, + // type:'number', + // rules: [{ + // required: true, + // message: "请填写课外学时", + // trigger: "blur" + // }] + // }, + // { + // label: '讨论学时', + // prop: 'courseAskUnit', + // span: 12, + // labelWidth: 120, + // hide:true, + // type:'number', + // rules: [{ + // required: true, + // message: "请填写讨论学时", + // trigger: "blur" + // }] + // }, + // { + // label: '备注', + // prop: 'remarks', + // type:"textarea", + // span: 24, + // labelWidth: 120 + // }, + ] +} diff --git a/src/const/crud/ems/coursecategory.js b/src/const/crud/ems/coursecategory.js new file mode 100644 index 0000000..42b2943 --- /dev/null +++ b/src/const/crud/ems/coursecategory.js @@ -0,0 +1,131 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '类别名称', + prop: 'courseCategoryName', + span: 24, + labelWidth: 140, + rules: [{ + required: true, + message: "请填写类别名称", + trigger: "blur" + }], + search:true, + }, + { + label: '学分是否可替换', + prop: 'scoreReplaceAble', + type:"select", + dicUrl: '/admin/dict/item/type/yes_no', + search:true, + span: 24, + labelWidth: 140, + rules: [{ + required: true, + message: "请选择学分是否可替换", + trigger: "blur" + }] + }, + { + label: '排序', + prop: 'sort', + span: 24, + labelWidth: 120, + type:"number", + rules: [{ + required: true, + message: "请填写排序", + trigger: "blur" + }] + }, + // { + // label: '备注', + // prop: 'remarks', + // type:"textarea", + // span: 24, + // labelWidth: 140 + // }, + ] +} diff --git a/src/const/crud/ems/courseevaluationmode.js b/src/const/crud/ems/courseevaluationmode.js new file mode 100644 index 0000000..384cd81 --- /dev/null +++ b/src/const/crud/ems/courseevaluationmode.js @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '考核方式名称', + prop: 'courseEvaluationModeName', + span: 24, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写考核方式名称", + trigger: "blur" + }] + }, + { + label: '备注', + prop: 'remarks', + type:"textarea", + span: 24, + labelWidth: 120 + }, + ] +} diff --git a/src/const/crud/ems/coursemakeup.js b/src/const/crud/ems/coursemakeup.js new file mode 100755 index 0000000..2a6f93c --- /dev/null +++ b/src/const/crud/ems/coursemakeup.js @@ -0,0 +1,229 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + refreshBtn:false, + columnBtn:false, + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '学年', + // prop: 'schoolYear' + // }, + // { + // label: '学期', + // prop: 'schoolTerm' + // }, + { + label: '班号', + prop: 'classNo' + }, + { + label: '学年', + prop: 'schoolYear', + hide:true + }, + { + label: '学期', + prop: 'schoolTerm', + hide:true + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + // { + // label: '班主任姓名', + // prop: 'classMasterName' + // }, + // { + // label: '二级学院编码', + // prop: 'deptCode' + // }, + // { + // label: '二级学院名称', + // prop: 'deptName' + // }, + // { + // label: '课程代码', + // prop: 'courseCode' + // }, + { + label: '课程名称', + prop: 'courseName' + }, + // { + // label: '课程学分', + // prop: 'courseScore' + // }, + // { + // label: '开课部门编码', + // prop: 'openDeptCode' + // }, + // { + // label: '开课部门名称', + // prop: 'openDeptName' + // }, + { + label: '平时成绩(20%)', + prop: 'normalScore', + }, + { + label: '期中成绩(30%)', + prop: 'midtermScore', + }, + { + label: '期末成绩(50%)', + prop: 'finalScore', + }, + // { + // label: '总评成绩1', + // prop: 'makeUpScore' + // }, + // { + // label: '指定教师', + // prop: 'teacherNo' + // }, + // { + // label: '指定教师名称', + // prop: 'teacherRealName' + // }, + // { + // label: '是否异常', + // prop: 'abnormal' + // }, + // { + // label: '异常类型 0: 正常 1 作弊 2免修 3取消资格 4旷考 5缓考', + // prop: 'abnormalType' + // }, + // { + // label: '0:百分制 1:等级制', + // prop: 'pointSystem' + // }, + // { + // label: '补考成绩等级 1:优秀 2:良好 3:合格 4 不合格 ', + // prop: 'makeUpScoreLevel' + // }, + { + label: '总评成绩', + prop: 'totalMark' + }, + + // { + // label: '开课部门编码', + // prop: 'openDeptCode', + // hide:true + // }, + // { + // label: '开课部门名称', + // prop: 'openDeptName', + // hide:true + // }, + + // { + // label: '指定教师', + // prop: 'teacherNo', + // hide:true + // }, + // { + // label: '指定教师名称', + // prop: 'teacherRealName', + // hide:true + // }, + // { + // label: '是否异常', + // prop: 'abnormal', + // hide:true, + // }, + // { + // label: '异常类型 0: 正常 1 作弊 2免修 3取消资格 4旷考 5缓考', + // prop: 'abnormalType', + // hide:true, + // }, + // { + // label: '0:百分制 1:等级制', + // prop: 'pointSystem', + // hide:true, + // }, + // { + // label: '补考成绩等级 1:优秀 2:良好 3:合格 4 不合格 ', + // prop: 'makeUpScoreLevel', + // hide:true, + // }, + { + label: '补考成绩', + prop: 'makeUpScore', + slot:true + }, + // { + // label: '异常类型', + // prop: 'abnormalType', + // slot:true + // }, + { + label: '状态', + prop: 'locked', + type: 'select', + dicData:global.LOCK_STATUS, + props:{ + value:'value', + label:'label' + } + } + ] +} diff --git a/src/const/crud/ems/courseproperties.js b/src/const/crud/ems/courseproperties.js new file mode 100644 index 0000000..2cfc5fa --- /dev/null +++ b/src/const/crud/ems/courseproperties.js @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '性质名称', + prop: 'propertiesName' + }, + { + label: '性质代码', + prop: 'propertiesCode' + }, + { + label: '排序', + prop: 'sort', + type:'number', + rules: [{ + required: true, + message: "请填写排序", + trigger: "blur" + }] + }, + // { + // label: '备注', + // prop: 'remarks', + // type:"textarea", + // span: 24, + // labelWidth: 120 + // }, + ] +} diff --git a/src/const/crud/ems/courserebuild.js b/src/const/crud/ems/courserebuild.js new file mode 100755 index 0000000..ca68595 --- /dev/null +++ b/src/const/crud/ems/courserebuild.js @@ -0,0 +1,90 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + refreshBtn:false, + columnBtn:false, + column: [ + { + label: '班号', + prop: 'classNo' + }, + { + label: '学年', + prop: 'schoolYear', + hide:true + }, + { + label: '学期', + prop: 'schoolTerm', + hide:true + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '课程名称', + prop: 'courseName' + }, + { + label: '平时成绩(20%)', + prop: 'normalScore', + }, + { + label: '期中成绩(30%)', + prop: 'midtermScore', + }, + { + label: '期末成绩(50%)', + prop: 'finalScore', + }, + { + label: '重修成绩', + prop: 'rebuildScore', + slot:true + }, + { + label: '状态', + prop: 'locked', + type: 'select', + dicData:global.LOCK_STATUS, + props:{ + value:'value', + label:'label' + } + }, + // { + // label: '异常类型', + // prop: 'abnormalType', + // slot:true + // }, + ] +} diff --git a/src/const/crud/ems/coursetype.js b/src/const/crud/ems/coursetype.js new file mode 100644 index 0000000..ff681e2 --- /dev/null +++ b/src/const/crud/ems/coursetype.js @@ -0,0 +1,126 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy,', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '类型名称', + prop: 'courseTypeName', + span: 24, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写类型名称", + trigger: "blur" + }] + }, + { + label: '类型代码', + prop: 'courseTypeCode', + span: 24, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写类型代码", + trigger: "blur" + }] + }, + { + label: '排序', + prop: 'sort', + span: 24, + labelWidth: 120, + type:"number", + rules: [{ + required: true, + message: "请填写排序", + trigger: "blur" + }] + }, + // { + // label: '备注', + // prop: 'remarks', + // type:"textarea", + // span: 24, + // labelWidth: 120 + // }, + ] +} diff --git a/src/const/crud/ems/emsteacherevaluatefeedback.js b/src/const/crud/ems/emsteacherevaluatefeedback.js new file mode 100644 index 0000000..5f0468b --- /dev/null +++ b/src/const/crud/ems/emsteacherevaluatefeedback.js @@ -0,0 +1,108 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:"year", + value:"year" + }, + search:true, + type:'select' + }, + { + label: '学期', + prop: 'schoolTerm', + dicData:global.LEARN_TERM, + props:{ + label:"label", + value:"value" + }, + search:true, + type:'select' + }, + { + label: '工号', + prop: 'teacherNo' + }, + { + label: '姓名', + prop: 'teacherName' + }, + { + label: '行政部门', + prop: 'teacherDeptName', + minWidth: 100 + }, + { + label: '教学部门', + prop: 'deptName', + minWidth: 100 + }, + { + label: '课程名称', + prop: 'courseName', + minWidth: 200 + }, + { + label: '班级', + prop: 'className', + minWidth: 120 + }, + { + label: "分值", + prop: "score" + }, + { + label: '原因', + prop: 'reason', + slot:true + }, + { + label: '措施', + prop: 'measure', + slot:true + }, + { + label: '驳回理由', + prop: 'backReason', + slot:true + }, + { + label: '状态', + prop: 'status', + dicData:global.TEACHER_EVALUATE_STATUS, + type:'select', + search:true + } + ] +} diff --git a/src/const/crud/ems/emsteacherevaluateplan.js b/src/const/crud/ems/emsteacherevaluateplan.js new file mode 100644 index 0000000..8f90391 --- /dev/null +++ b/src/const/crud/ems/emsteacherevaluateplan.js @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '', + prop: 'schoolYear' + }, + { + label: '', + prop: 'schoolTerm' + }, + { + label: '', + prop: 'startTime' + }, + { + label: '', + prop: 'endTime' + }, + ] +} diff --git a/src/const/crud/ems/emsteacherevaluaterecord.js b/src/const/crud/ems/emsteacherevaluaterecord.js new file mode 100644 index 0000000..f08f95b --- /dev/null +++ b/src/const/crud/ems/emsteacherevaluaterecord.js @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + menu:false, + column: [ + { + label: '学年', + prop: 'schoolYear', + search:true + }, + { + label: '学期', + prop: 'schoolTerm', + search:true + }, + // { + // label: '学院', + // prop: 'deptName' + // }, + { + label: '学号', + prop: 'stuNo', + search:true + }, + { + label: '姓名', + prop: 'stuRealName', + search:true + }, + { + label: '班号', + prop: 'classNo' + }, + { + label: '课程名称', + prop: 'courseName' + }, + { + label: '教师工号', + prop: 'teacherNo' + }, + { + label: '专业名称', + prop: 'majorName' + }, + { + label: '打分值', + prop: 'score' + }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '创建时间', + prop: 'createTime' + }, + + ] +} diff --git a/src/const/crud/ems/emsteacherevaluatestandard.js b/src/const/crud/ems/emsteacherevaluatestandard.js new file mode 100644 index 0000000..299e70e --- /dev/null +++ b/src/const/crud/ems/emsteacherevaluatestandard.js @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '评价标准', + prop: 'topic' + }, + { + label: '分值', + prop: 'score', + type:'number' + }, + { + label: '排序', + prop: 'sort', + type:'number', + placeHolder:"11" + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '创建时间', + prop: 'createTime', + display:false + }, + ] +} diff --git a/src/const/crud/ems/majorclassrelation.js b/src/const/crud/ems/majorclassrelation.js new file mode 100644 index 0000000..2c618dd --- /dev/null +++ b/src/const/crud/ems/majorclassrelation.js @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOptionRelation = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + menu:false, + indexWidth:10, + height:500, + highlightCurrentRow:true, + column: [ + + { + label: '专业代码', + prop: 'majorCode', + search:true, + }, + { + label: '专业名称', + prop: 'majorName', + search:true, + }, + { + label: '学制', + prop: 'majorYears', + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/basic_major_years', + + }, + { + label: '年级', + prop: 'classGrade', + search:true, + type:'select', + filterable:true, + searchFilterable:true, + dicUrl:'/admin/dict/item/type/basic_class_info_grade', + }, + { + label: '班级', + prop: 'classNames' + }, + { + label: '班级数量', + prop: 'classNum', + } + + ] +} diff --git a/src/const/crud/ems/optionalcourseapply.js b/src/const/crud/ems/optionalcourseapply.js new file mode 100755 index 0000000..1139868 --- /dev/null +++ b/src/const/crud/ems/optionalcourseapply.js @@ -0,0 +1,215 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:500, + column: [ + { + label: '学年', + prop: 'schoolYear', + type:'select', + search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + search:true, + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"选择学期" + }] + }, + // { + // label: '学年学期', + // prop: 'yearStr', + // type:'cascader', + // filterable:true, + // hide:true, + // span:24, + // dicUrl:'/basic/basicholiday/getAllYearAndTerm', + // rules: [ + // { + // required: true, + // trigger: 'blur', + // message:"选择学年学期" + // } + // ] + // }, + { + label: '开课部门', + prop: 'openDeptCode', + hide:true, + formslot:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择开课部门" + } + ] + }, + { + label: '开课部门', + prop: 'deptName', + display:false + }, + { + label: '课程编码', + prop: 'courseCode', + formslot:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择课程" + } + ] + }, + { + label: '学分', + prop: 'courseScore', + type:'number', + formslot:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"请填写学分" + } + ] + }, + { + label: '课程名', + prop: 'courseName', + display:false, + }, + + { + label: '任课教师', + prop: 'teacherNo', + formslot: true, + hide:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择教师" + } + ] + }, + { + label: '任课教师', + prop: 'realName', + display:false, + hide:true, + }, + { + label: '报名人数', + prop: 'signLimit', + type:'number', + rules: [ + { + required: true, + trigger: 'blur', + message:"填写报名人数" + } + ] + }, + { + label: '已报人数', + prop: 'totalNums', + display:false + }, + { + label: '报名状态', + prop: 'signableStr', + valueDefault:'0', + type:'radio', + dicData:global.COURSE_SIGN_STATUS, + props:{ + label:'label', + value:'value' + }, + search:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择报名状态" + } + ] + }, + { + label: '开课状态', + prop: 'openedStr', + type:'radio', + addDisplay:false, + dicData:global.COURSE_OPEND_STATUS, + props:{ + label:'label', + value:'value' + }, + search:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择开课状态" + } + ] + }, + { + label: '创建时间', + prop: 'createTime', + type:'date', + format:'yyyy-MM-dd', + display:false + }, + { + label: '备注', + prop: 'remarks', + type:'textarea' + }, + ] +} diff --git a/src/const/crud/ems/optionalcourseapplyteacher.js b/src/const/crud/ems/optionalcourseapplyteacher.js new file mode 100755 index 0000000..84efcf0 --- /dev/null +++ b/src/const/crud/ems/optionalcourseapplyteacher.js @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + column: [ + { + label: '学年', + prop: 'schoolYear', + type:'select', + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + { + label: '课程代码', + prop: 'courseCode', + }, + { + label: '课程名', + prop: 'courseName', + }, + { + label: '选修课分组组号', + prop: 'applyClassNo' + }, + { + label: '教师编号', + prop: 'teacherNo' + }, + { + label: '教师姓名', + prop: 'realName' + }, + { + label: '学生总数', + prop: 'stuTotal' + }, + { + label: '成绩人数', + prop: 'scoreTotal' + }, + { + label: '成绩录入', + prop: 'finishTag', + slot:true + }, + { + label: '教师姓名', + prop: 'realName' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/ems/optionalcourseclass.js b/src/const/crud/ems/optionalcourseclass.js new file mode 100755 index 0000000..261a981 --- /dev/null +++ b/src/const/crud/ems/optionalcourseclass.js @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '学年', + prop: 'schoolYear', + type:'select', + search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + } + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + search:true, + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + } + }, + { + label: '任选课名', + prop: 'courseName', + search:true + }, + { + label: '组号', + prop: 'applyClassNo' + }, + { + label: '创建时间', + prop: 'createTime', + type:'date', + format:'yyyy-MM-dd' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} + + +export const tableClassOption = { + border: true, + index: true, + indexLabel: '序号', + // stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: true, + delBtn: false, + addBtn: false, + column: [ + { + label: '班号', + prop: 'applyClassNo', + row:true + }, + { + label: '教师', + prop: 'realName', + display:false, + }, + { + label: '教师', + prop: 'teacherNo', + formslot:true, + row:true, + hide:true + }, + { + label: '备注', + prop: 'remarks', + type:'textarea', + row:true + }, + ] +} diff --git a/src/const/crud/ems/optionalcoursesign.js b/src/const/crud/ems/optionalcoursesign.js new file mode 100755 index 0000000..900894b --- /dev/null +++ b/src/const/crud/ems/optionalcoursesign.js @@ -0,0 +1,200 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '学年', + prop: 'schoolYear', + type:'select', + search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + } + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + search:true, + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + } + }, + { + label: '任选课名', + prop: 'courseName', + search:true + }, + { + label: '学号', + prop: 'stuNo', + search:true + }, + { + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '系部', + prop: 'deptCode', + hide:true + }, + { + label: '系部名称', + prop: 'deptName' + }, + { + label: '班号', + prop: 'classNo', + search:true + }, + { + label: '分组组号', + prop: 'applyClassNo', + search:true + }, + { + label: '创建时间', + prop: 'createTime', + type:'date', + format:'yyyy-MM-dd' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} + + +export const signTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + cellBtn:true, + column: [ + { + label: '学号', + prop: 'stuNo', + search:true + + }, + { + label: '姓名', + prop: 'realName', + }, + { + label: '系部', + prop: 'deptCode', + hide:true, + formslot:true, + + }, + { + label: '二级学院', + prop: 'deptName', + display:false + }, + { + label: '班号', + prop: 'classNo', + search:true + }, + { + label: '备注', + prop: 'remarks', + cell:true + }, + ] +} + +export const autoTableOption = { + labelWidth: 110, + column: [ + { + label: '组数', + prop: 'nums', + type:'number' + } + ] +} + + +export const autoClassTableOption = { + index: true, + indexLabel: '序号', + editBtn:false, + addBtn:false, + delBtn:false, + column: [ + { + label: '组号', + prop: 'classNo', + slot:true, + }, + { + label: '人数', + prop: 'nums', + type:'number', + slot:true, + } + ] +} + +export const addStuTableOption = { + index: true, + indexLabel: '序号', + editBtn:false, + addBtn:false, + delBtn:false, + column: [ + { + label: '班级', + prop: 'classCode', + formslot:true, + row:true + }, + { + label: '学号', + prop: 'stuNo', + formslot:true, + row:true + } + ] +} diff --git a/src/const/crud/ems/optionscore.js b/src/const/crud/ems/optionscore.js new file mode 100644 index 0000000..89676dc --- /dev/null +++ b/src/const/crud/ems/optionscore.js @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + searchBtn:false, + refreshBtn:false, + columnBtn:false, + menu:false, + dic: [], + column: [ + { + label: '学号', + prop: 'stuNo', + }, + { + label: '姓名', + prop: 'realName', + }, + { + label: '总评成绩', + prop: 'totalMark', + slot:true + }, + ] +} diff --git a/src/const/crud/ems/originalteachplancourseassign.js b/src/const/crud/ems/originalteachplancourseassign.js new file mode 100755 index 0000000..9a50f08 --- /dev/null +++ b/src/const/crud/ems/originalteachplancourseassign.js @@ -0,0 +1,161 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict" +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + search:true, + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '专业代码', + prop: 'majorCode', + search:true, + formslot:true + }, + { + label: '专业名称', + prop: 'majorName', + search:true, + formslot:true + }, + { + label: '年级', + prop: 'majorGrade', + type:'select', + dicUrl:'admin/dict/item/type/basic_class_info_grade', + props:{ + label:'label', + value:'value' + } + }, + { + label: '课程代码', + prop: 'courseCode', + search:true, + formslot:true + }, + { + label: '课程名称', + prop: 'courseName', + search:true, + formslot:true + }, + { + label: '考核方式', + prop: 'courseCheckType', + type:'select', + dicUrl: '/ems/courseevaluationmode/list', + props: { + label: 'courseEvaluationModeName', + value: 'id' + }, + formslot:true + }, + { + label: '学分', + prop: 'courseScore', + formslot:true + }, + { + label: '起止周', + prop: 'teachWeekRange', + + }, + { + label: '开课部门', + prop: 'openDeptcode', + type:"select", + dicUrl: '/basic/basicdept/getDeptList?teachFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + } + }, + { + label: '学时', + prop: 'courseTeachUnit', + formslot:true + }, + { + label: '讲课学时', + prop: 'courseSpeakUnit', + formslot:true + }, + { + label: '上机学时', + prop: 'courseMachineUnit', + formslot:true + }, + { + label: '课外学时', + prop: 'courseOuterUnit', + formslot:true + }, + { + label: '讨论学时', + prop: 'courseAskUnit', + formslot:true + }, + ] +} diff --git a/src/const/crud/ems/proceduraltask.js b/src/const/crud/ems/proceduraltask.js new file mode 100755 index 0000000..2dfbb3f --- /dev/null +++ b/src/const/crud/ems/proceduraltask.js @@ -0,0 +1,150 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict" + + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:600, + selection: true, + column: [ + { + label: '学年', + prop: 'schoolYear', + search:true, + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + disabled:true + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + search:true, + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + disabled:true + }, + { + label: '课程', + prop: 'courseName', + disabled:true + }, + { + label: '班级', + prop: 'className', + disabled:true + }, + { + label: '任务名称', + prop: 'finalTaskName', + display:false + }, + { + label: '任务编号', + prop: 'taskNo', + display:false, + hide:true, + }, + { + label: '任务编号', + prop: 'taskNoStr', + disabled:true, + hide:true, + }, + { + label: '任务名称', + prop: 'taskName', + hide:true, + }, + { + label: '任课教师', + prop: 'teacherName', + disabled:true + }, + { + label: '是否锁定', + prop: 'locked', + type: 'radio', + dicData:global.YES_OR_NO_INT, + props:{ + label:'label', + value:'value' + }, + hide:true, + editDisabled:true + }, + { + label: '是否锁定', + prop: 'lockedStatus', + type: 'select', + dicData:global.YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + display:false + + }, + // { + // label: '创建人', + // prop: 'createBy', + // disabled:true + // }, + { + label: '任务日期', + prop: 'taskDate', + type:'date', + format:'yyyy-MM-dd', + editDisabled:true + }, + { + label: '是否超时', + prop: 'timeout', + type:'select', + search:true, + dicData:global.YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + disabled:true + }, + { + label: '备注', + prop: 'remarks', + type:'textarea', + span:24 + }, + ] +} diff --git a/src/const/crud/ems/proceduraltaskscore.js b/src/const/crud/ems/proceduraltaskscore.js new file mode 100755 index 0000000..b374eb1 --- /dev/null +++ b/src/const/crud/ems/proceduraltaskscore.js @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + searchBtn:false, + menu:false, + column: [ + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '任务成绩', + prop: 'score', + slot:true + }, + { + label: '备注', + prop: 'remarks', + slot:true + + }, + ] +} diff --git a/src/const/crud/ems/reexamtion.js b/src/const/crud/ems/reexamtion.js new file mode 100755 index 0000000..bbc03c5 --- /dev/null +++ b/src/const/crud/ems/reexamtion.js @@ -0,0 +1,266 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + column: [ + { + label: '学年', + prop: 'schoolYear', + type:'select', + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + // search:true, + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + { + label: '开课部门', + prop: 'openDeptName', + display:false, + }, + // { + // label: '所属学院', + // prop: 'deptName', + // display:false, + // }, + // { + // label: '任课教师', + // prop: 'teacherName', + // display:false + // }, + { + label: '班级', + prop: 'deptNameAndClassNo', + display:false, + }, + { + label: '班级', + prop: 'classNo', + display:false, + hide:true + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '课程名称', + prop: 'courseName', + }, + { + label: '任课教师', + prop: 'teacherRealName', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '课程性质', + prop: 'propertiesName' + }, + { + label: '平时成绩', + prop: 'normalScoreLabel', + hide:true, + }, + { + label: '期中成绩', + prop: 'midScoreLabel', + hide:true, + }, + { + label: '期末成绩', + prop: 'finalScoreLabel', + hide:true, + }, + { + label: '总评', + prop: 'totalMark', + slot:true + }, + { + label: '补考', + prop: 'makeUpScore', + slot:true + }, + { + label: '重修', + prop: 'rebuildScore', + slot:true + } + ] +} + + +export const authTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + selection: true, + reserveSelection:false, + column: [ + { + label: '学年', + prop: 'schoolYear', + type:'select', + search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + search:true, + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + { + label: '开课部门', + prop: 'openDeptName', + display:false, + }, + { + label: '班级', + prop: 'classNo', + display:false, + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '课程名称', + prop: 'courseName', + }, + { + label: '课程性质', + prop: 'propertiesName' + }, + { + label: '任课教师', + prop: 'courseTeacherRealName' + }, + { + label: '平时成绩', + prop: 'normalScore', + hide:true, + }, + { + label: '期中成绩', + prop: 'midtermScore', + hide:true, + }, + { + label: '期末成绩', + prop: 'finalScore', + hide:true, + }, + { + label: '总评', + prop: 'totalMark', + }, + { + label: '补考', + prop: 'makeUpScore', + slot:true + }, + { + label: '重修', + prop: 'rebuildScore', + slot:true + }, + { + label: '录入人', + prop: 'teacherRealName' + }, + ] +} diff --git a/src/const/crud/ems/scoredefend.js b/src/const/crud/ems/scoredefend.js new file mode 100644 index 0000000..601dd97 --- /dev/null +++ b/src/const/crud/ems/scoredefend.js @@ -0,0 +1,194 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + searchBtn:false, + refreshBtn:false, + columnBtn:false, + dic: [], + column: [ + { + label: '年级', + prop: 'grade', + }, + { + label: '班号', + prop: 'classNo', + search:true + }, + { + label: '学号', + prop: 'stuNo', + search:true + }, + { + label: '姓名', + prop: 'realName', + search:true + } + ] +} + + +export const detailOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + searchBtn:false, + refreshBtn:false, + columnBtn:false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + search:true, + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学期', + prop: 'schoolTerm', + search:true, + type:'select', + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '班号', + prop: 'classNo', + addDisplay:false, + addDisabled:true, + search:true + }, + { + label: '课程代码', + prop: 'courseCode', + }, + { + label: '课程名称', + prop: 'courseName', + }, + { + label: '课程性质', + prop: 'courseProperties', + search:true, + type:'select', + dicUrl: '/ems/courseproperties/list', + props:{ + label:'propertiesName', + value:'id' + }, + }, + { + label: '平时成绩(20%)', + prop: 'normalScore', + width:150, + slot:true, + addDisplay:false, + addDisabled:true, + }, + { + label: '期中成绩(30%)', + prop: 'midtermScore', + width:150, + slot:true, + addDisplay:false, + addDisabled:true, + }, + { + label: '期末成绩(50%)', + prop: 'finalScore', + width:150, + slot:true, + addDisplay:false, + addDisabled:true, + }, + { + label: '学分', + prop: 'point', + }, + { + label: '成绩类型', + prop: 'pointSystemValue', + type:'select', + dicData:global.POINT_TYPE, + props:{ + label:'label', + value:'value' + }, + addDisplay:true, + addDisabled:false, + }, + { + label: '成绩等级', + prop: 'pointValue', + type:'select', + dicData:global.SCORE_LEVEL, + props:{ + label:'label', + value:'value' + }, + hide:true, + addDisplay:true, + addDisabled:false, + }, + { + label: '总评成绩', + prop: 'totalMark', + slot:true + }, + { + label: '补考成绩', + prop: 'makeUpScore', + width:150, + slot:true, + addDisplay:false, + addDisabled:true, + }, + { + label: '重修成绩', + prop: 'rebuildScore', + width:150, + slot:true, + addDisplay:false, + addDisabled:true, + }, + ] +} diff --git a/src/const/crud/ems/scoredefendrecord.js b/src/const/crud/ems/scoredefendrecord.js new file mode 100755 index 0000000..bfc1ed0 --- /dev/null +++ b/src/const/crud/ems/scoredefendrecord.js @@ -0,0 +1,131 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear' + }, + { + label: '学期', + prop: 'schoolTerm' + }, + { + label: '学号', + prop: 'stuNo', + search:true + }, + { + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '班级代码', + prop: 'classCode', + search:true + }, + { + label: '课程名称', + prop: 'courseName' + }, + { + label: '课程性质', + prop: 'coursePropertyName' + }, + { + label: '平时成绩', + prop: 'normalScore', + slot:true + }, + { + label: '平时成绩(改)', + prop: 'modifyNormalScore', + slot:true + }, + { + label: '期中成绩', + prop: 'midtermScore', + slot:true + }, + { + label: '期中成绩(改)', + prop: 'modifyMidtermScore', + slot:true + }, + { + label: '期末成绩', + prop: 'finalScore', + slot:true + }, + { + label: '期末成绩(改)', + prop: 'modifyFinalScore', + slot:true + }, + + { + label: '总评成绩', + prop: 'totalMark', + slot:true + }, + { + label: '总评成绩(改)', + prop: 'modifyTotalMark', + slot:true + }, + { + label: '补考成绩', + prop: 'makeUpScore', + slot:true + }, + { + label: '补考成绩(改)', + prop: 'modifyMakeUpScore', + slot:true + }, + { + label: '重修成绩', + prop: 'rebuildScore', + slot:true + }, + { + label: '重修成绩(改)', + prop: 'modifyRebuildScore', + slot:true + }, + { + label: '维护人', + prop: 'createBy' + }, + { + label: '维护日期', + prop: 'createTime' + }, + ] +} diff --git a/src/const/crud/ems/scorequery.js b/src/const/crud/ems/scorequery.js new file mode 100644 index 0000000..98c5d62 --- /dev/null +++ b/src/const/crud/ems/scorequery.js @@ -0,0 +1,132 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + dic: [], + column: [ + // { + // label: '入学年份', + // prop: 'enterYear' + // }, + { + label: '学院', + prop: 'deptName' + }, + { + label: '班级', + prop: 'classNo' + }, + { + label: '班级状态', + prop: 'classStatus', + type:'select', + dicUrl:'/admin/dict/item/type/student_status' + }, + { + label: '学年', + prop: 'schoolYear' + }, + { + label: '学期', + prop: 'schoolTerm' + }, + { + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '课程名称', + prop: 'courseName' + }, + { + label: '学号', + prop: 'stuNo', + hide:true, + search:true + }, + { + label: '课程类型', + prop: 'courseType', + type:'select', + dicUrl: '/ems/coursetype/list', + props: { + label: 'courseTypeName', + value: 'id' + }, + hide:true + }, + { + label:'课程性质', + prop: 'propertiesName' + }, + + + // { + // label: '考核方式', + // prop: 'courseEvaluationMode', + // type:'select', + // dicUrl: '/ems/courseevaluationmode/list', + // props: { + // label: 'courseEvaluationModeName', + // value: 'id' + // }, + // }, + { + label: '总评', + prop: 'totalMark', + slot:true + }, + // { + // label: '总评异常', + // prop: 'totalAbnormalType' + // }, + { + label: '补考', + prop: 'makeUpScore', + slot:true + }, + // { + // label: '补考异常', + // prop: 'makeUpAbnormalType' + // }, + { + label: '重修', + prop: 'rebuildScore', + slot:true + }, + // { + // label: '重修异常', + // prop: 'rebuildAbnormalType' + // }, + { + label: '学分', + prop: 'point' + } + ] +} diff --git a/src/const/crud/ems/scoretermwarning.js b/src/const/crud/ems/scoretermwarning.js new file mode 100755 index 0000000..a5e0125 --- /dev/null +++ b/src/const/crud/ems/scoretermwarning.js @@ -0,0 +1,124 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '学年', + // prop: 'schoolYear' + // }, + // { + // label: '学期', + // prop: 'schoolTerm' + // }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName', + slot:true + }, + { + label: '班级', + prop: 'className' + }, + { + label: '班号', + prop: 'classNo' + }, + // { + // label: '学院编码', + // prop: 'deptCode' + // }, + { + label: '学院名称', + prop: 'deptName' + }, + { + label: '班主任', + prop: 'teacherRealName' + }, + { + label: '当前应修总学分', + prop: 'shouldPoint' + }, + { + label: '实得学分', + prop: 'normalRealScore' + }, + { + label: '核心课程应修学分', + prop: 'mainShouldPoint' + }, + { + label: '核心课程已修学分', + prop: 'mainRealScore' + }, + { + label: '非核心课程应修学分', + prop: 'noMainShouldScore' + }, + { + label: '非核心课程已修学分', + prop: 'noMainRealScore' + }, + { + label: '任选课已修学分', + prop: 'freeCourseScore' + }, + ] +} diff --git a/src/const/crud/ems/skilllevel.js b/src/const/crud/ems/skilllevel.js new file mode 100644 index 0000000..9887d39 --- /dev/null +++ b/src/const/crud/ems/skilllevel.js @@ -0,0 +1,179 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const skillLevel=[ + {label:"1级-高级技师",value:"1"}, + {label:"2级-技师",value:"2"}, + {label:"3级-高级工",value:"3"}, + {label:"4级-中级工",value:"4"}, + {label:"5级-初级工",value:"5"} +] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection: true, + reserveSelection:false, + dic: [], + column: [ + { + label: '计划名称', + prop: 'planName', + search:true, + minWidth:200, + rules: [{ + required: true, + message: "请填写年级", + trigger: "blur" + }] + }, + { + label: '系部', + prop: 'deptName', + search:true, + minWidth:100, + fixed:true + }, + { + label: '班级', + prop: 'classNo', + search:true, + minWidth:55, + fixed:true + }, + { + label: '姓名', + prop: 'realName', + display:false, + search:true, + minWidth:80, + fixed:true + }, + { + label: '学号', + prop: 'stuNo', + fixed:true, + search:true, + editDisabled:true, + minWidth:110, + rules: [{ + required: true, + message: "请填写学号", + trigger: "blur" + }] + }, + { + label: '准考证号', + prop: 'examNo', + minWidth:200, + }, + { + label: '职业', + prop: 'occupation', + rules: [{ + required: true, + message: "请填写职业", + trigger: "blur" + }], + minWidth:200, + }, + { + label: '工种', + prop: 'workType', + rules: [{ + required: true, + message: "请填写工种", + trigger: "blur" + }], + minWidth:200 + }, + { + label: '工种级别', + prop: 'workLevel', + dicData:skillLevel, + type: 'select', + search:true, + rules: [{ + required: true, + message: "请填写职业工种级别", + trigger: "blur" + }], + minWidth:100 + }, + // { + // label: '考生来源', + // prop: 'stuSource' + // }, + { + label: '职业年限', + prop: 'occupationYear' + }, + { + label: '证书编号', + prop: 'cardNo', + search:true, + rules: [{ + required: true, + message: "请填写证书编号", + trigger: "blur" + }], + width:200 + }, + { + label: '发证日期', + prop: 'certificateDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + minWidth:100 + }, + { + label: '发证机构', + prop: 'certificateOrg', + minWidth:200 + }, + { + label: '考试结果', + prop: 'examResult', + }, + { + label: '理论成绩', + prop: 'theoryScore', + }, + { + label: '技能考核', + prop: 'techScore' + }, + { + label: '综合评审', + prop: 'finalScore' + }, + { + label: '创建时间', + prop: 'createTime', + display:false, + minWidth: 150 + }, + + ] +} diff --git a/src/const/crud/ems/stuscore.js b/src/const/crud/ems/stuscore.js new file mode 100644 index 0000000..9661d47 --- /dev/null +++ b/src/const/crud/ems/stuscore.js @@ -0,0 +1,165 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + searchBtn:false, + refreshBtn:false, + columnBtn:false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '课程代码', + prop: 'courseCode', + hide:true + }, + { + label: '学号', + prop: 'stuNo', + minWidth:150, + }, + { + label: '姓名', + prop: 'realName', + minWidth:120, + }, + { + label: '平时成绩(20%)', + prop: 'normalScore', + minWidth:200, + slot:true + }, + { + label: '期中成绩(30%)', + prop: 'midtermScore', + minWidth:200, + slot:true + }, + { + label: '期末成绩(50%)', + prop: 'finalScore', + minWidth:200, + slot:true + }, + { + label: '总评成绩', + prop: 'totalMark', + slot:true + }, + { + label: '是否异常', + prop: 'normalAbnormal', + hide:true + }, + { + label: '异常类型 0: 正常 1 作弊 2免修 3取消资格 4旷考 5缓考', + prop: 'normalAbnormalType', + hide:true, + }, + { + label: '是否异常', + prop: 'midtermAbnormal', + hide:true + }, + { + label: '异常类型 0: 正常 1 作弊 2免修 3取消资格 4旷考 5缓考', + prop: 'midtermAbnormalType', + hide:true + }, + { + label: '是否异常', + prop: 'finalAbnormal', + hide:true + }, + { + label: '异常类型 0: 正常 1 作弊 2免修 3取消资格 4旷考 5缓考', + prop: 'finalAbnormalType', + hide:true + }, + { + label: '是否异常', + prop: 'totalAbnormal', + hide:true + }, + { + label: '异常类型 0: 正常 1 作弊 2免修 3取消资格 4旷考 5缓考', + prop: 'totalAbnormalType', + hide:true + }, + { + label: '0:百分制 1:等级制', + prop: 'pointSystem', + hide:true + }, + { + label: '期中成绩等级 1:优秀 2:良好 3:合格 4 不合格 ', + prop: 'midtermScoreLevel', + hide:true + }, + { + label: '期末成绩等级 1:优秀 2:良好 3:合格 4 不合格', + prop: 'finalScoreLevel', + hide:true + }, + { + label: '平时成绩等级 1:优秀 2:良好 3:合格 4 不合格', + prop: 'normalScoreLevel', + hide:true + }, + { + label: '总评成绩等级 1:优秀 2:良好 3:合格 4 不合格', + prop: 'totalMarkLevel', + hide:true + }, + ] +} diff --git a/src/const/crud/ems/stuscorestatics.js b/src/const/crud/ems/stuscorestatics.js new file mode 100644 index 0000000..3f5521e --- /dev/null +++ b/src/const/crud/ems/stuscorestatics.js @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection:true, + reserveSelection:false, + column: [ + + { + label: '系部', + prop: 'deptName', + }, + { + label: '班号', + prop: 'classNo', + }, + { + label: '年级', + prop: 'grade', + }, + { + label: '姓名', + prop: 'realName', + + }, + { + label: '学号', + prop: 'stuNo', + } + + ] +} diff --git a/src/const/crud/ems/teachplan.js b/src/const/crud/ems/teachplan.js new file mode 100644 index 0000000..d11782b --- /dev/null +++ b/src/const/crud/ems/teachplan.js @@ -0,0 +1,480 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {number} from "echarts/src/export"; +let commonOption = { + +}; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + group:[ + { + label: '专业安排信息', + prop: 'jbxx', + icon: 'el-icon-edit-outline', + column: [ + { + label: '专业名称', + prop: 'majorCode', + span: 12, + labelWidth: 120, + type:'select', + dicUrl: '/basic/major/list', + filterable:true, + // searchFilterable:true, + // search:true, + props: { + label: 'majorCodeAndName', + value: 'majorCode' + }, + rules: [{ + required: true, + message: "请填写专业名称", + trigger: "blur" + }] + }, + { + label: '年级', + prop: 'planGrade', + span: 12, + labelWidth: 120, + type:'select', + dicUrl:'/admin/dict/item/type/basic_class_info_grade', + // search:true, + // filterable:true, + + + rules: [{ + required: true, + message: "请填写年级", + trigger: "blur" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + span: 12, + labelWidth: 120, + type:'select', + dicUrl:'/admin/dict/item/type/basic_ems_terms', + rules: [{ + required: true, + message: "请填写学期", + trigger: "blur" + }] + }, + ] + }, + { + label: '课程信息', + prop: 'jbxx', + icon: 'el-icon-edit-outline', + column: [ + { + label: '课程代码', + prop: 'courseCode', + span: 12, + labelWidth: 120, + formslot:true, + }, + { + label: '考核方式', + prop: 'courseCheckType', + span: 12, + labelWidth: 120, + type:'select', + dicUrl: '/ems/courseevaluationmode/list', + props: { + label: 'courseEvaluationModeName', + value: 'id' + }, + rules: [{ + required: true, + message: "请填写考核方式", + trigger: "blur" + }] + }, + { + label: '学分', + prop: 'courseScore', + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写学分", + trigger: "blur" + }] + }, + + { + label: '起止周', + prop: 'teachWeekRange', + span: 12, + labelWidth: 120, + + rules: [{ + required: true, + message: "请填写起止周", + trigger: "blur" + }] + }, + { + label: '开课部门', + prop: 'openDeptcode', + span: 12, + labelWidth: 120, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + + }, + { + label: '学时', + prop: 'courseTeachUnit', + span: 12, + labelWidth: 120, + type:'number', + rules: [{ + required: true, + message: "请填写学时", + trigger: "blur" + }] + }, + { + label: '讲课学时', + prop: 'courseSpeakUnit', + span: 12, + labelWidth: 120, + type:'number', + rules: [{ + required: true, + message: "请填写讲课学时", + trigger: "blur" + }] + }, + { + label: '上机学时', + prop: 'courseMachineUnit', + span: 12, + labelWidth: 120, + type:'number', + rules: [{ + required: true, + message: "请填写上机学时", + trigger: "blur" + }] + }, + { + label: '课外学时', + prop: 'courseOuterUnit', + span: 12, + labelWidth: 120, + type:'number', + rules: [{ + required: true, + message: "请填写课外学时", + trigger: "blur" + }] + }, + { + label: '讨论学时', + prop: 'courseAskUnit', + span: 12, + labelWidth: 120, + type:'number', + rules: [{ + required: true, + message: "请填写讨论学时", + trigger: "blur" + }] + }, + ] + } + ], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '专业名称', + prop: 'majorCode', + span: 12, + labelWidth: 120, + type:'select', + dicUrl: '/basic/major/list', + filterable:true, + // searchFilterable:true, + // search:true, + props: { + label: 'majorCodeAndName', + value: 'majorCode' + }, + rules: [{ + required: true, + message: "请填写专业名称", + trigger: "blur" + }] + }, + { + label: '年级', + prop: 'planGrade', + span: 12, + labelWidth: 120, + type:'select', + dicUrl:'/admin/dict/item/type/basic_class_info_grade', + // search:true, + // filterable:true, + rules: [{ + required: true, + message: "请填写年级", + trigger: "blur" + }] + }, + { + label: '课程代码', + prop: 'courseCode', + span: 12, + labelWidth: 120, + formslot:true, + + + }, + { + label: '学期', + prop: 'schoolTerm', + span: 12, + labelWidth: 120, + type:'select', + dicUrl:'/admin/dict/item/type/basic_ems_terms', + rules: [{ + required: true, + message: "请填写学期", + trigger: "blur" + }] + }, + + + + { + label: '考核方式', + prop: 'courseCheckType', + span: 12, + labelWidth: 120, + type:'select', + dicUrl: '/ems/courseevaluationmode/list', + props: { + label: 'courseEvaluationModeName', + value: 'id' + }, + rules: [{ + required: true, + message: "请填写考核方式", + trigger: "blur" + }] + }, + { + label: '学分', + prop: 'courseScore', + span: 12, + labelWidth: 120, + type:'number', + rules: [{ + required: true, + message: "请填写学分", + trigger: "blur" + }] + }, + { + label: '起止周', + prop: 'teachWeekRange', + span: 12, + labelWidth: 120, + + rules: [{ + required: true, + message: "请填写起止周", + trigger: "blur" + }] + }, + { + label: '开课部门', + prop: 'openDeptcode', + span: 12, + labelWidth: 120, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: "请填写开课部门", + trigger: "blur" + }] + }, + { + label: '学时', + prop: 'courseTeachUnit', + span: 12, + labelWidth: 120, + type:'number', + rules: [{ + required: true, + message: "请填写学时", + trigger: "blur" + }] + }, + { + label: '讲课学时', + prop: 'courseSpeakUnit', + span: 12, + labelWidth: 120, + type:'number', + rules: [{ + required: true, + message: "请填写讲课学时", + trigger: "blur" + }] + }, + { + label: '上机学时', + prop: 'courseMachineUnit', + span: 12, + labelWidth: 120, + type:'number', + rules: [{ + required: true, + message: "请填写上机学时", + trigger: "blur" + }] + }, + { + label: '课外学时', + prop: 'courseOuterUnit', + span: 12, + labelWidth: 120, + type:'number', + rules: [{ + required: true, + message: "请填写课外学时", + trigger: "blur" + }] + }, + { + label: '讨论学时', + prop: 'courseAskUnit', + span: 12, + labelWidth: 120, + type:'number', + rules: [{ + required: true, + message: "请填写讨论学时", + trigger: "blur" + }] + }, + { + label: '流程实例ID', + prop: 'procInsId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '流程实例状态', + prop: 'procInsStatus', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '备注', + prop: 'remarks', + type:"textarea", + span: 24, + labelWidth: 120 + }, + ] +} diff --git a/src/const/crud/ems/teachplancourseassign.js b/src/const/crud/ems/teachplancourseassign.js new file mode 100644 index 0000000..d691cfc --- /dev/null +++ b/src/const/crud/ems/teachplancourseassign.js @@ -0,0 +1,423 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict" +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + labelWidth:120, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '学年', + prop: 'schoolYear', + span: 12, + width:120, + type:'select', + search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + search:true, + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + // { + // label: '学期', + // prop: 'schoolTerm', + // span: 12, + // search:true, + // width:60, + // addDisplay:false, + // editDisabled:true, + // editDisplay:false, + // visdiplay:false + // }, + { + label: '专业', + prop: 'majorCode', + span: 12, + search:true, + searchPlaceholder:' 专业编码/名称', + formslot:true, + hide:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + + }, + { + label: '专业编码', + prop: 'majorCodeN', + span: 12, + + width:100, + slot:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + + }, + { + label: '专业名称', + prop: 'majorName', + span: 12, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + + }, + { + label: '年级', + prop: 'majorGrade', + span: 12, + formslot:true, + search:true, + type:'select', + dicUrl:'admin/dict/item/type/basic_class_info_grade', + props:{ + label:'label', + value:'value' + }, + width:80, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '课程', + prop: 'courseCode', + span: 12, + search:true, + searchPlaceholder:' 课程编码/名称', + formslot:true, + hide:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '课程编码', + prop: 'courseCodeN', + span: 12, + + slot:true, + width:80, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '课程名称', + prop: 'courseName', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '课程性质', + prop: 'courseProperties', + type:'select', + dicUrl:'/ems/courseproperties/list', + props:{ + label:'propertiesName', + value:'id' + }, + rules: [{ + required: true, + message: "请选择课程性质", + trigger: "blur" + }], + width:120, + }, + { + label: '考核方式', + prop: 'courseEvaluationMode', + type:'select', + dicUrl: '/ems/courseevaluationmode/list', + props: { + label: 'courseEvaluationModeName', + value: 'id' + }, + rules: [{ + required: true, + message: "请选择课程考核方式", + trigger: "blur" + }], + // formslot:true, + width:100, + }, + { + label: '学分', + prop: 'courseScore', + span: 12, + formslot:true, + width:80, + rules: [ + {required: true, message: "请填写课程学分", trigger: "blur"}, + {type: 'number', message: '课程学分必须为数字值', transform: (value) => Number(value)} + ], + }, + { + label: '起止周', + prop: 'teachWeekRange', + span: 12, + + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '开课部门', + prop: 'openDeptcode', + span: 12, + type:"select", + search:true, + dicUrl: '/basic/basicdept/getDeptList?teachFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + width:120, + rules: [{ + required: true, + message: "请选择开课部门", + trigger: "blur" + }] + }, + + { + label: '课时', + prop: 'courseTeachUnit', + span: 12, + formslot:true, + rules: [{ + required: true, + message: "请填写课时", + trigger: "blur" + }] + }, + { + label: '周课时', + prop: 'weekUnit', + span: 12, + type:'number', + rules: [{ + required: true, + message: "请填写周课时", + trigger: "blur" + }] + }, + + + // { + // label: '流程实例ID', + // prop: 'procInsId', + // span: 12, + // labelWidth: 120, + // rules: [{ + // required: true, + // message: "请填写流程实例ID", + // trigger: "blur" + // }] + // }, + { + label: '锁定状态', + prop: 'procInsStatus', + span: 12, + labelWidth: 120, + type:'select', + search:true, + dicData:global.TEACH_PLAN_ASSIGN_CHECK_STATUS, + props:{ + label:'label', + value:'value' + }, + addDisplay:false, + editDisplay:false + }, + // { + // label: '备注', + // prop: 'remarks', + // type:"textarea", + // span: 24 + // }, + ] +} + +export const dialogOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + selection:true, + labelWidth:120, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + span: 12, + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + + }, + { + label: '学期', + prop: 'schoolTerm', + span: 12, + type:'select', + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + editDisabled:true, + }, + { + label: '专业名称', + prop: 'majorName', + span: 12 + }, + { + label: '年级', + prop: 'majorGrade', + span: 12, + type:'select', + dicUrl:'admin/dict/item/type/basic_class_info_grade', + props:{ + label:'label', + value:'value' + } + }, + // { + // label: '课程编码', + // prop: 'courseCodeN', + // span: 12, + // addDisplay:false, + // editDisplay:false, + // slot:true + // }, + // { + // label: '课程名称', + // prop: 'courseName', + // addDisplay:false, + // editDisplay:false + // } + ] +} diff --git a/src/const/crud/ems/teachplanmajorassign.js b/src/const/crud/ems/teachplanmajorassign.js new file mode 100644 index 0000000..70bd303 --- /dev/null +++ b/src/const/crud/ems/teachplanmajorassign.js @@ -0,0 +1,383 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:true, + selection: true, + reserveSelection:true, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '学年', + prop: 'schoolYear', + type:'select', + search:true, + hide: true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type: 'select', + search: true, + hide: true, + dicData: global.LEARN_TERM, + props: { + label: 'label', + value: 'value' + } + }, + { + label: '部门名称', + prop: 'deptCode', + span: 12, + labelWidth: 80, + width: 120, + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?teachFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: "请填写部门名称", + trigger: "blur" + }] + }, + { + label: '专业代码', + prop: 'majorCode', + span: 12, + labelWidth: 60, + width: 80, + search:true, + rules: [{ + required: true, + message: "请填写专业代码", + trigger: "blur" + }] + }, + { + label: '专业名称', + prop: 'majorProName', + span: 12, + slot:true, + labelWidth: 120, + search:true, + rules: [{ + required: true, + message: "请填写专业名称", + trigger: "blur" + }] + }, + // { + // label: '部门编码', + // prop: 'deptCode', + // span: 12, + // labelWidth: 120, + // hide: true, + // rules: [{ + // required: true, + // message: "请填写部门编码", + // trigger: "blur" + // }] + // }, + + { + label: '学制', + prop: 'majorYears', + span: 12, + labelWidth: 40, + width: 80, + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/basic_major_years', + rules: [{ + required: true, + message: "请填写学制", + trigger: "blur" + }] + }, + // { + // label: '专业名称', + // prop: 'majorProName', + // span: 12, + // labelWidth: 120, + // hide:true, + // rules: [{ + // required: true, + // message: "请填写专业规范名称", + // trigger: "blur" + // }] + // }, + { + label: '专业培养层次', + // 1:中专 2:中级 3:大专 4:技师 5:高级 + prop: 'majorLevel', + span: 12, + labelWidth: 120, + hide:true, + type:"select", + dicUrl: '/admin/dict/item/type/basic_major_level', + rules: [{ + required: true, + message: "请填写专业培养层次", + trigger: "blur" + }] + }, + { + label: '年级', + prop: 'grade', + span: 12, + labelWidth: 40, + width: 60, + search:true, + type:"select", + dicUrl: '/basic/basicclass/getClassGrade', + props:{ + label: 'grade', + value: 'grade', + }, + rules: [{ + required: true, + message: "请填写年级", + trigger: "blur" + }] + }, + { + label: '班号', + prop: 'classNo', + span: 12, + labelWidth: 120, + width: 140, + search: true, + rules: [{ + required: true, + message: "请填写对应班号", + trigger: "blur" + }] + }, + { + label: '对应班级数量', + prop: 'classNum', + span: 12, + labelWidth: 120, + hide:true, + rules: [{ + required: true, + message: "请填写对应班级数量", + trigger: "blur" + }] + }, + { + label: '必修学分', + prop: 'mustCredit', + hide:true, + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写必修学分", + trigger: "blur" + }] + }, + { + label: '限选学分', + prop: 'limitCredit', + hide:true, + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写限选学分", + trigger: "blur" + }] + }, + { + label: '任选学分', + prop: 'openCredit', + hide:true, + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写任选学分", + trigger: "blur" + }] + }, + { + label: '跨选学分', + prop: 'crossCredit', + hide:true, + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写跨选学分", + trigger: "blur" + }] + }, + { + label: '公选学分', + prop: 'publicCredit', + hide:true, + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写公选学分", + trigger: "blur" + }] + }, + { + label: '素质学分', + prop: 'qualityCredit', + hide:true, + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写素质学分", + trigger: "blur" + }] + }, + { + label: '奖励学分', + prop: 'rewardCredit', + hide:true, + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写奖励学分", + trigger: "blur" + }] + }, + { + label: '核心学分', + prop: 'coreCredit', + hide:true, + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写核心学分", + trigger: "blur" + }] + }, + { + label: '备注', + prop: 'remarks', + hide:true, + type:"textarea", + span: 24, + labelWidth: 120 + }, + { + label: '是否安排', + prop: 'isAssign', + slot:true, + width: 120, + span: 24, + labelWidth: 80, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false, + search:true, + type: 'select', + dicUrl: '/admin/dict/item/type/yes_no', + + }, + ] +} diff --git a/src/const/crud/ems/teachplantextbookrelation.js b/src/const/crud/ems/teachplantextbookrelation.js new file mode 100644 index 0000000..4a40014 --- /dev/null +++ b/src/const/crud/ems/teachplantextbookrelation.js @@ -0,0 +1,108 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOptionTextbook = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '计划ID', + prop: 'teachPlanIdSlot', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '教材', + prop: 'textbookSerialNoSlot', + span: 24, + formslot:true, + slot:true, + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24 + }, + ] +} diff --git a/src/const/crud/ems/teachtask.js b/src/const/crud/ems/teachtask.js new file mode 100755 index 0000000..0257d53 --- /dev/null +++ b/src/const/crud/ems/teachtask.js @@ -0,0 +1,353 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection: true, + size:"small", + fit:true, + column: [ + + { + label: '学年', + prop: 'schoolYear', + width:100, + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + addDisplay:false, + editDisabled:true, + + visdiplay:false + }, + { + label: '学期', + prop: 'schoolTerm', + width:60, + addDisplay:false, + + editDisabled:true, + visdiplay:false + }, + + { + label: '专业', + prop: 'majorName', + addDisplay:false, + editDisabled:true, + + visdiplay:false + }, + { + label: '班级', + prop: 'classNo', + addDisplay:false, + editDisabled:true, + slot: true, + visdiplay:false + }, + { + label: '任课教师', + prop: 'teacherRealName', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '课程名称', + prop: 'courseName', + search:true, + width:120, + addDisplay:false, + sortable:"custom", + editDisabled:true, + visdiplay:false + }, + // { + // label: '成绩录入', + // prop: 'isRecord', + // search:true, + // type:'select', + // dicData:global.RECORD_STATUS, + // props:{ + // label:'label', + // value:'value' + // }, + // }, + { + label: '课程性质', + prop: 'courseProperties', + type:'select', + dicUrl:'/ems/courseproperties/list', + props:{ + label:'propertiesName', + value:'id' + }, + width:80, + rules: [{ + required: true, + message: "请选择课程性质", + trigger: "blur" + }], + }, + { + label: '课程类型', + prop: 'courseType', + type:'select', + dicUrl: '/ems/coursetype/list', + props: { + label: 'courseTypeName', + value: 'id' + }, + width:80, + rules: [{ + required: true, + message: "请选择课程类型", + trigger: "blur" + }], + }, + { + label: '课程类别', + prop: 'courseCategory', + type:'select', + dicUrl: '/ems/coursecategory/list', + props: { + label: 'courseCategoryName', + value: 'id' + }, + width:80, + rules: [{ + required: true, + message: "请选择课程类别", + trigger: "blur" + }], + }, + + { + label: '考核方式', + prop: 'courseEvaluationMode', + type:'select', + dicUrl: '/ems/courseevaluationmode/list', + props: { + label: 'courseEvaluationModeName', + value: 'id' + }, + width:80, + rules: [{ + required: true, + message: "请选择考核方式", + trigger: "blur" + }], + }, + { + label: '学分', + prop: 'courseScore', + width:60, + rules: [{ + required: true, + message: "请输入学分", + trigger: "blur" + }], + }, + { + label: '起止周', + prop: 'teachWeekRange', + width:60, + formslot:true, + rules: [{ + required: true, + message: "请输入起止周", + trigger: "blur" + }], + }, + + { + label: '课时', + prop: 'courseTeachUnit', + width:60, + rules: [{ + required: true, + message: "请输入课时", + trigger: "blur" + }], + }, + + + { + label: '周课时', + prop: 'weekUnit', + width:60, + rules: [{ + required: true, + message: "请输入周课时", + trigger: "blur" + }], + // span: 12, + // labelWidth: 120, + }, + { + label: '开课部门', + prop: 'deptCode', + type:"select", + dicUrl: '/basic/basicdept/getDeptList?teachFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + hide:true, + search:true, + addDisplay:false, + editDisplay:false, + visdiplay:false + }, + { + label: '开课部门', + prop: 'departName', + width:140, + addDisplay:false, + editDisabled:true, + // editDisplay:false, + visdiplay:false + }, + // { + // label: '成绩录入', + // prop: 'lockedStr', + // search:true, + // type:'select', + // dicData:global.LOCK_STATUS, + // props:{ + // label:'label', + // value:'value' + // }, + // }, + // { + // label: '补考录入', + // prop: 'makeupLockedStr', + // search:true, + // type:'select', + // dicData:global.LOCK_STATUS, + // props:{ + // label:'label', + // value:'value' + // }, + // }, + // { + // label: '重修录入', + // prop: 'rebuildLockedStr', + // search:true, + // type:'select', + // dicData:global.LOCK_STATUS, + // props:{ + // label:'label', + // value:'value' + // }, + // }, + { + label: '过程化', + prop: 'isProceduralStr', + type:'select', + dicData:global.YES_OR_NO, + search:true, + props:{ + label:'label', + value:'value' + }, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '锁定', + prop: 'lockedStr', + type:'select', + dicData:global.YES_OR_NO, + search:true, + props:{ + label:'label', + value:'value' + }, + display:false + }, + { + label: '创建人', + prop: 'createBy', + hide:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '指定教师', + prop: 'chooseTeacher', + hide:true, + formslot:true, + span:24 + }, + { + label: '指定教材', + prop: 'chooseTextbook', + hide:true, + formslot:true, + span:24 + }, + { + label: '教材指定', + prop: 'textbookRelated', + slot:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false, + search:true, + type: 'select', + dicUrl: '/admin/dict/item/type/yes_no', + }, + { + label: '教材明细', + prop: 'textbookRelatedDetail', + slot:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + ] +} diff --git a/src/const/crud/ems/teachtaskstatus.js b/src/const/crud/ems/teachtaskstatus.js new file mode 100755 index 0000000..74b6319 --- /dev/null +++ b/src/const/crud/ems/teachtaskstatus.js @@ -0,0 +1,229 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + size:"small", + fit:true, + menu:false, + column: [ + + { + label: '学年', + prop: 'schoolYear', + width:100, + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + addDisplay:false, + editDisabled:true, + visdiplay:false + }, + { + label: '学期', + prop: 'schoolTerm', + width:60, + addDisplay:false, + editDisabled:true, + visdiplay:false + }, + + { + label: '专业', + prop: 'majorName', + addDisplay:false, + editDisabled:true, + + visdiplay:false + }, + { + label: '班级', + prop: 'classNo', + addDisplay:false, + editDisabled:true, + slot: true, + visdiplay:false + }, + { + label: '任课教师', + prop: 'teacherRealName', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '课程名称', + prop: 'courseName', + search:true, + width:120, + addDisplay:false, + sortable:"custom", + editDisabled:true, + visdiplay:false + }, + { + label: '课程性质', + prop: 'courseProperties', + type:'select', + dicUrl:'/ems/courseproperties/list', + props:{ + label:'propertiesName', + value:'id' + }, + width:80, + rules: [{ + required: true, + message: "请选择课程性质", + trigger: "blur" + }], + }, + { + label: '课程类型', + prop: 'courseType', + type:'select', + dicUrl: '/ems/coursetype/list', + props: { + label: 'courseTypeName', + value: 'id' + }, + width:80, + rules: [{ + required: true, + message: "请选择课程类型", + trigger: "blur" + }], + }, + { + label: '课程类别', + prop: 'courseCategory', + type:'select', + dicUrl: '/ems/coursecategory/list', + props: { + label: 'courseCategoryName', + value: 'id' + }, + width:80, + rules: [{ + required: true, + message: "请选择课程类别", + trigger: "blur" + }], + }, + + { + label: '考核方式', + prop: 'courseEvaluationMode', + type:'select', + dicUrl: '/ems/courseevaluationmode/list', + props: { + label: 'courseEvaluationModeName', + value: 'id' + }, + width:80, + rules: [{ + required: true, + message: "请选择考核方式", + trigger: "blur" + }], + }, + { + label: '学分', + prop: 'courseScore', + width:60, + rules: [{ + required: true, + message: "请输入学分", + trigger: "blur" + }], + }, + { + label: '起止周', + prop: 'teachWeekRange', + width:60, + formslot:true, + rules: [{ + required: true, + message: "请输入起止周", + trigger: "blur" + }], + }, + + { + label: '课时', + prop: 'courseTeachUnit', + width:60, + rules: [{ + required: true, + message: "请输入课时", + trigger: "blur" + }], + }, + { + label: '周课时', + prop: 'weekUnit', + width:60, + rules: [{ + required: true, + message: "请输入周课时", + trigger: "blur" + }], + // span: 12, + // labelWidth: 120, + }, + { + label: '开课部门', + prop: 'departName', + width:140, + addDisplay:false, + editDisabled:true, + // editDisplay:false, + visdiplay:false + }, + { + label: '过程化', + prop: 'isProceduralStr', + type: 'select', + dicData: global.YES_OR_NO, + props: { + label: 'label', + value: 'value' + }, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '类型', + prop: 'lockedStr', + display:false + } + ] +} diff --git a/src/const/crud/ems/teachtaskteacher.js b/src/const/crud/ems/teachtaskteacher.js new file mode 100755 index 0000000..17a636b --- /dev/null +++ b/src/const/crud/ems/teachtaskteacher.js @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '任课教师工号', + prop: 'teacherNo', + search:true + }, + { + label: '任课教师姓名', + prop: 'teacherRealName', + search:true + }, + { + label: '专业名称', + prop: 'majorName' + }, + { + label: '班号', + prop: 'classNo', + search:true + }, + { + label: '课程名称', + prop: 'courseName', + search:true + }, + { + label: '课程编码', + prop: 'courseCode', + hide:true, + addDisplay:false, + editDisplay:false, + search:true + }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + { + label: '备注', + prop: 'remarks' + }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + ] +} diff --git a/src/const/crud/ems/teachtasktextbookrelation.js b/src/const/crud/ems/teachtasktextbookrelation.js new file mode 100755 index 0000000..338c92a --- /dev/null +++ b/src/const/crud/ems/teachtasktextbookrelation.js @@ -0,0 +1,170 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + selection: true, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + search:true, + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学期', + prop: 'schoolTerm', + search:true, + type:'select', + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + }, + + { + label: '开课部门', + prop: 'openDeptcode', + type:"select", + search:true, + dicUrl: '/basic/basicdept/getDeptList?teachFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + } + }, + { + label: '学院', + prop: 'deptCode', + search:true, + addDisplay:false, + editDisplay:false, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班号', + prop: 'classNo', + search:true + }, + { + label: '专业名称', + prop: 'majorName', + search:true + }, + { + label: '课程代码', + prop: 'courseCode', + }, + { + label: '课程名称', + prop: 'courseName', + }, + { + label: '教材名称', + prop: 'textbookName', + search:true + }, + { + label:'教材编号', + prop:'serialNo', + search:true + }, + { + label:'教材ISBN', + prop:'isbn' + }, + { + label:'出版社', + prop:'publisher' + }, + { + label:'作者', + prop:'author', + search:true + }, + { + label:'版别', + prop:'version' + }, + { + label:'班级人数', + prop:'classStuNum' + }, + { + label:'教材册数', + prop:'textbookNum' + } + // { + // label: '教学任务', + // prop: 'teachTaskId' + // }, + // { + // label: '教材编码', + // prop: 'textbookSerialNo' + // }, + ] +} diff --git a/src/const/crud/ems/teachweekrange.js b/src/const/crud/ems/teachweekrange.js new file mode 100644 index 0000000..9882584 --- /dev/null +++ b/src/const/crud/ems/teachweekrange.js @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '起止周', + prop: 'teachWeekRange', + span: 12, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写起止周", + trigger: "blur" + }] + }, + { + label: '备注', + prop: 'remarks', + type:"textarea", + span: 24, + labelWidth: 120 + }, + ] +} diff --git a/src/const/crud/ems/textbook.js b/src/const/crud/ems/textbook.js new file mode 100644 index 0000000..da3a712 --- /dev/null +++ b/src/const/crud/ems/textbook.js @@ -0,0 +1,311 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '教材ISBN', + prop: 'isbn', + span: 24, + labelWidth: 120, + search:true + // rules: [{ + // required: true, + // message: "请填写教材ISBN", + // trigger: "blur" + // }] + }, + { + label: '教材名称', + prop: 'textbookName', + span: 24, + labelWidth: 120, + search:true, + rules: [{ + required: true, + message: "请填写教材名称", + trigger: "blur" + }] + }, + { + label: '教材编码', + prop: 'serialNo', + span: 24, + labelWidth: 120, + search:true, + rules: [{ + required: true, + message: "请填写教材编码", + trigger: "blur" + }] + }, + + { + label: '出版社', + prop: 'publisher', + // type:"select", + span: 12, + labelWidth: 120, + formslot:true + + // dicUrl: '/ems/textbookpublisher/list', + // props: { + // label: 'publisherName', + // value: 'publisherName' + // } + }, + { + label: '作者', + prop: 'author', + span: 12, + labelWidth: 120, + search:true, + // rules: [{ + // required: true, + // message: "请填写作者", + // trigger: "blur" + // }] + }, + { + label: '版别', + prop: 'version', + span: 12, + labelWidth: 120, + // rules: [{ + // required: true, + // message: "请填写版别", + // trigger: "blur" + // }] + }, + { + label: '单价', + prop: 'price', + span: 12, + labelWidth: 120, + rule:'', + type:'number', + precision:2, + // rules: [{ + // required: true, + // message: "请填写单价", + // trigger: "blur" + // }] + }, + { + label: '库存', + prop: 'stock', + span: 12, + labelWidth: 120, + type:'number', + hide: true, + // rules: [{ + // required: true, + // message: "请填写库存", + // trigger: "blur" + // }] + }, + { + label: '码洋', + prop: 'maPrice', + span: 12, + labelWidth: 120, + hide: true, + // rules: [{ + // required: true, + // message: "请填写码洋", + // trigger: "blur" + // }] + }, + { + label: '教材类型', + prop: 'textbookType', + type:"select", + search:true, + span: 12, + labelWidth: 120, + hide: true, + dicUrl: '/ems/textbooktype/list', + props: { + label: 'textbookTypeName', + value: 'id' + } + }, + { + label: '出版日期', + prop: 'publishDate', + span: 12, + labelWidth: 120, + // rules: [{ + // required: true, + // message: "请填写出版日期", + // trigger: "blur" + // }] + }, + { + hide: true, + label: '适用对象', + prop: 'fitObject', + type:"select", + search:true, + span: 12, + labelWidth: 120, + dicUrl: '/ems/textbookfitobject/list', + props: { + label: 'objectName', + value: 'id' + } + }, + { + hide: true, + label: '适用专业', + prop: 'fitMajor', + search:true, + span: 12, + labelWidth: 120, + // rules: [{ + // required: true, + // message: "请填写适用对象", + // trigger: "blur" + // }] + }, + { + hide: true, + label: '书架号', + prop: 'bookPlace', + span: 12, + labelWidth: 120, + // rules: [{ + // required: true, + // message: "请填写适用对象", + // trigger: "blur" + // }] + }, + { + hide: true, + label: '实际单价', + prop: 'actPrice', + span: 12, + labelWidth: 120, + type:'number', + // rules: [{ + // required: true, + // message: "请填写适用对象", + // trigger: "blur" + // }] + }, + { + hide: true, + label: '是否样书', + prop: 'isDemoBook', + type:"select", + dicUrl: '/admin/dict/item/type/yes_no', + search:true, + span: 12, + labelWidth: 120, + // rules: [{ + // required: true, + // message: "请选择是否为样书", + // trigger: "blur" + // }] + }, + { + hide: true, + label: '供应商', + prop: 'supplier', + + type:"select", + span: 12, + labelWidth: 120, + dicUrl: '/ems/textbooksupplier/list', + props: { + label: 'supplierName', + value: 'id' + }, + + }, + { + label: '备注', + prop: 'remarks', + type:"textarea", + span: 24, + labelWidth: 120 + }] +} diff --git a/src/const/crud/ems/textbookfitobject.js b/src/const/crud/ems/textbookfitobject.js new file mode 100644 index 0000000..7d229a7 --- /dev/null +++ b/src/const/crud/ems/textbookfitobject.js @@ -0,0 +1,115 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '适用对象名称', + prop: 'objectName', + span: 24, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写适用对象名称", + trigger: "blur" + }] + }, + { + label: '适用对象编号', + prop: 'objectCode', + span: 24, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写适用对象编号", + trigger: "blur" + }] + }, + + { + label: '备注', + prop: 'remarks', + type:"textarea", + span: 24, + labelWidth: 120 + }, + ] +} diff --git a/src/const/crud/ems/textbookin.js b/src/const/crud/ems/textbookin.js new file mode 100755 index 0000000..3cf42f1 --- /dev/null +++ b/src/const/crud/ems/textbookin.js @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: 'ISBN', + prop: 'isbn' + }, + { + label: '数量', + prop: 'num', + type:'number' + }, + ] +} diff --git a/src/const/crud/ems/textbookout.js b/src/const/crud/ems/textbookout.js new file mode 100755 index 0000000..732afc6 --- /dev/null +++ b/src/const/crud/ems/textbookout.js @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: 'ISBN', + prop: 'isbn' + }, + { + label: '数量', + prop: 'num', + type:'number' + }, + { + label: '领用班级', + prop: 'classCode' + }, + { + label: '领用人', + prop: 'username' + }, + { + label: '领用人姓名', + prop: 'realName' + }, + ] +} diff --git a/src/const/crud/ems/textbookpublisher.js b/src/const/crud/ems/textbookpublisher.js new file mode 100644 index 0000000..3c372e7 --- /dev/null +++ b/src/const/crud/ems/textbookpublisher.js @@ -0,0 +1,115 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '出版社名称', + prop: 'publisherName', + labelWidth: 120, + span: 24, + rules: [{ + required: true, + message: "请填写出版社名称", + trigger: "blur" + }] + }, + { + label: '出版社编号', + prop: 'publisherCode', + labelWidth: 120, + span: 24, + rules: [{ + required: true, + + message: "请填写出版社编号", + trigger: "blur" + }] + }, + { + label: '备注', + prop: 'remarks', + type:"textarea", + span: 24, + labelWidth: 120 + }, + ] +} diff --git a/src/const/crud/ems/textbooksupplier.js b/src/const/crud/ems/textbooksupplier.js new file mode 100644 index 0000000..3805a57 --- /dev/null +++ b/src/const/crud/ems/textbooksupplier.js @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '供应商名称', + prop: 'supplierName', + labelWidth:120, + span:24, + rules:[{ + required: true, + message: "请填写供应商名称", + trigger: "blur" + }] + }, + { + label: '供应商编号', + prop: 'supplierCode', + labelWidth:120, + span:24, + rules:[{ + required: true, + message: "请填写供应商编号", + trigger: "blur" + }] + }, + { + label: '备注', + prop: 'remarks', + type:"textarea", + span:24 + }, + ] +} diff --git a/src/const/crud/ems/textbooktype.js b/src/const/crud/ems/textbooktype.js new file mode 100644 index 0000000..1dc1d99 --- /dev/null +++ b/src/const/crud/ems/textbooktype.js @@ -0,0 +1,115 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '类型名称', + prop: 'textbookTypeName', + span: 24, + labelWidth: 120, + rules: [{ + required: true, + message: "请填写类别名称", + trigger: "blur" + }] + }, + { + label:'类型编号', + prop:'textbookTypeCode', + span:24, + labelWidth:120, + rules:[{ + required: true, + message: "请填写类型编号", + trigger: "blur" + }] + }, + { + label: '备注', + prop: 'remarks', + type:"textarea", + span: 24, + labelWidth: 120 + }, + ] +} diff --git a/src/const/crud/exam/examhistory.js b/src/const/crud/exam/examhistory.js new file mode 100644 index 0000000..931422f --- /dev/null +++ b/src/const/crud/exam/examhistory.js @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (493840844@qq.com) + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '试题名称', + prop: 'title', + search:true + }, + { + label: '工号/学号', + prop: 'username', + search:true + }, + { + label: '姓名', + prop: 'realName', + }, + { + label: '首次得分', + prop: 'firScore', + }, + { + label: '最高得分', + prop: 'highScore', + }, + { + label: '本次得分', + prop: 'totalScore' + }, + { + label: '完成时间', + prop: 'createTime' + }, + ] +} diff --git a/src/const/crud/exam/examhistorydetail.js b/src/const/crud/exam/examhistorydetail.js new file mode 100644 index 0000000..bbba9b9 --- /dev/null +++ b/src/const/crud/exam/examhistorydetail.js @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (493840844@qq.com) + */ +const IS_RIGHT=[ + {label:'正确',value:'1'}, + {label:'错误',value:'0'}, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + + { + label: '题目', + prop: 'subName' + }, + { + label: '分值', + prop: 'score' + }, + { + label: '实际得分', + prop: 'realScore' + }, + { + label: '是否正确', + prop: 'isRight', + type:'select', + dicData:IS_RIGHT, + props:{ + label:'label', + value:'value' + } + }, + ] +} diff --git a/src/const/crud/exam/examstatics.js b/src/const/crud/exam/examstatics.js new file mode 100644 index 0000000..0764d90 --- /dev/null +++ b/src/const/crud/exam/examstatics.js @@ -0,0 +1,176 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (493840844@qq.com) + */ + +export const tablecateOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '题库', + prop: 'cateName', + }, + { + label: '最高分', + prop: 'highScore' + }, + { + label: '最低分', + prop: 'lowScore' + }, + ] +} + + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + column: [ + { + label: '题库', + prop: 'cateName', + }, + { + label: '工号', + prop: 'username', + search:true + }, + { + label: '最高分', + prop: 'highScore' + }, + { + label: '最低分', + prop: 'lowScore' + }, + ] +} + + +export const staticsOptions = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '部门/班级/单位', + prop: 'deptName', + }, + { + label: '总人数', + prop: 'totalNum', + }, + { + label: '已答', + prop: 'hasAnswer' + }, + { + label: '未答', + prop: 'noAnswer' + }, + { + label: '平均分', + prop: 'avgScore' + }, + { + label: '满分率(%)', + prop: 'fullPercent' + } + ] +} + + +export const detailTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '工号/学号', + prop: 'username', + }, + { + label: '姓名', + prop: 'realName', + }, + { + label: '首次得分', + prop: 'firScore', + }, + { + label: '最高得分', + prop: 'highScore', + }, + { + label: '本次得分', + prop: 'totalScore' + }, + { + label: '完成时间', + prop: 'createTime' + }, + ] +} + +export const detailNoAnswerTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '工号/学号', + prop: 'teacherNo', + slot:true + }, + { + label: '姓名', + prop: 'realName', + } + ] +} diff --git a/src/const/crud/exam/examsubcourserelation.js b/src/const/crud/exam/examsubcourserelation.js new file mode 100644 index 0000000..47dd37b --- /dev/null +++ b/src/const/crud/exam/examsubcourserelation.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (493840844@qq.com) + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '', + prop: 'id' + }, + { + label: '题目id', + prop: 'subId' + }, + { + label: '题目类目id', + prop: 'cateId' + }, + { + label: '课程id', + prop: 'courseId' + }, + { + label: '章节id', + prop: 'chapterId' + }, + ] +} diff --git a/src/const/crud/exam/examsubject.js b/src/const/crud/exam/examsubject.js new file mode 100644 index 0000000..3b47d72 --- /dev/null +++ b/src/const/crud/exam/examsubject.js @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (493840844@qq.com) + */ + +const DICT_SUB_TYPE=[ + {label:'选择题',value:'0'}, + {label:'判断题',value:'1'} +] +const DICT_SUB_CATE=[ + {label:'单选',value:'0'}, + {label:'多选',value:'1'} +] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:768, + dialogDrag:true, + top:1, + column: [ + { + label: '题目', + prop: 'subjectTitle', + type:'textarea', + rules: [{ + required: true, + message: '请填写题目' + }] + }, + { + label: '解析', + prop: 'subDesc', + type:'textarea', + hide:true + }, + // { + // label: '图片', + // prop: 'pic', + // formslot:true, + // slot:true + // }, + { + label: '分数', + prop: 'score', + type:'number', + rules: [{ + required: true, + message: '请填写分数' + }] + }, + // { + // label: '类别', + // prop: 'type', + // type:'radio', + // dicData:DICT_SUB_TYPE, + // search:true, + // rules: [{ + // required: true, + // message: '请选择类别' + // }] + // }, + { + label: '类型', + prop: 'cate', + type:'radio', + dicData:DICT_SUB_CATE, + search:true, + display:false + }, + { + label: '选项', + prop: 'options', + span:24, + hide:true, + formslot:true, + }, + { + label: '答案', + prop: 'answer', + hide:true, + span:24, + formslot:true, + }, + { + label: '创建时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true + }, + ] +} diff --git a/src/const/crud/exam/examsubjectcate.js b/src/const/crud/exam/examsubjectcate.js new file mode 100644 index 0000000..147cdde --- /dev/null +++ b/src/const/crud/exam/examsubjectcate.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (493840844@qq.com) + */ +export const CATE_TYPE=[ + {label:'学生',value:'1'}, + {label:'教师',value:'2'}, + {label:'其他',value:'3'}, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + tree: true, + column: [ + { + label: '类目名称', + prop: 'cateName' + }, + { + label: '考试对象', + prop: 'type', + type:'select', + dicData:CATE_TYPE + }, + { + label: '创建时间', + prop: 'createTime' + }, + ] +} diff --git a/src/const/crud/exam/examsubjectoption.js b/src/const/crud/exam/examsubjectoption.js new file mode 100644 index 0000000..058567a --- /dev/null +++ b/src/const/crud/exam/examsubjectoption.js @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2018-2025, lengleng All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: lengleng (493840844@qq.com) + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '', + prop: 'id' + }, + { + label: '题目id', + prop: 'subId' + }, + { + label: '创建者', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新者', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '选项', + prop: 'option' + }, + ] +} diff --git a/src/const/crud/finance/financebudget.js b/src/const/crud/finance/financebudget.js new file mode 100755 index 0000000..a424faf --- /dev/null +++ b/src/const/crud/finance/financebudget.js @@ -0,0 +1,200 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {YES_OR_NO} from "../work/stucompany"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + tree: true, + showColumn: false, + viewBtn:false, + filterBtn: false, + + expandAll:true, + + column: [ + { + label: '部门', + align:'center', + prop: 'deptName', + width:160 + }, + { + label: '项目编号', + align:'center', + prop: 'projectNo', + search: true, + slot:true, + width:140 + }, + + { + label: '项目名称', + align:'center', + prop: 'projectName', + search: true, + width:300 + }, + { + label: '立项金额', + align:'center', + prop: 'originMoney', + width:120 + }, + + { + label: '上缴金额', + align:'center', + prop: 'upMoney', + width:120 + }, + { + label: '到账状态', + align:'center', + prop: 'moneyState', + slot:true, + width:120 + }, + { + label: '控制比例', + align:'center', + prop: 'lockPercent', + width:120 + }, + { + label: '到账金额', + align:'center', + prop: 'arrivedMoney', + width:120 + }, + { + label: '可用金额', + align:'center', + prop: 'money85', + width:120 + }, + + { + label: '过帐金额', + align:'center', + prop: 'finished', + width:120 + }, + { + label: '剩余金额', + align:'center', + prop: 'leftMoney', + width:120 + }, + { + label: '账期', + align:'center', + prop: 'accountPeriodDate', + width:220, + slot:true + }, + + { + label: '启用状态', + align:'center', + prop: 'state', + slot:true, + width:120 + }, + { + label: '发展基金', + align:'center', + prop: 'devFund', + slot:true, + width:100 + } + ] +} + + + +export const budgetStatistics = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + tree: true, + showColumn: false, + viewBtn:false, + filterBtn: false, + expandAll:true, + menu:false, + column: [ + { + label: '部门', + align:'center', + prop: 'deptCode', + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + hide:true, + }, + { + label: '部门', + align:'center', + prop: 'deptName', + }, + { + label: '项目数', + prop: 'totalNum', + }, + { + label: '立项金额', + prop: 'originMoneyTotal', + }, + // { + // label: '途中金额', + // prop: 'inWayTotal', + // }, + { + label: '预算金额', + prop: 'moneyTotal', + }, + + { + label: '已报销金额', + prop: 'finishedTotal', + }, + { + label: '剩余金额', + prop: 'leftMoneyTotal', + }, + ] +} + diff --git a/src/const/crud/finance/financebudgetreimbursement.js b/src/const/crud/finance/financebudgetreimbursement.js new file mode 100644 index 0000000..54d820b --- /dev/null +++ b/src/const/crud/finance/financebudgetreimbursement.js @@ -0,0 +1,688 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +export const PROC_INS_STATUS = [{label: '待审核', value: '0'}, {label: '待审批', value: '10'}, { + label: '通过', + value: '20' +}, {label: '驳回修改', value: '-10'}, {label: '撤销', value: '-20'}] +export const PAY_STATUS = [{label: '待付讫', value: '0'}, {label: '已付讫', value: '1'}] +// export const TYPE_DICT = [{label: '耗材费', value: '耗材费'}, {label: '餐费', value: '餐费'}, {label: '租赁费', value: '租赁费'}, +// {label: '广告费', value: '广告费'}, {label: '差旅费', value: '差旅费'}, {label: '办公费', value: '办公费'}, +// {label: '技术咨询费', value: '技术咨询费'}, {label: '其他交通费', value: '其他交通费'}, {label: '培训费', value: '培训费'}, {label: '兼课金', value: '兼课金'}, +// {label: '会议费', value: '会议费'}, {label: '设备购置费', value: '设备购置费'}, {label: '校内兼课金(劳务费)', value: '校内兼课金(劳务费)'}, {label: '校外劳务费', value: '校外劳务费'}, {label: '其他', value: '其他'}] +export const NO_PAY_STATUS = [{label: '待付讫', value: '0'}] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + selection: true, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '报销部门', + prop: 'deptCode', + search: true, + hide: true, + addDisplay: false, + editDisplay: false, + type: 'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '报销单号', + prop: 'applyNo', + search: true, + slot:true, + width:400 + }, + { + label: '报销部门', + prop: 'deptName', + hide: true, + }, + { + label: '经办人', + prop: 'createrName', + hide: true, + }, + { + label: '用途', + prop: 'reason', + hide: true, + search: true + }, + { + label: '类型', + prop: 'type', + search: true, + type: 'select', + dicUrl: '/finance/recruitreimbursementtype/list', + props: { + label: 'label', + value: 'value' + }, + hide: true, + }, + { + label: '单据状态', + prop: 'procInsStatus', + slot: true, + search: true, + type: 'select', + dicData: PROC_INS_STATUS, + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '开始日期', + prop: 'startTime', + type: 'date', + search: true, + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + hide: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '结束日期', + prop: 'endTime', + type: 'date', + search: true, + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + hide: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '报销日期', + prop: 'createTime', + hide: true, + }, + { + label: '报销科目', + prop: 'projectNo', + slot:true, + hide: true, + search: true + + }, + { + label: '金额', + prop: 'money', + search: true, + hide: true, + }, + { + label: '付款状态', + prop: 'payStatus', + search: true, + type: 'select', + dicData: PAY_STATUS, + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '支付单号', + prop: 'consolidatedPayNo', + addDisplay: false, + editDisplay: false, + search: true + }, + { + label: '同步用友', + prop: 'isSynchronYy', + addDisplay: false, + editDisplay: false, + type: 'select', + search: true, + dicUrl: '/admin/dict/item/type/yes_no', + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '财政支付类型', + prop: 'czType', + addDisplay: false, + editDisplay: false, + type: 'select', + search: true, + dicUrl: '/admin/dict/item/type/cz_type', + props: { + label: 'label', + value: 'label' + }, + }, + { + label: '付讫人', + prop: 'payPeople', + type: 'select', + search: false, + props: { + label: 'label', + value: 'label' + }, + }, + { + label: '付讫时间', + prop: 'payTime', + type: 'date', + search: false, + + }, + { + label: '付讫时间(开始)', + prop: 'payTimeStr1', + type: 'date', + search: true, + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + hide: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '付讫时间(结束)', + prop: 'payTimeStr2', + type: 'date', + search: true, + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + hide: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '凭证号', + prop: 'pzh', + }, + + + + ] +} +export const tableWFQOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + selection: true, + delBtn: false, + addBtn: false, + dic: [], + column: [ + + { + label: '合并单号', + prop: 'consolidatedPayNo', + addDisplay: false, + editDisplay: false, + }, + { + label: '报销单号', + prop: 'applyNo', + }, + { + label: '报销科目', + prop: 'projectNo', + }, + { + label: '金额', + prop: 'money' + }, + { + label: '笔数', + prop: 'projectTotal' + } + ] +} +export const paymentAffirm = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '报销部门', + prop: 'deptCode', + hide: true, + addDisplay: false, + editDisplay: false, + type: 'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '报销单号', + prop: 'applyNo', + width:180 + }, + { + label: '报销部门', + prop: 'deptName' + }, + { + label: '经办人', + prop: 'createrName' + }, + { + label: '用途', + prop: 'reason', + width: 300 + }, + { + label: '类型', + prop: 'type', + }, + { + label: '单据状态', + prop: 'procInsStatus', + slot: true, + type: 'select', + dicData: PROC_INS_STATUS, + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '报销日期', + prop: 'createTime', + }, + { + label: '报销科目', + prop: 'projectNo', + }, + { + label: '金额', + prop: 'money' + }, + { + label: '付讫状态', + prop: 'payStatus', + type: 'select', + dicData: PAY_STATUS, + props: { + label: 'label', + value: 'value' + }, + }, + ] +} +export const tableHBOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + selection: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '报销单号', + prop: 'applyNo', + }, + { + label: '报销部门', + prop: 'deptName', + }, + { + label: '经办人', + prop: 'createrName' + }, + { + label: '用途', + prop: 'reason', + }, + { + label: '类型', + prop: 'type', + }, + { + label: '单据状态', + prop: 'procInsStatus', + slot: true, + type: 'select', + dicData: PROC_INS_STATUS, + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '开始日期', + prop: 'startTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + hide: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '结束日期', + prop: 'endTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + hide: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '报销日期', + prop: 'createTime', + }, + { + label: '报销科目', + prop: 'projectNo', + }, + { + label: '金额', + prop: 'money' + }, + { + label: '付款状态', + prop: 'payStatus', + type: 'select', + dicData: PAY_STATUS, + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '支付单号', + prop: 'consolidatedPayNo', + addDisplay: false, + editDisplay: false, + }, + { + label: '同步用友', + prop: 'isSynchronYy', + addDisplay: false, + editDisplay: false, + type: 'select', + dicUrl: '/admin/dict/item/type/yes_no', + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '财政支付类型', + prop: 'czType', + addDisplay: false, + editDisplay: false, + type: 'select', + dicUrl: '/admin/dict/item/type/cz_type', + props: { + label: 'label', + value: 'label' + }, + }, + ] +} +export const tableHBListOption = { + border: true, + index: true, + columnBtn: false, + refreshBtn: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + selection: false, + showSummary: true, + sumColumnList: [ + { + name: 'money', + type: 'sum' + }, + ], + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '报销单号', + prop: 'applyNo', + }, + { + label: '报销部门', + prop: 'deptName' + }, + { + label: '经办人', + prop: 'createrName' + }, + { + label: '用途', + prop: 'reason', + }, + { + label: '类型', + prop: 'type', + }, + { + label: '单据状态', + prop: 'procInsStatus', + slot: true, + type: 'select', + dicData: PROC_INS_STATUS, + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '报销日期', + prop: 'createTime', + }, + { + label: '报销科目', + prop: 'projectNo', + }, + { + label: '金额', + prop: 'money' + }, + { + label: '付款状态', + prop: 'payStatus', + type: 'select', + dicData: PAY_STATUS, + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '支付单号', + prop: 'consolidatedPayNo', + addDisplay: false, + editDisplay: false, + }, + { + label: '同步用友', + prop: 'isSynchronYy', + addDisplay: false, + editDisplay: false, + type: 'select', + dicUrl: '/admin/dict/item/type/yes_no', + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '财政支付类型', + prop: 'czType', + addDisplay: false, + editDisplay: false, + type: 'select', + dicUrl: '/admin/dict/item/type/cz_type', + props: { + label: 'label', + value: 'label' + }, + }, + ] +} + + +export const tableHBListOption1 = { + border: true, + index: true, + columnBtn: false, + refreshBtn: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + selection: false, + showSummary: true, + sumColumnList: [ + { + name: 'money', + type: 'sum' + }, + ], + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '报销单号', + prop: 'applyNo', + }, + { + label: '报销部门', + prop: 'deptName' + }, + { + label: '经办人', + prop: 'createrName' + }, + { + label: '用途', + prop: 'reason', + }, + { + label: '类型', + prop: 'type', + }, + { + label: '单据状态', + prop: 'procInsStatus', + slot: true, + type: 'select', + dicData: PROC_INS_STATUS, + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '报销日期', + prop: 'createTime', + }, + { + label: '报销科目', + prop: 'projectNo', + }, + { + label: '金额', + prop: 'money' + }, + { + label: '付款状态', + prop: 'payStatus', + type: 'select', + dicData: PAY_STATUS, + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '支付单号', + prop: 'consolidatedPayNo', + addDisplay: false, + editDisplay: false, + }, + { + label: '同步用友', + prop: 'isSynchronYy', + addDisplay: false, + editDisplay: false, + type: 'select', + dicUrl: '/admin/dict/item/type/yes_no', + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '财政支付类型', + prop: 'czType', + addDisplay: false, + editDisplay: false, + type: 'select', + dicUrl: '/admin/dict/item/type/cz_type', + props: { + label: 'label', + value: 'label' + }, + }, + ] +} + diff --git a/src/const/crud/finance/financecategory.js b/src/const/crud/finance/financecategory.js new file mode 100755 index 0000000..5c20694 --- /dev/null +++ b/src/const/crud/finance/financecategory.js @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + tree: true, + page:false, + showColumn: false, + viewBtn:false, + filterBtn: false, + expandAll:true, + column: [ + { + label: '类别名称', + align:'left', + prop: 'cateName' + }, + { + label: '状态', + align:'center', + prop: 'addShow', + type:'select', + dicData:[ + {label:'显示',value:'1'}, + {label:'隐藏',value:'0'}, + ] + }, + { + label: '创建时间', + align:'left', + prop: 'createTime', + editDisabled:true, + addDisplay:false + } + ] +} diff --git a/src/const/crud/finance/financefundbudget.js b/src/const/crud/finance/financefundbudget.js new file mode 100644 index 0000000..b90d794 --- /dev/null +++ b/src/const/crud/finance/financefundbudget.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '部门名称', + prop: 'deptName', + search: true + }, + { + label: '项目编号', + prop: 'projectNo', + search: true, + }, + { + label: '项目名称', + prop: 'projectName', + search: true + }, + { + label: '转入金额', + prop: 'money' + } + ] +} diff --git a/src/const/crud/finance/financefundbudgetconfig.js b/src/const/crud/finance/financefundbudgetconfig.js new file mode 100644 index 0000000..a1a822b --- /dev/null +++ b/src/const/crud/finance/financefundbudgetconfig.js @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '部门名称', + prop: 'deptCode', + span: 12, + labelWidth: 80, + width: 120, + search: true, + type: 'select', + dicUrl: '/basic/basicdept/getDeptList?teachFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: "请填写部门名称", + trigger: "blur" + }] + }, + { + label: '精准奖励百分比', + prop: 'strictfpRate', + type: 'number', + labelWidth: 120, + minRows: 0, + maxRows: 100, + rules: [{ + required: true, + message: "精准奖励百分比", + trigger: "blur" + }] + }, + ] +} diff --git a/src/const/crud/finance/financefundbudgetreimbursement.js b/src/const/crud/finance/financefundbudgetreimbursement.js new file mode 100644 index 0000000..6052fae --- /dev/null +++ b/src/const/crud/finance/financefundbudgetreimbursement.js @@ -0,0 +1,162 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const TYPE = [{label: '精准奖励', value: '1'}, {label: '其他费用', value: '2'}]; +//流程状态 0: 等待部门审核 10: 等待部门审批 20:审批通过 -10: 经办人修改 -20 : 撤销申请 +export const PROC_INS_STATUS = [{label: '待审核', value: '0'}, {label: '待审批', value: '10'}, { + label: '通过', + value: '20' +}, {label: '驳回修改', value: '-10'}, {label: '撤销', value: '-20'}]; + + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '', + // prop: 'id' + // }, + // { + // label: '', + // prop: 'createBy' + // }, + // { + // label: '', + // prop: 'createTime' + // }, + // { + // label: '', + // prop: 'updateBy' + // }, + // { + // label: '', + // prop: 'updateTime' + // }, + // { + // label: '', + // prop: 'delFlag' + // }, + { + label: '报销日期', + prop: 'createTime', + width: "100px" + }, + { + label: '报销单号', + prop: 'applyNo', + search: true, + }, + { + label: '部门名称', + prop: 'deptCode', + span: 12, + labelWidth: 80, + width: 120, + search: true, + type: 'select', + dicUrl: '/basic/basicdept/getDeptList?teachFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: "请填写部门名称", + trigger: "blur" + }] + }, + { + label: '报销科目', + prop: 'projectName' + }, + { + label: '报销类型', + prop: 'type', + type: 'select', + search: true, + dicData: TYPE, + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '报销金额', + prop: 'money', + }, + { + label: '用途', + prop: 'reason', + }, + { + label: '发票数量', + prop: 'ticketNum', + }, + // { + // label: '流程实例ID', + // prop: 'procInsId' + // }, + + { + label: '经办人', + prop: 'createrName' + }, + { + label: '审核人', + prop: 'auditorName', + }, + // { + // label: '审核时间', + // prop: 'auditorTime' + // }, + { + label: '审批人', + prop: 'approverName' + }, + // { + // label: '审批时间', + // prop: 'approverTime' + // }, + + + { + label: '审核状态', + prop: 'procInsStatus', + dicData: PROC_INS_STATUS, + props: { + label: 'label', + value: 'value' + }, + search: true, + type: "select" + }, + // { + // label: '被拒原因', + // prop: 'refuseReason', + // slot: true + // }, + ] +} diff --git a/src/const/crud/finance/financefundssource.js b/src/const/crud/finance/financefundssource.js new file mode 100755 index 0000000..d18ab57 --- /dev/null +++ b/src/const/crud/finance/financefundssource.js @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import {TYPE_} from "../stuwork/buildingassemblyroomapply"; + +export const IS_SHOW=[ + { + label:'隐藏', + value:'0' + }, + { + label:'显示', + value:'1' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '来源名称', + prop: 'sourceName', + search:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入来源名称" + }] + }, + { + label: '排序', + prop: 'sort', + type:'number' + }, + { + label: '是否显示', + prop: 'isShow', + type:'select', + addDisplay:false, + editDisplay:false, + dicData:IS_SHOW, + search:true, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '指定人员', + prop: 'designeeNo', + formslot: true, + hide:true + }, + { + label: '指定人员', + prop: 'designeeName', + addDisplay:false, + editDisplay:false, + }, + // { + // label: '指定人员', + // prop: 'designee', + // formslot: true, + // }, + { + label: '创建时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true + }, + ] +} diff --git a/src/const/crud/finance/financenormalWait.js b/src/const/crud/finance/financenormalWait.js new file mode 100644 index 0000000..2e5dce9 --- /dev/null +++ b/src/const/crud/finance/financenormalWait.js @@ -0,0 +1,155 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menuWidth:70, + labelWidth:120, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '项目', + width:"60%", + prop: 'normalId', + type:'select', + search:true, + addDisplay:true, + editDisabled:true, + editDisplay:true, + dicUrl: '/finance/financenormalsetting/list', + props:{ + label:'settingName', + value:'id' + } + }, + { + label: '学号', + width:"50%", + prop: 'stuNo', + editDisabled:true, + editDisplay:true, + }, + { + label: '姓名', + width:"60%", + prop: 'realName', + }, + // { + // label: '班级', + // prop: 'classCode', + // }, + { + label: '班级', + width:"50%", + prop: 'classCode', + type:'select', + searchFilterable:true, + addDisplay:true, + editDisabled:true, + editDisplay:true, + dicUrl: '/basic/basicclass/queryUserClass', + props:{ + label:'classNo', + value:'classCode' + }, + rules: [{ + required: true, + message: '请输入收费类型', + trigger: 'blur' + }] + }, + { + label: '电话', + width:"50%", + prop: 'phone', + }, + // { + // label: '银行卡号', + // prop: 'bankCode', + // }, + // { + // label: '生源', + // prop: 'education', + // }, + { + label: '生源', + width:"50%", + prop: 'education', + type:"select", + dicUrl: '/admin/dict/item/type/pre_school_education', + editDisabled:true, + editDisplay:false, + }, + { + label: '学籍', + width:"50%", + prop: 'enrollStatus', + type:"select", + dicUrl: '/admin/dict/item/type/enroll_status', + }, + { + label: '状态', + width:"50%", + prop: 'stuStatus', + type:"select", + dicUrl: '/admin/dict/item/type/student_status', + }, + { + label: '住宿', + width:"50%", + prop: 'isStay', + }, + + { + label: '代办费材料费', + width:"80%", + prop: 'agencyMaterialFee', + slot:true, + }, + + { + label: '学费', + width:"80%", + prop: 'xf', + slot:true, + }, + { + label: '住宿费', + width:"80%", + prop: 'zsf', + slot:true, + },{ + label: '中德班学费', + width:"80%", + prop: 'zdxf', + slot:true, + }, + { + label: '备注', + prop: 'remarks', + slot:true + } + ] +} diff --git a/src/const/crud/finance/financenormalclasssetting.js b/src/const/crud/finance/financenormalclasssetting.js new file mode 100644 index 0000000..2549495 --- /dev/null +++ b/src/const/crud/finance/financenormalclasssetting.js @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '收费名称', + prop: 'normalId', + labelWidth:120, + type:'select', + search:true, + addDisplay:true, + editDisabled:true, + editDisplay:true, + dicUrl: '/finance/financenormalsetting/list', + props:{ + label:'settingName', + value:'id' + }, + rules: [{ + required: true, + message: '请输入收费类型', + trigger: 'blur' + }] + }, + { + label: '班号', + prop: 'classNo', + labelWidth:120 + }, + + { + label: '材料费', + prop: 'materialMoney' + }, + { + label: '代办费', + prop: 'agencyMoney' + }, + // { + // label: '学校代办费材料费', + // prop: 'agencyMaterialFee' + // }, + ] +} diff --git a/src/const/crud/finance/financenormalsetting.js b/src/const/crud/finance/financenormalsetting.js new file mode 100644 index 0000000..063cced --- /dev/null +++ b/src/const/crud/finance/financenormalsetting.js @@ -0,0 +1,116 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import fa from "element-ui/src/locale/lang/fa"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '收费名称', + prop: 'settingName', + labelWidth:120, + search:true, + rules: [{ + required: true, + message: '请输入收费名称', + trigger: 'blur' + }] + }, + { + label: '年份', + prop: 'year', + type: 'year', + labelWidth:120, + addDisplay:true, + editDisabled:true, + editDisplay:true, + format:'yyyy', + valueFormat:'yyyy', + rules: [{ + required: true, + message: '请输入年份', + trigger: 'blur' + }] + }, + { + label: '收费类型', + prop: 'type', + labelWidth:120, + type:'select', + addDisplay:true, + editDisabled:true, + editDisplay:true, + dicUrl: '/admin/dict/item/type/recruit_setting_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '请输入收费类型', + trigger: 'blur' + }] + }, + { + label: '状态', + prop: 'state', + labelWidth:120, + type:'select', + dicUrl: '/admin/dict/item/type/recruit_setting_status', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '请输入状态', + trigger: 'blur' + }] + }, + { + label: '截止时间', + prop: 'lastTime', + labelWidth:120, + type:'datetime', + span:24, + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '请选择时间', + trigger: 'blur' + }] + }, + { + label: '备注', + labelWidth:120, + prop: 'remarks', + type:'textarea', + span:24, + } + ] +} diff --git a/src/const/crud/finance/financenormalstu.js b/src/const/crud/finance/financenormalstu.js new file mode 100644 index 0000000..c74eb02 --- /dev/null +++ b/src/const/crud/finance/financenormalstu.js @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '年份', + prop: 'year', + search:true, + editDisabled:true, + editDisplay:true, + }, + { + label: '学号', + prop: 'stuNo', + search:true, + editDisabled:true, + editDisplay:true, + }, + { + label: '收费名称', + prop: 'normalId', + type:'select', + search:true, + addDisplay:true, + editDisabled:true, + editDisplay:true, + dicUrl: '/finance/financenormalsetting/list', + props:{ + label:'settingName', + value:'id' + } + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '电话号码', + prop: 'phone' + }, + { + label: '经办人工号', + prop: 'operater' + }, + { + label: '经办人姓名', + prop: 'operaterName' + }, + { + label: '备注', + prop: 'remarks' + } + ] +} diff --git a/src/const/crud/finance/financenormalstuproject.js b/src/const/crud/finance/financenormalstuproject.js new file mode 100644 index 0000000..5541474 --- /dev/null +++ b/src/const/crud/finance/financenormalstuproject.js @@ -0,0 +1,513 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import fa from "element-ui/src/locale/lang/fa"; + +export const tableOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menuWidth:120, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '收费项目', + prop: 'normalId', + type:'select', + hide:true, + search:true, + addDisplay:true, + editDisabled:true, + editDisplay:false, + dicUrl: '/finance/financenormalsetting/list', + props:{ + label:'settingName', + value:'id' + } + }, + { + label: '学院', + prop: 'deptCode', + width: '60%',//表格宽度 + search:true, + searchFilterable:true, + editDisabled:true, + editDisplay:false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props:{ + label:'deptName', + value:'deptCode' + }, + }, + { + label: '专业', + prop: 'majorCode', + hide:true, + // search:true, + searchFilterable:true, + editDisabled:true, + editDisplay:false, + type:'select', + dicUrl: '/basic/major/getMajorNameList', + props: { + label: 'majorName', + value: 'majorCode' + } + }, + { + label: '班号', + width: '50%',//表格宽度 + prop: 'classCode', + search:true, + searchFilterable:true, + editDisabled:true, + editDisplay:false, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classNo', + }, + }, + // { + // label: '班级', + // width: '50%',//表格宽度 + // prop: 'classCode', + // search:true, + // editDisabled:true, + // editDisplay:false, + // }, + { + label: '学号', + width: '50%',//表格宽度 + prop: 'stuNo', + search:true, + editDisabled:true, + editDisplay:true, + }, + { + label: '姓名', + prop: 'realName', + width: '50%',//表格宽度 + search:true, + editDisabled:true, + editDisplay:true + }, + { + label: '是否缴费', + width: '50%',//表格宽度 + prop: 'payStatus', + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/finance_pay_status', + props:{ + label:'label', + value:'value' + }, + editDisabled:true, + editDisplay:false, + }, + { + label: '电话', + prop: 'phone', + width: '60%',//表格宽度 + rules:[ + { validator: function (rule, value, callback) { + var reg=/^1[3456789]\d{9}$/; + if(!reg.test(value)){ + callback(new Error('请输入有效的手机号码')); + }else{ + callback() + } + }, trigger: 'blur' } + ] + }, + // { + // label: '银行卡号', + // width: '60%',//表格宽度 + // prop: 'bankCode', + // editDisabled:true, + // editDisplay:false, + // }, + { + label: '生源', + prop: 'education', + width: '50%',//表格宽度 + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/pre_school_education', + editDisabled:true, + editDisplay:false, + }, + { + label: '学籍', + prop: 'enrollStatus', + width: '50%',//表格宽度 + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/enroll_status', + editDisabled:true, + editDisplay:false, + }, + { + label: '在校状态', + width: '60%',//表格宽度 + prop: 'stuStatus', + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/student_status', + editDisabled:true, + editDisplay:false, + }, + { + label: '住宿', + width: '60%',//表格宽度 + prop: 'isStay', + editDisabled:true, + editDisplay:false, + }, + { + label: '材料费', + width: '50%',//表格宽度 + prop: 'clf', + type:'number', + precision:2 + }, + { + label: '代办费', + width: '50%',//表格宽度 + prop: 'dbf', + type:'number', + precision:2 + }, + { + label: '学校代办费材料费', + width: '50%',//表格宽度 + prop: 'agencyMaterialFee', + type:'number', + precision:2 + }, + { + label: '中德班', + width: '50%',//表格宽度 + prop: 'zdxf', + type:'number', + precision:2 + }, + { + label: '学费', + prop: 'xf', + type:'number', + precision:2, + slot:true, + editDisabled:false, + editDisplay:true, + }, + { + label: '住宿费', + width: '60%',//表格宽度 + prop: 'zsf', + type:'number', + precision:2 + }, + { + label: '应缴', + width: '50%',//表格宽度 + prop: 'payable', + editDisabled:true, + editDisplay:true, + }, + { + label: '已缴', + width: '50%',//表格宽度 + prop: 'handed', + editDisabled:true, + editDisplay:true, + + }, + { + label: '欠费', + width: '50%',//表格宽度 + prop: 'arrears', + editDisabled:true, + editDisplay:true, + }, + { + label: '提交状态', + width: '60%',//表格宽度 + prop: 'isSubmit', + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/normal_state', + props:{ + label:'label', + value:'value' + }, + editDisabled:true, + editDisplay:false, + }, + { + label: '备注', + labelWidth:120, + prop: 'remarks', + slot:true + }, + { + label: '是否推送成功', + width: '60%',//表格宽度 + prop: 'isTS', + editDisabled:true, + editDisplay:true + }, + { + label: '是否推送', + width: '60%',//表格宽度 + prop: 'grade', + search:true, + hide: true, + type:"select", + dicUrl: '/admin/dict/item/type/isTS', + props:{ + label:'label', + value:'value' + }, + editDisabled:true, + editDisplay:false, + }, + ] +} + + +export const tableOtherOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '收费项目', + prop: 'projectCode', + }, + { + label: '费用', + prop: 'money' + } + , + { + label: '状态', + prop: 'status', + type:"select", + dicUrl: '/admin/dict/item/type/finance_pay_status', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '缴费方式', + prop: 'payType', + type:"select", + dicUrl: '/admin/dict/item/type/finance_pay_way', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '缴费时间', + prop: 'payTime' + }, + { + label: '已支付费用', + prop: 'paiedMoney' + }, + { + label: '备注', + prop: 'remarks' + } + ] +} + + +export const tableDetailOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + align: 'center', + menu:false, + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '备注', + labelWidth:120, + prop: 'remarks', + }, + { + label: '班级', + width: '50%',//表格宽度 + prop: 'classCode', + editDisabled:true, + editDisplay:false, + }, + { + label: '学号', + width: '50%',//表格宽度 + prop: 'stuNo', + editDisabled:true, + editDisplay:true, + }, + { + label: '姓名', + prop: 'realName', + width: '50%',//表格宽度 + editDisabled:true, + editDisplay:true + }, + { + label: '是否缴费', + width: '50%',//表格宽度 + prop: 'payStatus', + type:"select", + dicUrl: '/admin/dict/item/type/finance_pay_status', + props:{ + label:'label', + value:'value' + }, + editDisabled:true, + editDisplay:false, + }, + { + label: '电话', + prop: 'phone', + width: '60%',//表格宽度 + rules:[ + { validator: function (rule, value, callback) { + var reg=/^1[3456789]\d{9}$/; + if(!reg.test(value)){ + callback(new Error('请输入有效的手机号码')); + }else{ + callback() + } + }, trigger: 'blur' } + ] + }, + { + label: '生源', + prop: 'education', + width: '50%',//表格宽度 + type:"select", + dicUrl: '/admin/dict/item/type/pre_school_education', + editDisabled:true, + editDisplay:false, + }, + { + label: '学籍', + prop: 'enrollStatus', + width: '50%',//表格宽度 + type:"select", + dicUrl: '/admin/dict/item/type/enroll_status', + editDisabled:true, + editDisplay:false, + }, + { + label: '在校状态', + width: '60%',//表格宽度 + prop: 'stuStatus', + type:"select", + dicUrl: '/admin/dict/item/type/student_status', + editDisabled:true, + editDisplay:false, + }, + { + label: '住宿', + width: '60%',//表格宽度 + prop: 'isStay', + editDisabled:true, + editDisplay:false, + }, + { + label: '材料费', + width: '50%',//表格宽度 + prop: 'clf', + }, + { + label: '代办费', + width: '50%',//表格宽度 + prop: 'dbf', + }, + { + label: '学校代办费材料费', + width: '50%',//表格宽度 + prop: 'agencyMaterialFee', + }, + { + label: '中德班', + width: '50%',//表格宽度 + prop: 'zdxf', + }, + { + label: '学费', + prop: 'xf', + editDisabled:false, + editDisplay:true, + }, + { + label: '住宿费', + width: '60%',//表格宽度 + prop: 'zsf', + }, + { + label: '应缴', + width: '50%',//表格宽度 + prop: 'payable', + editDisabled:true, + editDisplay:true, + }, + { + label: '已缴', + width: '50%',//表格宽度 + prop: 'handed', + editDisabled:true, + editDisplay:true, + + }, + { + label: '欠费', + width: '50%',//表格宽度 + prop: 'arrears', + editDisabled:true, + editDisplay:true, + }, + ] +} diff --git a/src/const/crud/finance/financenormalturnovesetting.js b/src/const/crud/finance/financenormalturnovesetting.js new file mode 100644 index 0000000..84b205a --- /dev/null +++ b/src/const/crud/finance/financenormalturnovesetting.js @@ -0,0 +1,131 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + + { + label: '收费名称', + prop: 'settingName', + labelWidth:120, + rules: [{ + required: true, + message: '请输入收费名称', + trigger: 'blur' + }] + }, + { + label: '收费类型', + prop: 'type', + dicUrl:'/admin/dict/item/type/recruit_setting_type', + props:{ + label:'label', + value:'value' + }, + type:"radio", + }, + // { + // label: '收费类型 0:非新生 6: 新生', + // prop: 'type', + // labelWidth:120, + // rules: [{ + // required: true, + // message: '请选择收费类型', + // trigger: 'blur' + // }] + // }, + { + label: '年份', + prop: 'year', + type:'number', + rules: [{ + required: true, + message: '请输入年份', + trigger: 'blur' + }] + }, + { + label: '停止编辑时间', + prop: 'lastTime', + type:'datetime', + format: 'yyyy-MM-dd HH:mm', + valueFormat: "yyyy-MM-dd hh:mm:ss", + rules: [{ + required: true, + message: '请选择时间', + trigger: 'blur' + }] + }, + { + label: '状态', + prop: 'state', + dicUrl:'/admin/dict/item/type/recruit_setting_status', + labelWidth:120, + props:{ + label:'label', + value:'value' + }, + type:"radio", + rules: [{ + required: true, + message: '请输入状态', + trigger: 'blur' + }] + }, + { + label: '备注', + labelWidth:120, + prop: 'remarks', + type:'textarea', + span:24, + }, + ] +} diff --git a/src/const/crud/finance/financenormalwholeclass.js b/src/const/crud/finance/financenormalwholeclass.js new file mode 100644 index 0000000..279969a --- /dev/null +++ b/src/const/crud/finance/financenormalwholeclass.js @@ -0,0 +1,206 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '收费项目', + prop: 'normalId', + type:'select', + search:true, + addDisplay:true, + editDisabled:false, + editDisplay:true, + dicUrl: '/finance/financenormalsetting/list', + props:{ + label:'settingName', + value:'id' + } + }, + { + label: '学院', + prop: 'deptCode', + labelWidth: 120, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + editDisabled:true, + editDisplay:true, + }, + { + label: '专业', + prop: 'majorCode', + labelWidth: 120, + type:'select', + dicUrl: '/basic/major/getMajorNameList', + props: { + label: 'majorName', + value: 'majorCode' + }, + editDisabled:true, + editDisplay:true, + }, + { + label: '班级', + prop: 'classCode', + search:true, + searchFilterable:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classNo', + }, + editDisabled:true, + editDisplay:true, + }, + { + label: '学费提交人', + prop: 'submitName', + editDisabled:true, + editDisplay:true, + }, + { + label: '提交状态', + prop: 'isState', + search:true, + type:"select", + editDisabled:true, + editDisplay:true, + dicUrl: '/admin/dict/item/type/normal_state', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '备注', + prop: 'remarks' + }, + + ] +} + + +export const tableOption2 = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + dic: [], + column: [ + { + label: '收费项目', + prop: 'normalId', + type:'select', + search:true, + addDisplay:true, + editDisabled:true, + editDisplay:true, + dicUrl: '/finance/financenormalsetting/list', + props:{ + label:'settingName', + value:'id' + } + }, + { + label: '学院', + prop: 'deptCode', + labelWidth: 120, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + editDisabled:true, + editDisplay:true, + }, + { + label: '专业', + prop: 'majorCode', + labelWidth: 120, + type:'select', + dicUrl: '/basic/major/getMajorNameList', + props: { + label: 'majorName', + value: 'majorCode' + }, + editDisabled:true, + editDisplay:true, + }, + // { + // label: '班级', + // prop: 'classCode', + // search:true, + // type:"select", + // dicUrl:'/basic/basicclass/list', + // props:{ + // label: 'classNo', + // value: 'classNo', + // }, + // editDisabled:true, + // editDisplay:true, + // }, + { + label: '班级', + prop: 'classCode', + search:true, + searchFilterable:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + editDisabled:true, + editDisplay:true, + }, + { + label: '提交状态', + prop: 'isState', + type:"select", + hide:true, + editDisabled:false, + editDisplay:true, + dicUrl: '/admin/dict/item/type/normal_state', + props:{ + label:'label', + value:'value' + }, + }, + ] +} diff --git a/src/const/crud/finance/financeorder.js b/src/const/crud/finance/financeorder.js new file mode 100755 index 0000000..19c1497 --- /dev/null +++ b/src/const/crud/finance/financeorder.js @@ -0,0 +1,315 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +const STATUS=[ + {label:'待提交',value:'0'}, + {label:'待审核',value:'100'}, + {label:'通过',value:'200'}, + {label:'驳回',value:'-100'} +] + +const BATCH_STATUS_DIC=[ + {label:'待提交',value:"0"}, + {label:'已提交,未付讫',value:"1"}, + {label:'已付款',value:"2"}, + {label:'驳回',value:"3"} +] + +const DICT_YES_OR_NO=[ + {label:"是",value:"1"}, + {label:"否",value:"0"} +] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + // selection:true, + reserveSelection:false, + menuWidth:100, + dic: [], + column: [ + { + label: '推送批次', + prop: 'batchNo', + addDisplay:false, + editDisabled:true, + search:true, + minWidth:145 + }, + { + label: '推送批次备注', + prop: 'remarks', + hide:true, + search:true + }, + { + label: '单号', + prop: 'orderNum', + addDisplay:false, + editDisabled:true, + search:true, + minWidth:180, + fontSize:10 + }, + { + label: '标题', + prop: 'title', + addDisplay:false, + editDisabled:true, + search:true, + minWidth:180, + fontSize:10 + }, + { + label: '项目编号', + prop: 'projectNo', + addDisplay:false, + editDisabled:true, + search:true, + minWidth:100 + }, + { + label: '造单总额(¥)', + prop: 'totalMoney', + display:false, + minWidth:120 + }, + { + label: '人员信息', + prop: 'userInfo', + searchTip:'姓名,身份证,工号', + hide:true, + display:false, + search:true + }, + { + label: '类别', + prop: 'cateId', + type:'tree', + dicUrl:'/finance/financecategory/cateTree', + rules: [{ + required: true, + message: '请选择类别', + trigger: 'blur' + }], + minWidth:100 + }, + { + label: '收入类目', + prop: 'fundChannel', + type:'select', + dicUrl:'/finance/financefundssource/list', + props:{ + label:'sourceName', + value:'id' + }, + search:true, + searchFilterable:true, + rules: [{ + required: true, + message: '请选择收入类目', + trigger: 'blur' + }], + minWidth:150 + }, + { + label: '状态', + prop: 'status', + type:'select', + search:true, + dicData:STATUS, + props:{ + label:'label', + value:'value' + }, + display:false + }, + { + label: '批次状态', + prop: 'batchStatus', + type:'select', + search:true, + dicData:BATCH_STATUS_DIC, + props:{ + label:'label', + value:'value' + }, + display:false + }, + // { + // label: '标记推送', + // prop: 'sendStatus', + // type:'select', + // search:true, + // dicData:DICT_YES_OR_NO, + // props:{ + // label:'label', + // value:'value' + // }, + // display:false + // }, + { + label: '通过时间', + prop: 'passTime', + type:'date', + format:'yyyy-MM-dd', + addDisplay:false, + editDisabled:true, + minWidth:120 + }, + { + label: '付讫时间', + prop: 'payTime', + type:'date', + search:true, + format:"yyyy-MM-dd", + valueFormat:"yyyy-MM-dd", + display:false, + minWidth:120 + }, + { + label: '是否导出', + prop: 'exportStatus', + type:'select', + search:true, + fixed:true, + slot:true, + dicData:DICT_YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + display:false + }, + { + label: '创建人', + prop: 'createBy', + hide:true, + addDisplay:false, + editDisabled:true + }, + { + label: '创建人', + prop: 'createByStr', + addDisplay:false, + editDisabled:true + }, + { + label: '审核人', + prop: 'examByStr', + }, + { + label: '创建时间', + prop: 'createTime', + type:'date', + format:"yyyy-MM-dd", + addDisplay:false, + editDisabled:true, + minWidth:120 + }, + + ] +} + +export const deptTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '部门', + prop: 'deptName' + }, + { + label: '发放金额', + prop: 'workMoney' + } + ] +} + +export const cateTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + + dic: [], + column: [ + { + label: '类目', + prop: 'cateName' + }, + { + label: '发放金额', + prop: 'workMoney' + } + ] +} + +export const detailFormOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + + dic: [], + column: [ + { + label: '部门', + prop: 'deptName' + }, + { + label: '类目', + prop: 'cateName' + }, + { + label: '单号', + prop: 'orderNum' + }, + { + label: '发放金额', + prop: 'workMoney' + } + ] +} + + diff --git a/src/const/crud/finance/financeorderbackrecord.js b/src/const/crud/finance/financeorderbackrecord.js new file mode 100644 index 0000000..aa89ff7 --- /dev/null +++ b/src/const/crud/finance/financeorderbackrecord.js @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const ERROR_TYPE=[ + {label:'驳回',value:'1'}, + {label:'人员信息异常',value:'2'}, +] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + menu:false, + column: [ + { + label: '异常类型', + prop: 'type', + type:'select', + dicData:ERROR_TYPE, + props:{ + label:'label', + value:'value', + } + }, + { + label: '异常原因', + prop: 'backReason' + }, + { + label: '驳回时间', + prop: 'createTime' + } + ] +} diff --git a/src/const/crud/finance/financeorderstaffrelation.js b/src/const/crud/finance/financeorderstaffrelation.js new file mode 100755 index 0000000..46a4475 --- /dev/null +++ b/src/const/crud/finance/financeorderstaffrelation.js @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '订单编号', + prop: 'orderNum' + }, + { + label: '人员id', + prop: 'userId' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '工号', + prop: 'teacherNo' + }, + { + label: '金额', + prop: 'money' + }, + { + label: '', + prop: 'createBy' + }, + { + label: '', + prop: 'createTime' + }, + { + label: '', + prop: 'updateBy' + }, + { + label: '', + prop: 'updateTime' + }, + { + label: '', + prop: 'delFlag' + }, + ] +} diff --git a/src/const/crud/finance/financeparttimestaff.js b/src/const/crud/finance/financeparttimestaff.js new file mode 100755 index 0000000..2ace8b5 --- /dev/null +++ b/src/const/crud/finance/financeparttimestaff.js @@ -0,0 +1,421 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {getDetailsByName} from "@/api/asset/assetdept/assetdept"; +import global from "@/components/tools/commondict"; + +const STATUS=[ + {label:'待审核',value:'0'}, + {label:'通过',value:'100'}, + {label:'驳回',value:'-100'} +] + +const ERROR_STATUS=[ + {label:"是",value:"1"}, + {label:"否",value:"0"} +] + +var validaterChinese = (rule, value, callback) => { + var reg = new RegExp("[\\u4E00-\\u9FFF]+$","g"); + if(!reg.test(value)){ + callback(new Error('开户行信息必须全为中文字符')); + } else { + callback(); + } +}; + +var validatePhone=(rule,value,callback)=>{ + var reg = new RegExp("^\\d{11}$", "g"); + if(!reg.test(value)){ + callback(new Error('请填写11位的手机号码')); + } else { + callback(); + } +} + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:600, + column: [ + { + label: '姓名', + prop: 'realName', + addDisabled: true, + search:true, + rules: [{ + required: true, + message: '请填写姓名', + trigger: 'blur' + }] + }, + { + label: '性别', + prop: 'sex', + props:{ + label:'label', + value:'value' + }, + type:"radio", + dicUrl:'/admin/dict/item/type/sexy', + addDisabled: true, + editDisabled: true, + rules: [{ + required: true, + message: '请选择性别', + trigger: 'blur' + }] + }, + { + label: '出生年月', + prop: 'birthDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + addDisabled: true, + editDisabled: true, + rules: [{ + required: true, + message: '请填写出生年月', + trigger: 'blur' + }] + }, + { + label: '住址', + prop: 'nativePlace', + addDisabled: true, + editDisabled: true, + }, + { + label: '民族', + prop: 'nation', + addDisabled: true, + editDisabled: true, + }, + { + label: '电话', + prop: 'phone', + search:true, + rules: [{ + required: true, + message: '请填写电话', + trigger: 'blur' + }, + {validator: validatePhone, trigger: 'blur'} + ] + }, + // { + // label: '银行卡类别', + // prop: 'bankCardType' + // }, + { + label: '银行卡号', + prop: 'bankCardNo', + rules: [{ + required: true, + message: '请填写银行卡号', + trigger: 'blur' + }] + }, + { + label: '开户行', + prop: 'bankCardOpen', + placeholder:'请输入全中文开户行信息', + rules: [{ + required: true, + message: '请输入全中文开户行信息', + trigger: 'blur' + }, + {validator: validaterChinese, trigger: 'blur'} + ] + }, + { + label: '身份证', + prop: 'idCard', + search:true, + disabled:true, + rules: [{ + required: true, + message: '请填写身份证号', + trigger: 'blur' + }] + }, + { + label: '职称', + prop: 'qualifications' + }, + { + label: '职称证明', + prop: 'qualificationsPic', + formslot:true, + slot:true + }, + { + label: '银行卡(正)', + prop: 'bankCardPic', + formslot:true, + slot:true, + hide:true, + rules: [{ + required: true, + message: '请上传银行卡正面', + trigger: 'blur' + }] + }, + { + label: '身份证(人像)', + prop: 'cardPicFront', + formslot:true, + slot:true, + editDisplay:false, + rules: [{ + required: true, + message: '请上传正面身份证', + trigger: 'blur' + }] + + }, + { + label: '身份证(国徽)', + prop: 'cardPicBack', + formslot:true, + editDisplay:false, + slot:true, + rules: [{ + required: true, + message: '请上传反面身份证', + trigger: 'blur' + }] + }, + // { + // label: '创建时间', + // prop: 'createTime', + // addDisplay:false, + // editDisabled:true + // }, + { + label: '创建人', + prop: 'createName', + }, + { + label: '备注', + prop: 'remark', + type:'textarea' + }, + { + label: '是否异常', + prop: 'errorStatus', + slot:true, + search:true, + type:'select', + dicData:ERROR_STATUS, + props:{ + label:'label', + value:'value' + } + }, + // { + // label: '状态', + // prop: 'status', + // type:'select', + // search:true, + // dicData:STATUS, + // props:{ + // label:'label', + // value:'value' + // }, + // display:false + // }, + ] +} + + +export const financeAdminTalbeOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:600, + column: [ + { + label: '姓名', + prop: 'realName', + search:true, + rules: [{ + required: true, + message: '请填写姓名', + trigger: 'blur' + }] + }, + { + label: '性别', + prop: 'sex', + props:{ + label:'label', + value:'value' + }, + type:"radio", + dicUrl:'/admin/dict/item/type/sexy', + display:false, + }, + { + label: '出生年月', + prop: 'birthDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + display:false, + }, + { + label: '住址', + prop: 'nativePlace', + }, + { + label: '民族', + prop: 'nation' + }, + { + label: '电话', + prop: 'phone', + search:true, + rules: [{ + required: true, + message: '请填写电话', + trigger: 'blur' + }, + {validator: validatePhone, trigger: 'blur'} + ] + }, + // { + // label: '银行卡类别', + // prop: 'bankCardType' + // }, + { + label: '银行卡号', + prop: 'bankCardNo', + rules: [{ + required: true, + message: '请填写银行卡号', + trigger: 'blur' + }] + }, + { + label: '开户行', + prop: 'bankCardOpen', + placeholder:'请输入全中文开户行信息', + rules: [{ + required: true, + message: '请输入全中文开户行信息', + trigger: 'blur' + }, + {validator: validaterChinese, trigger: 'blur'} + ] + }, + { + label: '身份证', + prop: 'idCard', + search:true, + rules: [{ + required: true, + message: '请填写身份证号', + trigger: 'blur' + }] + }, + { + label: '职称', + prop: 'qualifications' + }, + { + label: '职称证明', + prop: 'qualificationsPic', + formslot:true, + slot:true + }, + { + label: '银行卡(正)', + prop: 'bankCardPic', + formslot:true, + slot:true, + hide:true + }, + { + label: '身份证(人像)', + prop: 'cardPicFront', + formslot:true, + slot:true + + }, + { + label: '身份证(国徽)', + prop: 'cardPicBack', + formslot:true, + slot:true, + }, + { + label: '创建时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true + }, + { + label: '备注', + prop: 'remark', + type:'textarea' + }, + { + label: '创建人', + prop: 'createName', + }, + { + label: '是否异常', + prop: 'errorStatus', + slot:true, + search:true, + type:'select', + dicData:ERROR_STATUS, + props:{ + label:'label', + value:'value' + } + }, + // { + // label: '状态', + // prop: 'status', + // type:'select', + // search:true, + // dicData:STATUS, + // props:{ + // label:'label', + // value:'value' + // }, + // display:false + // }, + ] +} + diff --git a/src/const/crud/finance/financereimbursementmultiple.js b/src/const/crud/finance/financereimbursementmultiple.js new file mode 100644 index 0000000..affeef2 --- /dev/null +++ b/src/const/crud/finance/financereimbursementmultiple.js @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + showSummary:true, + sumColumnList: [ + { + name: 'money', + type: 'sum' + } + ], + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '报销单号', + prop: 'applyNo', + addDisplay: false, + editDisabled: false + }, + { + label: '单笔金额', + prop: 'money' + }, + { + label: '财政支付类别', + prop: 'czType', + addDisplay: false, + editDisabled: false + }, + { + label: '报销总金额', + prop: 'totalMoney', + addDisplay: false, + editDisabled: false + }, + { + label: '创建时间', + prop: 'createTime', + addDisplay: false, + editDisabled: false + }, + ] +} diff --git a/src/const/crud/finance/financesetting.js b/src/const/crud/finance/financesetting.js new file mode 100755 index 0000000..1b86630 --- /dev/null +++ b/src/const/crud/finance/financesetting.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: true, + delBtn: false, + addBtn: false, + dic: [], + dialogHeight:200, + column: [ + { + label: '每月造单截止日', + prop: 'value', + type:'number', + row:true, + labelWidth:200 + } + ] +} diff --git a/src/const/crud/finance/financessraccount.js b/src/const/crud/finance/financessraccount.js new file mode 100644 index 0000000..0d699a2 --- /dev/null +++ b/src/const/crud/finance/financessraccount.js @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + hide: true, + label: '', + prop: 'id' + }, + { + label: '开户时间', + prop: 'createTime' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '工号/学号', + prop: 'username' + }, + + { + label: '身份证号码', + prop: 'idNumber' + }, + + { + label: '账户金额', + prop: 'money' + }, + ] +} diff --git a/src/const/crud/finance/financetaxrule.js b/src/const/crud/finance/financetaxrule.js new file mode 100755 index 0000000..b78d7d3 --- /dev/null +++ b/src/const/crud/finance/financetaxrule.js @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '金额小值', + prop: 'moneyMin', + type:'number', + precision:2 + }, + { + label: '金额大值', + prop: 'moneyMax', + type:'number', + precision:2 + }, + { + label: '计算的金额比例', + prop: 'taxRate', + type:'number', + precision:2 + }, + { + label: '计算前扣除金额', + prop: 'preDeductMoney', + type:'number', + precision:2 + }, + { + label: '预扣率', + prop: 'deductRate', + type:'number', + precision:2 + }, + { + label: '速算扣除数', + prop: 'deductMoney', + type:'number', + precision:2 + }, + // { + // label: '税收比例', + // prop: 'taxRate', + // type:'number', + // precision:2 + // }, + { + label: '排序', + prop: 'sort', + type:'number' + } + ] +} diff --git a/src/const/crud/finance/financetemporarycateaccumulated.js b/src/const/crud/finance/financetemporarycateaccumulated.js new file mode 100644 index 0000000..c24d2d5 --- /dev/null +++ b/src/const/crud/finance/financetemporarycateaccumulated.js @@ -0,0 +1,86 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '部门', + prop: 'deptCode', + type:'select', + search:true, + editDisabled: true, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '使用人', + prop: 'userPeople', + type: 'select', + search:true, + filterable:true, + editDisabled: true, + dicUrl: '/professional/teacherbase/TeacherBaseList', + props: { + label: 'realName', + value: 'teacherNo', + }, + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '金额', + prop: 'allMoney' + }, + + { + label: '备注', + prop: 'remark' + }, + { + label: '是否启用', + prop: 'isEnable', + type:'select', + span:24, + defaultValue:'0', + dicUrl:'/admin/dict/item/type/yes_no', + + props:{ + label:'label', + value:'value' + }, + }, + { + label: '停用原因', + prop: 'enableRemark' + }, + ] +} diff --git a/src/const/crud/finance/financetemporarycateapply.js b/src/const/crud/finance/financetemporarycateapply.js new file mode 100644 index 0000000..58a4755 --- /dev/null +++ b/src/const/crud/finance/financetemporarycateapply.js @@ -0,0 +1,174 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {YES_OR_NO} from "@/const/crud/asset/assets/assetassets"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '单号', + prop: 'applyNo', + search:true, + addDisplay: false, + editDisplay: false, + }, + { + label: '预算项目', + prop: 'budgetId', + type: 'select', + span:24, + dicUrl: '/finance/financetemporarycatebudget/list', + props: { + label: 'title', + value: 'id' + }, + rules: [{ //自定义规则 + required: true, + trigger: 'blur', + message:"请选择项目" + }], + search:true + }, + { + label: '申请时间', + prop: 'createTime', + type:'date', + format:'yyyy-MM-dd HH:mm:ss', + addDisplay: false, + editDisplay: false, + rules: [{ //自定义规则 + required: true, + trigger: 'blur', + message:"请选择申请时间" + }], + }, + + { + label: '申请人', + prop: 'userPeople', + type: 'select', + filterable:true, + addDisplay: false, + editDisplay: false, + search:true, + dicUrl: '/finance/financetemporarycatebudget/listUserPeople', + props: { + label: 'remark', + value: 'userPeople', + }, + }, + { + label: '申请金额', + prop: 'money', + type:'number', + span:24, + precision: 2, + min:0, + rules:[ + { + required: true, + trigger: 'blur', + message:"请填写申请金额" + } + ] + }, + { + label: '对方单位或报销收款人', + prop: 'formObj', + span:24, + rules:[ + { + required: true, + trigger: 'blur', + message:"请填写对方单位或报销收款人" + } + ] + }, + { + label: '发票', + prop: 'fpUrl', + span:24, + slot: true, + formslot: true + }, + { + label: '附件', + span:24, + prop: 'fjUrl', + slot: true, + formslot: true + }, + { + label: '申请原因', + span:24, + prop: 'applyRemark', + type:'textarea', + row:true, + }, + + { + label: '是否付讫', + prop: 'isPaid', + type: 'select', + search:true, + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + addDisplay: false, + editDisplay: false, + }, + { + label: '是否撤销', + prop: 'isCancel', + type: 'select', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + addDisplay: false, + editDisplay: false, + }, + { + label: '财务记账凭证', + prop: 'jzUrl', + addDisplay: false, + editDisplay: false, + span:24, + slot: true, + formslot: true + }, + { + label: '财务备注', + prop: 'cwRemark', + addDisplay: false, + editDisplay: false, + }, + ] +} diff --git a/src/const/crud/finance/financetemporarycatebudget.js b/src/const/crud/finance/financetemporarycatebudget.js new file mode 100644 index 0000000..7cb1e9a --- /dev/null +++ b/src/const/crud/finance/financetemporarycatebudget.js @@ -0,0 +1,252 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '类目', + prop: 'projectName', + labelWidth:120, + type:'tree', + editDisabled: true, + span: 24, + dicUrl: '/finance/financetemporarycatetwo/tree', + props: { + label: 'title', + value: 'id' + }, + rules: [{ //自定义规则 + required: true, + trigger: 'blur', + message:"请选择项目" + }], + search:true + }, + { + label: '缴费人', + prop: 'payPeople', + labelWidth:120, + filterable:true, + rules: [ + { max: 20, message: '长度最多 20 个字符', trigger: 'blur' }, + // { validator: rule.validatorNameCn, trigger: 'blur'} + ] + }, + { + label: '缴费时间', + prop: 'payTime', + labelWidth:120, + + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + + }, + { + label: '部门', + prop: 'deptCode', + type:'select', + search:true, + labelWidth:120, + filterable:true, + searchFilterable:true, + editDisplay: false, + addDisplay: false, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写部门" + }], + }, + { + label: '使用部门', + prop: 'deptCodeVal', + type:'select', + editDisabled: true, + labelWidth:120, + hide:true, + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + trigger: 'blur', + message: "请选择使用部门" + }], + formslot: true + }, + { + label: '使用人', + prop: 'userPeopleVal', + labelWidth:120, + type: 'select', + hide:true, + filterable:true, + editDisabled: true, + formslot: true, + rules: [{ + required: true, + trigger: 'blur', + message: "请选择使用人" + }], + }, + { + label: '使用人', + prop: 'userPeople', + search:true, + searchFilterable:true, + type: 'select', + filterable:true, + editDisplay: false, + addDisplay: false, + dicUrl: '/finance/financetemporarycatebudget/listUserPeople', + props: { + label: 'remark', + value: 'userPeople', + }, + rules: [{ + required: true, + trigger: 'blur', + message: "请选择使用人" + }], + }, + { + label: '创建时间', + prop: 'createTime', + addDisplay: false, + editDisplay: false + }, + + { + label: '总金额(元)', + prop: 'allMoney', + type:'number', + labelWidth:120, + precision:2, + editDisabled: true, + span: 24, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写金额" + }], + }, + { + label: '已用金额(元)', + prop: 'hasMoney', + type:'number', + precision:2, + labelWidth:120, + editDisplay: false, + addDisplay: false, + span: 24, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写金额" + }], + }, + { + label: '结余金额(元)', + prop: 'leftMoney', + type:'number', + precision:2, + labelWidth:120, + editDisplay: false, + addDisplay: false, + slot:true + + }, + { + label: '是否启用', + prop: 'isEnable', + type:'select', + span:24, + search:true, + labelWidth:120, + defaultValue:'1', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择是否启用" + }], + }, + { + label: '是否滚存', + prop: 'isGc', + type:'select', + search:true, + labelWidth:120, + + span:24, + addDisplay: false, + editDisplay: false, + defaultValue:'0', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择是否滚存" + }], + }, + { + label: '停用备注', + prop: 'enableRemark', + span:24, + labelWidth:120, + + type:'textarea', + row:true, + }, + { + label: '备注', + prop: 'remark', + labelWidth:120, + + span: 24, + type:'textarea', + row:true, + }, + + + ], +} diff --git a/src/const/crud/finance/financetemporarycategcstatement.js b/src/const/crud/finance/financetemporarycategcstatement.js new file mode 100644 index 0000000..70253a4 --- /dev/null +++ b/src/const/crud/finance/financetemporarycategcstatement.js @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const typeList=[ + { + label:'加', + value:'0' + }, + { + label:'减', + value:'1' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu:false, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '项目', + // prop: 'budgetId', + // type:'tree', + // span: 24, + // search:true, + // clearable:true, + // dicUrl: '/finance/financetemporarycateaccumulated/list', + // props: { + // label: 'title', + // value: 'id' + // }, + // }, + { + label: '操作人员', + prop: 'createBy', + filterable:true, + dicUrl: '/professional/teacherbase/TeacherBaseList', + props: { + label: 'realName', + value: 'teacherNo', + }, + }, + { + label: '操作时间', + prop: 'createTime' + }, + { + label: '使用人', + type: 'select', + prop: 'userPeople', + filterable:true, + clearable:true, + dicUrl: '/professional/teacherbase/TeacherBaseList', + props: { + label: 'realName', + value: 'teacherNo', + }, + }, + { + label: '类型', + prop: 'type', + type:'select', + dicData:typeList, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '金额', + prop: 'money' + }, + { + label: '备注', + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/finance/financetemporarycateone.js b/src/const/crud/finance/financetemporarycateone.js new file mode 100644 index 0000000..11af858 --- /dev/null +++ b/src/const/crud/finance/financetemporarycateone.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '名称', + prop: 'title', + rules: [{ + required: true, + message: '请输入名称', + trigger: 'blur' + }], + search:true + }, + ] +} diff --git a/src/const/crud/finance/financetemporarycatestatement.js b/src/const/crud/finance/financetemporarycatestatement.js new file mode 100644 index 0000000..eb42517 --- /dev/null +++ b/src/const/crud/finance/financetemporarycatestatement.js @@ -0,0 +1,97 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const typeList=[ + { + label:'加', + value:'0' + }, + { + label:'减', + value:'1' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '项目', + prop: 'budgetId', + type:'select', + span: 24, + clearable:true, + dicUrl: '/finance/financetemporarycatebudget/list', + props: { + label: 'title', + value: 'id' + }, + }, + { + label: '操作人员', + prop: 'createBy', + filterable:true, + dicUrl: '/professional/teacherbase/TeacherBaseList', + props: { + label: 'realName', + value: 'teacherNo', + }, + }, + { + label: '操作时间', + prop: 'createTime' + }, + { + label: '使用人', + type: 'select', + prop: 'userPeople', + filterable:true, + clearable:true, + dicUrl: '/professional/teacherbase/TeacherBaseList', + props: { + label: 'realName', + value: 'teacherNo', + }, + }, + { + label: '类型', + prop: 'type', + type:'select', + dicData:typeList, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '金额', + prop: 'money' + }, + { + label: '备注', + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/finance/financetemporarycatetwo.js b/src/const/crud/finance/financetemporarycatetwo.js new file mode 100644 index 0000000..e00630b --- /dev/null +++ b/src/const/crud/finance/financetemporarycatetwo.js @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '一级类目', + prop: 'parentId', + type:'select', + dicUrl: '/finance/financetemporarycateone/list', + props: { + label: 'title', + value: 'id' + }, + rules: [{ + required: true, + message: '请选择一级类目', + trigger: 'blur' + }], + search:true + }, + { + label: '名称', + prop: 'title', + rules: [{ + required: true, + message: '请输入名称', + trigger: 'blur' + }], + search:true + }, + { + label: '代码', + prop: 'code', + rules: [{ + required: true, + message: '请输入代码', + trigger: 'blur' + }], + }, + { + label: '类型', + prop: 'type', + type:'select', + dicData:[{label:"统一支出",value:"0"},{label:"分项支出",value:"1"}], + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '请选择类型', + trigger: 'blur' + }], + + }, + { + label: '是否允许报销', + prop: 'isBx', + labelWidth: 160, + span: 24, + type:'select', + dicData:[{label:"否",value:"0"},{label:"是",value:"1"}], + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '请选择是否允许报销', + trigger: 'blur' + }], + + }, + { + label: '是否允许上传文件', + prop: 'isUpdate', + labelWidth: 160, + span: 24, + type:'select', + dicData:[{label:"否",value:"0"},{label:"是",value:"1"}], + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '请选择是否允许上传文件', + trigger: 'blur' + }], + + }, + ] +} diff --git a/src/const/crud/finance/financetemporarychargessetting.js b/src/const/crud/finance/financetemporarychargessetting.js new file mode 100644 index 0000000..4ac0ae0 --- /dev/null +++ b/src/const/crud/finance/financetemporarychargessetting.js @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import fa from "element-ui/src/locale/lang/fa"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '收费名称', + prop: 'settingName', + labelWidth:120, + search:true, + rules: [{ + required: true, + message: '请输入收费名称', + trigger: 'blur' + }] + }, + { + label: '年份', + prop: 'year', + type: 'year', + labelWidth:120, + addDisplay:true, + editDisabled:true, + editDisplay:false, + format:'yyyy', + valueFormat:'yyyy', + rules: [{ + required: true, + message: '请输入年份', + trigger: 'blur' + }] + }, + { + label: '年份', + prop: 'years', + labelWidth:120, + hide:true, + addDisplay:false, + editDisabled:true, + editDisplay:true, + format:'yyyy', + valueFormat:'yyyy', + rules: [{ + required: true, + message: '请输入年份', + trigger: 'blur' + }] + }, + { + label: '备注', + labelWidth:120, + prop: 'remarks', + type:'textarea', + span:24, + } + ] +} diff --git a/src/const/crud/finance/financetemporarychargesstu.js b/src/const/crud/finance/financetemporarychargesstu.js new file mode 100644 index 0000000..705d0db --- /dev/null +++ b/src/const/crud/finance/financetemporarychargesstu.js @@ -0,0 +1,241 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '收费项目', + prop: 'settingId', + type:'select', + search:true, + addDisplay:true, + editDisabled:true, + editDisplay:true, + dicUrl: '/finance/financetemporarychargessetting/list', + props:{ + label:'settingName', + value:'id' + },rules: [{ + required: true, + message: '收费项目不能为空', + trigger: 'blur' + }] + }, + { + label: '学院', + prop: 'deptCode', + search:true, + searchFilterable:true, + editDisplay:false, + addDisplay: false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props:{ + label:'deptName', + value:'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + search:true, + type:"select", + editDisabled: true, + searchFilterable:true, + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classNo', + },rules: [{ + required: true, + message: '班级不能为空', + trigger: 'blur' + }] + }, + { + label: '学号', + prop: 'stuNo', + search:true, + editDisplay:true, + editDisabled: true, + addDisplay: false + }, + { + label: '姓名', + prop: 'realName', + search:true, + editDisplay:true, + editDisabled: true, + addDisplay: false + }, + { + label: '电话', + prop: 'phone', + }, + { + label: '学费', + prop: 'tuitionMoney' + }, + { + label: '代办费', + prop: 'agencyMoney' + }, + { + label: '住宿费', + prop: 'lodgingMoney' + }, + { + label: '是否推送', + prop: 'needTS', + type:"select", + dicUrl: '/admin/dict/item/type/isTS', + props:{ + label:'label', + value:'value' + }, + editDisabled:false, + editDisplay:false, + }, + { + label: '创建时间', + prop: 'createTime', + editDisplay:false, + addDisplay: false, + } + ] +} + +export const tableDetailOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + align: 'center', + menu:false, + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '备注', + labelWidth:120, + prop: 'remarks', + }, + { + label: '班级', + prop: 'classCode', + editDisabled:true, + editDisplay:false, + }, + { + label: '学号', + prop: 'stuNo', + editDisabled:true, + editDisplay:true, + }, + { + label: '姓名', + prop: 'realName', + editDisabled:true, + editDisplay:true + }, + { + label: '是否缴费', + prop: 'payStatus', + type:"select", + dicUrl: '/admin/dict/item/type/finance_pay_status', + props:{ + label:'label', + value:'value' + }, + editDisabled:true, + editDisplay:false, + }, + { + label: '电话', + prop: 'phone', + rules:[ + { validator: function (rule, value, callback) { + var reg=/^1[3456789]\d{9}$/; + if(!reg.test(value)){ + callback(new Error('请输入有效的手机号码')); + }else{ + callback() + } + }, trigger: 'blur' } + ] + }, + { + label: '生源', + prop: 'education', + type:"select", + dicUrl: '/admin/dict/item/type/pre_school_education', + editDisabled:true, + editDisplay:false, + }, + { + label: '学籍', + prop: 'enrollStatus', + type:"select", + dicUrl: '/admin/dict/item/type/enroll_status', + editDisabled:true, + editDisplay:false, + }, + { + label: '学费', + prop: 'xf', + }, + { + label: '代办费', + prop: 'dbf', + }, + { + label: '住宿费', + prop: 'zsf', + }, + { + label: '应缴', + prop: 'payable', + editDisabled:true, + editDisplay:true, + }, + { + label: '已缴', + prop: 'handed', + editDisabled:true, + editDisplay:true, + + }, + { + label: '欠费', + prop: 'arrears', + editDisabled:true, + editDisplay:true, + }, + ] +} diff --git a/src/const/crud/finance/financetemporaryclasssetting.js b/src/const/crud/finance/financetemporaryclasssetting.js new file mode 100644 index 0000000..e62343e --- /dev/null +++ b/src/const/crud/finance/financetemporaryclasssetting.js @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '收费名称', + prop: 'settingId', + labelWidth:120, + type:'select', + search:true, + addDisplay:true, + editDisabled:true, + editDisplay:true, + dicUrl: '/finance/financetemporarychargessetting/list', + props:{ + label:'settingName', + value:'id' + }, + rules: [{ + required: true, + message: '请输入收费类型', + trigger: 'blur' + }] + }, + { + label: '班号', + prop: 'classCode', + labelWidth:120, + type:'select', + search:true, + searchFilterable:true, + addDisplay:true, + editDisabled:true, + editDisplay:true, + dicUrl: '/basic/basicclass/queryUserAllClass', + props:{ + label:'classNo', + value:'classNo' + }, + rules: [{ + required: true, + message: '请输入收费类型', + trigger: 'blur' + }] + }, + { + label: '学费', + prop: 'xf' + }, + { + label: '代办费', + prop: 'agencyMoney' + }, + { + label: '住宿费', + prop: 'zsf' + }, + ] +} diff --git a/src/const/crud/finance/financetemporarysetting.js b/src/const/crud/finance/financetemporarysetting.js new file mode 100644 index 0000000..c774fa8 --- /dev/null +++ b/src/const/crud/finance/financetemporarysetting.js @@ -0,0 +1,116 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import fa from "element-ui/src/locale/lang/fa"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '收费名称', + prop: 'settingName', + labelWidth:120, + search:true, + rules: [{ + required: true, + message: '请输入收费名称', + trigger: 'blur' + }] + }, + { + label: '年份', + prop: 'year', + type: 'year', + labelWidth:120, + addDisplay:true, + editDisabled:true, + editDisplay:true, + format:'yyyy', + valueFormat:'yyyy', + rules: [{ + required: true, + message: '请输入年份', + trigger: 'blur' + }] + }, + { + label: '年级', + prop: 'grade', + labelWidth:120, + type:'select', + addDisplay:true, + editDisabled:true, + editDisplay:true, + dicUrl: '/admin/dict/item/type/year', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '请输入收费类型', + trigger: 'blur' + }] + }, + { + label: '状态', + prop: 'state', + labelWidth:120, + type:'select', + dicUrl: '/admin/dict/item/type/recruit_setting_status', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '请输入状态', + trigger: 'blur' + }] + }, + { + label: '截止时间', + prop: 'lastTime', + labelWidth:120, + type:'datetime', + span:24, + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '请选择时间', + trigger: 'blur' + }] + }, + { + label: '备注', + labelWidth:120, + prop: 'remarks', + type:'textarea', + span:24, + } + ] +} diff --git a/src/const/crud/finance/financetemporarystu.js b/src/const/crud/finance/financetemporarystu.js new file mode 100644 index 0000000..fb1e868 --- /dev/null +++ b/src/const/crud/finance/financetemporarystu.js @@ -0,0 +1,512 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableDetailOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + align: 'center', + menu:false, + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '备注', + labelWidth:120, + prop: 'remarks', + }, + { + label: '班级', + prop: 'classCode', + editDisabled:true, + editDisplay:false, + }, + { + label: '学号', + prop: 'stuNo', + editDisabled:true, + editDisplay:true, + }, + { + label: '姓名', + prop: 'realName', + editDisabled:true, + editDisplay:true + }, + { + label: '是否缴费', + prop: 'payStatus', + type:"select", + dicUrl: '/admin/dict/item/type/finance_pay_status', + props:{ + label:'label', + value:'value' + }, + editDisabled:true, + editDisplay:false, + }, + { + label: '电话', + prop: 'phone', + rules:[ + { validator: function (rule, value, callback) { + var reg=/^1[3456789]\d{9}$/; + if(!reg.test(value)){ + callback(new Error('请输入有效的手机号码')); + }else{ + callback() + } + }, trigger: 'blur' } + ] + }, + { + label: '生源', + prop: 'education', + type:"select", + dicUrl: '/admin/dict/item/type/pre_school_education', + editDisabled:true, + editDisplay:false, + }, + { + label: '学籍', + prop: 'enrollStatus', + type:"select", + dicUrl: '/admin/dict/item/type/enroll_status', + editDisabled:true, + editDisplay:false, + }, + { + label: '在校状态', + prop: 'stuStatus', + type:"select", + dicUrl: '/admin/dict/item/type/student_status', + editDisabled:true, + editDisplay:false, + }, + { + label: '材料费', + prop: 'clf', + }, + { + label: '代办费', + prop: 'dbf', + }, + { + label: '应缴', + prop: 'payable', + editDisabled:true, + editDisplay:true, + }, + { + label: '已缴', + prop: 'handed', + editDisabled:true, + editDisplay:true, + + }, + { + label: '欠费', + prop: 'arrears', + editDisabled:true, + editDisplay:true, + }, + ] +} + + +export const tableOtherOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menuWidth:120, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '临时收费项目', + prop: 'normalId', + type:'select', + hide:true, + search:true, + addDisplay:true, + editDisabled:true, + editDisplay:false, + dicUrl: '/finance/financetemporarysetting/list', + props:{ + label:'settingName', + value:'id' + } + }, + { + label: '学院', + prop: 'deptCode', + width: '60%',//表格宽度 + search:true, + searchFilterable:true, + editDisabled:true, + editDisplay:false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props:{ + label:'deptName', + value:'deptCode' + }, + }, + { + label: '专业', + prop: 'majorCode', + hide:true, + // search:true, + searchFilterable:true, + editDisabled:true, + editDisplay:false, + type:'select', + dicUrl: '/basic/major/getMajorNameList', + props: { + label: 'majorName', + value: 'majorCode' + } + }, + { + label: '班级', + width: '50%',//表格宽度 + prop: 'classCode', + search:true, + editDisabled:true, + editDisplay:false, + }, + { + label: '学号', + width: '50%',//表格宽度 + prop: 'stuNo', + search:true, + editDisabled:true, + editDisplay:true, + }, + { + label: '姓名', + prop: 'realName', + width: '50%',//表格宽度 + search:true, + editDisabled:true, + editDisplay:true + }, + { + label: '是否缴费', + width: '50%',//表格宽度 + prop: 'payStatus', + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/finance_pay_status', + props:{ + label:'label', + value:'value' + }, + editDisabled:true, + editDisplay:false, + }, + { + label: '电话', + prop: 'phone', + width: '60%',//表格宽度 + rules:[ + { validator: function (rule, value, callback) { + var reg=/^1[3456789]\d{9}$/; + if(!reg.test(value)){ + callback(new Error('请输入有效的手机号码')); + }else{ + callback() + } + }, trigger: 'blur' } + ] + }, + { + label: '生源', + prop: 'education', + width: '50%',//表格宽度 + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/pre_school_education', + editDisabled:true, + editDisplay:false, + }, + { + label: '学籍', + prop: 'enrollStatus', + width: '50%',//表格宽度 + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/enroll_status', + editDisabled:true, + editDisplay:false, + }, + { + label: '在校状态', + width: '60%',//表格宽度 + prop: 'stuStatus', + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/student_status', + editDisabled:true, + editDisplay:false, + }, + // { + // label: '住宿', + // width: '60%',//表格宽度 + // prop: 'isStay', + // editDisabled:true, + // editDisplay:false, + // }, + { + label: '材料费', + width: '50%',//表格宽度 + prop: 'clf', + }, + { + label: '代办费', + width: '50%',//表格宽度 + prop: 'dbf', + }, + // { + // label: '中德班', + // width: '50%',//表格宽度 + // prop: 'zdxf', + // }, + // { + // label: '学费', + // prop: 'xf', + // editDisabled:false, + // editDisplay:true, + // }, + // { + // label: '住宿费', + // width: '60%',//表格宽度 + // prop: 'zsf', + // }, + { + label: '应缴', + width: '50%',//表格宽度 + prop: 'payable', + editDisabled:true, + editDisplay:true, + }, + { + label: '已缴', + width: '50%',//表格宽度 + prop: 'handed', + editDisabled:true, + editDisplay:true, + + }, + { + label: '欠费', + width: '50%',//表格宽度 + prop: 'arrears', + editDisabled:true, + editDisplay:true, + }, + { + label: '提交状态', + width: '60%',//表格宽度 + prop: 'isSubmit', + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/normal_state', + props:{ + label:'label', + value:'value' + }, + editDisabled:true, + editDisplay:false, + }, + { + label: '备注', + labelWidth:120, + prop: 'remarks', + slot:true + }, + { + label: '是否推送成功', + width: '60%',//表格宽度 + prop: 'isTS', + editDisabled:true, + editDisplay:true + }, + { + label: '是否推送', + width: '60%',//表格宽度 + prop: 'grade', + search:true, + hide: true, + type:"select", + dicUrl: '/admin/dict/item/type/isTS', + props:{ + label:'label', + value:'value' + }, + editDisabled:true, + editDisplay:false, + }, + ] +} + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '经办人工号', + prop: 'operater' + }, + { + label: '经办人姓名', + prop: 'operaterName' + }, + { + label: '年份', + prop: 'year' + }, + { + label: '电话号码', + prop: 'phone' + }, + { + label: '付款码', + prop: 'payCode' + }, + { + label: '常规收费设置ID', + prop: 'normalId' + }, + { + label: '学院代码', + prop: 'deptCode' + }, + { + label: '学院名称', + prop: 'deptName' + }, + { + label: '专业代码', + prop: 'majorCode' + }, + { + label: '专业名称', + prop: 'majorName' + }, + { + label: '班级代码', + prop: 'classCode' + }, + { + label: '班级名称', + prop: 'className' + }, + { + label: '生源', + prop: 'education' + }, + { + label: '学籍状态', + prop: 'enrollStatus' + }, + { + label: '学生状态 1:在校 2:顶岗 3:离校 4:实习', + prop: 'stuStatus' + }, + { + label: '是否住宿(否/是(x))', + prop: 'isStay' + }, + { + label: '是否提交过 0 否 1是', + prop: 'isSubmit' + }, + { + label: '银行卡号', + prop: 'bankCode' + }, + { + label: '学费提交人', + prop: 'submitName' + }, + { + label: '业务id', + prop: 'outId' + }, + { + label: '年级', + prop: 'grade' + }, + { + label: '学制', + prop: 'educationalSystem' + }, + ] +} diff --git a/src/const/crud/finance/financetemporarywholeclass.js b/src/const/crud/finance/financetemporarywholeclass.js new file mode 100644 index 0000000..91f582a --- /dev/null +++ b/src/const/crud/finance/financetemporarywholeclass.js @@ -0,0 +1,193 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '收费项目', + prop: 'settingId', + type:'select', + search:true, + addDisplay:true, + editDisabled:false, + editDisplay:true, + dicUrl: '/finance/financetemporarychargessetting/list', + props:{ + label:'settingName', + value:'id' + } + }, + { + label: '学院', + prop: 'deptCode', + labelWidth: 120, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + editDisabled:true, + editDisplay:true, + }, + { + label: '专业', + prop: 'majorCode', + labelWidth: 120, + type:'select', + dicUrl: '/basic/major/getMajorNameList', + props: { + label: 'majorName', + value: 'majorCode' + }, + editDisabled:true, + editDisplay:true, + }, + { + label: '班级', + prop: 'classCode', + search:true, + searchFilterable:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classNo', + }, + editDisabled:true, + editDisplay:true, + }, + { + label: '学费提交人', + prop: 'submitName', + editDisabled:true, + editDisplay:true, + }, + { + label: '提交状态', + prop: 'isState', + search:true, + type:"select", + editDisabled:true, + editDisplay:true, + dicUrl: '/admin/dict/item/type/normal_state', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '备注', + prop: 'remarks' + }, + + ] +} + + +export const tableOption2 = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + dic: [], + column: [ + { + label: '收费项目', + prop: 'settingId', + type:'select', + search:true, + addDisplay:true, + editDisabled:true, + editDisplay:true, + dicUrl: '/finance/financetemporarychargessetting/list', + props:{ + label:'settingName', + value:'id' + } + }, + { + label: '学院', + prop: 'deptCode', + labelWidth: 120, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + editDisabled:true, + editDisplay:true, + }, + { + label: '专业', + prop: 'majorCode', + labelWidth: 120, + type:'select', + dicUrl: '/basic/major/getMajorNameList', + props: { + label: 'majorName', + value: 'majorCode' + }, + editDisabled:true, + editDisplay:true, + }, + { + label: '班级', + prop: 'classCode', + search:true, + searchFilterable:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classNo', + }, + editDisabled:true, + editDisplay:true, + }, + { + label: '提交状态', + prop: 'isState', + type:"select", + hide:true, + editDisabled:false, + editDisplay:true, + dicUrl: '/admin/dict/item/type/normal_state', + props:{ + label:'label', + value:'value' + }, + }, + ] +} diff --git a/src/const/crud/finance/financetotal.js b/src/const/crud/finance/financetotal.js new file mode 100755 index 0000000..27ded1c --- /dev/null +++ b/src/const/crud/finance/financetotal.js @@ -0,0 +1,97 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +const STATUS=[ + {label:'待提交',value:'0'}, + {label:'待审核',value:'100'}, + {label:'通过',value:'200'}, + {label:'驳回',value:'-100'} +] + + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + dic: [], + column: [ + { + label: '工号', + prop: 'teacherNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '身份证号', + prop: 'idCard' + }, + { + label: '金额', + prop: 'workMoney' + } + ] +} + + +export const tableOutOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + dic: [], + column: [ + { + label: '工号', + prop: 'teacherNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '身份证号', + prop: 'idCard' + }, + { + label: '应发', + prop: 'money' + }, + { + label: '税额', + prop: 'deductMoney' + }, + { + label: '实发', + prop: 'workMoney' + } + ] +} diff --git a/src/const/crud/finance/financetrainfee.js b/src/const/crud/finance/financetrainfee.js new file mode 100644 index 0000000..628a94d --- /dev/null +++ b/src/const/crud/finance/financetrainfee.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: true, + delBtn: true, + addBtn: true, + dic: [], + column: [ + { + label: '单位代码', + prop: 'companyCode', + editDisabled:true,//表单编辑时是否禁止 + }, + { + label: '单位名称', + prop: 'companyName' + }, + { + label: '项目代码', + prop: 'projectCode', + editDisabled:true,//表单编辑时是否禁止 + }, + { + label: '项目名称', + prop: 'projectName' + }, + ] +} diff --git a/src/const/crud/finance/fund_all_view.js b/src/const/crud/finance/fund_all_view.js new file mode 100644 index 0000000..7874299 --- /dev/null +++ b/src/const/crud/finance/fund_all_view.js @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const TYPE = [{label: '精准奖励', value: '1'}, {label: '其他费用', value: '2'}]; +//流程状态 0: 等待部门审核 10: 等待部门审批 20:审批通过 -10: 经办人修改 -20 : 撤销申请 +export const PROC_INS_STATUS = [{label: '待审核', value: '0'}, {label: '待审批', value: '10'}, { + label: '通过', + value: '20' +}, {label: '驳回修改', value: '-10'}, {label: '撤销', value: '-20'}]; + + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + showSummary:true, + sumColumnList: [ + { + name: 'totalMoney', + type: 'sum' + }, + { + name: 'strictfpMoney', + type: 'sum' + }, + { + name: 'strictfpExpenseMoney', + type: 'sum' + }, + { + name: 'strictfpLeftMoney', + type: 'sum' + }, + { + name: 'otherMoney', + type: 'sum' + }, + { + name: 'otherExpenseMoney', + type: 'sum' + }, + { + name: 'otherLeftMoney', + type: 'sum' + }, + ], + dic: [], + column: [ + { + label: '预算对象', + prop: 'deptName', + }, + { + label: '预算金额', + prop: 'totalMoney', + }, + { + label: '精准奖励', + prop: 'strictfpMoney', + }, + { + label: '精准奖励支出', + prop: 'strictfpExpenseMoney', + }, + { + label: '精准奖励结余', + prop: 'strictfpLeftMoney', + }, + { + label: '其他费用', + prop: 'otherMoney', + }, + { + label: '其他费用支出', + prop: 'otherExpenseMoney', + }, + { + label: '其他费用结余', + prop: 'otherLeftMoney', + } + ] +} diff --git a/src/const/crud/finance/inventoryclassification.js b/src/const/crud/finance/inventoryclassification.js new file mode 100644 index 0000000..71a9ff8 --- /dev/null +++ b/src/const/crud/finance/inventoryclassification.js @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '名称', + align:'left', + prop: 'name', + search:true, + rules: [{ + required: true, + message: '名称不能为空', + trigger: 'blur' + }, + { + max: 100, + message: '长度最多 100 个字符', + trigger: 'blur' + } + ] + }, + { + label: '代码', + align:'left', + prop: 'code', + search:true, + rules: [{ + required: true, + message: '代码不能为空', + trigger: 'blur' + }, + { + max: 100, + message: '代码最多 100 个字符', + trigger: 'blur' + } + ] + }, + { + label: '备注', + type:'textarea', + row:true, + span:24, + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/finance/inventoryconsumables.js b/src/const/crud/finance/inventoryconsumables.js new file mode 100644 index 0000000..6960e87 --- /dev/null +++ b/src/const/crud/finance/inventoryconsumables.js @@ -0,0 +1,374 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:600, + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + dic: [], + column: [ + { + label: '部门名称', + prop: 'deptCode', + span: 12, + labelWidth: 80, + width: 120, + filterable:true, + searchFilterable:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + editDisabled:true, + search:true, + }, + { + label: '物品分类', + prop: 'serialType', + span: 12, + labelWidth: 80, + width: 120, + search:true, + type:'select', + dicUrl: '/finance/inventoryclassification/classificationList', + props: { + label: 'name', + value: 'code' + }, + editDisabled:true + }, + { + label: '物品名称', + prop: 'serialName', + search:true, + editDisabled:true + }, + { + label: '规格型号', + prop: 'serialSpc', + editDisabled:true + }, + { + label: '物品单位', + prop: 'sprialUnit', + editDisabled:true + }, + { + label: '物品单价', + prop: 'serialPrice', + editDisabled:true + }, + { + label: '价格类型', + prop: 'priceType', + search:true, + type:'select', + hide:true, + addDisplay:false, + editDisplay:false, + dicData: [ { + label:'小于', + value:'0' + }, + { + label:'等于', + value:'1' + }, + { + label:'大于', + value:'2' + }] + }, + { + label: '单价', + prop: 'serialPrice', + hide:true, + search: true, + addDisplay:false, + editDisplay:false + }, + { + label: '库存数量', + type:'number', + span:24, + prop: 'serialNum', + editDisabled:true + }, + { + label: '备注', + search: true, + span:24, + prop: 'remark' + }, + { + label: '盘点状态', + prop: 'pdState', + search:true, + type:'select', + dicData:global.pdState, + editDisplay:false, + props:{ + label:'label', + value:'value' + } + }, + { + label: '库存为零', + prop: 'isZero', + search:true, + type:'select', + hide:true, + dicData:global.YES_OR_NO, + display:false, + props:{ + label:'label', + value:'value' + } + }, + { + label: '盘点审核意见', + prop: 'pdExam', + editDisplay:false, + }, + { + label: '盘点数量', + type:'number', + span:24, + prop: 'pdNum', + rules: [{ + required: true, + message: '盘点数量不能为空', + trigger: 'blur' + }] + }, + { + label: '盘点备注', + type:'textarea', + row:true, + span:24, + prop: 'pdRemark', + rules: [{ + required: true, + message: '盘点备注不能为空', + trigger: 'blur' + },{ + min: 1, + max: 100, + message: '长度在 1 到 100 个字符', + trigger: 'blur' + }] + }, + + ] +} + +export const tableUseOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + defaultSort:{ + prop: 'serialNum', + order: 'descending' + }, + dic: [], + column: [ + { + label: '部门名称', + prop: 'deptCode', + span: 12, + filterable:true, + searchFilterable:true, + labelWidth: 80, + width: 120, + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + editDisabled:true, + sortable:false, + search:true + }, + { + label: '物品分类', + prop: 'serialType', + span: 12, + labelWidth: 80, + width: 120, + search:true, + type:'select', + dicUrl: '/finance/inventoryclassification/classificationList', + props: { + label: 'name', + value: 'code' + }, + sortable:false, + editDisabled:true + }, + { + label: '物品名称', + prop: 'serialName', + search:true, + sortable:false, + editDisabled:true + }, + { + label: '规格型号', + prop: 'serialSpc', + sortable:false, + editDisabled:true + }, + { + label: '物品单位', + prop: 'sprialUnit', + sortable:false, + editDisabled:true + }, + { + label: '物品单价', + prop: 'serialPrice', + sortable:false, + editDisabled:true + }, + { + label: '库存数量', + type:'number', + prop: 'serialNum', + sortable:true, + editDisabled:true + }, + { + label: '备注', + prop: 'remark', + sortable:false, + + search:true + }, + ] +} + +export const tableSelectOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '部门名称', + prop: 'deptCode', + span: 12, + filterable:true, + searchFilterable:true, + labelWidth: 80, + width: 80, + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + editDisabled:true + }, + { + label: '物品分类', + prop: 'serialType', + span: 12, + labelWidth: 80, + width: 80, + type:'select', + dicUrl: '/finance/inventoryclassification/classificationList', + props: { + label: 'name', + value: 'code' + }, + editDisabled:true + }, + { + label: '物品名称', + labelWidth: 80, + width: 100, + + prop: 'serialName', + editDisabled:true + }, + { + label: '规格型号', + labelWidth: 80, + width: 100, + + prop: 'serialSpc', + editDisabled:true + }, + { + label: '物品单位', + labelWidth: 80, + width: 100, + + prop: 'sprialUnit', + editDisabled:true + }, + { + label: '物品单价', + labelWidth: 80, + width: 100, + + prop: 'serialPrice', + editDisabled:true + }, + { + label: '领用数量', + labelWidth: 200, + width: 250, + type:'number', + prop: 'serialNum', + slot: true, + formslot: true + }, + ] +} diff --git a/src/const/crud/finance/inventorygodown.js b/src/const/crud/finance/inventorygodown.js new file mode 100644 index 0000000..57c71ca --- /dev/null +++ b/src/const/crud/finance/inventorygodown.js @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '仓库名称', + prop: 'name', + rules: [{ + required: true, + message: '仓库名称不能为空', + trigger: 'blur' + },{ + min: 1, + max: 100, + message: '仓库名称长度在 1 到 100 个字符', + trigger: 'blur' + }] + }, + { + label: '部门', + prop: 'deptCode', + type:'select', + search:true, + filterable:true, + searchFilterable:true, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + },rules: [{ + required: true, + message: '部门不能为空', + trigger: 'blur' + } + ] + }, + { + label: '仓库地址', + prop: 'address' + }, + { + label: '备注', + type:'textarea', + row:true, + span:24, + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/finance/inventoryjournal.js b/src/const/crud/finance/inventoryjournal.js new file mode 100644 index 0000000..ffa568e --- /dev/null +++ b/src/const/crud/finance/inventoryjournal.js @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '耗材id', + prop: 'consumablesId' + }, + { + label: '类型 1增加 2减少', + prop: 'type' + }, + { + label: '操作数量', + prop: 'numberVal' + }, + { + label: '操作来源 1 普通入库 2耗材领用 3盘点减少 4盘点恢复 5领用退回', + prop: 'opType' + }, + { + label: '操作用户', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '备注', + prop: 'remark' + } + ] +} diff --git a/src/const/crud/finance/inventorymyconsumables.js b/src/const/crud/finance/inventorymyconsumables.js new file mode 100644 index 0000000..d6079da --- /dev/null +++ b/src/const/crud/finance/inventorymyconsumables.js @@ -0,0 +1,227 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '领用部门', + prop: 'deptCode', + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props:{ + label:'deptName', + value:'deptCode' + }, + search:true, + }, + { + label: '领用人', + prop: 'createBy', + type: "select", + dicUrl: '/professional/teacherbase/TeacherBaseList', + props: { + label: 'realName', + value: 'teacherNo' + } + }, + { + label: '领用班级', + prop: 'classCode', + type:"select", + searchFilterable:true, + filterable:true, + dicUrl:'/basic/basicclass/listOther', + props:{ + label: 'classNo', + value: 'classCode', + }, + search:true, + }, + { + label: '领用课程', + prop: 'courseName', + search:true + }, + { + label: '领用编码', + prop: 'lyNo', + search:true, + }, + { + label: '领用数量', + prop: 'lyNum' + }, + { + label: '领用时间', + prop: 'createTime', + format: 'yyyy-MM-dd', + }, + { + label: '领用状态', + prop: 'lyExamState', + search:true, + type:'select', + dicData:global.lyExamState, + editDisplay:false, + props:{ + label:'label', + value:'value' + } + }, + { + label: '回退状态', + prop: 'lvBack', + search:true, + type:'select', + dicData:global.lvBack, + editDisplay:false, + props:{ + label:'label', + value:'value' + } + }, + + { + label: '回退备注', + prop: 'backExam' + }, + { + label: '备注', + prop: 'remark' + }, + ] +} +export const tableExamOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '耗材所在部门', + prop: 'deptCode', + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props:{ + label:'deptName', + value:'deptCode' + }, + search:true, + }, + { + label: '领用人部门', + prop: 'createByDept', + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props:{ + label:'deptName', + value:'deptCode' + }, + search:true, + }, + { + label: '领用人', + prop: 'createBy', + type: "select", + dicUrl: '/professional/teacherbase/TeacherBaseList', + props: { + label: 'realName', + value: 'teacherNo' + } + }, + { + label: '领用班级', + prop: 'classCode', + type:"select", + searchFilterable:true, + filterable:true, + dicUrl:'/basic/basicclass/listOther', + props:{ + label: 'classNo', + value: 'classCode', + }, + search:true, + }, + { + label: '领用课程', + prop: 'courseName' + }, + { + label: '领用编码', + prop: 'lyNo', + search:true, + }, + { + label: '领用数量', + prop: 'lyNum' + }, + { + label: '领用时间', + prop: 'createTime', + format: 'yyyy-MM-dd', + }, + { + label: '领用状态', + prop: 'lyExamState', + type:'select', + dicData:global.lyExamState, + editDisplay:false, + search:true, + props:{ + label:'label', + value:'value' + } + }, + { + label: '回退状态', + prop: 'lvBack', + type:'select', + dicData:global.lvBack, + editDisplay:false, + props:{ + label:'label', + value:'value' + } + }, + { + label: '回退备注', + prop: 'backExam' + }, + { + label: '备注', + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/finance/inventorymyconsumablesdetail.js b/src/const/crud/finance/inventorymyconsumablesdetail.js new file mode 100644 index 0000000..849f68c --- /dev/null +++ b/src/const/crud/finance/inventorymyconsumablesdetail.js @@ -0,0 +1,171 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '物品分类', + prop: 'serialType', + type:'select', + dicUrl: '/finance/inventoryclassification/classificationList', + props: { + label: 'name', + value: 'code' + }, + }, + { + label: '物品名称', + prop: 'serialName' + }, + { + label: '物品规格型号', + prop: 'serialSpc' + }, + { + label: '物品单位', + prop: 'sprialUnit' + }, + { + label: '物品单价', + prop: 'serialPrice' + }, + { + label: '领用数量', + prop: 'serialNum' + }, + + ] +} +export const tableHTOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menu:false, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + dic: [], + column: [ + { + label: '物品分类', + prop: 'serialType', + type:'select', + dicUrl: '/finance/inventoryclassification/classificationList', + props: { + label: 'name', + value: 'code' + }, + }, + { + label: '物品名称', + prop: 'serialName' + }, + { + label: '物品规格型号', + prop: 'serialSpc' + }, + { + label: '物品单位', + prop: 'sprialUnit' + }, + { + label: '物品单价', + prop: 'serialPrice' + }, + { + label: '领用数量', + prop: 'serialNum', + }, + { + label: '回退数量', + prop: 'lyNumber', + slot: true, + width:200, + formslot: true + }, + ] +} +export const tableckOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menu:false, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + dic: [], + column: [ + { + label: '物品分类', + prop: 'serialType', + type:'select', + dicUrl: '/finance/inventoryclassification/classificationList', + props: { + label: 'name', + value: 'code' + }, + }, + { + label: '物品名称', + prop: 'serialName' + }, + { + label: '物品规格型号', + prop: 'serialSpc' + }, + { + label: '物品单位', + prop: 'sprialUnit' + }, + { + label: '物品单价', + prop: 'serialPrice' + }, + { + label: '领用数量', + prop: 'serialNum', + }, + { + label: '回退数量', + prop: 'lyNumber', + }, + ] +} diff --git a/src/const/crud/finance/inventorysupplier.js b/src/const/crud/finance/inventorysupplier.js new file mode 100644 index 0000000..3d2c9ea --- /dev/null +++ b/src/const/crud/finance/inventorysupplier.js @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + + { + labelWidth:120, + label: '供应商名称', + prop: 'name', + search:true, + rules: [{ + required: true, + message: '供应商名称不能为空', + trigger: 'blur' + },{ + min: 1, + max: 100, + message: '供应商名称长度在 1 到 100 个字符', + trigger: 'blur' + }] + }, + { + labelWidth:120, + label: '联系人', + prop: 'peopleName', + rules: [{ + min: 0, + max: 100, + message: '联系人长度在 0 到 100 个字符', + trigger: 'blur' + }] + }, + { + labelWidth:120, + label: '联系电话', + prop: 'phone', + rules: [{ + min: 0, + max: 11, + message: '联系电话在 0 到 11 个字符', + trigger: 'blur' + }] + }, + { + labelWidth:120, + label: '供应商地址', + prop: 'address', + rules: [{ + min: 0, + max: 100, + message: '供应商地址长度在 0 到 100 个字符', + trigger: 'blur' + }] + }, + { + labelWidth:120, + label: '备注', + prop: 'remark' , + type:'textarea', + row:true, + span:24, + }, + ] +} diff --git a/src/const/crud/finance/inventorywarehousing.js b/src/const/crud/finance/inventorywarehousing.js new file mode 100644 index 0000000..0fcdbd6 --- /dev/null +++ b/src/const/crud/finance/inventorywarehousing.js @@ -0,0 +1,242 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +export const godownType=[ + {value:'0',label:"本地"}, + {value:'1',label:"其他"}, +] +export const inventoryType=[ + {value:'0',label:"采购入库"}, + {value:'1',label:"销售退货"}, + {value:'2',label:"其他入库"}, +] +export const YES_OR_N0=[ + {value:'0',label:"否"}, + {value:'1',label:"是"}, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '入库单号', + labelWidth:120, + addDisplay: false, + editDisplay: false, + prop: 'inventoryNo' + }, + { + label: '入库日期', + labelWidth:120, + prop: 'inventoryTime', + type: "date", + format: "yyyy-MM-dd", + valueFormat: "yyyy-MM-dd", + rules: [{ + required: true, + trigger: 'blur', + message:"请填写入库日期" + }] + }, + { + label: '仓库位置', + prop: 'godownType', + labelWidth:120, + type:'select', + dicData:godownType, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择仓库位置" + }] + }, + + { + label:'入库开始时间', + prop:'beginTime', + hide:true, + search: true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label:'入库结束时间', + prop:'endTime', + hide:true, + search: true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label: '入库类型', + labelWidth:120, + type:'select', + prop: 'inventoryType', + dicData:inventoryType, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择入库类型" + }] + }, + { + label: '入库方账号', + prop: 'inventoryUserNo', + addDisplay: false, + editDisplay: false, + labelWidth:120, + search:true + }, + { + label: '入库方名称', + labelWidth:120, + addDisplay: false, + editDisplay: false, + prop: 'inventoryUserName', + type:"select", + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + }, + { + label: '入库总金额', + labelWidth:120, + addDisplay: false, + editDisplay: false, + prop: 'inventoryMoney', + }, + { + label: '班级', + labelWidth:120, + prop: 'classCode', + addDisplay:false, + editDisplay:false, + }, + { + label: '专业', + labelWidth:120, + prop: 'majorCode', + addDisplay:false, + editDisplay:false, + }, + + { + label: '供应商', + labelWidth:120, + prop: 'supplierName', + hide:true + }, + { + label: '联系人', + labelWidth:120, + prop: 'contactsName', + hide:true + }, + { + label: '联系电话', + labelWidth:120, + prop: 'contactsPhone', + hide:true + }, + { + label: '生成出库单', + labelWidth:120, + prop: 'isTbOut', + type: "switch", + dicData:YES_OR_N0, + props:{ + label:'label', + value:'value' + }, + hide:true + }, + { + label: '实训耗材', + labelWidth:120, + prop: 'isHc', + type: "switch", + dicData:YES_OR_N0, + props:{ + label:'label', + value:'value' + }, + hide:true + }, + { + label: '入库地址', + labelWidth:120, + span:24, + prop: 'inventoryAddress', + hide:true + }, + { + label: '备注', + labelWidth:120, + span:24, + type:'textarea', + prop: 'remark' + }, + { + label: '经办人', + labelWidth:120, + prop: 'handledUser', + addDisplay: false, + editDisplay: false, + hide:true + }, + + { + label: '财务确认存货', + labelWidth:120, + prop: 'financeSure', + addDisplay: false, + editDisplay: false, + hide:true + }, + { + label: '财务确认人员', + labelWidth:120, + prop: 'financeUser', + addDisplay: false, + editDisplay: false, + hide:true + }, + ] +} diff --git a/src/const/crud/finance/normalturnoverstu.js b/src/const/crud/finance/normalturnoverstu.js new file mode 100644 index 0000000..593c075 --- /dev/null +++ b/src/const/crud/finance/normalturnoverstu.js @@ -0,0 +1,660 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + + +export const YES_OR_NO=[ + { + label:'退', + value:'0' + }, + { + label:'补', + value:'1' + } + +] + +export const IS_STAY_DIC=[ + { + label:'否', + value:'0' + }, + { + label:'是', + value:'1' + } + +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menuWidth:120, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + labelWidth:150, + dialogHeight:710, + dialogTop:0, + column: [ + { + label: '常规异动名称', + prop: 'settingId', + hide:true, + type:'select', + span:24, + search:true, + editDisabled:true, + dicUrl:'/finance/financenormalturnovesetting/queryAllList', + props:{ + label:'settingName', + value:'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择异动名称" + }] + }, + { + label: '班号', + prop: 'classCode', + searchFilterable: true, + hide:false, + search:true, + filterable: true, + editDisplay:true, + editDisabled:true, + span:24, + type: 'select', + dicUrl: '/basic/basicclass/list', + props: { + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + message: '请填写班级代码', + trigger: 'blur' + }] + }, + { + label: '学号/姓名', + width: "40%", + prop: 'userInfo', + search:true, + display:false, + hide:true, + }, + { + label: '学号', + span:24, + prop: 'stuNo', + editDisplay:true, + formslot:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入学号" + }] + }, + { + label: '缴费明细', + span:24, + prop: 'payInfo', + hide: true, + addDisplay: true, + editDisplay:true, + formslot:true, + }, + { + label: '姓名', + width: "50%", + prop: 'realName', + editDisabled:true, + addDisplay:false, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入姓名" + }] + }, + { + label: '银行卡', + prop: 'bankCode', + display:false + }, + { + label: '生源', + width: "50%", + prop: 'education', + display:false, + type:'select', + dicUrl: '/admin/dict/item/type/pre_school_education', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '学籍', + width: "50%", + prop: 'enrollStatus', + display:false, + type:"select", + dicUrl: '/admin/dict/item/type/enroll_status', + }, + { + label: '住宿', + width: "50%", + prop: 'isStay', + display:false, + }, + { + label: '材料费', + width: "70%", + prop: 'materialMoneyLabel', + display:false, + }, + { + label: '材料费', + prop: 'materialMoney', + type:'number', + precision:2, + span:24, + hide:true + }, + { + label: '代办费', + width: "70%", + prop: 'agencyFeeLabel', + span:24, + display:false, + }, + { + label: '代办费', + prop: 'agencyFee', + type:'number', + precision:2, + span:24, + hide:true + }, + { + label: '学校代办费材料费', + prop: 'agencyMaterialFee', + type:'number', + precision:2, + span:24, + hide:true + }, + { + label: '学费', + width: "60%", + prop: 'learnFeeLabel', + display:false, + span:24, + }, + { + label: '学费', + prop: 'learnFee', + type:'number', + precision:2, + span:24, + hide:true + }, + { + label: '住宿费', + prop: 'stayMoneyLabel', + span:24, + display:false, + }, + { + label: '住宿费', + prop: 'stayMoney', + type:'number', + precision:2, + span:24, + hide:true + }, + { + label: '退补类型', + prop: 'type', + slot:true, + type:'radio', + search:true, + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + span:24, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类型" + }] + }, + { + label: '是否操作', + hide:true, + prop: 'isOpt', + display:false, + slot:true, + type:'radio', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + span:24, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类型" + }] + }, + { + label: '应退/补', + prop: 'shouldPay', + display:false, + }, + { + label: '已退/补', + prop: 'realPay', + display:false, + + }, + { + label: '欠退/补', + prop: 'oweFee', + display:false, + }, + { + label: '是否推送成功', + width: '60%',//表格宽度 + prop: 'isTS', + display:false, + }, + // { + // label: '付款码', + // prop: 'payCode', + // }, + { + label: '备注', + prop: 'remarks', + type:'textarea', + span:24, + }, + ] +} + +//财务 +export const tableOptionForFinance = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + labelWidth:150, + dialogHeight:700, + dialogTop:0, + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '常规异动名称', + prop: 'settingId', + hide:true, + search:true, + type:'select', + span:24, + + dicUrl:'/finance/financenormalturnovesetting/queryAllList', + props:{ + label:'settingName', + value:'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择异动名称" + }], + disabled:true, + + + }, + { + label: '班号', + prop: 'classCode', + search:true, + searchFilterable:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号/姓名', + prop: 'userInfo', + search:true, + display:false, + hide:true, + }, + { + label: '学号', + prop: 'stuNo', + display:false, + formslot:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入学号" + }] + }, + { + label: '姓名', + prop: 'realName', + editDisabled:true, + addDisplay:false, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入姓名" + }] + }, + { + label: '银行卡号', + prop: 'bankCode', + display:false, + }, + { + label: '生源', + prop: 'education', + display:false, + type:"select", + dicUrl: '/admin/dict/item/type/pre_school_education', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '学籍状态', + prop: 'enrollStatus', + display:false, + type:"select", + dicUrl: '/admin/dict/item/type/enroll_status', + }, + { + label: '是否住宿', + prop: 'isStay', + display:false + }, + { + label: '材料费', + prop: 'materialMoneyLabel', + display:false, + }, + { + label: '材料费', + prop: 'materialMoney', + type:'number', + precision:2, + span:24, + hide:true, + disabled:true, + }, + { + label: '代办费', + prop: 'agencyFeeLabel', + span:24, + display:false, + }, + { + label: '代办费', + prop: 'agencyFee', + type:'number', + precision:2, + span:24, + hide:true, + disabled:true, + + }, + { + label: '学费', + prop: 'learnFeeLabel', + display:false, + span:24, + }, + { + label: '学费', + prop: 'learnFee', + type:'number', + precision:2, + span:24, + hide:true, + disabled:true, + + }, + { + label: '住宿费', + prop: 'stayMoneyLabel', + span:24, + display:false, + }, + { + label: '住宿费', + prop: 'stayMoney', + type:'number', + precision:2, + span:24, + hide:true, + disabled:true, + + }, + { + label: '退补类型', + prop: 'type', + type:'select', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + disabled:true, + span:24, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类型" + }] + }, + { + label: '应退/补', + prop: 'shouldPay', + display:false, + + + }, + { + label: '已退/补', + prop: 'realPay', + display:false, + + }, + { + label: '欠退/补', + prop: 'oweFee', + display:false, + }, + + // { + // label: '付款码', + // prop: 'payCode', + // }, + + { + label: '缴费方式', + prop: 'payType', + dicUrl:'/admin/dict/item/type/finance_pay_way', + props:{ + label:'label', + value:'value' + }, + type:'select', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择缴费方式" + }] + }, + { + label: '操作人', + prop: 'operater', + slot:true, + span:24, + display:false + }, + ] +} + +const PAY_STATUS=[ + {label:'未缴费',value:'0'}, + {label:'已缴费',value:'10'}, + {label:'未退费',value:'11'}, + {label:'已退费',value:'12'}, +] + +export const tableHistoryOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + page:false, + showSummary:true, + menu:false, + sumColumnList: [ + { + name: 'money', + type: 'sum' + }, + { + name: 'paiedMoney', + type: 'sum' + }], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '缴费时间', + prop: 'payTime' + }, + { + label: '学号', + prop: 'stuNo', + }, + { + label: '姓名', + prop: 'realName', + }, + { + label: '项目名称', + prop: 'settingName' + }, + { + label: '费用名称', + prop: 'projectName' + }, + { + label: '缴/退类型', + prop: 'typeValue' + }, + { + label: '应缴/应退金额', + width: '120px', + prop: 'money' + }, + { + label: '实缴/实退金额', + width: '120px', + prop: 'paiedMoney' + }, + { + label: '缴费状态', + prop: 'status', + type:"select", + dicData:PAY_STATUS, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '备注', + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/finance/normalturnoverstuproject.js b/src/const/crud/finance/normalturnoverstuproject.js new file mode 100644 index 0000000..84d9255 --- /dev/null +++ b/src/const/crud/finance/normalturnoverstuproject.js @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '收费项目', + prop: 'projectCode' + }, + { + label: '费用', + prop: 'money' + }, + { + label: '0:补 1:退', + prop: 'type' + }, + { + label: '缴/退费方式 20:现金 30:Pos机收费 21:支付宝线下支付 22:微信线下支付', + prop: 'payType' + }, + { + label: '退补费时间', + prop: 'payTime' + }, + ] +} diff --git a/src/const/crud/finance/purchasingcategory.js b/src/const/crud/finance/purchasingcategory.js new file mode 100644 index 0000000..1ab36b5 --- /dev/null +++ b/src/const/crud/finance/purchasingcategory.js @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + stripe: true, + menuAlign: 'center', + menuWidth: 150, + align: 'center', + refreshBtn: false, + showColumn: false, + viewBtn:false, + addBtn: false, + editBtn: false, + delBtn: false, + filterBtn: false, + tree: true, + page: false, + dialogClickModal:false, + size:"small", + + column: [ + { + label: '品目编码', + prop: 'code', + rules: [{ + required: true, + message: '请输入品目编码', + trigger: 'blur' + }] + }, + { + label: '父级节点', + prop: 'parentId', + hide:true, + type:'tree', + dicUrl: '/finance/purchasingcategory/tree', + props: { + label: 'name', + value: 'code' + }, + }, + { + label: '品目名称', + prop: 'name', + rules: [{ + required: true, + message: '请输入品目名称', + trigger: 'blur' + }] + }, + + { + label: '备注', + prop: 'remark', + }, + ] +} diff --git a/src/const/crud/finance/purchasinglypj.js b/src/const/crud/finance/purchasinglypj.js new file mode 100644 index 0000000..d70665d --- /dev/null +++ b/src/const/crud/finance/purchasinglypj.js @@ -0,0 +1,229 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '', + prop: 'createBy' + }, + { + label: '', + prop: 'createTime' + }, + { + label: '', + prop: 'updateBy' + }, + { + label: '', + prop: 'updateTime' + }, + { + label: '', + prop: 'delFlag' + }, + { + label: '', + prop: 'remark' + }, + { + label: '申请单编号', + prop: 'purchasingNo' + }, + { + label: '采购内容', + prop: 'purchasingContent' + }, + { + label: '采购部门', + prop: 'purchasingDept' + }, + { + label: '项目类别 0货物类 1服务类 2工程类', + prop: 'purchasingType' + }, + { + label: '合同签订日期', + prop: 'htTime' + }, + { + label: '合同金额', + prop: 'htMoney' + }, + { + label: '供应商名称', + prop: 'gysName' + }, + { + label: '供应商联系人及联系电话', + prop: 'gysPhone' + }, + { + label: '项目实施开始时间', + prop: 'projectStartTime' + }, + { + label: '项目实施结束时间', + prop: 'projectEndTime' + }, + { + label: '品牌/型号/数量 是否符合 0否 1是', + prop: 'ppXhSl' + }, + { + label: '主要技术指标 0否 1是', + prop: 'zyjszb' + }, + { + label: '商品(服务)质量情况 1优 2良 3合格 4 不合格', + prop: 'spzlqk' + }, + { + label: '服务承诺实现情况', + prop: 'fwcnsxqk' + }, + { + label: '供应商整体评价', + prop: 'gyspj' + }, + { + label: '其他', + prop: 'otherTitle' + }, + { + label: '其他评价 1优 2良 3合格 4 不合格', + prop: 'otherPj' + }, + { + label: '验收小组成员', + prop: 'ysGroup' + }, + { + label: '验收日期', + prop: 'ysTime' + }, + ] +} +export const tableTaskOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'remark' + }, + { + label: '申请单编号', + prop: 'purchasingNo' + }, + { + label: '采购内容', + prop: 'purchasingContent' + }, + { + label: '采购部门', + prop: 'purchasingDept' + }, + { + label: '项目类别 0货物类 1服务类 2工程类', + prop: 'purchasingType' + }, + { + label: '合同签订日期', + prop: 'htTime' + }, + { + label: '合同金额', + prop: 'htMoney' + }, + { + label: '供应商名称', + prop: 'gysName' + }, + { + label: '供应商联系人及联系电话', + prop: 'gysPhone' + }, + { + label: '项目实施开始时间', + prop: 'projectStartTime' + }, + { + label: '项目实施结束时间', + prop: 'projectEndTime' + }, + { + label: '品牌/型号/数量 是否符合 0否 1是', + prop: 'ppXhSl' + }, + { + label: '主要技术指标 0否 1是', + prop: 'zyjszb' + }, + { + label: '商品(服务)质量情况 1优 2良 3合格 4 不合格', + prop: 'spzlqk' + }, + { + label: '服务承诺实现情况', + prop: 'fwcnsxqk' + }, + { + label: '供应商整体评价', + prop: 'gyspj' + }, + { + label: '其他', + prop: 'otherTitle' + }, + { + label: '其他评价 1优 2良 3合格 4 不合格', + prop: 'otherPj' + }, + { + label: '验收小组成员', + prop: 'ysGroup' + }, + { + label: '验收日期', + prop: 'ysTime' + }, + ] +} diff --git a/src/const/crud/finance/purchasingpeopledept.js b/src/const/crud/finance/purchasingpeopledept.js new file mode 100644 index 0000000..aa66899 --- /dev/null +++ b/src/const/crud/finance/purchasingpeopledept.js @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '用户账号', + prop: 'userName', + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + },rules: [{ + required: true, + trigger: 'blur', + message:"请选择用户账号" + }] + }, + { + label: '部门', + prop: 'deptCode', + type:'select', + search:true, + filterable:true, + searchFilterable:true, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + },rules: [{ + required: true, + message: '部门不能为空', + trigger: 'blur' + } + ] + } + ] +} diff --git a/src/const/crud/finance/purchasingwander.js b/src/const/crud/finance/purchasingwander.js new file mode 100644 index 0000000..5c811ae --- /dev/null +++ b/src/const/crud/finance/purchasingwander.js @@ -0,0 +1,150 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '申请单编号', + prop: 'purchasingNo', + search:true + }, + { + label: '需求部门', + prop: 'purchasingDept', + type:'select', + addDisplay: false, + search:true, + editDisplay: false, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props:{ + label:'deptName', + value:'deptCode' + } + }, + { + label: '采购内容', + prop: 'purchasingContent', + hide:false, + editDisabled:true, + }, + { + label: '项目类别', + prop: 'purchasingType', + type:'select', + search:true, + dicData:global.purchasingType, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '预算金额', + prop: 'budget', + editDisabled:true, + }, + { + label: '品目编码', + prop: 'itemCode', + editDisabled:true, + }, + + { + label: '类型', + prop: 'type', + type:'select', + search:true, + dicData:[{label:"内部采购流程",value:"1"},{label:"政府采购流程",value:"2"}], + props:{ + label:'label', + value:'value' + }, + }, + { + label: '采购组织形式 1学校集中采购 2部门自行采购', + prop: 'cgXs' + }, + { + label: '采购途径 1校内自行组织采购 2委托代理机构采购', + prop: 'cgTj' + }, + { + label: '学校集中采购方式 1竞争性磋商 2竞争性谈判 3框架协议 4 询价 5单一来源采购 6网上商城 7线下比价 8根据供应商履约情况直接采购 9其他', + prop: 'xxCg' + }, + { + label: '部门内部自行采购方式 1网上商城 2线下询、比价 3询价 4根据供应商履约情况直接采购 5其他', + prop: 'bmCg' + }, + { + label: '部门审核人', + prop: 'deptUser' + }, + { + label: '部门审核时间', + prop: 'deptTime' + }, + { + label: '业务分管人', + prop: 'ywUser' + }, + { + label: '业务分管时间', + prop: 'ywTime' + }, + { + label: '后勤管理处意见', + prop: 'hqUser' + }, + { + label: '后期管理处时间', + prop: 'hqTime' + }, + { + label: '学院分管人', + prop: 'fgUser' + }, + { + label: '学院分管时间', + prop: 'fgTime' + }, + { + label: '政府采购组织形式 1集中采购 2分散采购', + prop: 'zfXs' + }, + { + label: '代理机构 1委托集中采购机构采购 2委托代理机构采购', + prop: 'dlJg' + }, + { + label: '采购方式 1公开招标 2邀请招标 3竞争性磋商 4竞争性谈判 5框架协议 6询价 7单一来源采购 8网上商城 9其他', + prop: 'cgFs' + }, + ] +} diff --git a/src/const/crud/finance/recruitproject.js b/src/const/crud/finance/recruitproject.js new file mode 100644 index 0000000..a524ffa --- /dev/null +++ b/src/const/crud/finance/recruitproject.js @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '收费项目名称', + prop: 'projectName' + }, + { + label: '收费项目编码(和非税一致)', + prop: 'projectCode' + }, + { + label: '年份', + prop: 'year' + }, + ] +} diff --git a/src/const/crud/finance/recruitreimbursementtype.js b/src/const/crud/finance/recruitreimbursementtype.js new file mode 100644 index 0000000..61ee4cd --- /dev/null +++ b/src/const/crud/finance/recruitreimbursementtype.js @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + labelWidth: 120, + label: '报销类型名称', + prop: 'label', + search:true, + rules: [{ + required: true, + message: '报销类型名称不能为空', + trigger: 'blur' + }] + }, + { + labelWidth: 120, + label: '报销类型数据', + prop: 'value', + rules: [{ + required: true, + message: '报销类型数据不能为空', + trigger: 'blur' + }] + }, + { + labelWidth: 120, + label: '用友对接代码', + prop: 'yyCode', + rules: [{ + required: true, + message: '用友对接代码不能为空', + trigger: 'blur' + }] + }, + { + labelWidth: 120, + label: '是否需要发票', + prop: 'isNeedFp', + dicUrl: '/admin/dict/item/type/yes_no', + type:'switch', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '是否需要发票不能为空', + trigger: 'blur' + }] + + }, + { + label: '备注信息', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + }, + ] +} diff --git a/src/const/crud/finance/recruitsetting.js b/src/const/crud/finance/recruitsetting.js new file mode 100644 index 0000000..202eb9b --- /dev/null +++ b/src/const/crud/finance/recruitsetting.js @@ -0,0 +1,146 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + { + label: '收费名称', + prop: 'settingName', + labelWidth:120, + rules: [{ + required: true, + message: '请输入收费名称', + trigger: 'blur' + }] + }, + // { + // label: '收费类型', + // prop: 'type', + // type:'select', + // dicUrl: '/admin/dict/item/type/recruit_setting_type', + // props:{ + // label:'label', + // value:'value' + // }, + // rules: [{ + // required: true, + // message: '请选择收费类型', + // trigger: 'blur' + // }] + // }, + // { + // label: '年份', + // prop: 'year', + // labelWidth:120, + // formslot:true, + // type: 'year', + // format:'yyyy', + // valueFormat:'yyyy', + // rules: [{ + // required: true, + // message: '请输入年份', + // trigger: 'blur' + // }] + // }, + { + label: '年份', + prop: 'year', + type: 'year', + labelWidth:120, + addDisplay:true, + editDisabled:true, + editDisplay:true, + format:'yyyy', + valueFormat:'yyyy', + rules: [{ + required: true, + message: '请输入年份', + trigger: 'blur' + }] + }, + { + label: '停止编辑时间', + prop: 'lastTime', + labelWidth:120, + type:'datetime', + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '请选择时间', + trigger: 'blur' + }] + }, + { + label: '状态', + prop: 'state', + labelWidth:120, + type:'select', + dicUrl: '/admin/dict/item/type/recruit_setting_status', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '请输入状态', + trigger: 'blur' + }] + }, + { + label: '备注', + labelWidth:120, + prop: 'remarks', + type:'textarea', + span:24, + }, + ] +} diff --git a/src/const/crud/finance/recruitstu.js b/src/const/crud/finance/recruitstu.js new file mode 100644 index 0000000..556b6db --- /dev/null +++ b/src/const/crud/finance/recruitstu.js @@ -0,0 +1,171 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +const PAY_STATUS=[ + {label:'未缴费',value:'0'}, + {label:'部分缴费',value:'2'}, + {label:'已缴费',value:'1'}, +] +const CANCEL_STATUS=[ + {label:'正常',value:'0'}, + {label:'已作废',value:'1'}, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '收费项目', + prop: 'settingId', + type:"select", + dicUrl:'/finance/recruitsetting/queryAllList', + search:true, + hide:true, + props:{ + label:'settingName', + value:'id' + }, + + }, + { + label: '缴费状态', + prop: 'isPayAll', + type:"select", + dicData:PAY_STATUS, + search:true, + hide:true, + props:{ + label:'label', + value:'value' + }, + }, + + { + label: '唯一号/姓名/电话', + prop: 'userInfo', + hide:true, + display:false, + search:true + }, + { + label: '是否缴费', + prop: 'isPay' + }, + { + label: '是否作废', + prop: 'isCancal', + search:true, + type:"select", + dicData:CANCEL_STATUS, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '新生标识', + prop: 'serialNumber' + }, + { + label: '姓名', + prop: 'realName', + }, + { + label: '手机', + prop: 'phone', + }, + { + label: '学费', + prop: 'tuition' + }, + { + label: '代办费', + prop: 'agencyFee' + }, + { + label: '学校代办费材料费', + prop: 'agencyMaterialFee' + }, + { + label: '捐资助学费', + prop: 'donationAndTuition' + }, + { + label: '应缴', + prop: 'shouldPay' + }, + { + label: '已缴', + prop: 'realPay' + }, + { + label: '生源', + prop: 'stuSource', + dicUrl:'/admin/dict/item/type/finance_student_source', + props:{ + label:'label', + value:'value' + }, + search:true, + type:"radio", + }, + + { + label: '经办人', + prop: 'operaterName' + }, + ] +} diff --git a/src/const/crud/finance/recruitstuproject.js b/src/const/crud/finance/recruitstuproject.js new file mode 100644 index 0000000..f8f5ed7 --- /dev/null +++ b/src/const/crud/finance/recruitstuproject.js @@ -0,0 +1,107 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '新生唯一号', + prop: 'serialNumber' + }, + { + label: '收费项目', + prop: 'projectCode', + dicUrl:'/finance/recruitproject/queryAllProjectList', + props:{ + label:'projectName', + value:'projectCode' + }, + type:'select' + }, + { + label: '费用', + prop: 'money' + }, + { + label: '状态', + prop: 'status', + dicUrl:'/admin/dict/item/type/finance_pay_status', + props:{ + label:'label', + value:'value' + }, + type:'select' + }, + + { + label: '缴费方式', + prop: 'payType', + dicUrl:'/admin/dict/item/type/finance_pay_way', + props:{ + label:'label', + value:'value' + }, + type:'select' + }, + { + label: '缴费时间', + prop: 'payTime' + }, + { + label: '已支付费用', + prop: 'paiedMoney' + }, + ] +} diff --git a/src/const/crud/finance/recruitturnoversetting.js b/src/const/crud/finance/recruitturnoversetting.js new file mode 100644 index 0000000..e8a561c --- /dev/null +++ b/src/const/crud/finance/recruitturnoversetting.js @@ -0,0 +1,131 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + + { + label: '收费名称', + prop: 'settingName', + labelWidth:120, + rules: [{ + required: true, + message: '请输入收费名称', + trigger: 'blur' + }] + }, + { + label: '收费类型', + prop: 'type', + dicUrl:'/admin/dict/item/type/recruit_setting_type', + props:{ + label:'label', + value:'value' + }, + type:"radio", + }, + // { + // label: '收费类型 0:非新生 6: 新生', + // prop: 'type', + // labelWidth:120, + // rules: [{ + // required: true, + // message: '请选择收费类型', + // trigger: 'blur' + // }] + // }, + { + label: '年份', + prop: 'year', + type:'number', + rules: [{ + required: true, + message: '请输入年份', + trigger: 'blur' + }] + }, + { + label: '停止编辑时间', + prop: 'lastTime', + type:'datetime', + format: 'yyyy-MM-dd HH:mm', + valueFormat: "yyyy-MM-dd hh:mm:ss", + rules: [{ + required: true, + message: '请选择时间', + trigger: 'blur' + }] + }, + { + label: '状态', + prop: 'state', + dicUrl:'/admin/dict/item/type/recruit_setting_status', + labelWidth:120, + props:{ + label:'label', + value:'value' + }, + type:"radio", + rules: [{ + required: true, + message: '请输入状态', + trigger: 'blur' + }] + }, + { + label: '备注', + labelWidth:120, + prop: 'remarks', + type:'textarea', + span:24, + }, + ] +} diff --git a/src/const/crud/finance/recruitturnoverstu.js b/src/const/crud/finance/recruitturnoverstu.js new file mode 100644 index 0000000..bed712e --- /dev/null +++ b/src/const/crud/finance/recruitturnoverstu.js @@ -0,0 +1,172 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const PAY_STATUS=[ + {label:'未退补',value:'0'}, + {label:'已退补',value:'1'}, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '异动项目', + prop: 'settingId', + type:"select", + dicUrl:'/finance/recruitturnoversetting/queryAllList', + search:true, + hide:true, + props:{ + label:'settingName', + value:'id' + }, + + }, + { + label: '退补状态', + prop: 'isPayAll', + type:"select", + dicData:PAY_STATUS, + search:true, + hide:true, + props:{ + label:'label', + value:'value' + }, + }, + + { + label: '唯一号/姓名/电话', + prop: 'userInfo', + hide:true, + display:false, + search:true + }, + { + label: '新生标识', + prop: 'serialNumber', + rules: [{ + required: true, + message: '请输入新生唯一号', + trigger: 'blur' + }] + }, + { + label: '姓名', + prop: 'realName', + rules: [{ + required: true, + message: '请输入姓名', + trigger: 'blur' + }] + }, + { + label: '手机', + prop: 'phone', + }, + { + label: '生源', + prop: 'stuSource', + type:'select', + search:true, + dicUrl: '/admin/dict/item/type/finance_student_source', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '请输入选择生源', + trigger: 'blur' + }] + }, + { + label: '学费', + prop: 'tuition' + }, + { + label: '代办费', + prop: 'agencyFee' + }, + { + label: '捐资助学费', + prop: 'donationAndTuition' + }, + { + label: '退/补', + prop: 'type', + type:'select', + dicUrl: '/admin/dict/item/type/recruit_turnover_stu_type', + props:{ + label:'label', + value:'value' + }, + search:true + }, + { + label: '应退/补', + prop: 'shouldPay' + }, + { + label: '已退/补', + prop: 'realPay' + }, + { + label: '欠退/补', + prop: 'oweFee' + }, + { + label: '经办人姓名', + prop: 'operaterName' + }, + ] +} diff --git a/src/const/crud/finance/recruitturnoverstuproject.js b/src/const/crud/finance/recruitturnoverstuproject.js new file mode 100644 index 0000000..9b4680d --- /dev/null +++ b/src/const/crud/finance/recruitturnoverstuproject.js @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '新生唯一号', + prop: 'serialNumber' + }, + { + label: '收费项目', + prop: 'projectCode' + }, + { + label: '费用', + prop: 'money' + }, + { + label: '0:补 1:退', + prop: 'type' + }, + { + label: '缴/退费方式 20:现金 30:Pos机收费 21:支付宝线下支付 22:微信线下支付', + prop: 'payType' + }, + ] +} diff --git a/src/const/crud/gen/gen.js b/src/const/crud/gen/gen.js new file mode 100644 index 0000000..ee95ed7 --- /dev/null +++ b/src/const/crud/gen/gen.js @@ -0,0 +1,63 @@ +export const tableOption = { + border: true, + index: true, + stripe: true, + menuAlign: 'center', + align: 'center', + addBtn: false, + editBtn: false, + delBtn: false, + filterBtn:false, + column: [{ + label: '表名称', + prop: 'tableName', + align: 'center', + search: true + }, { + label: '表注释', + prop: 'tableComment', + align: 'center' + }, { + label: '索引', + prop: 'engine', + align: 'center' + }, { + type: 'datetime', + valueFormat: 'timestamp', + format: 'yyyy-MM-dd hh:mm:ss', + label: '创建时间', + prop: 'createTime', + align: 'center' + }] +} + +export const formOption = { + submitText: '生成', + column: [ + { + label: '表名称', + prop: 'tableName', + disabled: true + }, { + label: '包名', + prop: 'packageName', + placeholder: '可为空,加载系统默认配置' + }, { + label: '作者', + prop: 'author', + placeholder: '可为空,加载系统默认配置' + }, { + label: '模块', + prop: 'moduleName', + placeholder: '可为空,加载系统默认配置' + }, { + label: '表前缀', + prop: 'tablePrefix', + placeholder: '可为空,加载系统默认配置' + }, { + label: '注释', + prop: 'comments', + placeholder: '可为空,加载表备注' + } + ] +} diff --git a/src/const/crud/graduationVerification/graduationVerification.js b/src/const/crud/graduationVerification/graduationVerification.js new file mode 100644 index 0000000..a61921d --- /dev/null +++ b/src/const/crud/graduationVerification/graduationVerification.js @@ -0,0 +1,126 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" +import {CURRENT_SCHOOL_YEAR} from "@/config/global"; +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menu:false, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + searchBtn:false, + refreshBtn:false, + columnBtn:false, + dic: [], + column: [ + { + label:'学院', + prop: 'deptName', + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptName' + }, + }, + { + label: '班级', + prop: 'classNo', + search:true + }, + { + label: '学年', + prop: 'schoolYear', + type: 'select', + valueDefault:CURRENT_SCHOOL_YEAR, + searchDefault:CURRENT_SCHOOL_YEAR, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + search:true, + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '年级', + prop: 'grade', + }, + { + label: '专业', + prop: 'majorCode', + labelWidth: 120, + formslot: true, + search:true, + type:'select', + dicUrl: '/basic/major/getMajorNameList', + props: { + label: 'majorName', + value: 'majorCode' + }, + rules: [{ + required: true, + message: "请选择专业", + trigger: "blur" + }] + }, + { + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '学号', + prop: 'stuNo', + search:true + }, + { + label: '课程名', + prop: 'courseName', + search:true + }, + { + label: '课程性质', + prop: 'courseProperties', + search:true, + type:'select', + dicUrl: '/ems/courseproperties/list', + props:{ + label:'propertiesName', + value:'id' + }, + }, + { + label: '学分', + prop: 'courseScore', + }, + { + label: '重修成绩', + prop: 'rebuildScore', + } + ] +} diff --git a/src/const/crud/invoice/invoice.js b/src/const/crud/invoice/invoice.js new file mode 100755 index 0000000..1b6bddc --- /dev/null +++ b/src/const/crud/invoice/invoice.js @@ -0,0 +1,125 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const STATUS=[ + {label:'待审核',value:'0'}, + {label:'通过',value:'100'}, + {label:'驳回',value:'-100'} +] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + dialogHeight:700, + column: [ + { + label: '开票流水号', + prop: 'serialNo', + search:true, + editDisabled:true + }, + { + label: '企业税号', + prop: 'buyerTaxNo', + search:true, + editDisabled:true + + }, + { + label: '公司名称', + prop: 'buyerName', + editDisabled:true + + }, + { + label: '地址及电话', + prop: 'buyerAddressPhone', + editDisabled:true + + }, + { + label: '开户行及账号', + prop: 'buyerBankAccount', + editDisabled:true + + }, + { + label: '开票人', + prop: 'drawer', + hide:true, + editDisabled:true + + }, + { + label: '发票种类编码', + prop: 'invoiceTypeCode', + hide:true, + editDisabled:true + + + }, + { + label: '开票点编码', + prop: 'invoiceTerminalCode', + editDisabled:true + + }, + { + label: '合计金额', + prop: 'invoiceTotalPrice', + type:'number', + precision:2 + }, + { + label: '合计税额', + prop: 'invoiceTotalTax', + type:'number', + precision:2 + }, + { + label: '价税合计', + prop: 'invoiceTotalPriceTax', + type:'number', + precision:2 + }, + { + label: '备注', + prop: 'remark', + type:'textarea' + }, + { + label: '状态', + prop: 'status', + search:true, + type:'select', + dicData:STATUS, + props:{ + label:'label', + value:'value' + }, + editDisabled:true + + } + ] +} diff --git a/src/const/crud/invoice/invoicecompanyinfo.js b/src/const/crud/invoice/invoicecompanyinfo.js new file mode 100755 index 0000000..d55bd2c --- /dev/null +++ b/src/const/crud/invoice/invoicecompanyinfo.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '公司名称', + prop: 'companyName' + }, + { + label: '税号', + prop: 'taxNo' + }, + { + label: '开户行', + prop: 'bankOpen' + }, + { + label: '银行账号', + prop: 'bankNo' + }, + ] +} diff --git a/src/const/crud/invoice/invoicegoods.js b/src/const/crud/invoice/invoicegoods.js new file mode 100755 index 0000000..b820ab1 --- /dev/null +++ b/src/const/crud/invoice/invoicegoods.js @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '发票流水号', + prop: 'invoiceNo' + }, + { + label: '商品编码', + prop: 'goodsCode' + }, + { + label: '商品名称', + prop: 'goodsName' + }, + { + label: '计量单位', + prop: 'goodsUnit' + }, + { + label: '金额', + prop: 'goodsTotalPrice' + }, + { + label: '税额', + prop: 'goodsTotalTax' + }, + { + label: '税率', + prop: 'goodsTaxRate' + }, + { + label: '含税标志0:不含税 1:含税', + prop: 'priceTaxMark' + }, + { + label: '是否使用优惠政策 0:未使用,1:使用', + prop: 'preferentialMark' + }, + ] +} diff --git a/src/const/crud/oa/oaanalysis.js b/src/const/crud/oa/oaanalysis.js new file mode 100755 index 0000000..7617dfc --- /dev/null +++ b/src/const/crud/oa/oaanalysis.js @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + addBtn: false, + editBtn: false, + delBtn: false, + menu:false, + page:false, + column: [ + // { + // label: '发布日期', + // prop: 'pubDate', + // type: 'date', + // format: 'yyyy-MM-dd', + // valueFormat: 'yyyy-MM-dd HH:mm:ss', + // width:150 + // }, + { + label: '发布部门', + prop: 'deptName' + }, + { + label: '文章数量', + prop: 'num' + } + ] +} diff --git a/src/const/crud/oa/oadept.js b/src/const/crud/oa/oadept.js new file mode 100755 index 0000000..e7492ef --- /dev/null +++ b/src/const/crud/oa/oadept.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '部门名称', + prop: 'deptName' + }, + + ] +} diff --git a/src/const/crud/oa/oadeptteacherrelation.js b/src/const/crud/oa/oadeptteacherrelation.js new file mode 100755 index 0000000..5e1f650 --- /dev/null +++ b/src/const/crud/oa/oadeptteacherrelation.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const userOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '工号', + prop: 'teacherNo', + }, + { + label: '姓名', + prop: 'teacherName', + }, + + ] +} diff --git a/src/const/crud/oa/oafiletask.js b/src/const/crud/oa/oafiletask.js new file mode 100644 index 0000000..38c996d --- /dev/null +++ b/src/const/crud/oa/oafiletask.js @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '部门名称', + prop: 'deptCode' + }, + { + label: '子部门名称', + prop: 'commonDeptCode' + }, + { + label: '原始附件', + prop: 'fileUrl' + }, + { + label: '历史附件记录', + prop: 'fileUrl' + }, + { + label: '文件任务备注', + prop: 'remakrs' + }, + { + label: '已传达人数', + prop: 'fileUrl' + }, + { + label: '已传达部门数', + prop: 'fileUrl' + }, + { + label: '已阅人数', + prop: 'fileUrl' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + + ] +} diff --git a/src/const/crud/oa/oajobtask.js b/src/const/crud/oa/oajobtask.js new file mode 100644 index 0000000..00b478e --- /dev/null +++ b/src/const/crud/oa/oajobtask.js @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + + { + label: '部门名称', + prop: 'deptCode' + }, + { + label: '子部门名称', + prop: 'commonDeptCode' + }, + { + label: '任务名称', + prop: 'remakrs' + }, + { + label: '详细内容', + prop: 'remakrs' + }, + { + label: '附件', + prop: 'fileUrl' + }, + { + label: '已传达人数', + prop: 'fileUrl' + }, + { + label: '已传达部门数', + prop: 'fileUrl' + }, + { + label: '已阅人数', + prop: 'fileUrl' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + + ] +} diff --git a/src/const/crud/oa/oamessage.js b/src/const/crud/oa/oamessage.js new file mode 100755 index 0000000..3dbbc5c --- /dev/null +++ b/src/const/crud/oa/oamessage.js @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: false, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + addBtn: false, + editBtn: false, + delBtn: false, + column: [ + { + label: '空心多选', + prop: 'checkbox2', + span:24, + type: 'checkbox', + border:true, + dicData:DIC + } + ] +} diff --git a/src/const/crud/oa/oanotice.js b/src/const/crud/oa/oanotice.js new file mode 100755 index 0000000..c9a8c40 --- /dev/null +++ b/src/const/crud/oa/oanotice.js @@ -0,0 +1,133 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + addBtn: false, + editBtn: false, + delBtn: false, + dialogHeight:600, + searchShow:false, + column: [ + { + label: '标题', + prop: 'title', + search:true, + span:24, + row:true, + minWidth: 400, + rules: [{ + required: true, + message: "请输入标题", + }] + }, + { + label: '关键词', + prop: 'keyWord', + search:true, + minWidth:50 , + span:24, + row:true + }, + { + label: '发布日期', + prop: 'pubDate', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + minWidth:80, + rules: [{ + required: true, + message: "请输入发布日期", + }] + }, + { + label: '阅读次数', + prop: 'readNums', + addDisplay:false, + editDisplay:false, + minWidth:40, + }, + { + label: 'PDF', + prop: 'pdfList', + hide:true, + type: 'upload', + loadText: '附件上传中,请稍等', + span: 24, + limit:1, + action: '/oa/file/uploadPdf', + propsHttp: { + res: 'data', + name:'fileName', + }, + }, + { + label: '其他附件', + prop: 'fileGroupList', + hide:true, + type: 'upload', + loadText: '附件上传中,请稍等', + span: 24, + limit:1, + action: '/oa/file/upload', + propsHttp: { + res: 'data', + name:'fileName', + }, + + }, + { + label: '发布部门', + prop: 'deptName', + addDisplay:false, + editDisabled:true, + minWidth:120, + }, + { + label: '创建日期', + prop: 'createTime', + type: 'date', + format: 'yyyy-MM-dd', + hide:true, + valueFormat: 'yyyy-MM-dd HH:mm:ss', + addDisplay:false, + editDisabled:true + }, + { + label: '是否有效', + prop: 'status', + dicUrl: '/admin/dict/item/type/yes_no', + type:'switch', + formslot:true, + minWidth:40, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择是否有效", + }] + }, + ] +} diff --git a/src/const/crud/oa/oasubject.js b/src/const/crud/oa/oasubject.js new file mode 100755 index 0000000..6e81128 --- /dev/null +++ b/src/const/crud/oa/oasubject.js @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + delBtn: false, + editBtn:false, + addBtn :false, + column: [ + // { + // label: '', + // prop: 'id' + // }, + { + label: '栏目名称', + prop: 'subjectName' + }, + { + label: '是否展示', + prop: 'status', + dicUrl: '/admin/dict/item/type/yes_no', + type:'switch', + props:{ + label:'label', + value:'value' + } + }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + { + label: '排序值', + prop: 'sort', + type:'number' + }, + { + label: '创建时间', + prop: 'createDate', + addDisplay:false, + editDisabled:true + }, + ] +} diff --git a/src/const/crud/professional/academicqualificationsconfig.js b/src/const/crud/professional/academicqualificationsconfig.js new file mode 100755 index 0000000..0ce1ec5 --- /dev/null +++ b/src/const/crud/professional/academicqualificationsconfig.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id',ç + // prop: 'tenantId' + // }, + { + label: '学历名称', + prop: 'qualificationName' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks', + }, + ] +} diff --git a/src/const/crud/professional/outercompany.js b/src/const/crud/professional/outercompany.js new file mode 100755 index 0000000..8bb7ba6 --- /dev/null +++ b/src/const/crud/professional/outercompany.js @@ -0,0 +1,204 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const typeDic=[ + {label:'驻校单位',value:'0'}, + {label:'培训单位',value:'1'}, + {label:'二期单位',value:'2'}, +] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标志位', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '租户id', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '排序', + prop: 'sort', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '类型', + prop: 'companyType', + span:24, + search: false, + dicData:typeDic, + display: false, + type:'select', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入类型" + }] + }, + { + label: '单位名称', + prop: 'companyName', + span:24, + search: true, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入单位名称" + }] + }, + { + label: '开始时段', + prop: 'allowStartTime', + + type: 'date', + format: "yyyy-MM-dd", + valueFormat: "yyyy-MM-dd", + span:24, + }, + { + label: '截止时段', + prop: 'allowEndTime', + + type: 'date', + format: "yyyy-MM-dd", + valueFormat: "yyyy-MM-dd", + span:24, + }, + // { + // label: '管理员', + // prop: 'userName', + // formslot: true, + // span:24, + // hide:true, + // }, + // { + // label: '管理员', + // prop: 'realName', + // display:false, + // addDisplay:false, + // editDisabled:true, + // editDisplay:false, + // visdiplay:false + // }, + { + label: '人数', + prop: 'nums', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '已上报人数', + prop: 'okNums', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '未上报人数', + prop: 'noOkNums', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '备注', + prop: 'remarks', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + ] +} diff --git a/src/const/crud/professional/outercompanyemployee.js b/src/const/crud/professional/outercompanyemployee.js new file mode 100755 index 0000000..7fd705b --- /dev/null +++ b/src/const/crud/professional/outercompanyemployee.js @@ -0,0 +1,586 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + selection:true, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标志位', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '租户id', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '排序', + prop: 'sort', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '单位名称', + prop: 'companyId', + type: 'select', + filterable:true, + dicUrl:`/professional/outercompany/getList?companyType=0`, + props:{ + label:'companyName', + value:'id', + }, + search:true, + searchFilterable:true, + filter:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择单位" + }] + + }, + { + label: '单位名称', + prop: 'companyName', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '职员编号', + prop: 'employeeNo', + addDisplay:false, + editDisabled:true, + search:true, + }, + { + label: '姓名', + prop: 'realName', + search:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写姓名" + }] + + }, + { + label: '身份证', + prop: 'idCard', + search:true, + hide:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写身份证号" + }] + }, + { + label: '手机', + prop: 'mobile', + search:true, + hide:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写手机号" + }] + }, + { + label: '职位', + prop: 'position', + hide:true + }, + { + label: '家庭地址', + prop: 'address', + hide:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写家庭住址" + }] + }, + { + label: '允许进出', + prop: 'inoutFlag', + type: 'select', + dicUrl: '/admin/dict/item/type/yes_no', + search: true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择是否允许进出" + }] + }, + { + width: 300, + label: '头像', + prop: 'imageUrl', + slot:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + }, + { + label: '备注', + prop: 'remarks', + type:'textarea', + hide: true, + }, + ] +} + + +export const tableSecondOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + selection:true, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标志位', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '租户id', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '排序', + prop: 'sort', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '单位名称', + prop: 'companyId', + type: 'select', + filterable:true, + dicUrl:`/professional/outercompany/getList?companyType=2`, + props:{ + label:'companyName', + value:'id', + }, + search:true, + searchFilterable:true, + filter:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择单位" + }] + + }, + { + label: '单位名称', + prop: 'companyName', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '职员编号', + prop: 'employeeNo', + addDisplay:false, + editDisabled:true, + search:true, + }, + { + label: '姓名', + prop: 'realName', + search:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写姓名" + }] + + }, + { + label: '身份证', + prop: 'idCard', + search:true, + hide:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写身份证号" + }] + }, + { + label: '手机', + prop: 'mobile', + search:true, + hide:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写手机号" + }] + }, + { + label: '职位', + prop: 'position', + hide:true + }, + { + label: '家庭地址', + prop: 'address', + hide:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写家庭住址" + }] + }, + { + label: '允许进出', + prop: 'inoutFlag', + type: 'select', + dicUrl: '/admin/dict/item/type/yes_no', + search: true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择是否允许进出" + }] + }, + { + width: 300, + label: '头像', + prop: 'imageUrl', + slot:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + }, + { + label: '备注', + prop: 'remarks', + type:'textarea', + hide: true, + }, + ] +} + +export const tableOptionTrain = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + selection:true, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标志位', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '租户id', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '排序', + prop: 'sort', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '班级名称', + prop: 'companyId', + type: 'select', + filterable:true, + dicUrl:`/professional/outercompany/getList?companyType=1`, + props:{ + label:'companyName', + value:'id', + }, + search:true, + searchFilterable:true, + filter:true + + }, + { + label: '班级名称', + prop: 'companyName', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '学员编号', + prop: 'employeeNo', + addDisplay:false, + editDisabled:true, + search:true, + }, + { + label: '姓名', + prop: 'realName', + search:true, + }, + { + label: '身份证', + prop: 'idCard', + search:true, + hide:true + }, + { + label: '手机', + prop: 'mobile', + search:true, + hide:true + }, + // { + // label: '职位', + // prop: 'position', + // hide:true + // }, + // { + // label: '地址', + // prop: 'address', + // hide:true + // }, + { + label: '允许进出', + prop: 'inoutFlag', + type: 'select', + dicUrl: '/admin/dict/item/type/yes_no', + search: true + }, + { + width: 300, + label: '头像', + prop: 'imageUrl', + slot:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + }, + { + label: '备注', + prop: 'remarks', + type:'textarea', + hide: true, + }, + ] +} diff --git a/src/const/crud/professional/phaseintentioncompany.js b/src/const/crud/professional/phaseintentioncompany.js new file mode 100644 index 0000000..acbfd2c --- /dev/null +++ b/src/const/crud/professional/phaseintentioncompany.js @@ -0,0 +1,430 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import {states} from "@/const/crud/asset/assetsinvalid/assetassetsinvalid"; + +export const companyType=[ + { + label:'入驻', + value:'0' + }, + { + label:'合作', + value:'1' + }, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + dialogHeight: 800, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '学院', + prop: 'deptCode', + type:'select', + multiple:true, + labelWidth:120, + search:true, + filterable:true, + searchFilterable:true, + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学院" + }] + }, + { + label: '入驻类型', + labelWidth:120, + prop: 'companyType', + type: 'select', + search:true, + dicData:companyType, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择是否入驻类型" + }] + }, + { + label: '公司名称', + labelWidth:120, + prop: 'companyName', + search:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写公司名称" + }, + { max: 30, message: '长度在 30 个字符', trigger: 'blur' }, + ] + }, + { + label: '统一社会编码', + labelWidth:120, + prop: 'companyCode', + search:true, + editDisabled:true, + editDisplay:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写统一社会编码" + }, + { max: 30, message: '长度在 30 个字符', trigger: 'blur' }, + ] + }, + { + label: '联系人', + labelWidth:120, + prop: 'contactsName', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写联系人" + }, + { max: 30, message: '长度在 30 个字符', trigger: 'blur' }, + ] + }, + { + label: '联系电话', + labelWidth:120, + prop: 'contactsPhone', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写联系电话" + }, + { max: 30, message: '长度在 30 个字符', trigger: 'blur' }, + ] + }, + { + label: '高新技术企业', + labelWidth:120, + prop: 'isTechnology', + type: 'select', + search:true, + dicUrl: '/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择是否高新技术企业" + }] + }, + + { + label: '员工数', + labelWidth:120, + type:'number', + prop: 'employeesNum', + }, + { + label: '企业场景', + labelWidth:120, + prop: 'companyImg', + hide: true, + slot:true, + formslot:true + }, + { + label: '年产值(万元)', + labelWidth:120, + type:'number', + prop: 'annualOutputValue' + }, + { + label: '设备总值(万元)', + labelWidth:120, + prop: 'equipmentValue', + hide: true, + type:'number' + }, + + { + label: '厂房面积(m²)', + prop: 'plantArea', + hide: true, + type:'number', + labelWidth:120 + }, + { + label: '发明专利数', + prop: 'inventionPatent', + labelWidth:120, + hide: true, + type:'number' + }, + { + label: '实用新型专利数', + labelWidth:120, + prop: 'utilityModel', + hide: true, + type:'number' + }, + { + label: '企业规模', + labelWidth:120, + prop: 'enterpriseSize', + hide: true + }, + { + label: '注册资本', + labelWidth:120, + prop: 'registeredCapital', + hide: true + }, + { + label: '存续年限', + labelWidth:120, + prop: 'survivalPeriod', + hide: true + }, + { + label: '所处行业', + labelWidth:120, + prop: 'industryCode', + type: 'select', + span:24, + search:true, + dicUrl: '/admin/dict/item/type/company_industry', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择是否高新技术企业" + }] + }, + { + label: '目标房型1', + labelWidth:120, + prop: 'targetRoomOne', + span:8, + hide: true + }, + { + label: '楼层要求1', + labelWidth:120, + span:8, + prop: 'floorRequirementsOne', + hide: true + }, + { + label: '面积要求1', + labelWidth:120, + span:8, + prop: 'areaRequirementsOne', + hide: true + }, + { + label: '目标房型2', + labelWidth:120, + span:8, + prop: 'targetRoomTwo', + hide: true + }, + { + label: '楼层要求2', + labelWidth:120, + span:8, + prop: 'floorRequirementsTwo', + hide: true + }, + { + label: '面积要求2', + labelWidth:120, + span:8, + prop: 'areaRequirementsTwo', + hide: true + }, + { + label: '目标房型3', + labelWidth:120, + span:8, + prop: 'targetRoomThree', + hide: true + }, + { + label: '楼层要求3', + labelWidth:120, + span:8, + prop: 'floorRequirementsThree', + hide: true + }, + { + label: '面积要求3', + labelWidth:120, + span:8, + prop: 'areaRequirementsThree', + hide: true + }, + { + label: '技术技能', + labelWidth:120, + prop: 'technicalSkills', + hide: true, + type:'textarea', + row:true, + span:24, + rules: [ + { max: 255, message: '长度在 255 个字符', trigger: 'blur' }, + ] + }, + { + label: '主营业务', + labelWidth:120, + prop: 'mainBusiness', + type:'textarea', + row:true, + span:24, + rules: [ + { + required: true, + trigger: 'blur', + message:"请填写主营业务" + }, + { max: 255, message: '长度在 255 个字符', trigger: 'blur' }, + ] + }, + { + label: '主要产品', + labelWidth:120, + prop: 'mainProducts', + hide: true, + type:'textarea', + row:true, + span:24, + rules: [ + { max: 255, message: '长度在 255 个字符', trigger: 'blur' }, + ] + }, + { + label: '近三年生产总值', + labelWidth:120, + prop: 'gross', + hide: true, + type:'textarea', + row:true, + span:24, + rules: [ + { max: 255, message: '长度在 255 个字符', trigger: 'blur' }, + ] + }, + { + label: '发展前景', + labelWidth:120, + prop: 'developmentProspects', + hide: true, + type:'textarea', + row:true, + span:24, + rules: [ + { max: 255, message: '长度在 255 个字符', trigger: 'blur' }, + ] + }, + { + label: '投入计划', + labelWidth:120, + prop: 'investmentPlan', + hide: true, + type:'textarea', + row:true, + span:24, + rules: [ + { max: 255, message: '长度在 255 个字符', trigger: 'blur' }, + ] + }, + + { + label: '经营范围', + labelWidth:120, + prop: 'businessScope', + hide: true, + type:'textarea', + row:true, + span:24, + rules: [ + { max: 255, message: '长度在 255 个字符', trigger: 'blur' }, + ] + }, + { + label: '备注', + labelWidth:120, + prop: 'remarks', + type:'textarea', + row:true, + span:24, + rules: [ + { max: 255, message: '长度在 255 个字符', trigger: 'blur' }, + ] + }, + { + label: '校企协议书', + labelWidth:120, + prop: 'agreement', + addDisplay: false, + editDisplay: false, + slot:true, + }, + { + label: '校企协议书', + labelWidth:120, + prop: 'isAgreement', + type: 'select', + search:true, + dicUrl: '/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + addDisplay: false, + editDisplay: false, + hide:true + }, + ] +} diff --git a/src/const/crud/professional/phaseintentioncompanyagreement.js b/src/const/crud/professional/phaseintentioncompanyagreement.js new file mode 100644 index 0000000..b72568f --- /dev/null +++ b/src/const/crud/professional/phaseintentioncompanyagreement.js @@ -0,0 +1,165 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '企业名称', + labelWidth:200, + prop: 'companyId', + filterable:true, + searchFilterable:true, + search:true, + type:'select', + dicUrl: '/professional/phaseintentioncompany/list', + props: { + label: 'companyName', + value: 'id' + }, + rules: [{ + required: true, + message: '企业不能为空', + trigger: 'blur' + } + ] + }, + { + label: '开始时间', + prop: 'beginTime', + type:'date', + labelWidth:200, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: "请选择开始时间", + trigger: "blur" + }], + }, + { + label: '结束时间', + prop: 'endTime', + type:'date', + labelWidth:200, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: "请选择结束时间", + trigger: "blur" + }], + }, + { + label: '楼号', + prop: 'buildNo', + labelWidth:200, + rules: [{ + required: true, + message: '楼号不能为空', + trigger: 'blur' + } + ] + }, + { + label: '楼层', + prop: 'levelVal', + labelWidth:200, + rules: [{ + required: true, + message: '楼层不能为空', + trigger: 'blur' + } + ] + }, + { + label: '面积(平方)', + prop: 'areaVal', + labelWidth:200, + rules: [{ + required: true, + message: '面积不能为空', + trigger: 'blur' + } + ] + }, + { + label: '租金(元/平方/年)', + prop: 'money', + labelWidth:200, + type:'number', + rules: [{ + required: true, + message: '租金不能为空', + trigger: 'blur' + } + ] + }, + { + label: '租金总计', + prop: 'allMoney', + labelWidth:200, + type:'number', + rules: [{ + required: true, + message: '租金不能为空', + trigger: 'blur' + } + ] + }, + { + label: '物业管理费', + prop: 'wyMoney', + labelWidth:200, + type:'number', + rules: [{ + required: true, + message: '物业管理费为空', + trigger: 'blur' + } + ] + }, + { + label: '创建时间', + prop: 'createTime', + addDisplay:false, + addDisableed:false, + editDisabled:false, + editDisplay:false, + }, + { + label: '备注', + labelWidth:200, + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + }, + ] +} diff --git a/src/const/crud/professional/phaseintentioncompanybuild.js b/src/const/crud/professional/phaseintentioncompanybuild.js new file mode 100644 index 0000000..5c962dd --- /dev/null +++ b/src/const/crud/professional/phaseintentioncompanybuild.js @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '企业名称', + labelWidth:200, + prop: 'companyId', + filterable:true, + searchFilterable:true, + search:true, + type:'select', + dicUrl: '/professional/phaseintentioncompany/list', + props: { + label: 'companyName', + value: 'id' + }, + rules: [{ + required: true, + message: '企业不能为空', + trigger: 'blur' + } + ] + }, + + { + label: '建设人', + labelWidth:200, + prop: 'checkPeople' + }, + { + label: '建设地点', + labelWidth:200, + prop: 'checkAddress' + }, + { + label: '检查或与实习基地建设情况', + labelWidth:200, + prop: 'checkBaseSituation' + }, + { + label: '问题及处理情况', + labelWidth:200, + prop: 'feedback' + }, + { + label: '监察人', + labelWidth:200, + prop: 'checkName' + }, + { + label: '填写日期', + prop: 'inTime', + type:'date', + labelWidth:200, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: "请选择时间", + trigger: "blur" + }], + }, + { + label: '建设记录上传', + labelWidth:200, + prop: 'filePath', + hide: true, + slot:true, + formslot:true + }, + { + label: '建设记录下载', + labelWidth:120, + prop: 'filePathValue', + addDisplay: false, + editDisplay: false, + slot:true, + }, + { + label: '备注', + type:'textarea', + labelWidth:200, + row:true, + span:24, + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/phaseintentioncompanycarrierbuild.js b/src/const/crud/professional/phaseintentioncompanycarrierbuild.js new file mode 100644 index 0000000..b3df0c1 --- /dev/null +++ b/src/const/crud/professional/phaseintentioncompanycarrierbuild.js @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '企业名称', + labelWidth:200, + prop: 'companyId', + filterable:true, + searchFilterable:true, + search:true, + type:'select', + dicUrl: '/professional/phaseintentioncompany/list', + props: { + label: 'companyName', + value: 'id' + }, + rules: [{ + required: true, + message: '企业不能为空', + trigger: 'blur' + } + ] + }, + + { + label: '建设人', + labelWidth:200, + prop: 'checkPeople' + }, + { + label: '建设地点', + labelWidth:200, + prop: 'checkAddress' + }, + { + label: '检查或与实习基地建设情况', + labelWidth:200, + prop: 'checkBaseSituation' + }, + { + label: '问题及处理情况', + labelWidth:200, + prop: 'feedback' + }, + { + label: '监察人', + labelWidth:200, + prop: 'checkName' + }, + { + label: '填写日期', + prop: 'inTime', + type:'date', + labelWidth:200, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: "请选择时间", + trigger: "blur" + }], + }, + { + label: '检查文件上传', + labelWidth:200, + prop: 'filePath', + hide: true, + slot:true, + formslot:true + }, + { + label: '检查文件上传', + labelWidth:120, + prop: 'filePathValue', + addDisplay: false, + editDisplay: false, + slot:true, + }, + { + label: '备注', + type:'textarea', + labelWidth:200, + row:true, + span:24, + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/phaseintentioncompanyinspect.js b/src/const/crud/professional/phaseintentioncompanyinspect.js new file mode 100644 index 0000000..0e128fe --- /dev/null +++ b/src/const/crud/professional/phaseintentioncompanyinspect.js @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '企业名称', + labelWidth:200, + prop: 'companyId', + filterable:true, + searchFilterable:true, + search:true, + type:'select', + dicUrl: '/professional/phaseintentioncompany/list', + props: { + label: 'companyName', + value: 'id' + }, + rules: [{ + required: true, + message: '企业不能为空', + trigger: 'blur' + } + ] + }, + { + label: '检查人', + labelWidth:200, + prop: 'checkPeople' + }, + { + label: '检查地点', + labelWidth:200, + prop: 'checkAddress' + }, + { + label: '检查或与实习基地联系情况', + labelWidth:200, + prop: 'checkBaseSituation' + }, + { + label: '检查或与学生联系情况', + labelWidth:200, + prop: 'checkStuSituation' + }, + { + label: '问题及处理情况', + labelWidth:200, + prop: 'feedback' + }, + { + label: '监察人', + labelWidth:200, + prop: 'checkName' + }, + { + label: '填写日期', + prop: 'inTime', + type:'date', + labelWidth:200, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: "请选择时间", + trigger: "blur" + }], + }, + { + label: '检查文件上传', + labelWidth:200, + prop: 'filePath', + hide: true, + slot:true, + formslot:true + }, + { + label: '检查文件上传', + labelWidth:120, + prop: 'filePathValue', + addDisplay: false, + editDisplay: false, + slot:true, + }, + { + label: '备注', + type:'textarea', + labelWidth:200, + row:true, + span:24, + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/phaseintentioncompanyorder.js b/src/const/crud/professional/phaseintentioncompanyorder.js new file mode 100644 index 0000000..3020333 --- /dev/null +++ b/src/const/crud/professional/phaseintentioncompanyorder.js @@ -0,0 +1,124 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '企业名称', + prop: 'companyId', + filterable:true, + searchFilterable:true, + search:true, + type:'select', + dicUrl: '/professional/phaseintentioncompany/list', + props: { + label: 'companyName', + value: 'id' + }, + rules: [{ + required: true, + message: '企业不能为空', + trigger: 'blur' + } + ] + }, + { + label: '建设时间', + prop: 'openTime', + type:'date', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '建设时间不能为空', + trigger: 'blur' + } + ] + }, + { + label: '班级名称', + prop: 'className', + rules: [{ + required: true, + message: '班级名称不能为空', + trigger: 'blur' + } + ] + }, + { + label: '人数', + prop: 'peopleNumber', + type:'number', + rules: [{ + required: true, + message: '人数不能为空', + trigger: 'blur' + } + ] + }, + { + label: '协议', + prop: 'isXy', + dicUrl: '/admin/dict/item/type/yes_no', + type: 'select', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '协议不能为空', + trigger: 'blur' + }] + }, + { + label: '报道', + prop: 'isBd', + dicUrl: '/admin/dict/item/type/yes_no', + type: 'select', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '报道不能为空', + trigger: 'blur' + }] + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + }, + ] +} diff --git a/src/const/crud/professional/phaseintentioncompanyparticipate.js b/src/const/crud/professional/phaseintentioncompanyparticipate.js new file mode 100644 index 0000000..6f1ecc7 --- /dev/null +++ b/src/const/crud/professional/phaseintentioncompanyparticipate.js @@ -0,0 +1,113 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + height: 800, + addBtn: false, + dic: [], + column: [ + { + label: '企业名称', + prop: 'companyId', + filterable:true, + searchFilterable:true, + search:true, + type:'select', + dicUrl: '/professional/phaseintentioncompany/list', + props: { + label: 'companyName', + value: 'id' + }, + rules: [{ + required: true, + message: '企业不能为空', + trigger: 'blur' + } + ] + }, + { + label: '主题/模块/课程', + prop: 'titleName', + rules: [{ + required: true, + message: '主题/模块/课程不能为空', + trigger: 'blur' + }] + }, + { + label: '参与日期', + prop: 'partTime', + type:'date', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '参与日期不能为空', + trigger: 'blur' + } + ] + }, + { + label: '地点', + prop: 'address' + }, + + { + label: '教学形式', + prop: 'teachingForm' + }, + { + label: '企业主讲人(职务)', + prop: 'duties' + }, + { + label: '面向对象', + prop: 'objectOriented' + }, + { + label: '其他部门参与情况', + prop: 'otherDept' + }, + { + label: '级别', + prop: 'levelVal' + }, + { + label: '折算课时', + prop: 'calculateClass', + type:'number', + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + }, + ] +} diff --git a/src/const/crud/professional/phaseintentioncompanypost.js b/src/const/crud/professional/phaseintentioncompanypost.js new file mode 100644 index 0000000..a4e1ef1 --- /dev/null +++ b/src/const/crud/professional/phaseintentioncompanypost.js @@ -0,0 +1,159 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '企业名称', + prop: 'companyId', + filterable:true, + searchFilterable:true, + search:true, + type:'select', + dicUrl: '/professional/phaseintentioncompany/list', + props: { + label: 'companyName', + value: 'id' + }, + rules: [{ + required: true, + message: '企业不能为空', + trigger: 'blur' + } + ] + }, + { + label: '建设日期', + prop: 'postTime', + type:'date', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '建设日期不能为空', + trigger: 'blur' + } + ] + }, + { + label: '基地名称', + prop: 'postName', + span: 24, + rules: [{ + required: true, + message: '基地名称不能为空', + trigger: 'blur' + }] + }, + { + label: '岗位数', + type:'number', + prop: 'postNumber', + rules: [{ + required: true, + message: '岗位数不能为空', + trigger: 'blur' + }] + }, + { + label: '工位数', + type:'number', + prop: 'workNumber', + rules: [{ + required: true, + message: '工位数不能为空', + trigger: 'blur' + }] + }, + { + label: '运行次数', + type:'number', + prop: 'runTimes', + rules: [{ + required: true, + message: '运行次数不能为空', + trigger: 'blur' + }] + }, + { + label: '协议', + prop: 'isXy', + dicUrl: '/admin/dict/item/type/yes_no', + type: 'select', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '协议不能为空', + trigger: 'blur' + }] + }, + { + label: '挂牌', + prop: 'isGp', + dicUrl: '/admin/dict/item/type/yes_no', + type: 'select', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '挂牌不能为空', + trigger: 'blur' + }] + }, + { + label: '报道', + prop: 'isBd', + dicUrl: '/admin/dict/item/type/yes_no', + type: 'select', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '报道不能为空', + trigger: 'blur' + }] + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + }, + + ] +} diff --git a/src/const/crud/professional/phaseintentioncompanypractice.js b/src/const/crud/professional/phaseintentioncompanypractice.js new file mode 100644 index 0000000..4ba167c --- /dev/null +++ b/src/const/crud/professional/phaseintentioncompanypractice.js @@ -0,0 +1,164 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '企业名称', + prop: 'companyId', + filterable:true, + searchFilterable:true, + search:true, + type:'select', + dicUrl: '/professional/phaseintentioncompany/list', + props: { + label: 'companyName', + value: 'id' + }, + rules: [{ + required: true, + message: '企业不能为空', + trigger: 'blur' + } + ] + }, + { + label: '开始时间', + prop: 'beginTime', + type:'date', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '开始时间不能为空', + trigger: 'blur' + } + ] + }, + { + label: '结束时间', + prop: 'endTime', + type:'date', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '结束时间不能为空', + trigger: 'blur' + } + ] + }, + { + label: '地点', + prop: 'practiceAddress', + rules: [{ + required: true, + message: '地点不能为空', + trigger: 'blur' + }] + }, + { + label: '实习内容', + prop: 'practiceName', + rules: [{ + required: true, + message: '实习内容不能为空', + trigger: 'blur' + }] + }, + { + label: '教学形式', + prop: 'teacherForm', + rules: [{ + required: true, + message: '教学形式不能为空', + trigger: 'blur' + }] + }, + + { + label: '主讲人', + prop: 'companyPeople', + rules: [{ + required: true, + message: '企业主讲人不能为空', + trigger: 'blur' + }] + }, + { + label: '协议', + prop: 'isXy', + dicUrl: '/admin/dict/item/type/yes_no', + type: 'select', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '协议不能为空', + trigger: 'blur' + }] + }, + { + label: '报道', + prop: 'isBd', + dicUrl: '/admin/dict/item/type/yes_no', + type: 'select', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '报道不能为空', + trigger: 'blur' + }] + }, + { + label: '折算课时', + prop: 'classTime', + type:'number', + rules: [{ + required: true, + message: '折算课时不能为空', + trigger: 'blur' + }] + }, + + { + label: '总结', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + }, + ] +} diff --git a/src/const/crud/professional/phaseintentioncompanyschoolhz.js b/src/const/crud/professional/phaseintentioncompanyschoolhz.js new file mode 100644 index 0000000..82ae735 --- /dev/null +++ b/src/const/crud/professional/phaseintentioncompanyschoolhz.js @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '企业名称', + prop: 'companyId', + filterable:true, + labelWidth:200, + searchFilterable:true, + search:true, + type:'select', + dicUrl: '/professional/phaseintentioncompany/list', + props: { + label: 'companyName', + value: 'id' + }, + rules: [{ + required: true, + message: '企业不能为空', + trigger: 'blur' + } + ] + }, + + { + label: '主持人', + labelWidth:200, + prop: 'checkPeople' + }, + { + label: '记录人', + labelWidth:200, + prop: 'inPeople' + }, + { + label: '参加人员', + labelWidth:200, + prop: 'participatePeople' + }, + { + label: '建设地点', + labelWidth:200, + prop: 'checkAddress' + }, + { + label: '主要内容', + labelWidth:200, + prop: 'mainTitle' + }, + { + label: '填写日期', + prop: 'inTime', + type:'date', + labelWidth:200, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: "请选择时间", + trigger: "blur" + }], + }, + { + label: '合作文件下载', + labelWidth:200, + prop: 'filePath', + hide: true, + slot:true, + formslot:true + }, + { + label: '合作文件上传', + labelWidth:120, + prop: 'filePathValue', + addDisplay: false, + editDisplay: false, + slot:true, + }, + { + label: '备注', + type:'textarea', + labelWidth:200, + row:true, + span:24, + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/phaseintentioncompanytech.js b/src/const/crud/professional/phaseintentioncompanytech.js new file mode 100644 index 0000000..ea8af60 --- /dev/null +++ b/src/const/crud/professional/phaseintentioncompanytech.js @@ -0,0 +1,117 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const typeList=[ + {value:"1",label:"横向课题"}, + {value:"2",label:"实用性专利/发明专利"}, + {value:"3",label:"企业技术改造"}, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '企业名称', + prop: 'companyId', + filterable:true, + searchFilterable:true, + search:true, + type:'select', + dicUrl: '/professional/phaseintentioncompany/list', + props: { + label: 'companyName', + value: 'id' + }, + rules: [{ + required: true, + message: '企业不能为空', + trigger: 'blur' + } + ] + }, + { + label: '名称', + prop: 'title', + rules: [{ + required: true, + message: '名称不能为空', + trigger: 'blur' + }] + }, + { + label: '时间', + prop: 'openTime', + type:'date', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '时间不能为空', + trigger: 'blur' + } + ] + }, + { + label: '类型', + prop: 'type', + dicData:typeList, + type: 'select', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '类型不能为空', + trigger: 'blur' + }] + }, + { + label: '人员', + prop: 'peopleName', + }, + { + label: '到账资金 ', + prop: 'techMoney', + type: 'number' + }, + { + label: '应用', + prop: 'techValue', + span:24, + }, + + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + }, + ] +} diff --git a/src/const/crud/professional/phaseintentioncompanytone.js b/src/const/crud/professional/phaseintentioncompanytone.js new file mode 100644 index 0000000..3df4bbf --- /dev/null +++ b/src/const/crud/professional/phaseintentioncompanytone.js @@ -0,0 +1,120 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const typeList=[ + {value:"1",label:"校企合作成果获省部级以上奖励或表彰"}, + {value:"2",label:"校企合作项目经济效益超过 30 万"}, + {value:"3",label:"校企合作成果被省级以上媒体省部级以上奖励或表彰"}, + {value:"4",label:"校企合作案例、模式、方法被学校采纳并推广"}, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '企业名称', + prop: 'companyId', + filterable:true, + span: 24, + searchFilterable:true, + search:true, + type:'select', + dicUrl: '/professional/phaseintentioncompany/list', + props: { + label: 'companyName', + value: 'id' + }, + rules: [{ + required: true, + message: '企业不能为空', + trigger: 'blur' + } + ] + }, + { + label: '类型', + prop: 'type', + span: 24, + dicData:typeList, + type: 'select', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '类型不能为空', + trigger: 'blur' + }] + }, + { + label: '主持人', + prop: 'peopleName', + span: 24, + rules: [{ + required: true, + message: '主持人不能为空', + trigger: 'blur' + } + ] + }, + { + label: '内容', + prop: 'title', + span: 24, + rules: [{ + required: true, + message: '内容不能为空', + trigger: 'blur' + } + ] + }, + + { + label: '证书/文件 经济效益/企业应用 媒体级别 文献或其他', + prop: 'otherName', + type: 'textarea', + minRows: 2, + maxlength: 250, //长度限制 0/n + span: 24, + rules: [{ + required: true, + message: '主持人不能为空', + trigger: 'blur' + } + ] + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + }, + ] +} diff --git a/src/const/crud/professional/professionalacademicdegreeconfig.js b/src/const/crud/professional/professionalacademicdegreeconfig.js new file mode 100755 index 0000000..ebbe5b0 --- /dev/null +++ b/src/const/crud/professional/professionalacademicdegreeconfig.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '学位名称', + prop: 'degreeName' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks', + }, + ] +} diff --git a/src/const/crud/professional/professionalacademiceducationtypeconfig.js b/src/const/crud/professional/professionalacademiceducationtypeconfig.js new file mode 100755 index 0000000..0849965 --- /dev/null +++ b/src/const/crud/professional/professionalacademiceducationtypeconfig.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '类型名称', + prop: 'name' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks', + }, + ] +} diff --git a/src/const/crud/professional/professionalatstation.js b/src/const/crud/professional/professionalatstation.js new file mode 100755 index 0000000..a062d5b --- /dev/null +++ b/src/const/crud/professional/professionalatstation.js @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '类型名称', + prop: 'atStationName' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks', + }, + + ] +} diff --git a/src/const/crud/professional/professionalawardcourseware.js b/src/const/crud/professional/professionalawardcourseware.js new file mode 100644 index 0000000..ee435c3 --- /dev/null +++ b/src/const/crud/professional/professionalawardcourseware.js @@ -0,0 +1,177 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const statusDic=[ + {label:"待提交",value:"0"}, + {label:"待部门审核",value:"1"}, + {label:"待教学研究中心审核",value:"2"}, + {label:"通过",value:"100"}, + {label:"驳回",value:"-1"}, +] +export const tableOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu:false, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label:"审核人操作栏", + prop:"examCol", + minWidth: 200, + fixed:true, + slot:true, + display:false + }, + { + label:"填报人操作栏", + prop:"editCol", + minWidth: 200, + fixed:true, + slot:true, + display:false + }, + { + label: '审核状态 ', + prop: 'state', + search:true, + dicData: statusDic, + type:'select', + props:{ + label:'label', + value:'value' + }, + display:false + }, + { + label: "驳回理由", + prop: "backReason", + display: false, + }, + { + label: '部门', + prop: 'deptName', + minWidth: 150 + }, + { + label: '作者', + prop: 'author' + }, + { + label: '课件名称', + prop: 'name', + search:true + }, + { + label: '颁奖等级', + prop: 'level' + }, + { + label: '颁奖单位', + prop: 'unit' + }, + { + label: '获奖时间', + prop: 'awardTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + minWidth: 100 + }, + { + label: '获奖证书', + prop: 'awardImg', + formslot:true, + slot:true + }, + { + label: '创建人', + prop: 'createName', + }, + { + label: '创建时间', + prop: 'createTime', + minWidth: 150 + }, + { + label: '备注', + prop: 'remarks', + type:'textarea' + }, + ] +} + + +export const tableViewOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '部门', + prop: 'deptName' + }, + { + label: '作者', + prop: 'author' + }, + { + label: '课件名称', + prop: 'name' + }, + { + label: '颁奖等级', + prop: 'level' + }, + { + label: '颁奖单位', + prop: 'unit' + }, + { + label: '获奖时间', + prop: 'awardTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd' + }, + { + label: '创建人', + prop: 'createName', + }, + { + label: '创建时间', + prop: 'createTime', + }, + { + label: '备注', + prop: 'remarks', + type:'textarea' + }, + ] +} diff --git a/src/const/crud/professional/professionalemploymentnature.js b/src/const/crud/professional/professionalemploymentnature.js new file mode 100755 index 0000000..3d1adf6 --- /dev/null +++ b/src/const/crud/professional/professionalemploymentnature.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '用工性质', + prop: 'employmentNatureName' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/professionalmajorstation.js b/src/const/crud/professional/professionalmajorstation.js new file mode 100755 index 0000000..6c63406 --- /dev/null +++ b/src/const/crud/professional/professionalmajorstation.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '职称职务', + prop: 'majorStationName' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks', + }, + ] +} diff --git a/src/const/crud/professional/professionalpaperconfig.js b/src/const/crud/professional/professionalpaperconfig.js new file mode 100755 index 0000000..161788d --- /dev/null +++ b/src/const/crud/professional/professionalpaperconfig.js @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '论文类型', + prop: 'typeName' + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/professionalpartybranch.js b/src/const/crud/professional/professionalpartybranch.js new file mode 100755 index 0000000..400687f --- /dev/null +++ b/src/const/crud/professional/professionalpartybranch.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '类别名字', + prop: 'name' + }, + { + label: '备注信息', + prop: 'remarks' + }, + { + label: '创建时间', + prop: 'createTime', + editDisabled: true + }, + { + label: '排序', + prop: 'sort' + }, + ] +} diff --git a/src/const/crud/professional/professionalpartychange.js b/src/const/crud/professional/professionalpartychange.js new file mode 100755 index 0000000..a0fe4a6 --- /dev/null +++ b/src/const/crud/professional/professionalpartychange.js @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '工号', + prop: 'teacherNo', + search:true + }, + { + label: '用户名', + prop: 'realName', + search:true + }, + { + label: '原支部名称', + prop: 'oldBranchName' + }, + { + label: '现支部名称', + prop: 'branchName' + }, + // { + // label: '党费交至几月', + // prop: 'feeTime' + // }, + { + label:'党费', + prop:"partyFee", + type:'number', + precision:2 + }, + { + label: '变动时间', + prop: 'changeTime' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/professionalpoliticsstatus.js b/src/const/crud/professional/professionalpoliticsstatus.js new file mode 100755 index 0000000..bbbdfcb --- /dev/null +++ b/src/const/crud/professional/professionalpoliticsstatus.js @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + // { + // label: '排序', + // prop: 'sort' + // }, + { + label: '政治面貌', + prop: 'politicsStatusId' + }, + { + label: '加入时间', + prop: 'joinTime', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label: '转正时间', + prop: 'correctionTime', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + ] +} diff --git a/src/const/crud/professional/professionalqualificationconfig.js b/src/const/crud/professional/professionalqualificationconfig.js new file mode 100644 index 0000000..359348c --- /dev/null +++ b/src/const/crud/professional/professionalqualificationconfig.js @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + /*{ + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标志位', + prop: 'delFlag' + },*/ + { + label: '等级名称', + prop: 'levelName' + }, + /*{ + label: '租户id', + prop: 'tenantId' + },*/ + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/professionalqualificationrelation.js b/src/const/crud/professional/professionalqualificationrelation.js new file mode 100644 index 0000000..46f47ad --- /dev/null +++ b/src/const/crud/professional/professionalqualificationrelation.js @@ -0,0 +1,208 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + /*{ + label: '主键', + prop: 'id' + },*/ + /* { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标志位', + prop: 'delFlag' + },*/ + + /* { + label: '租户id', + prop: 'tenantId' + },*/ + { + label: '审核状态', + prop: 'state', + search:true, + dicUrl:'/admin/dict/item/type/professional_state', + type:'select', + props:{ + label:'label', + value:'value' + }, + addDisplay:false, + editDisplay:false, + }, + { + label: "驳回理由", + prop: "backReason", + }, + { + label: '工号', + prop: 'teacherNo', + search:true + }, + { + label: '姓名', + prop: 'realName', + search:true + + }, + { + label: '资格等级', + prop: 'qualificationConfigId', + type: 'select', + dicUrl: '/professional/professionalqualificationconfig/getLevelList', + props: { + label: 'levelName', + value: 'id' + } + }, + { + label: '工种', + prop: 'worker', + type: 'select', + dicUrl: '/professional/professionalworktype/getWorkTypeList', + props: { + label: 'workName', + value: 'id' + } + }, + { + label: '是否最高', + prop: 'isHighest', + addDisplay:false, + editDisplay:false, + hide:true + }, + + { + label: '证书编号', + prop: 'certificateNumber', + hide:true + }, + { + label: '取证时间', + prop: 'certificateTime', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + addDisplay:false, + editDisplay:false, + hide:true + }, + + { + label: '证明材料1', + prop: 'evidenceA', + row:true, + formslot:true, + hide:true, + span:24, + }, + { + label: '证明材料2', + prop: 'evidenceB', + row:true, + formslot:true, + hide:true, + span:24, + }, + { + label: '证明材料3', + prop: 'evidenceC', + row:true, + formslot:true, + hide:true, + span:24, + }, + + { + label: '证明材料', + prop: 'evidence', + row:true, + display:false, + span:24, + slot:true + }, + { + label: '备注', + prop: 'remarks', + type:"textarea", + span:24, + hide:true + }, + + { + label: '流程状态', + prop: 'procInsStatus', + addDisplay:false, + editDisplay:false, + hide:true + }, + { + label: '更新时间', + prop: 'updateTime', + type:'datetime', + format:'yyyy-MM-dd', + addDisplay:false, + editDisplay:false + }, + { + label: '原因', + prop: 'reason', + addDisplay:false, + editDisplay:false, + hide:true + }, +/* { + label: '审核人', + prop: 'auditor' + },*/ + /* { + label: '审核时间', + prop: 'auditTime' + },*/ + + // { + // label: '排序', + // prop: 'sort' + // }, + ] +} diff --git a/src/const/crud/professional/professionalsalaries.js b/src/const/crud/professional/professionalsalaries.js new file mode 100755 index 0000000..dba4ad1 --- /dev/null +++ b/src/const/crud/professional/professionalsalaries.js @@ -0,0 +1,251 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + // { + // label: '排序', + // prop: 'sort' + // }, + { + label: '工号', + prop: 'teacherNo' + }, + { + label: '年份', + prop: 'pYear' + }, + { + label: '月份', + prop: 'pMonth' + }, + { + label: '身份证号', + prop: 'postSalary' + }, + { + label: '培训兼课金', + prop: 'payWage' + }, + { + label: '', + prop: 'studentPay' + }, + { + label: '生活津贴', + prop: 'liveAllowance' + }, + { + label: '', + prop: 'postAllowance' + }, + { + label: '房补', + prop: 'houseSubsidies' + }, + { + label: '', + prop: 'newHouseSubsidies' + }, + { + label: '', + prop: 'huiSubsidies' + }, + { + label: '', + prop: 'oldSubsidies' + }, + { + label: '', + prop: 'ageAllowance' + }, + { + label: '', + prop: 'specialSubsidies' + }, + { + label: '', + prop: 'teacherAllowance' + }, + { + label: '', + prop: 'temporarySubsidies' + }, + { + label: '', + prop: 'keepAllowance' + }, + { + label: '', + prop: 'sPostAllowance1' + }, + { + label: '', + prop: 'sPostAllowance2' + }, + { + label: '', + prop: 'other' + }, + { + label: '', + prop: 'meritPay' + }, + { + label: '', + prop: 'villageSubsidies' + }, + { + label: '', + prop: 'trafficSubsidies' + }, + { + label: '', + prop: 'retroactivePay' + }, + { + label: '', + prop: 'houseFund' + }, + { + label: '', + prop: 'medicalInsurance' + }, + { + label: '', + prop: 'unemployInsurance' + }, + { + label: '', + prop: 'endowInsurance' + }, + { + label: '', + prop: 'unionFee' + }, + { + label: '', + prop: 'childrenWhole' + }, + { + label: '', + prop: 'personalTax' + }, + { + label: '', + prop: 'otherDeduction' + }, + { + label: '', + prop: 'sickDeduction' + }, + { + label: '', + prop: 'medicalFund' + }, + { + label: '', + prop: 'inductrialInjury' + }, + { + label: '', + prop: 'personalPay' + }, + { + label: '', + prop: 'childEdu' + }, + { + label: '', + prop: 'conEdu' + }, + { + label: '', + prop: 'sickMedical' + }, + { + label: '', + prop: 'houseInterest' + }, + { + label: '', + prop: 'house' + }, + { + label: '', + prop: 'supportOld' + }, + { + label: '', + prop: 'trainPool' + }, + { + label: '', + prop: 'otherIncome1' + }, + { + label: '', + prop: 'otherIncome2' + }, + { + label: '', + prop: 'deductionCost' + }, + ] +} diff --git a/src/const/crud/professional/professionalsocial.js b/src/const/crud/professional/professionalsocial.js new file mode 100755 index 0000000..6948b81 --- /dev/null +++ b/src/const/crud/professional/professionalsocial.js @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标志位', + prop: 'delFlag' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '租户id', + prop: 'tenantId' + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '称谓', + prop: 'title' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '出生年月', + prop: 'birthday' + }, + { + label: '政治面貌', + prop: 'politicsStatusId' + }, + { + label: '工作单位及职务', + prop: 'workStation' + }, + { + label: '工号', + prop: 'teacherNo' + }, + ] +} diff --git a/src/const/crud/professional/professionalstationdutylevel.js b/src/const/crud/professional/professionalstationdutylevel.js new file mode 100755 index 0000000..a0bf3a5 --- /dev/null +++ b/src/const/crud/professional/professionalstationdutylevel.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '职务级别名称', + prop: 'stationDutyLevelName' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/professionalstationlevel.js b/src/const/crud/professional/professionalstationlevel.js new file mode 100755 index 0000000..71ea21c --- /dev/null +++ b/src/const/crud/professional/professionalstationlevel.js @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '岗位级别名称', + prop: 'stationLevelName' + }, + { + label: '排序', + prop: 'sort' + }, + + ] +} diff --git a/src/const/crud/professional/professionalstationlevelconfig.js b/src/const/crud/professional/professionalstationlevelconfig.js new file mode 100755 index 0000000..b0e69bb --- /dev/null +++ b/src/const/crud/professional/professionalstationlevelconfig.js @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '级别名称', + prop: 'levelName' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + + ] +} diff --git a/src/const/crud/professional/professionalstationrelation.js b/src/const/crud/professional/professionalstationrelation.js new file mode 100755 index 0000000..0875329 --- /dev/null +++ b/src/const/crud/professional/professionalstationrelation.js @@ -0,0 +1,141 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + // { + // label: '排序', + // prop: 'sort' + // }, + { + label: '工号', + prop: 'teacherNo' + }, + { + label: '岗位类别', + prop: 'stationTypeId' + }, + { + label: '职务级别', + prop: 'stationDutyLevelId' + }, + { + label: '岗位级别', + prop: 'stationLevel' + }, + { + label: '任现岗位职级时间', + prop: 'stationDate', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label: '在职情况', + prop: 'atStation' + }, + { + label: '职务', + prop: 'dutyDesc' + }, + { + label: '退休年份', + prop: 'retireDate', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label: '参加工作时间', + prop: 'workDate', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label: '干部职务任职时间', + prop: 'dutyDate', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label: '用工性质', + prop: 'employmentNature' + }, + { + label: '进编时间', + prop: 'entryDutyDate', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label: '进校时间', + prop: 'entrySchoolDate', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label: '教师类型', + prop: 'teacherType' + }, + ] +} diff --git a/src/const/crud/professional/professionalstationtype.js b/src/const/crud/professional/professionalstationtype.js new file mode 100755 index 0000000..066f16e --- /dev/null +++ b/src/const/crud/professional/professionalstationtype.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '岗位类别名称', + prop: 'typeName' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/professionalteacheracademicrelation.js b/src/const/crud/professional/professionalteacheracademicrelation.js new file mode 100755 index 0000000..84efe71 --- /dev/null +++ b/src/const/crud/professional/professionalteacheracademicrelation.js @@ -0,0 +1,208 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + + // { + // label: '租户id', + // prop: 'tenantId' + // }, + // { + // label: '排序', + // prop: 'sort' + // }, + { + label: '审核状态', + prop: 'state', + search:true, + dicUrl:'/admin/dict/item/type/professional_state', + type:'select', + props:{ + label:'label', + value:'value' + }, + addDisplay:false, + editDisplay:false, + }, + { + label: "驳回理由", + prop: "backReason", + }, + { + label: '工号', + prop: 'teacherNo', + labelWidth:100, + search:true + + }, + { + label: '姓名', + prop: 'realName', + labelWidth:100, + search:true + + }, + { + label: '毕业时间', + prop: 'graduateTime', + labelWidth:100, + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label: '学位', + prop: 'degreeConfigId', + labelWidth:100, + type:'select', + dicUrl: '/professional/professionalacademicdegreeconfig/getDegreeList', + props: { + label: 'degreeName', + value: 'id' + } + + }, + { + label: '学历', + prop: 'qualificationConfigId', + labelWidth:100, + type:'select', + dicUrl: '/professional/academicqualificationsconfig/getQualificationList', + props: { + label: 'qualificationName', + value: 'id' + } + }, + { + label: '教育类型', + prop: 'type', + type:'select', + props:{ + label:'name', + value:'id' + }, + dicUrl:'/professional/professionalacademiceducationtypeconfig/getAllTypeList', + addDisplay: false, + editDisabled: false, + }, + { + label: '毕业学校', + prop: 'graduateSchool', + labelWidth:100, + hide:true + }, + { + label: '所学专业', + prop: 'major', + labelWidth:100, + hide:true + }, + { + label: '证书编号', + prop: 'certificateNumber', + row:true, + labelWidth:100, + span:24 + }, + + { + label: '学历证书附件', + prop: 'qualificationImg', + labelWidth:200, + formslot:true, + slot:true + }, + { + label: '学位证书附件', + prop: 'degreeImg', + labelWidth:200, + formslot:true, + slot:true + }, + { + label: '创建时间', + prop: 'createTime', + type:'datetime', + format:'yyyy-MM-dd', + addDisplay:false, + editDisplay:false + }, + { + label: '备注', + prop: 'remarks', + labelWidth:100, + type:"textarea", + span:24, + hide:true + }, + // { + // label: '学位证书附件', + // prop: 'degreeImg', + // type: 'upload', + // labelWidth:100, + // loadText: '附件上传中,请稍等', + // span: 24, + // tip: '只能上传jpg/png文件,且不超过500kb', + // action: '/professional/file/upload', + // propsHttp: { + // res: 'data', + // name:'fileName', + // }, + // hide:true + // }, + + // { + // label: '', + // prop: 'educationId' + // }, + ] +} diff --git a/src/const/crud/professional/professionalteachercertificateconf.js b/src/const/crud/professional/professionalteachercertificateconf.js new file mode 100755 index 0000000..9146b9c --- /dev/null +++ b/src/const/crud/professional/professionalteachercertificateconf.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '资格证名称', + prop: 'cretificateName' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/professionalteachercertificaterelation.js b/src/const/crud/professional/professionalteachercertificaterelation.js new file mode 100755 index 0000000..780ae63 --- /dev/null +++ b/src/const/crud/professional/professionalteachercertificaterelation.js @@ -0,0 +1,160 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + // { + // label: '排序', + // prop: 'sort' + // }, + { + label: '审核状态 ', + prop: 'state', + search:true, + dicUrl:'/admin/dict/item/type/professional_state', + type:'select', + props:{ + label:'label', + value:'value' + }, + addDisplay:false, + editDisplay:false + }, + { + label: "驳回理由", + prop: "backReason", + }, + { + label: '工号', + prop: 'teacherNo', + search:true + }, + { + label: '姓名', + prop: 'realName', + search:true + + }, + + { + label: '关联资格证书', + prop: 'certificateConfId', + type: 'select', + dicUrl: '/professional/professionalteachercertificateconf/getTeacherCertificateList', + props: { + label: 'cretificateName', + value: 'id' + } + }, + { + label: '证书编号', + prop: 'certificateNumber' + }, + { + label: '证明材料', + prop: 'evidence', + span:24, + slot:true + }, + { + label: '创建时间', + prop: 'createTime', + type:'datetime', + format:'yyyy-MM-dd', + addDisplay:false, + editDisplay:false + }, + // { + // label: '证明材料', + // prop: 'evidenceB', + // row:true, + // formslot:true, + // hide:true, + // span:24, + // }, + // { + // label: '证明材料2', + // prop: 'evidenceb' + // }, + // { + // label: '流程状态', + // prop: 'procInsId' + // }, + + { + label: '备注', + prop: 'remarks', + type:"textarea", + span:24, + hide:true + }, + // { + // label: '', + // prop: 'reason' + // }, + // { + // label: '', + // prop: 'auditor' + // }, + // { + // label: '', + // prop: 'auditTime' + // }, + ] +} diff --git a/src/const/crud/professional/professionalteacherhonor.js b/src/const/crud/professional/professionalteacherhonor.js new file mode 100755 index 0000000..79d926a --- /dev/null +++ b/src/const/crud/professional/professionalteacherhonor.js @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + delBtn: false, + editBtn: false, + addBtn: false, + column: [ + { + label: '审核状态 ', + prop: 'state', + search:true, + dicUrl:'/admin/dict/item/type/professional_state', + type:'select', + props:{ + label:'label', + value:'value' + }, + addDisplay:false, + editDisplay:false + }, + { + label: "驳回理由", + prop: "backReason", + }, + { + label: '工号', + prop: 'teacherNo', + search:true, + formslot:true + }, + { + label: '姓名', + prop: 'teacherName', + search:true + }, + { + label: '荣誉', + prop: 'honor' + }, + { + label: '表彰单位', + prop: 'honorCompany' + }, + { + label: '年份', + prop: 'year', + type: 'year', + format:'yyyy', + valueFormat:'yyyy' + }, + { + label: '证明材料', + prop: 'attachment', + slot:true, + formslot:true + }, + + ] +} diff --git a/src/const/crud/professional/professionalteacherlesson.js b/src/const/crud/professional/professionalteacherlesson.js new file mode 100644 index 0000000..e7a7e22 --- /dev/null +++ b/src/const/crud/professional/professionalteacherlesson.js @@ -0,0 +1,169 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const statusDic=[ + {label:"待提交",value:"0"}, + {label:"待部门审核",value:"1"}, + {label:"待教学研究中心审核",value:"2"}, + {label:"通过",value:"100"}, + {label:"驳回",value:"-1"}, +] +export const tableOption = { + border: true, + index: false, + indexLabel: '序号', + menu:false, + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label:"审核人操作栏", + prop:"examCol", + minWidth: 200, + fixed:true, + slot:true, + display:false + }, + { + label:"填报人操作栏", + prop:"editCol", + minWidth: 200, + fixed:true, + slot:true, + display:false + }, + { + label: '审核状态 ', + prop: 'state', + search:true, + dicData: statusDic, + type:'select', + props:{ + label:'label', + value:'value' + }, + display:false + }, + { + label: "驳回理由", + prop: "backReason", + display: false, + }, + { + label: '部门', + prop: 'deptName', + minWidth: 150 + }, + { + label: '作者', + prop: 'author' + }, + { + label: '教案名称', + prop: 'name', + search:true + }, + { + label: '颁奖等级', + prop: 'level' + }, + { + label: '颁奖单位', + prop: 'unit' + }, + { + label: '获奖时间', + prop: 'awardTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + minWidth: 150 + }, + { + label: '创建人', + prop: 'createName', + }, + { + label: '创建时间', + prop: 'createTime', + minWidth: 150 + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} + + +export const tableViewOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '部门', + prop: 'deptName' + }, + { + label: '作者', + prop: 'author' + }, + { + label: '教案名称', + prop: 'name' + }, + { + label: '颁奖等级', + prop: 'level' + }, + { + label: '颁奖单位', + prop: 'unit' + }, + { + label: '获奖时间', + prop: 'awardTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd' + }, + { + label: '创建人', + prop: 'createName', + }, + { + label: '创建时间', + prop: 'createTime', + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/professionalteacherpaper.js b/src/const/crud/professional/professionalteacherpaper.js new file mode 100755 index 0000000..60e6710 --- /dev/null +++ b/src/const/crud/professional/professionalteacherpaper.js @@ -0,0 +1,215 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +const statusDic=[ + {label:"待提交",value:"0"}, + {label:"待部门审核",value:"1"}, + {label:"待教学研究中心审核",value:"2"}, + {label:"通过",value:"100"}, + {label:"驳回",value:"-1"}, +] + +export const tableOption = { + border: true, + index: false, + indexLabel: '序号', + indexFixed: false, + stripe: true, + menuAlign: 'center', + menu:false, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + height:500, + dialogHeight:700, + dialogWidth:"90%", + column: [ + { + label:"审核人操作栏", + prop:"examCol", + minWidth: 200, + fixed:true, + slot:true, + display:false + }, + { + label:"填报人操作栏", + prop:"editCol", + minWidth: 200, + fixed:true, + slot:true, + display:false + }, + { + label: '审核状态 ', + prop: 'state', + search:true, + minWidth:150, + dicData: statusDic, + type:'select', + props:{ + label:'label', + value:'value' + }, + display:false + }, + { + label: "驳回理由", + prop: "backReason", + display: false, + }, + // { + // label:'证明材料', + // prop:"zmcl", + // slot:true, + // display:false, + // minWidth:150 + // }, + { + label: '工号', + prop: 'createBy', + display:false, + search:true + + }, + { + label: '姓名', + prop: 'realName', + display:false, + search:true + + }, + { + label: '作者', + prop: 'author', + rules: [{ + required: true, + message: '请输入作者', + trigger: 'blur' + }] + }, + { + label: '第二作者', + prop: 'secondAuthor' + }, + { + label: '论文名称', + prop: 'title', + rules: [{ + required: true, + message: '请输入论文名称', + trigger: 'blur' + }], + minWidth:150 + }, + { + label: '论文类型', + prop: 'paperConfigId', + type: 'select', + dicUrl: '/professional/professionalpaperconfig/getPaperConfigList', + props:{ + label:'typeName', + value:'id' + }, + rules: [{ + required: true, + message: '请选择论文类型', + trigger: 'blur' + }] + }, + { + label: '发表刊物名称', + prop: 'nameOfPublication', + rules: [{ + required: true, + message: '请填写发表刊物名称', + trigger: 'blur' + }], + minWidth: 200 + }, + { + label: '发表时间', + prop: 'dateOfPublication', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '请填写发表时间', + trigger: 'blur' + }], + minWidth: 100 + }, + { + label: '刊物主办单位', + prop: 'publicationsCompetentUnit', + minWidth: 150 + }, + { + label: '刊物主管单位', + prop: 'publicationsManageUnit', + minWidth: 150 + }, + { + label: '颁奖单位', + prop: 'awardingUnit', + }, + { + label: '获奖等级', + prop: 'rewardLevel', + }, + { + label: '获奖时间', + prop: 'rewardTime', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + minWidth: 100 + }, + { + label: '备注', + prop: 'remarks', + }, + + { + label:'*知网截图', + prop:"knowdgeImg", + formslot:true, + hide:true, + }, + { + label:'*刊物封面', + prop:"pubCover", + formslot:true, + hide:true + }, + { + label:'*目录页', + prop:"cateImg", + formslot:true, + hide:true + }, + { + label:'*内容页', + prop:"contentImg", + formslot:true, + hide:true + } + ] +} diff --git a/src/const/crud/professional/professionalteacherresume.js b/src/const/crud/professional/professionalteacherresume.js new file mode 100755 index 0000000..7dbad4f --- /dev/null +++ b/src/const/crud/professional/professionalteacherresume.js @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: 'id', + prop: 'id' + }, + { + label: '开始时间', + prop: 'startDate' + }, + { + label: '结束时间', + prop: 'endDate' + }, + { + label: '事件', + prop: 'event' + }, + { + label: '教师工号', + prop: 'teacherNo' + }, + { + label: '', + prop: 'createBy' + }, + { + label: '', + prop: 'createTime' + }, + { + label: '', + prop: 'updateBy' + }, + { + label: '', + prop: 'updateTime' + }, + { + label: '', + prop: 'delFlag' + }, + { + label: '', + prop: 'sort' + }, + { + label: '租户id', + prop: 'tenantId' + }, + ] +} diff --git a/src/const/crud/professional/professionalteacherstationchange.js b/src/const/crud/professional/professionalteacherstationchange.js new file mode 100755 index 0000000..ef45885 --- /dev/null +++ b/src/const/crud/professional/professionalteacherstationchange.js @@ -0,0 +1,159 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + // { + // label: '排序', + // prop: 'sort' + // }, + { + label: '工号', + prop: 'teacherNo', + search:true + }, + { + label: '姓名', + prop: 'teacherName', + search:true + }, + // { + // label: '原部门编码', + // prop: 'oldDeptCode' + // }, + { + label: '原部门名称', + prop: 'oldDeptName', + }, + // { + // label: '现部门编码', + // prop: 'newDeptCode' + // }, + { + label: '现部门名称', + prop: 'newDeptName' + }, + { + label: '调令日期', + prop: 'changeDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd' + }, + ], + group:[ + { + column: [ + { + label: '姓名', + prop: 'teacherName' + }, + { + label: '工号', + prop: 'teacherNo' + }, + { + label: '原部门名称', + prop: 'oldDeptCode', + type: 'tree', + dicUrl: '/basic/basicdept/tree', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: '请选择部门名称', + trigger: 'blur' + }] + }, + { + label: '现部门名称', + value:'newDeptCode', + // prop: 'newDeptCode', + type: 'tree', + dicUrl: '/basic/basicdept/tree', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: '请选择部门名称', + trigger: 'blur' + }] + }, + { + label: '调令日期', + prop: 'changeDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd' + }, + { + label: '备注', + prop: 'remarks', + type:"textarea", + span:24, + }, + ] + } + + ], +} diff --git a/src/const/crud/professional/professionalteachertype.js b/src/const/crud/professional/professionalteachertype.js new file mode 100755 index 0000000..41c8db8 --- /dev/null +++ b/src/const/crud/professional/professionalteachertype.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '类型名称', + prop: 'typeName' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/professionalteachingmaterial.js b/src/const/crud/professional/professionalteachingmaterial.js new file mode 100755 index 0000000..1cb332a --- /dev/null +++ b/src/const/crud/professional/professionalteachingmaterial.js @@ -0,0 +1,217 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import { checkTitle } from '@/api/professional/professionalteachingmaterial' + +var validateMaterialName = (rule, value, callback) => { + checkTitle({"materialName":value}).then(response => { + let result = response.data.data + if (result) { + callback(new Error('教材名称已存在')) + } else { + callback() + } + }); +}; + +const statusDic=[ + {label:"待提交",value:"0"}, + {label:"待部门审核",value:"1"}, + {label:"待教学研究中心审核",value:"2"}, + {label:"通过",value:"100"}, + {label:"驳回",value:"-1"}, +] +export const tableOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu:false, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:700, + dialogWidth: '90%', + dic: [], + column: [ + { + label:"审核人操作栏", + prop:"examCol", + minWidth: 200, + fixed:true, + slot:true, + display:false + }, + { + label:"填报人操作栏", + prop:"editCol", + minWidth: 200, + fixed:true, + slot:true, + display:false + }, + { + label: '审核状态 ', + prop: 'state', + search:true, + dicData: statusDic, + type:'select', + props:{ + label:'label', + value:'value' + }, + display:false + }, + { + label: "驳回理由", + prop: "backReason", + display: false + }, + { + label:'证明材料', + prop:"zmcl", + slot:true, + display:false, + minWidth:150 + }, + { + label: '工号', + prop: 'createBy', + display:false, + search:true + }, + { + label: '姓名', + prop: 'realName', + display:false, + search:true + }, + { + label: '教材名称', + prop: 'materialName', + formslot: true, + rules: [{ + required: true, + message: '请填写教材名称', + trigger: 'blur' + }, + // {validator: validateMaterialName, trigger: 'blur'} + ], + minWidth:150 + }, + { + label: '教材类别', + prop: 'materialConfigId', + type: 'select', + dicUrl: '/professional/professionalteachingmaterialconfig/getTeachingMaterialList', + props:{ + label:'typeName', + value:'id' + }, + rules: [{ + required: true, + message: '请选择类别', + trigger: 'blur' + }] + }, + { + label: '主编', + prop: 'editor', + rules: [{ + required: true, + message: '请填写主编', + trigger: 'blur' + }] + }, + { + label: '副主编', + prop: 'secondEditor', + minWidth: 200 + }, + { + label: '参编', + prop: 'joinEditor', + minWidth: 200 + }, + { + label: '编写字数(千字)', + prop: 'words', + type: "number", + rules: [{ + required: true, + message: '请填写编写字数', + trigger: 'blur' + }] + }, + { + label: '出版单位', + prop: 'publishCompany', + rules: [{ + required: true, + message: '请填写出版单位', + trigger: 'blur' + }, + ], + minWidth: 200 + }, + { + label: '出版时间', + prop: 'publishTime', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + minWidth: 100 + }, + { + label: 'ISBN', + prop: 'isbn', + display:true, + search:true, + formslot: true + }, + { + label: '版次日期', + prop: 'versionDate', + display:true, + search:true, + rules: [{ + required: true, + message: '请填写版次日期', + trigger: 'blur' + }, + ] + }, + { + label: '备注', + prop: 'remarks', + }, + { + label:'*教材封面', + prop:"mateCover", + formslot:true, + hide:true, + }, + { + label:'*出版页', + prop:"pubImg", + formslot:true, + hide:true + }, + ] +} diff --git a/src/const/crud/professional/professionalteachingmaterialconfig.js b/src/const/crud/professional/professionalteachingmaterialconfig.js new file mode 100755 index 0000000..5c18a62 --- /dev/null +++ b/src/const/crud/professional/professionalteachingmaterialconfig.js @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '类型名称', + prop: 'typeName' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + + ] +} diff --git a/src/const/crud/professional/professionaltitleconfig.js b/src/const/crud/professional/professionaltitleconfig.js new file mode 100755 index 0000000..0bff27b --- /dev/null +++ b/src/const/crud/professional/professionaltitleconfig.js @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '职称名称', + prop: 'professionalTitle' + }, + { + label: '职称等级', + prop: 'professionalTitleLevelConfigId' + }, + // { + // label: '排序', + // prop: 'sort' + // }, + ] +} diff --git a/src/const/crud/professional/professionaltitlelevelconfig.js b/src/const/crud/professional/professionaltitlelevelconfig.js new file mode 100755 index 0000000..c952243 --- /dev/null +++ b/src/const/crud/professional/professionaltitlelevelconfig.js @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '职称等级名称', + prop: 'professionalTitle' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + + ] +} diff --git a/src/const/crud/professional/professionaltitlerelation.js b/src/const/crud/professional/professionaltitlerelation.js new file mode 100755 index 0000000..5786af2 --- /dev/null +++ b/src/const/crud/professional/professionaltitlerelation.js @@ -0,0 +1,176 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + // { + // label: '排序', + // prop: 'sort' + // }, + { + label: '审核状态 ', + prop: 'state', + search:true, + dicUrl:'/admin/dict/item/type/professional_state', + type:'select', + props:{ + label:'label', + value:'value' + }, + addDisplay:false, + editDisplay:false + }, + { + label: "驳回理由", + prop: "backReason", + }, + { + label: '工号', + prop: 'teacherNo', + search:true + }, + { + label: '姓名', + prop: 'realName', + search:true + + }, + { + label: '职称', + prop: 'professionalTitleConfigId', + type: 'select', + dicUrl: 'professional/professionaltitlelevelconfig/getProfessionalTitleList', + search:true, + props: { + label: 'professionalTitle', + value: 'id' + } + }, + { + label: '专业技术职务 ', + prop: 'majorStation', + type: 'select', + dicUrl: '/professional/professionalmajorstation/getMajorStationList', + search:true, + filterable:true, + props: { + label: 'majorStationName', + value: 'id' + } + }, + { + label: '变动时间', + prop: 'changedTime', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label: '取证时间', + prop: 'certificateTime', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + addDisplay:false, + editDisplay:false, + hide:true + }, + { + label: '证书编号', + prop: 'certificateNumber', + hide:true + }, + // { + // label: '证明材料', + // prop: 'evidence', + // type: 'upload', + // loadText: '附件上传中,请稍等', + // span: 24, + // tip: '只能上传jpg/png文件,且不超过500kb', + // action: '/professional/file/upload', + // propsHttp: { + // res: 'data', + // name:'fileName', + // }, + // hide:true, + // }, + + + { + label: '证明材料', + prop: 'evidence', + row:true, + formslot:true, + slot:true, + span:24, + }, + { + label: '备注', + prop: 'remarks', + type:"textarea", + span:24, + hide:true + }, + + { + label: '创建时间', + prop: 'createTime', + type:'datetime', + format:'yyyy-MM-dd', + addDisplay:false, + editDisplay:false + }, + + ] +} diff --git a/src/const/crud/professional/professionaltopiclevelconfig.js b/src/const/crud/professional/professionaltopiclevelconfig.js new file mode 100755 index 0000000..3cdee15 --- /dev/null +++ b/src/const/crud/professional/professionaltopiclevelconfig.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '课题等级名称', + prop: 'levelName' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/professionaltopiclist.js b/src/const/crud/professional/professionaltopiclist.js new file mode 100755 index 0000000..8a65b6b --- /dev/null +++ b/src/const/crud/professional/professionaltopiclist.js @@ -0,0 +1,186 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const statusDic=[ + {label:"待提交",value:"0"}, + {label:"待部门审核",value:"1"}, + {label:"待教学研究中心审核",value:"2"}, + {label:"通过",value:"100"}, + {label:"驳回",value:"-1"}, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + dialogHeight:700, + dialogWidth:"90%", + labelWidth:150, + column: [ + { + label: '审核状态 ', + prop: 'state', + search:true, + dicData: statusDic, + type:'select', + props:{ + label:'label', + value:'value' + }, + display:false + }, + { + label: "驳回理由", + prop: "backReason", + display: false + }, + { + label:'证明材料', + prop:"zmcl", + slot:true, + display:false, + minWidth:150 + }, + { + label: '工号', + prop: 'createBy', + display:false, + search:true + + }, + { + label: '姓名', + prop: 'realName', + display:false, + search:true + }, + { + label: '课题所属部门', + prop: 'deptName', + display: false + }, + { + label: '课题名称', + prop: 'topicName', + rules: [{ + required: true, + message: '请填写课题名称', + trigger: 'blur' + }], + minWidth:200 + }, + { + label: '课题负责人', + prop: 'topicLeader', + rules: [{ + required: true, + message: '请填写课题负责人', + trigger: 'blur' + }] + }, + { + label: '课题参与人', + prop: 'topicJoiner' + }, + { + label: '课题来源', + prop: 'topicSourceConfigId', + type: 'select', + dicUrl: '/professional/professionaltopicsourceconfig/getTopicSourceList', + props: { + label:'sourceName', + value:'id' + }, + rules: [{ + required: true, + message: '请选择来源', + trigger: 'blur' + }] + }, + { + label: '级别', + prop: 'topicLevelConfigId', + type: 'select', + dicUrl: '/professional/professionaltopiclevelconfig/getTopicLevelList', + props: { + label:'levelName', + value:'id' + }, + rules: [{ + required: true, + message: '请选择级别', + trigger: 'blur' + }] + }, + { + label: '结题时间', + prop: 'finishTime', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '请选择结题时间', + trigger: 'blur' + }] + }, + { + label: '颁奖单位', + prop: 'awardingUnit' + }, + { + label: '获奖等级', + prop: 'awardingLevel' + }, + { + label: '备注', + prop: 'remarks', + hide:true + }, + { + label:'立项申报书', + prop:"projectApp", + formslot:true, + hide:true + }, + { + label:'*结题证书', + prop:"conclusionBook", + formslot:true, + hide:true + }, + { + label:'结题报告', + prop:"conclusionReport", + formslot:true, + hide:true + }, + + { + label:'其他材料', + prop:"otherImg", + formslot:true, + hide:true + }, + + ] +} diff --git a/src/const/crud/professional/professionaltopicsourceconfig.js b/src/const/crud/professional/professionaltopicsourceconfig.js new file mode 100755 index 0000000..6c96d44 --- /dev/null +++ b/src/const/crud/professional/professionaltopicsourceconfig.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '课题来源', + prop: 'sourceName' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/professional/professionalworktype.js b/src/const/crud/professional/professionalworktype.js new file mode 100755 index 0000000..37fc804 --- /dev/null +++ b/src/const/crud/professional/professionalworktype.js @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '工种名称', + prop: 'workName' + }, + + { + label: '创建时间', + prop: 'createTime', + editDisabled:true, + addDisplay:false + }, + ] +} diff --git a/src/const/crud/professional/professionalyearbounds.js b/src/const/crud/professional/professionalyearbounds.js new file mode 100755 index 0000000..33651bb --- /dev/null +++ b/src/const/crud/professional/professionalyearbounds.js @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + // { + // label: '排序', + // prop: 'sort' + // }, + { + label: '工号', + prop: 'teacherNo' + }, + { + label: '姓名', + prop: 'teacherName' + }, + { + label: '身份证', + prop: 'teacherNo' + }, + { + label: '年份', + prop: 'year', + type: 'year', + format:'yyyy', + valueFormat:'yyyy' + }, + { + label: '13月工资', + prop: 'salary' + }, + { + label: '重点考核目标', + prop: 'assessmentTarget' + }, + { + label: '专项绩效1', + prop: 'specialPerformance1' + }, + { + label: '专项绩效2', + prop: 'specialPerformance2' + }, + { + label: '年终奖励性绩效', + prop: 'meritpay' + }, + // { + // label: '', + // prop: 'other1' + // }, + // { + // label: '', + // prop: 'other2' + // }, + // { + // label: '', + // prop: 'other3' + // }, + // { + // label: '', + // prop: 'other4' + // }, + ] +} diff --git a/src/const/crud/professional/salaryexportrecord.js b/src/const/crud/professional/salaryexportrecord.js new file mode 100644 index 0000000..53d094b --- /dev/null +++ b/src/const/crud/professional/salaryexportrecord.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from '@/components/tools/commondict' +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '导出时间', + prop: 'createTime' + }, + { + label: '薪资年份', + prop: 'salaryYear' + }, + { + label: '薪资月份', + prop: 'salaryMonth' + }, + { + label: '劳务日期锁定', + prop: 'confirm', + type:"select", + dicData:global.YES_OR_NO + } + ] +} diff --git a/src/const/crud/professional/sciencechangehistory.js b/src/const/crud/professional/sciencechangehistory.js new file mode 100644 index 0000000..45678fe --- /dev/null +++ b/src/const/crud/professional/sciencechangehistory.js @@ -0,0 +1,90 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const changeTypeDic=[ + {label:"课题变更",value:"1"}, + {label:"组员变更",value:"2"}, + {label:"延期结题",value:"3"}, + {label:"撤销课题",value:"4"}, +] + +const dealDic=[ + {label:"待提交",value:"0"}, + {label:"待部门审核",value:"1"}, + {label:"待教学研究中心审核",value:"2"}, + {label:"通过",value:"100"}, + {label:"驳回",value:"-1"}, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '变更类型', + prop: 'type', + dicData:changeTypeDic, + type:'select', + props:{ + label:'label', + value:'value', + } + }, + { + label: '原始内容', + prop: 'originContent' + }, + { + label: '变更后内容', + prop: 'newContent' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '审核通过时间', + prop: 'passTime' + }, + { + label: '签字单', + prop: 'sign', + slot:true + }, + { + label: '申请原因', + prop: 'remarks', + }, + { + label: '状态', + prop: 'dealState', + dicData: dealDic, + type:'select', + props:{ + label:'label', + value:'value', + } + }, + + ] +} diff --git a/src/const/crud/professional/sciencereport.js b/src/const/crud/professional/sciencereport.js new file mode 100644 index 0000000..6213a46 --- /dev/null +++ b/src/const/crud/professional/sciencereport.js @@ -0,0 +1,139 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '课题名称', + prop: 'title' + }, + { + label: '1 指令性课题 2 其他课题', + prop: 'type' + }, + { + label: '申报人工号', + prop: 'reportUser' + }, + { + label: '部门名称', + prop: 'deptName' + }, + { + label: '部门代码', + prop: 'deptCode' + }, + { + label: '二级部门', + prop: 'commonDeptCode' + }, + { + label: '二级部门名称', + prop: 'commonDeptName' + }, + { + label: '联系电话', + prop: 'contractPhone' + }, + { + label: '研究开始时间', + prop: 'startTime' + }, + { + label: '研究完成时间', + prop: 'endTime' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标志位', + prop: 'delFlag' + }, + { + label: '租户id', + prop: 'tenantId' + }, + { + label: '课题核心概念与界定', + prop: 'contantA' + }, + { + label: '国内外统一研究领域现状与研究价值', + prop: 'contentB' + }, + { + label: '研究的目标、内容(或子课题设计)与重点', + prop: 'contentC' + }, + { + label: '研究的思路、过程与方法', + prop: 'contentD' + }, + { + label: '主要观点与可能的创新之处', + prop: 'contentE' + }, + { + label: '完成研究任务的可行性分析', + prop: 'contentF' + }, + { + label: '部门意见', + prop: 'deptExam' + }, + { + label: '校学术委员会意见', + prop: 'schoolExam' + }, + { + label: '教学研究中心意见', + prop: 'eduExam' + }, + { + label: '0 待提交 1 申请开题审核 2 申请通过 ', + prop: 'status' + }, + ] +} diff --git a/src/const/crud/professional/supervisevotebatch.js b/src/const/crud/professional/supervisevotebatch.js new file mode 100644 index 0000000..a4665bb --- /dev/null +++ b/src/const/crud/professional/supervisevotebatch.js @@ -0,0 +1,150 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标志位', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '租户id', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '排序', + prop: 'sort', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '批次标题', + prop: 'title', + rules: [{ + required: true, + message: '请填写批次标题', + trigger: 'blur' + }] + }, + { + label: '开始日期', + prop: 'startDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + message: '请填写开始日期', + trigger: 'blur' + }] + }, + { + label: '截止日期', + prop: 'endDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + message: '请填写截止日期', + trigger: 'blur' + }] + }, + { + label: '备注', + prop: 'remarks', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + // { + // label: '启用禁用', + // prop: 'enabled' + // }, + ] +} diff --git a/src/const/crud/professional/supervisevotebatchpwd.js b/src/const/crud/professional/supervisevotebatchpwd.js new file mode 100644 index 0000000..d61986a --- /dev/null +++ b/src/const/crud/professional/supervisevotebatchpwd.js @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标志位', + prop: 'delFlag' + }, + { + label: '租户id', + prop: 'tenantId' + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '批次ID', + prop: 'batchId' + }, + { + label: '密码', + prop: 'pwd' + }, + ] +} diff --git a/src/const/crud/professional/supervisevotemember.js b/src/const/crud/professional/supervisevotemember.js new file mode 100644 index 0000000..4f5399d --- /dev/null +++ b/src/const/crud/professional/supervisevotemember.js @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标志位', + prop: 'delFlag' + }, + { + label: '租户id', + prop: 'tenantId' + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '批次ID', + prop: 'batchId' + }, + { + label: '部门', + prop: 'deptName' + }, + { + label: '姓名', + prop: 'realName' + }, + ] +} diff --git a/src/const/crud/professional/supervisevotememberresult.js b/src/const/crud/professional/supervisevotememberresult.js new file mode 100644 index 0000000..f63d2e0 --- /dev/null +++ b/src/const/crud/professional/supervisevotememberresult.js @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标志位', + prop: 'delFlag' + }, + { + label: '租户id', + prop: 'tenantId' + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '批次ID', + prop: 'batchId' + }, + { + label: '人员ID', + prop: 'memberId' + }, + { + label: '部门', + prop: 'memberD' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '使用的密码', + prop: 'pwd' + }, + { + label: '评价结果', + prop: 'result' + }, + ] +} diff --git a/src/const/crud/professional/teacherawardtax.js b/src/const/crud/professional/teacherawardtax.js new file mode 100644 index 0000000..402d571 --- /dev/null +++ b/src/const/crud/professional/teacherawardtax.js @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '工号', + prop: 'teacherNo', + search:true + + }, + { + label: '开始日期', + prop: 'startDate' + }, + { + label: '结束日期', + prop: 'endDate' + }, + { + label: '年份', + prop: 'year', + search:true, + type:'year', + format:'yyyy', + valueFormat:'yyyy' + }, + { + label: '累计应纳税所得额', + prop: 'income' + }, + { + label: '税率', + prop: 'taxRate' + }, + { + label: '速算扣除', + prop: 'deductMoney' + }, + { + label: '应补(退)税额', + prop: 'realMoney' + }, + ] +} diff --git a/src/const/crud/professional/teacherbase.js b/src/const/crud/professional/teacherbase.js new file mode 100644 index 0000000..f99c3f4 --- /dev/null +++ b/src/const/crud/professional/teacherbase.js @@ -0,0 +1,1750 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {YES_OR_NO} from "../aj/scjajclassinfo"; +import global from '@/components/tools/commondict' + +export const tableOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + maxHeight:600, + column: [ + /*{ + label: '主键', + prop: 'id' + },*/ + /* { + label: '创建人', + prop: 'createBy' + },*/ + + /*{ + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标志位', + prop: 'delFlag' + },*/ + + /*{ + label: '租户id', + prop: 'tenantId' + },*/ + { + label: '是否退休', + prop: 'tied', + type:'select', + dicData: global.YES_OR_NO, + fixed: true, + props:{ + label:'label', + value:'value' + } + }, + { + label: '姓名', + prop: 'realName', + search:true, + fixed: true, + }, + { + label: '工号', + prop: 'teacherNo', + search:true, + }, + + { + label: '性别', + prop: 'sex', + props:{ + label:'label', + value:'value' + }, + type:"radio", + dicUrl:'/admin/dict/item/type/sexy', + addDisplay: false, + editDisabled: true, + }, + { + label: '部门', + prop: 'deptName', + }, + { + label: '学历学位', + prop: 'dgreeName', + }, + { + label: '退休年份', + prop: 'retireDate', + hide:true, + search:true, + type:'year', + format:'yyyy', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label:'职称等级', + search:true, + prop: 'pfTitleId', + type:'select', + dicUrl:`/professional/professionaltitlelevelconfig/getProfessionalTitleList`, + props:{ + label:'professionalTitle', + value:'id', + }, + }, + { + label: '岗位级别', + prop: 'stationLevelName', + }, + { + label:'职业资格等级', + prop: 'workId', + type:'select', + dicUrl:`/professional/professionalqualificationconfig/getLevelList`, + props:{ + label:'levelName', + value:'id', + } + }, + { + label:'职业资格工种', + prop: 'workName', + hide:true + }, + { + label:'教师上岗证', + prop: 'teacherCer', + }, + { + label:'中等教师资格证', + prop: 'midCer', + }, + { + label:'高校教师资格证', + prop: 'highCer', + }, + { + label:'职务等级', + prop: 'stationDutyLevelId', + type:'select', + hide:true, + search:true, + dicUrl:`/professional/professionalstationdutylevel/getStationDutyLevelList`, + props:{ + label:'stationDutyLevelName', + value:'id', + }, + rules: [ + { + required: true, + message: '请选择专业技术职务', + trigger: 'blur' + } + ] + }, + + + { + label: '用工性质', + prop: 'employmentNature', + type: 'select', + dicUrl:`/professional/professionalemploymentnature/getEmploymentNatureList`, + props:{ + label:'employmentNatureName', + value:'id', + }, + }, + + { + label: '出生年月', + prop: 'birthday', + hide:true, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label: '民族', + prop: 'national', + hide:true, + type:'select', + dicUrl:'/basic/basicnation/getNationalList', + props:{ + label:'nationName', + value:'nationCode' + }, + }, + { + label: '政治面貌', + prop: 'politicsStatus', + type: 'select', + hide:true, + search:true, + props:{ + label:'politicsStatus', + value:'id' + }, + dicUrl:'/basic/basicpoliticsstatusbase/getPoliticsStatusList', + + }, + { + label: '身份证', + prop: 'idCard', + hide: true, + rules:[{ + required:true, + message:'请填写身份证号', + trigger:'blur' + }], + }, + { + label: '籍贯', + prop: 'nativePlace', + hide:true + }, + { + label: '出生地', + prop: 'birthPlace', + hide:true + + }, + { + label: '健康状况', + prop: 'health', + hide:true + }, + { + label: '宅电', + prop: 'homePhone', + hide:true + + }, + { + label: '手机', + prop: 'telPhone', + }, + { + label: '手机2', + prop: 'telPhoneTwo', + hide:true + }, + { + label: '家庭住址', + prop: 'homeAddress' + }, + { + label: '银行卡号', + prop: 'bankNo', + hide:true + }, + { + label: '备注', + prop: 'remarks', + hide:true + + }, + + { + label: '授课类型', + prop: 'teacherCate', + type:'select', + search:true, + dicUrl:'/admin/dict/item/type/'+global.TEACHER_CATE, + props:{ + label:'label', + value:'value' + } + }, + + { + label: '允许进出', + prop: 'inoutFlag', + type:'select', + search:true, + hide:true, + props:{ + label:'label', + value:'value' + }, + dicData:[ + {label:'是',value:'1'}, + {label:'否',value:'0'}, + ] + }, + { + label: '创建时间', + prop: 'createTime', + addDisplay:false, + editDisplay: false, + hide:true + + }, + + ] + +} + +//社会关系 +export const realtionOption={ + keyId:'id', + addBtn:false, + editBtn:false, + addRowBtn:true, + cellBtn:true, + column: [{ + label:'称谓', + prop: 'title', + type:'select', + cell: true, + dicUrl:'/admin/dict/item/type/family_member_type', + rules: [ + { + required: true, + message: '请输入称谓', + trigger: 'blur' + } + ] + }, + { + label:'姓名', + prop: 'realName', + cell: true, + rules: [ + { + required: true, + message: '请输入姓名', + trigger: 'blur' + } + ] + }, + { + label:'出生年月', + prop: 'birthday', + type:'date', + cell: true, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + message: '请输入出生年月', + trigger: 'blur' + } + ] + }, + + { + label:'政治面貌', + prop: 'politicsStatusId', + type:'select', + cell: true, + dicUrl:`/basic/basicpoliticsstatusbase/getPoliticsStatusDict`, + props:{ + label:'name', + value:'id', + } + }, + { + label:'工作单位及职务', + prop: 'workStation', + cell: true, + + }, + ] +} + +export const realtionOptionForLook={ + addBtn:false, + editBtn:false, + delBtn:false, + addRowBtn:true, + cellBtn:true, + column: [{ + label:'称谓', + prop: 'title', + type:'select', + cell: true, + dicUrl:'/admin/dict/item/type/family_member_type', + }, + { + label:'姓名', + prop: 'realName', + cell: true + }, + { + label:'生日', + prop: 'birthday', + type:'date', + cell: true, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss' + }, + + { + label:'政治面貌', + prop: 'politicsStatusId', + type:'select', + cell: true, + dicUrl:`/basic/basicpoliticsstatusbase/getPoliticsStatusDict`, + props:{ + label:'name', + value:'id', + } + }, + { + label:'工作单位及职务', + prop: 'workStation', + cell: true, + }, + ] +} + + +//学历 +export const educationOption={ + keyId:'id', + addBtn:false, + editBtn:false, + addRowBtn:false, + cellBtn:false, + delBtn:false, + menu:false, + column: [ + { + label:'毕业时间', + prop: 'graduateTime', + cell: true, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + message: '请输入毕业时间', + trigger: 'blur' + } + ] + }, + { + label:'学历', + prop: 'qualificationConfigId', + type:'select', + cell: true, + dicUrl:`/professional/academicqualificationsconfig/getQualificationList`, + props:{ + label:'qualificationName', + value:'id', + }, + rules: [ + { + required: true, + message: '请选择学历', + trigger: 'blur' + } + ] + }, + { + label: '教育类型', + prop: 'type', + cell:true, + props:{ + label:'name', + value:'id' + }, + type:"select", + dicUrl:'/professional/professionalacademiceducationtypeconfig/getAllTypeList', + addDisplay: false, + editDisabled: true, + }, + { + label:'学位', + prop: 'degreeConfigId', + type:'select', + cell: true, + dicUrl:`/professional/professionalacademicdegreeconfig/getDegreeList`, + props:{ + label:'degreeName', + value:'id', + }, + rules: [ + { + required: true, + message: '请选择学位', + trigger: 'blur' + } + ] + + }, + { + label:'毕业学校', + prop: 'graduateSchool', + cell: true, + rules: [ + { + required: true, + message: '请输入毕业学校', + trigger: 'blur' + } + ] + }, + { + label:'所学专业', + prop: 'major', + cell: true, + rules: [ + { + required: true, + message: '请输入所学专业', + trigger: 'blur' + } + ] + }, + { + label:'证书编码', + prop: 'certificateNumber', + cell: true, + rules: [ + { + required: true, + message: '请输入证书编码', + trigger: 'blur' + } + ] + }, + { + label: '学历证书附件', + prop: 'qualificationImg', + slot:true + }, + { + label: '学位证书附件', + prop: 'degreeImg', + slot:true + }, + { + label:'更新时间', + prop: 'createTime', + cell: true, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + ] +} + +export const educationOptionForLook={ + addBtn:false, + editBtn:false, + delBtn:false, + menu:false, + column: [{ + label:'毕业时间', + prop: 'graduateTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss' + + }, + { + label:'学历', + prop: 'qualificationConfigId', + type:'select', + dicUrl:`/professional/academicqualificationsconfig/getQualificationList`, + props:{ + label:'qualificationName', + value:'id', + } + + }, + { + label:'学位', + prop: 'degreeConfigId', + type:'select', + dicUrl:`/professional/professionalacademicdegreeconfig/getDegreeList`, + props:{ + label:'degreeName', + value:'id', + } + + + }, + { + label: '教育类型', + prop: 'type', + props:{ + label:'name', + value:'id' + }, + type:"select", + dicUrl:'/professional/professionalacademiceducationtypeconfig/getAllTypeList', + addDisplay: false, + editDisabled: true, + }, + { + label:'毕业学校', + prop: 'graduateSchool', + + }, + { + label:'所学专业', + prop: 'major', + + }, + { + label:'证书编码', + prop: 'certificateNumber', + + }, + { + label: '学历证书附件', + prop: 'qualificationImg', + labelWidth:200, + slot:true + }, + { + label: '学位证书附件', + prop: 'degreeImg', + labelWidth:200, + slot:true + }, + { + label:'更新时间', + prop: 'createTime', + cell: true, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + ] +} + +//职称 +export const proOption={ + keyId:'id', + addBtn:false, + editBtn:false, + addRowBtn:false, + cellBtn:false, + menu:false, + column: [{ + label:'职称等级', + prop: 'professionalTitleConfigId', + type:'select', + cell: true, + dicUrl:`/professional/professionaltitlelevelconfig/getProfessionalTitleList`, + props:{ + label:'professionalTitle', + value:'id', + }, + rules: [ + { + required: true, + message: '请选择职称等级', + trigger: 'blur' + } + ] + }, + { + label:'专业技术职务', + prop: 'majorStation', + type:'select', + cell: true, + dicUrl:`/professional/professionalmajorstation/getMajorStationList`, + props:{ + label:'majorStationName', + value:'id', + }, + rules: [ + { + required: true, + message: '请选择专业技术职务', + trigger: 'blur' + } + ] + }, + { + label:'取证时间', + prop: 'certificateTime', + type:'date', + cell:true, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + message: '请选择取证时间', + trigger: 'blur' + } + ] + + }, + { + label:'职称任职时间', + prop: 'inOfficeDate', + type:'date', + cell:true, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + message: '请选择职称任职时间', + trigger: 'blur' + } + ] + + }, + { + label:'证书编号', + prop: 'certificateNumber', + cell:true, + rules: [ + { + required: true, + message: '请输入证书编号', + trigger: 'blur' + } + ] + }, + { + label: '证明材料', + prop: 'evidence', + slot:true, + span:24, + }, + { + label:'更新时间', + prop: 'createTime', + cell: true, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + ] +} + +export const proOptionForLook={ + addBtn:false, + editBtn:false, + delBtn:false, + menu:false, + column: [{ + label:'职称等级', + prop: 'professionalTitleConfigId', + type:'select', + dicUrl:`/professional/professionaltitlelevelconfig/getProfessionalTitleList`, + props:{ + label:'professionalTitle', + value:'id', + }, + }, + { + label:'专业技术职务', + prop: 'majorStation', + type:'select', + dicUrl:`/professional/professionalmajorstation/getMajorStationList`, + props:{ + label:'majorStationName', + value:'id', + }, + + }, + { + label:'取证时间', + prop: 'certificateTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label:'职称任职时间', + prop: 'inOfficeDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label:'证书编号', + prop: 'certificateNumber', + }, + { + label: '证明材料', + prop: 'evidence', + slot:true, + span:24, + }, + { + label:'更新时间', + prop: 'createTime', + cell: true, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + ] +} + +//职业 +export const workOption={ + keyId:'id', + addBtn:false, + editBtn:false, + addRowBtn:false, + cellBtn:false, + menu:false, + column: [ + { + label:'职业工种', + prop: 'worker', + cell: true, + type: 'select', + filterable:true, + dicUrl:`/professional/professionalworktype/getWorkTypeList`, + props:{ + label:'workName', + value:'id', + } + }, + { + label:'等级', + prop: 'qualificationConfigId', + cell: true, + type:'select', + dicUrl:`/professional/professionalqualificationconfig/getLevelList`, + props:{ + label:'levelName', + value:'id', + } + }, + { + label:'取证时间', + prop: 'certificateTime', + type:'date', + cell: true, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + message: '请选择取证时间', + trigger: 'blur' + } + ] + + }, + + { + label:'证书编号', + prop: 'certificateNumber', + cell: true, + }, + { + label: '证明材料', + prop: 'evidence', + row:true, + slot:true, + span:24, + }, + { + label:'更新时间', + prop: 'createTime', + cell: true, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + ] +} + + +export const workOptionForLook={ + addBtn:false, + editBtn:false, + delBtn:false, + menu:false, + column: [ + { + label:'职业工种', + prop: 'worker', + type: 'select', + dicUrl:`/professional/professionalworktype/getWorkTypeList`, + props:{ + label:'workName', + value:'id', + } + }, + { + label:'等级', + prop: 'qualificationConfigId', + type:'select', + dicUrl:`/professional/professionalqualificationconfig/getLevelList`, + props:{ + label:'levelName', + value:'id', + } + }, + { + label:'取证时间', + prop: 'certificateTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + + }, + + { + label:'证书编号', + prop: 'certificateNumber', + }, + { + label:'更新时间', + prop: 'createTime', + cell: true, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + ] +} + +//政治面貌 +export const politicsOption={ + keyId:'id', + addBtn:false, + editBtn:false, + addRowBtn:true, + cellBtn:true, + column: [{ + label:'政治面貌', + prop: 'politicsStatusId', + cell: true, + type: 'select', + dicUrl: `/basic/basicpoliticsstatusbase/getPoliticsStatusList`, + props:{ + label:'politicsStatus', + value:'id' + }, + rules: [ + { + required: true, + message: '请选择政治面貌', + trigger: 'blur' + } + ] + }, + + { + label:'加入时间', + prop: 'joinTime', + type:'date', + cell: true, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + message: '请选择加入时间', + trigger: 'blur' + } + ] + + }, + { + label:'转正时间', + prop: 'correctionTime', + type:'date', + cell: true, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + message: '请选择转正时间', + trigger: 'blur' + } + ] + + }, + { + label:'更新时间', + prop: 'createTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + + ] +} + +export const politicsOptionForLook={ + addBtn:false, + editBtn:false, + delBtn:false, + cellBtn:true, + addRowBtn:true, + column: [{ + label:'政治面貌', + prop: 'politicsStatusId', + type: 'select', + dicUrl: `/basic/basicpoliticsstatusbase/getPoliticsStatusList`, + props:{ + label:'politicsStatus', + value:'id' + }, + cell: true, + }, + + { + label:'加入时间', + prop: 'joinTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + cell: true, + }, + { + label:'转正时间', + prop: 'correctionTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + cell: true, + }, + { + label:'更新时间', + prop: 'createTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + + ] +} + +//教师资格证 +export const teacherZgzOption={ + keyId:'id', + addBtn:false, + editBtn:false, + addRowBtn:false, + delBtn:false, + menu:false, + column: [ + { + label:'证书名称', + prop: 'certificateConfId', + cell: true, + type: 'select', + dicUrl: `/professional/professionalteachercertificateconf/getTeacherCertificateList`, + props:{ + label:'cretificateName', + value:'id' + }, + rules: [ + { + required: true, + message: '请选择政治面貌', + trigger: 'blur' + } + ] + }, + { + label:'证书编号', + prop: 'certificateNumber', + type:'date', + }, + + { + label:'证明材料', + prop: 'evidence', + slot:true + }, + { + label:'更新时间', + prop: 'createTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + ] +} + + +export const teacherMissOption={ + border: true, + index: true, + indexLabel: '序号', + stripe: true, + addBtn:false, + editBtn:false, + addRowBtn:false, + delBtn:false, + menu:false, + column: [{ + label:'部门', + prop: 'deptName' + }, + { + label:'工号', + prop: 'teacherNo', + search:true + }, + { + label:'姓名', + prop: 'realName', + search:true + }, + { + label:'性别', + prop: 'sex', + // props:{ + // label:'label', + // value:'value' + // }, + // dicUrl:'/admin/dict/item/type/sexy' + }, + { + label:'联系电话1', + prop: 'telPhone' + }, + { + label:'联系电话2', + prop: 'telPhoneTwo' + }, + { + label:'缺填字段', + prop: 'missInfo' + } + ] +} + +export const teacherHonorOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + delBtn: false, + editBtn: false, + menu:false, + addBtn: false, + column: [ + { + label: '荣誉', + prop: 'honor' + }, + { + label: '表彰单位', + prop: 'honorCompany' + }, + { + label: '年份', + prop: 'year', + type: 'year', + format:'yyyy', + valueFormat:'yyyy' + }, + { + label: '证明材料', + prop: 'attachment', + slot:true, + formslot:true + }, + ] +} + +export const teacherPaperOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + menu:false, + + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + dialogHeight:700, + dialogWidth:"90%", + column: [ + { + label:'证明材料', + prop:"zmcl", + slot:true, + display:false + }, + { + label: '作者', + prop: 'author', + rules: [{ + required: true, + message: '请输入作者', + trigger: 'blur' + }] + }, + { + label: '第二作者', + prop: 'secondAuthor' + }, + { + label: '论文名称', + prop: 'title', + rules: [{ + required: true, + message: '请输入论文名称', + trigger: 'blur' + }] + }, + { + label: '论文类型', + prop: 'paperConfigId', + type: 'select', + dicUrl: '/professional/professionalpaperconfig/getPaperConfigList', + props:{ + label:'typeName', + value:'id' + }, + rules: [{ + required: true, + message: '请选择论文类型', + trigger: 'blur' + }] + }, + { + label: '发表刊物名称', + prop: 'nameOfPublication' + }, + { + label: '发表时间', + prop: 'dateOfPublication', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '请填写发表时间', + trigger: 'blur' + }] + }, + { + label: '刊物主办单位', + prop: 'publicationsCompetentUnit', + }, + { + label: '刊物主管单位', + prop: 'publicationsManageUnit', + }, + { + label: '颁奖单位', + prop: 'awardingUnit', + }, + { + label: '获奖等级', + prop: 'rewardLevel', + }, + { + label: '获奖时间', + prop: 'rewardTime', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label: '备注', + prop: 'remarks', + }, + + { + label:'*知网截图', + prop:"knowdgeImg", + formslot:true, + hide:true, + }, + { + label:'*刊物封面', + prop:"pubCover", + formslot:true, + hide:true + }, + { + label:'*目录页', + prop:"cateImg", + formslot:true, + hide:true + }, + { + label:'*内容页', + prop:"contentImg", + formslot:true, + hide:true + } + ] +} + +export const teacherMaterialOption = { + border: true, + index: true, + indexLabel: '序号', + menu:false, + + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label:'证明材料', + prop:"zmcl", + slot:true, + display:false + }, + { + label: '教材名称', + prop: 'materialName', + rules: [{ + required: true, + message: '请填写教材名称', + trigger: 'blur' + }] + }, + { + label: '教材类别', + prop: 'materialConfigId', + type: 'select', + dicUrl: '/professional/professionalteachingmaterialconfig/getTeachingMaterialList', + props:{ + label:'typeName', + value:'id' + }, + rules: [{ + required: true, + message: '请选择类别', + trigger: 'blur' + }] + }, + { + label: '主编', + prop: 'editor', + rules: [{ + required: true, + message: '请填写主编', + trigger: 'blur' + }] + }, + { + label: '副主编', + prop: 'secondEditor' + }, + { + label: '参编', + prop: 'joinEditor' + }, + { + label: '编写字数(千字)', + prop: 'words' + }, + { + label: '出版单位', + prop: 'publishCompany' + }, + { + label: '出版时间', + prop: 'publishTime', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss' + }, + { + label: '备注', + prop: 'remarks', + }, + { + label:'*教材封面', + prop:"mateCover", + formslot:true, + hide:true, + }, + { + label:'*出版页', + prop:"pubImg", + formslot:true, + hide:true + }, + ] +} + +export const teacherTopicListOption = { + border: true, + index: true, + indexLabel: '序号', + menu:false, + + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + dialogHeight:700, + dialogWidth:"90%", + labelWidth:150, + column: [ + { + label:'证明材料', + prop:"zmcl", + slot:true, + display:false + }, + { + label: '课题所属部门', + prop: 'deptCode', + rules: [{ + required: true, + message: '请填写所属部门', + trigger: 'blur' + }] + }, + { + label: '课题名称', + prop: 'topicName', + rules: [{ + required: true, + message: '请填写课题名称', + trigger: 'blur' + }] + }, + { + label: '课题负责人', + prop: 'topicLeader', + rules: [{ + required: true, + message: '请填写课题负责人', + trigger: 'blur' + }] + }, + { + label: '课题参与人', + prop: 'topicJoiner' + }, + { + label: '课题来源', + prop: 'topicSourceConfigId', + type: 'select', + dicUrl: '/professional/professionaltopicsourceconfig/getTopicSourceList', + props: { + label:'sourceName', + value:'id' + }, + rules: [{ + required: true, + message: '请选择来源', + trigger: 'blur' + }] + }, + { + label: '级别', + prop: 'topicLevelConfigId', + type: 'select', + dicUrl: '/professional/professionaltopiclevelconfig/getTopicLevelList', + props: { + label:'levelName', + value:'id' + }, + rules: [{ + required: true, + message: '请选择级别', + trigger: 'blur' + }] + }, + { + label: '结题时间', + prop: 'finishTime', + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '请选择结题时间', + trigger: 'blur' + }] + }, + { + label: '颁奖单位', + prop: 'awardingUnit' + }, + { + label: '获奖等级', + prop: 'awardingLevel' + }, + { + label: '备注', + prop: 'remarks', + hide:true + }, + { + label:'*立项申报书', + prop:"projectApp", + formslot:true, + hide:true + }, + { + label:'*结题证书', + prop:"conclusionBook", + formslot:true, + hide:true + }, + { + label:'*结题报告', + prop:"conclusionReport", + formslot:true, + hide:true + }, + + { + label:'*其他材料', + prop:"otherImg", + formslot:true, + hide:true + }, + + ] +} + +export const stationChangeOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + dic: [], + column: [ + { + label: '原部门名称', + prop: 'oldDeptName', + }, + { + label: '现部门名称', + prop: 'newDeptName' + }, + { + label: '调令日期', + prop: 'changeDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd' + }, + ] +} + +export const partyChangeOption = { + border: true, + index: true, + menu:false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '原支部名称', + prop: 'oldBranchName' + }, + { + label: '现支部名称', + prop: 'branchName' + }, + // { + // label: '党费交至几月', + // prop: 'feeTime' + // }, + { + label:'党费', + prop:"partyFee", + type:'number', + precision:2 + }, + { + label: '变动时间', + prop: 'changeTime', + type:'date', + format:'yyyy-MM-dd', + + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} + + +export const simpleTableOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + maxHeight:600, + menu:false, + column: [ + { + label: '姓名', + prop: 'realName', + + fixed: true, + }, + { + label: '工号', + prop: 'teacherNo', + }, + { + label: '手机', + prop: 'telPhone', + }, + { + label: '身份证', + prop: 'idCard', + }, + { + label: '性别', + prop: 'sex', + props:{ + label:'label', + value:'value' + }, + type:"radio", + dicUrl:'/admin/dict/item/type/sexy', + }, + { + label: '部门', + prop: 'deptName', + }, + { + label: '学历', + prop: 'dgreeName', + }, + { + label: '学位', + prop: 'dgreeNameA', + }, + { + label:'职称等级', + prop: 'pfTitleId', + type:'select', + dicUrl:`/professional/professionaltitlelevelconfig/getProfessionalTitleList`, + props:{ + label:'professionalTitle', + value:'id', + }, + }, + { + label: '岗位级别', + prop: 'stationLevelName', + }, + { + label:'职业资格等级', + prop: 'workId', + type:'select', + dicUrl:`/professional/professionalqualificationconfig/getLevelList`, + props:{ + label:'levelName', + value:'id', + } + }, + { + label:'职业资格工种', + prop: 'workName', + hide:true + }, + { + label:'教师上岗证', + prop: 'teacherCer', + }, + { + label:'中等教师资格证', + prop: 'midCer', + }, + { + label:'高校教师资格证', + prop: 'highCer', + }, + { + label: '用工性质', + prop: 'employmentNature', + type: 'select', + dicUrl:`/professional/professionalemploymentnature/getEmploymentNatureList`, + props:{ + label:'employmentNatureName', + value:'id', + }, + }, + { + label: '岗位类别', + prop: 'stationTypeId', + type: 'select', + dicUrl:`/professional/professionalstationtype/getStationTypeList`, + props:{ + label:'typeName', + value:'id', + }, + }, + { + label:'任现岗位职级时间', + prop: 'stationDate', + }, + + ] + +} + diff --git a/src/const/crud/professional/teacherbasefordialog.js b/src/const/crud/professional/teacherbasefordialog.js new file mode 100644 index 0000000..048857d --- /dev/null +++ b/src/const/crud/professional/teacherbasefordialog.js @@ -0,0 +1,508 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + + + +//学历 +import global from "@/components/tools/commondict"; + +export const educationOptionForDialog={ + labelWidth: 120, + column: [{ + label:'毕业时间', + prop: 'graduateTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + message: '请输入毕业时间', + trigger: 'blur' + } + ] + }, + { + label: '教育类型', + prop: 'type', + props:{ + label:'name', + value:'id' + }, + type:"select", + dicUrl:'/professional/professionalacademiceducationtypeconfig/getAllTypeList', + rules: [ + { + required: true, + message: '请选择教育类型', + trigger: 'blur' + } + ] + }, + { + label:'学历', + prop: 'qualificationConfigId', + type:'select', + dicUrl:'/professional/academicqualificationsconfig/getQualificationList', + props:{ + label:'qualificationName', + value:'id', + } + }, + { + label:'学位', + prop: 'degreeConfigId', + type:'select', + dicUrl:'/professional/professionalacademicdegreeconfig/getDegreeList', + props:{ + label:'degreeName', + value:'id', + } + + }, + { + label:'毕业学校', + prop: 'graduateSchool', + rules: [ + { + required: true, + message: '请输入毕业学校', + trigger: 'blur' + } + ] + }, + { + label:'所学专业', + prop: 'major', + rules: [ + { + required: true, + message: '请输入所学专业', + trigger: 'blur' + } + ] + }, + { + label:'证书编码', + prop: 'certificateNumber', + row:true, + span:24, + rules: [ + { + required: true, + message: '请输入证书编码', + trigger: 'blur' + } + ] + }, + { + label:'学历证书', + prop: 'materialA', + formslot:true + }, + { + label:'学位证书', + prop: 'materialB', + formslot:true, + }, + ] +} + + +//职称 +export const proOptionForDialog={ + labelWidth: 120, + column: [ + { + label:'职称等级', + prop: 'professionalTitleConfigId', + formslot:true, + rules: [ + { + required: true, + message: '请选择职称等级', + trigger: 'blur' + } + ] + }, + { + label:'专业技术职务', + prop: 'majorStation', + formslot:true, + rules: [ + { + required: true, + message: '请选择专业技术职务', + trigger: 'blur' + } + ] + }, + { + label:'取证时间', + prop: 'certificateTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + message: '请选择取证时间', + trigger: 'blur' + } + ] + + }, + { + label:'职称任职时间', + prop: 'inOfficeDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss' + + }, + { + label:'证书编号', + prop: 'certificateNumber', + rules: [ + { + required: true, + message: '请输入证书编号', + trigger: 'blur' + } + ] + }, + { + label:'证明材料', + prop: 'materialA', + formslot:true + }, + ] +} + +//职业 +export const workOptionForDialog={ + labelWidth: 120, + column: [ + + { + label:'职业工种', + prop: 'worker', + formslot:true, + rules: [ + { + required: true, + message: '请选择职业工种', + trigger: 'blur' + } + ] + }, + { + label:'等级', + prop: 'qualificationConfigId', + formslot:true, + rules: [ + { + required: true, + message: '请选择等级', + trigger: 'blur' + } + ] + }, + { + label:'取证时间', + prop: 'certificateTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + message: '请选择取证时间', + trigger: 'blur' + } + ] + + }, + { + label:'证书编号', + prop: 'certificateNumber', + rules: [ + { + required: true, + message: '请输入证书编号', + trigger: 'blur' + } + ] + }, + { + label:'材料1', + prop: 'materialA', + formslot:true + }, + // { + // label:'材料2', + // prop: 'materialB', + // formslot:true, + // }, + // { + // label:'材料3', + // prop: 'materialC', + // formslot:true, + // }, + ] +} + + +//教师资格证 +export const teacherCertificate ={ + labelWidth: 120, + column: [ + + { + label:'类型', + prop: 'certificateConfId', + type:'select', + dicUrl:'/professional/professionalteachercertificateconf/getTeacherCertificateList', + props:{ + label:'cretificateName', + value:'id', + }, + rules: [ + { + required: true, + message: '请选择学历', + trigger: 'blur' + } + ] + }, + { + label:'证书编号', + prop: 'certificateNumber', + rules: [ + { + required: true, + message: '请输入证书编号', + trigger: 'blur' + } + ] + }, + { + label:'证明材料', + prop: 'materialA', + formslot:true + }, + // { + // label:'证明材料2', + // prop: 'materialB', + // formslot:true + // }, + ] +} + +//荣誉 +export const honorForDialog = { + labelWidth: 120, + column: [ + { + label: '荣誉', + prop: 'honor', + rules: [ + { + required: true, + message: '请填写荣誉', + trigger: 'blur' + } + ] + }, + { + label: '表彰单位', + prop: 'honorCompany', + rules: [ + { + required: true, + message: '请填写表彰单位', + trigger: 'blur' + } + ] + }, + { + label: '年份', + prop: 'year', + type: 'year', + format:'yyyy', + valueFormat:'yyyy', + rules: [ + { + required: true, + message: '请输入年份', + trigger: 'blur' + } + ] + }, + { + label: '证明材料', + prop: 'materialA', + formslot:true + }, + ] +} + +//人员调动 +export const stationChangeDialog = { + labelWidth: 120, + column: [ + { + label: '工号', + prop: 'teacherNo', + formslot:true, + }, + { + label: '姓名', + prop: 'realName', + formslot:true + }, + { + label: '原部门名称', + prop: 'deptCode', + row:true, + formslot:true, + }, + { + label: '现二级部门*', + prop:'newDeptCode', + formslot:true, + + }, + { + label: '现子级部门', + prop:'newSecDeptCode', + formslot:true + + }, + { + label: '调令日期', + prop: 'changeDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [ + { + required: true, + message: '请选择日期', + trigger: 'blur' + } + ] + + }, + { + label: '岗位类型', + prop: 'pos', + type:'select', + dicData:global.STATION_TYPE, + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + message: '请选择岗位类型', + trigger: 'blur' + } + ] + + }, + { + label: '备注', + prop: 'remarks', + type:"textarea", + span:24, + }, + ] + } + +//党员调动 +export const partChangeOption = { + column: [ + { + label: '工号', + prop: 'teacherNo', + formslot:true + }, + { + label: '用户名', + prop: 'realName', + formslot:true + }, + { + label: '原支部名', + prop: 'oldBranchName', + formslot:true, + }, + { + label: '现支部名', + prop: 'branchName', + formslot:true, + rules: [ + { + required: true, + message: '请选择现支部', + trigger: 'blur' + } + ] + }, + // { + // label: '党费交至几月', + // prop: 'feeTime', + // type:'month', + // format:'yyyy-MM', + // valueFormat:'yyyy-MM-dd HH:mm:ss', + // rules: [ + // { + // required: true, + // message: '请选择时间', + // trigger: 'blur' + // } + // ] + // }, + { + label:'党费', + prop:"partyFee", + type:'number', + precision:2 + }, + { + label: '变动时间', + prop: 'changeTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + message: '请选择变动时间', + trigger: 'blur' + } + ] + }, + { + label: '备注', + prop: 'remarks', + type:'text' + }, + ] +} diff --git a/src/const/crud/professional/teacherpayslip.js b/src/const/crud/professional/teacherpayslip.js new file mode 100755 index 0000000..9a6292d --- /dev/null +++ b/src/const/crud/professional/teacherpayslip.js @@ -0,0 +1,382 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection:true, + column: [ + { + label: '编号', + prop: 'numId' + }, + { + label: '工号', + prop: 'teacherNo', + search:true + }, + { + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '岗位工资', + prop: 'postSalary' + }, + + { + label: '年份', + prop: 'nf', + search:true, + type:'year', + format:'yyyy', + valueFormat:'yyyy' + }, + { + label: '月份', + prop: 'yf', + search:true, + type:'month', + format:'M', + valueFormat:'M' + }, + { + label: '岗位类别', + prop: 'stationTypeId', + hide:true, + }, + { + label: '身份证号', + prop: 'idCard', + search:true + }, + // { + // label: '培训兼课金', + // prop: 'trainPool', + // cell:true, + // width:140, + // type:'number', + // precision:2 + // }, + // { + // label: '其他收入(一)', + // prop: 'otherIncome1', + // cell:true, + // width:140, + // type:'number', + // precision:2 + // }, + // { + // label: '科研经', + // prop: 'scienceMoney', + // cell:true, + // type:'number', + // width:140, + // precision:2 + // }, + // { + // label: '其他收入(二)', + // prop: 'otherIncome2', + // type:'number', + // width:140, + // precision:2 + // }, + // { + // label: '其他扣款', + // prop: 'otherDeduction' + // }, + // { + // label: '累计减除费用', + // prop: 'deductionCost' + // }, + { + label: '应发工资', + prop: 'shouldPay' + }, + { + label: '实发工资', + prop: 'realWage', + width:110, + precision:2 + }, + { + label: '职工查看', + prop: 'normalView', + type: 'select', + dicUrl:'/admin/dict/item/type/salary_search', + props:{ + label:'label', + value:'value' + } + }, + // { + // label: '薪级工资', + // prop: 'payWage' + // }, + // { + // label: '见习期工资', + // prop: 'studentPay' + // }, + // { + // label: '生活补贴', + // prop: 'liveAllowance' + // }, + // { + // label: '岗位津贴', + // prop: 'postAllowance' + // }, + // { + // label: '住房(租金)补贴', + // prop: 'houseSubsidies' + // }, + // { + // label: '新职工住房补贴', + // prop: 'newHouseSubsidies' + // }, + // { + // label: '回民补贴', + // prop: 'huiSubsidies' + // }, + // { + // label: '养老保险补贴', + // prop: 'oldSubsidies' + // }, + // { + // label: '教龄津贴', + // prop: 'ageAllowance' + // }, + // { + // label: '特教补贴', + // prop: 'specialSubsidies' + // }, + // { + // label: '特级教师津贴', + // prop: 'teacherAllowance' + // }, + // { + // label: '特岗津贴(一)', + // prop: 'sPostAllowance1' + // }, + // { + // label: '特岗津贴(二)', + // prop: 'sPostAllowance2' + // }, + // { + // label: '其他', + // prop: 'other' + // }, + // { + // label: '奖励性绩效工资', + // prop: 'meritPay' + // }, + // { + // label: '乡镇工作补贴', + // prop: 'villageSubsidies' + // }, + // { + // label: '临时性补贴', + // prop: 'temporarySubsidies' + // }, + // { + // label: '上下班交通补贴', + // prop: 'trafficSubsidies' + // }, + // { + // label: '保留津贴', + // prop: 'keepAllowance' + // }, + // { + // label: '补发工资', + // prop: 'retroactivePay' + // }, + // { + // label: '应发工资', + // prop: 'shouldPay' + // }, + // { + // label: '住房公积金', + // prop: 'houseFund' + // }, + // { + // label: '医疗保险金', + // prop: 'medicalInsurance' + // }, + // { + // label: '失业保险金', + // prop: 'unemployInsurance' + // }, + // { + // label: '养老保险金', + // prop: 'endowInsurance' + // }, + // { + // label: '工会费', + // prop: 'unionFee' + // }, + // { + // label: '儿童统筹', + // prop: 'childrenWhole' + // }, + // { + // label: '个人所得税', + // prop: 'personalTax' + // }, + // + // { + // label: '病事假扣款', + // prop: 'sickDeduction' + // }, + // { + // label: '医疗救助基金', + // prop: 'medicalFund' + // }, + // { + // label: '工伤', + // prop: 'inductrialInjury' + // }, + // { + // label: '个人补缴', + // prop: 'personalPay' + // }, + // { + // label: '代扣小计', + // prop: 'withhold' + // }, + // + // { + // label: '工资收入', + // prop: 'wageIncome' + // }, + // + // + // { + // label: '五险一金', + // prop: 'insurance' + // }, + // { + // label: '其他扣款2', + // prop: 'otherDeduction2' + // }, + // + // { + // label: '备注', + // prop: 'remark' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '创建者', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createDate' + // }, + // { + // label: '更新者', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateDate' + // }, + // + // { + // label: '导入序号', + // prop: 'numId' + // }, + // { + // label: '子女教育', + // prop: 'childEdu' + // }, + // { + // label: '继续教育', + // prop: 'conEdu' + // }, + // { + // label: '大病医疗', + // prop: 'sickMedical' + // }, + // { + // label: '住房贷款利息或者住房租金', + // prop: 'house' + // }, + // { + // label: '赡养老人', + // prop: 'supportOld' + // }, + // { + // label: '累计住房贷款利息', + // prop: 'houseInterest' + // }, + + ] +} + + +export const normalTableOption= JSON.parse(JSON.stringify(tableOption)) +normalTableOption.cellBtn=false + +//金额修正 +export const moneyOption={ + keyId:'id', + addBtn:false, + editBtn:false, + addRowBtn:false, + delRowBtn:false, + cellBtn:true, + column: [ + { + label:'姓名', + prop: 'realName', + }, + { + label:'身份证', + prop: 'idCard', + }, + { + label:'金额', + prop: 'money', + cell: true, + rules: [ + { + required: true, + message: '请输入金额', + trigger: 'blur' + } + ] + }, + { + label:'年份', + prop: 'year', + }, + { + label:'月份', + prop: 'month', + }, + ] +} diff --git a/src/const/crud/professional/teachersalary.js b/src/const/crud/professional/teachersalary.js new file mode 100755 index 0000000..9a6292d --- /dev/null +++ b/src/const/crud/professional/teachersalary.js @@ -0,0 +1,382 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: false, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection:true, + column: [ + { + label: '编号', + prop: 'numId' + }, + { + label: '工号', + prop: 'teacherNo', + search:true + }, + { + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '岗位工资', + prop: 'postSalary' + }, + + { + label: '年份', + prop: 'nf', + search:true, + type:'year', + format:'yyyy', + valueFormat:'yyyy' + }, + { + label: '月份', + prop: 'yf', + search:true, + type:'month', + format:'M', + valueFormat:'M' + }, + { + label: '岗位类别', + prop: 'stationTypeId', + hide:true, + }, + { + label: '身份证号', + prop: 'idCard', + search:true + }, + // { + // label: '培训兼课金', + // prop: 'trainPool', + // cell:true, + // width:140, + // type:'number', + // precision:2 + // }, + // { + // label: '其他收入(一)', + // prop: 'otherIncome1', + // cell:true, + // width:140, + // type:'number', + // precision:2 + // }, + // { + // label: '科研经', + // prop: 'scienceMoney', + // cell:true, + // type:'number', + // width:140, + // precision:2 + // }, + // { + // label: '其他收入(二)', + // prop: 'otherIncome2', + // type:'number', + // width:140, + // precision:2 + // }, + // { + // label: '其他扣款', + // prop: 'otherDeduction' + // }, + // { + // label: '累计减除费用', + // prop: 'deductionCost' + // }, + { + label: '应发工资', + prop: 'shouldPay' + }, + { + label: '实发工资', + prop: 'realWage', + width:110, + precision:2 + }, + { + label: '职工查看', + prop: 'normalView', + type: 'select', + dicUrl:'/admin/dict/item/type/salary_search', + props:{ + label:'label', + value:'value' + } + }, + // { + // label: '薪级工资', + // prop: 'payWage' + // }, + // { + // label: '见习期工资', + // prop: 'studentPay' + // }, + // { + // label: '生活补贴', + // prop: 'liveAllowance' + // }, + // { + // label: '岗位津贴', + // prop: 'postAllowance' + // }, + // { + // label: '住房(租金)补贴', + // prop: 'houseSubsidies' + // }, + // { + // label: '新职工住房补贴', + // prop: 'newHouseSubsidies' + // }, + // { + // label: '回民补贴', + // prop: 'huiSubsidies' + // }, + // { + // label: '养老保险补贴', + // prop: 'oldSubsidies' + // }, + // { + // label: '教龄津贴', + // prop: 'ageAllowance' + // }, + // { + // label: '特教补贴', + // prop: 'specialSubsidies' + // }, + // { + // label: '特级教师津贴', + // prop: 'teacherAllowance' + // }, + // { + // label: '特岗津贴(一)', + // prop: 'sPostAllowance1' + // }, + // { + // label: '特岗津贴(二)', + // prop: 'sPostAllowance2' + // }, + // { + // label: '其他', + // prop: 'other' + // }, + // { + // label: '奖励性绩效工资', + // prop: 'meritPay' + // }, + // { + // label: '乡镇工作补贴', + // prop: 'villageSubsidies' + // }, + // { + // label: '临时性补贴', + // prop: 'temporarySubsidies' + // }, + // { + // label: '上下班交通补贴', + // prop: 'trafficSubsidies' + // }, + // { + // label: '保留津贴', + // prop: 'keepAllowance' + // }, + // { + // label: '补发工资', + // prop: 'retroactivePay' + // }, + // { + // label: '应发工资', + // prop: 'shouldPay' + // }, + // { + // label: '住房公积金', + // prop: 'houseFund' + // }, + // { + // label: '医疗保险金', + // prop: 'medicalInsurance' + // }, + // { + // label: '失业保险金', + // prop: 'unemployInsurance' + // }, + // { + // label: '养老保险金', + // prop: 'endowInsurance' + // }, + // { + // label: '工会费', + // prop: 'unionFee' + // }, + // { + // label: '儿童统筹', + // prop: 'childrenWhole' + // }, + // { + // label: '个人所得税', + // prop: 'personalTax' + // }, + // + // { + // label: '病事假扣款', + // prop: 'sickDeduction' + // }, + // { + // label: '医疗救助基金', + // prop: 'medicalFund' + // }, + // { + // label: '工伤', + // prop: 'inductrialInjury' + // }, + // { + // label: '个人补缴', + // prop: 'personalPay' + // }, + // { + // label: '代扣小计', + // prop: 'withhold' + // }, + // + // { + // label: '工资收入', + // prop: 'wageIncome' + // }, + // + // + // { + // label: '五险一金', + // prop: 'insurance' + // }, + // { + // label: '其他扣款2', + // prop: 'otherDeduction2' + // }, + // + // { + // label: '备注', + // prop: 'remark' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '创建者', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createDate' + // }, + // { + // label: '更新者', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateDate' + // }, + // + // { + // label: '导入序号', + // prop: 'numId' + // }, + // { + // label: '子女教育', + // prop: 'childEdu' + // }, + // { + // label: '继续教育', + // prop: 'conEdu' + // }, + // { + // label: '大病医疗', + // prop: 'sickMedical' + // }, + // { + // label: '住房贷款利息或者住房租金', + // prop: 'house' + // }, + // { + // label: '赡养老人', + // prop: 'supportOld' + // }, + // { + // label: '累计住房贷款利息', + // prop: 'houseInterest' + // }, + + ] +} + + +export const normalTableOption= JSON.parse(JSON.stringify(tableOption)) +normalTableOption.cellBtn=false + +//金额修正 +export const moneyOption={ + keyId:'id', + addBtn:false, + editBtn:false, + addRowBtn:false, + delRowBtn:false, + cellBtn:true, + column: [ + { + label:'姓名', + prop: 'realName', + }, + { + label:'身份证', + prop: 'idCard', + }, + { + label:'金额', + prop: 'money', + cell: true, + rules: [ + { + required: true, + message: '请输入金额', + trigger: 'blur' + } + ] + }, + { + label:'年份', + prop: 'year', + }, + { + label:'月份', + prop: 'month', + }, + ] +} diff --git a/src/const/crud/professional/teachersalarytax.js b/src/const/crud/professional/teachersalarytax.js new file mode 100644 index 0000000..88618e5 --- /dev/null +++ b/src/const/crud/professional/teachersalarytax.js @@ -0,0 +1,135 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '', + prop: 'teacherNo' + }, + { + label: '本期总收入', + prop: 'currentIncome' + }, + { + label: '累计收入', + prop: 'totalIncome' + }, + { + label: '累计减除费用', + prop: 'totalDeduction' + }, + { + label: '累计专项扣除', + prop: 'totalSpecialDecution' + }, + { + label: '累计子女教育', + prop: 'totalChildEdu' + }, + { + label: '累计继续教育', + prop: 'totalConEdu' + }, + { + label: '累计住房贷款利息', + prop: 'totalHouseinterest' + }, + { + label: '累计住房租金', + prop: 'totalHouse' + }, + { + label: '累计赡养老人', + prop: 'totalSupportOld' + }, + { + label: '累计3岁以下婴幼儿照护', + prop: 'totalBabyMoney' + }, + { + label: '累计应纳税所得额', + prop: 'totalTaxMoney' + }, + { + label: '税率', + prop: 'taxRate' + }, + { + label: '速算扣除数', + prop: 'quickDecution' + }, + { + label: '累计应纳税额', + prop: 'totalTaxPay' + }, + { + label: '累计应扣缴税额', + prop: 'totalRealTaxPay' + }, + { + label: '累计已预缴税额', + prop: 'totalPrePayTax' + }, + { + label: '累计应补(退)税额', + prop: 'totalRetrieveTax' + }, + { + label: '年份', + prop: 'nf' + }, + { + label: '月份', + prop: 'yf' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '创建者', + prop: 'createBy' + }, + { + label: '更新者', + prop: 'updateBy' + }, + ] +} diff --git a/src/const/crud/professional/teachertravel.js b/src/const/crud/professional/teachertravel.js new file mode 100644 index 0000000..cfe37c6 --- /dev/null +++ b/src/const/crud/professional/teachertravel.js @@ -0,0 +1,424 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const YES_OR_NO=[ + { + label:'是', + value:'1' + }, + { + label:'否', + value:'0' + } +] +const ROLE_TYPE=[ + { + label:'教职工', + value:'1' + }, + { + label:'学生', + value:'2' + }, + { + label:'校外人员', + value:'3' + }, +] + +const NUCLE_TYPE=[ + { + label:'待指定核酸类型', + value:'0' + }, + { + label:'不需要', + value:'1' + }, + { + label:'三天两检', + value:'2' + }, + { + label:'七天五检', + value:'3' + }, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '姓名', + prop: 'teacherNo', + labelWidth:120, + addDisplay:false, + editDisplay:false, + hide:true, + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择姓名" + }] + }, + { + label: '姓名', + prop: 'realName', + search:true, + // hide:true, + addDisplay:false, + editDisplay:false, + }, + { + label: '归属部门', + prop: 'deptCode', + search:true, + addDisplay:false, + editDisplay:false, + slot: true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?deptLevel=2', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '身份证号', + prop: 'idCard', + addDisplay:false, + editDisplay:false, + hide:true + }, + { + label: '联系电话', + prop: 'telPhone', + editDisabled:true, + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入联系电话" + }] + }, + { + label: '出行原因', + prop: 'travelReason', + labelWidth:120, + editDisabled:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入出行原因" + }] + }, + { + label: '目的地', + prop: 'destination', + search:true, + labelWidth:120, + editDisabled:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入目的地" + }] + }, + { + label: '出行交通工具', + prop: 'tripVehicle', + addDisplay:false, + editDisplay:false, + }, + { + label: '返程交通工具', + prop: 'returnVehicle', + addDisplay:false, + editDisplay:false, + }, + { + label: '出行交通工具', + prop: 'teacherTravelLeaveList', + labelWidth:120, + editDisabled:true, + hide:true, + formslot: true, + }, + { + label: '返程交通工具', + prop: 'teacherTravelReturnList', + labelWidth:120, + addDisplay:false, + editDisabled:true, + hide:true, + formslot: true, + }, + { + label: '是否外省', + prop: 'isProvince', + search:true, + labelWidth:120, + editDisabled:true, + type:'select', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择是否外省" + }] + }, + // { + // label: '是否核酸检测', + // prop: 'isNat', + // search:true, + // type:'select', + // dicData:YES_OR_NO, + // props:{ + // label:'label', + // value:'value' + // }, + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请选择是否核酸检测" + // }] + // }, + // { + // label: '核酸检测情况', + // prop: 'natState', + // }, + + { + label: '开始时间', + prop: 'startTime', + labelWidth:120, + editDisabled:true, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入开始时间" + }] + }, + { + label: '结束时间', + prop: 'endTime', + editDisabled:true, + labelWidth:120, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入结束时间" + }] + }, + { + label: '开始时间', + prop: 'startTimeSearch', + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + valueFormat: 'yyyy-MM-dd', + }, + { + label: '结束时间', + prop: 'endTimeSearch', + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + valueFormat: 'yyyy-MM-dd', + }, + { + label: '核酸检测报告', + prop: 'attachment', + addDisplay:false, + slot: true, + formslot: true + }, + { + label: '健康码', + prop: 'heathImg', + addDisplay:false, + slot: true, + formslot: true + }, + { + label: '行程码', + prop: 'travelImg', + addDisplay:false, + slot: true, + formslot: true + }, + + { + label: '部门领导审批', + prop: 'deptApproval', + search:true, + addDisplay:false, + editDisplay:false, + type: 'select', + dicUrl: '/admin/dict/item/type/dept_approval', + props:{ + label:'label', + value:'value' + } + }, + { + label: '分管领导审批', + prop: 'leaderApproval', + search:true, + slot: true, + addDisplay:false, + editDisplay:false, + type: 'select', + dicUrl: '/admin/dict/item/type/dept_approval', + props:{ + label:'label', + value:'value' + } + }, + // { + // label: '审核状态', + // prop: 'auditStatus', + // addDisplay:false, + // editDisplay:false, + // hide:true, + // search:true, + // type: 'select', + // dicUrl: '/admin/dict/item/type/dept_approval', + // props:{ + // label:'label', + // value:'value' + // } + // }, + { + label: '驳回原因', + prop: 'remarks', + addDisplay:false, + editDisplay:false, + }, + { + label: '部门领导审批(返程)', + prop: 'attachmentVerify', + search:true, + addDisplay:false, + editDisplay:false, + type: 'select', + dicUrl: '/admin/dict/item/type/dept_approval', + props:{ + label:'label', + value:'value' + } + }, + { + label: '分管领导审批(返程)', + prop: 'attachmentLeaderVerify', + search:true, + addDisplay:false, + editDisplay:false, + type: 'select', + dicUrl: '/admin/dict/item/type/dept_approval', + props:{ + label:'label', + value:'value' + } + }, + { + label: '销假核酸类型', + prop: 'nucleType', + search:true, + display:false, + type:'select', + dicData:NUCLE_TYPE, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '角色类型', + prop: 'roleType', + search:true, + addDisplay:false, + editDisplay:false, + type:'select', + dicData:ROLE_TYPE, + props:{ + label:'label', + value:'value' + }, + } + ] +} diff --git a/src/const/crud/professional/typeofworkconfig.js b/src/const/crud/professional/typeofworkconfig.js new file mode 100755 index 0000000..fbfa71f --- /dev/null +++ b/src/const/crud/professional/typeofworkconfig.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + { + label: '工种名字', + prop: 'workTitle' + }, + { + label: '更新时间', + prop: 'updateTime', + addDisplay:false, + editDisplay:false + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/qualityReport/qualityReport.js b/src/const/crud/qualityReport/qualityReport.js new file mode 100644 index 0000000..57b5c70 --- /dev/null +++ b/src/const/crud/qualityReport/qualityReport.js @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" +import {CURRENT_SCHOOL_TERM, CURRENT_SCHOOL_YEAR} from "@/config/global"; +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menu:true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + searchBtn:false, + refreshBtn:false, + columnBtn:false, + dic: [], + column: [ + { + label:'学院', + prop: 'deptCode', + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + search:true + }, + { + label: '学号', + prop: 'stuNo', + search:true + },{ + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '班级', + prop: 'classCode', + slot: true, + type: 'select', + hide: true, + }, + { + label: '评语', + prop: 'comment', + slot:true + }, + { + label: '家长寄语', + prop: 'parentalMsg', + slot:true + }, + { + label: '学年', + prop: 'schoolYear', + type: 'select', + slot: true, + hide: true + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + slot: true, + hide: true + }, + ] +} diff --git a/src/const/crud/recruit/backSchoolCheckin.js b/src/const/crud/recruit/backSchoolCheckin.js new file mode 100644 index 0000000..8111b65 --- /dev/null +++ b/src/const/crud/recruit/backSchoolCheckin.js @@ -0,0 +1,223 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +export const YES_OR_NO=[ + { + label:'否', + value:'0' + }, + { + label:'是', + value:'1' + } +] +export const gender_type=[ + { + label:'女', + value:'0' + }, + { + label:'男', + value:'1' + } +] + +export const door_list=[ + { + label:'校门东', + value:'0' + }, + { + label:'校门南', + value:'1' + }, + { + label:'校门西', + value:'2' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + menu:false, + column: [ + { + label: '唯一号', + prop: 'serialNumber' + }, + { + label: '学院', + prop: 'deptCode', + hide:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '学院', + prop: 'deptName' + }, + { + label: '录取专业', + prop: 'confirmedMajor', + type:"select", + slot: true + }, + { + label: '入学年份', + prop: 'grade', + hide:true, + type:"select", + dicUrl: '/recruit/recruitstudentplangroup/list', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + message: "请填写年级", + trigger: "blur" + }] + }, + { + label: '班级', + prop: 'classCode', + width:60, + searchFilterable:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName', + width:70, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入姓名" + }] + }, + { + label: '姓名/身份证号/家庭联系人', + prop: 'searchTotal', + hide:true + }, + { + label: '操作', + prop: 'delFlag', + slot: true, + }, + { + label: '性别', + prop: 'gender', + width:50, + type:'radio', + dicData:gender_type, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择性别" + }] + }, + { + label: '身份证号', + prop: 'idCard', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入身份证号" + }] + }, + { + label: '报到状态', + prop: 'checkInStatus', + type:'select', + dicUrl:'/admin/dict/item/type/check_in_status', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择报到状态" + }] + }, + { + label: '文化程度', + prop: 'education', + addDisplay:false, + editDisplay:false, + type: 'select', + dicUrl: '/admin/dict/item/type/pre_school_education', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '居住地址', + prop: 'liveAddress', + addDisplay:false, + editDisplay:false + }, + { + label: '家庭联系人', + prop: 'homeContactName', + addDisplay:false, + editDisplay:false + }, + { + label: '家长电话1', + prop: 'homeTelOne', + addDisplay:false, + editDisplay:false + }, + { + label: '家长电话2', + prop: 'homeTelTwo', + addDisplay:false, + editDisplay:false + }, + { + label: '备注', + prop: 'remarks', + }, + ] +} diff --git a/src/const/crud/recruit/newstucheckin.js b/src/const/crud/recruit/newstucheckin.js new file mode 100644 index 0000000..2d562c3 --- /dev/null +++ b/src/const/crud/recruit/newstucheckin.js @@ -0,0 +1,285 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +export const YES_OR_NO=[ + { + label:'否', + value:'0' + }, + { + label:'是', + value:'1' + } +] +export const gender_type=[ + { + label:'女', + value:'2' + }, + { + label:'男', + value:'1' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + menu:false, + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + + { + label: '学院', + prop: 'deptCode', + search:true, + hide:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '学院', + prop: 'xy', + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '入学年份', + prop: 'grade', + hide:true, + search:true, + type:"select", + dicUrl: '/recruit/recruitstudentplangroup/list', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + message: "请填写年级", + trigger: "blur" + }] + }, + { + label: '班级', + prop: 'classCode', + width:60, + search:true, + searchFilterable:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'name', + width:70, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入姓名" + }] + }, + { + label: '操作', + prop: 'delFlag', + slot: true, + }, + { + label: '性别', + prop: 'gender', + width:50, + type:'radio', + dicData:gender_type, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择性别" + }] + }, + { + label: '身份证号', + prop: 'idNumber', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入身份证号" + }] + }, + { + label: '报到状态', + prop: 'checkInStatus', + search:true, + // formslot: true, + type:'select', + dicUrl:'/admin/dict/item/type/check_in_status', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择报到状态" + }] + }, + { + label: '住宿申请', + prop: 'isDormApply', + slot: true, + type:'radio', + search:true, + dicData:[{ + label:'未通过', + value:'0' + }, + { + label:'申请通过', + value:'1' + }], + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择是否住宿" + }] + }, + { + label: '是否住宿', + prop: 'isRoom', + // formslot: true, + type:'radio', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择是否住宿" + }] + }, + { + label: '宿舍号', + prop: 'roomNo', + width:60, + formslot: true + }, + { + label: '床位号', + prop: 'bedNo', + width:60, + formslot: true + }, + { + label: '文化程度', + prop: 'degreeOfEducation', + addDisplay:false, + editDisplay:false, + type: 'select', + dicUrl: '/admin/dict/item/type/finance_student_source', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '居住地址', + prop: 'residenceDetail', + addDisplay:false, + editDisplay:false + }, + { + label: '家庭联系人', + prop: 'parentName', + addDisplay:false, + editDisplay:false + }, + { + label: '家长电话1', + prop: 'parentTelOne', + addDisplay:false, + editDisplay:false + }, + { + label: '家长电话2', + prop: 'parentTelTwo', + addDisplay:false, + editDisplay:false + }, + { + label: '备注', + prop: 'remarks', + }, + ] +} diff --git a/src/const/crud/recruit/recruitexampeople.js b/src/const/crud/recruit/recruitexampeople.js new file mode 100644 index 0000000..012a74e --- /dev/null +++ b/src/const/crud/recruit/recruitexampeople.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '工号', + prop: 'teacherNo', + labelWidth:120, + }, + { + label: '姓名', + prop: 'teacherName', + labelWidth:120, + } + ] +} diff --git a/src/const/crud/recruit/recruitplanmajor.js b/src/const/crud/recruit/recruitplanmajor.js new file mode 100644 index 0000000..ec77ce7 --- /dev/null +++ b/src/const/crud/recruit/recruitplanmajor.js @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const YES_OR_NO=[ + { + label:'否', + value:'0' + }, + { + label:'是', + value:'1' + } + +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '编号', + prop: 'id', + hide:true + }, + { + label: '所属计划', + prop: 'groupId', + type: 'select', + dicUrl: '/recruit/recruitstudentplangroup/list', + props:{ + label:'groupName', + value:'id' + }, + search:true + }, + { + label: '专业代码', + prop: 'zydm', + search:true + }, + { + label: '专业名称', + prop: 'zymc', + search:true + }, + { + label: '专业规范名称', + prop: 'zygfmc' + }, + { + label: '系部', + prop: 'deptCode', + span: 12, + labelWidth: 80, + width: 120, + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: "请填写部门名称", + trigger: "blur" + }] + }, + { + label: '学制', + prop: 'xz' + }, + { + label: '层次', + prop: 'cc' + }, + { + label: '订单班', + prop: 'isOrder', + type:'switch', + slot:true, + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '中德班', + prop: 'isZd' + }, + { + label: '色盲不可录', + prop: 'sm' + }, + { + label: '正式的专业代码', + prop: 'offcialZydm' + }, + ] +} diff --git a/src/const/crud/recruit/recruitstudentplan.js b/src/const/crud/recruit/recruitstudentplan.js new file mode 100644 index 0000000..f13aced --- /dev/null +++ b/src/const/crud/recruit/recruitstudentplan.js @@ -0,0 +1,142 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '编号', + prop: 'id', + hide:true + }, + { + label: '创建者', + prop: 'createBy', + hide:true + }, + { + label: '创建时间', + prop: 'createDate', + hide:true + }, + { + label: '更新者', + prop: 'updateBy', + hide:true + }, + { + label: '更新时间', + prop: 'updateDate', + hide:true + }, + { + label: '备注信息', + prop: 'remarks' + }, + { + label: '删除标记', + prop: 'delFlag', + hide:true + }, + { + label: '', + prop: 'groupId', + hide:true + }, + { + label: '专业代码', + prop: 'zydm' + }, + { + label: '系部', + prop: 'xy' + }, + { + label: '拟招人数(不限男女)和拟招男女生数互斥', + prop: 'needStudentNum' + }, + { + label: '拟招男生数', + prop: 'needStudentBoyNum' + }, + { + label: '拟招女生数', + prop: 'needStudentGirlNum' + }, + { + label: '拟招过载人数(不限男女) 和拟招过载男女生数互斥', + prop: 'needStudentOverNum' + }, + { + label: '拟招过载男生数', + prop: 'needStudentOverBoyNum' + }, + { + label: '拟招过载女生数', + prop: 'needStudentOverGirlNum' + }, + { + label: '录取分数线', + prop: 'scoreLine' + }, + { + label: '最低录取分数线', + prop: 'scoreMinLine' + }, + { + label: '计划招生人数(不限男女)', + prop: 'planStudentNum' + }, + { + label: '计划招生男生数', + prop: 'planStudentBoyNum' + }, + { + label: '计划招生女生数', + prop: 'planStudentGirlNum' + }, + { + label: '生源', + prop: 'degreeOfEducation' + }, + { + label: '捐资助学费配置', + prop: 'scoreFeeConf' + }, + { + label: '学费配置,和生源对应', + prop: 'tuition' + }, + { + label: '', + prop: 'isSelfRecruit' + }, + { + label: '', + prop: 'isSelfMajor' + }, + ] +} diff --git a/src/const/crud/recruit/recruitstudentplancorrectscoreconfig.js b/src/const/crud/recruit/recruitstudentplancorrectscoreconfig.js new file mode 100644 index 0000000..6b6b665 --- /dev/null +++ b/src/const/crud/recruit/recruitstudentplancorrectscoreconfig.js @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '编号', + prop: 'id' + }, + { + label: '创建者', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createDate' + }, + { + label: '更新者', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateDate' + }, + { + label: '备注信息', + prop: 'remarks' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '招生计划ID', + prop: 'groupId' + }, + { + label: '地区代码', + prop: 'regionId' + }, + { + label: '地区名称', + prop: 'regionName' + }, + { + label: '当地满分', + prop: 'fullScore' + }, + ] +} diff --git a/src/const/crud/recruit/recruitstudentplandegreeofeducation.js b/src/const/crud/recruit/recruitstudentplandegreeofeducation.js new file mode 100644 index 0000000..1be6ea6 --- /dev/null +++ b/src/const/crud/recruit/recruitstudentplandegreeofeducation.js @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '编号', + prop: 'id' + }, + { + label: '创建者', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createDate' + }, + { + label: '更新者', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateDate' + }, + { + label: '备注信息', + prop: 'remarks' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '计划明细ID', + prop: 'planId' + }, + { + label: '生源', + prop: 'degreeOfEducation' + }, + ] +} diff --git a/src/const/crud/recruit/recruitstudentplangroup.js b/src/const/crud/recruit/recruitstudentplangroup.js new file mode 100644 index 0000000..3fffd18 --- /dev/null +++ b/src/const/crud/recruit/recruitstudentplangroup.js @@ -0,0 +1,192 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '编号', + prop: 'id', + hide:true, + addDisplay:false, + editDisplay:false, + }, + { + label: '招生计划名称', + prop: 'groupName', + labelWidth:120, + search:true, + rules: [{ + required: true, + message: '招生计划名称不能为空', + trigger: 'blur' + }, + { + min: 3, + max: 100, + message: '长度在 3 到 100 个字符', + trigger: 'blur' + } + ] + }, + { + label: '年份', + prop: 'year', + type: 'year', + labelWidth:120, + addDisplay:true, + editDisplay: false, + format:'yyyy', + valueFormat:'yyyy', + rules: [{ + required: true, + message: '请输入年份', + trigger: 'blur' + }] + }, + { + label: '创建时间', + prop: 'createDate', + type:'datetime', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + addDisplay:false, + editDisplay: false + }, + { + label: '报名开始时间', + prop: 'startDate', + type:'datetime', + labelWidth:120, + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + addDisplay:true, + rules: [{ + required: true, + message: '请输入报名开始时间', + trigger: 'blur' + }] + }, + { + label: '报名截止时间', + prop: 'endDate', + type:'datetime', + labelWidth:120, + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + addDisplay:true, + rules: [{ + required: true, + message: '请输入报名截止时间', + trigger: 'blur' + }] + }, + { + label: '维护开始时间', + prop: 'maintenanceStartDate', + type:'datetime', + labelWidth:120, + editDisplay: false, + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + addDisplay:true, + rules: [{ + required: true, + message: '请输入报名截止时间', + trigger: 'blur' + }] + }, + { + label: '维护结束时间', + prop: 'maintenanceEndDate', + type:'datetime', + labelWidth:120, + editDisplay: false, + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + addDisplay:true, + rules: [{ + required: true, + message: '请输入报名截止时间', + trigger: 'blur' + }] + }, + { + label: '代办费', + prop: 'feeAgency', + type:'number', + labelWidth:120, + precision:0, + rules: [{ + required: true, + message: '请输入代办费', + trigger: 'blur' + }] + }, + { + label: '初中生报名', + prop: 'czSignStart', + labelWidth:120, + editDisplay: true, + addDisplay: false, + type:"select", + dicUrl: '/admin/dict/item/type/yes_no', + rules: [{ + required: true, + message: '请输入初中生报名', + trigger: 'blur' + }] + }, + { + label: '高中生报名', + prop: 'gzSignStart', + labelWidth:120, + editDisplay: true, + addDisplay: false, + type:"select", + dicUrl: '/admin/dict/item/type/yes_no', + rules: [{ + required: true, + message: '请输入高中生报名', + trigger: 'blur' + }] + }, + { + label: '技职校报名', + prop: 'jzxSignStart', + labelWidth:120, + editDisplay: true, + addDisplay: false, + type:"select", + dicUrl: '/admin/dict/item/type/yes_no', + rules: [{ + required: true, + message: '请输入技职校报名', + trigger: 'blur' + }] + }, + ] +} diff --git a/src/const/crud/recruit/recruitstudentschool.js b/src/const/crud/recruit/recruitstudentschool.js new file mode 100644 index 0000000..e45ec58 --- /dev/null +++ b/src/const/crud/recruit/recruitstudentschool.js @@ -0,0 +1,123 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '编号', + prop: 'id' + }, + { + label: '所属招生计划分组', + prop: 'groupId' + }, + { + label: '学校名称', + prop: 'schoolName' + }, + { + label: '毕业生基数', + prop: 'schoolGraduateBase' + }, + { + label: '校长推荐名额', + prop: 'schoolLeaderRecommendNumber' + }, + { + label: '学校推荐名额', + prop: 'schoolRecommendNumber' + }, + { + label: '创建者', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createDate' + }, + { + label: '更新者', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateDate' + }, + { + label: '备注信息', + prop: 'remarks' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '校长推荐8年级下排名设置', + prop: 'schoolLeaderEightDown' + }, + { + label: '校长推荐九上排名设置', + prop: 'schoolLeaderNineUp' + }, + { + label: '校长推荐新课排名设置', + prop: 'schoolLeaderNewCourse' + }, + { + label: '学校推荐八下设置', + prop: 'schoolEightDown' + }, + { + label: '学校推荐九上设置', + prop: 'schoolNineUp' + }, + { + label: '学校推荐新课设置', + prop: 'schoolNewCourse' + }, + { + label: '学生自荐八下', + prop: 'selfEightDown' + }, + { + label: '学生自荐九上', + prop: 'selfNineUp' + }, + { + label: '学生自荐新课', + prop: 'selfNewCourse' + }, + { + label: '', + prop: 'xy' + }, + { + label: '', + prop: 'area' + }, + ] +} diff --git a/src/const/crud/recruit/recruitstudentsignup.js b/src/const/crud/recruit/recruitstudentsignup.js new file mode 100644 index 0000000..6e2a612 --- /dev/null +++ b/src/const/crud/recruit/recruitstudentsignup.js @@ -0,0 +1,391 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '编号', + prop: 'id' + }, + { + label: '招生计划组ID', + prop: 'groupId' + }, + { + label: '年份', + prop: 'year' + }, + { + label: '序号(按年度从1开始)', + prop: 'serialNumber' + }, + { + label: '生源', + prop: 'studentSource' + }, + { + label: '姓名', + prop: 'name' + }, + { + label: '联系人', + prop: 'contactName' + }, + { + label: '曾用名', + prop: 'oldName' + }, + { + label: '性别', + prop: 'gender' + }, + { + label: '身份证号', + prop: 'idNumber' + }, + { + label: '民族', + prop: 'nationality' + }, + { + label: '文化程度', + prop: 'degreeOfEducation' + }, + { + label: '是否团员 1:是 0:否', + prop: 'isLeagueMember' + }, + { + label: '准考证号', + prop: 'examRegistrationNumbers' + }, + { + label: '成绩', + prop: 'score' + }, + { + label: '是否住宿 1:是 0:否', + prop: 'isAccommodation' + }, + { + label: '毕业学校', + prop: 'schoolOfGraduation' + }, + { + label: '是否低保 1:是 0:否', + prop: 'isMinimumLivingSecurity' + }, + { + label: '户口所在地 省', + prop: 'residenceProvince' + }, + { + label: '户口所在地 市', + prop: 'residenceCity' + }, + { + label: '户口所在地 区', + prop: 'residenceArea' + }, + { + label: '户口所在地 号', + prop: 'residenceDetail' + }, + { + label: '户口性质', + prop: 'residenceType' + }, + { + label: '户口地址文字描述', + prop: 'residence' + }, + { + label: '通讯地址 省', + prop: 'contactProvince' + }, + { + label: '通讯地址 市', + prop: 'contactCity' + }, + { + label: '通讯地址 区', + prop: 'contactArea' + }, + { + label: '通讯地址 号', + prop: 'contactDetail' + }, + { + label: '通讯地址文字描述', + prop: 'contact' + }, + { + label: '家庭住址 省', + prop: 'homeAddressProvince' + }, + { + label: '家庭住址 市', + prop: 'homeAddressCity' + }, + { + label: '家庭住址 区', + prop: 'homeAddressArea' + }, + { + label: '家庭住址 号', + prop: 'homeAddressDetail' + }, + { + label: '邮编', + prop: 'postcode' + }, + { + label: '家长姓名', + prop: 'parentName' + }, + { + label: '家长联系电话1', + prop: 'parentTel1' + }, + { + label: '家长联系电话2', + prop: 'parentTel2' + }, + { + label: '本人联系电话', + prop: 'selfTel' + }, + { + label: '拟报专业1', + prop: 'wishMajor1' + }, + { + label: '拟报专业2', + prop: 'wishMajor2' + }, + { + label: '拟报专业3', + prop: 'wishMajor3' + }, + { + label: '确认报名的专业', + prop: 'confirmedMajor' + }, + { + label: '成绩单上传图片', + prop: 'scorePhoto' + }, + { + label: '既往病史', + prop: 'pastMedicalHistory' + }, + { + label: '营养发育', + prop: 'nutrition' + }, + { + label: '身高 cm', + prop: 'height' + }, + { + label: '体重 公斤', + prop: 'weight' + }, + { + label: '辨色力', + prop: 'colorDiscrimination' + }, + { + label: '视力 左眼', + prop: 'eyesightLeft' + }, + { + label: '视力 右眼', + prop: 'eyesightRight' + }, + { + label: '矫正视力 左眼', + prop: 'correctEyesightLeft' + }, + { + label: '矫正度数 左眼', + prop: 'correctEyesightLeftDegree' + }, + { + label: '矫正视力 右眼', + prop: 'correctEyesightRight' + }, + { + label: '矫正度数 右眼', + prop: 'correctEyesightRightDegree' + }, + { + label: '创建者', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createDate' + }, + { + label: '更新者', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateDate' + }, + { + label: '备注信息', + prop: 'remarks' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '经办人员审核信息', + prop: 'auditRemarks' + }, + { + label: '报名审核状态 -20 : 未录取; 0 :待审核 10:预录取 20:已录取', + prop: 'auditStatus' + }, + { + label: '报名审核装填明细 201:招生经办人审核通过 202:预录通过 203:招生管理员录入 -201:招生经办人驳回 -202:预录失败 -203:招生管理员做退学', + prop: 'auditStatusType' + }, + { + label: '头像地址', + prop: 'portrait' + }, + { + label: '学费', + prop: 'feeTuition' + }, + { + label: '代办费', + prop: 'feeAgency' + }, + { + label: '捐资助学费', + prop: 'feeContribute' + }, + { + label: '成绩折算分', + prop: 'correctedScore' + }, + { + label: '是否借读 1:是 0:否', + prop: 'isTransientstudent' + }, + { + label: '延时缴费时间', + prop: 'delayPaymentTime' + }, + { + label: '经办人', + prop: 'auditor' + }, + { + label: '资料录入员', + prop: 'dataTyper' + }, + { + label: '对接系部(经办人录取)', + prop: 'xy' + }, + { + label: '原序号', + prop: 'oldSerialNumber' + }, + { + label: '录入的数据是否已经交过费,和易龙对接无关', + prop: 'paiedOffline' + }, + { + label: '数据是否推送过', + prop: 'pushed' + }, + { + label: '数据推送失败的原因', + prop: 'pushFailReason' + }, + { + label: '生日', + prop: 'birthday' + }, + { + label: '班级代码', + prop: 'bjdm' + }, + { + label: '学号', + prop: 'xh' + }, + { + label: '学校归属地', + prop: 'schoolArea' + }, + { + label: '江苏其他地区', + prop: 'jsOtherCity' + }, + { + label: '当地中考总分', + prop: 'fullScore' + }, + { + label: '学籍号', + prop: 'xjNo' + }, + { + label: '人工导入标记', + prop: 'flag' + }, + { + label: '来源', + prop: 'isOut' + }, + { + label: '毕业证', + prop: 'graPic' + }, + { + label: '营业执照', + prop: 'yyPic' + }, + { + label: '租房合同、房产证', + prop: 'housePic' + }, + { + label: '社保证明', + prop: 'sbPic' + }, + ] +} diff --git a/src/const/crud/recruit/recruitstudentsignupturnover.js b/src/const/crud/recruit/recruitstudentsignupturnover.js new file mode 100644 index 0000000..562f084 --- /dev/null +++ b/src/const/crud/recruit/recruitstudentsignupturnover.js @@ -0,0 +1,147 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '编号', + prop: 'id' + }, + { + label: '报名表主键', + prop: 'signId' + }, + { + label: '原专业', + prop: 'oldMajor' + }, + { + label: '新专业', + prop: 'newMajor' + }, + { + label: '异动类型 1:专业变更 2:退学', + prop: 'type' + }, + { + label: '流程实例ID', + prop: 'procInsId' + }, + { + label: '流程状态', + prop: 'procInsStatus' + }, + { + label: '创建者', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createDate' + }, + { + label: '更新者', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateDate' + }, + { + label: '备注信息', + prop: 'remarks' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '学费补', + prop: 'feeDiffAdd' + }, + { + label: '学费退', + prop: 'feeDiffSub' + }, + { + label: '捐资费补', + prop: 'feeDiffAdd2' + }, + { + label: '捐资费退', + prop: 'feeDiffSub2' + }, + { + label: '', + prop: 'pushed' + }, + { + label: '', + prop: 'pushFailReason' + }, + { + label: '原分数', + prop: 'oldScore' + }, + { + label: '新分数', + prop: 'newScore' + }, + { + label: '原折算分', + prop: 'oldCorrectedScore' + }, + { + label: '新折算分', + prop: 'newCorrectedScore' + }, + { + label: '原当地总分', + prop: 'oldFullScore' + }, + { + label: '新当地总分', + prop: 'newFullScore' + }, + { + label: '原学校归属地', + prop: 'oldSchoolArea' + }, + { + label: '新学校归属地', + prop: 'newSchoolArea' + }, + { + label: '原本省外市', + prop: 'oldJsOtherCity' + }, + { + label: '新本省外市', + prop: 'newJsOtherCity' + }, + ] +} diff --git a/src/const/crud/recruit/recruitstudentsignupturnovermoneychange.js b/src/const/crud/recruit/recruitstudentsignupturnovermoneychange.js new file mode 100644 index 0000000..cbae842 --- /dev/null +++ b/src/const/crud/recruit/recruitstudentsignupturnovermoneychange.js @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '编号', + prop: 'id' + }, + { + label: '异动ID', + prop: 'turnOverId' + }, + { + label: '创建者', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createDate' + }, + { + label: '更新者', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateDate' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '退补类型 1:学费 2:代办费 3:捐资费', + prop: 'type' + }, + { + label: '原费用', + prop: 'oldFee' + }, + { + label: '变更后费用', + prop: 'newFee' + }, + { + label: '变更费用', + prop: 'fee' + }, + { + label: '补还是退 1:补 2:退', + prop: 'incOrDec' + }, + { + label: '是否推送,预留字段,单项推送则需要该字段', + prop: 'pushed' + }, + { + label: '', + prop: 'pushFailReason' + }, + ] +} diff --git a/src/const/crud/safety/backregistration.js b/src/const/crud/safety/backregistration.js new file mode 100644 index 0000000..9829ecd --- /dev/null +++ b/src/const/crud/safety/backregistration.js @@ -0,0 +1,156 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班号', + prop: 'classCode', + searchFilterable: true, + addDisplay:false, + editDisplay:false, + filterable: true, + type: 'select', + dicUrl: '/basic/basicclass/listByRole', + props: { + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + message: '请填写班级代码', + trigger: 'blur' + }] + }, + { + label: '姓名', + prop: 'realName', + addDisplay:false, + editDisplay:false, + }, + { + label: '学号', + prop: 'userName', + addDisplay:false, + editDisplay:false, + }, + { + label: '所在省', + prop: 'province', + type:'select', + formslot:true, + hide:true, + props: { + label: 'fullName', + value: 'id', + }, + rules: [{ + required: true, + message: '请填写所在省', + trigger: 'blur' + }] + }, + { + label: '所在省', + prop: 'provinceName', + addDisplay:false, + editDisplay:false, + }, + { + label: '所在市', + prop: 'city', + type:'select', + hide:true, + formslot:true, + props: { + label: 'fullName', + value: 'id', + }, + rules: [{ + required: true, + message: '请填写所在市', + trigger: 'blur' + }] + }, + { + label: '所在市', + prop: 'cityName', + addDisplay:false, + editDisplay:false, + }, + { + label: '所在区', + prop: 'area', + type:'select', + hide:true, + formslot:true, + props: { + label: 'fullName', + value: 'id', + }, + rules: [{ + required: true, + message: '请填写所在区', + trigger: 'blur' + }] + }, + { + label: '所在区', + prop: 'areaName', + addDisplay:false, + editDisplay:false, + }, + { + label: '详细地址', + prop: 'address', + rules: [{ + required: true, + message: '请填写详细地址', + trigger: 'blur' + }, + { + min: 1, + max: 100, + message: '详细地址长度在 1 到 100 个字符', + trigger: 'blur' + } + ] + } + ] +} diff --git a/src/const/crud/safety/cloudblackcarnumber.js b/src/const/crud/safety/cloudblackcarnumber.js new file mode 100644 index 0000000..ac73d62 --- /dev/null +++ b/src/const/crud/safety/cloudblackcarnumber.js @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '电话', + prop: 'phone', + search:true + }, + { + label: '单位名称', + prop: 'companyName' + }, + { + label: '车牌', + prop: 'carNum', + search:true, + rules: [{ + required: true, + message: '车牌不能为空', + trigger: 'blur' + }] + }, + // { + // label: '是否生效 0无效 1有效', + // prop: 'isYx' + // }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + }, + ] +} diff --git a/src/const/crud/safety/cloudcardevice.js b/src/const/crud/safety/cloudcardevice.js new file mode 100644 index 0000000..33b523c --- /dev/null +++ b/src/const/crud/safety/cloudcardevice.js @@ -0,0 +1,119 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +//0:待激活 1:在线 2:离线 +export const deviceStatus=[ + { + label:'待激活', + value:'0' + }, + { + label:'在线', + value:'1' + }, + { + label:'离线', + value:'2' + } +] +//0:进 1:出 +export const deviceInOutFlag=[ + { + label:'进', + value:'0' + }, + { + label:'出', + value:'1' + } +] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '设备名称', + prop: 'deviceName' + }, + { + label: '序列号', + prop: 'deviceNo', + search:true, + editDisabled:true, + }, + { + label: '设备位置', + prop: 'devicePositionId', + search:true + }, + { + label: '设备状态', + prop: 'deviceStatus', + type:'radio', + dicData:deviceStatus, + props:{ + label:'label', + value:'value' + }, + search:true + }, + { + label: '注册时间', + prop: 'deviceRegisterTime', + editDisabled:true, + }, + { + label: '注册IP', + prop: 'deviceRegisterIp', + editDisabled:true, + }, + { + label: '离线时间', + prop: 'deviceOfflineTime', + editDisabled:true, + }, + { + label: '上次心跳注册时间', + prop: 'deviceLastBeat', + editDisabled:true, + }, + { + label: '进出', + prop: 'deviceInOutFlag', + type:'radio', + dicData:deviceInOutFlag, + props:{ + label:'label', + value:'value' + }, + search:true + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/safety/cloudcarinoutrecord.js b/src/const/crud/safety/cloudcarinoutrecord.js new file mode 100644 index 0000000..be14a34 --- /dev/null +++ b/src/const/crud/safety/cloudcarinoutrecord.js @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + hide:true, + label: '主键', + prop: 'id' + }, + + + { + label: '车牌', + prop: 'carNum', + search:true + }, + { + label: '车辆颜色', + prop: 'carColor', + hide: true, + }, + { + label: '进出图片', + prop: 'carPic', + slot:true + }, + { + label: '进出图片', + prop: 'carPic2', + slot:true + }, + { + label: ' 位置', + prop: 'position' + }, + { + label: '摄像头编号', + prop: 'cameraId' + }, + { + label: '创建时间', + prop: 'createTime' + }, + + ] +} diff --git a/src/const/crud/safety/cloudcarinoutrule.js b/src/const/crud/safety/cloudcarinoutrule.js new file mode 100644 index 0000000..fe56f8f --- /dev/null +++ b/src/const/crud/safety/cloudcarinoutrule.js @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide:true + }, + { + label: '是否启用', + prop: 'status' + }, + { + label: '禁止进入时段', + prop: 'forbidden' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/safety/cloudcarnumber.js b/src/const/crud/safety/cloudcarnumber.js new file mode 100644 index 0000000..1032c0e --- /dev/null +++ b/src/const/crud/safety/cloudcarnumber.js @@ -0,0 +1,119 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const userType=[ + { + label:'教职工', + value:'1' + }, + { + label:'驻校人员', + value:'3' + }, + { + label:'二期驻校单位', + value:'5' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '部门名称/单位名称', + prop: 'deptName' + }, + { + label: '用户类型', + prop: 'userType', + type:'select', + dicData:userType, + props:{ + label:'label', + value:'value' + }, + search:true, + rules: [{ + required: true, + message: '用户类型不能为空', + trigger: 'blur' + }] + }, + { + label: '用户名', + prop: 'userName', + search:true, + rules: [{ + required: true, + message: '用户名不能为空', + trigger: 'blur' + }] + }, + { + label: '姓名', + prop: 'realName', + search:true, + rules: [{ + required: true, + message: '姓名不能为空', + trigger: 'blur' + }] + }, + { + label: '电话', + prop: 'phone', + search:true, + }, + { + label: '车标编号', + prop: 'carNumber' + }, + { + label: '车牌', + prop: 'carNumOne', + search:true, + rules: [{ + required: true, + message: '车牌不能为空', + trigger: 'blur' + }] + }, + { + label: '车牌2', + prop: 'carNumTwo' + }, + { + label: '车牌3', + prop: 'carNumThree' + }, + + + + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/safety/cloudcarrecognition.js b/src/const/crud/safety/cloudcarrecognition.js new file mode 100644 index 0000000..cedf622 --- /dev/null +++ b/src/const/crud/safety/cloudcarrecognition.js @@ -0,0 +1,168 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import {deviceInOutFlag, deviceStatus} from "@/const/crud/safety/cloudcardevice"; +//0:进 1:出 +export const isSure=[ + { + label:'允许进入', + value:'1' + }, + { + label:'禁止进入', + value:'0' + }, + { + label:'允许离校', + value:'2' + } +] +export const comeFrom=[ + { + label:'车牌', + value:'0' + }, + { + label:'访客', + value:'1' + }, + { + label:'成班', + value:'2' + }, + { + label:'黑名单', + value:'3' + }, + { + label:'临时', + value:'4' + }, + { + label:'未匹配', + value:'10' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '车牌', + prop: 'carNum', + search:true + }, + // { + // label: '车牌颜色', + // prop: 'colorType', + // }, + { + label: '进出图片', + prop: 'carPic', + slot:true, + editDisplay:false, + }, + { + label: '进出图2', + prop: 'carPic2', + slot:true, + editDisplay:false, + + }, + { + label: ' 部门', + prop: 'deptName', + search: true + }, + { + label: ' 姓名', + prop: 'realName', + search: true + }, + { + label: '电话', + prop: 'phone', + search: true + }, + { + label: '信息来源', + prop: 'comeFrom', + type:'select', + search: true, + dicData:comeFrom, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '受访人', + prop: 'accessPeopleName', + }, + { + label: '进入次数', + prop: 'inNumber', + }, + { + label: '进出状态', + prop: 'isSure', + type:'radio', + dicData:isSure, + props:{ + label:'label', + value:'value' + }, + search:true + }, + { + label: '位置', + prop: 'position', + search:true + }, + { + label: '进入时间', + prop: 'createInTime', + }, + { + label: '出门时间', + prop: 'createOutTime', + }, + { + label: '最近进入时间', + prop: 'lastInTime', + }, + { + label: '进入时间', + prop: 'searchTime', + type: 'date', + search:true, + hide:true, + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, { + label: '备注', + prop: 'remarks', + }, + ] +} diff --git a/src/const/crud/safety/cloudcarspeed.js b/src/const/crud/safety/cloudcarspeed.js new file mode 100644 index 0000000..0303935 --- /dev/null +++ b/src/const/crud/safety/cloudcarspeed.js @@ -0,0 +1,285 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {comeFrom} from "@/const/crud/safety/cloudcarrecognition"; +import global from "@/components/tools/commondict"; + +export const speedDict=[ + { + label:'全部', + value:'0' + }, + { + label:'36及以上', + value:'36' + }, + { + label:'45及以上', + value:'45' + }, + { + label:'51及以上', + value:'51' + }, +] +export const blackDict=[ + { + label:'正常', + value:'0' + }, + { + label:'已拉黑', + value:'1' + }, +] + +export const userTypeDict=[ + { + label:'教职工', + value:'1' + }, + { + label:'驻校人员', + value:'3' + }, + { + label:'二期驻校单位', + value:'5' + }, + { + label:'访客', + value:'9' + }, + { + label:'临时车牌', + value:'6' + }, + { + label:'未匹配', + value:'10' + }, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '时间', + prop: 'createTime', + labelWidth:120, + span:24, + type: 'datetime', + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择时间" + } + ], + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + }, + { + label: '车牌', + prop: 'carCode', + span:24, + + labelWidth:120, + search: true, + rules: [ + { + required: true, + trigger: 'blur', + message:"车牌不能为空" + } + ], + }, + { + label: '照片', + prop: 'img', + labelWidth:120, + slot: true, + formslot: true, + editDisabled: true, + editDisplay: false, + addDisplay: true, + }, + + { + label: '位置', + prop: 'name', + editDisabled: true, + search: true, + labelWidth:120, + span:24, + type: 'select', + dicUrl: '/safety/cloudcarspeedheart/list', + props: { + label: 'name', + value: 'name' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择位置" + } + ], + }, + { + label: '速度范围', + prop: 'speedStart', + search: true, + labelWidth:120, + editDisabled: true, + editDisplay: false, + addDisplay: false, + // slot:true, + hide:true, + type: 'select', + dicData:speedDict, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '速度', + prop: 'speed', + labelWidth:120, + editDisabled: true, + search: true, + rules: [ + { + required: true, + trigger: 'blur', + message:"速度不能为空" + } + ], + }, + { + label: '电话', + prop: 'phone', + labelWidth:120, + rules: [ + { + required: true, + message: '请输入手机号', + trigger: 'blur' + }, + { + pattern: /^1[3-9]\d{9}$/, + message: '手机号格式不正确', + trigger: 'blur' + } + ] + },{ + label: '来源', + prop: 'userType', + type: 'select', + span:24, + dicData:userTypeDict, + search:true, + props:{ + value:'value', + label:'label' + }, + labelWidth:120, + editDisabled: true, + addDisplay: false, + rules: [ + { + required: true, + trigger: 'blur', + message:"来源不能为空" + } + ], + }, + { + label: '部门', + prop: 'deptName', + labelWidth:120, + addDisplay: false, + editDisabled: true, + }, + { + label: '姓名', + prop: 'realName', + labelWidth:120, + addDisplay: false, + editDisabled: true, + }, + + { + label: '黑名单状态', + prop: 'isBlack', + search: true, + labelWidth:120, + span:24, + addDisplay: false, + slot:true, + type: 'select', + dicData: blackDict, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '40-50km/h次数', + prop: 'speedCountOne', + width: 180, + addDisplay: false, + editDisplay: false + }, + { + label: '大于50km/h次数', + prop: 'speedCountTwo', + addDisplay: false, + width: 180, + editDisplay: false + }, + { + label: '时间范围', + prop: 'timeRange', + type: 'daterange', + addDisplay: false, + editDisabled: true, + editDisplay: false, + search: true, + hide: true, + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label: '备注', + type:'textarea', + row:true, + span:24, + labelWidth:120, + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/safety/cloudcarspeedheart.js b/src/const/crud/safety/cloudcarspeedheart.js new file mode 100644 index 0000000..6908178 --- /dev/null +++ b/src/const/crud/safety/cloudcarspeedheart.js @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {speedDict} from "@/const/crud/safety/cloudcarspeed"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + { + label: '位置', + prop: 'name' + }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + { + label: '状态', + prop: 'status', + slot: true, + + }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '注册时间', + prop: 'createTime' + }, + // { + // label: '排序', + // prop: 'sort' + // }, + { + label: '上次心跳注册时间', + prop: 'lastHeartTime' + }, + { + label: '消息', + prop: 'msg' + }, + // { + // label: '备注', + // prop: 'remarks' + // }, + ] +} diff --git a/src/const/crud/safety/cloudcarspeedstatistics.js b/src/const/crud/safety/cloudcarspeedstatistics.js new file mode 100644 index 0000000..c76204c --- /dev/null +++ b/src/const/crud/safety/cloudcarspeedstatistics.js @@ -0,0 +1,192 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const userTypeDict=[ + { + label:'教职工', + value:'1' + }, + { + label:'驻校人员', + value:'3' + }, + { + label:'二期驻校单位', + value:'5' + }, + //todo userType校准 + { + label:'访客', + value:'9' + }, + { + label:'未匹配', + value:'10' + }, + { + label:'临时车牌', + value:'临时车牌' + }, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: true, + delBtn: false, + addBtn: false, + menu:true, + dic: [], + column: [ + { + label: '照片', + prop: 'img', + labelWidth:120, + slot: true, + editDisplay: false, + }, + { + label: '抓拍时间', + labelWidth:120, + prop: 'createTime', + editDisplay: false + }, + { + label: '位置', + labelWidth:120, + prop: 'address', + editDisplay: false + }, + { + label: '车牌', + prop: 'carCode', + labelWidth:120, + search: true, + editDisabled:true + }, + { + label: '速度km/h', + prop: 'speed', + labelWidth:120, + editDisabled: true, + rules: [{ + required: true, + message: '速度不能为空', + trigger: 'blur' + }, + { + pattern: /^(?:[0-9]|[1-9][0-9]{0,2}|999)$/, + message: '请输入 0 到 999 之间的数字', + trigger: 'blur' + } + ] + }, + { + label: '超速', + labelWidth:120, + prop: 'overRatio', + editDisabled:true + }, + { + label: '车牌来源', + prop: 'userType', + labelWidth:120, + editDisabled:true, + search: true, + slot: true, + type: 'select', + dicData: userTypeDict, + props: { + label: 'label', + value: 'value' + } + }, + { + label: '部门', + labelWidth:120, + prop: 'companyName', + search: true, + editDisabled:true, + + }, + { + label: '姓名', + labelWidth:120, + prop: 'realName', + search: true, + editDisabled:true, + + }, + { + label: '电话', + labelWidth:120, + span:24, + prop: 'phone', + editDisabled: true, + rules: [{ + required: true, + message: '电话不能为空', + trigger: 'blur' + }, { + pattern: /^1[345789]\d{9}$/, + message: '请输入有效的中国大陆手机号码', + trigger: 'blur' + } + ] + }, + { + label: '40-50km/h次数', + prop: 'speedCountOne', + width: 120, + editDisplay: false + }, + { + label: '大于50km/h次数', + prop: 'speedCountTwo', + width: 120, + editDisplay: false + }, + { + label: '黑名单状态', + prop: 'isBlack', + editDisplay: false + }, + { + label: '日期范围', + prop: 'timeRange', + type: 'daterange', + search: true, + hide: true, + editDisplay: false, + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + startPlaceholder: '开始日期', + endPlaceholder: '结束日期', + rangeSeparator: '至', + }, + { + label: '备注', + prop: 'remarks', + width: 120, + editDisabled: false, + editDisplay: true + } + ] +} diff --git a/src/const/crud/safety/cloudchannel.js b/src/const/crud/safety/cloudchannel.js new file mode 100644 index 0000000..852f70a --- /dev/null +++ b/src/const/crud/safety/cloudchannel.js @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + + + { + label: '通道名称', + prop: 'channelName', + span: 24 + }, + // { + // label: '通道号', + // prop: 'channelNum' + // }, + { + label: 'RTSP地址', + prop: 'deviceAddr', + span: 24 + }, + + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24 + }, + ] +} diff --git a/src/const/crud/safety/cloudonduty.js b/src/const/crud/safety/cloudonduty.js new file mode 100644 index 0000000..71a0771 --- /dev/null +++ b/src/const/crud/safety/cloudonduty.js @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '值班日期', + prop: 'onDutyTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + span: 24, + rules: [{ + required: true, + message: '值班日期不能为空', + trigger: 'blur' + } + ] + }, + { + label: '值班日期', + prop: 'onDutyTimeVal', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + span: 24, + hide:true, + search: true, + addDisplay:false, + editDisplay:false, + }, + { + label: '时间段', + prop: 'timePeriod', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + rules: [{ + required: true, + message: '时间段不能为空', + trigger: 'blur' + } + ] + }, + { + label: '工号', + prop: 'userName', + rules: [{ + required: true, + message: '工号不能为空', + trigger: 'blur' + } + ] + }, + + { + label: '电话', + prop: 'phone' + }, + { + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: "当日考勤日期", + prop: "currentFaceTime", + editDisplay: false, + addDisplay: false, + }, + { + label: "当日考勤扫脸", + prop: "currentFaceAvatar", + slot:true, + addDisplay: false, + editDisplay: false + }, + { + label: "隔日考勤日期", + prop: "lastFaceTime", + editDisplay: false, + addDisplay: false, + }, + { + label: "隔日考勤扫脸", + prop: "lastFaceAvatar", + slot:true, + addDisplay: false, + editDisplay: false + } + ] +} diff --git a/src/const/crud/safety/cloudsocketuserinfo.js b/src/const/crud/safety/cloudsocketuserinfo.js new file mode 100644 index 0000000..8dec62e --- /dev/null +++ b/src/const/crud/safety/cloudsocketuserinfo.js @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '', + prop: 'userNo' + }, + { + label: '0 初始化 1 新增 2 删除', + prop: 'type' + }, + { + label: '0 未处理 1已处理 -1 失败', + prop: 'dealStatus' + }, + { + label: '设别好', + prop: 'deviceNo' + }, + { + label: '失败原因', + prop: 'errMsg' + }, + { + label: '1 教职工2 学生 3 驻校人员', + prop: 'userType' + }, + ] +} diff --git a/src/const/crud/safety/cloudtemcarnumber.js b/src/const/crud/safety/cloudtemcarnumber.js new file mode 100644 index 0000000..ac68c42 --- /dev/null +++ b/src/const/crud/safety/cloudtemcarnumber.js @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '姓名', + prop: 'realName', + search:true, + rules: [{ + required: true, + message: '姓名不能为空', + trigger: 'blur' + }] + }, + { + label: '电话', + prop: 'phone', + search:true, + rules: [{ + required: true, + message: '电话不能为空', + trigger: 'blur' + }] + }, + { + label: '单位名称', + prop: 'companyName' + }, + { + label: '车牌', + prop: 'carNum', + search:true, + rules: [{ + required: true, + message: '车牌不能为空', + trigger: 'blur' + }] + }, + { + label: '开始时间', + prop: 'beginTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '开始时间不能为空', + trigger: 'blur' + }] + }, + { + label: '结束时间', + prop: 'endTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '结束时间不能为空', + trigger: 'blur' + }] + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/safety/dns.js b/src/const/crud/safety/dns.js new file mode 100644 index 0000000..5fc428f --- /dev/null +++ b/src/const/crud/safety/dns.js @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu: false, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection:true, + dic: [], + column: [ + + { + label: '网址(精确匹配)', + prop: 'site', + search:true, + }, + { + label: '网址(模糊匹配)', + prop: 'siteLike', + search:true, + hide:true + }, + { + label: '访问IP', + prop: 'ip', + search:true, + }, + { + label: '访问时间', + prop: 'query_time', + }, + ] +} + + diff --git a/src/const/crud/safety/dumudevice.js b/src/const/crud/safety/dumudevice.js new file mode 100644 index 0000000..ea7e457 --- /dev/null +++ b/src/const/crud/safety/dumudevice.js @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + + + { + label: '设备名称', + prop: 'deviceName' + }, + { + label: '设备号', + prop: 'deviceNo' + }, + { + label: '设备位置', + prop: 'devicePositionId' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '注册时间', + prop: 'deviceRegisterTime' + }, + { + label: '注册IP', + prop: 'deviceRegisterIp' + }, + { + label: '上次心跳注册时间', + prop: 'deviceLastBeat' + }, + // { + // label: '排序', + // prop: 'sort' + // }, + ] +} diff --git a/src/const/crud/safety/facerecognize.js b/src/const/crud/safety/facerecognize.js new file mode 100644 index 0000000..6c038d8 --- /dev/null +++ b/src/const/crud/safety/facerecognize.js @@ -0,0 +1,33 @@ +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu: false, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection: false, + dic: [], + column: [ + { + label: '用户类型', + prop: 'userType', + dicUrl:'/admin/dict/item/type/sys_user_type', + type:'select', + }, + { + label: '姓名', + prop: 'realName', + search: true, + }, + { + label: '编号', + prop: 'username', + search: true, + }, + + ] +} diff --git a/src/const/crud/safety/patrolpeople.js b/src/const/crud/safety/patrolpeople.js new file mode 100644 index 0000000..b2e4b1f --- /dev/null +++ b/src/const/crud/safety/patrolpeople.js @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '姓名', + prop: 'realName', + search:true, + rules: [{ + required: true, + message: '姓名不能为空', + trigger: 'blur' + } + ] + }, + { + label: '电话', + prop: 'phone', + rules: [{ + required: true, + message: '电话不能为空', + trigger: 'blur' + } + ] + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + }, + ] +} diff --git a/src/const/crud/safety/patrolplan.js b/src/const/crud/safety/patrolplan.js new file mode 100644 index 0000000..7742a95 --- /dev/null +++ b/src/const/crud/safety/patrolplan.js @@ -0,0 +1,205 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '计划名称', + prop: 'name', + search:true, + rules: [{ + required: true, + message: '计划名称不能为空', + trigger: 'blur' + } + ] + }, + { + label: '路线', + prop: 'routeId', + type:'select', + dicUrl: '/safety/patrolroute/list', + props:{ + label:'name', + value:'id' + }, + rules: [{ + required: true, + message: '路线不能为空', + trigger: 'blur' + } + ] + }, + { + label: '巡逻时间', + prop: 'patrolTime', + type:'datetime', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '巡逻时间不能为空', + trigger: 'blur' + } + ] + }, + { + label: '巡逻人员姓名', + prop: 'patrolPeopleName', + rules: [{ + required: true, + message: '巡逻人员姓名不能为空', + trigger: 'blur' + } + ] + }, + { + label: '巡逻人员电话', + prop: 'patrolPeoplePhone', + rules: [{ + required: true, + message: '巡逻人员电话不能为空', + trigger: 'blur' + } + ] + }, + { + label: '进度', + prop: 'progress', + formslot:true, + slot:true, + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} + + +export const tableDetailOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '计划名称', + prop: 'name', + search:true, + rules: [{ + required: true, + message: '计划名称不能为空', + trigger: 'blur' + } + ] + }, + { + label: '路线', + prop: 'routeId', + type:'select', + dicUrl: '/safety/patrolroute/list', + props:{ + label:'name', + value:'id' + }, + rules: [{ + required: true, + message: '路线不能为空', + trigger: 'blur' + } + ] + }, + { + label: '巡逻时间', + prop: 'patrolTime', + type:'datetime', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '巡逻时间不能为空', + trigger: 'blur' + } + ] + }, + { + label: '巡逻人员姓名', + prop: 'patrolPeopleName', + rules: [{ + required: true, + message: '巡逻人员姓名不能为空', + trigger: 'blur' + } + ] + }, + { + label: '巡逻人员电话', + prop: 'patrolPeoplePhone', + rules: [{ + required: true, + message: '巡逻人员电话不能为空', + trigger: 'blur' + } + ] + }, + { + label: '点位', + prop: 'pointId', + type:'select', + dicUrl: '/safety/patrolpoint/list', + props:{ + label:'name', + value:'id' + }, + rules: [{ + required: true, + message: '点位不能为空', + trigger: 'blur' + } + ] + }, + { + label: '巡逻状态', + prop: 'state' + }, + { + label: '确认巡逻时间', + prop: 'hasTime' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/safety/patrolplandetail.js b/src/const/crud/safety/patrolplandetail.js new file mode 100644 index 0000000..8ae491a --- /dev/null +++ b/src/const/crud/safety/patrolplandetail.js @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const statusDic=[ + {label:"待巡逻",value:"0"}, + {label:"已巡逻",value:"1"}, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '巡逻计划', + prop: 'planId', + addDisplay: false, + editDisplay: false, + }, + { + label: '点位', + prop: 'pointId', + type:'select', + dicUrl: '/safety/patrolpoint/list', + props:{ + label:'name', + value:'id' + }, + rules: [{ + required: true, + message: '点位不能为空', + trigger: 'blur' + } + ] + }, + { + label: '巡逻状态', + prop: 'state', + search:true, + dicData: statusDic, + type:'select', + props:{ + label:'label', + value:'value' + }, + addDisplay: false, + editDisplay: false, + }, + { + label: '确认巡逻时间', + prop: 'hasTime',addDisplay: false, + editDisplay: false, + }, + + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/safety/patrolpoint.js b/src/const/crud/safety/patrolpoint.js new file mode 100644 index 0000000..4d184e7 --- /dev/null +++ b/src/const/crud/safety/patrolpoint.js @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + + { + label: '路线id', + prop: 'routeId' , + type:"select", + dicUrl: '/safety/patrolroute/list', + props: { + label: 'name', + value: 'id' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择路线" + } + ] + }, + { + label: '点位名称', + prop: 'name', + search:true, + rules: [{ + required: true, + message: '路线名称不能为空', + trigger: 'blur' + } + ] + }, + ] +} diff --git a/src/const/crud/safety/patrolroute.js b/src/const/crud/safety/patrolroute.js new file mode 100644 index 0000000..45b8898 --- /dev/null +++ b/src/const/crud/safety/patrolroute.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '路线名称', + prop: 'name' , + search:true, + rules: [{ + required: true, + message: '路线名称不能为空', + trigger: 'blur' + } + ] + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/safety/safetybuilding.js b/src/const/crud/safety/safetybuilding.js new file mode 100644 index 0000000..8cb0333 --- /dev/null +++ b/src/const/crud/safety/safetybuilding.js @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '楼名', + prop: 'buildName', + search:true, + span:24, + rules: [{ + required: true, + message: '楼栋名不能为空', + trigger: 'blur' + }, + { + min: 0, + max: 50, + message: '长度在 0 到 50 个字符', + trigger: 'blur' + } + ] + }, + { + label: '备注', + type:'textarea', + row:true, + span:24, + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/safety/safetyroom.js b/src/const/crud/safety/safetyroom.js new file mode 100644 index 0000000..958c29a --- /dev/null +++ b/src/const/crud/safety/safetyroom.js @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '楼栋', + prop: 'buildCode', + filterable:true, + searchFilterable:true, + search:true, + + type:'select', + dicUrl: '/safety/safetybuilding/list', + props: { + label: 'buildName', + value: 'id' + }, + rules: [{ + required: true, + message: '楼栋不能为空', + trigger: 'blur' + } + ] + }, + { + label: '房间号', + prop: 'roomCode', + search:true, + filterable:true, + searchFilterable:true, + rules: [{ + required: true, + message: '房间号不能为空', + trigger: 'blur' + }, + { + min: 0, + max: 20, + message: '长度在 0 到 20 个字符', + trigger: 'blur' + } + ] + }, + { + label: '视频流', + type:'textarea', + row:true, + span:24, + prop: 'videoData' + }, + { + label: '备注', + type:'textarea', + row:true, + span:24, + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/safety/stunuclebatchdetail.js b/src/const/crud/safety/stunuclebatchdetail.js new file mode 100644 index 0000000..001f8bd --- /dev/null +++ b/src/const/crud/safety/stunuclebatchdetail.js @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '', + prop: 'applyNo' + }, + { + label: '1 走读生 2住宿生', + prop: 'type' + }, + { + label: '日期', + prop: 'date' + }, + { + label: '比例', + prop: 'rate' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '租户ID', + prop: 'tenantId' + }, + ] +} diff --git a/src/const/crud/safety/stunucleextend.js b/src/const/crud/safety/stunucleextend.js new file mode 100644 index 0000000..8fca3ff --- /dev/null +++ b/src/const/crud/safety/stunucleextend.js @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学号', + prop: 'stuNo', + search:true + }, + { + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '身份证', + prop: 'idCard', + search:true + }, + { + label: '电话', + prop: 'phone', + search:true + }, + { + label: '家庭住址', + prop: 'homeAddress' + }, + { + label: '未达标判定日期', + prop: 'checkDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd' + }, + { + label: '未达标判定日期', + prop: 'checkDateStr', + search:true, + hide:true, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd' + }, + { + label: '上次核酸日期', + prop: 'lastNucleDate' + }, + { + label: '是否处理', + prop: 'dealFlag', + type:'select', + search:true, + dicData:global.YES_OR_NO + }, + ] +} diff --git a/src/const/crud/safety/stunuclerecord.js b/src/const/crud/safety/stunuclerecord.js new file mode 100644 index 0000000..e6cbbf0 --- /dev/null +++ b/src/const/crud/safety/stunuclerecord.js @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '系部', + prop: 'deptName' + }, + { + label: '班号', + prop: 'classNo' + }, + { + label: '班级名称', + prop: 'className' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '类型', + prop: 'type' + }, + { + label: '宿舍号', + prop: 'roomNo' + }, + { + label: '校对状态', + prop: 'excelCheck' + }, + { + label: '核酸日期', + prop: 'checkDate' + }, + { + label: '校对时间', + prop: 'excelCheckTime' + } + ] +} diff --git a/src/const/crud/safety/stunuclerecordbatch.js b/src/const/crud/safety/stunuclerecordbatch.js new file mode 100644 index 0000000..ccbaaa6 --- /dev/null +++ b/src/const/crud/safety/stunuclerecordbatch.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '批次号', + prop: 'applyNo' + }, + { + label: '第几批', + prop: 'num' + }, + { + label: '预定核酸日期', + prop: 'date' + }, + ] +} diff --git a/src/const/crud/safety/trojansite.js b/src/const/crud/safety/trojansite.js new file mode 100644 index 0000000..e7042f8 --- /dev/null +++ b/src/const/crud/safety/trojansite.js @@ -0,0 +1,61 @@ +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu: false, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection: false, + dic: [], + column: [ + { + label: '网址', + prop: 'site', + search: true, + }, + { + label: '重定向网址', + prop: 'redirect', + search: true, + }, + { + label: '导入批次', + prop: 'batch', + search: true + } + ] +} + +export const rabbitConfig = { + host: "ws://192.168.3.37:15674/ws", + user: "cyweb", + pwd: "Wang628625", + vhost: "/", + exchange: "trojan-sites-eanswer", + queue: "trojan-sites-qanswer", + routingKey: "trojan-sites-route-key" +} + +// Excel文件列标题映射 +export const excelKeyMap = { + "远控域名": "site", +} + +export const dnsServerStatus = { + "0": "重启DNS服务器", + "1": "正在重启,请等待" +} + +export const dnsAsyncStatus = { + "0": "同步至DNS服务器", + "1": "正在同步,请等待", + "2": "同步已完成" +} + +export const priorDnsServer = [ + "114.114.114.114" +] diff --git a/src/const/crud/safety/weekroomapply.js b/src/const/crud/safety/weekroomapply.js new file mode 100644 index 0000000..5a8cb34 --- /dev/null +++ b/src/const/crud/safety/weekroomapply.js @@ -0,0 +1,97 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const STATUS_DIC=[ + {label:"待审核",value:'0'}, + {label:"通过",value:'1'}, + {label:"驳回",value:'-1'}, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '楼栋', + // prop: 'buildName', + // search:true + // }, + // { + // label: '房间', + // prop: 'roomName', + // search:true + // }, + { + label: '访问房间', + prop: 'roomName', + slot:true, + display:false + }, + { + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '电话', + prop: 'phone', + search:true + }, + { + label: '单位', + prop: 'unit', + search:true + }, + { + label: '开始时间', + prop: 'startTime', + }, + { + label: '结束时间', + prop: 'endTime', + }, + { + label: '审核人', + prop: 'examPeopleName', + display:false + }, + { + label: '审核时间', + prop: 'examTime', + display:false + }, + { + label: '状态', + prop: 'status', + type:'select', + dicData:STATUS_DIC, + display:false + }, + { + label: '创建时间', + prop: 'createTime', + display:false + }, + + ] +} diff --git a/src/const/crud/statistics/statisticsSchoolStu.js b/src/const/crud/statistics/statisticsSchoolStu.js new file mode 100644 index 0000000..85daf3f --- /dev/null +++ b/src/const/crud/statistics/statisticsSchoolStu.js @@ -0,0 +1,238 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + showSummary:false, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '学院', + prop: 'deptName' + }, + { + label: '专业名称', + prop: 'majorName' + }, + { + label: '班号', + prop: 'classNo' + }, + { + label: '班级', + prop: 'classCode', + search:true, + searchFilterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + hide: true + }, + { + label: '教室安排', + prop: 'classArrangement' + }, + { + label: '班主任', + prop: 'headmaster' + }, + { + label: '在校(注册|借读)', + prop: 'inSchool' + }, + { + label: '男(在校)', + prop: 'boySchool' + }, + { + label: '女(在校)', + prop: 'girlSchool' + }, + { + label: '借读', + prop: 'borrowingSchool' + }, + { + label: '住宿人数', + prop: 'accommodation' + }, + { + label: '男(住宿)', + prop: 'manAccommodation' + }, + { + label: '女(住宿)', + prop: 'womanAccommodation' + } + ] +} +export const table2Option = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + showSummary:false, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '学院', + prop: 'deptName' + }, + { + label: '专业名称', + prop: 'majorName' + }, + { + label: '班号', + prop: 'classNo' + }, + { + label: '班级', + prop: 'classCode', + search:true, + searchFilterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + hide: true + }, + { + label: '教室安排', + prop: 'classArrangement' + }, + { + label: '班主任', + prop: 'teacherRealName' + }, + { + label: '小计(顶岗)', + prop: 'inSchool' + }, + { + label: '男(顶岗)', + prop: 'boySchool' + }, + { + label: '女(顶岗)', + prop: 'girlSchool' + }, + ] +} + +export const table3Option = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + showSummary:false, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '学院', + prop: 'deptName' + }, + { + label: '专业名称', + prop: 'majorName' + }, + { + label: '班号', + prop: 'classNo' + }, + { + label: '班级', + prop: 'classCode', + search:true, + searchFilterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + hide: true + }, + { + label: '教室安排', + prop: 'classArrangement' + }, + { + label: '班主任', + prop: 'teacherRealName' + }, + { + label: '小计(更岗)', + prop: 'inSchool' + }, + { + label: '男(更岗)', + prop: 'boySchool' + }, + { + label: '女(更岗)', + prop: 'girlSchool' + }, + ] +} diff --git a/src/const/crud/statistics/statisticsallstudent.js b/src/const/crud/statistics/statisticsallstudent.js new file mode 100644 index 0000000..0cd3c8c --- /dev/null +++ b/src/const/crud/statistics/statisticsallstudent.js @@ -0,0 +1,228 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + showSummary:true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + sumColumnList:[ + { + name:'classNum', + type:'sum' + }, + { + name:'schoolNum', + type:'sum' + }, + { + name:'replacementNum', + type:'sum' + }, + { + name:'changeNum', + type:'sum' + }, + { + name:'allPeople', + type:'sum' + }, + { + name:'subtotalSchool', + type:'sum' + }, + { + name:'registerSchool', + type:'sum' + }, + { + name:'borrowingSchool', + type:'sum' + }, + { + name:'manSchool', + type:'sum' + }, + { + name:'womanSchool', + type:'sum' + }, + { + name:'subtotalReplacement', + type:'sum' + }, + { + name:'manReplacement', + type:'sum' + }, + { + name:'womanReplacement', + type:'sum' + }, + { + name:'subtotalChange', + type:'sum' + }, + { + name:'manChange', + type:'sum' + }, + { + name:'womanChange', + type:'sum' + }, + { + name:'subtotalAccommodation', + type:'sum' + }, + { + name:'manAccommodation', + type:'sum' + }, + { + name:'womanAccommodation', + type:'sum' + } + ], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + }, + { + label: '删除标志位', + prop: 'delFlag', + hide: true, + }, + { + label: '部门名称', + prop: 'deptName' + }, + { + label: '部门编码', + prop: 'deptCode' + }, + { + label: '总班级数', + prop: 'classNum' + }, + { + label: '在校班级数', + prop: 'schoolNum' + }, + { + label: '顶岗班级数', + prop: 'replacementNum' + }, + { + label: '更岗班级数', + prop: 'changeNum' + }, + { + label: '总人数', + prop: 'allPeople' + }, + { + label: '小计(在校)', + prop: 'subtotalSchool' + }, + { + label: '注册(在校)', + prop: 'registerSchool' + }, + { + label: '借读(在校)', + prop: 'borrowingSchool' + }, + { + label: '男(在校)', + prop: 'manSchool' + }, + { + label: '女(在校)', + prop: 'womanSchool' + }, + { + label: '小计(顶岗)', + prop: 'subtotalReplacement' + }, + { + label: '男(顶岗)', + prop: 'manReplacement' + }, + { + label: '女(顶岗)', + prop: 'womanReplacement' + }, + { + label: '小计(更岗)', + prop: 'subtotalChange' + }, + { + label: '男(更岗)', + prop: 'manChange' + }, + { + label: '女(更岗)', + prop: 'womanChange' + }, + { + label: '小计(住宿)', + prop: 'subtotalAccommodation' + }, + { + label: '男(住宿)', + prop: 'manAccommodation' + }, + { + label: '女(住宿)', + prop: 'womanAccommodation' + }, + ] +} diff --git a/src/const/crud/statistics/stuPaymentHistory.js b/src/const/crud/statistics/stuPaymentHistory.js new file mode 100644 index 0000000..575cdf8 --- /dev/null +++ b/src/const/crud/statistics/stuPaymentHistory.js @@ -0,0 +1,146 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const PAY_STATUS=[ + {label:'未缴费',value:'0'}, + {label:'已缴费',value:'10'}, + {label:'未退费',value:'11'}, + {label:'已退费',value:'12'}, +] +const PAY_TYPE=[ + {label:'退费',value:'0'}, + {label:'缴费',value:'1'}, + +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + page:false, + showSummary:true, + menu:false, + sumColumnList: [ + { + name: 'money', + type: 'sum' + }, + { + name: 'paiedMoney', + type: 'sum' + }], + column: [ + + { + label: '缴费时间', + prop: 'payTime' + }, + { + label: '年份', + prop: 'year', + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'year', + valueFormat:'yyyy' + }, + { + label: '项目名称', + prop: 'id', + type:'select', + search:true, + dicUrl:'/finance/normalstuproject/getProjectList', + props:{ + label:'settingName', + value:'id' + } + }, + { + label: '班级', + prop: 'classCode', + search:true, + hide:true, + searchFilterable:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + } + }, + { + label: '学号', + prop: 'stuNo', + search:true + }, + { + label: '姓名', + prop: 'realName', + search:true + }, + + + { + label: '费用名称', + prop: 'projectName' + }, + { + label: '缴/退类型', + prop: 'typeValue', + }, + { + label: '缴/退类型', + prop: 'type', + type:"select", + hide:true, + search: true, + dicData:PAY_TYPE, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '应缴/应退金额', + prop: 'money' + }, + { + label: '实缴/实退金额', + prop: 'paiedMoney' + }, + { + label: '缴费状态', + prop: 'status', + type:"select", + search:true, + dicData:PAY_STATUS, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '备注', + prop: 'remark' + }, + ] +} diff --git a/src/const/crud/stuwork/accesscontrolfacesyncmachine.js b/src/const/crud/stuwork/accesscontrolfacesyncmachine.js new file mode 100755 index 0000000..797c02f --- /dev/null +++ b/src/const/crud/stuwork/accesscontrolfacesyncmachine.js @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableDataOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '学号/工号', + prop: 'stuNo', + search:true + }, + { + label: '图片64位编码', + prop: 'base64', + slot:true, + hide:true, + }, + { + label: '状态', + prop: 'status', + type:'select', + search:true, + dicUrl:'/admin/dict/item/type/sync_data_status', + props:{ + value:'value', + label:'label' + } + }, + { + label: '版本号', + prop: 'version', + hide:true + }, + { + label: '错误次数', + prop: 'errorNo' + }, + ] +} diff --git a/src/const/crud/stuwork/accesstrainclass.js b/src/const/crud/stuwork/accesstrainclass.js new file mode 100644 index 0000000..2317d59 --- /dev/null +++ b/src/const/crud/stuwork/accesstrainclass.js @@ -0,0 +1,131 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const stateDic=[ + {label:'待安保处审核',value:'0'}, + {label:'审核通过',value:'1'}, +] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '班级名称', + prop: 'className', + search:true, + rules: [{ + required: true, + trigger: 'blur', + message: "请填写班级名称" + }] + }, + { + label: '培训项目', + search:true, + prop: 'projectName', + rules: [{ + required: true, + trigger: 'blur', + message: "请填写培训项目" + }] + }, + { + label: '负责人', + prop: 'chargePeople', + hide:true, + formslot:true, + rules: [{ + required: true, + trigger: 'blur', + message: "请选择负责人" + }] + }, + { + label: '负责人', + prop: 'teacherName', + display:false, + search:true, + }, + { + label: '电话', + prop: 'phone', + display:false, + }, + { + label: '部门', + prop: 'deptName', + display:false, + }, + { + label: '开始日期', + prop: 'startDate', + search:true, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd' + }, + { + label: '结束日期', + prop: 'endDate', + search:true, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd' + }, + { + label: '预计人数', + prop: 'nums', + type:'number' + }, + { + label: '已报人数', + prop: 'realNums', + display:false, + slot: true, + }, + { + label: '二维码', + prop: 'code', + slot: true, + display:false + }, + { + label:'状态', + prop: 'state', + type:'select', + search:true, + dicData:stateDic, + props:{ + label:'label', + value:'value', + } + }, + { + label: '创建时间', + prop: 'createTime', + display:false, + }, + ] +} diff --git a/src/const/crud/stuwork/accesstrainpeople.js b/src/const/crud/stuwork/accesstrainpeople.js new file mode 100644 index 0000000..65f337b --- /dev/null +++ b/src/const/crud/stuwork/accesstrainpeople.js @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '姓名', + prop: 'realName', + search:true, + rules: [{ + required: true, + trigger: 'blur', + message: "请填写姓名" + }] + }, + { + label: '电话', + prop: 'phone', + search:true, + rules: [{ + required: true, + trigger: 'blur', + message: "请填写电话" + }] + }, + { + label: '单位', + prop: 'unit' + } + ] +} diff --git a/src/const/crud/stuwork/accessvisitorbase.js b/src/const/crud/stuwork/accessvisitorbase.js new file mode 100644 index 0000000..c838c11 --- /dev/null +++ b/src/const/crud/stuwork/accessvisitorbase.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '身份证号', + prop: 'idCard' + }, + { + label: '照片', + prop: 'avatar' + }, + ] +} diff --git a/src/const/crud/stuwork/accessvisitorextend.js b/src/const/crud/stuwork/accessvisitorextend.js new file mode 100644 index 0000000..f2dcd5a --- /dev/null +++ b/src/const/crud/stuwork/accessvisitorextend.js @@ -0,0 +1,136 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const YES_OR_NO=[ +{label:"是", value:"1"}, +{label:"否", value:"0"} +] + +const NUMS=[ + {label:"0次", value:0}, + {label:"1次", value:1}, + {label:"2次", value:2}, + {label:"3次", value:3} +] + +const RESULTS=[ + {label:"阴性", value:"0"}, + {label:"阳性", value:"1"}, + {label:"无", value:"2"}, +] + +const INFECTED_CONDITION=[ + {label:"阳已转阴", value:"0"}, + {label:"阳未转阴", value:"1"}, + {label:"未阳过", value:"2"}, +] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + labelWidth:400, + emptyBtn:false, + submitBtn:false, + dialogWidth:700, + column: [ + // { + // label: '疫苗接种次数', + // prop: 'vaccinesNums', + // type:'radio', + // dicData:NUMS, + // span:24 + // }, + { + label: '近7天内是否有发热、干咳、乏力、咽痛等症状?', + prop: 'healthUnnormal', + dicData:YES_OR_NO, + type:'radio', + span:24 + }, + // { + // label: '疫情感染情况', + // prop: 'infectedCondition', + // dicData:INFECTED_CONDITION, + // type:'radio', + // span:24 + // }, + // { + // label: '21天是否去过中高风险地区', + // prop: 'middleHigh', + // dicData:YES_OR_NO, + // type:'radio' + // }, + // { + // label: '接触备注说明', + // prop: 'middleHighAdress', + // span:24 + // }, + // { + // label: '境外中高风险旅居史', + // prop: 'outMiddleHigh', + // dicData:YES_OR_NO, + // type:'radio' + // }, + // { + // label: '境外旅居历史', + // prop: 'outMiddleAddress', + // span:24 + // }, + // { + // label: '假期去往城市', + // prop: 'holidayAddress', + // formslot:true, + // span:24, + // + // }, + // { + // label: '核酸检测结果', + // prop: 'nucleicResult', + // type:'radio', + // dicData:RESULTS + // }, + // { + // label: '最近核酸检测日期', + // prop: 'nucleicResultDate' + // }, + // { + // label: '接触过病例或者疫情地的人', + // prop: 'touchAddressPeople', + // dicData:YES_OR_NO, + // type:'radio' + // }, + // { + // label: '接触过发热病人', + // prop: 'touchUnnormalPeople', + // dicData:YES_OR_NO, + // type:'radio' + // }, + // { + // label: '接触过境外人员', + // prop: 'touchOutPeople', + // dicData:YES_OR_NO, + // type:'radio' + // }, + ] +} diff --git a/src/const/crud/stuwork/aceessinoutrecord.js b/src/const/crud/stuwork/aceessinoutrecord.js new file mode 100755 index 0000000..fe20732 --- /dev/null +++ b/src/const/crud/stuwork/aceessinoutrecord.js @@ -0,0 +1,189 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + menu:false, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '测量时间', + prop: 'createTime', + width:200, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标志位', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '租户id', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + // { + // label: '机器码', + // prop: 'machineNo', + // hide:true, + // addDisplay:false, + // editDisabled:true, + // editDisplay:false, + // visdiplay:false + // }, + { + label: '设备位置', + prop: 'machineNo', + search:true, + dicUrl:'/stuwork/aceessmachinebase/dict/list', + type:'select', + props:{ + label:'address', + value:'machineNo' + } + }, + { + label: '刷脸位置', + prop: 'faceLocation', + search:true, + hide:true, + type:'select', + dicUrl: '/admin/dict/item/type/face_location', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '工号/学号', + prop: 'username', + search:true + }, + { + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '体温', + prop: 'temperature', + }, + { + label: '用户类型', + prop: 'userType', + search:true, + dicUrl:'/admin/dict/item/type/sys_user_type', + type: 'select', + }, + { + label: '校外单位', + prop: 'outerCompanyId', + search:true, + searchFilterable:true, + filterable:true, + type:'select', + dicUrl:`/professional/outercompany/getList`, + props:{ + label:'companyName', + value:'id', + }, + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '是否非法进出', + prop: 'isIllegal', + slot:true, + // hide:true, + }, + { + label: '非法进出备注', + prop: 'isIllegalRemark', + // hide:true, + }, + { + label: '证件照片', + prop: 'oldPic', + slot:true + }, + { + label: '照片记录', + prop: 'avatar', + slot:true + }, + + ] +} diff --git a/src/const/crud/stuwork/aceessmachinebase.js b/src/const/crud/stuwork/aceessmachinebase.js new file mode 100755 index 0000000..b512208 --- /dev/null +++ b/src/const/crud/stuwork/aceessmachinebase.js @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + + { + label: '机器码', + prop: 'machineNo', + addDisplay:false, + editDisabled:true, + editDisplay:false, + }, + { + label: 'IP', + prop: 'ip', + addDisplay:false, + editDisabled:true, + editDisplay:false, + }, + { + label: '地址', + prop: 'address' + }, + { + label: '心跳请求时间', + prop: 'lastUpateTime', + addDisplay:false, + editDisabled:true, + editDisplay:false, + }, + { + label: '注册时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true, + editDisplay:false, + }, + { + label: '温度差', + prop: 'temp', + type:'number', + precision: 2 + }, + { + label: '状态', + prop: 'state', + type:'select', + dicUrl:'/admin/dict/item/type/machine_status', + props:{ + value:'value', + label:'label' + }, + addDisplay:false, + editDisabled:true, + editDisplay:false, + }, + { + label: '排序', + prop: 'sort', + type:'number', + precision: 0 + }, + { + label: '是否在线', + prop: 'onLine', + addDisplay:false, + editDisabled:true, + editDisplay:false, + }, + ] +} diff --git a/src/const/crud/stuwork/acessvisitorinout.js b/src/const/crud/stuwork/acessvisitorinout.js new file mode 100755 index 0000000..905abb0 --- /dev/null +++ b/src/const/crud/stuwork/acessvisitorinout.js @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const YES_OR_NO=[ + {label:"是",value:"1"}, + {label:"否",value:"0"}, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + menu:false, + column: [ + { + label: '访客姓名', + prop: 'realName', + search:true + }, + { + label: '电话', + prop: 'phone', + search:true + }, + { + label: '单位', + prop: 'unit', + search:true + }, + { + label: '身份证', + prop: 'idCard', + search:true + }, + { + label: '访问部门', + prop: 'deptName', + search:true + }, + { + label: '受访人工号', + prop: 'accessPeople', + search:true + }, + { + label: '受访人姓名', + prop: 'accessPeopleName', + search:true + }, + { + label: '进出时间', + prop: 'createTime', + type:'date', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + // { + // label: '进出时间', + // prop: 'comDate', + // type:'datetimerange', + // hide:true, + // format:'yyyy-MM-dd HH:mm:ss', + // valueFormat:'yyyy-MM-dd HH:mm:ss', + // search:true + // }, + { + label: '机器码', + prop: 'machineNo' + }, + { + label: '位置', + prop: 'machineAddress' + }, + { + label: '非法进出', + prop: 'isIllegal', + dicData:YES_OR_NO, + search:true, + type:'select', + props:{ + label:"label", + value:"value" + } + }, + { + label: '照片记录', + prop: 'avatar', + slot:true + }, + ] +} diff --git a/src/const/crud/stuwork/acessvisitorrecord.js b/src/const/crud/stuwork/acessvisitorrecord.js new file mode 100755 index 0000000..08ff1c8 --- /dev/null +++ b/src/const/crud/stuwork/acessvisitorrecord.js @@ -0,0 +1,555 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const days=[ + { + label:'一天', + value:'1' + }, + { + label:'两天', + value:'2' + }, + { + label:'三天', + value:'3' + }, +] + + +const STATUS=[ + {label:'待确认',value:'0'}, + {label:'确认完成,审核中',value:'1'}, + {label:'审核通过',value:'2'}, + {label:'驳回',value:'-1'} +] + +const SPECIAL_DATA=[ + {label:'否',value:'0'}, + {label:'是',value:'1'} +] + +// const VISITOR_TYPE=[ +// {label:"普通访客",value:"0"}, +// {label:"培训人员",value:"1"}, +// ] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '类别', + // prop: 'visitorType', + // type:"radio", + // dicData:VISITOR_TYPE, + // props:{ + // label:"label", + // value:"value" + // }, + // search:true, + // rules: [ + // { + // required: true, + // trigger: 'blur', + // message:"请选择类别" + // } + // ] + // }, + // { + // label: '需人工审核(健康码,行程码)', + // prop: 'isSpecial', + // search:true, + // type:'select', + // dicData:SPECIAL_DATA, + // props:[ + // {label:'label',value:'value'} + // ], + // display:false + // }, + { + label: '姓名', + prop: 'realName', + search:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"请填写姓名" + } + ] + }, + { + label: '电话号码', + prop: 'phone', + editDisabled:true, + search:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"请填写号码" + } + ] + }, + { + label: '身份证', + prop: 'idCard', + search:true, + display:false, + }, + { + label: '来访事由', + prop: 'reason', + }, + { + label: '车牌号', + prop: 'carNo', + search:true, + }, + { + label: '到访部门', + prop: 'deptName', + search:true, + editDisabled:true, + addDisplay:false + }, + { + label: '受访人', + prop: 'accessPeople', + search:true, + display:false + }, + { + label: '受访人类型', + prop: 'accessPeopleType', + search:true, + display:false, + type:'select', + dicData:[ + {label:"教职工",value:'1'}, + {label:"驻校人员",value:'3'}, + ] + }, + { + label: '受访人姓名', + prop: 'accessPeopleName', + display:false + + }, + { + label: '受访人电话', + prop: 'accessPhone', + display:false + + }, + { + label: '来访时间', + prop: 'comeDate', + type:'datetime', + hide:true, + search:true, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + display:false + }, + { + label: '来访时间', + prop: 'startTime', + type:'datetime', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择来访时间" + } + ] + }, + { + label: '有效期(天)', + prop: 'endDays', + display:false, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择有效期" + } + ] + }, + { + label: '截止日期', + prop: 'endTime', + type:'datetime', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择截止日期" + } + ] + }, + // { + // label: '自拍照', + // prop: 'avatar', + // addDisplay:false, + // slot:true, + // editDisplay:false, + // }, + { + label: '身份证', + prop: 'idCardUrl', + addDisplay:false, + slot:true, + editDisplay:false, + }, + // { + // label: '健康码', + // prop: 'healthCode', + // addDisplay:false, + // slot:true, + // editDisplay:false, + // }, + // { + // label: '行程码', + // prop: 'tripCode', + // addDisplay:false, + // slot:true, + // editDisplay:false, + // }, + // { + // label: '疫苗接种', + // prop: 'vaccinesImg', + // addDisplay:false, + // slot:true, + // editDisplay:false, + // }, + // { + // label: '核酸检测', + // prop: 'nuclePic', + // addDisplay:false, + // slot:true, + // editDisplay:false, + // }, + { + label: '状态', + prop: 'status', + type:'select', + search:true, + dicData:STATUS, + props:{ + label:'label', + value:'value' + }, + addDisplay:false, + editDisabled:true + }, + // { + // label: '是否有效', + // prop: 'inTime', + // type:'select', + // display:false, + // search:true, + // dicData:SPECIAL_DATA, + // props:{ + // label:'label', + // value:'value' + // }, + // addDisplay:false, + // editDisplay:false + // }, + // { + // label: '创建人', + // prop: 'createBy', + // addDisplay:false, + // editDisabled:true + // }, + { + label: '备注', + prop: 'remarks', + display:false + }, + { + label: '单位', + prop: 'unit', + search:true + }, + { + label: '创建时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true + }, + { + label: '信息完善', + prop: 'address', + slot:true, + formslot:true, + addDisplay:false, + editDisplay:false, + editDisabled:true + } + ] +} + + +export const trainTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '需人工审核(健康码,行程码)', + // prop: 'isSpecial', + // search:true, + // type:'select', + // dicData:SPECIAL_DATA, + // props:[ + // {label:'label',value:'value'} + // ], + // display:false + // }, + { + label: '培训班名称', + prop: 'trainClassName', + search:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"请填写培训班级名称" + } + ] + }, + { + label: '姓名', + prop: 'realName', + search:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"请填写姓名" + } + ] + }, + { + label: '电话号码', + prop: 'phone', + editDisabled:true, + search:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"请填写号码" + } + ] + }, + { + label: '身份证', + prop: 'idCard', + search:true, + hide:true, + display:false, + }, + { + label: '车牌号', + prop: 'carNo', + search:true, + }, + { + label: '培训部门', + prop: 'deptName', + search:true, + editDisabled:true, + addDisplay:false + }, + { + label: '审核人工号', + prop: 'accessPeople', + hide:true, + search:true, + display:false + + }, + { + label: '审核人', + prop: 'accessPeopleName', + display:false + + }, + { + label: '审核人电话', + prop: 'accessPhone', + hide:true, + display:false + + }, + { + label: '培训开始时间', + prop: 'comeDate', + type:'datetime', + hide:true, + search:true, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + display:false + }, + { + label: '培训开始时间', + prop: 'startTime', + type:'datetime', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择来访时间" + } + ] + }, + { + label: '有效期(天)', + prop: 'endDays', + hide:true, + display:false, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择有效期" + } + ] + }, + { + label: '培训截止日期', + prop: 'endTime', + type:'datetime', + format:'yyyy-MM-dd HH:mm:ss', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择截止日期" + } + ] + }, + // { + // label: '自拍照', + // prop: 'avatar', + // hide:true, + // addDisplay:false, + // slot:true, + // editDisplay:false, + // }, + { + label: '身份证', + prop: 'idCardUrl', + addDisplay:false, + slot:true, + editDisplay:false, + }, + // { + // label: '健康码', + // prop: 'healthCode', + // addDisplay:false, + // slot:true, + // editDisplay:false, + // }, + // { + // label: '行程码', + // prop: 'tripCode', + // addDisplay:false, + // slot:true, + // editDisplay:false, + // }, + // { + // label: '疫苗接种', + // prop: 'vaccinesImg', + // addDisplay:false, + // slot:true, + // editDisplay:false, + // }, + // { + // label: '核酸检测', + // prop: 'nuclePic', + // addDisplay:false, + // slot:true, + // editDisplay:false, + // }, + { + label: '状态', + prop: 'status', + type:'select', + search:true, + dicData:STATUS, + props:{ + label:'label', + value:'value' + }, + addDisplay:false, + editDisabled:true + }, + // { + // label: '创建人', + // prop: 'createBy', + // addDisplay:false, + // editDisabled:true + // }, + { + label: '备注', + prop: 'remarks', + display:false + }, + { + label: '创建时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true + }, + { + label: '信息完善', + prop: 'address', + slot:true, + formslot:true, + addDisplay:false, + editDisplay:false, + editDisabled:true + } + ] +} diff --git a/src/const/crud/stuwork/activityawards.js b/src/const/crud/stuwork/activityawards.js new file mode 100644 index 0000000..5777896 --- /dev/null +++ b/src/const/crud/stuwork/activityawards.js @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + + { + label: '活动主题', + prop: 'activityInfo' + }, + { + label: '学号', + prop: 'userName' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '获奖信获奖时间', + prop: 'month' + }, + { + label: '获奖信息', + prop: 'awards' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/stuwork/activityinfo.js b/src/const/crud/stuwork/activityinfo.js new file mode 100644 index 0000000..3a1afb8 --- /dev/null +++ b/src/const/crud/stuwork/activityinfo.js @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '活动主题', + prop: 'activityTheme', + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入活动主题" + }] + }, + { + label: '活动说明', + prop: 'remarks', + labelWidth:120, + type:'textarea', + span:24, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入活动说明" + }] + }, + { + label: '活动兼报数', + prop: 'maxSub', + labelWidth:120, + type:'number', + // formslot: true, + minRows:1, + maxRows:100 + }, + + { + label:'开始时间', + prop:'startTime', + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + }, + { + label:'结束时间', + prop:'endTime', + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + }, + // { + // label:'状态', + // prop:'status', + // addDisplay:false, + // editDisplay:false, + // slot:true + // }, + ] +} diff --git a/src/const/crud/stuwork/activityinfosub.js b/src/const/crud/stuwork/activityinfosub.js new file mode 100644 index 0000000..868b980 --- /dev/null +++ b/src/const/crud/stuwork/activityinfosub.js @@ -0,0 +1,177 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '学院', + prop: 'deptCode', + hide:true, + labelWidth:120, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '活动主题', + prop: 'activityInfoId', + labelWidth:120, + search:true, + searchFilterable:true, + type:'select', + dicUrl:'/stuwork/activityinfo/activityInfoList', + props:{ + label:'activityTheme', + value:'id' + } + }, + { + label: '子项目名称', + prop: 'subTitle', + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入子项目名称" + }] + }, + { + label: '学院名称', + prop: 'deptName', + hide:true, + addDisplay:false, + editDisplay:false + }, + { + label: '项目描述', + prop: 'projectDescription', + width:350, + addDisplay:false, + editDisplay:false + }, + { + label:'班号', + prop:'classNo', + hide:true, + labelWidth:120, + formslot: true + }, + { + label:'班级', + prop:'classCode', + labelWidth:120, + hide:true, + formslot: true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择班级" + }] + }, + { + label: '班主任', + prop: 'classMasterName', + hide:true, + formslot: true, + labelWidth:120, + // filterable:true, + // type:"select", + // dicUrl:'/professional/teacherbase/TeacherBaseList', + // props:{ + // label:'realName', + // value:'realName' + // }, + }, + { + label: '开始时间', + prop: 'startTime', + labelWidth:120, + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label: '结束时间', + prop: 'endTime', + labelWidth:120, + type:'datetime', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + }, + { + label: '报名人数限制', + prop: 'maxNum', + labelWidth:120, + type:'number', + minRows:0, + // formslot: true + }, + { + label: '活动说明', + prop: 'remarks', + labelWidth:120, + type:'textarea', + span:24, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入活动说明" + }] + }, + ] +} diff --git a/src/const/crud/stuwork/activityinfosubsignup.js b/src/const/crud/stuwork/activityinfosubsignup.js new file mode 100644 index 0000000..794a8cd --- /dev/null +++ b/src/const/crud/stuwork/activityinfosubsignup.js @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '活动主题', + prop: 'activityInfoId', + labelWidth:120, + search:true, + searchFilterable:true, + type:'select', + dicUrl:'/stuwork/activityinfo/activityInfoList', + props:{ + label:'activityTheme', + value:'id' + } + }, + { + label: '子项目', + prop: 'activityInfoSubId', + labelWidth:120, + search:true, + searchFilterable:true, + type:'select', + dicUrl:'/stuwork/activityinfosub/activityInfoSubList', + props:{ + label:'subTitle', + value:'id' + } + }, + { + label: '项目描述', + prop: 'remarks', + }, + { + label: '学号/工号', + prop: 'userName', + search:true, + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '学院名称', + prop: 'deptName' + }, + { + label: '班号', + prop: 'classNo' + }, + { + label: '班主任', + prop: 'classMasterName' + }, + { + label: '联系电话', + prop: 'phone' + }, + ] +} diff --git a/src/const/crud/stuwork/assessmentcategory.js b/src/const/crud/stuwork/assessmentcategory.js new file mode 100644 index 0000000..89c2764 --- /dev/null +++ b/src/const/crud/stuwork/assessmentcategory.js @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '考核项名称', + prop: 'category', + labelWidth:120, + span:12, + rules: [{ + required: true, + message: '请填写考核项名称', + trigger: 'blur' + }] + }, + { + label: '考核类型', + prop: 'type', + labelWidth:120, + type:'select', + search:true, + span: 12, + dicUrl: '/admin/dict/item/type/assessment_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '请选择考核类型', + trigger: 'blur' + }] + + }, + ] +} diff --git a/src/const/crud/stuwork/assessmentpoint.js b/src/const/crud/stuwork/assessmentpoint.js new file mode 100644 index 0000000..e0d103b --- /dev/null +++ b/src/const/crud/stuwork/assessmentpoint.js @@ -0,0 +1,116 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '考核项', + prop: 'categortyId', + labelWidth:120, + dicUrl: '/stuwork/assessmentcategory/list', + type:'select', + props:{ + label:'category', + value:'id' + }, + rules: [{ + required: true, + message: '请填写考核项', + trigger: 'blur' + }] + }, + { + label: '指标名称', + prop: 'pointName', + labelWidth:120, + search:true, + rules: [{ + required: true, + message: '请填写指标名称', + trigger: 'blur' + }] + }, + { + label: '评分标准', + prop: 'standard', + labelWidth:120, + type:'textarea', + span:24, + rules: [{ + required: true, + message: '请填写评分标准', + trigger: 'blur' + }] + }, + // { + // label: '默认扣分值', + // labelWidth:120, + // prop: 'score', + // type:'number', + // rules: [{ + // required: true, + // message: '请填写默认扣分值', + // trigger: 'blur' + // }] + // }, + { + label: '备注', + labelWidth:120, + prop: 'remarks', + type:'textarea', + span:24 + }, + ] +} diff --git a/src/const/crud/stuwork/attendanceanalyse.js b/src/const/crud/stuwork/attendanceanalyse.js new file mode 100755 index 0000000..4419cd9 --- /dev/null +++ b/src/const/crud/stuwork/attendanceanalyse.js @@ -0,0 +1,306 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +export const deptAttenceOption = { + border: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '点名类型', + prop: 'orderType', + hide:true, + }, + { + label: '日期', + prop: 'orderDate', + hide:true, + }, + { + label: '系部', + prop: 'deptName', + width:150 + }, + { + label: '应到', + prop: 'shouldNum' + }, + { + label: '实到', + prop: 'realNum' + }, + { + label: '实到率', + prop: 'realRate' + }, + { + label: '签到率', + prop: 'signRate' + }, + { + label: '迟到', + prop: 'lateNum' + }, + { + label: '请假晚到', + prop: 'aflNum' + }, + { + label: '事假', + prop: 'thingNum' + }, + { + label: '病假', + prop: 'sickNum' + }, + { + label: '旷课', + prop: 'truanceNum', + slot: true + }, + { + label: '失联', + prop: 'outContactNum', + slot: true + }, + { + label: '校内请假', + prop: 'schoolThingNum' + }, + { + label: '未考勤', + prop: 'noAttendNum' + }, + { + label: '未考勤且未扫脸', + prop: 'noAttendAndFace', + slot: true + }, + { + label: '未扫脸', + prop: 'noFaceNum', + slot: true + }, + ] +} + + +export const classAttenceOption = { + border: true, + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + top:0, + column: [ + { + label: '班级', + prop: 'classNo', + }, + { + label: '班级名称', + prop: 'className', + width:150 + }, + { + label: '班主任', + prop: 'teacherName', + }, + { + label: '考勤确认时间', + prop: 'createTime', + width:200, + sortable:true, + + }, + { + label: '应到', + prop: 'shouldNum' + }, + { + label: '实到', + prop: 'realNum' + }, + { + label: '迟到', + prop: 'lateNum' + }, + { + label: '请假晚到', + prop: 'aflNum' + }, + { + label: '事假', + prop: 'thingNum' + }, + { + label: '病假', + prop: 'sickNum' + }, + { + label: '旷课', + prop: 'truanceNum' + }, + { + label: '失联', + prop: 'outContactNum' + }, + { + label: '校内请假', + prop: 'schoolThingNum' + }, + { + label: '未考勤', + prop: 'noAttendNum' + }, + { + label: '未考勤且未扫脸', + prop: 'noAttendAndFace' + }, + { + label: '未扫脸 ', + prop: 'noFaceNum', + slot: true + }, + ] +} + + +export const classDetailAttenceOption = { + border: true, + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + column: [ + { + label: '姓名', + prop: 'stuName', + }, + { + label: '考勤类型', + prop: 'attendanceType', + type:'select', + dicUrl:'/admin/dict/item/type/attend_type', + props:{ + label:'label', + value:'value' + } + }, + { + label: '是否住宿', + prop: 'isStayDorm', + }, + { + label: '宿舍号', + prop: 'roomNo', + }, + { + label: '是否扫脸', + prop: 'isDeviceIn', + slot:true + }, + { + label: '落实情况', + prop: 'lsRemarks', + } + ] +} + + +//班主任 看 班级 +export const teacherClassAttendanceOption = { + border: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '点名类型', + prop: 'orderType', + hide:true, + }, + { + label: '日期', + prop: 'date', + width:150 + }, + { + label: '应到', + prop: 'shouldNum' + }, + { + label: '实到', + prop: 'realNum' + }, + { + label: '实到率', + prop: 'realRate' + }, + { + label: '点名率', + prop: 'signRate' + }, + { + label: '迟到', + prop: 'lateNum' + }, + { + label: '请假晚到', + prop: 'aflNum' + }, + { + label: '事假', + prop: 'thingNum' + }, + { + label: '病假', + prop: 'sickNum' + }, + { + label: '旷课', + prop: 'truanceNum' + }, + { + label: '失联', + prop: 'outContactNum' + }, + { + label: '校内请假', + prop: 'schoolThingNum' + }, + { + label: '未考勤', + prop: 'noAttendNum' + }, + ] +} diff --git a/src/const/crud/stuwork/avatarerror.js b/src/const/crud/stuwork/avatarerror.js new file mode 100644 index 0000000..96c0d09 --- /dev/null +++ b/src/const/crud/stuwork/avatarerror.js @@ -0,0 +1,159 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标志位', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '租户id', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '备注', + prop: 'remarks', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '工号/学号', + prop: 'username' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '用户类型', + prop: 'userType', + dicUrl:'/admin/dict/item/type/sys_user_type', + type: 'select', + }, + { + label: '上报设备号', + prop: 'machineNo' + }, + { + label: '上报位置', + prop: 'machineAddress' + }, + { + label: '上报更新包', + prop: 'packageId' + }, + { + label: '部门', + prop: 'deptCode', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '部门名称', + prop: 'deptName' + }, + { + label: '班号', + prop: 'classCode' + }, + { + label: '班主任工号', + prop: 'classMasterCode', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '班主任', + prop: 'classMasterName' + }, + ] +} diff --git a/src/const/crud/stuwork/avatarpackagemachine.js b/src/const/crud/stuwork/avatarpackagemachine.js new file mode 100644 index 0000000..abe654f --- /dev/null +++ b/src/const/crud/stuwork/avatarpackagemachine.js @@ -0,0 +1,125 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标志位', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '租户id', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '文件名称', + prop: 'packageName' + }, + { + label: '打包ID', + prop: 'packageId' + }, + { + label: '包类型', + prop: 'packageType', + dicUrl:'/admin/dict/item/type/avatar_package_type', + type: 'select', + }, + { + label: '设备号', + prop: 'machineNo', + dicUrl:`/stuwork/aceessmachinebase/dict/list`, + type: 'select', + props:{ + label:'address', + value:'machineNo', + }, + search:true, + }, + { + label: '设备-包是否已同步', + prop: 'asynced', + dicUrl:'/admin/dict/item/type/avatar_package_async', + type: 'select', + }, + ] +} diff --git a/src/const/crud/stuwork/buildingassemblyroom.js b/src/const/crud/stuwork/buildingassemblyroom.js new file mode 100644 index 0000000..3de45b0 --- /dev/null +++ b/src/const/crud/stuwork/buildingassemblyroom.js @@ -0,0 +1,126 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '场地位置', + prop: 'mansionId', + labelWidth:120, + type:'select', + dicUrl: '/stuwork/buildingmansion/list', + props: { + label: 'mansionName', + value: 'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择位置" + }] + }, + { + label: '场地名称', + prop: 'assemblyRoom', + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入场地名称" + }] + }, + { + label: '部门', + prop: 'deptCode', + labelWidth:120, + formslot: true, + type:'select', + dicUrl:'/basic/basicdept/getDeptList?deptLevel=2', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '负责人', + prop: 'teacherNo', + labelWidth:120, + hide:true, + formslot: true, + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + }, + { + label: '负责人', + prop: 'realName', + addDisplay:false, + editDisplay:false, + }, + { + label: '联系电话', + prop: 'phone', + labelWidth:120, + }, + ] +} diff --git a/src/const/crud/stuwork/buildingassemblyroomapply.js b/src/const/crud/stuwork/buildingassemblyroomapply.js new file mode 100644 index 0000000..12230d9 --- /dev/null +++ b/src/const/crud/stuwork/buildingassemblyroomapply.js @@ -0,0 +1,485 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import {YES_OR_NO} from "../contract/contracttype"; +import {number} from "echarts/src/export"; + +export const TYPE_=[ + { + label:'培训项目', + value:'1' + }, + { + label:'非培训项目', + value:'2' + } +] +export const PROC_STATUS=[ + { + label:'待审核', + value:'0' + }, + { + label:'驳回', + value:'1' + }, + { + label:'撤销', + value:'2' + }, + { + label:'通过', + value:'3' + }, +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:700, + maxHeight:600, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '位置', + prop: 'mansionId', + labelWidth:120, + formslot: true, + editDisabled:true, + search:true, + type:'select', + dicUrl: '/stuwork/buildingmansion/list', + props: { + label: 'mansionName', + value: 'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择位置" + }] + }, + { + label: '位置名称', + prop: 'mansionName', + labelWidth:120, + editDisabled:true, + hide:true, + addDisplay:false, + editDisplay:false + }, + { + label: '场地', + prop: 'assemblyRoomId', + labelWidth:120, + editDisabled:true, + search:true, + formslot: true, + type:'select', + dicUrl: '/stuwork/buildingassemblyroom/list', + props: { + label: 'assemblyRoom', + value: 'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择场地" + }] + }, + { + label: '场地名称', + prop: 'assemblyRoomName', + labelWidth:120, + editDisabled:true, + hide:true, + addDisplay:false, + editDisplay:false + }, + { + label:'使用日期', + prop:'reserveDate', + labelWidth:120, + editDisabled:true, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + message: "请填写日期", + trigger: "blur" + }], + }, + { + label: '使用时间', + prop: 'timeId', + labelWidth:120, + formslot: true, + editDisabled:true, + // rules: [{ + // required: true, + // message: "请时间", + // trigger: "blur" + // }], + }, + + { + label: '部门', + prop: 'deptCode', + labelWidth:120, + editDisabled:true, + formslot: true, + type:'select', + dicUrl:'/basic/basicdept/getDeptList?deptLevel=2', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '部门名称', + prop: 'deptName', + labelWidth:120, + editDisabled:true, + hide:true, + addDisplay:false, + editDisplay:false + }, + { + label: '对接人', + prop: 'oppositeNo', + labelWidth:120, + editDisabled:true, + formslot: true, + type:'select', + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入对接人" + }] + }, + { + label: '对接人姓名', + prop: 'oppositePerson', + labelWidth:120, + editDisabled:true, + hide:true, + addDisplay:false, + editDisplay:false + }, + { + label: '手机号', + prop: 'phone', + labelWidth:120, + editDisabled:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入手机号" + }] + }, + { + label: '类型', + prop: 'type', + labelWidth:120, + type:'select', + editDisabled:true, + dicData:TYPE_, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '项目标题', + prop: 'projectSynopsis', + labelWidth:120, + editDisabled:true, + type:'textarea', + span:18, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入项目情况" + }] + }, + { + label: '项目人数', + prop: 'projectPersonNum', + labelWidth:120, + editDisabled:true, + span:18, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入项目人数" + }] + }, + // { + // label: '布置会场日期时间', + // prop: 'prepareTime', + // labelWidth:120, + // editDisabled:true, + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请输入手机号" + // }] + // }, + { + label: '横幅字幕内容', + prop: 'subtitle', + labelWidth:120, + editDisabled:true, + }, + // { + // label: '话筒数量', + // prop: 'microphoneNum', + // labelWidth:120, + // editDisabled:true, + // type:'number', + // minRows:0, + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请输入话筒数量" + // }] + // }, + + + + { + label: '手持话筒数量', + prop: 'handMicrophoneNum', + labelWidth:120, + editDisabled:true, + type:'number', + maxRows:4, + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入话筒数量" + }] + }, + { + label: '头戴话筒数量', + prop: 'headMicrophoneNum', + labelWidth:120, + editDisabled:true, + type:'number', + maxRows:4, + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入话筒数量" + }] + }, + { + label: '立式话筒数量', + prop: 'standMicrophoneNum', + labelWidth:120, + editDisabled:true, + type:'number', + maxRows:2, + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入话筒数量" + }] + }, + { + label: '吊式话筒数量', + prop: 'hangMicrophoneNum', + labelWidth:120, + editDisabled:true, + type:'number', + maxRows:1, + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入话筒数量" + }] + }, + { + label: '台式话筒数量', + prop: 'tableMicrophoneNum', + labelWidth:120, + editDisabled:true, + type:'number', + maxRows:8, + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入话筒数量" + }] + }, + { + label: '要求', + prop: 'requireDescribe', + labelWidth:120, + editDisabled:true, + type:'textarea', + span:18, + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请输入要求" + // }] + }, + { + label: '布置会场日期时间等其他需求', + prop: 'otherRequire', + labelWidth:120, + editDisabled:true, + type:'textarea', + span:18, + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请输入要求" + // }] + }, + { + label: '费用', + prop: 'cost', + labelWidth:120, + editDisabled:true, + }, + { + label: '结束检查记录', + prop: 'endInspectionRecord', + labelWidth:120, + type:'textarea', + span:18, + addDisplay:false, + + }, + { + label: '赔偿金额(元)', + prop: 'compensation', + labelWidth:120, + addDisplay:false, + type:'number', + precision: 2, + minRows:0, + }, + { + label: '总金额(元)', + prop: 'totalAmount', + labelWidth:120, + addDisplay:false, + editDisabled:true, + type:'number', + precision: 2, + min:0, + }, + { + label: '检查人', + prop: 'inspectorNo', + labelWidth:120, + addDisplay:false, + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + }, + { + label: '检查人', + prop: 'inspector', + labelWidth:120, + addDisplay:false, + editDisplay:false, + hide:true + }, + { + label: '检查人电话', + prop: 'inspectorPhone', + labelWidth:120, + addDisplay:false, + }, + { + label: '状态', + prop: 'procStatus', + addDisplay:false, + editDisplay:false, + search:true, + type:'select', + dicData:PROC_STATUS, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '流程ID', + prop: 'procInsId', + hide:true, + addDisplay:false, + editDisplay:false, + }, + ] +} diff --git a/src/const/crud/stuwork/buildingassemblyroomtime.js b/src/const/crud/stuwork/buildingassemblyroomtime.js new file mode 100644 index 0000000..dab1400 --- /dev/null +++ b/src/const/crud/stuwork/buildingassemblyroomtime.js @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '场地位置', + prop: 'mansionId', + labelWidth:120, + formslot: true, + search:true, + type:'select', + dicUrl: '/stuwork/buildingmansion/list', + props: { + label: 'mansionName', + value: 'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择位置" + }] + }, + { + label: '场地', + prop: 'assemblyRoomId', + labelWidth:120, + search:true, + formslot: true, + type:'select', + dicUrl: '/stuwork/buildingassemblyroom/list', + props: { + label: 'assemblyRoom', + value: 'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择场地" + }] + }, + { + label: '使用时间段', + prop: 'timeQuantum', + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择位置" + }] + }, + { + label: '费用', + prop: 'workingCost', + labelWidth:120, + type:'number', + minRows:0, + precision:2, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择位置" + }] + }, + ] +} diff --git a/src/const/crud/stuwork/buildingmansion.js b/src/const/crud/stuwork/buildingmansion.js new file mode 100644 index 0000000..38d9e73 --- /dev/null +++ b/src/const/crud/stuwork/buildingmansion.js @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '位置名称', + prop: 'mansionName', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入位置名称" + }] + }, + { + label: '部门', + prop: 'deptCode', + formslot: true, + type:'select', + dicUrl:'/basic/basicdept/getDeptList?deptLevel=2', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择部门" + }] + }, + { + label: '负责人', + prop: 'teacherNo', + formslot: true, + hide:true, + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入负责人" + }] + }, + { + label: '负责人', + prop: 'realName', + addDisplay:false, + editDisplay:false, + }, + { + label: '联系电话', + prop: 'phone', + // labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入联系电话" + }] + }, + ] +} diff --git a/src/const/crud/stuwork/classactivity.js b/src/const/crud/stuwork/classactivity.js new file mode 100644 index 0000000..284b403 --- /dev/null +++ b/src/const/crud/stuwork/classactivity.js @@ -0,0 +1,193 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" +import {number} from "echarts/src/export"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:600, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + type: 'select', + addDisplay: false, + editDisabled: true, + // search:true, + dicUrl: '/basic/basicyear/queryAllSchoolYear', + props: { + label: 'year', + value: 'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message: "选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + type: 'select', + addDisplay: false, + editDisabled: true, + // search:true, + dicUrl: '/admin/dict/item/type/school_term', + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message: "选择学期" + }] + }, + { + label: '班号', + prop: 'classCode', + searchFilterable: true, + filterable: true, + search: true, + type: 'select', + dicUrl: '/basic/basicclass/listByRole', + props: { + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + message: '请填写班级代码', + trigger: 'blur' + }] + }, + + { + label: '活动主题', + prop: 'themeName', + rules: [{ + required: true, + message: '请填写活动主题', + trigger: 'blur' + }] + // type:'select', + // dicUrl:'/stuwork/classactivitytheme/list', + // props:{ + // label:'themeName', + // value:'id' + // }, + }, + { + label: '主持人', + prop: 'author', + rules: [{ + required: true, + trigger: 'blur', + message: "选择学期" + }] + }, + { + label:'活动时间', + prop:'activityTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + }, + + { + label: '活动地点', + prop: 'address', + rules: [{ + required: true, + trigger: 'blur', + message: "选择学期" + }] + }, + { + label: '参加人数', + prop: 'attendNum', + type: 'number', + minRows: 0, + rules: [{ + required: true, + trigger: 'blur', + message: "请输入参与人数" + }] + }, + { + label: '活动内容', + prop: 'content', + formslot:true, + hide:true, + span:24, + type:'textarea' + }, + { + label: '活动图片', + prop: 'attachment', + slot: true, + formslot: true + }, + { + label: '活动图片2', + prop: 'attachment2', + slot: true, + formslot: true + }, + ] +} diff --git a/src/const/crud/stuwork/classactivitytheme.js b/src/const/crud/stuwork/classactivitytheme.js new file mode 100644 index 0000000..28d5d67 --- /dev/null +++ b/src/const/crud/stuwork/classactivitytheme.js @@ -0,0 +1,120 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + + { + label: '学年', + prop: 'schoolYear', + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + { + label: '活动主题', + prop: 'themeName' + }, + { + label: '主题分类', + prop: 'themeType', + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/theme_type', + props:{ + label:'label', + value:'value' + } + }, + ] +} diff --git a/src/const/crud/stuwork/classassessmentsettle.js b/src/const/crud/stuwork/classassessmentsettle.js new file mode 100644 index 0000000..e411195 --- /dev/null +++ b/src/const/crud/stuwork/classassessmentsettle.js @@ -0,0 +1,128 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + type:'select', + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + { + label: '班号', + prop: 'classCode', + searchFilterable:true, + filterable:true, + search:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + message: '请填写班级代码', + trigger: 'blur' + }] + }, + // { + // label: '班号', + // prop: 'virtualClassNo', + // type:'select', + // dicUrl:'/basic/basicclass/list', + // props:{ + // label: 'classNo', + // value: 'classCode', + // }, + // }, + ] +} diff --git a/src/const/crud/stuwork/classassets.js b/src/const/crud/stuwork/classassets.js new file mode 100644 index 0000000..0fd3413 --- /dev/null +++ b/src/const/crud/stuwork/classassets.js @@ -0,0 +1,199 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {number} from "echarts/src/export"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + showSummary: true, + sumColumnList: [ + { + label:'人数总计:', + name: 'stuNum', + type: 'sum', + // decimals:1 + }, + + ], + column: [ + { + label:'学院', + prop: 'deptName', + labelWidth: 120, + addDisplay:false, + editDisplay:false, + span: 12, + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptName' + }, + }, + { + label: '班号', + prop: 'classCode', + labelWidth: 120, + searchFilterable:true, + filterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择班级" + }] + }, + { + label: '教室位置', + prop: 'position', + labelWidth: 120, + addDisplay:false, + editDisplay:false + }, + { + label: '人数', + prop: 'stuNum', + labelWidth: 120, + addDisplay:false, + editDisplay:false + }, + { + label: '班主任', + prop: 'teacherRealName', + addDisplay:false, + editDisplay:false + }, + { + label: '讲台类型', + prop: 'platformType', + labelWidth: 120, + search:true, + type:"select", + dicUrl:'/admin/dict/item/type/platform_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择讲台类型" + }] + }, + { + label: '投影类型', + prop: 'tyType', + search:true, + labelWidth: 120, + type:"select", + dicUrl:'/admin/dict/item/type/ty_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择投影类型" + }] + }, + { + label: '电视机', + prop: 'tvType', + search:true, + labelWidth: 120, + type:"select", + dicUrl:'/admin/dict/item/type/tv_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择电视机" + }] + }, + // { + // label: '吊扇正常数量', + // prop: 'ceilingFanOkCnt', + // labelWidth: 120, + // type:'number', + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请填写吊扇正常数量" + // }] + // }, + // { + // label: '吊扇损坏数量', + // prop: 'ceilingFanErrorCnt', + // labelWidth: 120, + // type:'number', + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请填写吊扇损坏数量" + // }] + // }, + { + label: '方凳数量', + prop: 'chairCnt', + labelWidth: 120, + type:'number', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写方凳数量" + }] + }, + { + label: '方凳缺少数量', + prop: 'chairCntLack', + }, + { + label: '课桌数量', + prop: 'tableCnt', + labelWidth: 120, + type:'number', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写课桌数量" + }] + }, + { + label: '方凳缺少数量', + prop: 'tableCntLack', + }, + ] +} diff --git a/src/const/crud/stuwork/classattendance.js b/src/const/crud/stuwork/classattendance.js new file mode 100755 index 0000000..201a186 --- /dev/null +++ b/src/const/crud/stuwork/classattendance.js @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from '@/components/tools/commondict' + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + selection:true, + column: [ + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '联系电话', + prop: 'phone' + }, + { + label: '家长联系电话1', + prop: 'parentPhoneA' + }, + { + label: '家长联系电话2', + prop: 'parentPhoneB' + }, + { + label: '学生状态', + prop: 'stuStatus', + type: 'select', + dicUrl:'/admin/dict/item/type/student_status', + props:{ + label:'label', + value:'value' + } + }, + { + label: '考勤类型', + prop: 'attendanceType', + slot:true + }, + { + label: '是否住宿', + prop: 'isRoom' + }, + { + label: '宿舍号', + prop: 'roomNo' + }, + { + label: '是否扫脸', + prop: 'isDeviceIn', + type:'select', + dicData:global.YES_OR_NO + }, + ] +} diff --git a/src/const/crud/stuwork/classattendancedetail.js b/src/const/crud/stuwork/classattendancedetail.js new file mode 100755 index 0000000..6e3f6fb --- /dev/null +++ b/src/const/crud/stuwork/classattendancedetail.js @@ -0,0 +1,171 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '租户ID', + prop: 'tenantId' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '班级考勤ID', + prop: 'attendanceId' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '考勤类型', + prop: 'attendanceType' + }, + { + label: '宿舍号', + prop: 'roomNo' + }, + { + label: '是否留宿 0:否 1:是', + prop: 'stayDorm' + }, + { + label: '请假事由', + prop: 'leaveReason' + }, + { + label: '请假开始时间', + prop: 'leaveStartTime' + }, + { + label: '请假结束时间', + prop: 'leaveEndTime' + }, + ] +} + +export const stutruantstatistics = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + type:'select', + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + }, + { + label:'学院', + prop:'deptCode', + search:true, + viewDisplay:false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + hide: true + + }, + { + label: '班号', + prop: 'classNo', + search:true, + + }, + { + label: '旷课人次', + prop: 'truancyNums', + sortable:true, + width:200, + }, + { + label: '失联人次', + prop: 'outContactNums', + sortable:true, + width:200, + }, + ] +} diff --git a/src/const/crud/stuwork/classcheckdaily.js b/src/const/crud/stuwork/classcheckdaily.js new file mode 100644 index 0000000..c314c64 --- /dev/null +++ b/src/const/crud/stuwork/classcheckdaily.js @@ -0,0 +1,214 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + labelWidth:120, + type:'select', + hide:true, + // search:true, + addDisplay:false, + editDisplay:false, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + type:'select', + hide:true, + addDisplay:false, + editDisplay:false, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学期" + }] + }, + { + label:'学院', + labelWidth:120, + prop:'deptName', + addDisplay:false, + editDisplay:false + }, + { + label:'学院', + hide:true, + prop:'deptCode', + search:true, + addDisplay:false, + editDisplay:false, + editDisabled: true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptName' + }, + }, + { + label: '班号', + prop: 'classCode', + editDisabled:true, + search:true, + labelWidth:120, + searchFilterable:true, + formslot:true, + slot:true + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请输入班级代码" + // }] + }, + { + label: '学生', + prop: 'stuNo', + editDisabled:true, + hide:true, + labelWidth:120, + formslot:true, + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请输入学生" + // }] + }, + { + label:'学生', + prop:'realName', + addDisplay:false, + editDisplay:false, + searchFilterable:true, + search:true, + }, + { + label: '记录时间', + prop: 'recordTime', + labelWidth:120, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入记录时间" + }] + }, + { + label: '分数', + prop: 'score', + labelWidth:120, + // formslot:true, + minRows:-20, + maxRows:20, + type:'number', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入分数" + }] + }, + { + label: '检查记录', + labelWidth:120, + type:'textarea', + span:240, + prop: 'note', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入检查记录" + }] + }, + { + label: '处理结果', + labelWidth:120, + addDisplay:false, + editDisplay:false, + type:'textarea', + span:240, + prop: 'processingResult', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入检查记录" + }] + }, + ] +} diff --git a/src/const/crud/stuwork/classconstruction.js b/src/const/crud/stuwork/classconstruction.js new file mode 100644 index 0000000..df6024a --- /dev/null +++ b/src/const/crud/stuwork/classconstruction.js @@ -0,0 +1,107 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + dialogHeight:700, + + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + type:"select", + search:true, + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + addDisplay:false, + editDisplay:false, + }, + { + label: '班级', + prop: 'classNo', + type:"select", + searchFilterable:true, + search:true, + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classNo', + }, + addDisplay:false, + editDisplay:false, + }, + { + label: '标题', + prop: 'title', + span:24, + search:true, + rules: [{ + required: true, + message: "请填写标题", + trigger: "blur" + }] + }, + // { + // label: '附件上传', + // prop: 'fileUrls', + // span:24, + // hide:true, + // slot:true, + // formslot:true + // }, + { + label: '内容', + prop: 'content', + hide:true, + formslot:true, + span:24, + type:'textarea', + rules: [{ + required: true, + message: "请填写内容", + trigger: "blur" + }] + }, + { + label: '创建时间', + prop: 'createTime', + addDisplay:false, + editDisplay:false, + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + }, + + ] +} diff --git a/src/const/crud/stuwork/classconstructionfile.js b/src/const/crud/stuwork/classconstructionfile.js new file mode 100644 index 0000000..eaa2f4a --- /dev/null +++ b/src/const/crud/stuwork/classconstructionfile.js @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '附件名称', + prop: 'title', + rules: [{ + required: true, + message: '附件名称不能为空', + trigger: 'blur' + } + ] + }, + { + label: '附件上传', + prop: 'fileUrl', + span:24, + hide:true, + slot:true, + formslot:true + }, + { + label: '备注', + prop: 'remarks' + }, + + ] +} diff --git a/src/const/crud/stuwork/classfeelog.js b/src/const/crud/stuwork/classfeelog.js new file mode 100644 index 0000000..313b619 --- /dev/null +++ b/src/const/crud/stuwork/classfeelog.js @@ -0,0 +1,207 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" +import {number} from "echarts/src/export"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + + { + label: '学年', + prop: 'schoolYear', + type:'select', + formslot:true, + // addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + formslot:true, + // addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择学期" + } + ] + }, + { + label:'学院', + prop: 'deptName', + addDisplay:false, + editDisplay:false, + span: 12, + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptName' + }, + }, + { + label: '班级', + prop: 'classCode', + search:true, + searchFilterable:true, + filterable:true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择班级" + } + ] + }, + { + label: '发生时间', + prop: 'operatTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择时间" + }] + }, + { + label: '类型', + prop: 'type', + type:'select', + search:true, + dicUrl:'/admin/dict/item/type/class_fee_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类型" + }] + }, + { + label: '金额', + prop: 'money', + type:'number', + // formslot:true, + minRows:0, + precision:2, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写金额" + }] + }, + { + label: '经办人', + prop: 'operator', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写经办人" + }] + }, + { + label: '用途', + prop: 'purpose', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写用途" + }] + }, + { + label: '附件', + prop: 'attachment', + slot:true, + formslot:true, + }, + ] +} diff --git a/src/const/crud/stuwork/classhonor.js b/src/const/crud/stuwork/classhonor.js new file mode 100644 index 0000000..eeb7adc --- /dev/null +++ b/src/const/crud/stuwork/classhonor.js @@ -0,0 +1,186 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择学期" + } + ] + }, + { + label:'学院', + prop: 'deptName', + addDisplay:false, + editDisplay:false, + span: 12, + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptName' + }, + }, + { + label: '班号', + prop: 'classCode', + searchFilterable:true, + search:true, + filterable:true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择班级" + } + ] + }, + { + label: '标题', + prop: 'title', + rules: [ + { + required: true, + trigger: 'blur', + message:"请填写标题" + } + ] + }, + { + label: '作者', + prop: 'author', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写作者" + }] + }, + { + label: '更新时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false, + type:'date', + format:'yyyy-MM-dd', + }, + { + label: '归档级别', + prop: 'belong', + type:"select", + addDisplay:false, + editDisplay:false, + dicUrl:'/admin/dict/item/type/honor_belong_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '附件', + prop: 'attachment', + slot:true, + formslot:true, + }, + ] +} diff --git a/src/const/crud/stuwork/classhygienedaily.js b/src/const/crud/stuwork/classhygienedaily.js new file mode 100644 index 0000000..295e524 --- /dev/null +++ b/src/const/crud/stuwork/classhygienedaily.js @@ -0,0 +1,160 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + + // { + // label: '学年', + // prop: 'schoolYear' + // }, + // { + // label: '学期', + // prop: 'schoolTerm' + // }, + { + label:'学院', + prop: 'deptName', + addDisplay:false, + editDisplay:false, + span: 12, + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptName' + }, + }, + { + label: '班号', + prop: 'classCode', + search:true, + searchFilterable:true, + type:'select', + // dicUrl:'/stuwork/classassessmentsettle/list', + dicUrl:'/basic/basicclass/listByRole', + filterable:true, + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + message: '请填写班级代码', + trigger: 'blur' + }] + }, + { + label: '时间', + prop: 'recordDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + formslot:true, + rules: [{ + required: true, + message: "请选择时间", + trigger: "blur" + }], + }, + { + label: '开始时间', + prop: 'startTime', + addDisplay:false, + editDisplay:false, + search:true, + hide:true, + type:'date', + valueFormat:'yyyy-MM-dd', + }, + { + label: '结束时间', + prop: 'endTime', + addDisplay:false, + editDisplay:false, + search:true, + hide:true, + type:'date', + valueFormat:'yyyy-MM-dd', + }, + { + label: '扣分', + prop: 'score', + formslot:true, + type:'number', + rules: [{ + required: true, + message: '请填写扣分值', + trigger: 'blur' + }] + }, + { + label: '检查记录', + prop: 'note', + type:'textarea', + span:18, + rules: [{ + required: true, + message: '请填写检查记录', + trigger: 'blur' + }] + }, + ] +} diff --git a/src/const/crud/stuwork/classhygienedailyanalysis.js b/src/const/crud/stuwork/classhygienedailyanalysis.js new file mode 100644 index 0000000..1619405 --- /dev/null +++ b/src/const/crud/stuwork/classhygienedailyanalysis.js @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '班级代码', + prop: 'classCode' + }, + { + label: '基础分', + prop: 'baseScore' + }, + { + label: '分数', + prop: 'score' + }, + { + label: '日期', + prop: 'recordDate' + }, + ] +} diff --git a/src/const/crud/stuwork/classhygienetermanalysis.js b/src/const/crud/stuwork/classhygienetermanalysis.js new file mode 100644 index 0000000..c9ff5df --- /dev/null +++ b/src/const/crud/stuwork/classhygienetermanalysis.js @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '班级代码', + prop: 'classCode' + }, + { + label: '基础分', + prop: 'baseScore' + }, + { + label: '备注', + prop: 'score' + }, + { + label: '月份', + prop: 'month' + }, + ] +} diff --git a/src/const/crud/stuwork/classleaveapply.js b/src/const/crud/stuwork/classleaveapply.js new file mode 100644 index 0000000..433964a --- /dev/null +++ b/src/const/crud/stuwork/classleaveapply.js @@ -0,0 +1,300 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const door_list=[ + { + label:'校门东', + value:'0' + }, + { + label:'校门南', + value:'1' + }, + { + label:'校门西', + value:'2' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + labelWidth:120, + editDisplay:false, + type:'select', + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + editDisplay:false, + type:'select', + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学期" + }] + }, + { + label:'学院', + prop:'deptCode', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班号', + prop: 'classCode', + disabled:true, + labelWidth:120, + searchFilterable:true, + search:true, + filterable:true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + message: '请填写班级代码', + trigger: 'blur' + }] + }, + { + label:'姓名', + prop:'realName', + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + hide:true + }, + { + label: '学号', + prop: 'stuNo', + labelWidth:120, + disabled:true, + hide:true + }, + { + label:'班主任', + prop:'teacherRealName', + addDisplay:false, + editDisplay:false + }, + { + label:'人数', + prop:'num', + addDisplay:false, + editDisplay:false + }, + + { + label: '请假开始时间', + prop: 'startTime', + labelWidth:120, + type:'datetime', + format:'yyyy-MM-dd HH:mm', + valueFormat:'yyyy-MM-dd HH:mm:ss' + }, + { + label: '请假结束时间', + prop: 'endTime', + labelWidth:120, + type:'datetime', + format:'yyyy-MM-dd HH:mm', + valueFormat:'yyyy-MM-dd HH:mm:ss' + }, + { + label: '请假类型', + prop: 'leaveType', + labelWidth:120, + search:true, + type:"select", + dicUrl:'/admin/dict/item/type/leave_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '请假事由', + prop: 'reason', + labelWidth:120, + width:200, + type:'textarea' + }, + { + label: '是否住宿', + prop: 'stayDorm', + labelWidth:120, + type:'select', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '时段请假', + prop: 'isSegment', + labelWidth:120, + type:'select', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '时段请假', + prop: 'segmentJson', + hide:true + }, + { + label: '时段请假', + prop: 'segmentString', + width:100, + addDisplay:false, + editDisplay:false, + }, + { + label: '校门', + prop: 'schoolDoor', + width:100, + type:'select', + search:true, + dicData:door_list, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '基础部审核', + prop: 'deptAudit', + labelWidth:120, + addDisplay:false, + editDisplay:false, + slot:true, + type:'select', + dicUrl:'/admin/dict/item/type/class_audit_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '学工处审批', + prop: 'schoolAudit', + labelWidth:120, + addDisplay:false, + editDisplay:false, + slot:true, + type:'select', + dicUrl:'/admin/dict/item/type/class_audit_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label:'驳回原因', + prop:'rejectReason', + addDisplay:false, + editDisplay:false + }, + // { + // label: '流程实例ID', + // prop: 'procInsId' + // }, + // { + // label: '流程审批状态', + // prop: 'procInsStatus' + // }, + ] +} diff --git a/src/const/crud/stuwork/classmasterevaluation.js b/src/const/crud/stuwork/classmasterevaluation.js new file mode 100644 index 0000000..e56db41 --- /dev/null +++ b/src/const/crud/stuwork/classmasterevaluation.js @@ -0,0 +1,235 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + + { + label: '班号', + prop: 'virtualClassNo', + // search:true, + addDisplay:false, + editDisplay:false + }, + { + label: '班主任', + prop: 'classMasterCode', + addDisplay:false, + editDisplay:false, + hide:true, + // type:"select", + // dicUrl:'/professional/teacherbase/TeacherBaseList', + // props:{ + // label:'realName', + // value:'teacherNo' + // }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择班主任" + }] + }, + { + label:'班主任', + prop:'realName', + addDisplay:false, + editDisplay:false + }, + { + label: '班级', + prop: 'classCode', + hide:true, + search:true, + searchFilterable:true, + formslot: true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择班级" + }] + }, + { + label: '考核项目', + prop: 'assessmentCategory', + formslot: true, + // search:true, + type:'select', + dicUrl:'/stuwork/assessmentcategory/list', + props:{ + label:'category', + value:'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择考核项目" + }] + }, + { + label: '考核指标', + prop: 'assessmentPoint', + formslot: true, + // search:true, + type:'select', + dicUrl:'/stuwork/assessmentpoint/list', + props:{ + label:'pointName', + value:'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择考核指标" + }] + }, + { + label: '类型', + prop: 'type', + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/class_master_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类型" + }] + }, + { + label: '分数', + prop: 'score', + type:'number', + minRows:0, + maxRows:30, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入分数" + }] + }, + { + label:'考核日期', + prop:'recordDate', + // addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + trigger: "blur", + message: "请填写日期" + }] + }, + { + label: '考核人', + prop: 'createBy', + addDisplay:false, + editDisplay: false, + // type:'select', + // dicUrl:'/professional/teacherbase/TeacherBaseList', + // props:{ + // label:'realName', + // value:'teacherNo' + // }, + }, + { + label: '情况说明', + prop: 'remarks', + type:'textarea', + // addDisplay:false, + editDisplay:false, + span:24 + }, + { + label:'开始时间', + prop:'startTime', + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label:'结束时间', + prop:'endTime', + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + + // { + // label:'明细', + // prop:'outerId', + // addDisplay:false, + // editDisplay:false + // }, + ] +} diff --git a/src/const/crud/stuwork/classmasterevaluationappeal.js b/src/const/crud/stuwork/classmasterevaluationappeal.js new file mode 100644 index 0000000..e8da314 --- /dev/null +++ b/src/const/crud/stuwork/classmasterevaluationappeal.js @@ -0,0 +1,181 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label:'学院', + hide:true, + prop:'deptName', + search:true, + addDisplay:false, + editDisplay:false, + editDisabled: true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptName' + }, + }, + { + label: '班级', + prop: 'classNo', + search:true, + searchFilterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classNo', + }, + }, + // { + // label: '班级', + // prop: 'classNo', + // search:true, + // addDisplay:false, + // editDisplay:false + // }, + { + label: '班主任', + prop: 'classMasterCode', + addDisplay:false, + editDisplay:false, + type:"select", + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + }, + { + label: '考核日期', + prop: 'recordDate', + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + }, + { + label: '申诉日期', + prop: 'createTime', + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + }, + { + label: '考核项目', + prop: 'assessmentCategory', + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl:'/stuwork/assessmentcategory/list', + props:{ + label:'category', + value:'id' + }, + }, + { + label: '考核指标', + prop: 'assessmentPoint', + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl:'/stuwork/assessmentpoint/list', + props:{ + label:'pointName', + value:'id' + }, + }, + { + label: '情况说明', + prop: 'remarks', + addDisplay:false, + editDisplay:false, + }, + { + label: '考核记录ID', + prop: 'evaluationId', + hide:true + }, + { + label: '申诉原因', + prop: 'appealReason' + }, + { + label: '考核人', + prop: 'createBy', + addDisplay:false, + editDisplay: false, + }, + { + label: '申诉结果', + prop: 'appealStatus', + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/appeal_status', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '反馈意见', + prop: 'appealReply' + }, + ] +} diff --git a/src/const/crud/stuwork/classmasterresume.js b/src/const/crud/stuwork/classmasterresume.js new file mode 100644 index 0000000..22adb11 --- /dev/null +++ b/src/const/crud/stuwork/classmasterresume.js @@ -0,0 +1,246 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '教师', + prop: 'teacherNo', + search: true, + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + rules: [{ + required: true, + message: '教师不能为空', + trigger: 'blur' + }] + }, + { + label: '工号', + prop: 'teacherNoVal', + editDisplay: false, + addDisplay:false, + }, + { + label: '联系方式', + prop: 'telPhone', + editDisplay: false, + addDisplay:false, + search: true + }, + { + label: '班级', + prop: 'classCode', + hide:true, + searchFilterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + message: '班级不能为空', + trigger: 'blur' + }] + }, + { + label: '班级名称', + hide:true, + prop: 'className', + editDisplay:false, + addDisplay:false, + }, + { + label: '开始时间', + hide:true, + prop: 'beginTime', + type: 'datetime', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '开始时间不能为空', + trigger: 'blur' + }] + }, + { + label: '结束时间', + hide:true, + prop: 'endTime', + type: 'datetime', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '结束时间不能为空', + trigger: 'blur' + }] + }, + { + label: '履历备注', + hide:true, + prop: 'resumeRemark', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + rules: [{ + required: true, + message: '履历备注不能为空', + trigger: 'blur' + }] + }, + + { + label: '备注', + hide:true, + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + } + ] +} +export const tableDetailOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '教师', + prop: 'teacherNo', + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + rules: [{ + required: true, + message: '教师不能为空', + trigger: 'blur' + }] + }, + { + label: '工号', + prop: 'teacherNoVal', + editDisplay: false, + addDisplay:false, + }, + { + label: '联系方式', + prop: 'telPhone', + editDisplay: false, + addDisplay:false, + }, + { + label: '班级', + prop: 'classCode', + hide:true, + searchFilterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + message: '班级不能为空', + trigger: 'blur' + }] + }, + { + label: '班级名称', + prop: 'className', + editDisplay:false, + addDisplay:false, + }, + { + label: '开始时间', + prop: 'beginTime', + type: 'datetime', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '开始时间不能为空', + trigger: 'blur' + }] + }, + { + label: '结束时间', + prop: 'endTime', + type: 'datetime', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '结束时间不能为空', + trigger: 'blur' + }] + }, + { + label: '履历备注', + prop: 'resumeRemark', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + rules: [{ + required: true, + message: '履历备注不能为空', + trigger: 'blur' + }] + }, + + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + } + ] +} diff --git a/src/const/crud/stuwork/classpaper.js b/src/const/crud/stuwork/classpaper.js new file mode 100644 index 0000000..adcfa0b --- /dev/null +++ b/src/const/crud/stuwork/classpaper.js @@ -0,0 +1,226 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" +import {number} from "echarts/src/export"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + // hide:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + // hide:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择学期" + } + ] + }, + { + label:'学院', + prop: 'deptName', + addDisplay:false, + editDisplay:false, + span: 12, + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptName' + }, + }, + { + label: '班号', + prop: 'classCode', + searchFilterable:true, + filterable:true, + search:true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择班级" + } + ] + }, + { + label:'班主任', + prop:'teacherRealName', + addDisplay:false, + editDisplay:false + }, + { + label: '标题', + prop: 'title', + search:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"请填写标题" + } + ] + }, + { + label: '类型', + prop: 'type', + type:'select', + search:true, + dicData: [{ + label: '德育论文', + value: "0" + }, { + label: '教案', + value: "1" + }], + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择类型" + } + ] + }, + { + label: '发表刊物', + prop: 'journal', + rules: [ + { + required: true, + trigger: 'blur', + message:"请填写发表刊物" + } + ] + }, + { + label: '发表页码', + prop: 'page', + type:'number', + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写发表页码" + }] + }, + { + label: '描述', + prop: 'description', + hide:true, + rules: [ + { + required: true, + trigger: 'blur', + message:"请填写描述" + } + ] + }, + { + label: '加分', + prop: 'isAddScore', + slot:true, + addDisplay:false, + editDisplay:false + }, + { + label: '附件', + prop: 'attachment', + slot:true, + formslot:true, + }, + ] +} diff --git a/src/const/crud/stuwork/classplan.js b/src/const/crud/stuwork/classplan.js new file mode 100644 index 0000000..2e63ba7 --- /dev/null +++ b/src/const/crud/stuwork/classplan.js @@ -0,0 +1,191 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label:'学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + span: 12, + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '学年', + prop: 'schoolYear', + type:'select', + // addDisabled:true, + editDisabled:true, + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + // addDisabled:true, + editDisabled:true, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + { + label: '班号', + prop: 'classCode', + search:true, + searchFilterable:true, + filterable:true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + message: '请填写班级代码', + trigger: 'blur' + }] + }, + { + label: '标题', + prop: 'title', + rules:[{ + required:true, + trigger:'blur', + message:'请填写标题' + }] + }, + { + label: '更新时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false, + type:'date', + format:'yyyy-MM-dd', + }, + { + label: '状态', + prop: 'status', + addDisplay:false, + editDisplay:false, + type:'select', + search:true, + dicUrl:'/admin/dict/item/type/status_type', + props:{ + label:'label', + value:'value' + } + }, + { + label: '填报人', + prop: 'createBy', + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + }, + { + label: '内容', + prop: 'content', + formslot: true, + hide:true, + span:24, + type:'textarea', + rules:[{ + required:true, + trigger:'blur', + message:'请填写内容' + }] + }, + ] +} diff --git a/src/const/crud/stuwork/classpublicity.js b/src/const/crud/stuwork/classpublicity.js new file mode 100644 index 0000000..ef70d89 --- /dev/null +++ b/src/const/crud/stuwork/classpublicity.js @@ -0,0 +1,200 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择学期" + } + ] + }, + { + label:'学院', + prop: 'deptName', + addDisplay:false, + editDisplay:false, + span: 12, + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptName' + }, + }, + { + label: '班号', + prop: 'classCode', + searchFilterable:true, + search:true, + filterable:true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"请选择班级" + } + ] + }, + { + label: '标题', + prop: 'title', + rules: [ + { + required: true, + trigger: 'blur', + message:"请填写标题" + } + ] + }, + { + label: '作者', + prop: 'author', + rules: [ + { + required: true, + trigger: 'blur', + message:"请填写作者" + } + ] + }, + { + label: '网址', + prop: 'website', + formslot: true, + hide:true, + rules:[{ + required: true, + trigger: 'blur', + message:"请填写网址" + }] + }, + { + label: '更新时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false, + type:'date', + format:'yyyy-MM-dd', + }, + { + label: '归档级别', + prop: 'belong', + type:"select", + addDisplay:false, + editDisplay:false, + dicUrl:'/admin/dict/item/type/public_belong_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label:'加分', + prop:'isAddScore', + slot:true, + addDisplay:false, + editDisplay:false + }, + ] +} diff --git a/src/const/crud/stuwork/classroombase.js b/src/const/crud/stuwork/classroombase.js new file mode 100644 index 0000000..5640fb7 --- /dev/null +++ b/src/const/crud/stuwork/classroombase.js @@ -0,0 +1,258 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {number} from "echarts/src/export"; +import global from "@/components/tools/commondict"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '楼号', + prop: 'buildingNo', + labelWidth: 120, + // search:true, + editDisabled: true, + }, + { + label: '学院', + prop: 'deptName', + labelWidth: 120, + addDisplay: false, + editDisplay: false, + span: 12, + search:true, + type: 'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptName' + }, + }, + { + label: '班号', + prop: 'classCode', + sortable: true, + editDisabled: true, + labelWidth: 120, + searchFilterable: true, + filterable: true, + search: true, + type: 'select', + // defaultSort: { + // prop: 'classNo', + // }, + + dicUrl: '/basic/basicclass/queryAllClass', + props: { + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + trigger: 'blur', + message: "请选择班级" + }] + }, + { + label: '班级状态', + prop: 'classStatus', + labelWidth: 120, + addDisplay: false, + editDisplay: false, + type: "select", + search: true, + dicData: global.CLASS_STATUS, + props: { + label: "label", + value: "value" + } + }, + { + label: '教室位置', + prop: 'position', + sortable: true, + labelWidth: 120, + search: true, + // searchFilterable: true, + // editDisabled:true, + // addDisplay:false, + // editDisplay:false + }, + { + label: '人数', + prop: 'stuNum', + labelWidth: 120, + addDisplay: false, + editDisplay: false + }, + { + label: '班主任', + prop: 'teacherRealName', + addDisplay: false, + editDisplay: false + }, + { + label: '讲台类型', + prop: 'platformType', + labelWidth: 120, + type: "select", + dicUrl: '/admin/dict/item/type/platform_type', + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message: "请选择讲台类型" + }] + }, + { + label: '投影类型', + prop: 'tyType', + labelWidth: 120, + type: "select", + dicUrl: '/admin/dict/item/type/ty_type', + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message: "请选择投影类型" + }] + }, + { + label: '电视机', + prop: 'tvType', + labelWidth: 120, + type: "select", + dicUrl: '/admin/dict/item/type/tv_type', + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message: "请选择电视机" + }] + }, + // { + // label: '吊扇正常数量', + // prop: 'ceilingFanOkCnt', + // labelWidth: 120, + // type:'number', + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请填写吊扇正常数量" + // }] + // }, + // { + // label: '吊扇损坏数量', + // prop: 'ceilingFanErrorCnt', + // labelWidth: 120, + // type:'number', + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请填写吊扇损坏数量" + // }] + // }, + { + label: '方凳数量', + prop: 'chairCnt', + labelWidth: 120, + type: 'number', + minRows: 0, + rules: [{ + required: true, + trigger: 'blur', + message: "请填写方凳数量" + }] + }, + { + label: '课桌数量', + prop: 'tableCnt', + labelWidth: 120, + minRows: 0, + type: 'number', + rules: [{ + required: true, + trigger: 'blur', + message: "请填写课桌数量" + }] + }, + { + label: '备注', + prop: 'remarks', + labelWidth: 120, + type: "textarea", + span: 24, + }, + { + label: '门锁密码', + prop: 'password', + addDisplay: false, + editDisplay: false, + }, + ] +} diff --git a/src/const/crud/stuwork/classroomhygienedaily.js b/src/const/crud/stuwork/classroomhygienedaily.js new file mode 100644 index 0000000..f61bbc9 --- /dev/null +++ b/src/const/crud/stuwork/classroomhygienedaily.js @@ -0,0 +1,162 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + + // { + // label: '学年', + // prop: 'schoolYear' + // }, + // { + // label: '学期', + // prop: 'schoolTerm' + // }, + { + label:'学院', + prop: 'deptName', + addDisplay:false, + editDisplay:false, + span: 12, + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptName' + }, + }, + { + label: '班号', + prop: 'classCode', + searchFilterable:true, + search:true, + type:'select', + // dicUrl:'/stuwork/classassessmentsettle/list', + dicUrl:'/basic/basicclass/listByRole', + filterable:true, + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + message: '请填写班级代码', + trigger: 'blur' + }] + }, + { + label: '时间', + prop: 'recordDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + formslot:true, + rules: [{ + required: true, + message: "请选择时间", + trigger: "blur" + }], + }, + // { + // label: '开始时间', + // prop: 'startTime', + // addDisplay:false, + // editDisplay:false, + // search:true, + // // formslot:true, + // hide:true, + // type:'datetime', + // valueFormat:'yyyy-MM-dd HH:mm:ss', + // }, + // { + // label: '结束时间', + // prop: 'endTime', + // addDisplay:false, + // editDisplay:false, + // search:true, + // hide:true, + // type:'datetime', + // valueFormat:'yyyy-MM-dd HH:mm:ss', + // }, + { + label: '扣分', + prop: 'score', + type:'number', + minRows:0, + rules: [{ + required: true, + message: '请填写扣分值', + trigger: 'blur' + }] + }, + { + label: '检查记录', + prop: 'note', + type: 'textarea', + // formslot:true, + span: 18, + rules: [{ + required: true, + message: '请填写检查记录', + trigger: 'blur' + }] + }, + ] +} diff --git a/src/const/crud/stuwork/classroomhygienedailyanalysis.js b/src/const/crud/stuwork/classroomhygienedailyanalysis.js new file mode 100644 index 0000000..69c4050 --- /dev/null +++ b/src/const/crud/stuwork/classroomhygienedailyanalysis.js @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '班号', + prop: 'classCode', + rules: [{ + required: true, + message: '请填写班级代码', + trigger: 'blur' + }] + }, + { + label: '基础分', + prop: 'baseScore', + rules: [{ + required: true, + message: '请填写基础分', + trigger: 'blur' + }] + }, + { + label: '日评分汇总', + prop: 'score', + rules: [{ + required: true, + message: '请填写日评分汇总', + trigger: 'blur' + }] + }, + { + label: '日期', + prop: 'recordDate', + rules: [{ + required: true, + message: '请填写日期', + trigger: 'blur' + }] + }, + ] +} diff --git a/src/const/crud/stuwork/classroomhygienemonthly.js b/src/const/crud/stuwork/classroomhygienemonthly.js new file mode 100644 index 0000000..f4ce19a --- /dev/null +++ b/src/const/crud/stuwork/classroomhygienemonthly.js @@ -0,0 +1,148 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + // hide: true, + type:'select', + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学期', + prop: 'schoolTerm', + // hide: true, + type:'select', + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + }, + { + label:'学院', + prop: 'deptCode', + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班号', + prop: 'classCode', + search:true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + // filterable:true, + searchFilterable:true, + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label:'班主任', + prop:'classMasterName', + addDisplay:false, + editDisplay:false + }, + { + label:'教学楼号', + prop:'buildingNo', + addDisplay:false, + editDisplay:false + }, + { + label:'教室号', + prop:'position', + addDisplay:false, + editDisplay:false + }, + { + label: '评分', + prop: 'score' + }, + { + label: '检查记录', + prop: 'note' + }, + { + label: '月份', + prop: 'month', + // search:true, + // hide: true, + type:'month', + format:'yyyy-MM', + valueFormat:'yyyy-MM' + }, + ] +} diff --git a/src/const/crud/stuwork/classroomhygienetemplate.js b/src/const/crud/stuwork/classroomhygienetemplate.js new file mode 100644 index 0000000..47fbad7 --- /dev/null +++ b/src/const/crud/stuwork/classroomhygienetemplate.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '扣分描述', + prop: 'note', + rules: [{ + required: true, + message: '请填写扣分描述', + trigger: 'blur' + }] + }, + { + label: '扣分', + prop: 'score', + rules: [{ + required: true, + message: '请填写扣分', + trigger: 'blur' + }] + }, + ] +} diff --git a/src/const/crud/stuwork/classroomhygienetermanalysis.js b/src/const/crud/stuwork/classroomhygienetermanalysis.js new file mode 100644 index 0000000..f6a6e61 --- /dev/null +++ b/src/const/crud/stuwork/classroomhygienetermanalysis.js @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '班级代码', + prop: 'classCode' + }, + { + label: '基础分', + prop: 'baseScore' + }, + { + label: '备注', + prop: 'score' + }, + { + label: '月份', + prop: 'month' + }, + { + label: '是否加分 0否 1是', + prop: 'isAddScore' + }, + ] +} diff --git a/src/const/crud/stuwork/classsafeedu.js b/src/const/crud/stuwork/classsafeedu.js new file mode 100644 index 0000000..204ddaf --- /dev/null +++ b/src/const/crud/stuwork/classsafeedu.js @@ -0,0 +1,213 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:700, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + type: 'select', + addDisplay: false, + editDisabled: true, + // search:true, + dicUrl: '/basic/basicyear/queryAllSchoolYear', + props: { + label: 'year', + value: 'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message: "选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + type: 'select', + addDisplay: false, + editDisabled: true, + // search:true, + dicUrl: '/admin/dict/item/type/school_term', + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message: "选择学期" + }] + }, + { + label: '班号', + prop: 'classCode', + searchFilterable: true, + filterable: true, + search: true, + type: 'select', + dicUrl: '/basic/basicclass/listByRole', + props: { + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + message: '请填写班级代码', + trigger: 'blur' + }] + }, + + { + label: '活动主题', + prop: 'themeName', + rules: [{ + required: true, + message: '请填写活动主题', + trigger: 'blur' + }] + // type:'select', + // dicUrl:'/stuwork/classactivitytheme/list', + // props:{ + // label:'themeName', + // value:'id' + // }, + }, + { + label: '主持人', + prop: 'author', + rules: [{ + required: true, + trigger: 'blur', + message: "选择学期" + }] + }, + { + label: '活动地点', + prop: 'address', + rules: [{ + required: true, + trigger: 'blur', + message: "选择学期" + }] + }, + { + label:'活动时间', + prop:'recordDate', + // labelWidth:120, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择活动时间" + }] + }, + + { + label:'活动时间', + prop:'recordDates', + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + search:true, + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择活动时间" + }] + }, + { + label: '参加人数', + prop: 'attendNum', + type: 'number', + minRows: 0, + rules: [{ + required: true, + trigger: 'blur', + message: "请输入参与人数" + }] + }, + { + label: '活动内容', + prop: 'content', + hide:true, + formslot:true, + span:24, + type:'textarea' + }, + { + label: '活动图片', + prop: 'attachment', + slot: true, + formslot: true + }, + { + label: '活动图片2', + prop: 'attachment2', + slot: true, + formslot: true + }, + ] +} diff --git a/src/const/crud/stuwork/classsummary.js b/src/const/crud/stuwork/classsummary.js new file mode 100644 index 0000000..d65b376 --- /dev/null +++ b/src/const/crud/stuwork/classsummary.js @@ -0,0 +1,299 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" +import {number} from "echarts/src/export"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:600, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + type:'select', + labelWidth:120, + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学期" + }] + }, + { + label: '开课部门', + prop: 'deptCode', + type:"select", + dicUrl: '/basic/basicdept/getDeptList?teachFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + hide:true, + search:true, + addDisplay:false, + editDisplay:false, + visdiplay:false + }, + { + label: '班号', + prop: 'classCode', + searchFilterable:true, + filterable:true, + labelWidth:120, + search:true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules:[{ + required:true, + trigger:'blur', + message:'请选择班号' + }] + }, + + { + label: '总人数', + prop: 'totalCnt', + labelWidth:120, + type:'number', + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写总人数" + }] + }, + { + label: '男生人数', + prop: 'boyCnt', + labelWidth:120, + type:'number', + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写男生人数" + }] + }, + { + label: '女生人数', + prop: 'girlCnt', + labelWidth:120, + type:'number', + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写女生人数" + }] + }, + { + label: '男(住宿)', + prop: 'boyDormCnt', + labelWidth:120, + type:'number', + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写男(住宿)人数" + }] + }, + { + label: '女(住宿)', + prop: 'girlDormCnt', + labelWidth:120, + type:'number', + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写女(住宿)人数" + }] + }, + { + label: '留校察看人数', + prop: 'keepSchoolCnt', + labelWidth:120, + type:'number', + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写留校观察人数" + }] + }, + { + label: '记过人数', + prop: 'gigCnt', + labelWidth:120, + type:'number', + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写记过人数" + }] + }, + { + label: '严重警告人数', + prop: 'seriousWarningCnt', + labelWidth:120, + type:'number', + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写严重警告人数" + }] + }, + { + label: '警告人数', + prop: 'warningCnt', + labelWidth:120, + type:'number', + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写警告人数" + }] + }, + { + label: '撤销处分人数', + prop: 'revokeCnt', + labelWidth:120, + type:'number', + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写撤销处分人数" + }] + }, + { + label: '退学人数', + prop: 'dropCnt', + labelWidth:120, + type:'number', + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写退学人数" + }] + }, + { + label:'总结报告', + prop:'summary', + hide:true, + formslot:true, + type:'textarea', + span: 24, + rules: [{ + required: true, + message: '请填写总结报告', + trigger: 'blur' + }] + }, + { + label: '状态', + prop: 'status', + labelWidth:120, + search:true, + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl:'/admin/dict/item/type/status_type', + props:{ + value:'value', + label:'label', + } + }, + ] +} diff --git a/src/const/crud/stuwork/classtheme.js b/src/const/crud/stuwork/classtheme.js new file mode 100644 index 0000000..aa090d1 --- /dev/null +++ b/src/const/crud/stuwork/classtheme.js @@ -0,0 +1,144 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + dialogHeight:700, + + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + addDisplay:false, + editDisplay:false, + }, + { + label: '学期', + prop: 'schoolTerm', + type:'radio', + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + addDisplay:false, + editDisplay:false, + }, + { + label: '学院', + prop: 'deptCode', + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + addDisplay:false, + editDisplay:false, + }, + { + label: '班级', + prop: 'classNo', + searchFilterable:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classNo', + }, + addDisplay:false, + editDisplay:false, + }, + { + label: '是否达标', + prop: 'isDb', + hide:true, + type:"select", + dicData:global.YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + editDisplay:false, + addDisplay:false, + }, + { + label: '标题', + prop: 'title', + span:24, + search:true, + rules: [{ + required: true, + message: "请填写标题", + trigger: "blur" + }] + }, + { + label: '附件上传', + prop: 'fileUrls', + span:24, + hide:true, + slot:true, + formslot:true + }, + { + label: '内容', + prop: 'content', + hide:true, + formslot:true, + span:24, + type:'textarea', + rules: [{ + required: true, + message: "请填写内容", + trigger: "blur" + }] + }, + { + label: '创建时间', + prop: 'createTime', + addDisplay:false, + editDisplay:false, + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + }, + + ] +} diff --git a/src/const/crud/stuwork/classthemerecord.js b/src/const/crud/stuwork/classthemerecord.js new file mode 100644 index 0000000..282b7b0 --- /dev/null +++ b/src/const/crud/stuwork/classthemerecord.js @@ -0,0 +1,126 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + type:'select', + search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'radio', + search:true, + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + { + label: '是否达标', + prop: 'isDb', + type:'select', + hide:true, + search:true, + dicData:global.YES_OR_NO, + props:{ + label:'label', + value:'value' + } + }, + { + label: '学院', + prop: 'deptCode', + type:"select", + search:true, + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学院" + } + ] + }, + { + label: '班级', + prop: 'classNo', + searchFilterable:true, + search:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classNo', + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择班级" + } + ] + }, + { + label: '上传次数', + prop: 'count' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/stuwork/completionRateClass.js b/src/const/crud/stuwork/completionRateClass.js new file mode 100644 index 0000000..19404c9 --- /dev/null +++ b/src/const/crud/stuwork/completionRateClass.js @@ -0,0 +1,168 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict"; +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + showSummary:true, + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:true, + dic: [], + sumColumnList:[ + { + name:'shouldFilled', + type:'sum' + }, + { + name:'hasFilled', + type:'sum' + }, + { + name:'noFilled', + type:'sum' + } + ], + column: [ + { + label: '毕业年份', + prop: 'year', + type:'select', + dicUrl:'/admin/dict/item/type/basic_class_info_grade', + props:{ + label:'label', + value:'value' + }, + search:true, + hide:true + }, + { + label: '学院', + prop: 'deptCode', + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + } + }, + { + label: '班级名称', + prop: 'classCode', + search:true, + type:"select", + searchFilterable:true, + dicUrl:'/basic/basicclass/queryMasterClass', + props:{ + label: 'className', + value: 'classCode', + } + }, + { + label: '班主任', + prop: 'majorName' + }, + { + label: '班级代码', + prop: 'classCode' + }, + { + label: '应填', + prop: 'shouldFilled' + }, + { + label: '已填', + prop: 'hasFilled' + }, + { + label: '未填', + prop: 'noFilled' + }, + { + label: '完成率', + prop: 'completionRate' + } + ] +} +export const tableListOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:true, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + } + }, + { + label: '专业', + prop: 'majorName' + }, + { + label: '班级名称', + prop: 'classCode', + type:"select", + dicUrl:'/basic/basicclass/queryMasterClass', + props:{ + label: 'className', + value: 'classCode', + } + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '公司名称', + prop: 'unitName' + }, + { + label: '月薪', + prop: 'wages' + }, + { + label: '状态', + prop: 'stuStatusText' + }, + { + label: '是否填写', + prop: 'isWriteVal' + } + ] +} diff --git a/src/const/crud/stuwork/completionRateDept.js b/src/const/crud/stuwork/completionRateDept.js new file mode 100644 index 0000000..4a54317 --- /dev/null +++ b/src/const/crud/stuwork/completionRateDept.js @@ -0,0 +1,290 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict"; +export const YES_OR_NO=[ + { + label:'全部', + value:'' + }, + { + label:'展示', + value:'1' + }, + { + label:'不展示', + value:'0' + } + +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + showSummary:true, + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:true, + dic: [], + sumColumnList:[ + { + name:'shouldFilled', + type:'sum' + }, + { + name:'hasFilled', + type:'sum' + }, + { + name:'noFilled', + type:'sum' + } + ], + column: [ + { + label: '毕业年份', + prop: 'graduationYear', + type: 'year', + format: 'yyyy', // 设置显示格式为年份 + valueFormat: 'yyyy', // 设置绑定值的格式为年份 + search: true, + hide: true + }, + { + label: '学院', + prop: 'deptCode', + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + } + }, + { + label: '班级', + prop: 'classNo', + search:true, + hide:true, + type:"select", + searchFilterable: true, + filterable:true, + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classNo', + }, + }, + { + label: '联院', + prop: 'isUnion', + search:true, + hide:true, + type:"select", + searchFilterable: true, + filterable:true, + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '应填', + prop: 'shouldFilled' + }, + { + label: '已填', + prop: 'hasFilled' + }, + { + label: '未填', + prop: 'noFilled' + }, + { + label: '完成率', + prop: 'completionRate' + } + ] +} + +export const tableOption2 = { + border: true, + index: true, + indexLabel: '序号', + showSummary:true, + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:true, + dic: [], + sumColumnList:[ + { + name:'shouldFilled', + type:'sum' + }, + { + name:'hasFilled', + type:'sum' + }, + { + name:'noFilled', + type:'sum' + } + ], + column: [ + { + label: '毕业年份', + prop: 'graduationYear', + type:'select', + dicUrl:'/admin/dict/item/type/basic_class_info_grade', + props:{ + label:'label', + value:'value' + }, + hide:true + }, + { + label: '学院', + prop: 'deptCode', + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + } + }, + { + label: '班级名称', + prop: 'classCode', + search:true, + type:"select", + searchFilterable:true, + dicUrl:'/basic/basicclass/queryMasterClass', + props:{ + label: 'className', + value: 'classCode', + } + }, + { + label: '班主任', + prop: 'majorName' + }, + { + label: '班级代码', + prop: 'classCode' + }, + { + label: '应填', + prop: 'shouldFilled' + }, + { + label: '已填', + prop: 'hasFilled' + }, + { + label: '未填', + prop: 'noFilled' + }, + { + label: '完成率', + prop: 'completionRate' + } + ] +} + +export const tableListOption2 = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:true, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + } + }, + { + label: '专业', + prop: 'majorName' + }, + { + label: '班级名称', + prop: 'classCode', + type:"select", + dicUrl:'/basic/basicclass/queryMasterClass', + props:{ + label: 'className', + value: 'classCode', + } + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '公司名称', + prop: 'unitName' + }, + { + label: '月薪', + prop: 'wages' + }, + { + label: '状态', + prop: 'stuStatusText' + }, + { + label: '就业去向', + prop: 'employmentAddress', + type:'select', + dicUrl:'/admin/dict/item/type/employment_location', + props:{ + label:'label', + value:'value' + }, + search:true, + }, + + { + label: '是否填写', + prop: 'isWriteVal' + } + ] +} diff --git a/src/const/crud/stuwork/dininghall.js b/src/const/crud/stuwork/dininghall.js new file mode 100644 index 0000000..60efeac --- /dev/null +++ b/src/const/crud/stuwork/dininghall.js @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '食堂名称', + prop: 'diningHallName', + search:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + { + label: '食堂位置', + prop: 'diningHallPlace', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + { + label: '学年', + prop: 'year', + type:'select', + search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + { + label: '学期', + prop: 'period', + type:'select', + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + + ] +} diff --git a/src/const/crud/stuwork/dininghallvote.js b/src/const/crud/stuwork/dininghallvote.js new file mode 100644 index 0000000..79c2f68 --- /dev/null +++ b/src/const/crud/stuwork/dininghallvote.js @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict"; +export const tableListOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: true, + delBtn: true, + addBtn: true, + dic: [], + column: [ + { + label: '调查题目', + prop: 'voteTitle', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + { + label: '题目类别', + prop: 'voteProjectId', + type:'select', + dicUrl: '/admin/dict/item/type/questionnaire', + props: { + label: 'label', + value: 'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + { + label: '学年', + prop: 'year', + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + addDisplay:false, + editDisabled:false, + editDisplay:false, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + { + label: '学期', + prop: 'period', + type:'select', + dicData:global.LEARN_TERM, + addDisplay:false, + editDisabled:false, + editDisplay:false, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + ] +} diff --git a/src/const/crud/stuwork/dininghallvoteStatistics.js b/src/const/crud/stuwork/dininghallvoteStatistics.js new file mode 100644 index 0000000..cbe38f8 --- /dev/null +++ b/src/const/crud/stuwork/dininghallvoteStatistics.js @@ -0,0 +1,151 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import global from "@/components/tools/commondict"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + labelWidth: 120, + formslot: true, + type:"select", + search:true, + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级名称', + prop: 'classCode', + searchFilterable:true, + addDisplay:false, + editDisplay:false, + search:true, + type:"select", + dicUrl:'basic/basicclass/queryUserClass', + props:{ + label: 'classCode', + value: 'classCode', + }, + }, + { + label: '状态', + prop: 'classState' + }, + { + label: '总人数', + prop: 'allNum' + }, + { + label: '已填写', + prop: 'completed' + }, + { + label: '未填写', + prop: 'noCompleted' + }, + { + label: '完成率', + prop: 'completionRate' + }, + ] +} + +export const tableTeaOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + labelWidth: 120, + formslot: true, + type:"select", + search:true, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '总人数', + prop: 'allNum' + }, + { + label: '已填写', + prop: 'completed' + }, + { + label: '未填写', + prop: 'noCompleted' + }, + { + label: '完成率', + prop: 'completionRate' + }, + ] +} +export const tableListOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + page:false, + addBtn: false, + dic: [], + column: [ + { + label: '学号', + prop: 'loginName' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '状态', + prop: 'isCompleted' + }, + ] +} diff --git a/src/const/crud/stuwork/dininghallvoteresult.js b/src/const/crud/stuwork/dininghallvoteresult.js new file mode 100644 index 0000000..bd1a2f8 --- /dev/null +++ b/src/const/crud/stuwork/dininghallvoteresult.js @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict"; +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + dic: [], + column: [ + { + label: '调查人工号/学号', + prop: 'loginName' + }, + { + label: '食堂', + prop: 'diningHallId', + type:'select', + dicUrl: '/stuwork/dininghall/list', + props: { + label: 'diningHallName', + value: 'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + { + label: '得分', + prop: 'diningHallVoteScore' + }, + { + label: '学年', + prop: 'year', + type:'select', + search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + addDisplay:false, + editDisabled:false, + editDisplay:false, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + { + label: '学期', + prop: 'period', + type:'select', + search:true, + dicData:global.LEARN_TERM, + addDisplay:false, + editDisabled:false, + editDisplay:false, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + ] +} diff --git a/src/const/crud/stuwork/dormbuilding.js b/src/const/crud/stuwork/dormbuilding.js new file mode 100755 index 0000000..a06188c --- /dev/null +++ b/src/const/crud/stuwork/dormbuilding.js @@ -0,0 +1,227 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + showSummary: true, + sumColumnList: [ + { + name: 'allAlreadyNum', + type: 'sum' + }, + { + name: 'nowNum', + type: 'sum' + }, + { + name: 'surplusNum', + type: 'sum' + }, + { + name: 'roomEmptyNum', + type: 'sum' + }, + { + name: 'roomEmptyNum5', + type: 'sum' + }, + { + name: 'roomEmptyNum4', + type: 'sum' + }, + { + name: 'roomEmptyNum3', + type: 'sum' + }, + { + name: 'roomEmptyNum2', + type: 'sum' + }, + { + name: 'roomEmptyNum1', + type: 'sum' + }, + ], + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '楼号', + prop: 'buildingNo', + editDisabled: true, + // readonly:true, + rules: [{ + required: true, + message: '请填写楼号', + trigger: 'blur' + }] + }, + { + label: '层数', + prop: 'layers', + type: 'number', + minRows: 1, + maxRows: 6, + rules: [{ + required: true, + message: '请填写层数', + trigger: 'blur' + }] + }, + { + label: '已住人数', + prop: 'allAlreadyNum', + addDisplay: false, + editDisplay: false, + }, + { + label: ' 现住人数', + prop: 'nowNum', + addDisplay: false, + editDisplay: false, + }, + { + label: '剩余可住人数', + prop: 'surplusNum', + addDisplay: false, + editDisplay: false, + }, + { + label: '空宿舍数', + prop: 'roomEmptyNum', + slot: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '空5人宿舍数', + prop: 'roomEmptyNum5', + slot: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '空4人宿舍数', + prop: 'roomEmptyNum4', + slot: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '空3人宿舍数', + prop: 'roomEmptyNum3', + slot: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '空2人宿舍数', + prop: 'roomEmptyNum2', + slot: true, + addDisplay: false, + editDisplay: false, + }, + { + label: '空1人宿舍数', + prop: 'roomEmptyNum1', + slot: true, + addDisplay: false, + editDisplay: false, + }, + // { + // label: '房间数(间)', + // prop: 'roomNum', + // labelWidth:120, + // addDisplay:false, + // editDisplay:false, + // }, + + + // { + // label: '管理员工号', + // prop: 'dormBuildingManger', + // filterable:true, + // overHidden: true, + // labelWidth:120, + // type: "select", + // slot:true, + // multiple:true, + // dicUrl:'/admin/user/findUserByUserType', + // props:{ + // label:'realName', + // value:'username' + // }, + // rules: [{ + // required: true, + // message: '请选择管理员工号', + // trigger: 'blur' + // }] + // }, + { + label: '电话', + prop: 'phone', + labelWidth: 120, + rules: [{ + required: true, + message: '请填写电话', + trigger: 'blur' + }] + }, + // { + // label: '备注', + // prop: 'remarks', + // type:'textarea', + // span:24 + // }, + ] +} diff --git a/src/const/crud/stuwork/dormbuildingmanger.js b/src/const/crud/stuwork/dormbuildingmanger.js new file mode 100644 index 0000000..0854ef3 --- /dev/null +++ b/src/const/crud/stuwork/dormbuildingmanger.js @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '楼号', + prop: 'buildingNo', + type:"select", + dicUrl:'/stuwork/dormbuilding/list', + props:{ + label:'buildingNo', + value:'buildingNo' + }, + }, + { + label: '管理员工号', + prop: 'username', + type:'select', + dicUrl:'/admin/user/findUserByUserType', + props:{ + label:'realName', + value:'username' + }, + }, + ] +} diff --git a/src/const/crud/stuwork/dormhygienedaily.js b/src/const/crud/stuwork/dormhygienedaily.js new file mode 100644 index 0000000..3ad4f3a --- /dev/null +++ b/src/const/crud/stuwork/dormhygienedaily.js @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + labelWidth:120, + addDisplay:false, + editDisplay:false, + type:'select', + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + addDisplay:false, + editDisplay:false, + type:'select', + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + }, + { + label:'楼号', + prop:'buildingNo', + search:true, + // hide:true, + formslot: true, + type:"select", + dicUrl:'/stuwork/dormbuilding/list', + props:{ + label:'buildingNo', + value:'buildingNo' + }, + }, + { + label: '宿舍号', + prop: 'roomNo', + formslot: true, + }, + { + label: '记录日期', + prop: 'recordDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + formslot:true, + rules: [{ + required: true, + message: "请选择记录时间", + trigger: "blur" + }], + }, + { + label: '情况记录', + prop: 'note', + // type:'text', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入情况记录" + }] + }, + ] +} diff --git a/src/const/crud/stuwork/dormhygienemonthly.js b/src/const/crud/stuwork/dormhygienemonthly.js new file mode 100644 index 0000000..0ae53bb --- /dev/null +++ b/src/const/crud/stuwork/dormhygienemonthly.js @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '楼号', + prop: 'buildingNo', + search:true + }, + { + label: '房间号', + prop: 'roomNo', + type:"select", + search:true, + filterable:true, + searchFilterable:true, + dicUrl:'/stuwork/dormroom/list', + props:{ + label:'roomNo', + value:'roomNo' + }, + }, + { + label: '月份', + prop: 'month', + search:true, + // hide: true, + type:'month', + format:'yyyy-MM', + valueFormat:'yyyy-MM' + }, + { + label: '评分', + prop: 'score' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/stuwork/dormliveapply.js b/src/const/crud/stuwork/dormliveapply.js new file mode 100644 index 0000000..20c5751 --- /dev/null +++ b/src/const/crud/stuwork/dormliveapply.js @@ -0,0 +1,218 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + + { + label: '学年', + prop: 'schoolYear', + labelWidth:120, + addDisplay:false, + editDisplay:false, + type:'select', + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + addDisplay:false, + editDisplay:false, + type:'select', + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + }, + { + label:'学院', + prop:'deptName', + addDisplay:false, + editDisplay:false + }, + { + label:'楼号', + prop:'buildingNo', + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:"select", + dicUrl:'/stuwork/dormbuilding/list', + props:{ + label:'buildingNo', + value:'buildingNo' + }, + }, + { + label:'开始时间', + prop:'startTime', + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label:'结束时间', + prop:'endTime', + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label: '班级', + prop: 'classCode', + editDisplay:false, + addDisplay:false, + searchFilterable:true, + search:true, + formslot: true, + type:"select", + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学生', + prop: 'stuNo', + addDisplay:false, + formslot: true, + hide:true, + }, + { + label:'姓名', + prop:'realName', + addDisplay:false, + editDisplay:false + }, + { + label:'宿舍号', + prop:'roomNo', + addDisplay:false, + editDisplay:false + }, + { + label: '留宿类型', + prop: 'liveType', + // addDisplay:false, + // editDisplay:false, + type:'select', + dicUrl:'/admin/dict/item/type/live_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择留宿类型" + }] + }, + { + label: '留宿日期', + prop: 'liveDates', + type:'select', + formslot: true, + hide:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择留宿日期" + }] + }, + { + label: '留宿日期', + prop: 'liveDate', + type:'select', + addDisplay:false, + editDisplay:false, + }, + { + label: '审核状态', + prop: 'auditStatus', + addDisplay:false, + editDisplay:false, + // search:true, + // hide:true, + type:'select', + dicUrl:'/admin/dict/item/type/dorm_live_audit_status', + props:{ + label:'label', + value:'value' + }, + }, + ] +} diff --git a/src/const/crud/stuwork/dormreform.js b/src/const/crud/stuwork/dormreform.js new file mode 100644 index 0000000..4cb6473 --- /dev/null +++ b/src/const/crud/stuwork/dormreform.js @@ -0,0 +1,195 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + type:'select', + // search:true, + hide:true, + addDisplay:false, + editDisplay:false, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + hide:true, + addDisplay:false, + editDisplay:false, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + { + label: '学院', + prop: 'deptCode', + labelWidth: 120, + slot: true, + addDisplay:false, + editDisplay:false, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + search:true + }, + { + label: '班级', + prop: 'classNos', + addDisplay:false, + editDisplay:false, + search:true + }, + { + label: '房间号', + prop: 'roomNo', + type:"select", + search:true, + filterable:true, + searchFilterable:true, + dicUrl:'/stuwork/dormroom/list', + props:{ + label:'roomNo', + value:'roomNo' + }, + rules: [{ + required: true, + message: '请填写房间号', + trigger: 'blur' + }] + }, + { + label: '整改时间', + prop: 'reformDate', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + message: '请填写整改时间', + trigger: 'blur' + }] + // addDisplay:false, + // editDisabled:true, + // editDisplay:false, + // visdiplay:false + }, + { + label: '整改内容', + prop: 'reformContent', + rules:{ + required:true, + message:'请填写整改内容', + trigger:'blur' + } + }, + { + label: '整改结果', + prop: 'reformStatus', + addDisplay:false, + editDisplay:false, + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/reform_status', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: '请选择整改结果', + trigger: 'blur' + }] + }, + { + label: '关联扣分明细', + prop: 'remarks', + addDisplay:false, + editDisplay:false, + } + ] +} diff --git a/src/const/crud/stuwork/dormroom.js b/src/const/crud/stuwork/dormroom.js new file mode 100755 index 0000000..7f4fefe --- /dev/null +++ b/src/const/crud/stuwork/dormroom.js @@ -0,0 +1,141 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const isHaveAir = [{label: '未安装', value: '0'}, {label: '已安装', value: '1'}] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection:true, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + labelWidth: 120, + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + } + }, + { + label: '楼号', + prop: 'buildingNo', + labelWidth: 120, + editDisabled: true, + search: true, + type: "select", + dicUrl: '/stuwork/dormbuilding/list', + props: { + label: 'buildingNo', + value: 'buildingNo' + }, + rules: [{ + required: true, + message: '请选择楼号', + trigger: 'blur' + }] + }, + { + label: '房间号', + prop: 'roomNo', + // editDisabled:true, + labelWidth: 120, + + search: true, + rules: [{ + required: true, + message: '请填写房间号', + trigger: 'blur' + }] + }, + // { + // label: '房间类型', + // prop: 'roomType', + // search:true, + // type:'select', + // labelWidth:120, + // dicUrl: '/admin/dict/item/type/room_type', + // props:{ + // label:'label', + // value:'value' + // }, + // rules: [{ + // required: true, + // message: '请选择房间类型', + // trigger: 'blur' + // }] + // }, + { + label: '几人间', + labelWidth: 120, + + prop: 'bedNum', + search: true, + type: "select", + dicUrl: '/admin/dict/item/type/room_stu_num', + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + message: '请选择几人间', + trigger: 'blur' + }] + }, + // { + // label: '装空调', + // labelWidth: 120, + // prop: 'isHaveAir', + // search: true, + // type: 'select', + // dicData: isHaveAir, + // props: { + // label: 'label', + // value: 'value' + // } + // }, + { + label: '已住人数', + labelWidth: 120, + prop: 'livedNum', + search: true, + addDisplay:false, + editDisplay:false, + editDisabled:true, + }, + { + label: '备注', + labelWidth: 120, + prop: 'remarks', + type: 'textarea', + span: 24 + }, + ] +} diff --git a/src/const/crud/stuwork/dormroomstudent.js b/src/const/crud/stuwork/dormroomstudent.js new file mode 100755 index 0000000..abc7873 --- /dev/null +++ b/src/const/crud/stuwork/dormroomstudent.js @@ -0,0 +1,268 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" +export const gender_type=[ + { + label:'女', + value:'2' + }, + { + label:'男', + value:'1' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label:'学院', + prop:'deptName', + search:true, + addDisplay:false, + editDisplay:false, + editDisabled: true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptName' + }, + }, + { + label:'楼号', + prop:'buildingNo', + search:true, + hide:true, + type:"select", + dicUrl:'/stuwork/dormbuilding/list', + props:{ + label:'buildingNo', + value:'buildingNo' + }, + }, + { + label: '性别', + prop: 'gender', + search:true, + hide:true, + type:"select", + dicUrl: '/admin/dict/item/type/sexy', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '房间号', + prop: 'roomNo', + search:true, + formslot:true, + type:"select", + searchFilterable:true, + filterable:true, + dicUrl:'/stuwork/dormroom/list', + props:{ + label:'roomNo', + value:'roomNo' + }, + rules: [{ + required: true, + message: '请填写房间号', + trigger: 'blur' + }] + }, + { + label:'班号', + prop:'classNo', + search:true, + addDisplay:false, + editDisplay:false, + editDisabled: true, + }, + { + label:'班主任', + prop:'teacherRealName', + addDisplay:false, + editDisplay:false, + editDisabled: true, + }, + { + label:'班主任电话', + prop:'teacherPhone', + addDisplay:false, + editDisplay:false, + editDisabled: true, + }, + { + label: '学号', + disabled:true, + search:true, + prop: 'stuNo', + rules: [{ + required: true, + message: '请填写学号', + trigger: 'blur' + }] + }, + { + label:'姓名', + prop:'realName', + search:true, + addDisplay:false, + editDisplay:false, + editDisabled: true, + }, + { + label: '床位号', + prop: 'bedNo', + formslot:true, + type:'number', + rules: [{ + required: true, + message: '请输入床位号', + trigger: 'blur' + }] + }, + { + label: '是否舍长', + prop: 'isLeader', + formslot: true, + slot:true, + type:'select', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + }, + { + label:'学生电话', + prop:'phone', + addDisplay:false, + editDisplay:false, + editDisabled: true, + }, + { + label:'家长电话', + width:120, + prop:'tel', + addDisplay:false, + editDisplay:false, + editDisabled: true, + }, + // { + // label:'家长电话2', + // prop:'phone2', + // addDisplay:false, + // editDisplay:false, + // editDisabled: true, + // }, + + ] +} + + +export const abnormalOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label:'学院', + prop:'deptName', + }, + { + label:'班号', + prop:'classNo', + }, + { + label: '学号', + prop: 'stuNo', + }, + { + label:'姓名', + prop:'realName', + }, + { + label: '房间号', + prop: 'roomNo', + + }, + { + label: '床位号', + prop: 'bedNo', + + }, + + { + label:'班主任', + prop:'teacherRealName', + }, + { + label:'班主任电话', + prop:'teacherPhone', + } + ] +} diff --git a/src/const/crud/stuwork/dormroomstudentchange.js b/src/const/crud/stuwork/dormroomstudentchange.js new file mode 100644 index 0000000..31a418b --- /dev/null +++ b/src/const/crud/stuwork/dormroomstudentchange.js @@ -0,0 +1,134 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '变动时间', + prop: 'createTime', + addDisplay:false, + editDisplay:false, + editDisabled: true, + }, + { + label:'学院', + prop:'deptName', + search:true, + addDisplay:false, + editDisplay:false, + editDisabled: true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptName' + }, + }, + { + label:'班号', + prop:'classNo', + search:true, + addDisplay:false, + editDisplay:false, + editDisabled: true, + searchFilterable:true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classNo', + }, + }, + { + label: '学号', + prop: 'stuNo', + }, + { + label:'姓名', + prop:'realName', + // search:true, + addDisplay:false, + editDisplay:false, + editDisabled: true, + }, + { + label: '异动类型', + prop: 'changeType', + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/change_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '原房间号', + prop: 'roomNo' + }, + { + label: '原床位号', + prop: 'bedNo' + }, + { + label: '新房间号', + prop: 'newRoomNo' + }, + { + label: '新床位号', + prop: 'newBedNo' + }, + ] +} diff --git a/src/const/crud/stuwork/entrancerule.js b/src/const/crud/stuwork/entrancerule.js new file mode 100644 index 0000000..ef825c9 --- /dev/null +++ b/src/const/crud/stuwork/entrancerule.js @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '规则名称', + prop: 'ruleName', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写规则名称" + }] + }, + { + label: '走读时段', + prop: 'dayRule', + hide:true + }, + { + label: '住宿时段', + prop: 'dormRule', + hide:true + }, + { + label: '绑定班级', + prop: 'classNos', + + }, + // { + // label: '备注', + // prop: 'remake', + // }, + { + label: '假期模式', + prop: 'isHoliday', + addDisplay:false, + editDisPlay:false, + type:'select', + dicUrl:'/admin/dict/item/type/is_holiday_type', + props:{ + label:'label', + value:'value' + }, + }, + ] +} diff --git a/src/const/crud/stuwork/faceerror.js b/src/const/crud/stuwork/faceerror.js new file mode 100644 index 0000000..f90e301 --- /dev/null +++ b/src/const/crud/stuwork/faceerror.js @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '租户ID', + prop: 'tenantId' + }, + { + label: '', + prop: 'delFlag' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '错误原因', + prop: 'errorText' + }, + ] +} diff --git a/src/const/crud/stuwork/facesynclog.js b/src/const/crud/stuwork/facesynclog.js new file mode 100644 index 0000000..813d487 --- /dev/null +++ b/src/const/crud/stuwork/facesynclog.js @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true + }, + { + label: '创建人', + prop: 'createBy', + hide: true + }, + { + label: '创建时间', + prop: 'createTime', + hide: true + }, + { + label: '更新人', + prop: 'updateBy', + hide: true + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true + }, + { + label: '删除标志位', + prop: 'delFlag', + hide: true + }, + { + label: '备注', + prop: 'remarks', + hide: true + }, + { + label: '租户id', + prop: 'tenantId', + hide: true + }, + { + label: '排序', + prop: 'sort', + hide: true + }, + { + label: '同步序列号', + prop: 'serialNum' + }, + { + label: '学号', + prop: 'stuNo', + search:true + }, + { + label: '图片64位编码', + prop: 'base64', + slot:true + }, + { + label: '1 代表新增 0代表删除', + prop: 'status' + }, + ] +} diff --git a/src/const/crud/stuwork/filemanager.js b/src/const/crud/stuwork/filemanager.js new file mode 100644 index 0000000..19f1354 --- /dev/null +++ b/src/const/crud/stuwork/filemanager.js @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '文件名称', + prop: 'fileName', + span:24, + search:true, + rules: [{ + required: true, + message: "请填写文件名称", + trigger: "blur" + }] + }, + // { + // label: '附件上传', + // span:24, + // hide:true, + // prop: 'fileUrls', + // type: 'upload', + // loadText: '附件上传中,请稍等', + // limit:1, + // action: '/stuwork/file/upload', + // propsHttp: { + // res: 'data', + // name:'fileUrl', + // }, + // }, + { + label: '附件上传', + prop: 'fileUrls', + span:24, + hide:true, + slot:true, + formslot:true + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + }, + + ] +} diff --git a/src/const/crud/stuwork/modulemenu.js b/src/const/crud/stuwork/modulemenu.js new file mode 100644 index 0000000..9e92370 --- /dev/null +++ b/src/const/crud/stuwork/modulemenu.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '模块代码', + prop: 'moduleCode' + }, + { + label: '模块名称', + prop: 'moduleName' + }, + { + label: '创建时间', + prop: 'createTime', + display:false + }, + ] +} diff --git a/src/const/crud/stuwork/moduleuser.js b/src/const/crud/stuwork/moduleuser.js new file mode 100644 index 0000000..f5d4389 --- /dev/null +++ b/src/const/crud/stuwork/moduleuser.js @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +const DICT_USER_TYPE=[ + {label:"教职工",value:'1'}, + {label:"单位人员",value:'3'}, +] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '用户类型', + prop: 'userType', + type:'select', + dicData:DICT_USER_TYPE + }, + { + label: '用户工号', + prop: 'username', + formslot:true + }, + { + label: '姓名', + prop: 'realName', + display:false + }, + { + label: '创建时间', + prop: 'createTime', + display:false + }, + ] +} + +export const contentOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学院/部门/班级/单位', + prop: 'deptName', + formslot:true, + labelWidth:200, + }, + // { + // label: '代码', + // prop: 'typeContent', + // display:false + // }, + ] +} + diff --git a/src/const/crud/stuwork/moduleusercontent.js b/src/const/crud/stuwork/moduleusercontent.js new file mode 100644 index 0000000..5d70924 --- /dev/null +++ b/src/const/crud/stuwork/moduleusercontent.js @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '用户工号', + prop: 'username' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标志位', + prop: 'delFlag' + }, + { + label: '模块id', + prop: 'moduleId' + }, + { + label: '1 部门 2 学院 3 班级 4 驻校单位 5 培训单位', + prop: 'type' + }, + { + label: '部门/班级/单位内容', + prop: 'typeContent' + }, + ] +} diff --git a/src/const/crud/stuwork/moralplan.js b/src/const/crud/stuwork/moralplan.js new file mode 100644 index 0000000..f6d7a54 --- /dev/null +++ b/src/const/crud/stuwork/moralplan.js @@ -0,0 +1,149 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + dialogHeight:550, + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + type:'select', + // search:true, + addDisplay:false, + editDisabled:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + { + label: '标题', + prop: 'title', + span:12, + rules: [{ + required: true, + message: '请填写标题', + trigger: 'blur' + }] + }, + { + label: '作者', + prop: 'author', + search:true, + span:12, + rules: [{ + required: true, + message: '请填写作者', + trigger: 'blur' + }] + }, + { + label: '内容', + prop: 'content', + type: 'textarea', + hide:true, + formslot:true, + span: 24, + rules: [{ + required: true, + message: '请填写内容', + trigger: 'blur' + }] + }, + { + label: '更新时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false, + type:'date', + format:'yyyy-MM-dd', + }, + ] +} diff --git a/src/const/crud/stuwork/nucleinfo.js b/src/const/crud/stuwork/nucleinfo.js new file mode 100644 index 0000000..1f286db --- /dev/null +++ b/src/const/crud/stuwork/nucleinfo.js @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const nucleDateOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '核酸日期', + prop: 'nucleDate' + }, + + ] +} + + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '用户类型', + prop: 'userType', + dicUrl:'/admin/dict/item/type/sys_user_type', + type:'select', + search:true + }, + { + label: '工号', + prop: 'username', + search:true + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '部门', + prop: 'commonDeptName', + search:true + }, + { + label: '核酸日期', + prop: 'nucleDate' + }, + { + label: '健康申报通过', + prop: 'healthReportStatus', + search:true, + type:'select', + dicData:[{ + 'label':'是', + 'value':'1' + }, + { + 'label':'否', + 'value':'0' + }] + }, + { + label: '已做核酸', + prop: 'nucleTag', + search:true, + type:'select', + dicData:[{ + 'label':'是', + 'value':'1' + }, + { + 'label':'否', + 'value':'0' + }] + + } + ] +} diff --git a/src/const/crud/stuwork/onlinebooks.js b/src/const/crud/stuwork/onlinebooks.js new file mode 100644 index 0000000..aa1e70e --- /dev/null +++ b/src/const/crud/stuwork/onlinebooks.js @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + type:'select', + search: true, + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: '学院不能为空', + trigger: 'blur' + }] + }, + { + label: '类别编码', + prop: 'categoryCode', + type:'select', + search: true, + dicUrl: '/stuwork/onlinebookscategory/list', + props: { + label: 'categoryName', + value: 'categoryCode' + }, + rules: [{ + required: true, + message: '类别不能为空', + trigger: 'blur' + }] + }, + + { + label: '封面', + prop: 'bookImg', + slot:true, + formslot:true, + }, + { + label: '书名', + prop: 'bookName', + search: true, + rules: [{ + required: true, + message: '书名不能为空', + trigger: 'blur' + }] + }, + { + label: '作者', + prop: 'bookAuthor', + rules: [{ + required: true, + message: '作者不能为空', + trigger: 'blur' + }] + }, + { + label: '链接', + prop: 'webUrl', + rules: [{ + required: true, + message: '链接不能为空', + trigger: 'blur' + }, + { + validator: (rule, value, callback) => { + const urlPattern = /^(https?:\/\/)?([a-zA-Z0-9\-]+\.)+[a-zA-Z]{2,}(:\d+)?(\/[^\s]*)?$/i; + if (!value || urlPattern.test(value)) { + callback(); + } else { + callback(new Error('请输入合法的网址,例如:https://www.baidu.com')); + } + }, + trigger: 'blur' + } + ] + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250 + }, + ] +} diff --git a/src/const/crud/stuwork/onlinebooksbrowsinghistory.js b/src/const/crud/stuwork/onlinebooksbrowsinghistory.js new file mode 100644 index 0000000..37834ed --- /dev/null +++ b/src/const/crud/stuwork/onlinebooksbrowsinghistory.js @@ -0,0 +1,107 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const userTypeList=[ + { + label:'学生', + value:'0' + }, + { + label:'老师', + value:'1' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + message: '学院不能为空', + trigger: 'blur' + }] + }, + { + label: '用户类型', + prop: 'userType', + type:'select', + search:true, + dicData:userTypeList, + props:{ + label:'label', + value:'value' + }, + + rules: [{ + required: true, + message: '学院不能为空', + trigger: 'blur' + }] + }, + { + label: '用户名', + prop: 'userName', + search: true, + }, + { + label: '姓名', + prop: 'realName', + search: true, + }, + { + label: '图书', + prop: 'bookId', + search: true, + type: 'select', + dicUrl: '/stuwork/onlinebooks/list', + props: { + label: 'bookName', + value: 'id' + }, + rules: [{ + required: true, + message: '图书不能为空', + trigger: 'blur' + }] + }, + { + label: '浏览时间', + prop: 'readTime' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/stuwork/onlinebookscategory.js b/src/const/crud/stuwork/onlinebookscategory.js new file mode 100644 index 0000000..804b0d2 --- /dev/null +++ b/src/const/crud/stuwork/onlinebookscategory.js @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '类别名称', + prop: 'categoryName', + search:true, + rules: [{ + required: true, + message: '类别名称不能为空', + trigger: 'blur' + }, + { max: 30, message: '长度在 30 个字符', trigger: 'blur' }] + }, + { + label: '类别编码', + prop: 'categoryCode', + search:true, + editDisabled:true, + rules: [{ + required: true, + message: '类别名称不能为空', + trigger: 'blur' + }, + { max: 30, message: '长度在 30 个字符', trigger: 'blur' }] + }, + { + label: '二维码', + prop: 'qrCode', + addDisplay:false, + editDisplay:false, + slot: true, + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24, + minRows: 2, + maxlength: 250 + }, + + ] +} diff --git a/src/const/crud/stuwork/pendingwork.js b/src/const/crud/stuwork/pendingwork.js new file mode 100644 index 0000000..14be990 --- /dev/null +++ b/src/const/crud/stuwork/pendingwork.js @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + // selection:true, + column: [ + { + label: '待办事项', + prop: 'pendingWork' + }, + { + label: '数量', + prop: 'nums' + }, + ] +} diff --git a/src/const/crud/stuwork/psychologicalcounselingduty.js b/src/const/crud/stuwork/psychologicalcounselingduty.js new file mode 100644 index 0000000..04e8022 --- /dev/null +++ b/src/const/crud/stuwork/psychologicalcounselingduty.js @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '教师姓名', + prop: 'userName', + type:'select', + span: 24, + filterable:true, + searchFilterable:true, + search:true, + dicUrl:'/stuwork/psychologicalcounselingteacher/list', + props:{ + label:'realName', + value:'userName' + },rules: [{ + required: true, + trigger: 'blur', + message:"请选择教师姓名" + }] + }, + { + label: '联系方式', + prop: 'phone', + addDisplay:false, + editDisplay:false, + }, + { + label: '值班日期', + span: 24, + prop: 'dutyTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + }, + { + label: '备注', + type: 'textarea', + prop: 'remarks', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + }, + ] +} diff --git a/src/const/crud/stuwork/psychologicalcounselingreservation.js b/src/const/crud/stuwork/psychologicalcounselingreservation.js new file mode 100644 index 0000000..3f5c696 --- /dev/null +++ b/src/const/crud/stuwork/psychologicalcounselingreservation.js @@ -0,0 +1,162 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '值班老师', + prop: 'realName', + span: 12, + addDisplay:false, + editDisplay:false, + }, + { + label: '教师姓名', + prop: 'teacherNo', + type:'select', + span: 12, + filterable:true, + editDisabled:true, + hide:true, + searchFilterable:true, + dicUrl:'/stuwork/psychologicalcounselingteacher/list', + props:{ + label:'realName', + value:'userName' + },rules: [{ + required: true, + trigger: 'blur', + message:"请选择教师姓名" + }] + }, + { + label: '预约时间', + prop: 'reservationTime', + type:'date', + span: 12, + editDisabled:true, + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择预约时间" + }] + + }, + { + label: '创建时间', + prop: 'createTime', + + addDisplay:false, + editDisplay:false, + }, + { + label: '班号', + prop: 'classNo', + span: 12, + type:"select", + formslot: true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择班级" + }] + }, + { + label: '学号', + prop: 'stuNo', + span: 12, + formslot: true, + type:"select", + editDisplay:false, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学生" + }] + + }, + { + label: '姓名', + prop: 'stuName', + span: 12, + addDisplay:false, + editDisabled: true, + editDisplay:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学生" + }] + }, + + { + label: '联系方式', + prop: 'phone', + addDisplay:false, + editDisplay:false, + + }, + + { + label: '学生留言', + prop: 'remarks', + span: 24, + minRows: 3, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisabled:true, //修改是否显示 + }, + { + label: '是否处理', + prop: 'isHandle', + type:'select', + span: 24, + addDisplay:false, + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择是否处理" + }] + }, + { + label: '老师备注', + prop: 'teaRemark', + span: 24, + minRows: 3, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + }, + ] +} diff --git a/src/const/crud/stuwork/psychologicalcounselingteacher.js b/src/const/crud/stuwork/psychologicalcounselingteacher.js new file mode 100644 index 0000000..6031c4f --- /dev/null +++ b/src/const/crud/stuwork/psychologicalcounselingteacher.js @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {YES_OR_NO} from "@/const/crud/aj/scjajclassinfo"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '教师姓名', + prop: 'userName', + type:'select', + span: 24, + filterable:true, + editDisabled:true, + searchFilterable:true, + search:true, + dicUrl:'/professional/teacherbase/queryTeacherBase', + props:{ + label:'realName', + value:'teacherNo' + },rules: [{ + required: true, + trigger: 'blur', + message:"请选择教师姓名" + }] + }, + { + label: '联系方式', + prop: 'phone', + addDisplay:false, + editDisplay:false, + }, + { + label: '备注', + type: 'textarea', + prop: 'remarks', + span: 24, + minRows: 2, + maxlength: 250, //长度限制 0/n + addDisplay:true, //添加是否显示 + editDisplay:true, //修改是否显示 + }, + ] +} diff --git a/src/const/crud/stuwork/qaanswer.js b/src/const/crud/stuwork/qaanswer.js new file mode 100644 index 0000000..3c61cbc --- /dev/null +++ b/src/const/crud/stuwork/qaanswer.js @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '所属问题', + prop: 'questionId', + type: 'select', + search: true, + searchFilterable:true, + filterable:true, + span:24, + dicUrl:'/stuwork/qaquestion/list/all', + props:{ + value:'id', + label:'questionName', + } + }, + { + label: '答案标题', + prop: 'answerTitle', + + }, + { + label: '是否需要额外输入', + prop: 'hasExtra', + span:24, + type:"select", + dicUrl:'/admin/dict/item/type/qa_answer_has_extra', + props:{ + value:'value', + label:'label', + } + }, + { + label: '排序', + prop: 'sort', + span:24, + }, + ] +} diff --git a/src/const/crud/stuwork/qagroup.js b/src/const/crud/stuwork/qagroup.js new file mode 100644 index 0000000..0deb034 --- /dev/null +++ b/src/const/crud/stuwork/qagroup.js @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + + { + label: '所属主题', + prop: 'themeId', + type: 'select', + search: true, + searchFilterable:true, + filterable:true, + span:24, + dicUrl:'/stuwork/qatheme/list/all', + props:{ + value:'id', + label:'themeName', + } + + }, + { + label: '分组名称', + prop: 'groupName', + span:24, + }, + { + label: '排序', + prop: 'sort', + span:24, + }, + + ] +} diff --git a/src/const/crud/stuwork/qaquestion.js b/src/const/crud/stuwork/qaquestion.js new file mode 100644 index 0000000..cdf8584 --- /dev/null +++ b/src/const/crud/stuwork/qaquestion.js @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '所属分组', + prop: 'groupId', + type: 'select', + search: true, + searchFilterable:true, + filterable:true, + span:24, + dicUrl:'/stuwork/qagroup/list/all', + props:{ + value:'id', + label:'groupName', + } + }, + { + label: '问题名称', + prop: 'questionName', + span:24, + }, + { + label: '问题类型', + prop: 'questionType', + span:24, + type:"select", + dicUrl:'/admin/dict/item/type/qa_question_type', + props:{ + value:'value', + label:'label', + } + }, + { + label: '排序', + prop: 'sort', + span:24, + }, + ] +} diff --git a/src/const/crud/stuwork/qatheme.js b/src/const/crud/stuwork/qatheme.js new file mode 100644 index 0000000..d37b937 --- /dev/null +++ b/src/const/crud/stuwork/qatheme.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/oteacherbaser other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + + { + label: '主题名称', + prop: 'themeName' + }, + { + label: '状态', + prop: 'status', + type:'select', + dicUrl:'/admin/dict/item/type/qa_theme_status', + props:{ + value:'value', + label:'label', + } + }, + { + label: '备注', + prop: 'remarks', + span: 24, + minRows: 4, + maxlength: 250 + }, + ] +} diff --git a/src/const/crud/stuwork/rewardclass.js b/src/const/crud/stuwork/rewardclass.js new file mode 100644 index 0000000..bea3679 --- /dev/null +++ b/src/const/crud/stuwork/rewardclass.js @@ -0,0 +1,158 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '学年', + prop: 'schoolYear', + labelWidth:120, + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学期" + }] + }, + { + label:'学院', + prop:'deptCode', + search:true, + addDisplay:false, + editDisplay: false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + labelWidth:120, + search:true, + searchFilterable:true, + filterable:true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入班号" + }] + }, + { + label:'班主任', + prop:'teacherRealName', + addDisplay:false, + editDisplay: false, + }, + { + label: '奖项名称', + prop: 'ruleId', + labelWidth:120, + type:"select", + dicUrl:'/stuwork/rewardrule/list', + props:{ + label:'ruleName', + value:'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入奖项名称" + }] + }, + { + label: '备注', + prop: 'remarks', + labelWidth:120, + type:'textarea', + span:240 + }, + ] +} diff --git a/src/const/crud/stuwork/rewarddorm.js b/src/const/crud/stuwork/rewarddorm.js new file mode 100644 index 0000000..3ff1eb6 --- /dev/null +++ b/src/const/crud/stuwork/rewarddorm.js @@ -0,0 +1,140 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '学年', + prop: 'schoolYear', + labelWidth:120, + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学期" + }] + }, + { + label: '宿舍号', + prop: 'roomNo', + labelWidth:120, + filterable:true, + searchFilterable:true, + search:true, + type:"select", + dicUrl:'/stuwork/dormroom/list', + props:{ + label:'roomNo', + value:'roomNo' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入宿舍号" + }] + }, + { + label: '奖项名称', + prop: 'ruleName', + labelWidth:120, + search:true, + type:"select", + dicUrl:'/stuwork/rewardrule/list', + props:{ + label:'ruleName', + value:'ruleName' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入奖项名称" + }] + }, + { + label: '备注', + prop: 'remarks', + labelWidth:120, + type:'textarea', + span:240 + }, + ] +} diff --git a/src/const/crud/stuwork/rewardrule.js b/src/const/crud/stuwork/rewardrule.js new file mode 100644 index 0000000..18ef5a5 --- /dev/null +++ b/src/const/crud/stuwork/rewardrule.js @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '奖项名称', + prop: 'ruleName', + labelWidth:120, + rules: [{ + required: true, + message: "请填写奖项名称", + trigger: "blur" + }] + }, + { + label: '奖项类型', + prop: 'ruleType', + labelWidth:120, + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/rule_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择奖项类型", + trigger: "blur" + }] + }, + { + label: '备注', + prop: 'remarks', + labelWidth:120, + span:240, + type:'textarea', + }, + ] +} diff --git a/src/const/crud/stuwork/rewardstudent.js b/src/const/crud/stuwork/rewardstudent.js new file mode 100644 index 0000000..55f9bb0 --- /dev/null +++ b/src/const/crud/stuwork/rewardstudent.js @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu:false, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:false, + editDisplay:false, + visdiplay:false + }, + { + label: '学院', + prop: 'departName' + }, + { + label: '班级', + prop: 'classCode' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '操行平均分', + prop: 'averageConduct' + }, + { + label: '总评成绩平均分', + prop: 'averageScore' + }, + { + label: '违规情况', + prop: 'violation' + }, + { + label: '个人奖项', + prop: 'ruleName', + slot: true + }, + + { + label: '保存时间', + prop: 'upDateTime', + type: 'datetime', + format: 'yyyy-MM-dd HH:mm' + } + ] +} diff --git a/src/const/crud/stuwork/riskdeal.js b/src/const/crud/stuwork/riskdeal.js new file mode 100644 index 0000000..99f987d --- /dev/null +++ b/src/const/crud/stuwork/riskdeal.js @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '', + prop: 'id' + }, + { + label: '', + prop: 'relationId' + }, + { + label: '1 健康申报 2 外出报备', + prop: 'type' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '租户ID', + prop: 'tenantId' + }, + { + label: '情况落实', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/stuwork/schoolbully.js b/src/const/crud/stuwork/schoolbully.js new file mode 100644 index 0000000..bb8df2d --- /dev/null +++ b/src/const/crud/stuwork/schoolbully.js @@ -0,0 +1,161 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +const DIC = { + //后勤/财务/学工/教务/6个学院/其他 + deptCode: [{ + label: '后勤', + value: '230' + },{ + label: '安全保卫处', + value: '240' + }, { + label: '财务', + value: '200' + }, { + label: '学工', + value: '180' + }, { + label: '教务', + value: '170' + }, { + label: '智能装备学院', + value: '11' + }, { + label: '智能制造学院', + value: '12' + }, { + label: '信息服务学院', + value: '13' + }, { + label: '医药康养学院', + value: '14' + }, { + label: '交通运输学院', + value: '15' + }, { + label: '新能源学院', + value: '16' + }, { + label: '其他', + value: '0' + }], + +} +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '反馈部门', + prop: 'deptCode', + search:true, + type:'select', + dicData:DIC.deptCode, + minWidth: 100, + }, + { + label: '姓名', + prop: 'name', + search:true, + editDisabled:true, + minWidth: 80, + }, + { + label: '班级', + prop: 'className', + editDisabled:true, + minWidth: 120, + }, + { + label: '电话', + prop: 'phone', + search:true, + editDisabled:true, + minWidth: 120, + }, + + { + label: '登记时间', + prop: 'createTime', + addDisplay:false, + editDisplay:false, + minWidth: 150, + }, + { + label: '是否联系', + prop: 'isContact', + search:true, + type: "select", + fixed: "left", + minWidth: 70, + rules: [{ + required: true, + message: "请选择状态", + trigger: "blur" + }], + dicData: [{ + label: '待联系', + value: "0" + },{ + label: '已联系', + value: "1" + }, { + label: '未接通', + value: "3" + }] + }, + { + label: '联系人', + prop: 'clName', + fixed: "left", + search:true, + editDisabled:true, + }, + { + label: '反馈内容', + prop: 'feedback', + // overHidden: true, + type:"textarea", + fixed: "left", + span: 24, + minWidth: 350, + editDisabled:true, + rules: [{ + required: true, + message: "请选择反馈内容", + trigger: "blur" + }], + }, + { + label: '反馈处理', + prop: 'remarks', + fixed: "left", + // overHidden: true, + type:"textarea", + span: 24, + minWidth: 300, + }, + ] +} diff --git a/src/const/crud/stuwork/screenmanage.js b/src/const/crud/stuwork/screenmanage.js new file mode 100644 index 0000000..36fbc02 --- /dev/null +++ b/src/const/crud/stuwork/screenmanage.js @@ -0,0 +1,51 @@ +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: true, + delBtn: true, + addBtn: false, + selection: true, + dic: [], + column: [ + { + label: '设备UID', + prop: 'uid', + search: true, + }, + { + label: '设备名称', + prop: 'deviceName', + search: true, + }, + { + label: '设备IP', + prop: 'deviceIp', + search: true, + }, + // { + // label: '设备位置', + // prop: 'devicePosition', + // search: false + // }, + { + label: '请求时间', + prop: 'queryTime', + }, + { + label: '组别', + prop: 'buildNo' + }, + { + label: '教室', + prop: 'room' + }, + { + label: '班级编码', + prop: 'classCode' + } + ] +} diff --git a/src/const/crud/stuwork/stipendstu.js b/src/const/crud/stuwork/stipendstu.js new file mode 100644 index 0000000..e179473 --- /dev/null +++ b/src/const/crud/stuwork/stipendstu.js @@ -0,0 +1,242 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {CURRENT_SCHOOL_TERM, CURRENT_SCHOOL_YEAR} from "@/config/global"; +import global from "@/components/tools/commondict"; +export const YES_OR_NO=[ + { + label:'待审核', + value:'0' + }, + { + label:'审核通过', + value:'1' + }, + { + label:'审核驳回', + value:'2' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + search:true, + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + search:true, + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"选择学期" + }] + }, + { + label: '助学金类型', + prop: 'bathId', + labelWidth: 120, + search:true, + type:"select", + dicUrl: '/stuwork/stipendtermbatch/list', + props: { + label: 'title', + value: 'id' + }, + }, + { + label: '学院', + prop: 'deptCode', + labelWidth: 120, + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '学院名称', + prop: 'deptName' + }, + { + label: '专业编码', + prop: 'majorCode' + }, + { + label: '专业名称', + prop: 'majorName' + }, + { + label: '班主任工号', + prop: 'teacherNo' + }, + { + label: '班主任姓名', + prop: 'teacherName' + }, + { + label: '年级', + prop: 'grade' + }, + { + label: '班号', + prop: 'classNo' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '性别', + prop: 'gender', + addDisplay:false, + editDisplay: false, + type:"select", + dicUrl: '/admin/dict/item/type/sexy', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '联系电话', + prop: 'phone' + }, + { + label: '身份证号', + prop: 'idCard' + }, + { + label: '金额', + prop: 'money' + }, + { + label: '审核状态', + prop: 'checkStatus', + search:true, + type:"select", + addDisplay:false, + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '文化程度', + prop: 'education', + addDisplay:false, + editDisplay: false, + type:"select", + dicUrl: '/admin/dict/item/type/pre_school_education', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} +export const tableStuListOption = { + border: true, + index: true, + indexLabel: '序号', + selection: true, + stripe: true, + menuAlign: 'center', + menu:false, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '助学金类型', + prop: 'bathId', + labelWidth: 120, + hide:true, + searchFilterable:true, + search:true, + type:"select", + dicUrl: '/stuwork/stipendtermbatch/list', + props: { + label: 'title', + value: 'id' + }, + }, + { + label: '班级', + prop: 'classCode', + width: 100, + searchFilterable:true, + search:true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + props:{ + label:'classNo', + value:'classCode' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"选择班级" + }] + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + ] +} diff --git a/src/const/crud/stuwork/stipendtermbatch.js b/src/const/crud/stuwork/stipendtermbatch.js new file mode 100644 index 0000000..20042da --- /dev/null +++ b/src/const/crud/stuwork/stipendtermbatch.js @@ -0,0 +1,159 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {CURRENT_SCHOOL_TERM, CURRENT_SCHOOL_YEAR} from "@/config/global"; +import global from "@/components/tools/commondict"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + dialogHeight:"100%", + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '批次名称', + prop: 'title', + width:250, + span:24, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入批次名称" + }] + }, + { + label: '学年', + prop: 'schoolYear', + search:true, + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + search:true, + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"选择学期" + }] + }, + { + label: '季度', + prop: 'type', + type:'select', + editDisabled:true, + dicUrl: '/admin/dict/item/type/stipend_term_batch_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + { + label: '类别', + prop: 'classify', + type:'select', + editDisabled:true, + dicUrl: '/admin/dict/item/type/classify', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + { + label: '补助金额', + prop: 'moneyValue', + addDisplay:false, + editDisplay:false, + }, + { + label: '补助金额', + prop: 'money', + type:'select', + hide:true, + editDisabled:true, + span:24, + dicUrl: '/admin/dict/item/type/stipendMoney', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请填写补助金额", + trigger: "blur" + }] + }, + { + label: '开始日期', + prop: 'startTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + trigger: 'blur', + message:"选择开始时间" + }] + }, + { + label: '截止日期', + prop: 'endTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd ', + rules: [{ + required: true, + trigger: 'blur', + message:"选择结束时间" + }] + }, + { + label: '备注', + span:24, + prop: 'remarks', + type:'textarea' + }, + ] +} diff --git a/src/const/crud/stuwork/stuassociation.js b/src/const/crud/stuwork/stuassociation.js new file mode 100644 index 0000000..5efdf08 --- /dev/null +++ b/src/const/crud/stuwork/stuassociation.js @@ -0,0 +1,188 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '社团名称', + prop: 'associationName', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写社团名称" + }] + }, + { + label: '学院', + prop: 'deptCode', + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '学院名称', + prop: 'deptName', + addDisplay:false, + editDisplay:false, + hide:true + }, + { + label: '指导老师', + prop: 'teacherNo', + filterable:true, + // searchFilterable:true, + // search:true, + hide:true, + type:"select", + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + }, + { + label: '指导老师姓名', + prop: 'teacherRealName', + search:true, + addDisplay:false, + editDisplay:false, + // hide:true + }, + { + label: '负责人', + prop: 'maintainer', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写负责人姓名" + }] + }, + { + label:'人数', + prop:'num', + addDisplay:false, + editDisplay:false, + }, + { + label: '成立时间', + prop: 'openTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择成立时间" + }] + }, + { + label: '联系电话', + prop: 'tel', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入联系电话" + }] + }, + { + label: '所属类别', + prop: 'type', + search:true, + type:'select', + dicUrl: '/admin/dict/item/type/association_type', + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + { + label: '成立申请', + prop: 'applyNote', + type:'textarea', + row:true, + span:24, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写成立申请" + }] + }, + { + label: '社团章程', + prop: 'ruleNote', + type:'textarea', + // row:true, + span:24, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写社团章程" + }] + }, + ] +} diff --git a/src/const/crud/stuwork/stuassociationmember.js b/src/const/crud/stuwork/stuassociationmember.js new file mode 100644 index 0000000..ded77af --- /dev/null +++ b/src/const/crud/stuwork/stuassociationmember.js @@ -0,0 +1,138 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + formslot: true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '所属社团', + prop: 'associationId', + searchFilterable:true, + search:true, + editDisabled:true, + type:'select', + dicUrl:'/stuwork/stuassociation/stuAssociationList', + props:{ + label:'associationName', + value:'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择社团" + }] + }, + { + label: '班号', + prop: 'classCode', + editDisabled:true, + formslot: true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + editDisabled:true, + formslot: true, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写" + }] + }, + { + label: '姓名', + prop: 'realName', + addDisplay:false, + editDisplay:false, + }, + { + label: '联系电话', + prop: 'phone', + addDisplay:false, + editDisplay:false, + }, + { + label: '职务', + prop: 'position', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写职务" + }] + }, + ] +} diff --git a/src/const/crud/stuwork/stucare.js b/src/const/crud/stuwork/stucare.js new file mode 100644 index 0000000..2875753 --- /dev/null +++ b/src/const/crud/stuwork/stucare.js @@ -0,0 +1,219 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + labelWidth:120, + addDisplay:false, + editDisabled:true, + type:'select', + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + addDisplay:false, + editDisabled:true, + type:'select', + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学期" + }] + }, + { + label: '学院', + prop:'deptCode', + search:true, + addDisplay:false, + editDisplay: false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + // hide:true + }, + { + label: '班级', + prop: 'classCode', + labelWidth:120, + searchFilterable:true, + editDisplay:false, + formslot: true, + search:true, + type:"select", + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择班级" + }] + }, + { + label: '姓名', + prop: 'realName', + labelWidth:120, + search:true, + addDisplay:false, + editDisplay:false, + + }, + { + label: '学号', + prop: 'stuNo', + labelWidth:120, + search:true, + editDisabled:true, + formslot: true, + hide:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学号" + }] + }, + { + label: '班主任姓名', + prop: 'teacherRealName', + addDisplay:false, + editDisplay:false, + }, + { + label: '班主任电话', + prop: 'teacherTel', + addDisplay:false, + editDisplay:false, + }, + { + label: '需关爱类型', + prop: 'careType', + labelWidth:120, + type:'select', + dicUrl: '/admin/dict/item/type/stu_care_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择关爱类型" + }] + }, + { + label: '危机表现', + prop: 'present', + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写危机表现" + }] + }, + + { + label: '记录时间', + prop: 'recordDate', + labelWidth:120, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + formslot:true, + rules: [{ + required: true, + message: "请选择时间", + trigger: "blur" + }], + }, + + { + label: '干预结果', + prop: 'result', + labelWidth:120, + addDisplay:false, + editDisabled:true, + }, + ] +} diff --git a/src/const/crud/stuwork/stuconduct.js b/src/const/crud/stuwork/stuconduct.js new file mode 100644 index 0000000..66e8c29 --- /dev/null +++ b/src/const/crud/stuwork/stuconduct.js @@ -0,0 +1,180 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + labelWidth:120, + type:'select', + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + type:'select', + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学期" + }] + }, + { + label: '学院', + prop:'deptCode', + search:true, + addDisplay:false, + editDisplay: false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + // hide:true + }, + { + label: '班级', + prop: 'classCode', + labelWidth:120, + searchFilterable:true, + editDisplay:false, + formslot: true, + search:true, + type:"select", + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择班级" + }] + }, + { + label:'姓名', + prop:'realName', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + }, + { + label: '学生', + prop: 'stuNo', + labelWidth:120, + formslot: true, + hide:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学号" + }] + }, + { + label: '分数', + prop: 'score', + labelWidth:120, + type:'number', + minRows:0, + maxRows:100, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入分数" + }] + }, + { + label: '类型', + prop: 'conductType', + labelWidth:120, + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/conduct_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类型" + }] + }, + { + label:'考核时间', + prop:'recordDate', + labelWidth:120, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择记录时间" + }] + }, + { + label: '情况记录', + prop: 'description', + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入情况记录" + }] + }, + { + label: '附件', + prop: 'attachment', + labelWidth:120, + slot:true, + formslot:true, + }, + ] +} diff --git a/src/const/crud/stuwork/stuconductTerm.js b/src/const/crud/stuwork/stuconductTerm.js new file mode 100644 index 0000000..1aae269 --- /dev/null +++ b/src/const/crud/stuwork/stuconductTerm.js @@ -0,0 +1,144 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + type:'select', + search:true, + addDisplay:false, + editDisplay: false, + hide:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + search:true, + addDisplay:false, + editDisplay: false, + hide:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '学院', + prop:'deptCode', + search:true, + addDisplay:false, + editDisplay: false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + // hide:true + }, + { + label: '班级', + prop: 'classCode', + labelWidth:120, + searchFilterable:true, + editDisplay:false, + formslot: true, + search:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择班级" + }] + }, + { + label:'姓名', + prop:'realName', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + }, + { + label: '学号', + prop: 'stuNo', + labelWidth:120, + formslot: true, + hide:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学号" + }] + }, + { + label: '分数', + prop: 'score', + labelWidth:120, + type:'number', + }, + { + label: '类型', + prop: 'conductType', + labelWidth:120, + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/conduct_type', + props:{ + label:'label', + value:'value' + } + }, + { + label: '情况记录', + prop: 'description', + labelWidth:120, + }, + { + label: '附件', + prop: 'attachment', + labelWidth:120, + slot:true, + formslot:true, + }, + ] +} diff --git a/src/const/crud/stuwork/stuconductYear.js b/src/const/crud/stuwork/stuconductYear.js new file mode 100644 index 0000000..1aae269 --- /dev/null +++ b/src/const/crud/stuwork/stuconductYear.js @@ -0,0 +1,144 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + type:'select', + search:true, + addDisplay:false, + editDisplay: false, + hide:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + search:true, + addDisplay:false, + editDisplay: false, + hide:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '学院', + prop:'deptCode', + search:true, + addDisplay:false, + editDisplay: false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + // hide:true + }, + { + label: '班级', + prop: 'classCode', + labelWidth:120, + searchFilterable:true, + editDisplay:false, + formslot: true, + search:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择班级" + }] + }, + { + label:'姓名', + prop:'realName', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + }, + { + label: '学号', + prop: 'stuNo', + labelWidth:120, + formslot: true, + hide:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学号" + }] + }, + { + label: '分数', + prop: 'score', + labelWidth:120, + type:'number', + }, + { + label: '类型', + prop: 'conductType', + labelWidth:120, + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/conduct_type', + props:{ + label:'label', + value:'value' + } + }, + { + label: '情况记录', + prop: 'description', + labelWidth:120, + }, + { + label: '附件', + prop: 'attachment', + labelWidth:120, + slot:true, + formslot:true, + }, + ] +} diff --git a/src/const/crud/stuwork/studentdormstatic.js b/src/const/crud/stuwork/studentdormstatic.js new file mode 100644 index 0000000..7fb6b89 --- /dev/null +++ b/src/const/crud/stuwork/studentdormstatic.js @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu:false, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '楼号', + prop: 'buildNo', + search:true, + type:"select", + dicUrl:'/stuwork/dormbuilding/list', + props:{ + label:'buildingNo', + value:'buildingNo' + } + }, + { + label: '宿舍号', + prop: 'roomNo', + search:true, + type:"select", + dicUrl:'/stuwork/dormroom/list', + props:{ + label:'roomNo', + value:'roomNo' + } + }, + { + label: '住宿人数', + prop: 'peopleNum' + }, + { + label:'统计时间', + prop:'staticTimeVal', + search:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/stuwork/studentsituationstatic.js b/src/const/crud/stuwork/studentsituationstatic.js new file mode 100644 index 0000000..c3833f9 --- /dev/null +++ b/src/const/crud/stuwork/studentsituationstatic.js @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menu:false, + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classNo', + search:true, + searchFilterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classNo', + }, + }, + { + label: '班主任', + prop: 'classMaster' + }, + { + label: '在校人数', + prop: 'atSchoolNum' + }, + { + label: '顶岗人生', + prop: 'positionNum' + }, + { + label: '更岗人数', + prop: 'changeJobNum' + }, + { + label: '住宿生人数', + prop: 'dormNum' + }, + { + label: '住宿生男', + prop: 'dormBoyNum' + }, + { + label: '住宿生女', + prop: 'dormGirlNum' + }, + { + label:'统计时间', + prop:'staticTimeVal', + search:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/stuwork/stuinnerleaveapply.js b/src/const/crud/stuwork/stuinnerleaveapply.js new file mode 100644 index 0000000..d7a2432 --- /dev/null +++ b/src/const/crud/stuwork/stuinnerleaveapply.js @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '租户ID', + prop: 'tenantId' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '系部代码', + prop: 'deptCode' + }, + { + label: '系部名称', + prop: 'deptName' + }, + { + label: '班号', + prop: 'classNo' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '班主任工号', + prop: 'teacherNo' + }, + { + label: '班主任姓名', + prop: 'teacherRealName' + }, + ] +} diff --git a/src/const/crud/stuwork/stuinnerleaveapplygroup.js b/src/const/crud/stuwork/stuinnerleaveapplygroup.js new file mode 100644 index 0000000..976cbc4 --- /dev/null +++ b/src/const/crud/stuwork/stuinnerleaveapplygroup.js @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '开始时间', + prop: 'startTime', + type: 'datetime', + span: 12, + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '开始时间不能为空', + trigger: 'blur' + }] + }, + { + label: '结束时间', + prop: 'endTime', + type: 'datetime', + span: 12, + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + message: '开始时间不能为空', + trigger: 'blur' + }] + }, + { + label: '选择学生', + prop: 'stuList', + span: 24, + formslot: true, + hide: true + }, + { + label: '请假事由', + prop: 'reason', + type: 'textarea', + span: 24 + }, + { + label: '发起部门', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + search:true, + + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + } + ] +} diff --git a/src/const/crud/stuwork/stuleaveapply.js b/src/const/crud/stuwork/stuleaveapply.js new file mode 100644 index 0000000..2cd7e77 --- /dev/null +++ b/src/const/crud/stuwork/stuleaveapply.js @@ -0,0 +1,547 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import {number} from "echarts/src/export"; + +const DIC = { + goOrStay:[{ + label: '走读生', + value: '0' + }, { + label: '住宿生', + value: '1' + }] +} +export const YES_OR_NO=[ + { + label:'待确认', + value:'0' + }, + { + label:'已确认', + value:'1' + } + +] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + labelWidth:120, + addDisplay:false, + editDisplay:false, + type:'select', + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + addDisplay:false, + editDisplay:false, + type:'select', + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学期" + }] + }, + { + label:'学院', + prop:'deptCode', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + search:true, + // addDisplay:false, + editDisplay:false, + labelWidth:120, + formslot: true, + hide:true, + searchFilterable:true, + filterable:true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + // { + // label:'学院', + // prop:'deptName', + // addDisplay:false, + // editDisabled:true, + // editDisplay:false, + // viewDisplay:false, + // }, + { + label:'班号', + prop:'classNo', + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + }, + { + label:'姓名', + prop:'realName', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + }, + { + label: '学号', + prop: 'stuNo', + // addDisplay:false, + editDisplay:false, + labelWidth:120, + formslot: true, + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请选择学号" + // }] + }, + { + label: '请假开始时间', + prop: 'startTime', + addDisplay:false, + editDisplay:false, + labelWidth:120, + type:'datetime', + format:'yyyy-MM-dd HH:mm', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择开始时间" + }] + }, + { + label: '请假时间', + prop: 'leaveTime', + labelWidth:120, + hide:true, + formslot: true, + }, + { + label: '请假结束时间', + prop: 'endTime', + addDisplay:false, + editDisplay:false, + labelWidth:120, + type:'datetime', + format:'yyyy-MM-dd HH:mm', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择结束时间" + }] + }, + { + label: '请假类型', + prop: 'leaveType', + search:true, + labelWidth:120, + type:"select", + dicUrl:'/admin/dict/item/type/leave_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择请假类型" + }] + }, + { + label: '请假事由', + prop: 'reason', + labelWidth:120, + width:200, + type:'textarea', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入请假事由" + }] + }, + { + label: '走读生/住宿生', + prop: 'goOrStay', + addDisplay:false, + editDisplay:false, + hide:true, + search:true, + type:"select", + dicData:DIC.goOrStay + }, + { + label: '是否住宿', + prop: 'stayDorm', + labelWidth:120, + search:true, + // formslot: true, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择是否住宿" + }] + }, + { + label: '是否发热', + prop: 'isFever', + labelWidth:120, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择是否发热" + }] + }, + { + label: '已和家长及学生本人确认,同意请假', + prop: 'isAffirmOk', + addDisplay:false, + editDisplay:false, + type:'select', + dicData:YES_OR_NO, + }, + { + label: '班主任审核', + prop: 'classAudit', + labelWidth:120, + search:true, + addDisplay:false, + editDisplay:false, + // slot:true, + type:'select', + dicUrl:'/admin/dict/item/type/class_audit_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '学生科审核', + prop: 'deptAudit', + search:true, + labelWidth:120, + addDisplay:false, + editDisplay:false, + slot:true, + type:'select', + dicUrl:'/admin/dict/item/type/class_audit_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '学工处审批', + prop: 'schoolAudit', + search:true, + labelWidth:120, + addDisplay:false, + editDisplay:false, + slot:true, + type:'select', + dicUrl:'/admin/dict/item/type/class_audit_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '备注', + prop: 'remarks', + addDisplay:false, + editDisplay:false, + }, + { + label: '驳回原因', + prop: 'rejectReason', + addDisplay:false, + editDisplay:false, + labelWidth:120, + width:200, + type:'textarea', + }, + // { + // label: '流程实例ID', + // prop: 'procInsId', + // labelWidth:120, + // }, + // { + // label: '流程审批状态', + // prop: 'procInsStatus', + // labelWidth:120, + // addDisplay:false, + // editDisplay:false, + // type:"select", + // dicUrl:'/admin/dict/item/type/procIns_status', + // props:{ + // label:'label', + // value:'value' + // }, + // }, + ] +} + +export const stuLeaveApplyStatistics = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + type:'select', + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + }, + { + label:'学院', + prop:'deptCode', + search:true, + viewDisplay:false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + search:true, + searchFilterable:true, + filterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '请假人次', + prop: 'leaveNum', + width:200, + sortable:true, + }, + { + label: '旷课人次', + prop: 'truantNum', + width:200, + sortable:true, + }, + ] +} + +export const stuLeaveApplyContinuous = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + type:'select', + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + }, + { + label:'学院', + prop:'deptCode', + search:true, + viewDisplay:false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + search:true, + searchFilterable:true, + filterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + + { + label: '学号', + prop: 'stuNo' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label:'连续请假天数>=', + prop: 'leaveDays', + type:'number', + search:true, + minRows:0, + hide:true + }, + { + label: '请假人次', + prop: 'leaveNum', + width:200, + }, + ] +} + diff --git a/src/const/crud/stuwork/stupunlish.js b/src/const/crud/stuwork/stupunlish.js new file mode 100644 index 0000000..3ce29d8 --- /dev/null +++ b/src/const/crud/stuwork/stupunlish.js @@ -0,0 +1,253 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + { + label: '创建时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + hide:true + }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + labelWidth:120, + addDisplay:false, + editDisplay:false, + type:'select', + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + labelWidth:120, + addDisplay:false, + editDisplay:false, + type:'select', + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学期" + }] + }, + { + label:'学院', + prop:'deptCode', + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + }, + { + label: '班级', + prop: 'classCode', + labelWidth:120, + editDisplay:false, + searchFilterable:true, + search:true, + // hide:true, + formslot: true, + type:'select', + dicUrl:'/basic/basicclass/listByRole', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择班级" + }] + }, + { + label:'姓名', + prop:'realName', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + }, + { + label: '学号', + prop: 'stuNo', + labelWidth:120, + search:true, + formslot: true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学生" + }] + }, + { + label: '处分时间', + prop: 'punlishStartDate', + labelWidth:120, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择开始时间" + }] + }, + { + label:'处分月份', + prop:'punlishMonth', + search:true, + type:'month', + format:'yyyy-MM', + valueFormat:'yyyy-MM', + addDisplay:false, + editDisplay:false, + hide:true + }, + { + label: '到期日', + prop: 'punlishEndDate', + labelWidth:120, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择结束时间" + }] + }, + { + label: '处分级别', + prop: 'punlishLevel', + search:true, + labelWidth:120, + type:'select', + dicUrl:'/admin/dict/item/type/punlish_level', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择处分级别" + }] + }, + { + label: '处分内容', + prop: 'punlishContent', + labelWidth:120, + span:24, + overHidden:true, + type:'textarea', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写处分内容" + }] + }, + { + label: '处分状态', + prop: 'publishStatus', + // search:true, + labelWidth:120, + addDisplay:false, + search:true, + // editDisplay:false, + type:"select", + dicUrl:'/admin/dict/item/type/publish_status', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '附件地址', + prop: 'attachment', + labelWidth:120, + addDisplay:false, + editDisplay:false, + hide:true + }, + ] +} diff --git a/src/const/crud/stuwork/stutemleaveapply.js b/src/const/crud/stuwork/stutemleaveapply.js new file mode 100644 index 0000000..7908b44 --- /dev/null +++ b/src/const/crud/stuwork/stutemleaveapply.js @@ -0,0 +1,152 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学年', + prop: 'schoolYear', + editDisabled:true, + }, + { + label: '学期', + prop: 'schoolTerm', + editDisabled:true, + }, + { + label: '系部代码', + prop: 'deptCode', + type:'select', + search:true, + filterable:true, + searchFilterable:true, + editDisabled:true, + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + },rules: [{ + required: true, + message: '部门不能为空', + trigger: 'blur' + } + ] + }, + { + label: '班级代码', + prop: 'classCode', + search:true, + editDisabled:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + search:true, + editDisabled:true, + }, + { + label: '姓名', + prop: 'realName', + editDisabled:true, + }, + { + label: '请假开始时间', + prop: 'startTime' + }, + { + label: '请假结束时间', + prop: 'endTime' + }, + { + label: '请假事由', + prop: 'reason' + }, + + { + label: '班主任', + prop: 'classTeach', + editDisabled:true, + }, + { + label: '联系方式', + prop: 'stuPhote', + editDisabled:true, + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} +export const stuOption={ + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '班级代码', + prop: 'classCode', + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号(后6位)', + prop: 'stuNo', + search:true, + }, + { + label: '姓名', + prop: 'realName' + }, + + { + label: '班主任', + prop: 'classMasterName' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/stuwork/stutest.js b/src/const/crud/stuwork/stutest.js new file mode 100644 index 0000000..f9f3b6a --- /dev/null +++ b/src/const/crud/stuwork/stutest.js @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学院名称', + prop: 'deptName' + }, + { + label: '志愿代码', + prop: 'volunteerCode' + }, + { + label: '专业名称', + prop: 'majorName' + }, + { + label: '分数线', + prop: 'scoreLine' + }, + { + label: '计划招生数', + prop: 'planStudentNum' + }, + { + label: '招生地区', + prop: 'formArea' + }, + ] +} diff --git a/src/const/crud/stuwork/stuturnover.js b/src/const/crud/stuwork/stuturnover.js new file mode 100644 index 0000000..14ae10d --- /dev/null +++ b/src/const/crud/stuwork/stuturnover.js @@ -0,0 +1,184 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '学年', + prop: 'schoolYear', + // labelWidth:120, + editDisabled:true, + type:'select', + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + // labelWidth:120, + editDisabled:true, + type:'select', + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学期" + }] + }, + { + label: '学院', + prop: 'deptCode', + // hide:true, + addDisplay:false, + editDisplay:false, + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '原班级', + prop: 'oldClassCode', + editDisabled:true, + searchFilterable:true, + search:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label:'classNo', + value:'classCode' + } + }, + { + label: '现班级', + prop: 'newClassCode', + editDisabled:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label:'classNo', + value:'classCode' + } + }, + { + label: '学号', + prop: 'stuNo', + search:true, + editDisabled:true, + // hide:true + }, + { + label: '姓名', + prop: 'realName', + search:true, + editDisabled:true, + }, + { + label: '异动时间', + prop: 'turnoverDate', + editDisabled:true, + type:'date', + format: "yyyy-MM-dd", + valueFormat: "yyyy-MM-dd", + }, + { + label: '异动类型', + prop: 'turnoverType', + search:true, + editDisabled:true, + type:'select', + dicUrl:'/admin/dict/item/type/turnover_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '转制类型', + prop: 'turnYear', + editDisabled:true, + type:'select', + dicUrl:'/admin/dict/item/type/turn_year_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '异动原因', + prop: 'remarks', + span:240, + type:'textarea' + }, + ] +} diff --git a/src/const/crud/stuwork/stuunion.js b/src/const/crud/stuwork/stuunion.js new file mode 100644 index 0000000..b248396 --- /dev/null +++ b/src/const/crud/stuwork/stuunion.js @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学生会名称', + prop: 'unionName', + editDisabled: true, + rules: [{ + required: true, + trigger: 'blur', + message:"请填写学生会名称" + }] + }, + { + label: '类型', + prop: 'unionType', + editDisabled: true, + type:'select', + dicUrl:'/admin/dict/item/type/union_type', + props:{ + value:'value', + label:'label' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类型" + }] + }, + { + label: '上级学生会', + prop: 'parentId', + editDisabled: true, + editDisplay:false, + hide:true + }, + { + label: '联系地址', + prop: 'address', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写联系地址" + }] + }, + { + label: '负责人', + prop: 'maintainer', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写负责人" + }] + }, + { + label:'排序', + prop:'sort' + } + ] +} diff --git a/src/const/crud/stuwork/stuunionleague.js b/src/const/crud/stuwork/stuunionleague.js new file mode 100755 index 0000000..b63336b --- /dev/null +++ b/src/const/crud/stuwork/stuunionleague.js @@ -0,0 +1,159 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label:'学院', + prop:'deptCode', + addDisplay:false, + editDisplay: false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + addDisplay:false, + editDisplay: false, + searchFilterable:true, + search:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + search:true, + editDisabled:true, + rules: [{ + required: true, + message: "请输入学号", + trigger: "blur" + }] + }, + { + label: '姓名', + prop: 'realName', + search:true, + addDisplay:false, + editDisplay: false, + }, + { + label: '联系电话', + prop: 'phone', + addDisplay:false, + editDisplay: false, + }, + { + label: '入团时间', + prop: 'enterTime', + // type:'date', + // format:'yyyy-MM-dd', + // valueFormat:'yyyy-MM-dd' + // rules: [{ + // required: true, + // message: "请输入入团时间", + // trigger: "blur" + // }] + }, + { + label: '团员编号', + prop: 'serNo', + search:true, + // rules: [{ + // required: true, + // message: "请输入团员编号", + // trigger: "blur" + // }] + }, + { + label: '团内职务', + prop: 'position', + // rules: [{ + // required: true, + // message: "请输入团内职务", + // trigger: "blur" + // }] + }, + { + label:'入学年份', + prop:'grade', + labelWidth: 120, + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl: '/basic/basicclass/getGradeList', + props: { + label: 'grade', + value: 'grade' + }, + }, + ] +} diff --git a/src/const/crud/stuwork/stuunionmember.js b/src/const/crud/stuwork/stuunionmember.js new file mode 100644 index 0000000..88a8b63 --- /dev/null +++ b/src/const/crud/stuwork/stuunionmember.js @@ -0,0 +1,160 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + + { + label: '学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + formslot: true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '学生会', + prop: 'unionId', + editDisabled:true, + type:'select', + dicUrl:'/stuwork/stuunion/stuUnionList', + props:{ + label:'unionName', + value:'id' + }, + }, + { + label: '班号', + prop: 'classCode', + formslot: true, + editDisabled:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + editDisabled:true, + formslot: true, + }, + { + label: '姓名', + prop: 'realName', + addDisplay:false, + editDisplay:false, + }, + { + label: '性别', + prop: 'gender', + addDisplay:false, + editDisplay:false, + type:"select", + dicUrl: '/admin/dict/item/type/sexy', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '联系电话', + prop: 'phone', + addDisplay:false, + editDisplay:false, + }, + { + label: '学籍状态', + prop: 'stuStatus', + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl:'/admin/dict/item/type/student_status', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '入会时间', + prop: 'enterTime', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写入会时间" + }] + }, + { + label: '职务', + prop: 'position', + rules: [{ + required: true, + trigger: 'blur', + message:"请填写职务" + }] + }, + ] +} diff --git a/src/const/crud/stuwork/stuvisitlog.js b/src/const/crud/stuwork/stuvisitlog.js new file mode 100644 index 0000000..a6c8e37 --- /dev/null +++ b/src/const/crud/stuwork/stuvisitlog.js @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + dic: [], + column: [ + { + label: '', + prop: 'id', + hide:true + }, + { + label: '学号/工号', + prop: 'stuNo' + }, + { + label: '用户类型', + prop: 'userType', + dicUrl:'/admin/dict/item/type/sys_user_type', + type:'select', + }, + { + label: '姓名', + prop: 'realName', + }, + { + label: '就诊时间', + prop: 'createTime' + }, + + { + label: '班号', + prop: 'classNo' + }, + { + label: '手机号码', + prop: 'phone' + }, + { + label: '主要症状', + prop: 'mainSymptoms' + }, + { + label: '主要症状(其他)', + prop: 'mainSymptomsOther' + }, + { + label: '既往过敏药物', + prop: 'iallergicDrugs' + }, + { + label: '其他过敏药物(其他)', + prop: 'allergicDrugsOther' + }, + { + label: '初步诊断', + prop: 'diagnosis' + }, + { + label: '初步诊断(其他)', + prop: 'diagnosisOther' + }, + { + label: '处置意见', + prop: 'idea' + }, + { + label: '处置医生', + prop: 'dockerName' + } + ] +} diff --git a/src/const/crud/stuwork/teachbuilding.js b/src/const/crud/stuwork/teachbuilding.js new file mode 100644 index 0000000..40f0681 --- /dev/null +++ b/src/const/crud/stuwork/teachbuilding.js @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '楼号', + prop: 'buildingNo', + type:'number', + minRows:1, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入楼号" + }] + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/stuwork/teachclassroom.js b/src/const/crud/stuwork/teachclassroom.js new file mode 100644 index 0000000..e00580d --- /dev/null +++ b/src/const/crud/stuwork/teachclassroom.js @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + selection: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学院', + prop: 'deptCode', + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptListByLevelTwo', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules:[{ + required: true, + message: '请选择二级学院', + trigger: 'blur' + }] + }, + { + label: '楼号', + prop: 'buildingNo', + search:true, + type:'select', + dicUrl:'/stuwork/teachbuilding/list', + props:{ + label: 'buildingNo', + value: 'buildingNo', + }, + rules:[{ + required: true, + message: '请选择楼号', + trigger: 'blur' + }] + }, + { + label: '教室位置', + prop: 'position', + formslot:true, + rules:[{ + required: true, + message: '请填写教室位置', + trigger: 'blur' + }] + }, + ] +} diff --git a/src/const/crud/stuwork/teachclassroomassign.js b/src/const/crud/stuwork/teachclassroomassign.js new file mode 100755 index 0000000..f719978 --- /dev/null +++ b/src/const/crud/stuwork/teachclassroomassign.js @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + { + label: '楼号', + prop: 'buildingNo', + labelWidth:120, + search:true, + type:'select', + dicUrl:'/stuwork/teachbuilding/list', + props:{ + label: 'buildingNo', + value: 'buildingNo', + }, + rules:[{ + required: true, + message: '请选择楼号', + trigger: 'blur' + }] + }, + { + label: '教室位置', + prop: 'position', + search:true, + labelWidth:120, + searchFilterable:true, + filterable:true, + type:'select', + dicUrl:'/stuwork/teachclassroom/list', + props:{ + label: 'position', + value: 'position', + }, + rules:[{ + required: true, + message: '请选择教室', + trigger: 'blur' + }] + }, + { + label: '班号', + prop: 'classCode', + labelWidth:120, + search:true, + searchFilterable:true, + filterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules:[{ + required: true, + message: '请选择班级', + trigger: 'blur' + }] + }, + // { + // label: '备注', + // prop: 'remarks' + // }, + ] +} diff --git a/src/const/crud/stuwork/termactivity.js b/src/const/crud/stuwork/termactivity.js new file mode 100644 index 0000000..daddb61 --- /dev/null +++ b/src/const/crud/stuwork/termactivity.js @@ -0,0 +1,149 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + dialogHeight:550, + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + { + label: '标题', + prop: 'title', + span:12, + rules: [{ + required: true, + message: '请填写标题', + trigger: 'blur' + }] + }, + { + label: '作者', + prop: 'author', + search:true, + span:12, + rules: [{ + required: true, + message: '请填写作者', + trigger: 'blur' + }] + }, + { + label: '内容', + prop: 'content', + type: 'textarea', + hide:true, + formslot:true, + span: 24, + rules: [{ + required: true, + message: '请填写内容', + trigger: 'blur' + }] + }, + { + label: '更新时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false, + type:'date', + format:'yyyy-MM-dd', + }, + ] +} diff --git a/src/const/crud/stuwork/trainstatics.js b/src/const/crud/stuwork/trainstatics.js new file mode 100755 index 0000000..f2aa279 --- /dev/null +++ b/src/const/crud/stuwork/trainstatics.js @@ -0,0 +1,141 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '培训班级名称', + prop: 'className', + search:true + }, + { + label: '总计', + prop: 'total', + }, + { + label: '审核中', + prop: 'wait', + }, + { + label: '未申报', + prop: 'noExam', + }, + { + label: '通过', + prop: 'pass', + }, + { + label: '驳回', + prop: 'back', + } + ] +} + +export const tableInSchoolOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + dic: [], + column: [ + + { + label: '培训班级名称', + prop: 'className', + search:true + }, + { + label: '开始时间', + prop: 'startDate', + type:'date', + format:"yyyy-MM-dd", + valueFormat:"yyyy-MM-dd", + hide:true, + search:true + }, + { + label: '结束时间', + prop: 'endDate', + type:'date', + format:"yyyy-MM-dd", + valueFormat:"yyyy-MM-dd", + hide:true, + search:true + }, + { + label: '进校', + prop: 'total', + }, + ] +} + + +export const skTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '部门名称/单位名称', + prop: 'className', + search:true + }, + { + label: '总计', + prop: 'total', + }, + { + label: '审核中', + prop: 'wait', + }, + { + label: '未申报', + prop: 'noExam', + }, + { + label: '通过', + prop: 'pass', + }, + { + label: '驳回', + prop: 'back', + } + ] +} diff --git a/src/const/crud/stuwork/tuitionfreestu.js b/src/const/crud/stuwork/tuitionfreestu.js new file mode 100644 index 0000000..2acad8c --- /dev/null +++ b/src/const/crud/stuwork/tuitionfreestu.js @@ -0,0 +1,259 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +export const YES_OR_NO=[ + { + label:'待审核', + value:'0' + }, + { + label:'审核通过', + value:'1' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '批次', + prop: 'termId', + type:'select', + hide:true, + search:true, + dicUrl: '/stuwork/tuitionfreeterm/list', + props:{ + label:'title', + value:'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择批次表" + }] + }, + { + label: '学院', + width:120, + prop: 'deptCode', + search:true, + addDisplay:false, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学院" + }] + }, + // { + // label: '学院名称', + // prop: 'deptName' + // }, + { + label: '专业', + prop: 'majorCode', + addDisplay:false, + type:'select', + dicUrl: '/basic/major/getMajorNameList', + props: { + label: 'majorName', + value: 'majorCode' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择专业" + }] + }, + // { + // label: '专业名称', + // prop: 'majorName' + // }, + { + width:80, + label: '班主任', + prop: 'teacherNo', + addDisplay:false, + type:'select', + filterable:true, + dicUrl:'/professional/teacherbase/TeacherBaseList', + props:{ + label:'realName', + value:'teacherNo' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择班主任" + }] + }, + // { + // label: '班主任姓名', + // prop: 'teacherName' + // }, + { + width:70, + label: '入学年份', + prop: 'grade', + addDisplay:false, + search:true + }, + { + width:50, + label: '年级', + prop: 'gradeCurr', + addDisplay:false, + search:true + }, + { + width:60, + label: '班级', + prop: 'classCode', + searchFilterable:true, + formslot:true, + search:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择班级" + }] + }, + // { + // label: '班号', + // prop: 'classNo' + // }, + { + label: '学号', + prop: 'stuNo', + addDisabled:true + // formslot:true + }, + { + width:80, + label: '姓名', + prop: 'realName', + formslot:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择姓名" + }] + }, + { + width:50, + label: '性别', + prop: 'gender', + addDisplay:false, + type:"select", + dicUrl: '/admin/dict/item/type/sexy', + props:{ + label:'label', + value:'value' + }, + }, + // { + // label: '学历', + // prop: 'education', + // type: 'select', + // dicUrl: '/admin/dict/item/type/education_type', + // props:{ + // label:'label', + // value:'label' + // }, + // addDisplay:false, + // }, + { + width:60, + label: '生源', + prop: 'education', + type: 'select', + dicUrl: '/admin/dict/item/type/pre_school_education', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '中职卡号', + prop: 'bankCard', + addDisplay:false, + hide:true + }, + { + width:80, + label: '层次', + prop: 'majorLevel', + type:"select", + dicUrl: '/admin/dict/item/type/basic_major_level', + props:{ + label:'label', + value:'value' + }, + // hide:true + }, + { + width:120, + label: '联系电话', + prop: 'phone', + addDisplay:false, + }, + { + label: '身份证号', + prop: 'idCard', + hide:true, + addDisplay:false, + }, + { + label: '金额', + prop: 'money', + type:'number', + addDisplay:false, + precision: 2, + min:0, + }, + { + label: '审核状态', + prop: 'checkStatus', + search:true, + type:"select", + addDisplay:false, + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + }, + ] +} diff --git a/src/const/crud/stuwork/tuitionfreestuapply.js b/src/const/crud/stuwork/tuitionfreestuapply.js new file mode 100644 index 0000000..e1134d6 --- /dev/null +++ b/src/const/crud/stuwork/tuitionfreestuapply.js @@ -0,0 +1,141 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +export const YES_OR_NO=[ + { + label:'待审核', + value:'0' + }, + { + label:'审核通过', + value:'1' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection: true, + menu:false, + height:650, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + + { + label: '班级', + prop: 'classCode', + search:true, + searchFilterable:true, + type:"select", + dicUrl:'/basic/basicclass/queryUserClass', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '专业', + prop: 'majorCode', + type:'select', + dicUrl: '/basic/major/getMajorNameList', + props: { + label: 'majorName', + value: 'majorCode' + } + }, + { + label: '学号', + prop: 'stuNo', + }, + { + label: '姓名', + prop: 'realName', + }, + { + label: '性别', + prop: 'gender', + type:"select", + dicUrl: '/admin/dict/item/type/sexy', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '身份证号', + prop: 'idCard', + }, + { + label: '中职卡号', + prop: 'bankCard', + slot:true, + }, + { + label: '联系电话', + prop: 'phone', + slot:true, + }, + { + label: '生源', + prop: 'education', + type: 'select', + dicUrl: '/admin/dict/item/type/pre_school_education', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '层次', + prop: 'majorLevel', + type:"select", + dicUrl: '/admin/dict/item/type/basic_major_level', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '入学年份', + prop: 'grade', + }, + { + label: '当前年级', + prop: 'gradeCurr', + }, + { + label: '借读学年', + prop: 'temporaryyeYear', + }, + + ] +} diff --git a/src/const/crud/stuwork/tuitionfreeterm.js b/src/const/crud/stuwork/tuitionfreeterm.js new file mode 100644 index 0000000..914efd5 --- /dev/null +++ b/src/const/crud/stuwork/tuitionfreeterm.js @@ -0,0 +1,128 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import {CURRENT_SCHOOL_TERM} from "@/config/global"; +import {CURRENT_SCHOOL_YEAR} from "@/config/global"; +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + + { + label: '批次名称', + prop: 'title', + span:24, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入批次名称" + }] + }, + { + label: '学年', + prop: 'schoolYear', + editDisabled:true, + type:'select', + search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"选择学年" + }] + }, + { + label: '学期', + prop: 'schoolTerm', + editDisabled:true, + type:'select', + search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"选择学期" + }] + }, + { + label: '上报开始日期', + prop: 'startTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + trigger: 'blur', + message:"选择开始时间" + }] + }, + { + label: '上报截止日期', + prop: 'endTime', + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd ', + rules: [{ + required: true, + trigger: 'blur', + message:"选择结束时间" + }] + }, + { + label: '类别', + prop: 'type', + type:'select', + dicUrl: '/admin/dict/item/type/tuition_free_term_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类别" + }] + }, + { + label: 'excel表头', + prop: 'excelTitle', + type:'textarea', + span:24, + hide:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入excel表头" + }] + }, + ] +} diff --git a/src/const/crud/stuwork/uploadapp.js b/src/const/crud/stuwork/uploadapp.js new file mode 100644 index 0000000..fbdcfaa --- /dev/null +++ b/src/const/crud/stuwork/uploadapp.js @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: ' ', + prop: 'id' + }, + { + label: '更新名称', + prop: 'versionName' + }, + { + label: '版本号', + prop: 'versionCode' + }, + { + label: '上传后apk路径', + prop: 'url' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '租户ID', + prop: 'tenantId' + }, + { + label: '', + prop: 'delFlag' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/stuwork/waterdetail.js b/src/const/crud/stuwork/waterdetail.js new file mode 100644 index 0000000..324a081 --- /dev/null +++ b/src/const/crud/stuwork/waterdetail.js @@ -0,0 +1,185 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标志位', + // prop: 'delFlag' + // }, + // { + // label: '租户id', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '楼号', + prop: 'buildNo', + labelWidth:120, + search:true, + formslot:true, + type:"select", + dicUrl:'/stuwork/dormbuilding/list', + props:{ + label:'buildingNo', + value:'buildingNo' + }, + rules: [{ + required: true, + message: '请选择楼号', + trigger: 'blur' + }] + }, + { + label: '宿舍号', + prop: 'roomNo', + search:true, + labelWidth:120, + formslot:true, + type:"select", + searchFilterable:true, + filterable:true, + dicUrl:'/stuwork/dormroom/list', + props:{ + label:'roomNo', + value:'roomNo' + }, + rules: [{ + required: true, + message: '请选择宿舍号', + trigger: 'blur' + }] + }, + { + label: '几人间', + prop: 'bedNum', + labelWidth:120, + formslot:true, + rules: [{ + required: true, + message: '请选择几人间', + trigger: 'blur' + }] + }, + { + label: '已住人数', + prop: 'liveNum', + labelWidth:120, + formslot:true, + rules: [{ + required: true, + message: '请填写已住人数', + trigger: 'blur' + }] + }, + { + label: '班号', + prop: 'classNo', + hide:true, + labelWidth:120, + }, + { + label: '班主任工号', + prop: 'teacherNo', + hide:true, + labelWidth:120, + }, + { + label: '班主任姓名', + prop: 'teacherRealName', + hide:true, + labelWidth:120, + }, + { + label: '校园补贴', + prop: 'oddbMoney', + labelWidth:120, + type:'number', + minRows:0, + precision:2, + rules: [{ + required: true, + message: '请填写校园补贴', + trigger: 'blur' + }] + }, + { + label: '充值金额', + prop: 'rechargeMoney', + addDisplay:false, + editDisplay:false + }, + { + label: '消费金额', + prop: 'costMoney', + labelWidth:120, + type:'number', + // formslot:true, + minRows:0, + precision:2, + rules: [{ + required: true, + message: '请填写消费金额', + trigger: 'blur' + }] + }, + { + label: '可用余额', + prop: 'effectiveMoney', + sortable:true, + // search:true, + type:'number', + minRows:0, + precision:2, + addDisplay:false, + editDisplay:false, + }, + ] +} diff --git a/src/const/crud/stuwork/watermonthreport.js b/src/const/crud/stuwork/watermonthreport.js new file mode 100644 index 0000000..32c04a9 --- /dev/null +++ b/src/const/crud/stuwork/watermonthreport.js @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createDate' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateDate' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '房间号', + prop: 'roomNo' + }, + { + label: '年份', + prop: 'year' + }, + { + label: '月份', + prop: 'month' + }, + { + label: '用量', + prop: 'subiMonthSum' + }, + { + label: '费用', + prop: 'subWatFlagSum' + }, + { + label: '2:用电 4:用水', + prop: 'flag' + }, + { + label: '10:冷水 11:热水', + prop: 'meterNum' + }, + ] +} diff --git a/src/const/crud/stuwork/waterorder.js b/src/const/crud/stuwork/waterorder.js new file mode 100644 index 0000000..9ad8dcb --- /dev/null +++ b/src/const/crud/stuwork/waterorder.js @@ -0,0 +1,198 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createDate' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateDate' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '宿舍号', + prop: 'roomNo', + filterable:true, + searchFilterable:true, + search:true, + type:"select", + dicUrl:'/stuwork/dormroom/list', + props:{ + label:'roomNo', + value:'roomNo' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入宿舍号" + }] + }, + { + label: '学年', + prop: 'year', + editDisabled:true, + type:'select', + search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"选择学年" + }] + }, + { + label: '学期', + prop: 'period', + editDisabled:true, + type:'select', + search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学期" + }] + }, + { + label: '订单号', + prop: 'orderNum', + addDisplay:false, + editDisabled:true + }, + { + label: '类型', + prop: 'type', + type:'select', + editDisabled:true, + dicUrl: '/admin/dict/item/type/dorm_water_source_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择类型" + }] + }, + { + label: '充值类型', + prop: 'paymentCode', + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl: '/admin/dict/item/type/dorm_water_payment_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择充值类型" + }] + }, + { + label: '金额', + prop: 'money', + type:'number', + minRows:0, + precision:2, + rules: [{ + required: true, + message: '请填写金额', + trigger: 'blur' + }] + }, + { + label: '充值人的账户', + prop: 'chargeAccount', + addDisplay:false, + editDisplay:false + }, + { + label: '充值人的真实姓名', + prop: 'chargeRealname', + addDisplay:false, + editDisplay:false + }, + { + label: '充值结果', + prop: 'chargeState', + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl: '/admin/dict/item/type/dorm_water_charge_state', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '状态', + prop: 'state', + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl: '/admin/dict/item/type/dorm_water_state', + props:{ + label:'label', + value:'value' + }, + }, + ] +} diff --git a/src/const/crud/stuwork/weekplan.js b/src/const/crud/stuwork/weekplan.js new file mode 100644 index 0000000..a63aada --- /dev/null +++ b/src/const/crud/stuwork/weekplan.js @@ -0,0 +1,149 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +import global from "@/components/tools/commondict" + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + dialogHeight:700, + maxHeight:600, + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + width:100, + type:'select', + addDisplay:false, + editDisplay:false, + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学年" + } + ] + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + addDisplay:false, + editDisplay:false, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + rules: [ + { + required: true, + trigger: 'blur', + message:"选择学期" + } + ] + }, + { + label: '标题', + prop: 'title', + span:12, + rules: [{ + required: true, + message: '请填写标题', + trigger: 'blur' + }] + }, + { + label: '作者', + prop: 'author', + search:true, + span:12, + rules: [{ + required: true, + message: '请填写作者', + trigger: 'blur' + }] + + }, + { + label: '内容', + prop: 'content', + type: 'textarea', + hide:true, + formslot:true, + span: 24, + rules: [{ + required: true, + message: '请填写内容', + trigger: 'blur' + }] + }, + { + label: '更新时间', + prop: 'createTime', + type:'date', + format:'yyyy-MM-dd', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + ] +} diff --git a/src/const/crud/support/computerassignreason.js b/src/const/crud/support/computerassignreason.js new file mode 100755 index 0000000..412b0a3 --- /dev/null +++ b/src/const/crud/support/computerassignreason.js @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + { + label: '配备原因', + prop: 'reason' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/support/computerbrand.js b/src/const/crud/support/computerbrand.js new file mode 100755 index 0000000..6d38f81 --- /dev/null +++ b/src/const/crud/support/computerbrand.js @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + { + label: '电脑类型', + prop: 'typeCode', + type: 'select', + dicUrl: 'support/computertype/getComputerTypeList', + props: { + label: 'typeName', + value: 'id' + }, + }, + { + label: '电脑品牌', + prop: 'brandName' + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/support/computermodel.js b/src/const/crud/support/computermodel.js new file mode 100755 index 0000000..9c2eb20 --- /dev/null +++ b/src/const/crud/support/computermodel.js @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + { + label: '电脑品牌', + prop: 'brandCode', + type: 'select', + dicUrl: 'support/computerbrand/getComputerBrandList', + props: { + label: 'brandName', + value: 'id' + }, + }, + { + label: '电脑型号', + prop: 'modelName' + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/support/computerteacherrelation.js b/src/const/crud/support/computerteacherrelation.js new file mode 100755 index 0000000..8015143 --- /dev/null +++ b/src/const/crud/support/computerteacherrelation.js @@ -0,0 +1,307 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '工号', + // prop: 'teacherNo', + // }, + // { + // label: '姓名', + // prop: 'realName' + // }, + // { + // label: '职称', + // prop: 'professionalTitle', + // type: 'select', + // dicUrl: 'professional/professionaltitlelevelconfig/getProfessionalTitleList', + // props: { + // label: 'professionalTitle', + // value: 'id' + // } + // }, + // { + // label: '进校时间', + // prop: 'entryTime', + // type:'datetime', + // format:'yyyy-MM-dd HH:mm' + // }, + // { + // label: '办公电脑类型', + // prop: 'computerType', + // type:'select', + // dicUrl:'/support/computertype/getComputerTypeList', + // props:{ + // label:'typeName', + // value:'id' + // }, + // }, + // { + // label: '资产编号', + // prop: 'assetsNum' + // }, + // { + // label: '电脑品牌型号', + // prop: 'brand', + // type:'select', + // dicUrl:'/support/computermodel/getComputerModelList', + // props:{ + // label:'modelName', + // value:'id' + // }, + // }, + // { + // label: '配备原因', + // prop: 'assignReason', + // type:'select', + // dicUrl:'/support/computerassignreason/getAssignReasonList', + // props:{ + // label:'reason', + // value:'id' + // }, + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '工号', + prop: 'teacherNo', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '姓名', + prop: 'realName', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '职称', + prop: 'professionalTitle', + // type: 'select', + // dicUrl: 'professional/professionaltitlelevelconfig/getProfessionalTitleList', + // props: { + // label: 'professionalTitle', + // value: 'id' + // }, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '进校时间', + prop: 'entryTime', + type:'datetime', + format:'yyyy-MM-dd', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '办公电脑类型', + prop: 'computerTypeName', + labelWidth:150, + hide:true, + type:'cascader', + changeoOnSelect:false, + dicUrl:"/support/computermodel/getComputerSelectList", + rules: [{ + type:'array', + required: true, + message: '请选择办公电脑类型', + trigger: 'change' + }] + }, + // { + // label: '办公电脑类型', + // labelWidth:150, + // prop: 'computerType', + // type:"select", + // dicUrl: 'support/computertype/getComputerTypeList', + // props: { + // label: 'typeName', + // value: 'id' + // }, + // addDisplay:false, + // editDisabled:true, + // editDisplay:false, + // visdiplay:false + // }, + { + label: '电脑类型-品牌', + labelWidth:150, + prop: 'brand', + type:"select", + dicUrl: 'support/computerbrand/getComputerBrandList', + props: { + label: 'brandName', + value: 'id' + }, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '型号', + labelWidth:150, + prop: 'model', + type:"select", + dicUrl: 'support/computermodel/getComputerModelList', + props: { + label: 'modelName', + value: 'id' + }, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '资产编号', + labelWidth:150, + prop: 'assetsNum', + + }, + { + label: '配备原因', + labelWidth:150, + prop: 'assignReason', + type:'select', + dicUrl:'/support/computerassignreason/getAssignReasonList', + props:{ + label:'reason', + value:'id' + }, + rules: [{ + required: true, + message: "请选择配备原因", + trigger: "change" + }] + }, + { + label: '备注', + labelWidth:150, + prop: 'remarks', + type:"textarea", + span:24 + }, + ], +// option: [ +// { +// label: '工号', +// prop: 'teacherNo', +// addDisplay:false, +// editDisabled:false, +// formslot:true, +// }, +// { +// label: '姓名', +// prop: 'realName', +// addDisplay:false, +// editDisabled:false +// }, +// { +// label: '职称', +// prop: 'professionalTitle', +// type: 'select', +// dicUrl: 'professional/professionaltitlelevelconfig/getProfessionalTitleList', +// props: { +// label: 'professionalTitle', +// value: 'id' +// }, +// addDisplay:false, +// editDisabled:false +// }, +// { +// label: '进校时间', +// prop: 'entryTime', +// type:'datetime', +// format:'yyyy-MM-dd HH:mm', +// addDisplay:false, +// editDisabled:false +// }, +// { +// label: '办公电脑类型', +// prop: 'computerType', +// formslot:true, +// }, +// { +// label: '资产编号', +// prop: 'assetsNum' +// }, +// { +// label: '配备原因', +// prop: 'assignReason', +// type:'select', +// dicUrl:'/support/computerassignreason/getAssignReasonList', +// props:{ +// label:'reason', +// value:'id' +// }, +// }, +// { +// label: '备注', +// prop: 'remarks' +// }, +// ] + +} diff --git a/src/const/crud/support/computertype.js b/src/const/crud/support/computertype.js new file mode 100755 index 0000000..8ca5586 --- /dev/null +++ b/src/const/crud/support/computertype.js @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + { + label: '电脑类型', + prop: 'typeName' + }, + { + label: '排序', + prop: 'sort' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/support/repairapply.js b/src/const/crud/support/repairapply.js new file mode 100755 index 0000000..08eedeb --- /dev/null +++ b/src/const/crud/support/repairapply.js @@ -0,0 +1,682 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {CURRENT_SCHOOL_TERM, CURRENT_SCHOOL_YEAR} from "../../../config/global"; +import {isMobile, isPhone, isvalidatemobile} from "../../../util/validate"; + +var validatePhone = (rule, value, callback) => { + + if (!value) { + return callback(new Error('请输入报修人联系电话')); + } + setTimeout(() => { + if (!isMobile(value) && !isPhone(value)) { + callback(new Error('请输入正确的手机号或固话')); + } else { + callback(); + } + }, 1000); +}; + + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menuWidth: 150, + menuBtn: true, + // menuType: 'menu', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + searchslot:true, + searchShow:true, + dialogClickModal:false, + dialogWidth:'75%', + lineHeight:20, + headerHeight:20, + expand:false, + size:"small", + idKey:'id', + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + width:100, + label: '学年', + prop: 'xn', + // search:true, + type: 'select', + valueDefault:CURRENT_SCHOOL_YEAR, + searchDefault:CURRENT_SCHOOL_YEAR, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + width:100, + label: '学期', + prop: 'xq', + // search:true, + type: 'select', + valueDefault:CURRENT_SCHOOL_TERM, + searchDefault:CURRENT_SCHOOL_TERM, + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + width: 180, + label: '报修单单号', + prop: 'orderNum', + search: true, + + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + width: 80, + label: '报修人', + prop: 'realName', + search: true, + + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + width: 150, + label: '报修时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false, + type:'datetime', + format:'yyyy-MM-dd HH:mm' + }, + { + width:100, + label: '报修人工号', + prop: 'username', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + + }, + + { + label: '报修区域', + prop: 'cascaderArea', + type:'cascader', + changeoOnSelect:true, + dicUrl:"/support/repairarea/cascader", + placeholder:"请选择报修区域,不要选择与实际不符的区域", + slot:true, + search:true, + align:'left', + // hide:true, + rules: [{ + type:'array', + required: true, + message: '请选择报修区域', + trigger: 'change' + }] + }, + { + label: '报修类型', + prop: 'cascaderType', + slot:true, + search:false, + searchslot:true, + type:'cascader', + align:'left', + placeholder:"请选择报修类型,不要选择与实际不符的类型", + dicUrl:"/support/repairtype/cascader", + // hide:true, + rules: [{ + type:'array', + required: true, + message: '请选择报修类型', + trigger: 'change' + }] + }, + { + label: '报修地点', + prop: 'address', + rules: [{ + required: true, + message: '请输入报修地点', + trigger: 'blur' + }] + }, + { + width:115, + label: '联系电话', + prop: 'phone', + search:true, + // hide: true, + rules: [{ + required: true, + message: '请输入联系电话', + trigger: 'blur' + },{ validator: validatePhone, trigger: 'blur' }] + }, + { + width: 300, + label: '报修图片', + prop: 'imageUrl', + hide:true, + slot:true, + formslot:true + }, + { + width:200, + span: 24, + label: '报修内容', + prop: 'note', + overHidden: false, + type: 'textarea', + minRows: 3, + // hide:true, + rules: [{ + required: true, + message: '请输入具体的报修内容', + trigger: 'blur' + }] + }, + { + width:100, + label: '接单人', + prop: 'takeRealName', + hide: true, + search:true, + addDisplay:false, + editDisplay:false, + visdiplay:false + }, + + { + label: '维修人', + prop: 'repairRealName', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + + + }, + { + label: '维修时间', + prop: 'repairDate', + formslot:true, + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + + }, + { + span:24, + label: '维修描述', + prop: 'repairDesc', + overHidden: false, + type: 'textarea', + minRows: 3, + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '评分', + prop: 'score', + formslot: true, + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '状态', + prop: 'state', + type: 'select', + slot: true, + span: 24, + dicUrl: '/admin/dict/type/support_repair_state', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + ] +} + +export const tableOption1 = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + menuWidth: 150, + menuBtn: true, + // menuType: 'menu', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + searchslot:true, + searchShow:true, + dialogClickModal:false, + dialogWidth:'75%', + expand:false, + size:"small", + idKey:'id', + + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + width:100, + label: '学年', + prop: 'xn', + search:true, + type: 'select', + valueDefault:CURRENT_SCHOOL_YEAR, + searchDefault:CURRENT_SCHOOL_YEAR, + dicUrl: '/admin/dict/type/xnList', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + width:100, + label: '学期', + prop: 'xq', + search:true, + type: 'select', + valueDefault:CURRENT_SCHOOL_TERM, + searchDefault:CURRENT_SCHOOL_TERM, + dicUrl: '/admin/dict/type/xqList', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + width: 180, + label: '报修单单号', + prop: 'orderNum', + search: true, + + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + width: 80, + label: '报修人', + prop: 'realName', + search: true, + + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + width: 160, + label: '报修时间', + prop: 'createTime', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false, + type:'datetime', + format:'MM月dd日HH时mm分' + }, + { + width:100, + label: '报修人工号', + prop: 'username', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + + }, + + { + label: '报修区域', + prop: 'cascaderArea', + type:'cascader', + dicUrl:"/support/repairarea/cascader", + placeholder:"请选择报修区域,不要选择与实际不符的区域", + slot:true, + search:true, + align:'left', + hide:true, + rules: [{ + type:'array', + required: true, + message: '请选择报修区域', + trigger: 'change' + }] + }, + { + label: '报修类型', + prop: 'cascaderType', + slot:true, + search:true, + type:'cascader', + align:'left', + placeholder:"请选择报修类型,不要选择与实际不符的类型", + dicUrl:"/support/repairtype/cascader", + hide:true, + rules: [{ + type:'array', + required: true, + message: '请选择报修类型', + trigger: 'change' + }] + }, + { + label: '报修地点', + prop: 'address', + rules: [{ + required: true, + message: '请输入报修地点', + trigger: 'blur' + }] + }, + { + width:115, + label: '联系电话', + prop: 'phone', + search:true, + hide: true, + rules: [{ + required: true, + message: '请输入联系电话', + trigger: 'blur' + },{ validator: validatePhone, trigger: 'blur' }] + }, + { + width: 300, + label: '报修图片', + prop: 'imageUrl', + slot:true, + formslot:true + }, + { + width:200, + span: 24, + label: '报修内容', + prop: 'note', + overHidden: false, + type: 'textarea', + minRows: 3, + hide:true, + rules: [{ + required: true, + message: '请输入具体的报修内容', + trigger: 'blur' + }] + }, + { + width:100, + label: '接单人', + prop: 'takeRealName', + hide: false, + search:true, + addDisplay:false, + editDisplay:false, + visdiplay:false + }, + + { + label: '维修人', + prop: 'repairRealName', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + + + }, + { + label: '维修时间', + prop: 'repairDate', + formslot:true, + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + + }, + { + span:24, + label: '维修描述', + prop: 'repairDesc', + overHidden: false, + type: 'textarea', + minRows: 3, + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '评分', + prop: 'score', + formslot: true, + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '状态', + prop: 'state', + type: 'select', + slot: true, + span: 24, + dicUrl: '/admin/dict/type/support_repair_state', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + ] +} + +/*转单的form option*/ +export const turnOrderFormOption = { + submitBtn: false, + emptyBtn: false, + row: true, + span: 12, + + column: [ + { + label: '报修区域', + prop: 'cascaderArea', + type:'cascader', + changeoOnSelect:true, + dicUrl:"/support/repairarea/cascader", + placeholder:"请选择报修区域,不要选择与实际不符的区域", + slot:true, + search:true, + span:24, + align:'left', + // hide:true, + rules: [{ + type:'array', + required: true, + message: '请选择报修区域', + trigger: 'change' + }] + }, + { + label: '报修类型', + prop: 'cascaderType', + slot:true, + search:true, + type:'cascader', + align:'left', + placeholder:"请选择报修类型,不要选择与实际不符的类型", + dicUrl:"/support/repairtype/cascader", + span:24, + // hide:true, + rules: [{ + type:'array', + required: true, + message: '请选择报修类型', + trigger: 'change' + }] + }, + ] +} + + diff --git a/src/const/crud/support/repairarea.js b/src/const/crud/support/repairarea.js new file mode 100644 index 0000000..d4df1da --- /dev/null +++ b/src/const/crud/support/repairarea.js @@ -0,0 +1,200 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + expandAll: false, + tree: true, + refreshBtn: false, + showColumn: false, + filterBtn: false, + page: false, + column: [ + { + span: 24, + label: '区域名称', + prop: 'areaName', + rules: [{ + required: true, + message: '请填写报修区域名称', + trigger: 'blur' + }, + { + min: 1, + max: 100, + message: '报修区域名称长度在 1 到 100 个字符', + trigger: 'blur' + } + ] + }, + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + span: 24, + label: '上级区域', + prop: 'parentId', + type: 'tree', + dicUrl: 'support/repairarea/list?parentId=-1', + props: { + label: 'areaName', + value: 'id' + }, + hide:true + }, + { + label: '备注', + prop: 'remarks', + span: 24, + overHidden: true, + type: 'textarea', + minRows: 6, + }, + ] +} + + + +export const areaTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + expandAll: false, + tree: true, + refreshBtn: false, + showColumn: false, + filterBtn: false, + page: false, + column: [ + { + span: 24, + label: '区域名称', + prop: 'xname', + }, + { + label: '报修量', + prop: 'totalNum', + span: 24, + }, + { + label: '维修量', + prop: 'repairedNum', + span: 24, + }, + ] +} + +export const detailAreaTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + expandAll: false, + tree: true, + refreshBtn: false, + showColumn: false, + filterBtn: false, + page: false, + column: [ + { + span: 24, + label: '区域名称', + prop: 'xname', + }, + { + label: '报修量', + prop: 'totalNum', + span: 24, + }, + { + label: '维修量', + prop: 'repairedNum', + span: 24, + }, + ] +} diff --git a/src/const/crud/support/repairgroup.js b/src/const/crud/support/repairgroup.js new file mode 100644 index 0000000..a1e230e --- /dev/null +++ b/src/const/crud/support/repairgroup.js @@ -0,0 +1,203 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {ROLE_CODE} from "../../../config/global"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + dialogWidth:"70%", + labelWidth: 150, + dialogClickModal:false, + searchSize:'mini', + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '维修组名称', + prop: 'repairGroupName', + span: 24, + rules: [{ + required: true, + message: '请填写维修组名称', + trigger: 'blur' + }, + { + min: 1, + max: 100, + message: '维修组名称长度在 1 到 100 个字符', + trigger: 'blur' + } + ] + }, + { + span: 24, + label: '维修组区域', + prop: 'area', + slot: true, + overHidden: true, + type: 'select', + multiple:true, + remote: false, + props: { + label: 'areaName', + value: 'id' + }, + dicUrl: '/support/repairarea/list?parentId=-1', + rules: [{ + required: true, + message: '请设置维修组区域', + trigger: 'blur' + }], + }, + { + span: 24, + label: '维修组类型', + prop: 'type', + slot: true, + overHidden: true, + type: 'select', + multiple:true, + remote: false, + props: { + label: 'name', + value: 'id' + }, + dicUrl: '/support/repairtype/list?parentId=-1', + rules: [{ + required: true, + message: '请设置维修组类型', + trigger: 'blur' + }], + }, + { + span: 24, + label: '维修组组长', + prop: 'leader', + slot: true, + overHidden: true, + type: 'select', + multiple:false, + remote: false, + props: { + label: 'realName', + value: 'username' + }, + dicUrl: '/admin/user/info/roleuser/'+ROLE_CODE.ROLE_SUPPORT_MEMBER, + rules: [{ + required: true, + message: '请设置维修组组长', + trigger: 'blur' + }], + }, + { + span: 24, + label: '维修组组员', + prop: 'user', + slot: true, + overHidden: true, + type: 'select', + multiple:true, + filterable:true, + remote: false, + props: { + label: 'realName', + value: 'username' + }, + dicUrl: '/admin/user/info/roleuser/'+ROLE_CODE.ROLE_SUPPORT_MEMBER, + rules: [{ + required: true, + message: '请设置维修组组员', + trigger: 'blur' + }], + }, + { + label: '备注', + prop: 'remarks', + span: 24, + overHidden: true, + type: 'textarea', + minRows: 6, + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + ] +} diff --git a/src/const/crud/support/repairhurried.js b/src/const/crud/support/repairhurried.js new file mode 100644 index 0000000..5c4b99b --- /dev/null +++ b/src/const/crud/support/repairhurried.js @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createDate' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateDate' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '报修ID', + prop: 'applyId' + }, + ] +} diff --git a/src/const/crud/support/repairtype.js b/src/const/crud/support/repairtype.js new file mode 100644 index 0000000..05d0522 --- /dev/null +++ b/src/const/crud/support/repairtype.js @@ -0,0 +1,218 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + labelWidth: 150, + expandAll: false, + tree: true, + refreshBtn: false, + showColumn: false, + filterBtn: false, + page: false, + dic: [], + column: [ + { + label: '报修类型名称', + prop: 'name', + span: 24, + + rules: [{ + required: true, + message: '请填写报修类型名称', + trigger: 'blur' + }, + { + min: 1, + max: 100, + message: '报修类型名称长度在 1 到 100 个字符', + trigger: 'blur' + } + ] + }, + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + span: 24, + label: '上级区域', + prop: 'parentId', + type: 'tree', + hide:true, + dicUrl: 'support/repairtype/tree', + props: { + label: 'name', + value: 'id' + }, + }, + { + span: 24, + label: '关联人员', + prop: 'user', + formslot: true, + slot: true, + hide:true, + props: { + label: 'username', + value: 'id' + }, + overHidden: true, + + }, + { + label: '备注', + prop: 'remarks', + span: 24, + overHidden: true, + type: 'textarea', + minRows: 6, + }, + + ] +} + + +export const typeOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + expandAll: false, + tree: true, + refreshBtn: false, + showColumn: false, + filterBtn: false, + page: false, + column: [ + { + span: 24, + label: '类型名称', + prop: 'xname', + }, + { + label: '报修量', + prop: 'totalNum', + span: 24, + }, + { + label: '维修量', + prop: 'repairedNum', + span: 24, + }, + ] +} + + +export const detailTypeOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + expandAll: false, + tree: true, + refreshBtn: false, + showColumn: false, + filterBtn: false, + page: false, + column: [ + { + span: 24, + label: '类型名称', + prop: 'xname', + }, + { + label: '报修量', + prop: 'totalNum', + span: 24, + }, + { + label: '维修量', + prop: 'repairedNum', + span: 24, + }, + ] +} diff --git a/src/const/crud/support/supportrepairworkmoney.js b/src/const/crud/support/supportrepairworkmoney.js new file mode 100755 index 0000000..64b0514 --- /dev/null +++ b/src/const/crud/support/supportrepairworkmoney.js @@ -0,0 +1,126 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {ROLE_CODE} from "../../../config/global"; + +export const detailOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + menu:false, + column: [ + + { + label: '工号', + prop: 'teacherNo', + }, + { + label: '姓名', + prop: 'userName' + }, + { + label: '工作量', + prop: 'amount' + }, + { + label: '费用', + prop: 'money' + }, + { + label: '开始日期', + prop: 'startTime', + type: 'date', + format:'yyyy-MM-dd' + }, + { + label: '结束日期', + prop: 'endTime', + type: 'date', + format:'yyyy-MM-dd' + }, + + ] +} +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '编号', + prop: 'groupId', + width:220, + }, + { + label: '组名', + prop: 'repairGroupName', + }, + { + label: '工号', + prop: 'teacherNo', + search:true + }, + { + label: '申请人', + prop: 'createBy', + }, + { + label: '状态', + prop: 'status', + type: 'select', + search:true, + dicUrl:'/admin/dict/item/type/work_money_status', + props:{ + label:'label', + value:'value' + } + }, + { + label: '开始日期', + prop: 'startTime', + type: 'date', + format:'yyyy-MM-dd' + }, + { + label: '结束日期', + prop: 'endTime', + type: 'date', + format:'yyyy-MM-dd' + }, + { + label: '申请时间', + prop: 'createTime', + type: 'date', + format:'yyyy-MM-dd HH:mm:ss' + }, + + ] +} diff --git a/src/const/crud/train/callbacklog.js b/src/const/crud/train/callbacklog.js new file mode 100644 index 0000000..525655b --- /dev/null +++ b/src/const/crud/train/callbacklog.js @@ -0,0 +1,215 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {YES_OR_NO} from "../aj/scjajclassinfo"; + +export const PAY_STATE=[ + { + label:'待支付', + value:-1 + }, + { + label:'已支付', + value:1 + }, + { + label:'支付失败', + value:2 + }, + { + label:'已取消', + value:3 + }, + { + label:'已超时', + value:4 + }, +] +export const INVOICE_STATUS=[ + { + label:'待开票', + value:'0' + }, + { + label:'开票中', + value:'1' + }, + { + label:'开票成功', + value:'2' + }, + { + label:'开票异常', + value:'3' + }, + ] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + // { + // label: '外键id', + // prop: 'trainId' + // }, + // { + // label: '状态 0待确认 1已确认 2回调异常', + // prop: 'status' + // }, + // { + // label: '开票状态 0待开票 1开票中 2开票成功 3开票异常 ', + // prop: 'invoiceStatus' + // }, + // { + // label: '开票备注', + // prop: 'invoiceRemarks' + // }, + // { + // label: '开票成功下载地址', + // prop: 'pdfUrl' + // }, + // { + // label: '信息发送状态 0待发送 1发送中 2发送成功', + // prop: 'sendMessageStatus' + // }, + // { + // label: '开票失败次数', + // prop: 'invoiceFailNum' + // }, + // { + // label: '信息发送失败次数', + // prop: 'sendMessageFailNum' + // }, + { + label:'开始时间', + prop:'startTime', + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label:'结束时间', + prop:'endTime', + search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'date', + format:'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label: '姓名', + prop: 'name', + addDisplay:false, + editDisabled:true, + }, + { + label: '电话', + prop: 'phone', + search:true, + addDisplay:false, + editDisabled:true, + }, + { + label: '单号', + prop: 'trainId', + search:true, + addDisplay:false, + editDisabled:true, + // hide:true + }, + { + label: '开票状态', + prop: 'invoiceStatus', + type:'select', + dicData:INVOICE_STATUS, + props:{ + label:'label', + value:'value' + }, + hide:true + }, + { + label: '总金额', + prop: 'amount', + addDisplay:false, + editDisplay:false, + }, + { + label: '回调时间', + prop: 'createTime', + addDisplay:false, + editDisplay:false, + }, + { + label: '支付状态', + prop: 'payState', + addDisplay:false, + editDisplay:false, + type:'select', + dicData:PAY_STATE, + props:{ + label:'label', + value:'value' + }, + }, + ] +} diff --git a/src/const/crud/train/examinationCenter.js b/src/const/crud/train/examinationCenter.js new file mode 100644 index 0000000..223d485 --- /dev/null +++ b/src/const/crud/train/examinationCenter.js @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu: false, + dic: [], + column: [ + { + label: '姓名', + prop: 'name', + search:true + }, + { + label: '手机号', + prop: 'phone', + search:true + }, + { + label: '开票流水号', + prop: 'combinOrderId' + }, + { + label: '金额', + prop: 'money' + }, + { + label: '总金额', + prop: 'amount' + }, + { + label: '开始时间', + prop: 'createTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + search:true + }, + { + label: '项目名称', + prop: 'projectName' + }, + { + label: '状态', + prop: 'status', + dicUrl: '/admin/dict/item/type/status', + type:'switch', + props:{ + label:'label', + value:'value' + } + }, + { + label: '开票状态', + prop: 'invoiceStatus', + dicUrl: '/admin/dict/item/type/invoice_status', + type:'switch', + props:{ + label:'label', + value:'value' + } + }, + { + label: '支付状态', + prop: 'payState', + dicUrl: '/admin/dict/item/type/pay_state', + type:'switch', + props:{ + label:'label', + value:'value' + } + }, + { + label: ' 开票成功下载地址 ', + prop: 'pdfUrl', + slot:true + }, + { + label: ' 备注', + prop: 'remarks' + }, + + ] +} diff --git a/src/const/crud/train/feesource.js b/src/const/crud/train/feesource.js new file mode 100755 index 0000000..9badb62 --- /dev/null +++ b/src/const/crud/train/feesource.js @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogClickModal:false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '来源名称', + prop: 'sourceName', + search: true, + rules: [{ + required: true, + message: "请输入工种名称", + trigger: "blur" + }] + }, + { + label: '排序', + prop: 'sort', + valueDefault:50 + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24 + }, + + + ] +} diff --git a/src/const/crud/train/object.js b/src/const/crud/train/object.js new file mode 100755 index 0000000..7609f28 --- /dev/null +++ b/src/const/crud/train/object.js @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogClickModal:false, + + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '对象名称', + prop: 'objectName', + search: true, + rules: [{ + required: true, + message: "请输入对象名称", + trigger: "blur" + }] + }, + + { + label: '排序', + prop: 'sort', + placeholder: '50', + valueDefault:50 + + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24 + }, + + ] +} diff --git a/src/const/crud/train/occupation.js b/src/const/crud/train/occupation.js new file mode 100755 index 0000000..e6cc3c7 --- /dev/null +++ b/src/const/crud/train/occupation.js @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogClickModal:false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '工种名称', + prop: 'occupationName', + search: true, + rules: [{ + required: true, + message: "请输入工种名称", + trigger: "blur" + }] + }, + { + label: '排序', + prop: 'sort', + valueDefault:50 + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24 + }, + ] +} diff --git a/src/const/crud/train/occupationgrade.js b/src/const/crud/train/occupationgrade.js new file mode 100755 index 0000000..efbc8b9 --- /dev/null +++ b/src/const/crud/train/occupationgrade.js @@ -0,0 +1,117 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogClickModal:false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '等级名称', + prop: 'gradeName', + search: true, + rules: [{ + required: true, + message: "请输入等级名称", + trigger: "blur" + }] + }, + { + label: '排序', + prop: 'sort', + valueDefault:50 + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span: 24 + }, + + ] +} diff --git a/src/const/crud/train/project.js b/src/const/crud/train/project.js new file mode 100755 index 0000000..44abaa2 --- /dev/null +++ b/src/const/crud/train/project.js @@ -0,0 +1,1703 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + + +import {validateMoneyType, validatenum} from "../../../util/validate"; +import global from "@/components/tools/commondict" +import {number} from "echarts/src/export"; + +var checkMoneyMethod = (rule, value, callback) => { + + if (!validateMoneyType(value)) { + callback(new Error('请输入正确的金额')); + } else { + callback(); + } +}; +var checkNumberMethod = (rule, value, callback) => { + + if (!validateMoneyType(value)) { + callback(new Error('请输入正确的整数')); + } else { + callback(); + } +}; +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + saveBtnTitle:"提交", + refreshBtn:false, + columnBtn:false, + searchslot:true, + dialogClickModal:false, + // dialogFullscreen:true, + fit:true, + dialogWeight:'90%', + dialogHeight:'90%', + dic: [], + + labelWidth:80, + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + + }, + { + label: '租户ID', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '合同', + prop: 'contractId', + // search: true, + hide:true, + span:24, + width: 100, + formslot:true + }, + { + label: '项目编号', + prop: 'projectNo', + search: true, + minWidth: 120, + rules: [{ + required: true, + message: "请输入项目编号", + trigger: "blur" + }], + fixed:true + }, + { + label: '项目名称', + prop: 'projectName', + rules: [{ + required: true, + message: "请填写项目名称", + trigger: "blur" + }], + search:true, + minWidth: 250, + fixed:true + }, + { + label: '合同编号', + prop: 'contractNo', + search: true, + span:24, + minWidth: 150, + display: false + }, + { + label: '审批状态', + prop: 'procInsStatus', + type:'select', + search:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + dicUrl: '/train/project/findProjectStatusList', + props: { + label: 'label', + value: 'value' + }, + minWidth:150 + }, + { + label: '申报部门', + prop: 'deptCode', + hide:true, + + formslot:true, + rules: [{ + required: true, + message: "请选择申报部门", + trigger: "blur" + }] + }, + { + width:100, + label: '申报部门', + prop: 'deptName', + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + // search:true, + + }, + { + width:100, + label: '学年', + prop: 'schoolYear', + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + message: "请选择学年", + trigger: "blur" + }], + search:true, + }, + { + minWidth:80, + label: '学期', + prop: 'schoolTerm', + type:'select', + dicData:global.LEARN_TERM, + row:true, + span:24, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择学期", + trigger: "blur" + }], + search:true, + }, + + + { + label: '项目类别', + prop: 'projectType', + type:'select', + dicUrl: '/train/projecttype/list', + filterable:true, + row:true, + span:24, + props: { + label: 'typeName', + value: 'id' + }, + formslot:true, + search:true, + hide:true, + + }, + { + label: '培训单位', + prop: 'trainCompany', + rules: [{ + required: true, + message: "请填写培训单位", + trigger: "blur" + }], + hide:true, + + }, + { + label: '是否取证', + prop: 'isCertificate', + type: 'select', + dicUrl: '/admin/dict/item/type/yes_no', + rules: [{ + required: true, + message: "请选择是否取证", + trigger: "blur" + }], + search:true, + hide:true, + + }, + { + label: '职业工种', + prop: 'occupationList', + formslot:true, + slot:true, + span:24, + filterable:true, + hide:true, + + + }, + + + { + label: '总课时', + prop: 'trainCourses', + type: 'number', + hide:true, + rules: [{ + required: true, + message: "请填写总课时", + trigger: "blur" + },{ validator: checkNumberMethod, trigger: 'blur' }] + }, + { + label: '培训对象', + prop: 'trainObject', + type: 'select', + filterable:true, + hide:true, + dicUrl: '/train/object/list', + props: { + label: 'objectName', + value: 'id' + }, + rules: [{ + required: true, + message: "请选择培训对象", + trigger: "blur" + }], + + }, + { + label: '开始时间', + prop: 'startDate', + type: 'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + span: 8, + rules: [{ + required: true, + message: "立项开始时间", + trigger: "blur" + }], + // search: true, + hide:true, + }, + { + label: '结束时间', + prop: 'endDate', + type: 'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + span: 8, + rules: [{ + required: true, + message: "立项时间", + trigger: "blur" + }], + // search: true, + hide:true, + }, + { + label: '鉴定时间', + prop: 'identityDate', + type: 'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + span: 8, + hide:true + }, + + { + label: '立项金额', + prop: 'projectTotalIncomeRelationList', + span: 8, + slot:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + }, + { + label: '到账金额', + prop: 'projectMoneyArrivedSum', + span: 8, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + }, + { + label: '未到账金额', + prop: 'projectMoneyDelaySum', + span: 8, + addDisplay:false, + editDisabled:false, + editDisplay:false, + viewDisplay:false, + slot:true + }, + { + label: '到账情况', + prop: 'receiptStatus', + type: 'select', + dicUrl: '/admin/dict/item/type/train_arrived_status', + span: 8, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + }, + { + label: '项目总收入', + prop: 'incomeList', + formslot:true, + slot:true, + span:24, + hide:true, + }, + + // { + // label: '代办费', + // prop: 'agentList', + // slot:true, + // formslot:true, + // span:24, + // hide:true, + // }, + + // { + // label: '校内资源使用费申报金额', + // labelWidth:200, + // prop: 'approvalMoney', + // + // hide:true, + // addDisplay:false, + // editDisabled:true, + // editDisplay:false, + // viewDisplay:false, + // valueDefault:0, + // }, + { + label: '排序', + prop: 'sort', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + + + }, + { + label: '补充说明', + prop: 'remarks', + type: 'textarea', + span: 24, + hide:true, + }, + + { + label: '审核人', + prop: 'auditor', + formslot:true, + hide:true, + rules: [{ + required: true, + message: "请选择审核人", + trigger: "blur" + }], + viewDisplay:false, + + // addDisplay:true, + // editDisabled:true, + // editDisplay:false, + // viewDisplay:false, + + // type: 'select', + // dicUrl:'/professional/teacherbase/train/getTrainDeptLeader', + // props: { + // label: 'realName', + // value: 'teacherNo' + // }, + span: 24 + }, + { + label: '核定金额', + prop: 'approvalMoneyTrainCheck', + disable:true, + span:8, + hide:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '代办费核定金额', + prop: 'agentMoneyTrainCheck', + disable:true, + labelWidth:150, + span:8, + hide:true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '实际金额', + prop: 'approvalActuallyMoneyCheck', + disable:true, + addDisplay:false, + span:8, + hide:true + }, + { + label: '鉴定级别', + prop: 'identifyLevelList', + type: 'checkbox', + dicUrl: '/train/projectidentifylevel/list', + props: { + label: 'identifyLevelName', + value: 'id' + }, + span:24, + formslot:true, + border:true, + hide:true, + addDisplay:false, + }, + { + label: '同步预算', + prop: 'isAsync', + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + span:24, + type: 'select', + dicUrl: '/admin/dict/item/type/yes_no', + props: { + label: 'label', + value: 'value' + }, + + }, + { + label: '单人次收费标准', + prop: 'singleCharge', + addDisplay:false, + editDisplay:false, + span:8, + }, + { + label: '流程审批', + prop: 'procHistric', + formslot:true, + hide:true, + addDisplay:false, + viewDisplay:true, + span:24 + } + + ] +} + + +export const tableOccupationListOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogClickModal:false, + columnBtn:false, + refreshBtn:false, + cellBtn:true, + keyId:'id', + cancelBtn:false, + + menu:false, + dic: [], + showSummary: true, + sumColumnList: [ + { + name: 'trainPeopleNum', + type: 'sum' + }, + ], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '租户ID', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '职业(工种)', + prop: 'occupationId', + type:'select', + dicUrl: '/train/occupation/list', + props: { + label: 'occupationName', + value: 'id' + }, + searchable:true, + filterable:true, + cell: true, + }, + + { + label: '等级', + prop: 'occupationGradeId', + type: 'select', + filterable:true, + dicUrl: '/train/occupationgrade/list', + props: { + label: 'gradeName', + value: 'id' + }, + + cell: true, + }, + { + label: '培训人数', + prop: 'trainPeopleNum', + type: 'number', + cell: true, + } + ] +} +export const tableEditIncomeListOption= { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogClickModal:false, + columnBtn:false, + refreshBtn:false, + cellBtn:true, + keyId:'id', + cancelBtn:false, + + menu:false, + dic: [], + showSummary: true, + sumColumnList: [ + { + name: 'fee', + type: 'sum' + }, + ], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '租户ID', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '收入来源', + prop: 'feeSource', + type: 'select', + dicUrl: '/train/feesource/list', + props: { + label: 'sourceName', + value: 'id' + }, + cell: true, + }, + { + label: '收入', + prop: 'fee', + slot:true + } + ] +} +export const tableIncomeListOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogClickModal:false, + columnBtn:false, + refreshBtn:false, + cellBtn:true, + keyId:'id', + cancelBtn:false, + + menu:false, + dic: [], + showSummary: true, + sumColumnList: [ + { + name: 'fee', + type: 'sum' + }, + ], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '租户ID', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '收入来源', + prop: 'feeSource', + type: 'select', + dicUrl: '/train/feesource/list', + props: { + label: 'sourceName', + value: 'id' + }, + cell: true, + }, + { + label: '收入', + prop: 'fee', + cell: true, + } + ] +} + +export const tableAgentListOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogClickModal:false, + columnBtn:false, + refreshBtn:false, + cellBtn:true, + keyId:'id', + cancelBtn:false, + size:"mini", + menu:false, + dic: [], + showSummary: true, + sumColumnList: [ + { + name: 'fee', + type: 'sum' + }, + ], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '租户ID', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '名称', + prop: 'feeSource', + cell: true, + }, + { + label: '金额', + prop: 'fee', + type: 'number', + cell: true, + } + ] +} + + + +export const trainDeptAuditOption = { + submitBtn: false, + emptytBtn: false, + row: true, + labelWidth:90, + emptyBtn:false, + // span: 12, + column: [ + + { + label: '项目编号', + prop: 'projectNo', + search: true, + disabled:true, + }, + + { + label: '申报部门', + prop: 'deptName', + hide:true, + disabled:true, + + }, + + { + label: '学年', + prop: 'schoolYear', + disabled:true, + + }, + { + label: '学期', + prop: 'schoolTerm', + disabled:true, + }, + + { + label: '项目名称', + prop: 'projectName', + disabled:true, + }, + { + label: '项目类别', + prop: 'projectType', + type:'select', + dicUrl: '/train/projecttype/list', + filterable:true, + props: { + label: 'typeName', + value: 'id' + }, + disabled:true + }, + { + label: '培训单位', + prop: 'trainCompany', + disabled:true, + + }, + { + label: '是否取证', + prop: 'isCertificate', + type: 'select', + dicUrl: '/admin/dict/item/type/yes_no', + disabled:true, + + }, + { + label: '职业工种', + prop: 'occupationList', + formslot:true, + span:24, + filterable:true, + }, + + + { + label: '总课时', + prop: 'trainCourses', + type: 'number', + disabled:true, + }, + { + label: '培训对象', + prop: 'trainObject', + type: 'select', + filterable:true, + dicUrl: '/train/object/list', + props: { + label: 'objectName', + value: 'id' + }, + disabled:true, + }, + { + label: '开始时间', + prop: 'startDate', + type: 'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + span: 8, + disabled:true, + }, + { + label: '结束时间', + prop: 'endDate', + type: 'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + span: 8, + disabled:true, + }, + { + label: '鉴定时间', + prop: 'identityDate', + type: 'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + span: 8, + disabled:true, + }, + { + label: '项目总收入', + labelWidth:180, + prop: 'incomeList', + formslot:true, + slot:true, + span:24, + disabled:true, + }, + + { + label: '代办费', + prop: 'agentList', + slot:true, + formslot:true, + span:24, + + }, + + // { + // label: '校内资源使用费申报金额', + // labelWidth:200, + // prop: 'approvalMoney', + // disabled:true, + // addDisplay:false, + // editDisabled:true, + // editDisplay:false, + // viewDisplay:false, + // }, + // { + // label: '核定金额', + // prop: 'approvalMoneyTrainCheck', + // }, + { + label: '补充说明', + prop: 'remarks', + type: 'textarea', + span:24, + disabled:true, + }, + // { + // label: '鉴定级别', + // prop: 'identifyLevelList', + // type: 'checkbox', + // dicUrl: '/train/projectidentifylevel/list', + // props: { + // label: 'identifyLevelName', + // value: 'id' + // }, + // span:24, + // border:true, + // + // }, + { + label: '审核人', + prop: 'auditor', + formslot:true, + rules: [{ + required: true, + message: "请选择审核人", + trigger: "blur" + }], + span: 24 + }, + { + label: '审核备注', + prop: 'auditRemark', + type: 'textarea', + span:24, + }, + { + label: '流程审批', + prop: 'procHistric', + formslot:true, + hide:true, + addDisplay:false, + viewDisplay:true, + span:24 + } + + + ] +} + +export const trainAuditOption = { + submitBtn: false, + emptytBtn: false, + row: true, + labelWidth:90, + emptyBtn:false, + // span: 12, + column: [ + + { + label: '项目编号', + prop: 'projectNo', + search: true, + disabled:true, + }, + + { + label: '申报部门', + prop: 'deptName', + hide:true, + disabled:true, + + }, + + { + label: '学年', + prop: 'schoolYear', + disabled:true, + + }, + { + label: '学期', + prop: 'schoolTerm', + disabled:true, + }, + + { + label: '项目名称', + prop: 'projectName', + disabled:true, + }, + { + label: '项目类别', + prop: 'projectType', + type:'select', + dicUrl: '/train/projecttype/list', + filterable:true, + props: { + label: 'typeName', + value: 'id' + }, + disabled:true, + // formslot:true + }, + { + label: '培训单位', + prop: 'trainCompany', + disabled:true, + + }, + { + label: '是否取证', + prop: 'isCertificate', + type: 'select', + dicUrl: '/admin/dict/item/type/yes_no', + disabled:true, + + }, + { + label: '职业工种', + prop: 'occupationList', + formslot:true, + span:24, + filterable:true, + }, + + + { + label: '总课时', + prop: 'trainCourses', + type: 'number', + disabled:true, + }, + { + label: '培训对象', + prop: 'trainObject', + type: 'select', + filterable:true, + dicUrl: '/train/object/list', + props: { + label: 'objectName', + value: 'id' + }, + disabled:true, + }, + { + label: '开始时间', + prop: 'startDate', + type: 'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + span: 8, + disabled:true, + }, + { + label: '结束时间', + prop: 'endDate', + type: 'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + span: 8, + disabled:true, + }, + { + label: '鉴定时间', + prop: 'identityDate', + type: 'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + span: 8, + disabled:true, + }, + { + label: '项目总收入', + prop: 'incomeList', + formslot:true, + slot:true, + span:24, + disabled:true, + }, + + { + label: '代办费', + prop: 'agentList', + slot:true, + formslot:true, + span:24, + + }, + + // { + // label: '校内资源使用费申报金额', + // labelWidth:200, + // prop: 'approvalMoney', + // disabled:true, + // addDisplay:false, + // editDisabled:true, + // editDisplay:false, + // viewDisplay:false, + // span:8 + // }, + // { + // label: '核定金额', + // prop: 'approvalMoneyTrainCheck', + // valueDefault: 0, + // hide:true, + // addDisplay:false, + // editDisabled:true, + // editDisplay:false, + // viewDisplay:false, + // span:8 + // }, + { + label: '实际金额', + prop: 'approvalActuallyMoneyCheck', + valueDefault: 0, + span:8 + }, + { + label: '补充说明', + prop: 'remarks', + type: 'textarea', + span:24, + disabled:true, + }, + { + label: '鉴定级别', + prop: 'identifyLevelList', + type: 'checkbox', + dicUrl: '/train/projectidentifylevel/list', + props: { + label: 'identifyLevelName', + value: 'id' + }, + span:24, + border:true, + + }, + // { + // label: '审核人', + // prop: 'auditor', + // formslot:true, + // rules: [{ + // required: true, + // message: "请选择审核人", + // trigger: "blur" + // }], + // span: 24 + // }, + { + label: '审核备注', + prop: 'auditRemark', + type: 'textarea', + span:24, + }, + { + label: '流程审批', + prop: 'procHistric', + formslot:true, + hide:true, + addDisplay:false, + viewDisplay:true, + span:24 + } + + ] +} + +export const starterAuditOption = { + submitBtn: false, + emptytBtn: false, + row: true, + labelWidth:90, + emptyBtn:false, + // span: 12, + column: [ + + { + label: '项目编号', + prop: 'projectNo', + search: true, + + }, + + { + label: '申报部门', + prop: 'deptCode', + formslot:true, + rules: [{ + required: true, + message: "请选择申报部门", + trigger: "blur" + }] + }, + + { + label: '学年', + prop: 'schoolYear', + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + rules: [{ + required: true, + message: "请选择学年", + trigger: "blur" + }], + + + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + dicData:global.LEARN_TERM, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择学期", + trigger: "blur" + }], + }, + + { + label: '项目名称', + prop: 'projectName', + + }, + { + label: '项目类别', + prop: 'projectType', + type:'select', + dicUrl: '/train/projecttype/list', + filterable:true, + props: { + label: 'typeName', + value: 'id' + }, + + }, + { + label: '培训单位', + prop: 'trainCompany', + + + }, + { + label: '是否取证', + prop: 'isCertificate', + type: 'select', + dicUrl: '/admin/dict/item/type/yes_no', + + + }, + { + label: '职业工种', + prop: 'occupationList', + formslot:true, + span:24, + filterable:true, + }, + + + { + label: '总课时', + prop: 'trainCourses', + type: 'number', + + }, + { + label: '培训对象', + prop: 'trainObject', + type: 'select', + filterable:true, + dicUrl: '/train/object/list', + props: { + label: 'objectName', + value: 'id' + }, + + }, + { + label: '开始时间', + prop: 'startDate', + type: 'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + span: 8, + + }, + { + label: '结束时间', + prop: 'endDate', + type: 'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + span: 8, + + }, + { + label: '鉴定时间', + prop: 'identityDate', + type: 'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + span: 8, + + }, + { + label: '项目总收入', + prop: 'incomeList', + formslot:true, + slot:true, + span:24, + + }, + + { + label: '代办费', + prop: 'agentList', + slot:true, + formslot:true, + span:24, + + }, + + // { + // label: '校内资源使用费申报金额', + // labelWidth:200, + // prop: 'approvalMoney', + // addDisplay:false, + // editDisabled:true, + // editDisplay:false, + // viewDisplay:false, + // + // }, + + { + label: '补充说明', + prop: 'remarks', + type: 'textarea', + span:24, + }, + + { + label: '审核人', + prop: 'auditor', + formslot:true, + rules: [{ + required: true, + message: "请选择审核人", + trigger: "blur" + }], + span: 24 + }, + { + label: '流程审批', + prop: 'procHistric', + formslot:true, + hide:true, + addDisplay:false, + viewDisplay:true, + span:24 + } + + + ] +} +export const tableFreeSetOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: true, + delBtn: true, + addBtn: true, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false + }, + { + label: '名称', + prop: 'name', + span:24, + rules: [{ + required: true, + message: "请填写名称", + trigger: "blur" + }] + }, + { + label: '金额', + prop: 'money', + span:24, + rules: [{ + required: true, + message: "请填写金额", + trigger: "blur" + },{ validator: checkMoneyMethod, trigger: 'blur' }] + },{ + label: '备注', + prop: 'remarks', + type: 'textarea', + span:24, + }, + { + label: '是否必选', + prop: 'isMandatory', + dicUrl: '/admin/dict/item/type/yes_no', + type:'switch', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择是否必选", + trigger: "blur" + }], + width:150 + }, + ] +} diff --git a/src/const/crud/train/projectPay.js b/src/const/crud/train/projectPay.js new file mode 100644 index 0000000..6d1143a --- /dev/null +++ b/src/const/crud/train/projectPay.js @@ -0,0 +1,204 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '名称', + prop: 'name' + }, + { + label: '手机号', + prop: 'phone' + }, + { + label: '金额', + prop: 'money' + }, + { + label: '数量', + prop: 'num' + }, + { + label: '项目代码', + prop: 'projectNo' + }, + { + label: '项目名称', + prop: 'projectName' + }, + { + label: '支付二维码', + prop: 'payQrcode', + hide:true + }, + { + label: '支付状态', + prop: "payState", + type: "select", + dicData: [{ + label: '待支付', + value: -1 + }, { + label: '已支付', + value: 1 + }, { + label: '支付失败', + value: 2 + }, { + label: '已取消', + value: 3 + }, { + label: '已超时', + value: 4 + }] + },{ + label: '支付时间', + prop: 'createTime', + },{ + label: '更新时间', + prop: 'updateTime', + } + ] +} +export const tableOtherOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '开始时间', + prop: 'beginTime', + type: 'date', + search: true, + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + editDisplay: false, + addDisplay: false, + hide: true + },{ + label: '结束时间', + prop: 'endTime', + type: 'date', + search: true, + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + editDisplay: false, + addDisplay: false, + hide: true + }, + { + width:100, + label: '培训项目', + prop: 'tId', + type:'select', + searchFilterable:true, + dicUrl:'/train/traincharge/getAllList', + props:{ + label:'projectName', + value:'projectNo' + }, + search:true, + hide:true + }, + { + label: '项目名称', + prop: 'tname' + }, + { + label: '报名人', + prop: 'name', + search:true + }, + { + label: '手机号', + prop: 'phone', + search:true + }, + { + label: '金额', + prop: 'money' + }, + { + label: '财政缴款码', + prop: 'payNum' + }, + { + label: '财政业务码', + prop: 'businessId' + }, + { + label: '推送状态', + prop: 'pushState' + }, + { + label: '推送日志', + prop: 'remarks', + hide: true + }, + { + label: '支付二维码', + prop: 'payCode', + hide:true + }, + { + label: '支付状态', + prop: "stateValue", + } + ,{ + label: '支付状态', + prop: "state", + type: "select", + dicData: [{ + label: '待付款', + value: 0 + }, { + label: '已付款', + value: 1 + }], + hide: true, + search: true + },{ + label: '报名时间', + prop: 'createTime', + },{ + label: '更新时间', + prop: 'updateTime', + } + ] +} diff --git a/src/const/crud/train/projectgoal.js b/src/const/crud/train/projectgoal.js new file mode 100644 index 0000000..703540a --- /dev/null +++ b/src/const/crud/train/projectgoal.js @@ -0,0 +1,181 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + labelWidth:180, + dialogClickModal:false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '备注', + prop: 'remarks', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '学年', + prop: 'schoolYear', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + type: 'select', + search:true, + rules: [{ + required: true, + message: "请选择学年", + trigger: "blur" + }], + }, + { + label: '部门编码', + prop: 'deptCode', + formslot:true, + hide:true, + rules: [{ + required: true, + message: "请选择申报部门", + trigger: "blur" + }] + }, + { + label: '部门名称', + prop: 'deptName', + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '培训额目标(万元)', + prop: 'moneyGoal', + rules: [{ + required: true, + message: "请填写培训额目标", + trigger: "blur" + }], + }, + { + label: '市场率目标(%)', + prop: 'marketRateGoal', + rules: [{ + required: true, + message: "请填写市场率目标", + trigger: "blur" + }], + }, + { + label: '高端率目标(%)', + prop: 'highRateGoal', + rules: [{ + required: true, + message: "请填写高端率目标", + trigger: "blur" + }], + }, + { + label: '专业吻合率目标(%)', + prop: 'majorMactchRateGoal', + rules: [{ + required: true, + message: "请填写专业吻合率目标", + trigger: "blur" + }], + }, + { + label: '排序', + prop: 'sort', + defautValue: 50 + }, + ] +} diff --git a/src/const/crud/train/projectgoalanalysis.js b/src/const/crud/train/projectgoalanalysis.js new file mode 100644 index 0000000..521cbbc --- /dev/null +++ b/src/const/crud/train/projectgoalanalysis.js @@ -0,0 +1,249 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu: false, + dic: [], + showSummary:true, + sumColumnList: [ + { + label:'合计:', + name: 'sum', + type: 'sum', + decimals:1 + }, + { + name: 'moneyGoal', + type: 'sum' + }, + // { + // name: 'moneyGoalRate', + // type: 'avg' + // }, + // { + // name: 'arrivedMoneyRate', + // type: 'avg' + // }, + { + name: 'arrivedMoney', + type: 'sum' + },{ + name: 'moneyGoalComplete', + type: 'sum' + },{ + name: 'arrivedMoney', + type: 'sum' + },{ + name: 'currentArrivedMoney', + type: 'sum' + }], + column: [ + + + { + label: '部门编码', + prop: 'deptCode', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '部门', + prop: 'deptName', + // width: 140 + }, + { + label: '当年项目到账金额目标(万元)', + prop: 'moneyGoal', + // width:110, + }, + // { + // label: '当年项目立项金额(万元)', + // prop: 'moneyGoalComplete', + // // width:110, + // }, + + { + label: '当年到账金额(万元)', + prop: 'arrivedMoney', + // width:100, + }, + { + label: '当年到账率(%)', + prop: 'arrivedMoneyRate', + // width:100, + }, + // { + // label: '总到账金额(含既往项目)(万元)', + // prop: 'currentArrivedMoney', + // // width:100, + // }, + { + label: '高端化目标', + prop: 'highRateGoal', + // width:80, + }, + { + label: '高端化率(%)', + prop: 'highRate', + // width:80, + }, + { + label: '市场化率(%)', + prop: 'marketRate', + // width:80, + }, + + { + label: '专业吻合度(%)', + prop: 'majorMactchRate', + // width:80, + } + + ] +} +export const tableYearOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu: false, + dic: [], + showSummary:true, + sumColumnList: [ + { + label:'合计:', + name: 'sum', + type: 'sum', + decimals:1 + }, + { + name: 'moneyGoal', + type: 'sum' + }, + // { + // name: 'moneyGoalRate', + // type: 'avg' + // }, + // { + // name: 'arrivedMoneyRate', + // type: 'avg' + // }, + { + name: 'arrivedMoney', + type: 'sum' + },{ + name: 'moneyGoalComplete', + type: 'sum' + },{ + name: 'arrivedMoney', + type: 'sum' + },{ + name: 'currentArrivedMoney', + type: 'sum' + },{ + name: 'projectNum', + type: 'sum' + }], + column: [ + + + { + label: '部门编码', + prop: 'deptCode', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '部门', + prop: 'deptName', + // width: 140 + }, + { + label: '当年项目到账金额目标(万元)', + prop: 'moneyGoal', + // width:110, + }, + + { + label: '当年项目立项金额(万元)', + prop: 'moneyGoalComplete', + // width:110, + }, + { + label: '当年立项数', + prop: 'projectNum', + // width:110, + }, + { + label: '当年到账金额(万元)', + prop: 'arrivedMoney', + // width:100, + }, + { + label: '当年到账率(%)', + prop: 'arrivedMoneyRate', + // width:100, + }, + { + label: '总到账金额(含既往项目)(万元)', + prop: 'currentArrivedMoney', + // width:100, + }, + { + label: '高端化目标', + prop: 'highRateGoal', + // width:80, + }, + { + label: '高端化率(%)', + prop: 'highRate', + // width:80, + }, + { + label: '市场化率(%)', + prop: 'marketRate', + // width:80, + }, + + { + label: '专业吻合度(%)', + prop: 'majorMactchRate', + // width:80, + } + + ] +} diff --git a/src/const/crud/train/projectidentifylevel.js b/src/const/crud/train/projectidentifylevel.js new file mode 100755 index 0000000..af9a504 --- /dev/null +++ b/src/const/crud/train/projectidentifylevel.js @@ -0,0 +1,112 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '类别名称', + prop: 'identifyLevelName', + span:24 + }, + { + label: '排序', + prop: 'sort', + span:24 + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea', + span:24 + }, + { + label: '', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + + ] +} diff --git a/src/const/crud/train/projectidentifylevelrelation.js b/src/const/crud/train/projectidentifylevelrelation.js new file mode 100755 index 0000000..6a114b6 --- /dev/null +++ b/src/const/crud/train/projectidentifylevelrelation.js @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '', + prop: 'tenantId' + }, + { + label: '', + prop: 'sort' + }, + { + label: '项目编号', + prop: 'projectNo' + }, + { + label: '鉴定级别ID', + prop: 'identifyLevelId' + }, + ] +} diff --git a/src/const/crud/train/projectmoneyarrived.js b/src/const/crud/train/projectmoneyarrived.js new file mode 100644 index 0000000..640e58c --- /dev/null +++ b/src/const/crud/train/projectmoneyarrived.js @@ -0,0 +1,544 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {ROLE_CODE} from "../../../config/global"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + selection: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + saveBtnTitle: "提交", + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay: false, + editDisabled: true, + editDisplay: false, + viewDisplay: false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay: false, + editDisabled: true, + editDisplay: false, + viewDisplay: false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay: false, + editDisabled: true, + editDisplay: false, + viewDisplay: false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay: false, + editDisabled: true, + editDisplay: false, + viewDisplay: false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay: false, + editDisabled: true, + editDisplay: false, + viewDisplay: false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay: false, + editDisabled: true, + editDisplay: false, + viewDisplay: false + }, + + + { + label: '', + prop: 'sort', + hide: true, + addDisplay: false, + editDisabled: true, + editDisplay: false, + viewDisplay: false + }, + { + label: '申报部门', + prop: 'deptCode', + formslot:true, + hide: true, + addDisplay: false, + editDisabled: true, + editDisplay: false, + viewDisplay:false, + rules: [{ + required: true, + message: "请选择申报部门", + trigger: "blur" + }] + }, + { + width:100, + label: '申报部门', + prop: 'deptName', + addDisplay:false, + editDisabled:true, + editDisplay:false, + viewDisplay:false, + }, + { + label: '项目编号', + prop: 'projectNo', + search: true, + span: 24, + formslot: true, + rules: [{ + required: true, + message: "请输入项目编号", + trigger: "blur" + }] + }, + { + label: '项目名称', + prop: 'projectName', + hide: true, + formslot: true, + }, + { + label: '立项金额', + prop: 'totalIncome', + // type: 'number', + formslot: true, + // viewDisplay:false + }, + + { + label: '到账公司', + prop: 'companyName', + rules: [{ + required: true, + message: "请输入到账公司", + trigger: "blur" + }] + }, + { + label: '到账时间', + prop: 'arrivedTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + rules: [{ + required: true, + message: "请输入到账时间", + trigger: "blur" + }] + }, + { + label: '到账金额', + prop: 'arrivedMoney', + // type: 'number', + formslot: true, + rules: [{ + required: true, + message: "请输入到账金额", + trigger: "blur" + }] + }, + { + label: '到账情况', + prop: 'arrivedStatus', + dicUrl: '/admin/dict/item/type/train_arrived_status', + type: 'select', + search: true, + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + message: "请选择到账情况", + trigger: "blur" + }] + }, + { + label: '审核状态', + prop: 'procInsStatus', + dicUrl: '/train/projectmoneyarrived/procInsStatus', + type: 'select', + search: true, + props: { + label: 'label', + value: 'value' + }, + addDisplay: false, + editDisabled: true, + editDisplay: false, + viewDisplay: false + }, + { + label: '审批人', + prop: 'auditor', + dicUrl: '/admin/user/info/roleuser/' + ROLE_CODE.ROLE_TRAIN_MONEY_ARRIVED, + type: 'radio', + props: { + label: 'realName', + value: 'username' + }, + rules: [{ + required: true, + message: "请选择到账审核人", + trigger: "blur" + }], + hide: true, + addDisabled: true, + addDisplay: false, + editDisabled: true, + editDisplay: false, + viewDisplay: false + }, + { + label: '备注', + type: "textarea", + span: 24, + prop: 'remarks', + formslot: true, + }, + { + label: '流程审批', + prop: 'procHistric', + formslot: true, + hide: true, + addDisplay: false, + viewDisplay: true, + span: 24 + }, + { + label: '附件', + prop: 'attachment', + slot: true, + formslot: true, + }, + { + label: '同步到用友', + prop: 'isAsyncYy', + editDisabled: false, + editDisplay: false, + addDisabled: false, + addDisplay: false, + type: 'select', + search: true, + dicUrl: '/admin/dict/item/type/yes_no', + props: { + label: 'label', + value: 'value' + }, + }, + ] +} + +export const trainAuditTaskOption = { + submitBtn: false, + emptytBtn: false, + row: true, + labelWidth: 90, + emptyBtn: false, + // span: 12, + column: [ + { + label: '项目编号', + prop: 'projectNo', + disabled: true, + span: 24, + formslot: true, + }, + { + label: '项目名称', + prop: 'projectName', + hide: true, + disabled: true, + formslot: true, + }, + { + label: '立项金额', + prop: 'totalIncome', + disabled: true, + // type: 'number', + formslot: true, + // viewDisplay:false + }, + + { + label: '到账公司', + prop: 'companyName', + disabled: true, + }, + { + label: '到账时间', + prop: 'arrivedTime', + type: 'date', + format: 'yyyy-MM-dd', + disabled: true, + }, + { + label: '到账金额', + prop: 'arrivedMoney', + // type: 'number', + disabled: true, + }, + { + label: '到账情况', + prop: 'arrivedStatus', + dicUrl: '/admin/dict/item/type/train_arrived_status', + type: 'select', + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + message: "请选择到账情况", + trigger: "blur" + }] + // disabled:true, + }, + { + label: '附件', + prop: 'attachment', + slot: true, + formslot: true + }, + { + label: '备注', + type: "textarea", + span: 24, + prop: 'remarks', + disabled: true, + }, + { + label: '审核备注', + prop: 'auditRemark', + type: 'textarea', + span: 24, + }, + + ] +} +export const financeAuditTaskOption = { + submitBtn: false, + emptytBtn: false, + row: true, + labelWidth: 90, + emptyBtn: false, + // span: 12, + column: [ + { + label: '项目编号', + prop: 'projectNo', + disabled: true, + span: 24, + formslot: true, + }, + { + label: '项目名称', + prop: 'projectName', + hide: true, + disabled: true, + formslot: true, + }, + { + label: '立项金额', + prop: 'totalIncome', + disabled: true, + // type: 'number', + formslot: true, + // viewDisplay:false + }, + + { + label: '到账公司', + prop: 'companyName', + + }, + { + label: '到账时间', + prop: 'arrivedTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: "yyyy-MM-dd", + disabled: false, + }, + { + label: '到账金额', + prop: 'arrivedMoney', + + disabled: false, + }, + + { + label: '到账情况', + prop: 'arrivedStatus', + dicUrl: '/admin/dict/item/type/train_arrived_status', + type: 'select', + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + message: "请选择到账情况", + trigger: "blur" + }] + }, + { + label: '同步到用友', + prop: 'isAsyncYy', + editDisabled: true, + type: 'select', + search: true, + dicUrl: '/admin/dict/item/type/yes_no', + props: { + label: 'label', + value: 'value' + }, + }, + { + label: '附件', + prop: 'attachment', + slot: true, + formslot: true + }, + { + label: '备注', + type: "textarea", + span: 24, + prop: 'remarks', + disabled: true, + }, + { + label: '审核备注', + prop: 'auditRemark', + type: 'textarea', + span: 24, + }, + + ] +} + +export const modifyTaskOption = { + submitBtn: false, + emptytBtn: false, + row: true, + labelWidth: 90, + emptyBtn: false, + // span: 12, + column: [ + { + label: '项目编号', + prop: 'projectNo', + span: 24, + formslot: true, + }, + { + label: '项目名称', + prop: 'projectName', + hide: true, + formslot: true, + }, + { + label: '立项金额', + prop: 'totalIncome', + formslot: true, + }, + { + label: '到账公司', + prop: 'companyName', + }, + { + label: '到账时间', + prop: 'arrivedTime', + type: 'date', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd', + }, + { + label: '到账金额', + prop: 'arrivedMoney', + type: 'number', + }, + { + label: '到账情况', + prop: 'arrivedStatus', + dicUrl: '/admin/dict/item/type/train_arrived_status', + type: 'select', + props: { + label: 'label', + value: 'value' + }, + rules: [{ + required: true, + message: "请选择到账情况", + trigger: "blur" + }] + }, + { + label: '附件', + prop: 'attachment', + slot: true, + formslot: true + }, + { + label: '备注', + type: "textarea", + span: 24, + prop: 'remarks', + }, + { + label: '驳回原因', + prop: 'approveRemarks', + disabled: true, + type: 'textarea', + span: 24, + }, + { + label: '审核备注', + prop: 'auditRemark', + type: 'textarea', + span: 24, + }, + + ] +} diff --git a/src/const/crud/train/projecttype.js b/src/const/crud/train/projecttype.js new file mode 100755 index 0000000..68a764b --- /dev/null +++ b/src/const/crud/train/projecttype.js @@ -0,0 +1,116 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '', + prop: 'tenantId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '类别名称', + prop: 'typeName', + search: true, + span:24, + rules: [{ + required: true, + message: "请输入类别名称", + trigger: "blur" + }] + }, + { + label: '排序', + prop: 'sort', + span:24, + valueDefault:50 + }, + { + label: '备注', + prop: 'remarks', + type: 'textarea' + }, + ] +} diff --git a/src/const/crud/vote/activity.js b/src/const/crud/vote/activity.js new file mode 100644 index 0000000..60729e5 --- /dev/null +++ b/src/const/crud/vote/activity.js @@ -0,0 +1,173 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogWidth:'90%', + dialogHeight:'90%', + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createDate', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateDate', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '活动名称', + prop: 'activityName', + span: 24, + labelWidth:120, + rules: [{ + required: true, + message: "请填写活动名称", + trigger: "blur" + }] + }, + // { + // label: '活动主题', + // prop: 'activityTheme', + // labelWidth:120, + // span:24 + // }, + { + label: '报名开始时间', + prop: 'startTime', + type: 'datetime', + format:'yyyy-MM-dd hh:mm:ss', + valueFormat:'yyyy-MM-dd hh:mm:ss', + labelWidth:120, + rules: [{ + required: true, + message: "请选择报名开始时间", + trigger: "blur" + }] + }, + { + label: '报名结束时间', + prop: 'endTime', + type: 'datetime', + format:'yyyy-MM-dd hh:mm:ss', + valueFormat:'yyyy-MM-dd hh:mm:ss', + labelWidth:120, + rules: [{ + required: true, + message: "请选择报名结束时间", + trigger: "blur" + }] + }, + { + labelWidth:120, + label: '封面图', + prop: 'activityCover', + hide:true, + slot:true, + formslot:true, + span: 24, + }, + { + labelWidth:120, + label: '内页图', + prop: 'imageUrl', + hide:true, + slot:true, + formslot:true, + span: 24, + }, + { + label: '活动简介', + prop: 'activityMeta', + type:'textarea', + labelWidth:120, + span:24, + }, + { + label: '活动内容', + prop: 'activityDesc', + labelWidth:120, + span:24, + height:500, + formslot:true, + slot:true, + hide:true + }, + + { + label: '备注', + prop: 'remarks', + labelWidth:120, + span:24, + }, + ] +} diff --git a/src/const/crud/vote/activitygroup.js b/src/const/crud/vote/activitygroup.js new file mode 100644 index 0000000..24bbb4a --- /dev/null +++ b/src/const/crud/vote/activitygroup.js @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOptionGroup = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '活动ID', + prop: 'activityId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '分组名称', + prop: 'groupName' + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/vote/activitygroupitem.js b/src/const/crud/vote/activitygroupitem.js new file mode 100755 index 0000000..3e786d4 --- /dev/null +++ b/src/const/crud/vote/activitygroupitem.js @@ -0,0 +1,128 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOptionGroupItem = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogWidth:'90%', + dialogHeight:'90%', + dic: [], + column: [ + { + label: '主键', + prop: 'id', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建人', + prop: 'createBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '创建时间', + prop: 'createTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新人', + prop: 'updateBy', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '更新时间', + prop: 'updateTime', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '删除标记', + prop: 'delFlag', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + + { + label: '分组ID', + prop: 'groupId', + hide: true, + addDisplay:false, + editDisabled:true, + editDisplay:false, + visdiplay:false + }, + { + label: '选项名称', + prop: 'itemName', + span: 24, + }, + { + label: '选项封面', + prop: 'itemCover', + hide:true, + + formslot:true, + span: 24, + }, + { + label: '选项描述', + prop: 'itemMeta', + + span: 24, + + },{ + label: '选项内容', + prop: 'itemContent', + formslot:true, + span: 24, + hide:true, + }, + { + label: '备注', + prop: 'remarks', + span:24 + }, + ] +} diff --git a/src/const/crud/work/comlocationhistory.js b/src/const/crud/work/comlocationhistory.js new file mode 100644 index 0000000..e5f8f9a --- /dev/null +++ b/src/const/crud/work/comlocationhistory.js @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学号', + prop: 'stuNo' + }, + { + label: '单位', + prop: 'companyName' + }, + { + label: '定位', + prop: 'placeName' + }, + { + label: '经度', + prop: 'locationLongitude' + }, + { + label: '纬度', + prop: 'locationLatitude' + }, + + { + label: '创建时间', + prop: 'createTime' + } + ] +} diff --git a/src/const/crud/work/company.js b/src/const/crud/work/company.js new file mode 100644 index 0000000..29da67a --- /dev/null +++ b/src/const/crud/work/company.js @@ -0,0 +1,174 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + { + label: '单位名称', + prop: 'companyName', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入单位名称" + }] + }, + { + label: '组织机构代码', + prop: 'orgCode', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入组织机构代码" + }] + }, + { + label: '单位性质', + prop: 'orgProperty', + type:'radio', + dicUrl:'/admin/dict/item/type/org_property', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择单位性质" + }] + }, + { + label: '单位规模', + prop: 'orgScale', + type:'radio', + dicUrl:'/admin/dict/item/type/org_scale', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择单位规模" + }] + }, + { + label: '所属产业', + prop: 'orgIndustryLevel', + type:'radio', + dicUrl:'/admin/dict/item/type/org_industry_level', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择所属产业" + }] + }, + { + label: '所属行业', + prop: 'orgIndustry', + rules: [{ + required: true, + trigger: 'blur', + message:"请输入所属行业" + }] + }, + { + label: '单位简介', + prop: 'remarks', + type:'textarea', + span:24 + }, + { + label: '主营业务', + prop: 'orgBusiness', + type:'textarea', + span:24, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入主营业务" + }] + }, + { + label: '组织机构代码证(附件)', + prop: 'orgCodeLicense', + formslot: true, + slot:true + }, + { + label: '营业执照(附件)', + prop: 'orgBusinessLicense', + formslot: true, + slot:true + }, + { + label: '单位公章(附件)', + prop: 'orgSeal', + formslot: true, + slot:true + }, + { + label: '审核状态', + prop: 'status', + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl:'/admin/dict/item/type/company_information_status', + props:{ + label:'label', + value:'value' + }, + }, + ] +} diff --git a/src/const/crud/work/companyinterview.js b/src/const/crud/work/companyinterview.js new file mode 100644 index 0000000..b9f41b0 --- /dev/null +++ b/src/const/crud/work/companyinterview.js @@ -0,0 +1,318 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const YES_OR_NO=[ + { + label:'否', + value:'0' + }, + { + label:'是', + value:'1' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dialogHeight:700, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '租户ID', + // prop: 'tenantId' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + addDisplay:false, + editDisplay:false, + searchFilterable:true, + search:true, + type:'select', + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + labelWidth:120, + search:true, + searchFilterable:true, + formslot: true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + rules: [{ + required: true, + message: "请选择班级", + trigger: "blur" + }], + }, + { + label: '学号', + prop: 'stuNo', + addDisplay:false, + editDisplay:false, + }, + { + label: '受访学生', + prop: 'realName', + labelWidth:120, + formslot: true, + rules: [{ + required: true, + message: "请选择", + trigger: "blur" + }], + }, + { + label: '访问时间', + prop: 'visitDate', + labelWidth:120, + type:'date', + format:'yyyy-MM-dd', + valueFormat:'yyyy-MM-dd', + rules: [{ + required: true, + message: "请选择访问时间", + trigger: "blur" + }], + }, + { + label: '企业名称', + prop: 'companyName', + labelWidth:120, + rules: [{ + required: true, + message: "请输入企业名称", + trigger: "blur" + }], + }, + { + label: '企业地址', + prop: 'companyAddress', + labelWidth:120, + hide:true, + rules: [{ + required: true, + message: "请输入企业地址", + trigger: "blur" + }], + }, + { + label: '是否有师傅', + prop: 'isMaster', + labelWidth:120, + search:true, + type:'radio', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择", + trigger: "blur" + }], + }, + { + label: '是否专业对口', + prop: 'isMajor', + labelWidth:120, + search:true, + type:'radio', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择", + trigger: "blur" + }], + }, + { + label: '工作地点是否在常州', + prop: 'isChangZhou', + labelWidth:120, + search:true, + type:'radio', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + message: "请选择", + trigger: "blur" + }], + }, + { + label: '企业概况', + prop: 'companyProfile', + labelWidth:120, + hide:true, + type:'textarea', + row:true, + span:15, + rules: [{ + required: true, + message: "请输入企业概况", + trigger: "blur" + }], + }, + { + label: '实习困难', + prop: 'jobDifficulty', + labelWidth:120, + hide:true, + type:'textarea', + row:true, + span:15, + rules: [{ + required: true, + message: "请输入实习困难", + trigger: "blur" + }], + }, + { + label: '技能培训或拓展情况', + prop: 'jobProgress', + labelWidth:120, + hide:true, + type:'textarea', + row:true, + span:15, + rules: [{ + required: true, + message: "请输入", + trigger: "blur" + }], + }, + { + label: '关爱、安全、文明教育', + prop: 'jobEducation', + labelWidth:120, + hide:true, + type:'textarea', + row:true, + span:15, + rules: [{ + required: true, + message: "请输入", + trigger: "blur" + }], + }, + { + label: '图片一', + prop: 'attachmentOne', + labelWidth:120, + formslot: true, + slot: true, + rules: [{ + required: true, + message: "请上传附件", + trigger: "blur" + }], + }, + { + label: '图片二', + prop: 'attachmentTwo', + labelWidth:120, + formslot: true, + slot: true, + }, + { + label: '审批状态', + prop: 'auditStatus', + labelWidth:120, + search:true, + addDisplay:false, + editDisplay:false, + type:'select', + dicUrl: '/admin/dict/item/type/interview_audit_status', + props:{ + label:'label', + value:'value' + }, + + }, + { + label: '审核意见', + prop: 'remarks', + addDisplay:false, + editDisplay:false + }, + ] +} diff --git a/src/const/crud/work/companysarelation.js b/src/const/crud/work/companysarelation.js new file mode 100644 index 0000000..649fea1 --- /dev/null +++ b/src/const/crud/work/companysarelation.js @@ -0,0 +1,137 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '所属招聘会', + prop: 'jobFairId', + labelWidth:120, + type:'select', + dicUrl:'/work/jobfair/getJobFairList', + props:{ + label:'title', + value:'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择招聘会" + }] + }, + { + label: '组织机构代码', + prop: 'orgCode', + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入组织机构代码" + }] + }, + { + label: '岗位名称', + prop: 'stationTitle', + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入岗位名称" + }] + }, + { + label: '专业名称', + prop: 'majorCode', + labelWidth:120, + type:'select', + dicUrl: '/basic/major/list', + filterable:true, + props: { + label: 'majorName', + value: 'majorCode' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入主营业务" + }] + }, + { + label: '需要男生人数', + prop: 'needMaleNum', + labelWidth:120, + formslot: true, + }, + { + label: '需要女生人数', + prop: 'needFemaleNum', + labelWidth:120, + formslot: true, + }, + { + label: '到岗时间', + prop: 'stationTime', + labelWidth:120, + type:'datetime', + valueFormat:'yyyy-MM-dd HH:mm', + format:'yyyy-MM-dd HH:mm', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择到岗时间" + }] + }, + ] +} diff --git a/src/const/crud/work/companysirelation.js b/src/const/crud/work/companysirelation.js new file mode 100644 index 0000000..6e2954c --- /dev/null +++ b/src/const/crud/work/companysirelation.js @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '所属招聘会', + prop: 'jobFairId', + labelWidth:true, + type:'select', + dicUrl:'/work/jobfair/getJobFairList', + props:{ + label:'title', + value:'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择招聘会" + }] + }, + { + label: '社保ID', + prop: 'insuranceId', + labelWidth:true, + type:"select", + dicUrl:'', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '组织机构代码', + prop: 'orgCode', + labelWidth:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入组织机构代码" + }] + }, + ] +} diff --git a/src/const/crud/work/companystationapply.js b/src/const/crud/work/companystationapply.js new file mode 100644 index 0000000..a6d7240 --- /dev/null +++ b/src/const/crud/work/companystationapply.js @@ -0,0 +1,254 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '所属招聘会', + prop: 'jobFairId', + labelWidth:120, + type:'select', + dicUrl:'/work/jobfair/getJobFairList', + props:{ + label:'title', + value:'id' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择招聘会" + }] + }, + { + label: '组织机构代码', + prop: 'orgCode', + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入组织机构代码" + }] + }, + { + label: '拟招人数', + prop: 'needNum', + labelWidth:120, + type:'number', + minRows:0, + }, + { + label: '我校拟招人数', + prop: 'schoolNeedNum', + labelWidth:120, + type:'number', + minRows:0, + }, + { + label: '津贴金额(日)', + prop: 'allowanceDaily', + labelWidth:120, + type:'number', + minRows:0, + }, + { + label: '津贴金额(月)', + prop: 'allowanceMonthly', + labelWidth:120, + type:'number', + minRows:0, + }, + { + label: '加班津贴', + prop: 'allowanceOvertime', + labelWidth:120, + type:'number', + minRows:0, + }, + { + label: '休息(月)', + prop: 'restMonthly', + labelWidth:120, + type:'number', + minRows:0, + }, + { + label: '休息(周)', + prop: 'restDaily', + labelWidth:120, + type:'number', + minRows:0, + }, + { + label: '住宿类型', + prop: 'dormType', + labelWidth:120, + type:"select", + dicUrl:'/admin/dict/item/type/dorm_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '住宿补贴(月)', + prop: 'dormAllowance', + labelWidth:120, + type:'number', + minRows:0, + }, + { + label: '工作餐类型', + prop: 'launchType', + labelWidth:120, + type:"select", + dicUrl:'/admin/dict/item/type/launch_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '工作餐补贴(月)', + prop: 'launchAllowance', + labelWidth:120, + type:'number', + minRows:0, + }, + { + label: '正式工资(月)', + prop: 'formalWages', + labelWidth:120, + type:'number', + minRows:0, + }, + { + label: '加班工资(时)', + prop: 'overtimeWages', + labelWidth:120, + type:'number', + minRows:0, + }, + { + label: '填表人', + prop: 'applier', + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入填表人" + }] + }, + { + label: '填表人Email', + prop: 'applierEmail', + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入填表人Email" + }] + }, + { + label: '填表人手机', + prop: 'applierMobile', + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入填表人手机" + }] + }, + { + label: '填表人座机', + prop: 'applierPhone', + labelWidth:120, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入填表人座机" + }] + }, + { + label: '参会人数', + prop: 'attendNum', + labelWidth:120, + type:'number', + minRows:0, + }, + { + label: '分配座位号', + prop: 'seatNum', + labelWidth:120, + type:'number', + minRows:0, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入分配座机号" + }] + }, + { + label: '是否为VIP座位', + prop: 'isVip', + labelWidth:120, + type:'radio', + dicUrl:'/admin/dict/item/type/yes_no', + props:{ + label:'label', + value:'value' + }, + }, + ] +} diff --git a/src/const/crud/work/jobfairstu.js b/src/const/crud/work/jobfairstu.js new file mode 100644 index 0000000..209724f --- /dev/null +++ b/src/const/crud/work/jobfairstu.js @@ -0,0 +1,159 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学年', + prop: 'schoolYear', + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/basic/basicyear/queryAllSchoolYear', + props:{ + label:'year', + value:'year' + }, + }, + { + label: '学期', + prop: 'schoolTerm', + type:'select', + addDisplay:false, + editDisabled:true, + // search:true, + dicUrl:'/admin/dict/item/type/school_term', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '招聘会', + prop: 'jobFairId', + hide:true, + type:'select', + dicUrl:'/work/jobfair/getJobFairList', + props:{ + label:'title', + value:'id' + }, + }, + { + label:'学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + span: 12, + search:true, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + + { + label: '班号', + prop: 'classCode', + search:true, + searchFilterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + // hide:true, + }, + { + label: '姓名', + prop: 'realName', + // hide:true, + }, + { + label: '性别', + prop: 'gender', + type:"select", + dicUrl: '/admin/dict/item/type/sexy', + props:{ + label:'label', + value:'value' + }, + // hide:true, + }, + { + label: '班主任', + prop: 'teacherNo', + hide:true, + }, + { + label: '审核状态', + prop: 'auditStatus', + type:'select', + dicUrl:'/admin/dict/item/type/audit_status', + props:{ + label:'label', + value:'value' + }, + }, + ] +} diff --git a/src/const/crud/work/monthcontact.js b/src/const/crud/work/monthcontact.js new file mode 100644 index 0000000..9ec33e4 --- /dev/null +++ b/src/const/crud/work/monthcontact.js @@ -0,0 +1,379 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +export const YES_OR_NO=[ + { + label:'未抽查', + value:'0' + }, + { + label:'已抽查', + value:'1' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '招聘会', + // prop: 'jobFairId', + // search:true, + // searchFilterable:true, + // hide:true, + // addDisplay:false, + // editDisplay: false, + // type:'select', + // dicUrl:'/work/jobfair/getJobFairList', + // props:{ + // label:'title', + // value:'id' + // }, + // }, + { + label:'学院', + prop:'deptCode', + search:true, + addDisplay:false, + editDisplay: false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label:'专业', + prop:'majorCode', + addDisplay:false, + editDisplay: false, + type:'select', + dicUrl: '/basic/major/getMajorNameList', + props: { + label: 'majorName', + value: 'majorCode' + }, + }, + { + label: '班级', + prop: 'classCode', + editDisabled:true, + formslot:true, + search:true, + searchFilterable:true, + filterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + editDisabled:true, + formslot:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学号" + }] + }, + { + label: '姓名', + prop: 'realName', + search:true, + addDisplay:false, + editDisplay: false, + }, + { + label: '电话', + prop: 'phone', + addDisplay:false, + editDisplay: false, + }, + { + label: '月份', + prop: 'month', + // search:true, + editDisabled:true, + type:'month', + format:'yyyy-MM', + valueFormat:'yyyy-MM', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择时间" + }] + }, + // { + // label: '联系人', + // prop: 'contactName', + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请输入联系人" + // }] + // }, + { + label: '联系方式', + prop: 'contactType', + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/contact_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择联系方式" + }] + }, + { + label: '联系时间', + prop: 'contactDate', + type:'datetime', + format:'yyyy-MM-dd HH:mm', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择联系时间" + }] + }, + { + label: '联系内容', + prop: 'contactContent', + type:'textarea', + span:24, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入联系内容" + }] + }, + { + label: '是否抽查', + prop: 'isSpotCheck', + slot:true, + // search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'select', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + }, + ] +} + + +export const historyTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '招聘会', + // prop: 'jobFairId', + // search:true, + // searchFilterable:true, + // hide:true, + // addDisplay:false, + // editDisplay: false, + // type:'select', + // dicUrl:'/work/jobfair/getJobFairList', + // props:{ + // label:'title', + // value:'id' + // }, + // }, + { + label: "实习年份", + prop: "year" + }, + { + label:'学院', + prop:'deptCode', + search:true, + addDisplay:false, + editDisplay: false, + type:'select', + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classcode', + editDisabled:true, + formslot:true, + search:true, + searchFilterable:true, + filterable:true, + type:'select', + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + editDisabled:true, + formslot:true, + search:true, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择学号" + }] + }, + { + label: '姓名', + prop: 'realName', + search:true, + addDisplay:false, + editDisplay: false, + }, + { + label: '就业去向', + prop: 'workType', + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/work_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '实习单位', + prop: 'companyName', + search:true, + labelWidth:140, + span:24, + }, + { + label: '电话', + prop: 'phone', + addDisplay:false, + editDisplay: false, + }, + { + label: '月份', + prop: 'month', + // search:true, + editDisabled:true, + type:'month', + format:'yyyy-MM', + valueFormat:'yyyy-MM', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择时间" + }] + }, + // { + // label: '联系人', + // prop: 'contactName', + // rules: [{ + // required: true, + // trigger: 'blur', + // message:"请输入联系人" + // }] + // }, + { + label: '联系方式', + prop: 'contactType', + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/contact_type', + props:{ + label:'label', + value:'value' + }, + rules: [{ + required: true, + trigger: 'blur', + message:"请选择联系方式" + }] + }, + { + label: '联系时间', + prop: 'contactDate', + type:'datetime', + format:'yyyy-MM-dd HH:mm', + valueFormat:'yyyy-MM-dd HH:mm:ss', + rules: [{ + required: true, + trigger: 'blur', + message:"请选择联系时间" + }] + }, + { + label: '联系内容', + prop: 'contactContent', + type:'textarea', + span:24, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入联系内容" + }] + }, + { + label: '是否抽查', + prop: 'isSpotCheck', + slot:true, + // search:true, + hide:true, + addDisplay:false, + editDisplay:false, + type:'select', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + }, + ] +} diff --git a/src/const/crud/work/monthreport.js b/src/const/crud/work/monthreport.js new file mode 100644 index 0000000..79ae183 --- /dev/null +++ b/src/const/crud/work/monthreport.js @@ -0,0 +1,210 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + addDisplay:false, + editDisplay:false, + searchFilterable:true, + search:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + addDisplay:false, + editDisplay:false, + }, + { + label: '姓名', + prop: 'realName', + search:true, + addDisplay:false, + editDisabled:true + }, + { + label: '月份', + prop: 'month', + // search:true, + type:'month', + format:'yyyy-MM', + valueFormat:'yyyy-MM', + rules: [{ + required: true, + message: '请输入月份', + trigger: 'blur' + }] + }, + { + label: '月报内容', + prop: 'content', + type:'textarea', + span: 24, + rules: [{ + required: true, + message: '请填写内容', + trigger: 'blur' + }] + }, + { + label: '回复', + prop: 'reply', + addDisplay:false, + editDisplay:false, + }, + ] +} + + +export const historyTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: "实习年份", + prop: "year" + }, + { + label: '学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + addDisplay:false, + editDisplay:false, + searchFilterable:true, + search:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + search:true, + addDisplay:false, + editDisplay:false, + }, + { + label: '姓名', + prop: 'realName', + search:true, + addDisplay:false, + editDisabled:true + }, + { + label: '就业去向', + prop: 'workType', + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/work_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '实习单位', + prop: 'companyName', + search:true, + labelWidth:140, + span:24, + }, + { + label: '月份', + prop: 'month', + // search:true, + type:'month', + format:'yyyy-MM', + valueFormat:'yyyy-MM', + rules: [{ + required: true, + message: '请输入月份', + trigger: 'blur' + }] + }, + { + label: '月报内容', + prop: 'content', + type:'textarea', + span: 24, + rules: [{ + required: true, + message: '请填写内容', + trigger: 'blur' + }] + }, + { + label: '回复', + prop: 'reply', + addDisplay:false, + editDisplay:false, + }, + ] +} diff --git a/src/const/crud/work/registration.js b/src/const/crud/work/registration.js new file mode 100644 index 0000000..90636c8 --- /dev/null +++ b/src/const/crud/work/registration.js @@ -0,0 +1,279 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + selection:true, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + search:true, + hide:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '姓名', + prop: 'realName', + search:true, + labelWidth:140, + span:24, + addDisplay:false, + editDisabled:true + }, + { + label: '生日', + prop: 'birthday', + hide:true, + }, + { + label: '政治面貌', + prop: 'politicsStatus', + hide:true, + }, + { + label: '学号', + prop: 'stuNo', + labelWidth:140, + span:24, + addDisplay:false, + editDisabled:true + }, + { + label: '身份证', + prop: 'idCard', + search:true, + hide:true, + labelWidth:140, + span:24, + addDisplay:false, + editDisabled:true + }, + { + label: '性别', + prop: 'gender', + type:"select", + hide:true, + dicUrl: '/admin/dict/item/type/sexy', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '专业名称', + prop: 'majorName', + labelWidth:140, + span:24, + addDisplay:false, + editDisabled:true + }, + { + label: '班级名称', + prop: 'classCode', + searchFilterable:true, + addDisplay:false, + editDisplay:false, + search:true, + type:"select", + //dicUrl:'/basic/basicclass/list', + dicUrl:'basic/basicclass/queryUserClass', + props:{ + label: 'className', + value: 'classCode', + }, + }, + { + label: '文化程度', + prop: 'education', + addDisplay:false, + editDisplay: false, + type:"select", + hide:true, + dicUrl: '/admin/dict/item/type/pre_school_education', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '学制', + prop: 'majorYears', + type:"select", + hide:true, + dicUrl: '/admin/dict/item/type/basic_major_years', + }, + { + label: '学籍状态', + prop: 'enrollStatus', + addDisplay:false, + editDisplay: false, + type:"select", + dicUrl: '/admin/dict/item/type/enroll_status', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '状态', + prop: 'studentStatus', + width: '60%',//表格宽度 + search:true, + type:"select", + dicUrl: '/admin/dict/item/type/student_status', + editDisabled:true, + editDisplay:false, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '奖惩情况', + prop: 'rewards', + overHidden:true + }, + { + label: '自我评价', + prop: 'evaluation', + overHidden:true + }, + { + label: '毕业鉴定', + prop: 'appraisal', + overHidden:true + }, + ] +} + +//家庭成员 +export const relationHomeOption={ + keyId:'id', + addBtn:false, + editBtn:false, + addRowBtn:false, + cellBtn:true, + menu:false, + column: [{ + label:'称谓', + prop: 'appellation', + cell: true, + type:'select', + dicUrl:`/admin/dict/item/type/family_member_type`, + props:{ + label:'label', + value:'value', + }, + rules: [ + { + required: true, + message: '请输入称谓', + trigger: 'blur' + } + ] + }, + { + label:'姓名', + prop: 'realName', + cell: true, + rules: [ + { + required: true, + message: '请输入姓名', + trigger: 'blur' + } + ] + }, + { + label:'电话', + prop: 'tel', + cell: true, + rules: [ + { + required: true, + message: '请输入电话', + trigger: 'blur' + }, + { min:8 ,max: 12, message: '8-12位数字', trigger: 'blur' } + ] + }, + { + label:'身份证号', + prop: 'idCard', + cell: true, + rules: [ + { + required: true, + message: '请输入身份证号', + trigger: 'blur' + }, + { min:11 ,max:18 , message: '18位', trigger: 'blur' } + ] + }, + { + label:'工作单位', + prop: 'workAddress', + cell: true, + rules: [ + { + required: true, + message: '请输入工作单位', + trigger: 'blur' + } + ] + }, + { + label:'政治面貌', + prop: 'politicsStatus', + type:'select', + cell: true, + dicUrl:`/admin/dict/item/type/political_family`, + props:{ + label:'label', + value:'value', + } + }, + { + label:'身体状况', + prop: 'health', + type:'select', + cell: true, + dicUrl:`/admin/dict/item/type/health_status`, + props:{ + label:'label', + value:'value', + } + }, + ] +} diff --git a/src/const/crud/work/selfrecommand.js b/src/const/crud/work/selfrecommand.js new file mode 100644 index 0000000..ce22764 --- /dev/null +++ b/src/const/crud/work/selfrecommand.js @@ -0,0 +1,272 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + addDisplay:false, + editDisplay:false, + searchFilterable:true, + search:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + labelWidth:140, + span:24, + addDisplay:false, + editDisabled:true + }, + { + label: '姓名', + prop: 'realName', + search:true, + labelWidth:140, + span:24, + addDisplay:false, + editDisabled:true + }, + { + label: '在校担任职务', + prop: 'duty', + labelWidth:140, + type:'textarea', + span:24, + rules: [{ + required: true, + message: '请输入', + trigger: 'blur' + }] + }, + { + label: '专业主要课程', + prop: 'major', + labelWidth:140, + type:'textarea', + span:24, + rules: [{ + required: true, + message: '请输入', + trigger: 'blur' + }] + }, + { + label: '特长爱好第二技能', + prop: 'hobby', + labelWidth:140, + type:'textarea', + span:24, + rules: [{ + required: true, + message: '请输入', + trigger: 'blur' + }] + }, + { + label: '奖惩情况', + prop: 'reward', + labelWidth:140, + type:'textarea', + span:24, + rules: [{ + required: true, + message: '请输入', + trigger: 'blur' + }] + }, + { + label: '班主任评语', + prop: 'classComment', + addDisplay:false, + labelWidth:140, + type:'textarea', + span:24, + // editDisplay:false + }, + ] +} + + +export const historyTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: "实习年份", + prop: "year" + }, + { + label: '学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + addDisplay:false, + editDisplay:false, + searchFilterable:true, + search:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + search:true, + labelWidth:140, + span:24, + addDisplay:false, + editDisabled:true + }, + { + label: '姓名', + prop: 'realName', + search:true, + labelWidth:140, + span:24, + addDisplay:false, + editDisabled:true + }, + { + label: '就业去向', + prop: 'workType', + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/work_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '实习单位', + prop: 'companyName', + search:true, + labelWidth:140, + span:24, + }, + { + label: '在校担任职务', + prop: 'duty', + labelWidth:140, + type:'textarea', + span:24, + rules: [{ + required: true, + message: '请输入', + trigger: 'blur' + }] + }, + { + label: '专业主要课程', + prop: 'major', + labelWidth:140, + type:'textarea', + span:24, + rules: [{ + required: true, + message: '请输入', + trigger: 'blur' + }] + }, + { + label: '特长爱好第二技能', + prop: 'hobby', + labelWidth:140, + type:'textarea', + span:24, + rules: [{ + required: true, + message: '请输入', + trigger: 'blur' + }] + }, + { + label: '奖惩情况', + prop: 'reward', + labelWidth:140, + type:'textarea', + span:24, + rules: [{ + required: true, + message: '请输入', + trigger: 'blur' + }] + }, + { + label: '班主任评语', + prop: 'classComment', + addDisplay:false, + labelWidth:140, + type:'textarea', + span:24, + // editDisplay:false + }, + ] +} diff --git a/src/const/crud/work/stucompany.js b/src/const/crud/work/stucompany.js new file mode 100644 index 0000000..0556a66 --- /dev/null +++ b/src/const/crud/work/stucompany.js @@ -0,0 +1,193 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ +export const YES_OR_NO=[ + { + label:'否', + value:'0' + }, + { + label:'是', + value:'1' + } +] +const LOCATION_STATE=[ + { + label:'未审核', + value:'0' + }, + { + label:'通过', + value:'1' + }, + { + label:'驳回', + value:'2' + } +] + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + + { + label: '顶岗年份', + prop: 'year', + + }, + { + label: '学院名称', + prop: 'deptCode', + search:true, + hide:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '学院名称', + prop: 'deptName' + }, + { + label: '班号', + prop: 'classNo', + + search:true, + // hide:true, + + }, + // { + // label: '班号', + // prop: 'classNo' + // }, + { + label: '姓名', + prop: 'realName', + search:true, + }, + { + label: '学号', + prop: 'stuNo', + search:true, + }, + { + label: '就业去向', + prop: 'workType', + search:true, + slot:true, + type:'select', + dicUrl:'/admin/dict/item/type/work_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '自主择业', + prop: 'isSelf', + slot:true + }, + { + label: '单位', + prop: 'companyName' + }, + { + label: '岗位名称', + prop: 'postName' + }, + { + label: '是否专业对口', + prop: 'isMajor', + type:'select', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '薪资范围', + prop: 'salaryRange', + type:'select', + dicUrl:'/admin/dict/item/type/salary_range', + props:{ + value:'value', + label:'label', + } + }, + { + label: '实习地点', + prop: 'jobPlace', + type:'select', + dicUrl:'/admin/dict/item/type/job_place', + props:{ + value:'value', + label:'label', + } + }, + { + label: '定位审核', + prop: 'locationState', + type:'select', + search:true, + dicData:LOCATION_STATE, + props:{ + value:'value', + label:'label', + } + }, + ] +} diff --git a/src/const/crud/work/stucompanychange.js b/src/const/crud/work/stucompanychange.js new file mode 100644 index 0000000..5a0aa58 --- /dev/null +++ b/src/const/crud/work/stucompanychange.js @@ -0,0 +1,200 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const YES_OR_NO=[ + { + label:'否', + value:'0' + }, + { + label:'是', + value:'1' + } +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + { + label: '学院代码', + prop: 'deptCode', + hide:true, + }, + { + label: '学院', + prop: 'deptName' + }, + { + label: '班级代码', + prop: 'classCode' + }, + { + label: '姓名', + prop: 'realName' + }, + { + label: '学号', + prop: 'stuNo' + }, + { + label: '申请理由', + prop: 'applyReason' + }, + { + label: '申请日期', + prop: 'applyTime' + }, + { + label: '单位/学校 名称', + prop: 'companyName' + }, + { + label: '岗位名称', + prop: 'postName' + }, + { + label: '是否专业对口', + prop: 'isMajor', + type:'select', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '薪资范围', + prop: 'salaryRange', + type:'select', + dicUrl:'/admin/dict/item/type/salary_range', + props:{ + value:'value', + label:'label', + } + }, + { + label: '实习地点', + prop: 'jobPlace', + type:'select', + dicUrl:'/admin/dict/item/type/job_place', + props:{ + value:'value', + label:'label', + } + }, + + + { + label: '申请类型', + prop: 'applyType', + type:'select', + dicUrl:'/admin/dict/item/type/apply_type', + props:{ + value:'value', + label:'label', + } + }, + { + label: '去向', + prop: 'workType', + type:'select', + dicUrl:'/admin/dict/item/type/work_type', + props:{ + value:'value', + label:'label', + } + }, + + { + label: '纸质文档', + prop: 'paper', + type:'select', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '需要推荐', + prop: 'recommendFlag', + type:'select', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + }, + { + label: '就业时间', + prop: 'employmentTime' + }, + { + label: '就业协议书', + prop: 'haveEmploymentPaper', + type:'select', + dicData:YES_OR_NO, + props:{ + label:'label', + value:'value' + }, + }, + + + { + label: '附件', + prop: 'attachment', + slot:true, + }, + ] +} diff --git a/src/const/crud/work/stulocation.js b/src/const/crud/work/stulocation.js new file mode 100644 index 0000000..1b0ceb3 --- /dev/null +++ b/src/const/crud/work/stulocation.js @@ -0,0 +1,112 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +const YES_OR_NO=[ + { + label:'范围内', + value:'1' + }, + { + label:'范围外', + value:'0' + } +] + +const SIGN_TYPE=[ + {label:"正常签到",value:"1"}, + {label:"无法签到",value:"2"} +] + +const ABNORMAL_CONFIRM=[ + {label:"是",value:"1"}, + {label: "否",value:"0"} +] +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + selection: true, + selectable:(row,index)=>{ + return index===1; + }, + column: [ + { + label: '学号', + prop: 'stuNo', + search:true + }, + { + label: '姓名', + prop: 'realName', + search:true + }, + { + label: '学院名称', + prop: 'deptName', + }, + // { + // label: '地名', + // prop: 'placeName' + // }, + { + label: '公司名称', + prop: 'companyName' + }, + { + label: '打卡位置', + prop: 'placeName' + }, + { + label: '偏差距离(米)', + prop: 'distance' + }, + { + label: '偏差状态', + prop: 'inRange', + slot:true, + }, + { + label: '签到时间', + prop: 'createTime' + }, + { + label: '签到类型', + prop: 'type', + type:'select', + search:true, + dicData:SIGN_TYPE + }, + { + label: '签到异常确认', + prop: 'teacherDeal', + type:'select', + search:true, + dicData:ABNORMAL_CONFIRM + }, + { + label: '备注', + prop: 'remarks' + }, + ] +} diff --git a/src/const/crud/work/stuquestion.js b/src/const/crud/work/stuquestion.js new file mode 100644 index 0000000..ff584a1 --- /dev/null +++ b/src/const/crud/work/stuquestion.js @@ -0,0 +1,131 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + // { + // label: '主键', + // prop: 'id' + // }, + // { + // label: '创建人', + // prop: 'createBy' + // }, + // { + // label: '创建时间', + // prop: 'createTime' + // }, + // { + // label: '更新人', + // prop: 'updateBy' + // }, + // { + // label: '更新时间', + // prop: 'updateTime' + // }, + // { + // label: '删除标记', + // prop: 'delFlag' + // }, + // { + // label: '备注', + // prop: 'remarks' + // }, + + { + label: '学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + addDisplay:false, + editDisplay:false, + searchFilterable:true, + search:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + addDisplay:false, + editDisabled:true + }, + { + label: '姓名', + prop: 'realName', + search:true, + addDisplay:false, + editDisabled:true + }, + { + label: '问题', + prop: 'question', + type:'textarea', + span:24, + rules: [{ + required: true, + trigger: 'blur', + message:"请输入问题" + }] + }, + { + label: '答复', + prop: 'reply', + addDisplay:false, + editDisplay:false, + type:"textarea", + span:24 + }, + { + label: '答复老师工号', + prop: 'replyUsername', + addDisplay:false, + editDisplay:false, + }, + { + label: '答复老师姓名', + prop: 'replyRealname', + addDisplay:false, + editDisplay:false, + }, + ] +} diff --git a/src/const/crud/work/weekreport.js b/src/const/crud/work/weekreport.js new file mode 100644 index 0000000..ea8b8e7 --- /dev/null +++ b/src/const/crud/work/weekreport.js @@ -0,0 +1,248 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + addDisplay:false, + editDisplay:false, + searchFilterable:true, + search:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + addDisplay:false, + editDisabled:true + }, + { + label: '姓名', + prop: 'realName', + search:true, + addDisplay:false, + editDisabled:true + }, + { + label: '月份', + prop: 'month', + // search:true, + editDisabled:true, + type:'month', + format:'yyyy-MM', + valueFormat:'yyyy-MM', + rules: [{ + required: true, + message: '请输入月份', + trigger: 'blur' + }] + }, + { + label: '第几周', + prop: 'week', + type:'select', + editDisabled:true, + // search:true, + dicUrl: '/admin/dict/item/type/week_type', + props:{ + value:'value', + label:'label' + }, + rules: [{ + required: true, + message: '请填写第几周', + trigger: 'blur' + }] + }, + { + label: '周报内容', + prop: 'content', + type:'textarea', + span: 24, + rules: [{ + required: true, + message: '请填写内容', + trigger: 'blur' + }] + }, + { + label: '回复', + prop: 'reply', + addDisplay:false, + editDisplay:false, + }, + + ] +} + + +export const historyTableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: "实习年份", + prop: "year" + }, + { + label: '学院', + prop: 'deptCode', + addDisplay:false, + editDisplay:false, + search:true, + type:"select", + dicUrl: '/basic/basicdept/getDeptList?secondFlag=1', + props: { + label: 'deptName', + value: 'deptCode' + }, + }, + { + label: '班级', + prop: 'classCode', + addDisplay:false, + editDisplay:false, + searchFilterable:true, + search:true, + type:"select", + dicUrl:'/basic/basicclass/list', + props:{ + label: 'classNo', + value: 'classCode', + }, + }, + { + label: '学号', + prop: 'stuNo', + search:true, + addDisplay:false, + editDisabled:true + }, + { + label: '姓名', + prop: 'realName', + search:true, + addDisplay:false, + editDisabled:true + }, + { + label: '就业去向', + prop: 'workType', + search:true, + type:'select', + dicUrl:'/admin/dict/item/type/work_type', + props:{ + label:'label', + value:'value' + }, + }, + { + label: '实习单位', + prop: 'companyName', + search:true, + labelWidth:140, + span:24, + }, + { + label: '月份', + prop: 'month', + // search:true, + editDisabled:true, + type:'month', + format:'yyyy-MM', + valueFormat:'yyyy-MM', + rules: [{ + required: true, + message: '请输入月份', + trigger: 'blur' + }] + }, + { + label: '第几周', + prop: 'week', + type:'select', + editDisabled:true, + // search:true, + dicUrl: '/admin/dict/item/type/week_type', + props:{ + value:'value', + label:'label' + }, + rules: [{ + required: true, + message: '请填写第几周', + trigger: 'blur' + }] + }, + { + label: '周报内容', + prop: 'content', + type:'textarea', + span: 24, + rules: [{ + required: true, + message: '请填写内容', + trigger: 'blur' + }] + }, + { + label: '回复', + prop: 'reply', + addDisplay:false, + editDisplay:false, + }, + + ] +} diff --git a/src/const/crud/work/workjobfair.js b/src/const/crud/work/workjobfair.js new file mode 100644 index 0000000..e7695c5 --- /dev/null +++ b/src/const/crud/work/workjobfair.js @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '主键', + prop: 'id' + }, + { + label: '创建人', + prop: 'createBy' + }, + { + label: '创建时间', + prop: 'createTime' + }, + { + label: '更新人', + prop: 'updateBy' + }, + { + label: '更新时间', + prop: 'updateTime' + }, + { + label: '删除标记', + prop: 'delFlag' + }, + { + label: '备注', + prop: 'remarks' + }, + { + label: '招聘会名称', + prop: 'title' + }, + { + label: '报名开始时间', + prop: 'signUpStartTime' + }, + { + label: '报名截止时间', + prop: 'signUpEndTime' + }, + { + label: '年份', + prop: 'year' + }, + { + label: '类型:0校级 1系级', + prop: 'type' + }, + { + label: '部门代码', + prop: 'deptCode' + }, + { + label: '部门名称', + prop: 'deptName' + }, + { + label: '租户', + prop: 'tenantId' + }, + { + label: '开启/关闭状态 0关闭 1开启', + prop: 'status' + }, + { + label: '联系人', + prop: 'contacter' + }, + { + label: '联系电话', + prop: 'contacterMobile' + }, + ] +} diff --git a/src/const/crud/work/workmajorstatic.js b/src/const/crud/work/workmajorstatic.js new file mode 100644 index 0000000..5292a23 --- /dev/null +++ b/src/const/crud/work/workmajorstatic.js @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + menu:false, + dic: [], + column: [ + + + { + label: '专业代码', + prop: 'majorCode' + }, + { + label: '专业名称', + prop: 'majorName', + }, + { + label: '毕业人数', + prop: 'total', + }, + { + label: '十大集群产业人数', + prop: 'ten', + }, + { + label: '比例', + prop: 'rate', + }, + ] +} diff --git a/src/const/crud/work/workseatgroup.js b/src/const/crud/work/workseatgroup.js new file mode 100644 index 0000000..f8887d3 --- /dev/null +++ b/src/const/crud/work/workseatgroup.js @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2018-2025, cyweb All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the pig4cloud.com developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + */ + +import {number} from "echarts/src/export"; + +export const tableOption = { + border: true, + index: true, + indexLabel: '序号', + stripe: true, + menuAlign: 'center', + align: 'center', + editBtn: false, + delBtn: false, + addBtn: false, + dic: [], + column: [ + { + label: '招聘会', + prop: 'jobFairId', + type:'select', + dicUrl: '/work/workjobfair/list', + props: { + label: 'title', + value: 'id' + }, + addDisplay: false, + editDisplay:false + }, + { + label: '席位开始编号', + prop: 'seatIntervalBegin', + type:'number', + labelWidth: 120, + rules: [{ + required: true, + message: "请输入席位开始编号", + trigger: "blur" + }] + }, + { + label: '席位结束编号', + prop: 'seatIntervalEnd', + type:'number', + labelWidth: 120, + + rules: [{ + required: true, + message: "请输入席位结束编号", + trigger: "blur" + }] + }, + { + label: '备注', + labelWidth: 120, + prop: 'remarks', + type: 'textarea', + span: 24, + }, + ] +} diff --git a/src/const/errorCode.js b/src/const/errorCode.js new file mode 100644 index 0000000..5a91a49 --- /dev/null +++ b/src/const/errorCode.js @@ -0,0 +1,13 @@ +export default { + '000': '操作太频繁,请勿重复请求', + '401': '当前操作没有权限', + '403': '当前操作没有权限', + '404': '资源不存在', + '417': '未绑定登录账号,请使用密码登录后绑定', + '423': '演示环境不能操作', + '426': '用户名不存在或密码错误', + '428': '验证码错误,请重新输入', + '429': '请求过频繁', + '479': '演示环境,没有权限操作', + 'default': '系统未知错误,请反馈给管理员' +} diff --git a/src/const/logs/index.js b/src/const/logs/index.js new file mode 100644 index 0000000..677e21b --- /dev/null +++ b/src/const/logs/index.js @@ -0,0 +1,38 @@ +export default { + menu: false, + addBtn: false, + page: false, + border: true, + expand: true, + refreshBtn: false, + headerAlign: 'center', + column: [{ + label: '类型', + prop: 'type', + width: 80, + align: 'center', + slot: true, + dicData: [{ + label: 'bug', + value: 'error' + }] + }, { + label: '地址', + width: 200, + prop: 'url', + overHidden: true, + }, { + label: '内容', + prop: 'message', + overHidden: true, + }, { + label: '错误堆栈', + prop: 'stack', + hide: true + }, { + label: '时间', + align: 'center', + prop: 'time', + width: 200, + }] +} diff --git a/src/const/setting/dict.js b/src/const/setting/dict.js new file mode 100644 index 0000000..2fd67c1 --- /dev/null +++ b/src/const/setting/dict.js @@ -0,0 +1,29 @@ +/*这里的字典表和后台的做一一对应,后期从后台直接生成,不需要人工维护*/ +export let WORK_TYPE = [ + {label:"参军",value:"1"}, + {label:"就业",value:"2"}, + {label:"升学",value:"3"}, + {label:"待业",value:"4"} +] + +export let YES_NO = [ + {label:"是",value:"1"}, + {label:"否",value:"0"}, +] +/**/ +export let HAVE_OR_NOT = [ + {label:"有",value:"1"}, + {label:"无",value:"0"}, +] + +export let LEAVE_TYPE = [ + {label:"事假",value:"3"}, + {label:"病假",value:"4"}, +] + +export let CLASS_AUDIT_TYPE = [ + {label:"待审批",value:"0"}, + {label:"同意",value:"1"}, + {label:"不同意",value:"2"}, +] + diff --git a/src/const/setting/index.js b/src/const/setting/index.js new file mode 100644 index 0000000..5b5a72a --- /dev/null +++ b/src/const/setting/index.js @@ -0,0 +1,124 @@ +const dicData = [{ + label: '开启', + value: 'true' +}, { + label: '关闭', + value: 'false' +}] +export const list = [{ + key: 'showTag', + commit: 'SET_SHOWTAG' +}, { + key: 'showTheme', + commit: 'SET_SHOWTHEME' +}, { + key: 'showColor', + commit: 'SET_SHOWCOLOR' +}, { + key: 'showLock', + commit: 'SET_SHOWLOCK' +}, { + key: 'showDebug', + commit: 'SET_SHOWDEBUG' +}, { + key: 'showFullScren', + commit: 'SET_SHOWFULLSCREN' +}, { + key: 'showCollapse', + commit: 'SET_SHOWCOLLAPSE' +}, { + key: 'showSearch', + commit: 'SET_SHOWSEARCH' +}, { + key: 'showMenu', + commit: 'SET_SHOWMENU' +}] +export const option = (safe) => { + const _safe = safe; + return { + submitBtn: false, + emptyBtn: false, + column: [{ + label: '标签', + prop: 'showTag', + type: 'switch', + span: 24, + dicData: dicData, + click: ({column}) => { + _safe.set(column.prop); + } + }, { + label: '日志', + prop: 'showDebug', + type: 'switch', + span: 24, + dicData: dicData, + click: ({column}) => { + _safe.set(column.prop); + } + }, { + label: '主题', + prop: 'showTheme', + type: 'switch', + span: 24, + dicData: dicData, + click: ({column}) => { + _safe.set(column.prop); + } + }, { + label: '主题色', + prop: 'showColor', + type: 'switch', + span: 24, + dicData: dicData, + click: ({column}) => { + _safe.set(column.prop); + } + }, { + label: '全屏', + prop: 'showFullScren', + type: 'switch', + span: 24, + dicData: dicData, + click: ({column}) => { + _safe.set(column.prop); + } + }, { + label: '锁屏', + prop: 'showLock', + type: 'switch', + span: 24, + dicData: dicData, + click: ({column}) => { + _safe.set(column.prop); + } + }, { + label: '搜索', + prop: 'showSearch', + type: 'switch', + span: 24, + dicData: dicData, + click: ({column}) => { + _safe.set(column.prop); + } + }, { + label: '缩放', + prop: 'showCollapse', + type: 'switch', + span: 24, + dicData: dicData, + click: ({column}) => { + _safe.set(column.prop); + } + }, { + label: '顶部菜单', + prop: 'showMenu', + type: 'switch', + span: 24, + dicData: dicData, + click: ({column}) => { + _safe.set(column.prop); + } + }] + } +} diff --git a/src/const/website.js b/src/const/website.js new file mode 100644 index 0000000..41d4b09 --- /dev/null +++ b/src/const/website.js @@ -0,0 +1,31 @@ +export default { + title: 'SCJ', + logo: 'SCJ', + key: 'cyweb', //配置主键,目前用于存储 + indexTitle: '校园应用平台', + whiteList: ['/login', '/404', '/401', '/lock'], // 配置无权限可以访问的页面 + whiteTagList: ['/login', '/404', '/401', '/lock' ], // 配置不添加tags页面 ('/advanced-router/mutative-detail/*'——*为通配符) + lockPage: '/lock', + tokenTime: 6000, + infoTitle: '校园应用平台', + statusWhiteList: [428], + // 配置首页不可关闭 + isFirstPage: false, + fistPage: { + label: '首页', + value: '/wel/index', + params: {}, + query: {}, + group: [], + close: false + }, + // 配置菜单的属性 + menu: { + props: { + label: 'label', + path: 'path', + icon: 'icon', + children: 'children' + } + } +} diff --git a/src/excel/Blob.js b/src/excel/Blob.js new file mode 100644 index 0000000..26382cc --- /dev/null +++ b/src/excel/Blob.js @@ -0,0 +1,179 @@ +/* eslint-disable */ +/* Blob.js + * A Blob implementation. + * 2014-05-27 + * + * By Eli Grey, http://eligrey.com + * By Devin Samarin, https://github.com/eboyjr + * License: X11/MIT + * See LICENSE.md + */ + +/*global self, unescape */ +/*jslint bitwise: true, regexp: true, confusion: true, es5: true, vars: true, white: true, + plusplus: true */ + +/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */ + +(function (view) { + "use strict"; + + view.URL = view.URL || view.webkitURL; + + if (view.Blob && view.URL) { + try { + new Blob; + return; + } catch (e) {} + } + + // Internally we use a BlobBuilder implementation to base Blob off of + // in order to support older browsers that only have BlobBuilder + var BlobBuilder = view.BlobBuilder || view.WebKitBlobBuilder || view.MozBlobBuilder || (function(view) { + var + get_class = function(object) { + return Object.prototype.toString.call(object).match(/^\[object\s(.*)\]$/)[1]; + } + , FakeBlobBuilder = function BlobBuilder() { + this.data = []; + } + , FakeBlob = function Blob(data, type, encoding) { + this.data = data; + this.size = data.length; + this.type = type; + this.encoding = encoding; + } + , FBB_proto = FakeBlobBuilder.prototype + , FB_proto = FakeBlob.prototype + , FileReaderSync = view.FileReaderSync + , FileException = function(type) { + this.code = this[this.name = type]; + } + , file_ex_codes = ( + "NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR " + + "NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR" + ).split(" ") + , file_ex_code = file_ex_codes.length + , real_URL = view.URL || view.webkitURL || view + , real_create_object_URL = real_URL.createObjectURL + , real_revoke_object_URL = real_URL.revokeObjectURL + , URL = real_URL + , btoa = view.btoa + , atob = view.atob + + , ArrayBuffer = view.ArrayBuffer + , Uint8Array = view.Uint8Array + ; + FakeBlob.fake = FB_proto.fake = true; + while (file_ex_code--) { + FileException.prototype[file_ex_codes[file_ex_code]] = file_ex_code + 1; + } + if (!real_URL.createObjectURL) { + URL = view.URL = {}; + } + URL.createObjectURL = function(blob) { + var + type = blob.type + , data_URI_header + ; + if (type === null) { + type = "application/octet-stream"; + } + if (blob instanceof FakeBlob) { + data_URI_header = "data:" + type; + if (blob.encoding === "base64") { + return data_URI_header + ";base64," + blob.data; + } else if (blob.encoding === "URI") { + return data_URI_header + "," + decodeURIComponent(blob.data); + } if (btoa) { + return data_URI_header + ";base64," + btoa(blob.data); + } else { + return data_URI_header + "," + encodeURIComponent(blob.data); + } + } else if (real_create_object_URL) { + return real_create_object_URL.call(real_URL, blob); + } + }; + URL.revokeObjectURL = function(object_URL) { + if (object_URL.substring(0, 5) !== "data:" && real_revoke_object_URL) { + real_revoke_object_URL.call(real_URL, object_URL); + } + }; + FBB_proto.append = function(data/*, endings*/) { + var bb = this.data; + // decode data to a binary string + if (Uint8Array && (data instanceof ArrayBuffer || data instanceof Uint8Array)) { + var + str = "" + , buf = new Uint8Array(data) + , i = 0 + , buf_len = buf.length + ; + for (; i < buf_len; i++) { + str += String.fromCharCode(buf[i]); + } + bb.push(str); + } else if (get_class(data) === "Blob" || get_class(data) === "File") { + if (FileReaderSync) { + var fr = new FileReaderSync; + bb.push(fr.readAsBinaryString(data)); + } else { + // async FileReader won't work as BlobBuilder is sync + throw new FileException("NOT_READABLE_ERR"); + } + } else if (data instanceof FakeBlob) { + if (data.encoding === "base64" && atob) { + bb.push(atob(data.data)); + } else if (data.encoding === "URI") { + bb.push(decodeURIComponent(data.data)); + } else if (data.encoding === "raw") { + bb.push(data.data); + } + } else { + if (typeof data !== "string") { + data += ""; // convert unsupported types to strings + } + // decode UTF-16 to binary string + bb.push(unescape(encodeURIComponent(data))); + } + }; + FBB_proto.getBlob = function(type) { + if (!arguments.length) { + type = null; + } + return new FakeBlob(this.data.join(""), type, "raw"); + }; + FBB_proto.toString = function() { + return "[object BlobBuilder]"; + }; + FB_proto.slice = function(start, end, type) { + var args = arguments.length; + if (args < 3) { + type = null; + } + return new FakeBlob( + this.data.slice(start, args > 1 ? end : this.data.length) + , type + , this.encoding + ); + }; + FB_proto.toString = function() { + return "[object Blob]"; + }; + FB_proto.close = function() { + this.size = this.data.length = 0; + }; + return FakeBlobBuilder; + }(view)); + + view.Blob = function Blob(blobParts, options) { + var type = options ? (options.type || "") : ""; + var builder = new BlobBuilder(); + if (blobParts) { + for (var i = 0, len = blobParts.length; i < len; i++) { + builder.append(blobParts[i]); + } + } + return builder.getBlob(type); + }; +}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || this.content || this)); diff --git a/src/excel/Export2Excel.js b/src/excel/Export2Excel.js new file mode 100644 index 0000000..7970071 --- /dev/null +++ b/src/excel/Export2Excel.js @@ -0,0 +1,141 @@ +/* eslint-disable */ +require('script-loader!file-saver'); +require('script-loader!@/excel/Blob'); +require('script-loader!xlsx/dist/xlsx.core.min'); +function generateArray(table) { + var out = []; + var rows = table.querySelectorAll('tr'); + var ranges = []; + for (var R = 0; R < rows.length; ++R) { + var outRow = []; + var row = rows[R]; + var columns = row.querySelectorAll('td'); + for (var C = 0; C < columns.length; ++C) { + var cell = columns[C]; + var colspan = cell.getAttribute('colspan'); + var rowspan = cell.getAttribute('rowspan'); + var cellValue = cell.innerText; + if (cellValue !== "" && cellValue == +cellValue) cellValue = +cellValue; + + //Skip ranges + ranges.forEach(function (range) { + if (R >= range.s.r && R <= range.e.r && outRow.length >= range.s.c && outRow.length <= range.e.c) { + for (var i = 0; i <= range.e.c - range.s.c; ++i) outRow.push(null); + } + }); + + //Handle Row Span + if (rowspan || colspan) { + rowspan = rowspan || 1; + colspan = colspan || 1; + ranges.push({s: {r: R, c: outRow.length}, e: {r: R + rowspan - 1, c: outRow.length + colspan - 1}}); + } + ; + + //Handle Value + outRow.push(cellValue !== "" ? cellValue : null); + + //Handle Colspan + if (colspan) for (var k = 0; k < colspan - 1; ++k) outRow.push(null); + } + out.push(outRow); + } + return [out, ranges]; +}; + +function datenum(v, date1904) { + if (date1904) v += 1462; + var epoch = Date.parse(v); + return (epoch - new Date(Date.UTC(1899, 11, 30))) / (24 * 60 * 60 * 1000); +} + +function sheet_from_array_of_arrays(data, opts) { + var ws = {}; + var range = {s: {c: 10000000, r: 10000000}, e: {c: 0, r: 0}}; + for (var R = 0; R != data.length; ++R) { + for (var C = 0; C != data[R].length; ++C) { + if (range.s.r > R) range.s.r = R; + if (range.s.c > C) range.s.c = C; + if (range.e.r < R) range.e.r = R; + if (range.e.c < C) range.e.c = C; + var cell = {v: data[R][C]}; + if (cell.v == null) continue; + var cell_ref = XLSX.utils.encode_cell({c: C, r: R}); + + if (typeof cell.v === 'number') cell.t = 'n'; + else if (typeof cell.v === 'boolean') cell.t = 'b'; + else if (cell.v instanceof Date) { + cell.t = 'n'; + cell.z = XLSX.SSF._table[14]; + cell.v = datenum(cell.v); + } + else cell.t = 's'; + + ws[cell_ref] = cell; + } + } + if (range.s.c < 10000000) ws['!ref'] = XLSX.utils.encode_range(range); + return ws; +} + +function Workbook() { + if (!(this instanceof Workbook)) return new Workbook(); + this.SheetNames = []; + this.Sheets = {}; +} + +function s2ab(s) { + var buf = new ArrayBuffer(s.length); + var view = new Uint8Array(buf); + for (var i = 0; i != s.length; ++i) view[i] = s.charCodeAt(i) & 0xFF; + return buf; +} + +export function export_table_to_excel(id) { + var theTable = document.getElementById(id); + console.log('a') + var oo = generateArray(theTable); + var ranges = oo[1]; + + /* original data */ + var data = oo[0]; + var ws_name = "SheetJS"; + console.log(data); + + var wb = new Workbook(), ws = sheet_from_array_of_arrays(data); + + /* add ranges to worksheet */ + // ws['!cols'] = ['apple', 'banan']; + ws['!merges'] = ranges; + + /* add worksheet to workbook */ + wb.SheetNames.push(ws_name); + wb.Sheets[ws_name] = ws; + + var wbout = XLSX.write(wb, {bookType: 'xlsx', bookSST: false, type: 'binary'}); + + saveAs(new Blob([s2ab(wbout)], {type: "application/octet-stream"}), "test.xlsx") +} + +function formatJson(jsonData) { + console.log(jsonData) +} +export function export_json_to_excel(th, jsonData, defaultTitle) { + + /* original data */ + + var data = jsonData; + data.unshift(th); + var ws_name = "SheetJS"; + + var wb = new Workbook(), ws = sheet_from_array_of_arrays(data); + + + /* add worksheet to workbook */ + wb.SheetNames.push(ws_name); + wb.Sheets[ws_name] = ws; + + var wbout = XLSX.write(wb, {bookType: 'xlsx', bookSST: false, type: 'binary'}); + var title = defaultTitle || '列表' + saveAs(new Blob([s2ab(wbout)], {type: "application/octet-stream"}), title + ".xlsx") +} diff --git a/src/layout/component/aside.vue b/src/layout/component/aside.vue index fd32d3d..2678657 100644 --- a/src/layout/component/aside.vue +++ b/src/layout/component/aside.vue @@ -64,13 +64,13 @@ const setCollapseStyle = computed(() => { ? isCollapse ? 'layout-aside-pc-1' : locale.value === 'en' - ? 'layout-aside-pc-250' - : 'layout-aside-pc-220' + ? 'layout-aside-pc-230' + : 'layout-aside-pc-200' : isCollapse ? 'layout-aside-pc-64' : locale.value === 'en' - ? 'layout-aside-pc-250' - : 'layout-aside-pc-220', + ? 'layout-aside-pc-230' + : 'layout-aside-pc-200', ]; } }); diff --git a/src/layout/logo/index.vue b/src/layout/logo/index.vue index 284e39c..30b7ad0 100644 --- a/src/layout/logo/index.vue +++ b/src/layout/logo/index.vue @@ -1,5 +1,5 @@