diff --git a/src/api/eam/basic/fixedAssetsControlsHistory/index.ts b/src/api/eam/basic/fixedAssetsControlsHistory/index.ts new file mode 100644 index 0000000..618d52c --- /dev/null +++ b/src/api/eam/basic/fixedAssetsControlsHistory/index.ts @@ -0,0 +1,59 @@ +import request from '@/config/axios' + +export interface FixedAssetsControlsHistoryVO { + number: string + name: string + accountingUnit: string + specifications: string + locationNumber: string + beginUseDate: Date + supplierNumber: string + productionDate: Date + manageDept: string + unit: string + qty: number + costSubjectDesc: string + user: string + status: string +} + +// 查询固定资产表操作记录列表 +export const getFixedAssetsControlsHistoryPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/fixed-assets-controls-history/senior', data }) + } else { + return await request.get({ url: `/eam/fixed-assets-controls-history/page`, params }) + } +} + +// 查询固定资产表操作记录详情 +export const getFixedAssetsControlsHistory = async (id: number) => { + return await request.get({ url: `/eam/fixed-assets-controls-history/get?id=` + id }) +} + +// 新增固定资产表操作记录 +export const createFixedAssetsControlsHistory = async (data: FixedAssetsControlsHistoryVO) => { + return await request.post({ url: `/eam/fixed-assets-controls-history/create`, data }) +} + +// 修改固定资产表操作记录 +export const updateFixedAssetsControlsHistory = async (data: FixedAssetsControlsHistoryVO) => { + return await request.put({ url: `/eam/fixed-assets-controls-history/update`, data }) +} + +// 删除固定资产表操作记录 +export const deleteFixedAssetsControlsHistory = async (id: number) => { + return await request.delete({ url: `/eam/fixed-assets-controls-history/delete?id=` + id }) +} + +// 导出固定资产表操作记录 Excel +export const exportFixedAssetsControlsHistory = async (params) => { + return await request.download({ url: `/eam/fixed-assets-controls-history/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/fixed-assets-controls-history/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts b/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts index c1a39ec..fe686d5 100644 --- a/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts +++ b/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts @@ -62,6 +62,12 @@ export const DeviceMaintenance = useCrudSchemas(reactive([ } } }, + { + label: '设备保养部位', + field: 'equipmentParts', + sort: 'custom', + isSearch: false, + }, { label: '设备编号', field: 'deviceNumber', diff --git a/src/views/eam/basic/fixedAssetsControlsHistory/fixedAssetsControlsHistory.data.ts b/src/views/eam/basic/fixedAssetsControlsHistory/fixedAssetsControlsHistory.data.ts new file mode 100644 index 0000000..4c1daec --- /dev/null +++ b/src/views/eam/basic/fixedAssetsControlsHistory/fixedAssetsControlsHistory.data.ts @@ -0,0 +1,143 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const FixedAssetsControlsHistoryRules = reactive({ + number: [required], + name: [required], +}) + +export const FixedAssetsControlsHistory = useCrudSchemas(reactive([ + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true, + }, + { + label: '操作类型', + field: 'type', + sort: 'custom', + table: { + width: '150', + }, + isSearch: true, + isTable: true, + dictType: DICT_TYPE.SYSTEM_OPERATE_TYPE, + dictClass: 'string' + }, + { + label: '操作人', + field: 'createName', + sort: 'custom', + table: { + width: '150', + }, + isSearch: false, + isTable: true, + + }, + { + label: '资产名称', + field: 'name', + sort: 'custom', + isSearch: true, + }, + { + label: '会计单位', + field: 'accountingUnit', + sort: 'custom', + }, + { + label: '规格型号', + field: 'specifications', + sort: 'custom', + }, + { + label: '库位编号', + field: 'locationNumber', + sort: 'custom', + }, + { + label: '投入使用时间', + field: 'beginUseDate', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '供应商编号', + field: 'supplierNumber', + sort: 'custom', + }, + { + label: '出厂日期', + field: 'productionDate', + sort: 'custom', + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '管理部门', + field: 'manageDept', + sort: 'custom', + }, + { + label: '单位', + field: 'unit', + sort: 'custom', + }, + { + label: '数量', + field: 'qty', + sort: 'custom', + }, + { + label: '期间费用科目描述', + field: 'costSubjectDesc', + sort: 'custom', + }, + { + label: '使用人', + field: 'user', + sort: 'custom', + }, + // { + // label: '状态', + // field: 'status', + // sort: 'custom', + // form: { + // component: 'Radio' + // }, + // }, + { + label: '操作时间', + field: 'createTime', + sort: 'custom', + isSearch:false, + formatter: dateFormatter, + isForm: false, + }, + { + label: '操作', + field: 'action', + isForm: false, + isTable:false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/basic/fixedAssetsControlsHistory/index.vue b/src/views/eam/basic/fixedAssetsControlsHistory/index.vue new file mode 100644 index 0000000..07ced84 --- /dev/null +++ b/src/views/eam/basic/fixedAssetsControlsHistory/index.vue @@ -0,0 +1,235 @@ + + + diff --git a/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts b/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts index c48c0e2..401a1c1 100644 --- a/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts +++ b/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts @@ -60,6 +60,11 @@ export const MoldMaintenance = useCrudSchemas(reactive([ disabled: true, } } + },{ + label: '模具保养部位', + field: 'equipmentParts', + sort: 'custom', + isSearch: false, }, { label: '模具编号', diff --git a/src/views/eam/device/devicemaintainjob/deviceMaintainOrderMain.data.ts b/src/views/eam/device/devicemaintainjob/deviceMaintainOrderMain.data.ts index 9f2a7ca..e904e46 100644 --- a/src/views/eam/device/devicemaintainjob/deviceMaintainOrderMain.data.ts +++ b/src/views/eam/device/devicemaintainjob/deviceMaintainOrderMain.data.ts @@ -455,6 +455,12 @@ export const DeviceMaintainOrderDetail = useCrudSchemas(reactive([ } } }, + { + label: '设备保养部位', + field: 'equipmentParts', + sort: 'custom', + isSearch: false, + }, { label: '备件', field: 'itemNumbers1', diff --git a/src/views/eam/item/itemAccounts/itemAccounts.data.ts b/src/views/eam/item/itemAccounts/itemAccounts.data.ts index 3e49af6..73fc7ab 100644 --- a/src/views/eam/item/itemAccounts/itemAccounts.data.ts +++ b/src/views/eam/item/itemAccounts/itemAccounts.data.ts @@ -19,32 +19,38 @@ export const ItemAccounts = useCrudSchemas(reactive([ fixed: 'left' }, }, + { - label: '备件名称', - field: 'name', + label: '库位编号', + field: 'locationNumber', sort: 'custom', table: { width: 110 }, - isSearch: false, }, - { - label: '库位编号', - field: 'locationNumber', + label: '库区编号', + field: 'areaNumber', sort: 'custom', table: { width: 110 }, }, { - label: '库区编号', - field: 'areaNumber', + label: '备件名称', + field: 'name', sort: 'custom', table: { width: 110 }, + isSearch: false, + }, + { + label: '规格', + field: 'specifications', + sort: 'custom', }, + { label: '库存数量', field: 'qty', @@ -78,11 +84,7 @@ export const ItemAccounts = useCrudSchemas(reactive([ } } }, - { - label: '规格', - field: 'specifications', - sort: 'custom', - }, + { label: '是否常储', field: 'isConstant', diff --git a/src/views/eam/mold/moldmaintainjob/moldMaintainOrderMain.data.ts b/src/views/eam/mold/moldmaintainjob/moldMaintainOrderMain.data.ts index 64393a2..5b27118 100644 --- a/src/views/eam/mold/moldmaintainjob/moldMaintainOrderMain.data.ts +++ b/src/views/eam/mold/moldmaintainjob/moldMaintainOrderMain.data.ts @@ -496,6 +496,12 @@ export const MoldMaintainOrderDetail = useCrudSchemas(reactive([ } } }, + { + label: '模具保养部位', + field: 'equipmentParts', + sort: 'custom', + isSearch: false, + }, { label: '备件', field: 'itemNumbers1',