Browse Source

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

master
叶佳兴 3 weeks ago
parent
commit
72b927b66c
  1. 21
      src/views/eam/basic/accountPeriod/accountPeriod.data.ts
  2. 27
      src/views/eam/basic/basciYearEquipment/basciYearEquipment.data.ts
  3. 27
      src/views/eam/basic/basicMonthEquipment/basicMonthEquipment.data.ts
  4. 38
      src/views/eam/basic/classType/classType.data.ts
  5. 21
      src/views/eam/basic/costCenterMapping/costCenterMapping.data.ts
  6. 66
      src/views/eam/basic/deviceInspectionConfig/deviceInspectionConfig.data.ts
  7. 31
      src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts
  8. 31
      src/views/eam/basic/deviceMaintenanceConfig/moldMaintenanceConfig.data.ts
  9. 62
      src/views/eam/basic/inspection/inspection.data.ts
  10. 6
      src/views/eam/basic/item/item.data.ts
  11. 30
      src/views/eam/basic/location/location.data.ts
  12. 21
      src/views/eam/basic/locationArea/locationArea.data.ts
  13. 31
      src/views/eam/basic/moldInspection/moldInspection.data.ts
  14. 30
      src/views/eam/basic/moldInspectionConfig/moldInspectionConfig.data.ts
  15. 30
      src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts
  16. 31
      src/views/eam/basic/moldMaintenanceConfig/moldMaintenanceConfig.data.ts
  17. 31
      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. 39
      src/views/eam/device/problemSharingPlatform/problemSharingPlatform.data.ts
  26. 452
      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',

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

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

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

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

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

