diff --git a/apps/web-antd/src/api/property/assetManage/procurementApplication/index.ts b/apps/web-antd/src/api/property/assetManage/procurementApplication/index.ts new file mode 100644 index 00000000..e51c1110 --- /dev/null +++ b/apps/web-antd/src/api/property/assetManage/procurementApplication/index.ts @@ -0,0 +1,79 @@ +import type { + ProcurementApplicationVO, + ProcurementApplicationForm, + ProcurementApplicationQuery, +} from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** + * 查询资产申请列表 + * @param params + * @returns 资产申请列表 + */ +export function procurementApplicationList( + params?: ProcurementApplicationQuery, +) { + return requestClient.get>( + '/domain/procurementApplication/list', + { params }, + ); +} + +/** + * 导出资产申请列表 + * @param params + * @returns 资产申请列表 + */ +export function procurementApplicationExport( + params?: ProcurementApplicationQuery, +) { + return commonExport('/domain/procurementApplication/export', params ?? {}); +} + +/** + * 查询资产申请详情 + * @param id id + * @returns 资产申请详情 + */ +export function procurementApplicationInfo(id: ID) { + return requestClient.get( + `/domain/procurementApplication/${id}`, + ); +} + +/** + * 新增资产申请 + * @param data + * @returns void + */ +export function procurementApplicationAdd(data: ProcurementApplicationForm) { + return requestClient.postWithMsg( + '/domain/procurementApplication', + data, + ); +} + +/** + * 更新资产申请 + * @param data + * @returns void + */ +export function procurementApplicationUpdate(data: ProcurementApplicationForm) { + return requestClient.putWithMsg('/domain/procurementApplication', data); +} + +/** + * 删除资产申请 + * @param id id + * @returns void + */ +export function procurementApplicationRemove(id: ID | IDS) { + return requestClient.deleteWithMsg( + `/domain/procurementApplication/${id}`, + ); +} diff --git a/apps/web-antd/src/api/property/assetManage/procurementApplication/model.d.ts b/apps/web-antd/src/api/property/assetManage/procurementApplication/model.d.ts new file mode 100644 index 00000000..d2484328 --- /dev/null +++ b/apps/web-antd/src/api/property/assetManage/procurementApplication/model.d.ts @@ -0,0 +1,197 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface ProcurementApplicationVO { + /** + * + */ + id: string | number; + + /** + * 标题 + */ + title: string; + + /** + * 申请人id + */ + applicat: number; + + /** + * 申请人手机号 + */ + phone: string; + + /** + * 供应商id + */ + supplier: number; + + /** + * 资产id + */ + capitalId: string | number; + + /** + * 采购方式 + */ + buyType: string; + + /** + * 采购单价 + */ + buyUnitPrice: number; + + /** + * 采购金额 + */ + buyAmount: number; + + /** + * 状态 + */ + state: string; + + /** + * 备注 + */ + remark: string; + + /** + * 申请时间 + */ + applicationTime: string; + + /** + * 搜索值 + */ + searchValue: string; +} + +export interface ProcurementApplicationForm extends BaseEntity { + /** + * + */ + id?: string | number; + + /** + * 标题 + */ + title?: string; + + /** + * 申请人id + */ + applicat?: number; + + /** + * 申请人手机号 + */ + phone?: string; + + /** + * 供应商id + */ + supplier?: number; + + /** + * 资产id + */ + capitalId?: string | number; + + /** + * 采购方式 + */ + buyType?: string; + + /** + * 采购单价 + */ + buyUnitPrice?: number; + + /** + * 采购金额 + */ + buyAmount?: number; + + /** + * 状态 + */ + state?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 申请时间 + */ + applicationTime?: string; + + /** + * 搜索值 + */ + searchValue?: string; +} + +export interface ProcurementApplicationQuery extends PageQuery { + /** + * 标题 + */ + title?: string; + + /** + * 申请人id + */ + applicat?: number; + + /** + * 申请人手机号 + */ + phone?: string; + + /** + * 供应商id + */ + supplier?: number; + + /** + * 资产id + */ + capitalId?: string | number; + + /** + * 采购方式 + */ + buyType?: string; + + /** + * 采购单价 + */ + buyUnitPrice?: number; + + /** + * 采购金额 + */ + buyAmount?: number; + + /** + * 状态 + */ + state?: string; + + /** + * 申请时间 + */ + applicationTime?: string; + + /** + * 搜索值 + */ + searchValue?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/personalCenter/leaveApplication/index.ts b/apps/web-antd/src/api/property/personalCenter/leaveApplication/index.ts new file mode 100644 index 00000000..67902163 --- /dev/null +++ b/apps/web-antd/src/api/property/personalCenter/leaveApplication/index.ts @@ -0,0 +1,61 @@ +import type { LeaveApplicationVO, LeaveApplicationForm, LeaveApplicationQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询请假申请列表 +* @param params +* @returns 请假申请列表 +*/ +export function leaveApplicationList(params?: LeaveApplicationQuery) { + return requestClient.get>('/property/leaveApplication/list', { params }); +} + +/** + * 导出请假申请列表 + * @param params + * @returns 请假申请列表 + */ +export function leaveApplicationExport(params?: LeaveApplicationQuery) { + return commonExport('/property/leaveApplication/export', params ?? {}); +} + +/** + * 查询请假申请详情 + * @param id id + * @returns 请假申请详情 + */ +export function leaveApplicationInfo(id: ID) { + return requestClient.get(`/property/leaveApplication/${id}`); +} + +/** + * 新增请假申请 + * @param data + * @returns void + */ +export function leaveApplicationAdd(data: LeaveApplicationForm) { + return requestClient.postWithMsg('/property/leaveApplication', data); +} + +/** + * 更新请假申请 + * @param data + * @returns void + */ +export function leaveApplicationUpdate(data: LeaveApplicationForm) { + return requestClient.putWithMsg('/property/leaveApplication', data); +} + +/** + * 删除请假申请 + * @param id id + * @returns void + */ +export function leaveApplicationRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/leaveApplication/${id}`); +} diff --git a/apps/web-antd/src/api/property/personalCenter/leaveApplication/model.d.ts b/apps/web-antd/src/api/property/personalCenter/leaveApplication/model.d.ts new file mode 100644 index 00000000..4d0d8ab3 --- /dev/null +++ b/apps/web-antd/src/api/property/personalCenter/leaveApplication/model.d.ts @@ -0,0 +1,189 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface LeaveApplicationVO { + /** + * + */ + id: string | number; + + /** + * 用户ID,关联用户表 + */ + userId: string | number; + + /** + * 申请人姓名 + */ + username: string; + + /** + * 部门ID,关联部门表 + */ + departmentId: string | number; + + /** + * 部门名称 + */ + departmentName: string; + + /** + * 请假类型 + */ + leaveType: number; + + /** + * 开始时间 + */ + startTime: string; + + /** + * 结束时间 + */ + endTime: string; + + /** + * 合计时间,如3天5个小时 + */ + totalDuration: string; + + /** + * 请假事由 + */ + reason: string; + + /** + * 申请状态(1:'草稿',2:'待审批',3:'已批准',4:'已拒绝':5:'已取消') + */ + status: number; + + /** + * 搜索值 + */ + searchValue: string; + +} + +export interface LeaveApplicationForm extends BaseEntity { + /** + * + */ + id?: string | number; + + /** + * 用户ID,关联用户表 + */ + userId?: string | number; + + /** + * 申请人姓名 + */ + username?: string; + + /** + * 部门ID,关联部门表 + */ + departmentId?: string | number; + + /** + * 部门名称 + */ + departmentName?: string; + + /** + * 请假类型 + */ + leaveType?: number; + + /** + * 开始时间 + */ + startTime?: string; + + /** + * 结束时间 + */ + endTime?: string; + + /** + * 合计时间,如3天5个小时 + */ + totalDuration?: string; + + /** + * 请假事由 + */ + reason?: string; + + /** + * 申请状态(1:'草稿',2:'待审批',3:'已批准',4:'已拒绝':5:'已取消') + */ + status?: number; + + /** + * 搜索值 + */ + searchValue?: string; + +} + +export interface LeaveApplicationQuery extends PageQuery { + /** + * 用户ID,关联用户表 + */ + userId?: string | number; + + /** + * 申请人姓名 + */ + username?: string; + + /** + * 部门ID,关联部门表 + */ + departmentId?: string | number; + + /** + * 部门名称 + */ + departmentName?: string; + + /** + * 请假类型 + */ + leaveType?: number; + + /** + * 开始时间 + */ + startTime?: string; + + /** + * 结束时间 + */ + endTime?: string; + + /** + * 合计时间,如3天5个小时 + */ + totalDuration?: string; + + /** + * 请假事由 + */ + reason?: string; + + /** + * 申请状态(1:'草稿',2:'待审批',3:'已批准',4:'已拒绝':5:'已取消') + */ + status?: number; + + /** + * 搜索值 + */ + searchValue?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/personalCenter/workflowDefinition/index.ts b/apps/web-antd/src/api/property/personalCenter/workflowDefinition/index.ts new file mode 100644 index 00000000..10432c94 --- /dev/null +++ b/apps/web-antd/src/api/property/personalCenter/workflowDefinition/index.ts @@ -0,0 +1,61 @@ +import type { WorkflowDefinitionVO, WorkflowDefinitionForm, WorkflowDefinitionQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询流程定义列表 +* @param params +* @returns 流程定义列表 +*/ +export function workflowDefinitionList(params?: WorkflowDefinitionQuery) { + return requestClient.get>('/property/workflowDefinition/list', { params }); +} + +/** + * 导出流程定义列表 + * @param params + * @returns 流程定义列表 + */ +export function workflowDefinitionExport(params?: WorkflowDefinitionQuery) { + return commonExport('/property/workflowDefinition/export', params ?? {}); +} + +/** + * 查询流程定义详情 + * @param id id + * @returns 流程定义详情 + */ +export function workflowDefinitionInfo(id: ID) { + return requestClient.get(`/property/workflowDefinition/${id}`); +} + +/** + * 新增流程定义 + * @param data + * @returns void + */ +export function workflowDefinitionAdd(data: WorkflowDefinitionForm) { + return requestClient.postWithMsg('/property/workflowDefinition', data); +} + +/** + * 更新流程定义 + * @param data + * @returns void + */ +export function workflowDefinitionUpdate(data: WorkflowDefinitionForm) { + return requestClient.putWithMsg('/property/workflowDefinition', data); +} + +/** + * 删除流程定义 + * @param id id + * @returns void + */ +export function workflowDefinitionRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/workflowDefinition/${id}`); +} diff --git a/apps/web-antd/src/api/property/personalCenter/workflowDefinition/model.d.ts b/apps/web-antd/src/api/property/personalCenter/workflowDefinition/model.d.ts new file mode 100644 index 00000000..09b13416 --- /dev/null +++ b/apps/web-antd/src/api/property/personalCenter/workflowDefinition/model.d.ts @@ -0,0 +1,129 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface WorkflowDefinitionVO { + /** + * 主键id + */ + id: string | number; + + /** + * 流程编号 + */ + code: string; + + /** + * 流程名称 + */ + name: string; + + /** + * 流程状态(0:审批不通过,1:审批通过,2:审批中,3已取消) + */ + status: number; + + /** + * 当前审批人 + */ + currentApprover: string; + + /** + * 审批建议 + */ + workflowSuggestion: string; + + /** + * 结束时间 + */ + endTime: string; + + /** + * 搜索值 + */ + searchValue: string; + +} + +export interface WorkflowDefinitionForm extends BaseEntity { + /** + * 主键id + */ + id?: string | number; + + /** + * 流程编号 + */ + code?: string; + + /** + * 流程名称 + */ + name?: string; + + /** + * 流程状态(0:审批不通过,1:审批通过,2:审批中,3已取消) + */ + status?: number; + + /** + * 当前审批人 + */ + currentApprover?: string; + + /** + * 审批建议 + */ + workflowSuggestion?: string; + + /** + * 结束时间 + */ + endTime?: string; + + /** + * 搜索值 + */ + searchValue?: string; + +} + +export interface WorkflowDefinitionQuery extends PageQuery { + /** + * 流程编号 + */ + code?: string; + + /** + * 流程名称 + */ + name?: string; + + /** + * 流程状态(0:审批不通过,1:审批通过,2:审批中,3已取消) + */ + status?: number; + + /** + * 当前审批人 + */ + currentApprover?: string; + + /** + * 审批建议 + */ + workflowSuggestion?: string; + + /** + * 结束时间 + */ + endTime?: string; + + /** + * 搜索值 + */ + searchValue?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/views/property/assetManage/procurementApplication/data.ts b/apps/web-antd/src/views/property/assetManage/procurementApplication/data.ts new file mode 100644 index 00000000..ca200787 --- /dev/null +++ b/apps/web-antd/src/views/property/assetManage/procurementApplication/data.ts @@ -0,0 +1,232 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + +import { getDictOptions } from '#/utils/dict'; +import { renderDict } from '#/utils/render'; + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'title', + label: '标题', + }, + { + component: 'Input', + fieldName: 'applicat', + label: '申请人id', + }, + { + component: 'Input', + fieldName: 'phone', + label: '申请人手机号', + }, + { + component: 'Input', + fieldName: 'supplier', + label: '供应商id', + }, + { + component: 'Input', + fieldName: 'capitalId', + label: '资产id', + }, + { + component: 'Select', + componentProps: {}, + fieldName: 'buyType', + label: '采购方式', + }, + { + component: 'Input', + fieldName: 'buyUnitPrice', + label: '采购单价', + }, + { + component: 'Input', + fieldName: 'buyAmount', + label: '采购金额', + }, + { + component: 'Select', + componentProps: { + // 可选从DictEnum中获取 DictEnum.WY_ZCSQSHZT 便于维护 + options: getDictOptions('wy_zcsqshzt'), + }, + fieldName: 'state', + label: '状态', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'applicationTime', + label: '申请时间', + }, + { + component: 'Input', + fieldName: 'searchValue', + label: '搜索值', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '', + field: 'id', + }, + { + title: '标题', + field: 'title', + }, + { + title: '申请人id', + field: 'applicat', + }, + { + title: '申请人手机号', + field: 'phone', + }, + { + title: '供应商id', + field: 'supplier', + }, + { + title: '资产id', + field: 'capitalId', + }, + { + title: '采购方式', + field: 'buyType', + }, + { + title: '采购单价', + field: 'buyUnitPrice', + }, + { + title: '采购金额', + field: 'buyAmount', + }, + { + title: '状态', + field: 'state', + slots: { + default: ({ row }) => { + // 可选从DictEnum中获取 DictEnum.WY_ZCSQSHZT 便于维护 + return renderDict(row.state, 'wy_zcsqshzt'); + }, + }, + }, + { + title: '备注', + field: 'remark', + }, + { + title: '申请时间', + field: 'applicationTime', + }, + { + title: '搜索值', + field: 'searchValue', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '标题', + fieldName: 'title', + component: 'Input', + rules: 'required', + }, + { + label: '申请人id', + fieldName: 'applicat', + component: 'Input', + rules: 'required', + }, + { + label: '申请人手机号', + fieldName: 'phone', + component: 'Input', + rules: 'required', + }, + { + label: '供应商id', + fieldName: 'supplier', + component: 'Input', + rules: 'required', + }, + { + label: '资产id', + fieldName: 'capitalId', + component: 'Input', + rules: 'required', + }, + { + label: '采购方式', + fieldName: 'buyType', + component: 'Select', + componentProps: {}, + rules: 'selectRequired', + }, + { + label: '采购单价', + fieldName: 'buyUnitPrice', + component: 'Input', + }, + { + label: '采购金额', + fieldName: 'buyAmount', + component: 'Input', + }, + { + label: '状态', + fieldName: 'state', + component: 'Select', + componentProps: { + // 可选从DictEnum中获取 DictEnum.WY_ZCSQSHZT 便于维护 + options: getDictOptions('wy_zcsqshzt'), + }, + }, + { + label: '备注', + fieldName: 'remark', + component: 'Input', + }, + { + label: '申请时间', + fieldName: 'applicationTime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, + { + label: '搜索值', + fieldName: 'searchValue', + component: 'Input', + }, +]; diff --git a/apps/web-antd/src/views/property/assetManage/procurementApplication/index.vue b/apps/web-antd/src/views/property/assetManage/procurementApplication/index.vue new file mode 100644 index 00000000..7a25d660 --- /dev/null +++ b/apps/web-antd/src/views/property/assetManage/procurementApplication/index.vue @@ -0,0 +1,188 @@ + + + diff --git a/apps/web-antd/src/views/property/assetManage/procurementApplication/procurementApplication-modal.vue b/apps/web-antd/src/views/property/assetManage/procurementApplication/procurementApplication-modal.vue new file mode 100644 index 00000000..ef0877e0 --- /dev/null +++ b/apps/web-antd/src/views/property/assetManage/procurementApplication/procurementApplication-modal.vue @@ -0,0 +1,106 @@ + + + diff --git a/apps/web-antd/src/views/property/personalCenter/leaveApplication/data.ts b/apps/web-antd/src/views/property/personalCenter/leaveApplication/data.ts new file mode 100644 index 00000000..5c6286bf --- /dev/null +++ b/apps/web-antd/src/views/property/personalCenter/leaveApplication/data.ts @@ -0,0 +1,229 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + +import { getDictOptions } from '#/utils/dict'; +import { renderDict } from '#/utils/render'; + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'userId', + label: '用户ID,关联用户表', + }, + { + component: 'Input', + fieldName: 'username', + label: '申请人姓名', + }, + { + component: 'Input', + fieldName: 'departmentId', + label: '部门ID,关联部门表', + }, + { + component: 'Input', + fieldName: 'departmentName', + label: '部门名称', + }, + { + component: 'Select', + componentProps: { + }, + fieldName: 'leaveType', + label: '请假类型', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'startTime', + label: '开始时间', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'endTime', + label: '结束时间', + }, + { + component: 'Input', + fieldName: 'totalDuration', + label: '合计时间,如3天5个小时', + }, + { + component: 'Textarea', + fieldName: 'reason', + label: '请假事由', + }, + { + component: 'Select', + componentProps: { + // 可选从DictEnum中获取 DictEnum.WY_SQZT 便于维护 + options: getDictOptions('wy_sqzt'), + }, + fieldName: 'status', + label: '申请状态', + }, + { + component: 'Input', + fieldName: 'searchValue', + label: '搜索值', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '', + field: 'id', + }, + { + title: '用户ID,关联用户表', + field: 'userId', + }, + { + title: '申请人姓名', + field: 'username', + }, + { + title: '部门ID,关联部门表', + field: 'departmentId', + }, + { + title: '部门名称', + field: 'departmentName', + }, + { + title: '请假类型', + field: 'leaveType', + }, + { + title: '开始时间', + field: 'startTime', + }, + { + title: '结束时间', + field: 'endTime', + }, + { + title: '合计时间,如3天5个小时', + field: 'totalDuration', + }, + { + title: '请假事由', + field: 'reason', + }, + { + title: '申请状态', + field: 'status', + slots: { + default: ({ row }) => { + // 可选从DictEnum中获取 DictEnum.WY_SQZT 便于维护 + return renderDict(row.status, 'wy_sqzt'); + }, + }, + }, + { + title: '搜索值', + field: 'searchValue', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '用户ID,关联用户表', + fieldName: 'userId', + component: 'Input', + }, + { + label: '申请人姓名', + fieldName: 'username', + component: 'Input', + }, + { + label: '部门ID,关联部门表', + fieldName: 'departmentId', + component: 'Input', + }, + { + label: '部门名称', + fieldName: 'departmentName', + component: 'Input', + }, + { + label: '请假类型', + fieldName: 'leaveType', + component: 'Select', + componentProps: { + }, + }, + { + label: '开始时间', + fieldName: 'startTime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, + { + label: '结束时间', + fieldName: 'endTime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, + { + label: '合计时间,如3天5个小时', + fieldName: 'totalDuration', + component: 'Input', + }, + { + label: '请假事由', + fieldName: 'reason', + component: 'Textarea', + }, + { + label: '申请状态', + fieldName: 'status', + component: 'Select', + componentProps: { + // 可选从DictEnum中获取 DictEnum.WY_SQZT 便于维护 + options: getDictOptions('wy_sqzt'), + }, + }, + { + label: '搜索值', + fieldName: 'searchValue', + component: 'Input', + }, +]; diff --git a/apps/web-antd/src/views/property/personalCenter/leaveApplication/index.vue b/apps/web-antd/src/views/property/personalCenter/leaveApplication/index.vue new file mode 100644 index 00000000..3c24b6a0 --- /dev/null +++ b/apps/web-antd/src/views/property/personalCenter/leaveApplication/index.vue @@ -0,0 +1,188 @@ + + + diff --git a/apps/web-antd/src/views/property/personalCenter/leaveApplication/leaveApplication-modal.vue b/apps/web-antd/src/views/property/personalCenter/leaveApplication/leaveApplication-modal.vue new file mode 100644 index 00000000..c052f188 --- /dev/null +++ b/apps/web-antd/src/views/property/personalCenter/leaveApplication/leaveApplication-modal.vue @@ -0,0 +1,106 @@ + + + diff --git a/apps/web-antd/src/views/property/personalCenter/myMessage/index.vue b/apps/web-antd/src/views/property/personalCenter/myMessage/index.vue new file mode 100644 index 00000000..bc4ea083 --- /dev/null +++ b/apps/web-antd/src/views/property/personalCenter/myMessage/index.vue @@ -0,0 +1 @@ + diff --git a/apps/web-antd/src/views/property/personalCenter/process/index.vue b/apps/web-antd/src/views/property/personalCenter/process/index.vue new file mode 100644 index 00000000..56579af0 --- /dev/null +++ b/apps/web-antd/src/views/property/personalCenter/process/index.vue @@ -0,0 +1 @@ + diff --git a/apps/web-antd/src/views/property/personalCenter/toDoProcess/index.vue b/apps/web-antd/src/views/property/personalCenter/toDoProcess/index.vue new file mode 100644 index 00000000..93b64cfd --- /dev/null +++ b/apps/web-antd/src/views/property/personalCenter/toDoProcess/index.vue @@ -0,0 +1 @@ + diff --git a/apps/web-antd/src/views/property/personalCenter/workflowDefinition/data.ts b/apps/web-antd/src/views/property/personalCenter/workflowDefinition/data.ts new file mode 100644 index 00000000..8f5b2573 --- /dev/null +++ b/apps/web-antd/src/views/property/personalCenter/workflowDefinition/data.ts @@ -0,0 +1,159 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + +import { getDictOptions } from '#/utils/dict'; +import { renderDict } from '#/utils/render'; + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'code', + label: '流程编号', + }, + { + component: 'Input', + fieldName: 'name', + label: '流程名称', + }, + { + component: 'Select', + componentProps: { + // 可选从DictEnum中获取 DictEnum.WY_LCZT 便于维护 + options: getDictOptions('wy_lczt'), + }, + fieldName: 'status', + label: '流程状态(0:审批不通过,1:审批通过,2:审批中,3已取消)', + }, + { + component: 'Input', + fieldName: 'currentApprover', + label: '当前审批人', + }, + { + component: 'Input', + fieldName: 'workflowSuggestion', + label: '审批建议', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'endTime', + label: '结束时间', + }, + { + component: 'Input', + fieldName: 'searchValue', + label: '搜索值', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键id', + field: 'id', + }, + { + title: '流程编号', + field: 'code', + }, + { + title: '流程名称', + field: 'name', + }, + { + title: '流程状态(0:审批不通过,1:审批通过,2:审批中,3已取消)', + field: 'status', + slots: { + default: ({ row }) => { + // 可选从DictEnum中获取 DictEnum.WY_LCZT 便于维护 + return renderDict(row.status, 'wy_lczt'); + }, + }, + }, + { + title: '当前审批人', + field: 'currentApprover', + }, + { + title: '审批建议', + field: 'workflowSuggestion', + }, + { + title: '结束时间', + field: 'endTime', + }, + { + title: '搜索值', + field: 'searchValue', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键id', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '流程编号', + fieldName: 'code', + component: 'Input', + }, + { + label: '流程名称', + fieldName: 'name', + component: 'Input', + }, + { + label: '流程状态(0:审批不通过,1:审批通过,2:审批中,3已取消)', + fieldName: 'status', + component: 'Select', + componentProps: { + // 可选从DictEnum中获取 DictEnum.WY_LCZT 便于维护 + options: getDictOptions('wy_lczt'), + }, + }, + { + label: '当前审批人', + fieldName: 'currentApprover', + component: 'Input', + }, + { + label: '审批建议', + fieldName: 'workflowSuggestion', + component: 'Input', + }, + { + label: '结束时间', + fieldName: 'endTime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, + { + label: '搜索值', + fieldName: 'searchValue', + component: 'Input', + }, +]; diff --git a/apps/web-antd/src/views/property/personalCenter/workflowDefinition/index.vue b/apps/web-antd/src/views/property/personalCenter/workflowDefinition/index.vue new file mode 100644 index 00000000..c4659c39 --- /dev/null +++ b/apps/web-antd/src/views/property/personalCenter/workflowDefinition/index.vue @@ -0,0 +1,188 @@ + + + diff --git a/apps/web-antd/src/views/property/personalCenter/workflowDefinition/workflowDefinition-modal.vue b/apps/web-antd/src/views/property/personalCenter/workflowDefinition/workflowDefinition-modal.vue new file mode 100644 index 00000000..f261e64f --- /dev/null +++ b/apps/web-antd/src/views/property/personalCenter/workflowDefinition/workflowDefinition-modal.vue @@ -0,0 +1,106 @@ + + +