From 2332d6395047aa479e06ecb2f732e722cb3d805e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BA=86=E6=BA=90?= Date: Wed, 16 Apr 2025 17:46:27 +0800 Subject: [PATCH] =?UTF-8?q?[SBBJ-911]=E5=89=8D=E7=AB=AF=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basic/accountPeriod/accountPeriod.data.ts | 42 ++---- src/views/eam/basic/accountPeriod/index.vue | 134 ++++++++++++------ 2 files changed, 105 insertions(+), 71 deletions(-) diff --git a/src/views/eam/basic/accountPeriod/accountPeriod.data.ts b/src/views/eam/basic/accountPeriod/accountPeriod.data.ts index 6e414e4..0e25193 100644 --- a/src/views/eam/basic/accountPeriod/accountPeriod.data.ts +++ b/src/views/eam/basic/accountPeriod/accountPeriod.data.ts @@ -2,11 +2,11 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' // 表单校验 export const AccountPeriodRules = reactive({ - year: [required], - month: [required], - day: [required], - hour: [required], - minute: [required], + year: [required,], + month: [required,], + day: [required,], + hour: [required,], + minute: [required,], }) export const AccountPeriod = useCrudSchemas(reactive([ @@ -17,61 +17,41 @@ export const AccountPeriod = useCrudSchemas(reactive([ isTable: false, isForm: false, }, - { - label: '备注', - field: 'notes', - sort: 'custom', - isSearch: true, - }, { label: '账期年', field: 'year', sort: 'custom', isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, }, { label: '账期月', field: 'month', sort: 'custom', isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, }, { label: '账期日', field: 'day', sort: 'custom', isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, }, { label: '账期时', field: 'hour', sort: 'custom', isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, }, { label: '账期分', field: 'minute', sort: 'custom', isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, + }, + { + label: '备注', + field: 'notes', + sort: 'custom', + isSearch: true, }, { label: '操作', diff --git a/src/views/eam/basic/accountPeriod/index.vue b/src/views/eam/basic/accountPeriod/index.vue index 9b2c730..76df4b5 100644 --- a/src/views/eam/basic/accountPeriod/index.vue +++ b/src/views/eam/basic/accountPeriod/index.vue @@ -1,18 +1,22 @@