@ -194,24 +194,26 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([
isTable: false, isTable: false,
isTableForm: false, isTableForm: false,
}, },
{ {
label: '创建时间', label: '创建者',
field: 'createTime', field: 'creator',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, isSearch: false,
isForm: false, isForm: false,
}, table: {
// { width: 150
// label: '地点ID', }
// field: 'siteId', },
// sort: 'custom', {
// }, label: '创建时间',
// { field: 'createTime',
// label: '是否可用', sort: 'custom',
// field: 'available', formatter: dateFormatter,
// sort: 'custom', isForm: false,
// }, table: {
width: 170
}
},
{ {
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',

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

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

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

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

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

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

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

@ -235,16 +235,27 @@ export const DeviceMoldItems = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// } // }
// }, // },
{
label: '创建时间', {
field: 'createTime', label: '创建者',
sort: 'custom', field: 'creator',
formatter: dateFormatter, sort: 'custom',
isForm: false, isSearch: false,
table: { isForm: false,
width: 170 table: {
}, width: 150
}, }
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -332,16 +343,27 @@ export const DeviceMoldItemsTwo = useCrudSchemas(reactive<CrudSchema[]>([
value: false, value: false,
} }
}, },
{
label: '创建时间', {
field: 'createTime', label: '创建者',
sort: 'custom', field: 'creator',
formatter: dateFormatter, sort: 'custom',
isForm: false, isSearch: false,
table: { isForm: false,
width: 170 table: {
}, width: 150
}, }
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

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: '创建时间',

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

@ -143,16 +143,6 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// } // }
// }, // },
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
},
},
{ {
label: '描述', label: '描述',
field: 'description', field: 'description',
@ -161,6 +151,26 @@ export const Location = 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',

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',

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

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

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

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

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

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

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

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

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

@ -78,21 +78,32 @@ export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// } // }
// }, // },
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
},
},
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
}, },
{
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',

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

@ -76,6 +76,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: '创建时间',
// field: 'createTime', // field: 'createTime',

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

@ -207,6 +207,26 @@ export const DeviceSpotInspectionRecordMain = useCrudSchemas(reactive<CrudSchema
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: '操作',
field: 'action', field: 'action',

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

@ -428,6 +428,26 @@ export const DeviceInspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
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: '操作',
field: 'action', field: 'action',

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

@ -246,6 +246,26 @@ export const DeviceMaintainOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
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: '操作',
field: 'action', field: 'action',

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

@ -507,6 +507,26 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
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: '验证时间',
// field: 'verifyTimeDetail', // field: 'verifyTimeDetail',

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

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

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

@ -8,326 +8,196 @@ const { t } = useI18n() // 国际化
/** /**
* @returns {Array} * @returns {Array}
*/ */
export const ItemOrderMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemOrderMain = useCrudSchemas(
{ reactive<CrudSchema[]>([
label: '收货订单编号', {
field: 'number', label: '收货订单编号',
sort: 'custom', field: 'number',
isSearch: true, sort: 'custom',
table: { isSearch: true,
width: 150, table: {
fixed: 'left' fixed: 'left'
}
}, },
}, {
{ label: '供应商编号',
label: '电话', field: 'supplierNumber',
field: 'phone', sort: 'custom'
sort: 'custom',
},
{
label: '传真',
field: 'fax',
sort: 'custom',
},
{
label: '收货员',
field: 'purchaser',
sort: 'custom',
},
{
label: '供应商编号',
field: 'supplierNumber',
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: '状态',
field: 'status',
sort: 'custom',
dictType: DICT_TYPE.IS_COMPLETE,
dictClass: 'string',
isTable: true,
isForm: true,
tableForm: {
type: 'Select'
}, },
form: {
value: 'INCOMPLETE',
componentProps: {
disabled: true,
}
}
},
{ {
label: '创建者', label: '状态',
field: 'creator', field: 'status',
sort: 'custom', sort: 'custom',
isSearch: false dictType: DICT_TYPE.IS_COMPLETE,
dictClass: 'string',
isTable: true,
isForm: false,
tableForm: {
type: 'Select'
}, },
{ form: {
label: '创建时间', value: 'INCOMPLETE',
field: 'createTime', componentProps: {
formatter: dateFormatter, disabled: true
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
isTable: true,
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
},
isForm: false,
isSearch: true,
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: '操作', {
field: 'action', label: '创建者',
isDetail: false, field: 'creator',
isForm: false, sort: 'custom',
table: { isSearch: false,
width: 200, isForm: false,
fixed: 'right' table: {}
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {}
},
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false,
table: {
width: 200,
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: '备件编号', {
field: 'itemNumber', label: '备件编号',
sort: 'custom', field: 'itemNumber',
isSearch: true, sort: 'custom',
tableForm: { isSearch: true,
isInpuFocusShow: true, tableForm: {
searchListPlaceholder: '请选择备件编号', isInpuFocusShow: true,
searchField: 'number', searchListPlaceholder: '请选择备件编号',
searchTitle: '备件信息', searchField: 'number',
searchAllSchemas: Item.allSchemas, // 查询弹窗所需类 searchTitle: '备件信息',
searchPage: ItemApi.getItemPage, // 查询弹窗所需分页方法 searchAllSchemas: Item.allSchemas, // 查询弹窗所需类
searchCondition: [{ searchPage: ItemApi.getItemPage, // 查询弹窗所需分页方法
key: 'available', searchCondition: [
value: 'TRUE', {
isMainValue: false key: 'available',
value: 'TRUE',
isMainValue: false
}
]
} }
]
},
},
{
label: '备件名称',
field: 'itemName',
sort: 'custom',
isSearch: true,
table: {
width: 110,
}, },
tableForm: { {
disabled: true label: '备件名称',
} field: 'itemName',
}, sort: 'custom',
{ isSearch: true,
label: '单位', table: {
field: 'uom', width: 110
sort: 'custom', },
isSearch: true, tableForm: {
table: { disabled: true
width: 110, }
}, },
}, {
{ label: '单位',
label: '订单行', field: 'uom',
field: 'serialNumber', sort: 'custom',
sort: 'custom', isSearch: true,
isSearch: true, table: {
table: { width: 110
width: 110, }
}, },
}, {
{ label: '订单行',
label: '单价', field: 'serialNumber',
field: 'singlePrice', sort: 'custom',
sort: 'custom', isSearch: true,
table: { table: {
width: 150 width: 110
}
}, },
form: { {
component: 'InputNumber', label: '单价',
componentProps: { field: 'singlePrice',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1, min: 1,
precision: 6 precision: 6
} }
}, },
tableForm: { {
type: 'InputNumber', label: '订单数量',
min: 1, field: 'qty',
precision: 6 sort: 'custom',
} table: {
}, width: 150
{ },
label: '订单数量', form: {
field: 'qty', component: 'InputNumber',
sort: 'custom', componentProps: {
table: { min: 1,
width: 150 precision: 6
}, }
form: { },
component: 'InputNumber', tableForm: {
componentProps: { type: 'InputNumber',
min: 1, min: 1,
precision: 6 precision: 6
} }
}, },
tableForm: { {
type: 'InputNumber', label: '已收货数量',
min: 1, field: 'intQuantity',
precision: 6 sort: 'custom',
table: {
width: 150
},
isForm: false,
tableForm: {
disabled: true,
type: 'InputNumber',
min: 0,
precision: 2
}
} }
}, ])
{ )
label: '已收货数量',
field: 'intQuantity',
sort: 'custom',
table: {
width: 150
},
isForm: false,
tableForm: {
disabled: true,
type: 'InputNumber',
min: 0,
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