Browse Source

EAM所有页面和导出加创建者和创建时间

master
叶佳兴 3 weeks ago
parent
commit
72b927b66c
  1. 21
      src/views/eam/basic/accountPeriod/accountPeriod.data.ts
  2. 15
      src/views/eam/basic/basciYearEquipment/basciYearEquipment.data.ts
  3. 13
      src/views/eam/basic/basicMonthEquipment/basicMonthEquipment.data.ts
  4. 24
      src/views/eam/basic/classType/classType.data.ts
  5. 21
      src/views/eam/basic/costCenterMapping/costCenterMapping.data.ts
  6. 32
      src/views/eam/basic/deviceInspectionConfig/deviceInspectionConfig.data.ts
  7. 13
      src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts
  8. 15
      src/views/eam/basic/deviceMaintenanceConfig/moldMaintenanceConfig.data.ts
  9. 26
      src/views/eam/basic/inspection/inspection.data.ts
  10. 6
      src/views/eam/basic/item/item.data.ts
  11. 24
      src/views/eam/basic/location/location.data.ts
  12. 21
      src/views/eam/basic/locationArea/locationArea.data.ts
  13. 13
      src/views/eam/basic/moldInspection/moldInspection.data.ts
  14. 14
      src/views/eam/basic/moldInspectionConfig/moldInspectionConfig.data.ts
  15. 12
      src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts
  16. 15
      src/views/eam/basic/moldMaintenanceConfig/moldMaintenanceConfig.data.ts
  17. 23
      src/views/eam/basic/supplier/supplier.data.ts
  18. 21
      src/views/eam/device/deviceAccounts/deviceAccounts.data.ts
  19. 20
      src/views/eam/device/deviceMaintainPlan/deviceMaintainPlan.data.ts
  20. 20
      src/views/eam/device/deviceRepair/deviceRepair.data.ts
  21. 20
      src/views/eam/device/deviceSpotInspectionRecordMain/deviceSpotInspectionRecordMain.data.ts
  22. 20
      src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts
  23. 20
      src/views/eam/device/devicemaintainjob/deviceMaintainOrderMain.data.ts
  24. 20
      src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts
  25. 25
      src/views/eam/device/problemSharingPlatform/problemSharingPlatform.data.ts
  26. 202
      src/views/eam/item/itemOrderMain/itemOrderMain.data.ts

21
src/views/eam/basic/accountPeriod/accountPeriod.data.ts

