From a5e21b83a624a80d3404ebee61e48ed63e616db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com> Date: Thu, 7 Mar 2024 16:22:59 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deviceMaintenance.data.ts | 2 +- .../eam/basic/inspection/inspection.data.ts | 2 +- src/views/eam/basic/supplier/supplier.data.ts | 5 +++ .../item/itemOrderMain/itemOrderMain.data.ts | 31 +------------------ 4 files changed, 8 insertions(+), 32 deletions(-) diff --git a/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts b/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts index b3498da..502b09a 100644 --- a/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts +++ b/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts @@ -129,7 +129,7 @@ export const DeviceMaintenance = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, table: { - width: 150, + width: 170, }, form: { component: 'InputNumber', diff --git a/src/views/eam/basic/inspection/inspection.data.ts b/src/views/eam/basic/inspection/inspection.data.ts index 395768e..34b7292 100644 --- a/src/views/eam/basic/inspection/inspection.data.ts +++ b/src/views/eam/basic/inspection/inspection.data.ts @@ -57,7 +57,7 @@ export const DeviceMoldItems = useCrudSchemas(reactive([ } }, { - label: '设备/模具编号', + label: '设备编号', field: 'deviceNumber', sort: 'custom', isSearch: false, diff --git a/src/views/eam/basic/supplier/supplier.data.ts b/src/views/eam/basic/supplier/supplier.data.ts index 94a12e6..cdce36f 100644 --- a/src/views/eam/basic/supplier/supplier.data.ts +++ b/src/views/eam/basic/supplier/supplier.data.ts @@ -1,4 +1,5 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import {validateHanset,validateFax,validatePostCode,validateYS} from '@/utils/validator' // 表单校验 export const SupplierRules = reactive({ @@ -6,6 +7,10 @@ export const SupplierRules = reactive({ { required: true, message: '请输入供应商名称', trigger: 'blur' }, { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], + phone: [ + { max: 11, message: '不得超过11个字符', trigger: 'blur' }, + { validator:validateHanset, message: '请输入正确的手机号', trigger: 'blur'} + ], }) export const Supplier = useCrudSchemas(reactive([ diff --git a/src/views/eam/item/itemOrderMain/itemOrderMain.data.ts b/src/views/eam/item/itemOrderMain/itemOrderMain.data.ts index 3db0261..fa6c327 100644 --- a/src/views/eam/item/itemOrderMain/itemOrderMain.data.ts +++ b/src/views/eam/item/itemOrderMain/itemOrderMain.data.ts @@ -1,5 +1,5 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter } from '@/utils/formatTime' +import { dateFormatter2 } from '@/utils/formatTime' import { Item } from '@/views/eam/basic/item/item.data' import * as ItemApi from '@/api/eam/basic/item' import { validateHanset, validateEmail } from '@/utils/validator' @@ -20,35 +20,6 @@ export const ItemOrderMain = useCrudSchemas(reactive([ fixed: 'left' }, }, - // { - // label: '日期', - // field: 'date', - // sort: 'custom', - // formatter: dateFormatter, - // form: { - // component: 'DatePicker', - // componentProps: { - // type: 'datetime', - // valueFormat: 'x' - // } - // }, - // }, - { - label: '日期', - field: 'date', - sort: 'custom', - formatter: dateFormatter, - form: { - component: 'DatePicker', - componentProps: { - type: 'date', - valueFormat: 'x' - } - }, - detail: { - dateFormat: 'YYYY-MM-DD' - } - }, { label: '电话', field: 'phone',