ljlong_2630 9 months ago
parent
commit
d04bb786dc
  1. 2
      Dockerfile
  2. 2
      src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts
  3. 2
      src/views/eam/basic/inspection/inspection.data.ts
  4. 5
      src/views/eam/basic/supplier/supplier.data.ts
  5. 2
      src/views/eam/item/itemAccounts/itemAccounts.data.ts
  6. 31
      src/views/eam/item/itemOrderMain/itemOrderMain.data.ts

2
Dockerfile

@ -1,5 +1,5 @@
# 设置基础镜像
FROM nginx:WIN-1.25.3
FROM win-nginx
WORKDIR /opt/eam
COPY nginx.conf /usr/local/nginx/conf/nginx.conf

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

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

5
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<CrudSchema[]>([

2
src/views/eam/item/itemAccounts/itemAccounts.data.ts

@ -26,7 +26,7 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 110
},
isSearch: true,
isSearch: false,
},
{

31
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<CrudSchema[]>([
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',

Loading…
Cancel
Save