@ -1,4 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const AccountPeriodRules = reactive({ export const AccountPeriodRules = reactive({
@ -50,6 +51,26 @@ export const AccountPeriod = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

15
src/views/eam/basic/basciYearEquipment/basciYearEquipment.data.ts

@ -92,13 +92,26 @@ export const BasciYearEquipment = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true disabled:true
} }
} }
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
}, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isForm: false isForm: false,
table: {
width: 170
}
}, },
{ {
label: '操作', label: '操作',

13
src/views/eam/basic/basicMonthEquipment/basicMonthEquipment.data.ts

@ -62,6 +62,16 @@ export const BasicMonthEquipment = useCrudSchemas(reactive<CrudSchema[]>([
label: '实际值', label: '实际值',
field: 'actual', field: 'actual',
sort: 'custom', sort: 'custom',
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
}, },
{ {
label: '创建时间', label: '创建时间',
@ -69,6 +79,9 @@ export const BasicMonthEquipment = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isForm: false, isForm: false,
table: {
width: 170
}
}, },
{ {
label: '操作', label: '操作',

24
src/views/eam/basic/classType/classType.data.ts

@ -193,6 +193,16 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false, isDetail: false,
isTable: false, isTable: false,
isTableForm: false, isTableForm: false,
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
}, },
{ {
label: '创建时间', label: '创建时间',
@ -200,18 +210,10 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isForm: false, isForm: false,
table: {
width: 170
}
}, },
// {
// label: '地点ID',
// field: 'siteId',
// sort: 'custom',
// },
// {
// label: '是否可用',
// field: 'available',
// sort: 'custom',
// },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

21
src/views/eam/basic/costCenterMapping/costCenterMapping.data.ts

@ -76,7 +76,26 @@ export const CostCenterMapping = useCrudSchemas(reactive<CrudSchema[]>([
component: 'Input' component: 'Input'
} }
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

32
src/views/eam/basic/deviceInspectionConfig/deviceInspectionConfig.data.ts

@ -94,14 +94,25 @@ export const DeviceInspection = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.DEVICE_MOLD_TYPE, dictType: DICT_TYPE.DEVICE_MOLD_TYPE,
dictClass: 'string', dictClass: 'string',
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isForm: false, isForm: false,
detail: { table: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' width: 170
} }
}, },
{ {
@ -269,19 +280,26 @@ export const DeviceInspectionTwo = useCrudSchemas(reactive<CrudSchema[]>([
}] }]
} }
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isForm: false, isForm: false,
isTableForm: false,
table: { table: {
width: 170 width: 170
}, }
tableForm: {
disabled:true,
},
}, },
{ {
label: '操作', label: '操作',

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

@ -262,6 +262,17 @@ export const DeviceMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// } // }
// }, // },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -270,7 +281,7 @@ export const DeviceMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
table: { table: {
width: 170 width: 170
}, }
}, },
{ {
label: '操作', label: '操作',

15
src/views/eam/basic/deviceMaintenanceConfig/moldMaintenanceConfig.data.ts

@ -93,14 +93,25 @@ export const MoldMaintenanceConfig = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.DEVICE_MOLD_TYPE, dictType: DICT_TYPE.DEVICE_MOLD_TYPE,
dictClass: 'string', dictClass: 'string',
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isForm: false, isForm: false,
detail: { table: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' width: 170
} }
}, },
{ {

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

@ -235,6 +235,17 @@ export const DeviceMoldItems = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// } // }
// }, // },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -243,7 +254,7 @@ export const DeviceMoldItems = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
table: { table: {
width: 170 width: 170
}, }
}, },
{ {
label: '操作', label: '操作',
@ -332,6 +343,17 @@ export const DeviceMoldItemsTwo = useCrudSchemas(reactive<CrudSchema[]>([
value: false, value: false,
} }
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -340,7 +362,7 @@ export const DeviceMoldItemsTwo = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
table: { table: {
width: 170 width: 170
}, }
}, },
{ {
label: '操作', label: '操作',

6
src/views/eam/basic/item/item.data.ts

@ -306,7 +306,11 @@ export const Item = useCrudSchemas(
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
isSearch: false isSearch: false,
isForm: false,
table: {
width: 150
}
}, },
{ {
label: '创建时间', label: '创建时间',

24
src/views/eam/basic/location/location.data.ts

@ -144,22 +144,32 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// }, // },
{ {
label: '创建时间', label: '描述',
field: 'createTime', field: 'description',
sort: 'custom', sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: { table: {
width: 170 width: 150
}, },
}, },
{ {
label: '描述', label: '创建者',
field: 'description', field: 'creator',
sort: 'custom', sort: 'custom',
isSearch: false,
isForm: false,
table: { table: {
width: 150 width: 150
}
}, },
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
}, },
{ {
label: '操作', label: '操作',

21
src/views/eam/basic/locationArea/locationArea.data.ts

@ -87,7 +87,26 @@ export const LocationArea = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

13
src/views/eam/basic/moldInspection/moldInspection.data.ts

@ -181,6 +181,17 @@ export const DeviceMoldItems = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// } // }
// }, // },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -189,7 +200,7 @@ export const DeviceMoldItems = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
table: { table: {
width: 170 width: 170
}, }
}, },
{ {
label: '操作', label: '操作',

14
src/views/eam/basic/moldInspectionConfig/moldInspectionConfig.data.ts

@ -94,6 +94,16 @@ export const DeviceInspection = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
dictType: DICT_TYPE.DEVICE_MOLD_TYPE, dictType: DICT_TYPE.DEVICE_MOLD_TYPE,
dictClass: 'string', dictClass: 'string',
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
}, },
{ {
label: '创建时间', label: '创建时间',
@ -101,8 +111,8 @@ export const DeviceInspection = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isForm: false, isForm: false,
detail: { table: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' width: 170
} }
}, },
{ {

12
src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts

@ -209,6 +209,16 @@ export const MoldMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// } // }
// }, // },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -217,7 +227,7 @@ export const MoldMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
table: { table: {
width: 170 width: 170
}, }
}, },
{ {
label: '操作', label: '操作',

15
src/views/eam/basic/moldMaintenanceConfig/moldMaintenanceConfig.data.ts

@ -94,14 +94,25 @@ export const MoldMaintenanceConfig = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.DEVICE_MOLD_TYPE, dictType: DICT_TYPE.DEVICE_MOLD_TYPE,
dictClass: 'string', dictClass: 'string',
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isForm: false, isForm: false,
detail: { table: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' width: 170
} }
}, },
{ {

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

@ -78,6 +78,22 @@ export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// } // }
// }, // },
{
label: '备注',
field: 'remark',
sort: 'custom',
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -86,12 +102,7 @@ export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
table: { table: {
width: 170 width: 170
}, }
},
{
label: '备注',
field: 'remark',
sort: 'custom',
}, },
{ {
label: '操作', label: '操作',

21
src/views/eam/device/deviceAccounts/deviceAccounts.data.ts

@ -336,7 +336,26 @@ export const DeviceAccounts = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
isForm: false, isForm: false,
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

20
src/views/eam/device/deviceMaintainPlan/deviceMaintainPlan.data.ts

@ -75,6 +75,26 @@ export const DeviceMaintainPlan = useCrudSchemas(reactive<CrudSchema[]>([
}, },
dictType: DICT_TYPE.DEVICE_MOLD_TYPE, dictType: DICT_TYPE.DEVICE_MOLD_TYPE,
dictClass: 'string', dictClass: 'string',
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
}, },
// { // {
// label: '创建时间', // label: '创建时间',

20
src/views/eam/device/deviceRepair/deviceRepair.data.ts

@ -262,6 +262,26 @@ export const DeviceRepair = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

20
src/views/eam/device/deviceSpotInspectionRecordMain/deviceSpotInspectionRecordMain.data.ts

@ -206,6 +206,26 @@ export const DeviceSpotInspectionRecordMain = useCrudSchemas(reactive<CrudSchema
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
} }
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
}, },
{ {
label: '操作', label: '操作',

20
src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts

@ -427,6 +427,26 @@ export const DeviceInspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 180, width: 180,
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
}, },
{ {
label: '操作', label: '操作',

20
src/views/eam/device/devicemaintainjob/deviceMaintainOrderMain.data.ts

@ -245,6 +245,26 @@ export const DeviceMaintainOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
}, },
{ {
label: '操作', label: '操作',

20
src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts

@ -506,6 +506,26 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: '200', width: '200',
}, },
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
}, },
// { // {
// label: '验证时间', // label: '验证时间',

