diff --git a/src/api/eam/basic/deviceMoldItems/index.ts b/src/api/eam/basic/deviceMoldItems/index.ts new file mode 100644 index 0000000..b882112 --- /dev/null +++ b/src/api/eam/basic/deviceMoldItems/index.ts @@ -0,0 +1,49 @@ +import request from '@/config/axios' + +export interface DeviceMoldItemsVO { + name: string + deviceNumber: string + type: string + status: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询项记录表(设备 模具 保养 维修 巡检点检)列表 +export const getDeviceMoldItemsPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-mold-items/senior', data }) + } else { + return await request.get({ url: `/eam/device-mold-items/page`, params }) + } +} + +// 查询项记录表(设备 模具 保养 维修 巡检点检)详情 +export const getDeviceMoldItems = async (id: number) => { + return await request.get({ url: `/eam/device-mold-items/get?id=` + id }) +} + +// 新增项记录表(设备 模具 保养 维修 巡检点检) +export const createDeviceMoldItems = async (data: DeviceMoldItemsVO) => { + return await request.post({ url: `/eam/device-mold-items/create`, data }) +} + +// 修改项记录表(设备 模具 保养 维修 巡检点检) +export const updateDeviceMoldItems = async (data: DeviceMoldItemsVO) => { + return await request.put({ url: `/eam/device-mold-items/update`, data }) +} + +// 删除项记录表(设备 模具 保养 维修 巡检点检) +export const deleteDeviceMoldItems = async (id: number) => { + return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id }) +} + +// 导出项记录表(设备 模具 保养 维修 巡检点检) Excel +export const exportDeviceMoldItems = async (params) => { + return await request.download({ url: `/eam/device-mold-items/export-excel`, params }) +} + + diff --git a/src/api/eam/basic/item/index.ts b/src/api/eam/basic/item/index.ts new file mode 100644 index 0000000..7334a8d --- /dev/null +++ b/src/api/eam/basic/item/index.ts @@ -0,0 +1,64 @@ +import request from '@/config/axios' + +export interface ItemVO { + number: string + name: string + brand: string + specifications: string + isConstant: string + subject: string + classification: string + uom: string + singlePrice: number + reprocurement: number + safetyStock: number + cost: string + purchaser: string + financer: string + isFramework: string + isRadeIn: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询备件列表 +export const getItemPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/item/senior', data }) + } else { + return await request.get({ url: `/eam/item/page`, params }) + } +} + +// 查询备件详情 +export const getItem = async (id: number) => { + return await request.get({ url: `/eam/item/get?id=` + id }) +} + +// 新增备件 +export const createItem = async (data: ItemVO) => { + return await request.post({ url: `/eam/item/create`, data }) +} + +// 修改备件 +export const updateItem = async (data: ItemVO) => { + return await request.put({ url: `/eam/item/update`, data }) +} + +// 删除备件 +export const deleteItem = async (id: number) => { + return await request.delete({ url: `/eam/item/delete?id=` + id }) +} + +// 导出备件 Excel +export const exportItem = async (params) => { + return await request.download({ url: `/eam/item/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/item/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/basic/location/index.ts b/src/api/eam/basic/location/index.ts new file mode 100644 index 0000000..d898992 --- /dev/null +++ b/src/api/eam/basic/location/index.ts @@ -0,0 +1,54 @@ +import request from '@/config/axios' + +export interface LocationVO { + number: string + name: string + description: string + areaNumber: string + type: string + isInAccount: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询库位列表 +export const getLocationPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/location/senior', data }) + } else { + return await request.get({ url: `/eam/location/page`, params }) + } +} + +// 查询库位详情 +export const getLocation = async (id: number) => { + return await request.get({ url: `/eam/location/get?id=` + id }) +} + +// 新增库位 +export const createLocation = async (data: LocationVO) => { + return await request.post({ url: `/eam/location/create`, data }) +} + +// 修改库位 +export const updateLocation = async (data: LocationVO) => { + return await request.put({ url: `/eam/location/update`, data }) +} + +// 删除库位 +export const deleteLocation = async (id: number) => { + return await request.delete({ url: `/eam/location/delete?id=` + id }) +} + +// 导出库位 Excel +export const exportLocation = async (params) => { + return await request.download({ url: `/eam/location/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/location/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/basic/rel/index.ts b/src/api/eam/basic/rel/index.ts new file mode 100644 index 0000000..423311d --- /dev/null +++ b/src/api/eam/basic/rel/index.ts @@ -0,0 +1,46 @@ +import request from '@/config/axios' + +export interface DeviceItemVO { + itemNumber: string + deviceNumber: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询设备备件关系列表 +export const getDeviceItemPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/rel/device-item/senior', data }) + } else { + return await request.get({ url: `/rel/device-item/page`, params }) + } +} + +// 查询设备备件关系详情 +export const getDeviceItem = async (id: number) => { + return await request.get({ url: `/rel/device-item/get?id=` + id }) +} + +// 新增设备备件关系 +export const createDeviceItem = async (data: DeviceItemVO) => { + return await request.post({ url: `/rel/device-item/create`, data }) +} + +// 修改设备备件关系 +export const updateDeviceItem = async (data: DeviceItemVO) => { + return await request.put({ url: `/rel/device-item/update`, data }) +} + +// 删除设备备件关系 +export const deleteDeviceItem = async (id: number) => { + return await request.delete({ url: `/rel/device-item/delete?id=` + id }) +} + +// 导出设备备件关系 Excel +export const exportDeviceItem = async (params) => { + return await request.download({ url: `/rel/device-item/export-excel`, params }) +} + diff --git a/src/api/eam/basic/supplier/index.ts b/src/api/eam/basic/supplier/index.ts new file mode 100644 index 0000000..258939f --- /dev/null +++ b/src/api/eam/basic/supplier/index.ts @@ -0,0 +1,58 @@ +import request from '@/config/axios' + +export interface SupplierVO { + number: string + name: string + shortName: string + address: string + country: string + city: string + phone: string + fax: string + postId: string + contacts: string + available: string + remark: string + siteId: string +} + +// 查询供应商列表 +export const getSupplierPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/supplier/senior', data }) + } else { + return await request.get({ url: `/eam/supplier/page`, params }) + } +} + +// 查询供应商详情 +export const getSupplier = async (id: number) => { + return await request.get({ url: `/eam/supplier/get?id=` + id }) +} + +// 新增供应商 +export const createSupplier = async (data: SupplierVO) => { + return await request.post({ url: `/eam/supplier/create`, data }) +} + +// 修改供应商 +export const updateSupplier = async (data: SupplierVO) => { + return await request.put({ url: `/eam/supplier/update`, data }) +} + +// 删除供应商 +export const deleteSupplier = async (id: number) => { + return await request.delete({ url: `/eam/supplier/delete?id=` + id }) +} + +// 导出供应商 Excel +export const exportSupplier = async (params) => { + return await request.download({ url: `/eam/supplier/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/supplier/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/eam/basic/deviceItem/deviceItem.data.ts b/src/views/eam/basic/deviceItem/deviceItem.data.ts new file mode 100644 index 0000000..f863b05 --- /dev/null +++ b/src/views/eam/basic/deviceItem/deviceItem.data.ts @@ -0,0 +1,54 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' + +// 表单校验 +export const DeviceItemRules = reactive({ + itemNumber: [required], + deviceNumber: [required], + concurrencyStamp: [required], +}) + +export const DeviceItem = useCrudSchemas(reactive([ + { + label: '备件代码', + field: 'itemNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '设备代码', + field: 'deviceNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isSearch: true, + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + isSearch: true, + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/basic/deviceItem/index.vue b/src/views/eam/basic/deviceItem/index.vue new file mode 100644 index 0000000..c68e9b6 --- /dev/null +++ b/src/views/eam/basic/deviceItem/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/basic/deviceMoldItems/deviceMoldItems.data.ts b/src/views/eam/basic/deviceMoldItems/deviceMoldItems.data.ts new file mode 100644 index 0000000..9e47695 --- /dev/null +++ b/src/views/eam/basic/deviceMoldItems/deviceMoldItems.data.ts @@ -0,0 +1,79 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const DeviceMoldItemsRules = reactive({ + name: [required], + deviceNumber: [required], + type: [required], + status: [required], + concurrencyStamp: [required], +}) + +export const DeviceMoldItems = useCrudSchemas(reactive([ + { + label: '保养项名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '设备模具编号', + field: 'deviceNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '类型设备、模具枚举', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '项类型枚举维修、保养、巡检点检', + field: 'status', + 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' + } + } +])) \ No newline at end of file diff --git a/src/views/eam/basic/deviceMoldItems/index.vue b/src/views/eam/basic/deviceMoldItems/index.vue new file mode 100644 index 0000000..7f375bf --- /dev/null +++ b/src/views/eam/basic/deviceMoldItems/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/basic/item/index.vue b/src/views/eam/basic/item/index.vue new file mode 100644 index 0000000..dad4937 --- /dev/null +++ b/src/views/eam/basic/item/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/basic/item/item.data.ts b/src/views/eam/basic/item/item.data.ts new file mode 100644 index 0000000..5b0975f --- /dev/null +++ b/src/views/eam/basic/item/item.data.ts @@ -0,0 +1,130 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' + +// 表单校验 +export const ItemRules = reactive({ + number: [required], + name: [required], + uom: [required], + concurrencyStamp: [required], +}) + +export const Item = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '品牌', + field: 'brand', + sort: 'custom', + }, + { + label: '规格型号', + field: 'specifications', + sort: 'custom', + }, + { + label: '是否存储TRUE/FALSE', + field: 'isConstant', + sort: 'custom', + }, + { + label: '科目代码枚举工具、易耗品、备品备件、机物料', + field: 'subject', + sort: 'custom', + }, + { + label: '枚举分类 A、B、C', + field: 'classification', + sort: 'custom', + }, + { + label: '单位', + field: 'uom', + sort: 'custom', + }, + { + label: '单价', + field: 'singlePrice', + sort: 'custom', + }, + { + label: '重点采购', + field: 'reprocurement', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '安全库存', + field: 'safetyStock', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '成本中心', + field: 'cost', + sort: 'custom', + }, + { + label: '采购员', + field: 'purchaser', + sort: 'custom', + }, + { + label: '财务', + field: 'financer', + sort: 'custom', + }, + { + label: '是否框架协议TRUE/FALSE', + field: 'isFramework', + sort: 'custom', + }, + { + label: '是否以旧换新TRUE/FALSE', + field: 'isRadeIn', + sort: 'custom', + }, + { + 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/basic/location/index.vue b/src/views/eam/basic/location/index.vue new file mode 100644 index 0000000..4218c25 --- /dev/null +++ b/src/views/eam/basic/location/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/basic/location/location.data.ts b/src/views/eam/basic/location/location.data.ts new file mode 100644 index 0000000..bc972c7 --- /dev/null +++ b/src/views/eam/basic/location/location.data.ts @@ -0,0 +1,87 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' + +// 表单校验 +export const LocationRules = reactive({ + number: [required], + name: [required], + areaNumber: [required], + concurrencyStamp: [required], +}) + +export const Location = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '描述', + field: 'description', + sort: 'custom', + isSearch: true, + form: { + component: 'Editor', + componentProps: { + valueHtml: '', + height: 200 + } + }, + }, + { + label: '库区编号', + field: 'areaNumber', + sort: 'custom', + isSearch: true, + }, + { + label: '类型', + field: 'type', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + }, + }, + { + label: '是否账内账外默认TRUE账内FALSE账外', + field: 'isInAccount', + sort: 'custom', + isSearch: true, + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/basic/supplier/index.vue b/src/views/eam/basic/supplier/index.vue new file mode 100644 index 0000000..fc79ba3 --- /dev/null +++ b/src/views/eam/basic/supplier/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/basic/supplier/supplier.data.ts b/src/views/eam/basic/supplier/supplier.data.ts new file mode 100644 index 0000000..3776d90 --- /dev/null +++ b/src/views/eam/basic/supplier/supplier.data.ts @@ -0,0 +1,92 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' + +// 表单校验 +export const SupplierRules = reactive({ + number: [required], + name: [required], +}) + +export const Supplier = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '简称', + field: 'shortName', + sort: 'custom', + isSearch: true, + }, + { + label: '地址', + field: 'address', + sort: 'custom', + isSearch: true, + }, + { + label: '国家', + field: 'country', + sort: 'custom', + isSearch: true, + }, + { + label: '城市', + field: 'city', + sort: 'custom', + isSearch: true, + }, + { + label: '电话', + field: 'phone', + sort: 'custom', + isSearch: true, + }, + { + label: '传真', + field: 'fax', + sort: 'custom', + }, + { + label: '邮编', + field: 'postId', + sort: 'custom', + }, + { + label: '联系人', + field: 'contacts', + sort: 'custom', + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isSearch: true, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +]))