diff --git a/src/api/eam/device/deviceAccounts/index.ts b/src/api/eam/device/deviceAccounts/index.ts new file mode 100644 index 0000000..59def69 --- /dev/null +++ b/src/api/eam/device/deviceAccounts/index.ts @@ -0,0 +1,59 @@ +import request from '@/config/axios' + +export interface DeviceAccountsVO { + number: string + name: string + specification: string + type: string + factoryAreaNumber: string + purchaseTime: Date + deptId: number + purchaser: number + supplierNumber: string + productionDate: Date + purchasePrice: number + siteId: string + available: string + concurrencyStamp: number +} + +// 查询备件台账列表 +export const getDeviceAccountsPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-accounts/senior', data }) + } else { + return await request.get({ url: `/eam/device-accounts/page`, params }) + } +} + +// 查询备件台账详情 +export const getDeviceAccounts = async (id: number) => { + return await request.get({ url: `/eam/device-accounts/get?id=` + id }) +} + +// 新增备件台账 +export const createDeviceAccounts = async (data: DeviceAccountsVO) => { + return await request.post({ url: `/eam/device-accounts/create`, data }) +} + +// 修改备件台账 +export const updateDeviceAccounts = async (data: DeviceAccountsVO) => { + return await request.put({ url: `/eam/device-accounts/update`, data }) +} + +// 删除备件台账 +export const deleteDeviceAccounts = async (id: number) => { + return await request.delete({ url: `/eam/device-accounts/delete?id=` + id }) +} + +// 导出备件台账 Excel +export const exportDeviceAccounts = async (params) => { + return await request.download({ url: `/eam/device-accounts/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-accounts/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/device/deviceAllot/index.ts b/src/api/eam/device/deviceAllot/index.ts new file mode 100644 index 0000000..59def69 --- /dev/null +++ b/src/api/eam/device/deviceAllot/index.ts @@ -0,0 +1,59 @@ +import request from '@/config/axios' + +export interface DeviceAccountsVO { + number: string + name: string + specification: string + type: string + factoryAreaNumber: string + purchaseTime: Date + deptId: number + purchaser: number + supplierNumber: string + productionDate: Date + purchasePrice: number + siteId: string + available: string + concurrencyStamp: number +} + +// 查询备件台账列表 +export const getDeviceAccountsPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-accounts/senior', data }) + } else { + return await request.get({ url: `/eam/device-accounts/page`, params }) + } +} + +// 查询备件台账详情 +export const getDeviceAccounts = async (id: number) => { + return await request.get({ url: `/eam/device-accounts/get?id=` + id }) +} + +// 新增备件台账 +export const createDeviceAccounts = async (data: DeviceAccountsVO) => { + return await request.post({ url: `/eam/device-accounts/create`, data }) +} + +// 修改备件台账 +export const updateDeviceAccounts = async (data: DeviceAccountsVO) => { + return await request.put({ url: `/eam/device-accounts/update`, data }) +} + +// 删除备件台账 +export const deleteDeviceAccounts = async (id: number) => { + return await request.delete({ url: `/eam/device-accounts/delete?id=` + id }) +} + +// 导出备件台账 Excel +export const exportDeviceAccounts = async (params) => { + return await request.download({ url: `/eam/device-accounts/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-accounts/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/device/deviceInspectionMain/index.ts b/src/api/eam/device/deviceInspectionMain/index.ts new file mode 100644 index 0000000..12b54bc --- /dev/null +++ b/src/api/eam/device/deviceInspectionMain/index.ts @@ -0,0 +1,57 @@ +import request from '@/config/axios' + +export interface DeviceInspectionMainVO { + number: string + maintenanceNumber: string + deviceNumber: string + factoryAreaNumber: string + describe: string + maintenance: number + maintenancePhone: string + status: string + type: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询检修工单主列表 +export const getDeviceInspectionMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-inspection-main/senior', data }) + } else { + return await request.get({ url: `/eam/device-inspection-main/page`, params }) + } +} + +// 查询检修工单主详情 +export const getDeviceInspectionMain = async (id: number) => { + return await request.get({ url: `/eam/device-inspection-main/get?id=` + id }) +} + +// 新增检修工单主 +export const createDeviceInspectionMain = async (data: DeviceInspectionMainVO) => { + return await request.post({ url: `/eam/device-inspection-main/create`, data }) +} + +// 修改检修工单主 +export const updateDeviceInspectionMain = async (data: DeviceInspectionMainVO) => { + return await request.put({ url: `/eam/device-inspection-main/update`, data }) +} + +// 删除检修工单主 +export const deleteDeviceInspectionMain = async (id: number) => { + return await request.delete({ url: `/eam/device-inspection-main/delete?id=` + id }) +} + +// 导出检修工单主 Excel +export const exportDeviceInspectionMain = async (params) => { + return await request.download({ url: `/eam/device-inspection-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-inspection-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/device/deviceMaintainOrderMain/index.ts b/src/api/eam/device/deviceMaintainOrderMain/index.ts new file mode 100644 index 0000000..d6b0f98 --- /dev/null +++ b/src/api/eam/device/deviceMaintainOrderMain/index.ts @@ -0,0 +1,61 @@ +import request from '@/config/axios' + +export interface deviceMaintainOrderMainVO { + number: string + name: string + planNumber: string + deviceNumber: string + factoryAreaNumber: string + engineer: number + receiveTime: Date + assignTime: Date + worker: number + finishedTime: Date + verifyTime: Date + status: string + type: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询保养工单主列表 +export const getdeviceMaintainOrderMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-maintain-order-main/senior', data }) + } else { + return await request.get({ url: `/eam/device-maintain-order-main/page`, params }) + } +} + +// 查询保养工单主详情 +export const getdeviceMaintainOrderMain = async (id: number) => { + return await request.get({ url: `/eam/device-maintain-order-main/get?id=` + id }) +} + +// 新增保养工单主 +export const createdeviceMaintainOrderMain = async (data: deviceMaintainOrderMainVO) => { + return await request.post({ url: `/eam/device-maintain-order-main/create`, data }) +} + +// 修改保养工单主 +export const updatedeviceMaintainOrderMain = async (data: deviceMaintainOrderMainVO) => { + return await request.put({ url: `/eam/device-maintain-order-main/update`, data }) +} + +// 删除保养工单主 +export const deletedeviceMaintainOrderMain = async (id: number) => { + return await request.delete({ url: `/eam/device-maintain-order-main/delete?id=` + id }) +} + +// 导出保养工单主 Excel +export const exportdeviceMaintainOrderMain = async (params) => { + return await request.download({ url: `/eam/device-maintain-order-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-maintain-order-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/device/deviceMaintainPlan/index.ts b/src/api/eam/device/deviceMaintainPlan/index.ts new file mode 100644 index 0000000..4f2997c --- /dev/null +++ b/src/api/eam/device/deviceMaintainPlan/index.ts @@ -0,0 +1,54 @@ +import request from '@/config/axios' + +export interface DeviceMaintainPlanVO { + number: string + name: string + maintenanceType: string + cycle: string + times: number + type: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询保养计划列表 +export const getDeviceMaintainPlanPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-maintain-plan/senior', data }) + } else { + return await request.get({ url: `/eam/device-maintain-plan/page`, params }) + } +} + +// 查询保养计划详情 +export const getDeviceMaintainPlan = async (id: number) => { + return await request.get({ url: `/eam/device-maintain-plan/get?id=` + id }) +} + +// 新增保养计划 +export const createDeviceMaintainPlan = async (data: DeviceMaintainPlanVO) => { + return await request.post({ url: `/eam/device-maintain-plan/create`, data }) +} + +// 修改保养计划 +export const updateDeviceMaintainPlan = async (data: DeviceMaintainPlanVO) => { + return await request.put({ url: `/eam/device-maintain-plan/update`, data }) +} + +// 删除保养计划 +export const deleteDeviceMaintainPlan = async (id: number) => { + return await request.delete({ url: `/eam/device-maintain-plan/delete?id=` + id }) +} + +// 导出保养计划 Excel +export const exportDeviceMaintainPlan = async (params) => { + return await request.download({ url: `/eam/device-maintain-plan/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-maintain-plan/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/device/deviceMaintenanceMain/index.ts b/src/api/eam/device/deviceMaintenanceMain/index.ts new file mode 100644 index 0000000..dd30383 --- /dev/null +++ b/src/api/eam/device/deviceMaintenanceMain/index.ts @@ -0,0 +1,57 @@ +import request from '@/config/axios' + +export interface DeviceMaintenanceMainVO { + number: string + requestNumber: string + describe: string + deviceNumber: string + factoryAreaNumber: string + maintenance: number + maintenancePhone: string + status: string + type: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询维修工单主列表 +export const getDeviceMaintenanceMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-maintenance-main/senior', data }) + } else { + return await request.get({ url: `/eam/device-maintenance-main/page`, params }) + } +} + +// 查询维修工单主详情 +export const getDeviceMaintenanceMain = async (id: number) => { + return await request.get({ url: `/eam/device-maintenance-main/get?id=` + id }) +} + +// 新增维修工单主 +export const createDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => { + return await request.post({ url: `/eam/device-maintenance-main/create`, data }) +} + +// 修改维修工单主 +export const updateDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => { + return await request.put({ url: `/eam/device-maintenance-main/update`, data }) +} + +// 删除维修工单主 +export const deleteDeviceMaintenanceMain = async (id: number) => { + return await request.delete({ url: `/eam/device-maintenance-main/delete?id=` + id }) +} + +// 导出维修工单主 Excel +export const exportDeviceMaintenanceMain = async (params) => { + return await request.download({ url: `/eam/device-maintenance-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-maintenance-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/device/deviceRepair/index.ts b/src/api/eam/device/deviceRepair/index.ts new file mode 100644 index 0000000..904e00f --- /dev/null +++ b/src/api/eam/device/deviceRepair/index.ts @@ -0,0 +1,56 @@ +import request from '@/config/axios' + +export interface DeviceRepairVO { + number: string + describe: string + deviceNumber: string + factoryAreaNumber: string + declarer: number + declarerPhone: string + faultType: string + type: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询报修申请列表 +export const getDeviceRepairPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-repair/senior', data }) + } else { + return await request.get({ url: `/eam/device-repair/page`, params }) + } +} + +// 查询报修申请详情 +export const getDeviceRepair = async (id: number) => { + return await request.get({ url: `/eam/device-repair/get?id=` + id }) +} + +// 新增报修申请 +export const createDeviceRepair = async (data: DeviceRepairVO) => { + return await request.post({ url: `/eam/device-repair/create`, data }) +} + +// 修改报修申请 +export const updateDeviceRepair = async (data: DeviceRepairVO) => { + return await request.put({ url: `/eam/device-repair/update`, data }) +} + +// 删除报修申请 +export const deleteDeviceRepair = async (id: number) => { + return await request.delete({ url: `/eam/device-repair/delete?id=` + id }) +} + +// 导出报修申请 Excel +export const exportDeviceRepair = async (params) => { + return await request.download({ url: `/eam/device-repair/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-repair/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/device/deviceSpotInspectionRecordMain/index.ts b/src/api/eam/device/deviceSpotInspectionRecordMain/index.ts new file mode 100644 index 0000000..5cb5364 --- /dev/null +++ b/src/api/eam/device/deviceSpotInspectionRecordMain/index.ts @@ -0,0 +1,55 @@ +import request from '@/config/axios' + +export interface DeviceSpotInspectionRecordMainVO { + number: string + deviceNumber: string + describe: string + maintenance: number + maintenancePhone: string + status: string + type: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询检修工单主列表 +export const getDeviceSpotInspectionRecordMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-spot-inspection-record-main/senior', data }) + } else { + return await request.get({ url: `/eam/device-spot-inspection-record-main/page`, params }) + } +} + +// 查询检修工单主详情 +export const getDeviceSpotInspectionRecordMain = async (id: number) => { + return await request.get({ url: `/eam/device-spot-inspection-record-main/get?id=` + id }) +} + +// 新增检修工单主 +export const createDeviceSpotInspectionRecordMain = async (data: DeviceSpotInspectionRecordMainVO) => { + return await request.post({ url: `/eam/device-spot-inspection-record-main/create`, data }) +} + +// 修改检修工单主 +export const updateDeviceSpotInspectionRecordMain = async (data: DeviceSpotInspectionRecordMainVO) => { + return await request.put({ url: `/eam/device-spot-inspection-record-main/update`, data }) +} + +// 删除检修工单主 +export const deleteDeviceSpotInspectionRecordMain = async (id: number) => { + return await request.delete({ url: `/eam/device-spot-inspection-record-main/delete?id=` + id }) +} + +// 导出检修工单主 Excel +export const exportDeviceSpotInspectionRecordMain = async (params) => { + return await request.download({ url: `/eam/device-spot-inspection-record-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-spot-inspection-record-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/mold/moldAccounts/index.ts b/src/api/eam/mold/moldAccounts/index.ts new file mode 100644 index 0000000..09130c3 --- /dev/null +++ b/src/api/eam/mold/moldAccounts/index.ts @@ -0,0 +1,62 @@ +import request from '@/config/axios' + +export interface MoldAccountsVO { + number: string + name: string + specification: string + type: string + factoryAreaNumber: string + purchaseTime: Date + deptId: number + purchaser: number + supplierNumber: string + productionDate: Date + purchasePrice: number + isClientAssets: string + frequency: number + beat: number + siteId: string + available: string + concurrencyStamp: number +} + +// 查询模具台账列表 +export const getMoldAccountsPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/mold-accounts/senior', data }) + } else { + return await request.get({ url: `/eam/mold-accounts/page`, params }) + } +} + +// 查询模具台账详情 +export const getMoldAccounts = async (id: number) => { + return await request.get({ url: `/eam/mold-accounts/get?id=` + id }) +} + +// 新增模具台账 +export const createMoldAccounts = async (data: MoldAccountsVO) => { + return await request.post({ url: `/eam/mold-accounts/create`, data }) +} + +// 修改模具台账 +export const updateMoldAccounts = async (data: MoldAccountsVO) => { + return await request.put({ url: `/eam/mold-accounts/update`, data }) +} + +// 删除模具台账 +export const deleteMoldAccounts = async (id: number) => { + return await request.delete({ url: `/eam/mold-accounts/delete?id=` + id }) +} + +// 导出模具台账 Excel +export const exportMoldAccounts = async (params) => { + return await request.download({ url: `/eam/mold-accounts/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/mold-accounts/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/mold/moldInspectionMain/index.ts b/src/api/eam/mold/moldInspectionMain/index.ts new file mode 100644 index 0000000..0801168 --- /dev/null +++ b/src/api/eam/mold/moldInspectionMain/index.ts @@ -0,0 +1,57 @@ +import request from '@/config/axios' + +export interface MoldInspectionMainVO { + number: string + maintenanceNumber: string + deviceNumber: string + factoryAreaNumber: string + describe: string + maintenance: number + maintenancePhone: string + status: string + type: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询检修工单主列表 +export const getMoldInspectionMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-inspection-main/senior', data }) + } else { + return await request.get({ url: `/eam/device-inspection-main/page`, params }) + } +} + +// 查询检修工单主详情 +export const getMoldInspectionMain = async (id: number) => { + return await request.get({ url: `/eam/device-inspection-main/get?id=` + id }) +} + +// 新增检修工单主 +export const createMoldInspectionMain = async (data: MoldInspectionMainVO) => { + return await request.post({ url: `/eam/device-inspection-main/create`, data }) +} + +// 修改检修工单主 +export const updateMoldInspectionMain = async (data: MoldInspectionMainVO) => { + return await request.put({ url: `/eam/device-inspection-main/update`, data }) +} + +// 删除检修工单主 +export const deleteMoldInspectionMain = async (id: number) => { + return await request.delete({ url: `/eam/device-inspection-main/delete?id=` + id }) +} + +// 导出检修工单主 Excel +export const exportMoldInspectionMain = async (params) => { + return await request.download({ url: `/eam/device-inspection-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-inspection-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/mold/moldMaintainOrderMain/index.ts b/src/api/eam/mold/moldMaintainOrderMain/index.ts new file mode 100644 index 0000000..68593a8 --- /dev/null +++ b/src/api/eam/mold/moldMaintainOrderMain/index.ts @@ -0,0 +1,61 @@ +import request from '@/config/axios' + +export interface MoldMaintainOrderMainVO { + number: string + name: string + planNumber: string + deviceNumber: string + factoryAreaNumber: string + engineer: number + receiveTime: Date + assignTime: Date + worker: number + finishedTime: Date + verifyTime: Date + status: string + type: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询保养工单主列表 +export const getMoldMaintainOrderMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-maintain-order-main/senior', data }) + } else { + return await request.get({ url: `/eam/device-maintain-order-main/page`, params }) + } +} + +// 查询保养工单主详情 +export const getMoldMaintainOrderMain = async (id: number) => { + return await request.get({ url: `/eam/device-maintain-order-main/get?id=` + id }) +} + +// 新增保养工单主 +export const createMoldMaintainOrderMain = async (data: MoldMaintainOrderMainVO) => { + return await request.post({ url: `/eam/device-maintain-order-main/create`, data }) +} + +// 修改保养工单主 +export const updateMoldMaintainOrderMain = async (data: MoldMaintainOrderMainVO) => { + return await request.put({ url: `/eam/device-maintain-order-main/update`, data }) +} + +// 删除保养工单主 +export const deleteMoldMaintainOrderMain = async (id: number) => { + return await request.delete({ url: `/eam/device-maintain-order-main/delete?id=` + id }) +} + +// 导出保养工单主 Excel +export const exportMoldMaintainOrderMain = async (params) => { + return await request.download({ url: `/eam/device-maintain-order-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-maintain-order-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/mold/moldMaintainPlan/index.ts b/src/api/eam/mold/moldMaintainPlan/index.ts new file mode 100644 index 0000000..4de2662 --- /dev/null +++ b/src/api/eam/mold/moldMaintainPlan/index.ts @@ -0,0 +1,54 @@ +import request from '@/config/axios' + +export interface MoldMaintainPlanVO { + number: string + name: string + maintenanceType: string + cycle: string + times: number + type: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询保养计划列表 +export const getMoldMaintainPlanPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-maintain-plan/senior', data }) + } else { + return await request.get({ url: `/eam/device-maintain-plan/page`, params }) + } +} + +// 查询保养计划详情 +export const getMoldMaintainPlan = async (id: number) => { + return await request.get({ url: `/eam/device-maintain-plan/get?id=` + id }) +} + +// 新增保养计划 +export const createMoldMaintainPlan = async (data: MoldMaintainPlanVO) => { + return await request.post({ url: `/eam/device-maintain-plan/create`, data }) +} + +// 修改保养计划 +export const updateMoldMaintainPlan = async (data: MoldMaintainPlanVO) => { + return await request.put({ url: `/eam/device-maintain-plan/update`, data }) +} + +// 删除保养计划 +export const deleteMoldMaintainPlan = async (id: number) => { + return await request.delete({ url: `/eam/device-maintain-plan/delete?id=` + id }) +} + +// 导出保养计划 Excel +export const exportMoldMaintainPlan = async (params) => { + return await request.download({ url: `/eam/device-maintain-plan/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-maintain-plan/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/mold/moldMaintenanceMain/index.ts b/src/api/eam/mold/moldMaintenanceMain/index.ts new file mode 100644 index 0000000..8e429f3 --- /dev/null +++ b/src/api/eam/mold/moldMaintenanceMain/index.ts @@ -0,0 +1,57 @@ +import request from '@/config/axios' + +export interface MoldMaintenanceMainVO { + number: string + requestNumber: string + describe: string + deviceNumber: string + factoryAreaNumber: string + maintenance: number + maintenancePhone: string + status: string + type: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询维修工单主列表 +export const getMoldMaintenanceMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-maintenance-main/senior', data }) + } else { + return await request.get({ url: `/eam/device-maintenance-main/page`, params }) + } +} + +// 查询维修工单主详情 +export const getMoldMaintenanceMain = async (id: number) => { + return await request.get({ url: `/eam/device-maintenance-main/get?id=` + id }) +} + +// 新增维修工单主 +export const createMoldMaintenanceMain = async (data: MoldMaintenanceMainVO) => { + return await request.post({ url: `/eam/device-maintenance-main/create`, data }) +} + +// 修改维修工单主 +export const updateMoldMaintenanceMain = async (data: MoldMaintenanceMainVO) => { + return await request.put({ url: `/eam/device-maintenance-main/update`, data }) +} + +// 删除维修工单主 +export const deleteMoldMaintenanceMain = async (id: number) => { + return await request.delete({ url: `/eam/device-maintenance-main/delete?id=` + id }) +} + +// 导出维修工单主 Excel +export const exportMoldMaintenanceMain = async (params) => { + return await request.download({ url: `/eam/device-maintenance-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-maintenance-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/mold/moldRepair/index.ts b/src/api/eam/mold/moldRepair/index.ts new file mode 100644 index 0000000..9b98ba0 --- /dev/null +++ b/src/api/eam/mold/moldRepair/index.ts @@ -0,0 +1,56 @@ +import request from '@/config/axios' + +export interface MoldRepairVO { + number: string + describe: string + deviceNumber: string + factoryAreaNumber: string + declarer: number + declarerPhone: string + faultType: string + type: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询报修申请列表 +export const getMoldRepairPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-repair/senior', data }) + } else { + return await request.get({ url: `/eam/device-repair/page`, params }) + } +} + +// 查询报修申请详情 +export const getMoldRepair = async (id: number) => { + return await request.get({ url: `/eam/device-repair/get?id=` + id }) +} + +// 新增报修申请 +export const createMoldRepair = async (data: MoldRepairVO) => { + return await request.post({ url: `/eam/device-repair/create`, data }) +} + +// 修改报修申请 +export const updateMoldRepair = async (data: MoldRepairVO) => { + return await request.put({ url: `/eam/device-repair/update`, data }) +} + +// 删除报修申请 +export const deleteMoldRepair = async (id: number) => { + return await request.delete({ url: `/eam/device-repair/delete?id=` + id }) +} + +// 导出报修申请 Excel +export const exportMoldRepair = async (params) => { + return await request.download({ url: `/eam/device-repair/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-repair/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/eam/device/deviceAccounts/deviceAccounts.data.ts b/src/views/eam/device/deviceAccounts/deviceAccounts.data.ts new file mode 100644 index 0000000..e6e6a69 --- /dev/null +++ b/src/views/eam/device/deviceAccounts/deviceAccounts.data.ts @@ -0,0 +1,138 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const DeviceAccountsRules = reactive({ + number: [required], + name: [required], + factoryAreaNumber: [required], + purchaseTime: [required], + deptId: [required], + purchaser: [required], + supplierNumber: [required], + siteId: [required], + concurrencyStamp: [required], +}) + +export const DeviceAccounts = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '规格型号', + field: 'specification', + sort: 'custom', + }, + { + label: '设备类型', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '所属厂区编号', + field: 'factoryAreaNumber', + sort: 'custom', + }, + { + label: '采购时间', + field: 'purchaseTime', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '采购部门', + field: 'deptId', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '采购人', + field: 'purchaser', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '供应商编号', + field: 'supplierNumber', + sort: 'custom', + }, + { + label: '出厂日期', + field: 'productionDate', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '价格', + field: 'purchasePrice', + sort: 'custom', + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/device/deviceAccounts/index.vue b/src/views/eam/device/deviceAccounts/index.vue new file mode 100644 index 0000000..3596a65 --- /dev/null +++ b/src/views/eam/device/deviceAccounts/index.vue @@ -0,0 +1,231 @@ + + + diff --git a/src/views/eam/device/deviceAllot/deviceAllot.data.ts b/src/views/eam/device/deviceAllot/deviceAllot.data.ts new file mode 100644 index 0000000..b39c039 --- /dev/null +++ b/src/views/eam/device/deviceAllot/deviceAllot.data.ts @@ -0,0 +1,138 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const DeviceAllotRules = reactive({ + number: [required], + name: [required], + factoryAreaNumber: [required], + purchaseTime: [required], + deptId: [required], + purchaser: [required], + supplierNumber: [required], + siteId: [required], + concurrencyStamp: [required], +}) + +export const DeviceAllot = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '规格型号', + field: 'specification', + sort: 'custom', + }, + { + label: '设备类型', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '所属厂区编号', + field: 'factoryAreaNumber', + sort: 'custom', + }, + { + label: '采购时间', + field: 'purchaseTime', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '采购部门', + field: 'deptId', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '采购人', + field: 'purchaser', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '供应商编号', + field: 'supplierNumber', + sort: 'custom', + }, + { + label: '出厂日期', + field: 'productionDate', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '价格', + field: 'purchasePrice', + sort: 'custom', + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/device/deviceAllot/index.vue b/src/views/eam/device/deviceAllot/index.vue new file mode 100644 index 0000000..11b1667 --- /dev/null +++ b/src/views/eam/device/deviceAllot/index.vue @@ -0,0 +1,231 @@ + + + diff --git a/src/views/eam/device/deviceInspectionMain/deviceInspectionMain.data.ts b/src/views/eam/device/deviceInspectionMain/deviceInspectionMain.data.ts new file mode 100644 index 0000000..8fd16fc --- /dev/null +++ b/src/views/eam/device/deviceInspectionMain/deviceInspectionMain.data.ts @@ -0,0 +1,110 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const DeviceInspectionMainRules = reactive({ + number: [required], + maintenanceNumber: [required], + deviceNumber: [required], + factoryAreaNumber: [required], + status: [required], + type: [required], + concurrencyStamp: [required], +}) + +export const DeviceInspectionMain = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '维修工单号', + field: 'maintenanceNumber', + sort: 'custom', + }, + { + label: '设备模具', + field: 'deviceNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '厂区编号', + field: 'factoryAreaNumber', + sort: 'custom', + }, + { + label: '描述', + field: 'describe', + sort: 'custom', + }, + { + label: '维修人', + field: 'maintenance', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '维修人联系电话', + field: 'maintenancePhone', + sort: 'custom', + }, + { + label: '状态', + field: 'status', + sort: 'custom', + isSearch: true, + form: { + component: 'Radio' + }, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/device/deviceInspectionMain/index.vue b/src/views/eam/device/deviceInspectionMain/index.vue new file mode 100644 index 0000000..d298d79 --- /dev/null +++ b/src/views/eam/device/deviceInspectionMain/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/device/deviceMaintainOrderMain/deviceMaintainOrderMain.data.ts b/src/views/eam/device/deviceMaintainOrderMain/deviceMaintainOrderMain.data.ts new file mode 100644 index 0000000..b1b08de --- /dev/null +++ b/src/views/eam/device/deviceMaintainOrderMain/deviceMaintainOrderMain.data.ts @@ -0,0 +1,177 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const deviceMaintainOrderMainRules = reactive({ + number: [required], + name: [required], + planNumber: [required], + deviceNumber: [required], + factoryAreaNumber: [required], + status: [required], + type: [required], + concurrencyStamp: [required], +}) + +export const deviceMaintainOrderMain = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '保养计划单号', + field: 'planNumber', + sort: 'custom', + }, + { + label: '设备/模具编号', + field: 'deviceNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '厂区编号', + field: 'factoryAreaNumber', + sort: 'custom', + }, + { + label: '工程师id', + field: 'engineer', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '接单时间', + field: 'receiveTime', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '指派时间', + field: 'assignTime', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '工程师id', + field: 'worker', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '完成时间', + field: 'finishedTime', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '验证时间', + field: 'verifyTime', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '状态', + field: 'status', + sort: 'custom', + isSearch: true, + form: { + component: 'Radio' + }, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + 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')] + } + }, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/device/deviceMaintainOrderMain/index.vue b/src/views/eam/device/deviceMaintainOrderMain/index.vue new file mode 100644 index 0000000..5baa32f --- /dev/null +++ b/src/views/eam/device/deviceMaintainOrderMain/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/device/deviceMaintainPlan/deviceMaintainPlan.data.ts b/src/views/eam/device/deviceMaintainPlan/deviceMaintainPlan.data.ts new file mode 100644 index 0000000..d84cacd --- /dev/null +++ b/src/views/eam/device/deviceMaintainPlan/deviceMaintainPlan.data.ts @@ -0,0 +1,92 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const DeviceMaintainPlanRules = reactive({ + number: [required], + name: [required], + maintenanceType: [required], + type: [required], + concurrencyStamp: [required], +}) + +export const DeviceMaintainPlan = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '保养类型', + field: 'maintenanceType', + sort: 'custom', + form: { + component: 'SelectV2' + }, + }, + { + label: '设备执行周期、半年、年', + field: 'cycle', + sort: 'custom', + }, + { + label: '次数', + field: 'times', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/device/deviceMaintainPlan/index.vue b/src/views/eam/device/deviceMaintainPlan/index.vue new file mode 100644 index 0000000..6a979a6 --- /dev/null +++ b/src/views/eam/device/deviceMaintainPlan/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/device/deviceMaintenanceMain/deviceMaintenanceMain.data.ts b/src/views/eam/device/deviceMaintenanceMain/deviceMaintenanceMain.data.ts new file mode 100644 index 0000000..8b9e35d --- /dev/null +++ b/src/views/eam/device/deviceMaintenanceMain/deviceMaintenanceMain.data.ts @@ -0,0 +1,111 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const DeviceMaintenanceMainRules = reactive({ + number: [required], + requestNumber: [required], + deviceNumber: [required], + factoryAreaNumber: [required], + maintenance: [required], + status: [required], + type: [required], + siteId: [required], + concurrencyStamp: [required], +}) + +export const DeviceMaintenanceMain = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '报修工单申请号', + field: 'requestNumber', + sort: 'custom', + }, + { + label: '描述', + field: 'describe', + sort: 'custom', + }, + { + label: '设备模具编号', + field: 'deviceNumber', + sort: 'custom', + }, + { + label: '厂区编号', + field: 'factoryAreaNumber', + sort: 'custom', + }, + { + label: '维修人', + field: 'maintenance', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '报修人联系电话', + field: 'maintenancePhone', + sort: 'custom', + }, + { + label: '状态', + field: 'status', + sort: 'custom', + isSearch: true, + form: { + component: 'Radio' + }, + }, + { + label: '类型设备', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/device/deviceMaintenanceMain/index.vue b/src/views/eam/device/deviceMaintenanceMain/index.vue new file mode 100644 index 0000000..6b31a56 --- /dev/null +++ b/src/views/eam/device/deviceMaintenanceMain/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/device/deviceRepair/deviceRepair.data.ts b/src/views/eam/device/deviceRepair/deviceRepair.data.ts new file mode 100644 index 0000000..6b63029 --- /dev/null +++ b/src/views/eam/device/deviceRepair/deviceRepair.data.ts @@ -0,0 +1,105 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const DeviceRepairRules = reactive({ + number: [required], + deviceNumber: [required], + factoryAreaNumber: [required], + declarer: [required], + faultType: [required], + type: [required], + available: [required], + concurrencyStamp: [required], +}) + +export const DeviceRepair = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '描述', + field: 'describe', + sort: 'custom', + }, + { + label: '设备模具编号', + field: 'deviceNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '厂区编号', + field: 'factoryAreaNumber', + sort: 'custom', + }, + { + label: '报修人', + field: 'declarer', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '报修人联系电话', + field: 'declarerPhone', + sort: 'custom', + }, + { + label: '故障类型枚举EM、CM、 PM', + field: 'faultType', + sort: 'custom', + form: { + component: 'SelectV2' + }, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/device/deviceRepair/index.vue b/src/views/eam/device/deviceRepair/index.vue new file mode 100644 index 0000000..44619f9 --- /dev/null +++ b/src/views/eam/device/deviceRepair/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/device/deviceSpotInspectionRecordMain/deviceSpotInspectionRecordMain.data.ts b/src/views/eam/device/deviceSpotInspectionRecordMain/deviceSpotInspectionRecordMain.data.ts new file mode 100644 index 0000000..2f2373a --- /dev/null +++ b/src/views/eam/device/deviceSpotInspectionRecordMain/deviceSpotInspectionRecordMain.data.ts @@ -0,0 +1,98 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const DeviceSpotInspectionRecordMainRules = reactive({ + number: [required], + deviceNumber: [required], + status: [required], + type: [required], + concurrencyStamp: [required], +}) + +export const DeviceSpotInspectionRecordMain = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '设备模具', + field: 'deviceNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '描述', + field: 'describe', + sort: 'custom', + }, + { + label: '维修人', + field: 'maintenance', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '维修人联系电话', + field: 'maintenancePhone', + sort: 'custom', + }, + { + label: '状态', + field: 'status', + sort: 'custom', + isSearch: true, + form: { + component: 'Radio' + }, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/device/deviceSpotInspectionRecordMain/index.vue b/src/views/eam/device/deviceSpotInspectionRecordMain/index.vue new file mode 100644 index 0000000..6cfd1c4 --- /dev/null +++ b/src/views/eam/device/deviceSpotInspectionRecordMain/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/mold/moldAccounts/index.vue b/src/views/eam/mold/moldAccounts/index.vue new file mode 100644 index 0000000..45ec5f9 --- /dev/null +++ b/src/views/eam/mold/moldAccounts/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/mold/moldAccounts/moldAccounts.data.ts b/src/views/eam/mold/moldAccounts/moldAccounts.data.ts new file mode 100644 index 0000000..631907e --- /dev/null +++ b/src/views/eam/mold/moldAccounts/moldAccounts.data.ts @@ -0,0 +1,160 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const MoldAccountsRules = reactive({ + number: [required], + name: [required], + factoryAreaNumber: [required], + purchaseTime: [required], + deptId: [required], + purchaser: [required], + supplierNumber: [required], + concurrencyStamp: [required], +}) + +export const MoldAccounts = useCrudSchemas(reactive([ + { + label: '编号', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '规格型号', + field: 'specification', + sort: 'custom', + }, + { + label: '模具类型', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '所属厂区编号', + field: 'factoryAreaNumber', + sort: 'custom', + }, + { + label: '采购时间', + field: 'purchaseTime', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '采购部门', + field: 'deptId', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '采购人', + field: 'purchaser', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '供应商编号', + field: 'supplierNumber', + sort: 'custom', + }, + { + label: '出厂日期', + field: 'productionDate', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '购买价格', + field: 'purchasePrice', + sort: 'custom', + }, + { + label: '是否客户资产TRUE/FALSE', + field: 'isClientAssets', + sort: 'custom', + }, + { + label: '生产次数 用来产生保养计划,保养计划完成后归零。', + field: 'frequency', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '节拍 生产一个零件所需时间,对系统没影响', + field: 'beat', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/mold/moldInspectionMain/index.vue b/src/views/eam/mold/moldInspectionMain/index.vue new file mode 100644 index 0000000..25939f7 --- /dev/null +++ b/src/views/eam/mold/moldInspectionMain/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/mold/moldInspectionMain/moldInspectionMain.data.ts b/src/views/eam/mold/moldInspectionMain/moldInspectionMain.data.ts new file mode 100644 index 0000000..2ed1c14 --- /dev/null +++ b/src/views/eam/mold/moldInspectionMain/moldInspectionMain.data.ts @@ -0,0 +1,110 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const MoldInspectionMainRules = reactive({ + number: [required], + maintenanceNumber: [required], + deviceNumber: [required], + factoryAreaNumber: [required], + status: [required], + type: [required], + concurrencyStamp: [required], +}) + +export const MoldInspectionMain = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '维修工单号', + field: 'maintenanceNumber', + sort: 'custom', + }, + { + label: '设备模具', + field: 'deviceNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '厂区编号', + field: 'factoryAreaNumber', + sort: 'custom', + }, + { + label: '描述', + field: 'describe', + sort: 'custom', + }, + { + label: '维修人', + field: 'maintenance', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '维修人联系电话', + field: 'maintenancePhone', + sort: 'custom', + }, + { + label: '状态', + field: 'status', + sort: 'custom', + isSearch: true, + form: { + component: 'Radio' + }, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/mold/moldMaintainOrderMain/index.vue b/src/views/eam/mold/moldMaintainOrderMain/index.vue new file mode 100644 index 0000000..0004be0 --- /dev/null +++ b/src/views/eam/mold/moldMaintainOrderMain/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/mold/moldMaintainOrderMain/moldMaintainOrderMain.data.ts b/src/views/eam/mold/moldMaintainOrderMain/moldMaintainOrderMain.data.ts new file mode 100644 index 0000000..5284e00 --- /dev/null +++ b/src/views/eam/mold/moldMaintainOrderMain/moldMaintainOrderMain.data.ts @@ -0,0 +1,177 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const MoldMaintainOrderMainRules = reactive({ + number: [required], + name: [required], + planNumber: [required], + deviceNumber: [required], + factoryAreaNumber: [required], + status: [required], + type: [required], + concurrencyStamp: [required], +}) + +export const MoldMaintainOrderMain = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '保养计划单号', + field: 'planNumber', + sort: 'custom', + }, + { + label: '设备/模具编号', + field: 'deviceNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '厂区编号', + field: 'factoryAreaNumber', + sort: 'custom', + }, + { + label: '工程师id', + field: 'engineer', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '接单时间', + field: 'receiveTime', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '指派时间', + field: 'assignTime', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '工程师id', + field: 'worker', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '完成时间', + field: 'finishedTime', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '验证时间', + field: 'verifyTime', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '状态', + field: 'status', + sort: 'custom', + isSearch: true, + form: { + component: 'Radio' + }, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + 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')] + } + }, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/mold/moldMaintainPlan/index.vue b/src/views/eam/mold/moldMaintainPlan/index.vue new file mode 100644 index 0000000..147997e --- /dev/null +++ b/src/views/eam/mold/moldMaintainPlan/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/mold/moldMaintainPlan/moldMaintainPlan.data.ts b/src/views/eam/mold/moldMaintainPlan/moldMaintainPlan.data.ts new file mode 100644 index 0000000..e170316 --- /dev/null +++ b/src/views/eam/mold/moldMaintainPlan/moldMaintainPlan.data.ts @@ -0,0 +1,92 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const MoldMaintainPlanRules = reactive({ + number: [required], + name: [required], + maintenanceType: [required], + type: [required], + concurrencyStamp: [required], +}) + +export const MoldMaintainPlan = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '保养类型', + field: 'maintenanceType', + sort: 'custom', + form: { + component: 'SelectV2' + }, + }, + { + label: '设备执行周期、半年、年', + field: 'cycle', + sort: 'custom', + }, + { + label: '次数', + field: 'times', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/mold/moldMaintenanceMain/index.vue b/src/views/eam/mold/moldMaintenanceMain/index.vue new file mode 100644 index 0000000..d12672c --- /dev/null +++ b/src/views/eam/mold/moldMaintenanceMain/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/mold/moldMaintenanceMain/moldMaintenanceMain.data.ts b/src/views/eam/mold/moldMaintenanceMain/moldMaintenanceMain.data.ts new file mode 100644 index 0000000..bdd66a1 --- /dev/null +++ b/src/views/eam/mold/moldMaintenanceMain/moldMaintenanceMain.data.ts @@ -0,0 +1,111 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const MoldMaintenanceMainRules = reactive({ + number: [required], + requestNumber: [required], + deviceNumber: [required], + factoryAreaNumber: [required], + maintenance: [required], + status: [required], + type: [required], + siteId: [required], + concurrencyStamp: [required], +}) + +export const MoldMaintenanceMain = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '报修工单申请号', + field: 'requestNumber', + sort: 'custom', + }, + { + label: '描述', + field: 'describe', + sort: 'custom', + }, + { + label: '设备模具编号', + field: 'deviceNumber', + sort: 'custom', + }, + { + label: '厂区编号', + field: 'factoryAreaNumber', + sort: 'custom', + }, + { + label: '维修人', + field: 'maintenance', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '报修人联系电话', + field: 'maintenancePhone', + sort: 'custom', + }, + { + label: '状态', + field: 'status', + sort: 'custom', + isSearch: true, + form: { + component: 'Radio' + }, + }, + { + label: '类型设备', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/mold/moldRepair/index.vue b/src/views/eam/mold/moldRepair/index.vue new file mode 100644 index 0000000..4ed93ae --- /dev/null +++ b/src/views/eam/mold/moldRepair/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/mold/moldRepair/moldRepair.data.ts b/src/views/eam/mold/moldRepair/moldRepair.data.ts new file mode 100644 index 0000000..c4dcf34 --- /dev/null +++ b/src/views/eam/mold/moldRepair/moldRepair.data.ts @@ -0,0 +1,105 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const MoldRepairRules = reactive({ + number: [required], + deviceNumber: [required], + factoryAreaNumber: [required], + declarer: [required], + faultType: [required], + type: [required], + available: [required], + concurrencyStamp: [required], +}) + +export const MoldRepair = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '描述', + field: 'describe', + sort: 'custom', + }, + { + label: '设备模具编号', + field: 'deviceNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '厂区编号', + field: 'factoryAreaNumber', + sort: 'custom', + }, + { + label: '报修人', + field: 'declarer', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '报修人联系电话', + field: 'declarerPhone', + sort: 'custom', + }, + { + label: '故障类型枚举EM、CM、 PM', + field: 'faultType', + sort: 'custom', + form: { + component: 'SelectV2' + }, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +]))