25
src/views/eam/device/problemSharingPlatform/problemSharingPlatform.data.ts

@ -51,26 +51,27 @@ export const ProblemSharingPlatform = useCrudSchemas(reactive<CrudSchema[]>([
type: 'textarea', type: 'textarea',
} }
} }
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false,
isForm: false,
table: {
width: 150
}
}, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true, isForm: false,
search: { table: {
component: 'DatePicker', width: 170
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, },
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
isForm: false
},
{ {
label: '图片', label: '图片',
field: 'uploadImgs', field: 'uploadImgs',

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

@ -8,120 +8,23 @@ const { t } = useI18n() // 国际化
/** /**
* @returns {Array} * @returns {Array}
*/ */
export const ItemOrderMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemOrderMain = useCrudSchemas(
reactive<CrudSchema[]>([
{ {
label: '收货订单编号', label: '收货订单编号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 150,
fixed: 'left' fixed: 'left'
}, }
},
{
label: '电话',
field: 'phone',
sort: 'custom',
},
{
label: '传真',
field: 'fax',
sort: 'custom',
},
{
label: '收货员',
field: 'purchaser',
sort: 'custom',
}, },
{ {
label: '供应商编号', label: '供应商编号',
field: 'supplierNumber', field: 'supplierNumber',
sort: 'custom', sort: 'custom'
},
{
label: '供应商名称',
field: 'supplierName',
sort: 'custom',
},
{
label: '供应商地址',
field: 'supplierAddress',
sort: 'custom',
},
{
label: '发货至',
field: 'shipTo',
sort: 'custom',
},
{
label: '开票至',
field: 'invoiceTo',
sort: 'custom',
},
{
label: '联系人',
field: 'contacts',
sort: 'custom',
},
{
label: '联系电话',
field: 'contactsPhone',
sort: 'custom',
},
// {
// label: '付款方式',
// field: 'paymentType',
// sort: 'custom',
// form: {
// component: 'Select'
// },
// },
{
label: '注册地',
field: 'registLocation',
sort: 'custom',
},
{
label: '开户行',
field: 'bank',
sort: 'custom',
}, },
{
label: '账号',
field: 'account',
sort: 'custom',
},
{
label: '税号',
field: 'dutyParagraph',
sort: 'custom',
},
// {
// label: '是否关闭',
// field: 'available',
// dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string',
// isSearch: false,
// isTable: true,
// sort: 'custom',
// table: {
// width: 150
// },
// tableForm: {
// type: 'Select',
// inactiveValue: 'FALSE',
// disabled: true
// },
// form: {
// component: 'Switch',
// value: 'FALSE',
// componentProps: {
// inactiveValue: 'FALSE',
// activeValue: 'TRUE'
// }
// }
// },
{ {
label: '状态', label: '状态',
field: 'status', field: 'status',
@ -129,14 +32,14 @@ export const ItemOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.IS_COMPLETE, dictType: DICT_TYPE.IS_COMPLETE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
isForm: true, isForm: false,
tableForm: { tableForm: {
type: 'Select' type: 'Select'
}, },
form: { form: {
value: 'INCOMPLETE', value: 'INCOMPLETE',
componentProps: { componentProps: {
disabled: true, disabled: true
} }
} }
}, },
@ -144,36 +47,17 @@ export const ItemOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
isSearch: false isSearch: false,
isForm: false,
table: {}
}, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
isTable: true, formatter: dateFormatter,
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
},
isForm: false, isForm: false,
isSearch: true, table: {}
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
}
}, },
{ {
label: '操作', label: '操作',
@ -185,27 +69,21 @@ export const ItemOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'right' fixed: 'right'
} }
} }
])) ])
)
//表单校验 //表单校验
export const ItemOrderMainRules = reactive({ export const ItemOrderMainRules = reactive({
available: [ available: [{ required: true, message: '请选择是否关闭', trigger: 'change' }],
{ required: true, message: '请选择是否关闭', trigger: 'change' } number: [required, { max: 20, message: '请输入收货订单号', trigger: 'blur' }],
], supplierNumber: [required, { max: 20, message: '请输入供应商编号', trigger: 'blur' }]
number: [
required,
{ max: 20, message: '请输入收货订单号', trigger: 'blur' },
],
supplierNumber:[
required,
{ max: 20, message: '请输入供应商编号', trigger: 'blur' }
]
}) })
/** /**
* @returns {Array} * @returns {Array}
*/ */
export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemOrderDetail = useCrudSchemas(
reactive<CrudSchema[]>([
{ {
label: '备件编号', label: '备件编号',
field: 'itemNumber', field: 'itemNumber',
@ -218,13 +96,14 @@ export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '备件信息', searchTitle: '备件信息',
searchAllSchemas: Item.allSchemas, // 查询弹窗所需类 searchAllSchemas: Item.allSchemas, // 查询弹窗所需类
searchPage: ItemApi.getItemPage, // 查询弹窗所需分页方法 searchPage: ItemApi.getItemPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [
{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
} }
] ]
}, }
}, },
{ {
label: '备件名称', label: '备件名称',
@ -232,7 +111,7 @@ export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 110, width: 110
}, },
tableForm: { tableForm: {
disabled: true disabled: true
@ -244,8 +123,8 @@ export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 110, width: 110
}, }
}, },
{ {
label: '订单行', label: '订单行',
@ -253,8 +132,8 @@ export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 110, width: 110
}, }
}, },
{ {
label: '单价', label: '单价',
@ -309,25 +188,16 @@ export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([
type: 'InputNumber', type: 'InputNumber',
min: 0, min: 0,
precision: 2 precision: 2
}, }
}, }
])) ])
)
//表单校验 //表单校验
export const ItemOrderDetailRules = reactive({ export const ItemOrderDetailRules = reactive({
singlePrice: [ singlePrice: [{ required: true, message: '请输入备件单价', trigger: 'blur' }],
{ required: true, message: '请输入备件单价', trigger: 'blur' }, serialNumber: [{ required: true, message: '请输入订单行', trigger: 'blur' }],
], itemNumber: [{ required: true, message: '请输入备件编号', trigger: 'blur' }],
serialNumber: [ itemName: [{ required: true, message: '请输入备件名称', trigger: 'blur' }],
{ required: true, message: '请输入订单行', trigger: 'blur' }, uom: [{ required: true, message: '请输入备件单位', trigger: 'blur' }]
],
itemNumber: [
{ required: true, message: '请输入备件编号', trigger: 'blur' },
],
itemName: [
{ required: true, message: '请输入备件名称', trigger: 'blur' },
],
uom: [
{ required: true, message: '请输入备件单位', trigger: 'blur' },
],
}) })

Loading…
Cancel
Save