Browse Source

BUG修改

master
parent
commit
a5e21b83a6
  1. 2
      src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts
  2. 2
      src/views/eam/basic/inspection/inspection.data.ts
  3. 5
      src/views/eam/basic/supplier/supplier.data.ts
  4. 31
      src/views/eam/item/itemOrderMain/itemOrderMain.data.ts

2
src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts

@ -129,7 +129,7 @@ export const DeviceMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
table: { table: {
width: 150, width: 170,
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',

2
src/views/eam/basic/inspection/inspection.data.ts

@ -57,7 +57,7 @@ export const DeviceMoldItems = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '设备/模具编号', label: '设备编号',
field: 'deviceNumber', field: 'deviceNumber',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,

5
src/views/eam/basic/supplier/supplier.data.ts

@ -1,4 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import {validateHanset,validateFax,validatePostCode,validateYS} from '@/utils/validator'
// 表单校验 // 表单校验
export const SupplierRules = reactive({ export const SupplierRules = reactive({
@ -6,6 +7,10 @@ export const SupplierRules = reactive({
{ required: true, message: '请输入供应商名称', trigger: 'blur' }, { required: true, message: '请输入供应商名称', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', 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<CrudSchema[]>([ export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([

31
src/views/eam/item/itemOrderMain/itemOrderMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' 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 { Item } from '@/views/eam/basic/item/item.data'
import * as ItemApi from '@/api/eam/basic/item' import * as ItemApi from '@/api/eam/basic/item'
import { validateHanset, validateEmail } from '@/utils/validator' import { validateHanset, validateEmail } from '@/utils/validator'
@ -20,35 +20,6 @@ export const ItemOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'left' 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: '电话', label: '电话',
field: 'phone', field: 'phone',

Loading…
Cancel
Save