diff --git a/src/api/eam/item/index.ts b/src/api/eam/item/index.ts new file mode 100644 index 000000000..35d3e1086 --- /dev/null +++ b/src/api/eam/item/index.ts @@ -0,0 +1,80 @@ +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 genDevice = async (data) => { + return await request.post({ url: `/eam/item/genDevice`, data }) +} + +// 查询备件详情 +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 getItemList = async (params) => { + return await request.get({ url: `/eam/item/getListByNumber`, params }) +} + +// // 删除备件 +// export const getaaa = async () => { +// return await request.get({ url: `/eam/producePlan/produce`}) +// } + +// 备件不分页 + +export const getItemNoPage = async (params) => { + return await request.get({ url: `/eam/item/noPage`, params }) +} diff --git a/src/api/eam/itemAccounts/index.ts b/src/api/eam/itemAccounts/index.ts index 0ddd0da42..88fb3d16f 100644 --- a/src/api/eam/itemAccounts/index.ts +++ b/src/api/eam/itemAccounts/index.ts @@ -61,4 +61,3 @@ export const replaceLocation = async (data: Array) => { export const getItemAccountsNoPage = async (params) => { return await request.get({ url: `/eam/item-accounts/noPage`, params }) } - diff --git a/src/api/eam/itemApplyMain/index.ts b/src/api/eam/itemApplyMain/index.ts new file mode 100644 index 000000000..eeccb6e13 --- /dev/null +++ b/src/api/eam/itemApplyMain/index.ts @@ -0,0 +1,63 @@ +import request from '@/config/axios' + +export interface ItemApplyMainVO { + number: string + name: string + type: string + applyId: number + applyDeptId: number + approveId: number + approveTime: Date + outId: number + outTime: Date + siteId: string + available: string + concurrencyStamp: number +} + +// 查询备件申领记录主列表 +export const getItemApplyMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/item-apply-request-main/senior', data }) + } else { + return await request.get({ url: `/eam/item-apply-request-main/page`, params }) + } +} + +// 查询备件申领记录主详情 +export const getItemApplyMain = async (id: number) => { + return await request.get({ url: `/eam/item-apply-request-main/get?id=` + id }) +} + +// 新增备件申领记录主 +export const createItemApplyMain = async (data: ItemApplyMainVO) => { + return await request.post({ url: `/eam/item-apply-request-main/create`, data }) +} + +// 修改备件申领记录主 +export const updateItemApplyMain = async (data: ItemApplyMainVO) => { + return await request.put({ url: `/eam/item-apply-request-main/update`, data }) +} + +// 删除备件申领记录主 +export const deleteItemApplyMain = async (id: number) => { + return await request.delete({ url: `/eam/item-apply-request-main/delete?id=` + id }) +} + +// 撤销备件申领记录主 +export const backoutItemApplyMain = async (id: number) => { + return await request.get({ url: `/eam/item-apply-request-main/backout?id=` + id }) +} + + +// 导出备件申领记录主 Excel +export const exportItemApplyMain = async (params) => { + return await request.download({ url: `/eam/item-apply-request-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/item-apply-request-main/get-import-template' }) +} diff --git a/src/api/eam/location/index.ts b/src/api/eam/location/index.ts new file mode 100644 index 000000000..66eab6e12 --- /dev/null +++ b/src/api/eam/location/index.ts @@ -0,0 +1,55 @@ +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 getLocationNoPage = async (params) => { + return await request.get({ url: `/eam/location/noPage`, params }) +} diff --git a/src/api/eam/locationArea/index.ts b/src/api/eam/locationArea/index.ts new file mode 100644 index 000000000..e1dd72ead --- /dev/null +++ b/src/api/eam/locationArea/index.ts @@ -0,0 +1,48 @@ +import request from '@/config/axios' + +export interface LocationAreaVO { + number: string + name: string + description: string + type: string + siteId: string + available: string + concurrencyStamp: number +} + +// 查询库区列表 +export const getLocationAreaPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/location-area/senior', data }) + } else { + return await request.get({ url: `/eam/location-area/page`, params }) + } +} + +// 查询库区详情 +export const getLocationArea = async (id: number) => { + return await request.get({ url: `/eam/location-area/get?id=` + id }) +} + +// 新增库区 +export const createLocationArea = async (data: LocationAreaVO) => { + return await request.post({ url: `/eam/location-area/create`, data }) +} + +// 修改库区 +export const updateLocationArea = async (data: LocationAreaVO) => { + return await request.put({ url: `/eam/location-area/update`, data }) +} + +// 删除库区 +export const deleteLocationArea = async (id: number) => { + return await request.delete({ url: `/eam/location-area/delete?id=` + id }) +} + +// 导出库区 Excel +export const exportLocationArea = async (params) => { + return await request.download({ url: `/eam/location-area/export-excel`, params }) +} + diff --git a/src/api/eam/sparePartsApplyDetail/index.ts b/src/api/eam/sparePartsApplyDetail/index.ts deleted file mode 100644 index ae94831de..000000000 --- a/src/api/eam/sparePartsApplyDetail/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import request from '@/config/axios' - -export interface SparePartsApplyDetailVO { - id: number - number: string - masterId: number - sparePartsCode: string - isRadeIn: string - applyQty: number - currentQty: number - type: string - currentSinglePrice: number - equipmentCode: byte[] - jobNumber: byte[] - departmentCode: string - remark: string - siteId: string - available: string - deletionTime: Date - deleterId: byte[] - concurrencyStamp: number -} - -// 查询备件领用申请子列表 -export const getSparePartsApplyDetailPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = {...params} - return await request.post({ url: '/eam/spare-parts-apply-detail/senior', data }) - } else { - return await request.get({ url: `/eam/spare-parts-apply-detail/page`, params }) - } -} - -// 查询备件领用申请子详情 -export const getSparePartsApplyDetail = async (id: number) => { - return await request.get({ url: `/eam/spare-parts-apply-detail/get?id=` + id }) -} - -// 新增备件领用申请子 -export const createSparePartsApplyDetail = async (data: SparePartsApplyDetailVO) => { - return await request.post({ url: `/eam/spare-parts-apply-detail/create`, data }) -} - -// 修改备件领用申请子 -export const updateSparePartsApplyDetail = async (data: SparePartsApplyDetailVO) => { - return await request.put({ url: `/eam/spare-parts-apply-detail/update`, data }) -} - -// 删除备件领用申请子 -export const deleteSparePartsApplyDetail = async (id: number) => { - return await request.delete({ url: `/eam/spare-parts-apply-detail/delete?id=` + id }) -} - -// 导出备件领用申请子 Excel -export const exportSparePartsApplyDetail = async (params) => { - return await request.download({ url: `/eam/spare-parts-apply-detail/export-excel`, params }) -} - -// 下载用户导入模板 -export const importTemplate = () => { - return request.download({ url: '/eam/spare-parts-apply-detail/get-import-template' }) -} \ No newline at end of file diff --git a/src/api/eam/sparePartsApplyMain/index.ts b/src/api/eam/sparePartsApplyMain/index.ts deleted file mode 100644 index 80288a681..000000000 --- a/src/api/eam/sparePartsApplyMain/index.ts +++ /dev/null @@ -1,87 +0,0 @@ -import request from '@/config/axios' - -export interface SparePartsApplyMainVO { - id: number - number: string - description: string - applyDeptId: string - sumVal: number - status: string - applyer: string - approver: number - approveContent: string - approveTime: Date - autoExamine: string - autoAgree: string - directCreateRecord: string - departmentCode: string - remark: string - siteId: string - available: string - deletionTime: Date - deleterId: byte[] - concurrencyStamp: number -} - -// 查询备件领用申请列表 -export const getSparePartsApplyMainPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = { ...params } - return await request.post({ url: '/eam/spare-parts-apply-main/senior', data }) - } else { - return await request.get({ url: `/eam/spare-parts-apply-main/page`, params }) - } -} - -// 查询备件领用申请详情 -export const getSparePartsApplyMain = async (id: number) => { - return await request.get({ url: `/eam/spare-parts-apply-main/get?id=` + id }) -} - -// 新增备件领用申请 -export const createSparePartsApplyMain = async (data: SparePartsApplyMainVO) => { - return await request.post({ url: `/eam/spare-parts-apply-main/create`, data }) -} - -// 修改备件领用申请 -export const updateSparePartsApplyMain = async (data: SparePartsApplyMainVO) => { - return await request.put({ url: `/eam/spare-parts-apply-main/update`, data }) -} - -// 删除备件领用申请 -export const deleteSparePartsApplyMain = async (id: number) => { - return await request.delete({ url: `/eam/spare-parts-apply-main/delete?id=` + id }) -} - -// 导出备件领用申请 Excel -export const exportSparePartsApplyMain = async (params) => { - return await request.download({ url: `/eam/spare-parts-apply-main/export-excel`, params }) -} - -// 下载用户导入模板 -export const importTemplate = () => { - return request.download({ url: '/eam/spare-parts-apply-main/get-import-template' }) -} - -// 撤回 -export const cancelSparePartsApplyMain = async (id) => { - return await request.get({ url: `/eam/spare-parts-apply-main/cancel?id=` + id }) -} -// 审核 -export const submitSparePartsApplyMain = async (id) => { - return await request.get({ url: `/eam/spare-parts-apply-main/submitExamine?id=` + id }) -} -// 审核驳回 -export const rejectSparePartsApplyMain = async (id) => { - return await request.get({ url: `/eam/spare-parts-apply-main/reject?id=` + id }) -} -// 审核通过 -export const approveSparePartsApplyMain = async (data) => { - return await request.post({ url: `/eam/spare-parts-apply-main/approve`, data }) -} - -// 完成 -export const finishSparePartsApplyMain = async (id) => { - return await request.post({ url: `/eam/spare-parts-apply-main/finish?id=` + id }) -} diff --git a/src/api/eam/sparePartsInLocationDetail/index.ts b/src/api/eam/sparePartsInLocationDetail/index.ts deleted file mode 100644 index 827687a36..000000000 --- a/src/api/eam/sparePartsInLocationDetail/index.ts +++ /dev/null @@ -1,58 +0,0 @@ -import request from '@/config/axios' - -export interface SparePartsInLocationDetailVO { - id: number - number: string - masterId: number - sparePartsCode: string - isRadeIn: string - applyQty: number - departmentCode: string - remark: string - siteId: string - available: string - deletionTime: Date - deleterId: byte[] - concurrencyStamp: number -} - -// 查询备件入库记录子列表 -export const getSparePartsInLocationDetailPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = {...params} - return await request.post({ url: '/eam/spare-parts-in-location-detail/senior', data }) - } else { - return await request.get({ url: `/eam/spare-parts-in-location-detail/page`, params }) - } -} - -// 查询备件入库记录子详情 -export const getSparePartsInLocationDetail = async (id: number) => { - return await request.get({ url: `/eam/spare-parts-in-location-detail/get?id=` + id }) -} - -// 新增备件入库记录子 -export const createSparePartsInLocationDetail = async (data: SparePartsInLocationDetailVO) => { - return await request.post({ url: `/eam/spare-parts-in-location-detail/create`, data }) -} - -// 修改备件入库记录子 -export const updateSparePartsInLocationDetail = async (data: SparePartsInLocationDetailVO) => { - return await request.put({ url: `/eam/spare-parts-in-location-detail/update`, data }) -} - -// 删除备件入库记录子 -export const deleteSparePartsInLocationDetail = async (id: number) => { - return await request.delete({ url: `/eam/spare-parts-in-location-detail/delete?id=` + id }) -} - -// 导出备件入库记录子 Excel -export const exportSparePartsInLocationDetail = async (params) => { - return await request.download({ url: `/eam/spare-parts-in-location-detail/export-excel`, params }) -} - -// 下载用户导入模板 -export const importTemplate = () => { - return request.download({ url: '/eam/spare-parts-in-location-detail/get-import-template' }) -} \ No newline at end of file diff --git a/src/api/eam/sparePartsInLocationMain/index.ts b/src/api/eam/sparePartsInLocationMain/index.ts deleted file mode 100644 index 687d99a67..000000000 --- a/src/api/eam/sparePartsInLocationMain/index.ts +++ /dev/null @@ -1,91 +0,0 @@ -import request from '@/config/axios' - -export interface SparePartsInLocationMainVO { - id: number - number: string - theme: string - status: string - applyer: string - approver: number - approveContent: string - approveTime: Date - autoExamine: string - autoAgree: string - directCreateRecord: string - areaCode: string - locationCode: string - departmentCode: string - remark: string - siteId: string - available: string - deletionTime: Date - deleterId: byte[] - concurrencyStamp: number -} - -// 查询备件入库记录主列表 -export const getSparePartsInLocationMainPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = {...params} - return await request.post({ url: '/eam/spare-parts-in-location-main/senior', data }) - } else { - return await request.get({ url: `/eam/spare-parts-in-location-main/page`, params }) - } -} - -// 查询备件入库记录主详情 -export const getSparePartsInLocationMain = async (id: number) => { - return await request.get({ url: `/eam/spare-parts-in-location-main/get?id=` + id }) -} - -// 新增备件入库记录主 -export const createSparePartsInLocationMain = async (data: SparePartsInLocationMainVO) => { - return await request.post({ url: `/eam/spare-parts-in-location-main/create`, data }) -} - -// 修改备件入库记录主 -export const updateSparePartsInLocationMain = async (data: SparePartsInLocationMainVO) => { - return await request.put({ url: `/eam/spare-parts-in-location-main/update`, data }) -} - -// 删除备件入库记录主 -export const deleteSparePartsInLocationMain = async (id: number) => { - return await request.delete({ url: `/eam/spare-parts-in-location-main/delete?id=` + id }) -} - -// 导出备件入库记录主 Excel -export const exportSparePartsInLocationMain = async (params) => { - if (params.isSearch) { - const data = {...params} - return await request.downloadPost({ url: `/eam/spare-parts-in-location-main/export-excel-senior`, data }) - }else{ - return await request.download({ url: `/eam/spare-parts-in-location-main/export-excel`, params }) - } -} - -// 下载用户导入模板 -export const importTemplate = () => { - return request.download({ url: '/eam/spare-parts-in-location-main/get-import-template' }) -} - -// 撤回 -export const cancelSparePartsInLocation = async (id) => { - return await request.get({ url: `/eam/spare-parts-in-location-main/cancel?id=` + id }) -} -// 审核 -export const submitExamineSparePartsInLocation = async (id) => { - return await request.get({ url: `/eam/spare-parts-in-location-main/submitExamine?id=` + id }) -} -// 审核驳回 -export const rejectSparePartsInLocation = async (id) => { - return await request.get({ url: `/eam/spare-parts-in-location-main/reject?id=` + id }) -} -// 审核通过 -export const approveSparePartsInLocation = async (data) => { - return await request.post({ url: `/eam/spare-parts-in-location-main/approve`,data }) -} -// 完成 -export const finishSparePartsInLocation = async (id) => { - return await request.post({ url: `/eam/spare-parts-in-location-main/finish?id=` + id }) -} \ No newline at end of file diff --git a/src/api/eam/sparePartsInLocationRecordDetail/index.ts b/src/api/eam/sparePartsInLocationRecordDetail/index.ts deleted file mode 100644 index 9e4df6997..000000000 --- a/src/api/eam/sparePartsInLocationRecordDetail/index.ts +++ /dev/null @@ -1,58 +0,0 @@ -import request from '@/config/axios' - -export interface SparePartsInLocationDetailRecordVO { - id: number - number: string - masterId: number - sparePartsCode: string - isRadeIn: string - applyQty: number - departmentCode: string - remark: string - siteId: string - available: string - deletionTime: Date - deleterId: byte[] - concurrencyStamp: number -} - -// 查询备件入库记录子列表 -export const getSparePartsInLocationRecordDetailPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = {...params} - return await request.post({ url: '/eam/spare-parts-in-location-detail-record/senior', data }) - } else { - return await request.get({ url: `/eam/spare-parts-in-location-detail-record/page`, params }) - } -} - -// 查询备件入库记录子详情 -export const getSparePartsInLocationRecordDetail = async (id: number) => { - return await request.get({ url: `/eam/spare-parts-in-location-detail-record/get?id=` + id }) -} - -// 新增备件入库记录子 -export const createSparePartsInLocationRecordDetail= async (data: SparePartsInLocationDetailRecordVO) => { - return await request.post({ url: `/eam/spare-parts-in-location-detail-record/create`, data }) -} - -// 修改备件入库记录子 -export const updateSparePartsInLocationRecordDetail = async (data: SparePartsInLocationDetailRecordVO) => { - return await request.put({ url: `/eam/spare-parts-in-location-detail-record/update`, data }) -} - -// 删除备件入库记录子 -export const deleteSparePartsInLocationRecordDetail = async (id: number) => { - return await request.delete({ url: `/eam/spare-parts-in-location-detail-record/delete?id=` + id }) -} - -// 导出备件入库记录子 Excel -export const exportSparePartsInLocationRecordDetail = async (params) => { - return await request.download({ url: `/eam/spare-parts-in-location-detail-record/export-excel`, params }) -} - -// 下载用户导入模板 -export const importTemplate = () => { - return request.download({ url: '/eam/spare-parts-in-location-detail-record/get-import-template' }) -} \ No newline at end of file diff --git a/src/api/eam/sparePartsInLocationRecordMain/index.ts b/src/api/eam/sparePartsInLocationRecordMain/index.ts deleted file mode 100644 index 42c7616fe..000000000 --- a/src/api/eam/sparePartsInLocationRecordMain/index.ts +++ /dev/null @@ -1,72 +0,0 @@ -import request from '@/config/axios' - -export interface SparePartsInLocationMainRecordVO { - id: number - number: string - theme: string - status: string - applyer: string - approver: number - approveContent: string - approveTime: Date - autoExamine: string - autoAgree: string - directCreateRecord: string - areaCode: string - locationCode: string - departmentCode: string - remark: string - siteId: string - available: string - deletionTime: Date - deleterId: byte[] - concurrencyStamp: number -} - -// 查询备件入库记录主列表 -export const getSparePartsInLocationRecordMainPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = { ...params } - return await request.post({ url: '/eam/spare-parts-in-location-main-record/senior', data }) - } else { - return await request.get({ url: `/eam/spare-parts-in-location-main-record/page`, params }) - } -} - -// 查询备件入库记录主详情 -export const getSparePartsInLocationRecordMain = async (id: number) => { - return await request.get({ url: `/eam/spare-parts-in-location-main-record/get?id=` + id }) -} - -// 新增备件入库记录主 -export const createSparePartsInLocationRecordMain = async ( - data: SparePartsInLocationMainRecordVO -) => { - return await request.post({ url: `/eam/spare-parts-in-location-main-record/create`, data }) -} - -// 修改备件入库记录主 -export const updateSparePartsInLocationRecordMain = async ( - data: SparePartsInLocationMainRecordVO -) => { - return await request.put({ url: `/eam/spare-parts-in-location-main-record/update`, data }) -} - -// 删除备件入库记录主 -export const deleteSparePartsInLocationRecordMain= async (id: number) => { - return await request.delete({ url: `/eam/spare-parts-in-location-main-record/delete?id=` + id }) -} - -// 导出备件入库记录主 Excel -export const exportSparePartsInLocationRecordMain = async (params) => { - return await request.download({ - url: `/eam/spare-parts-in-location-main-record/export-excel`, - params - }) -} - -// 下载用户导入模板 -export const importTemplate = () => { - return request.download({ url: '/eam/spare-parts-in-location-main-record/get-import-template' }) -} diff --git a/src/api/eam/sparePartsOutLocationDetail/index.ts b/src/api/eam/sparePartsOutLocationDetail/index.ts deleted file mode 100644 index 16b9fe4cc..000000000 --- a/src/api/eam/sparePartsOutLocationDetail/index.ts +++ /dev/null @@ -1,61 +0,0 @@ -import request from '@/config/axios' - -export interface SparePartsOutLocationDetailVO { - id: number - number: string - masterId: number - sparePartsCode: string - isRadeIn: string - applyQty: number - departmentCode: string - remark: string - siteId: string - available: string - deletionTime: Date - deleterId: byte[] - concurrencyStamp: number -} - -// 查询备件入库记录子列表 -export const getSparePartsOutLocationDetailPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = { ...params } - return await request.post({ url: '/eam/spare-parts-out-location-detail/senior', data }) - } else { - return await request.get({ url: `/eam/spare-parts-out-location-detail/page`, params }) - } -} - -// 查询备件入库记录子详情 -export const getSparePartsOutLocationDetail = async (id: number) => { - return await request.get({ url: `/eam/spare-parts-out-location-detail/get?id=` + id }) -} - -// 新增备件入库记录子 -export const createSparePartsOutLocationDetail = async (data: SparePartsOutLocationDetailVO) => { - return await request.post({ url: `/eam/spare-parts-out-location-detail/create`, data }) -} - -// 修改备件入库记录子 -export const updateSparePartsOutLocationDetail = async (data: SparePartsOutLocationDetailVO) => { - return await request.put({ url: `/eam/spare-parts-out-location-detail/update`, data }) -} - -// 删除备件入库记录子 -export const deleteSparePartsOutLocationDetail = async (id: number) => { - return await request.delete({ url: `/eam/spare-parts-out-location-detail/delete?id=` + id }) -} - -// 导出备件入库记录子 Excel -export const exportSparePartsOutLocationDetail = async (params) => { - return await request.download({ - url: `/eam/spare-parts-out-location-detail/export-excel`, - params - }) -} - -// 下载用户导入模板 -export const importTemplate = () => { - return request.download({ url: '/eam/spare-parts-out-location-detail/get-import-template' }) -} diff --git a/src/api/eam/sparePartsOutLocationMain/index.ts b/src/api/eam/sparePartsOutLocationMain/index.ts deleted file mode 100644 index 101c1c430..000000000 --- a/src/api/eam/sparePartsOutLocationMain/index.ts +++ /dev/null @@ -1,81 +0,0 @@ -import request from '@/config/axios' - -export interface SparePartsOutLocationMainVO { - id: number - number: string - theme: string - status: string - applyer: string - approver: number - approveContent: string - approveTime: Date - autoExamine: string - autoAgree: string - directCreateRecord: string - areaCode: string - locationCode: string - departmentCode: string - remark: string - siteId: string - available: string - deletionTime: Date - deleterId: byte[] - concurrencyStamp: number -} - -// 查询备件入库记录主列表 -export const getSparePartsOutLocationMainPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = { ...params } - return await request.post({ url: '/eam/spare-parts-out-location-main/senior', data }) - } else { - return await request.get({ url: `/eam/spare-parts-out-location-main/page`, params }) - } -} - -// 查询备件入库记录主详情 -export const getSparePartsOutLocationMain = async (id: number) => { - return await request.get({ url: `/eam/spare-parts-out-location-main/get?id=` + id }) -} - -// 新增备件入库记录主 -export const createSparePartsOutLocationMain = async (data: SparePartsOutLocationMainVO) => { - return await request.post({ url: `/eam/spare-parts-out-location-main/create`, data }) -} - -// 修改备件入库记录主 -export const updateSparePartsOutLocationMain = async (data: SparePartsOutLocationMainVO) => { - return await request.put({ url: `/eam/spare-parts-out-location-main/update`, data }) -} - -// 删除备件入库记录主 -export const deleteSparePartsOutLocationMain = async (id: number) => { - return await request.delete({ url: `/eam/spare-parts-out-location-main/delete?id=` + id }) -} - -// 出库 -export const outSparePartsOutLocationMain = async (data) => { - return await request.post({ url: `/eam/spare-parts-out-location-main/out`, data }) -} - -// 导出备件入库记录主 Excel -export const exportSparePartsOutLocationMain = async (params) => { - if (params.isSearch) { - const data = { ...params } - return await request.downloadPost({ - url: `/eam/spare-parts-out-location-main/export-excel-senior`, - data - }) - } else { - return await request.download({ - url: `/eam/spare-parts-out-location-main/export-excel`, - params - }) - } -} - -// 下载用户导入模板 -export const importTemplate = () => { - return request.download({ url: '/eam/spare-parts-out-location-main/get-import-template' }) -} diff --git a/src/api/eam/sparePartsOutLocationRecordDetail/index.ts b/src/api/eam/sparePartsOutLocationRecordDetail/index.ts deleted file mode 100644 index c4ea46811..000000000 --- a/src/api/eam/sparePartsOutLocationRecordDetail/index.ts +++ /dev/null @@ -1,72 +0,0 @@ -import request from '@/config/axios' - -export interface SparePartsOutLocationRecordDetailVO { - id: number - number: string - theme: string - status: string - applyer: string - approver: number - approveContent: string - approveTime: Date - autoExamine: string - autoAgree: string - directCreateRecord: string - areaCode: string - locationCode: string - departmentCode: string - remark: string - siteId: string - available: string - deletionTime: Date - deleterId: byte[] - concurrencyStamp: number -} - -// 查询备件入库记录主列表 -export const getSparePartsOutLocationDetailRecordPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = { ...params } - return await request.post({ url: '/eam/spare-parts-in-location-main-record/senior', data }) - } else { - return await request.get({ url: `/eam/spare-parts-in-location-main-record/page`, params }) - } -} - -// 查询备件入库记录主详情 -export const getSparePartsOutLocationDetailRecord = async (id: number) => { - return await request.get({ url: `/eam/spare-parts-in-location-main-record/get?id=` + id }) -} - -// 新增备件入库记录主 -export const createSparePartsOutLocationDetailRecord = async ( - data: SparePartsInLocationMainRecordVO -) => { - return await request.post({ url: `/eam/spare-parts-in-location-main-record/create`, data }) -} - -// 修改备件入库记录主 -export const updateSparePartsOutLocationDetailRecord = async ( - data: SparePartsInLocationMainRecordVO -) => { - return await request.put({ url: `/eam/spare-parts-in-location-main-record/update`, data }) -} - -// 删除备件入库记录主 -export const deleteSparePartsOutLocationDetailRecord = async (id: number) => { - return await request.delete({ url: `/eam/spare-parts-in-location-main-record/delete?id=` + id }) -} - -// 导出备件入库记录主 Excel -export const exportSparePartsOutLocationDetailRecord = async (params) => { - return await request.download({ - url: `/eam/spare-parts-in-location-main-record/export-excel`, - params - }) -} - -// 下载用户导入模板 -export const importTemplate = () => { - return request.download({ url: '/eam/spare-parts-in-location-main-record/get-import-template' }) -} diff --git a/src/api/eam/sparePartsOutLocationRecordDetail/sparePartsOutLocationDetailRecord.js b/src/api/eam/sparePartsOutLocationRecordDetail/sparePartsOutLocationDetailRecord.js deleted file mode 100644 index 4e84a9429..000000000 --- a/src/api/eam/sparePartsOutLocationRecordDetail/sparePartsOutLocationDetailRecord.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/config/axios' - -// 创建领用出库记录子 -export function createSparePartsOutLocationRecordDetail(data) { - return request({ - url: '/eam/spare-parts-out-location-detail-record/create', - method: 'post', - data: data - }) -} - -// 更新领用出库记录子 -export function updateSparePartsOutLocationRecordDetail(data) { - return request({ - url: '/eam/spare-parts-out-location-detail-record/update', - method: 'put', - data: data - }) -} - -// 删除领用出库记录子 -export function deleteSparePartsOutLocationRecordDetail(id) { - return request({ - url: '/eam/spare-parts-out-location-detail-record/delete?id=' + id, - method: 'delete' - }) -} - -// 获得领用出库记录子 -export function getSparePartsOutLocationRecordDetail(id) { - return request({ - url: '/eam/spare-parts-out-location-detail-record/get?id=' + id, - method: 'get' - }) -} - -// 获得领用出库记录子分页 -export function getSparePartsOutLocationRecordDetailPage(query) { - return request({ - url: '/eam/spare-parts-out-location-detail-record/page', - method: 'get', - params: query - }) -} - -// 导出领用出库记录子 Excel -export function exportSparePartsOutLocationRecordDetailExcel(query) { - return request({ - url: '/eam/spare-parts-out-location-detail-record/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/api/eam/sparePartsOutLocationRecordMain/index.ts b/src/api/eam/sparePartsOutLocationRecordMain/index.ts deleted file mode 100644 index 4f075cce1..000000000 --- a/src/api/eam/sparePartsOutLocationRecordMain/index.ts +++ /dev/null @@ -1,71 +0,0 @@ -import request from '@/config/axios' - -export interface SparePartsOutLocationRecordMainVO { - id: number - number: string - theme: string - applyer: string - approver: number - approveContent: string - approveTime: Date - autoExamine: string - autoAgree: string - directCreateRecord: string - areaCode: string - locationCode: string - departmentCode: string - remark: string - siteId: string - available: string - deletionTime: Date - deleterId: byte[] - concurrencyStamp: number -} - -// 查询领用出库记录主列表 -export const getSparePartsOutLocationRecordMainPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = { ...params } - return await request.post({ url: '/eam/spare-parts-out-location-main-record/senior', data }) - } else { - return await request.get({ url: `/eam/spare-parts-out-location-main-record/page`, params }) - } -} - -// 查询领用出库记录主详情 -export const getSparePartsOutLocationRecordMain = async (id: number) => { - return await request.get({ url: `/eam/spare-parts-out-location-main-record/get?id=` + id }) -} - -// 新增领用出库记录主 -export const createSparePartsOutLocationRecordMain = async ( - data: SparePartsOutLocationRecordMainVO -) => { - return await request.post({ url: `/eam/spare-parts-out-location-main-record/create`, data }) -} - -// 修改领用出库记录主 -export const updateSparePartsOutLocationRecordMain = async ( - data: SparePartsOutLocationRecordMainVO -) => { - return await request.put({ url: `/eam/spare-parts-out-location-main-record/update`, data }) -} - -// 删除领用出库记录主 -export const deleteSparePartsOutLocationRecordMain = async (id: number) => { - return await request.delete({ url: `/eam/spare-parts-out-location-main-record/delete?id=` + id }) -} - -// 导出领用出库记录主 Excel -export const exportSparePartsOutLocationRecordMain = async (params) => { - return await request.download({ - url: `/eam/spare-parts-out-location-main-record/export-excel`, - params - }) -} - -// 下载用户导入模板 -export const importTemplate = () => { - return request.download({ url: '/eam/spare-parts-out-location-main-record/get-import-template' }) -} diff --git a/src/views/eam/SparePartsOutLocationRecord/index.vue b/src/views/eam/SparePartsOutLocationRecord/index.vue deleted file mode 100644 index 35ed57fbc..000000000 --- a/src/views/eam/SparePartsOutLocationRecord/index.vue +++ /dev/null @@ -1,374 +0,0 @@ - - - diff --git a/src/views/eam/applicationRecord/applicationRecordMain.data.ts b/src/views/eam/applicationRecord/applicationRecordMain.data.ts index c7d233246..0160659a8 100644 --- a/src/views/eam/applicationRecord/applicationRecordMain.data.ts +++ b/src/views/eam/applicationRecord/applicationRecordMain.data.ts @@ -1,8 +1,8 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' -import { ItemAccounts } from '@/views/eam/itemAccounts/itemAccounts.data' -import * as ItemAccountsApi from '@/api/eam/itemAccounts' -// import * as DeviceMoldItemsApi from '@/api/eam/basic/deviceMaintenance' +import { ItemAccounts } from '@/views/eam/item/itemAccounts/itemAccounts.data' +import * as ItemAccountsApi from '@/api/eam/item/itemAccounts' +import * as DeviceMoldItemsApi from '@/api/eam/basic/deviceMaintenance' import { validateHanset, validateEmail } from '@/utils/validator' const { t } = useI18n() // 国际化 @@ -154,30 +154,30 @@ export const ApplicationRecordDetail = useCrudSchemas(reactive([ }, - // { - // label: '设备/模具编号', - // field: 'deviceNumber', - // sort: 'custom', - // isSearch: true, - // tableForm: { - // isInpuFocusShow: true, - // searchListPlaceholder: '请选择单号', - // searchField: 'number', - // searchTitle: '单号信息', - // searchAllSchemas: DeviceMOLD.allSchemas, // 查询弹窗所需类 - // searchPage: DeviceMoldItemsApi.getNumber, // 查询弹窗所需分页方法 - // searchCondition: [{ - // key: 'available', - // value: "TRUE", - // isMainValue: false - // }, { - // key: 'type', - // value: "type", - // isMainValue: true - // } - // ] - // }, - // }, + { + label: '设备/模具编号', + field: 'deviceNumber', + sort: 'custom', + isSearch: true, + tableForm: { + isInpuFocusShow: true, + searchListPlaceholder: '请选择单号', + searchField: 'number', + searchTitle: '单号信息', + searchAllSchemas: DeviceMOLD.allSchemas, // 查询弹窗所需类 + searchPage: DeviceMoldItemsApi.getNumber, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: "TRUE", + isMainValue: false + }, { + key: 'type', + value: "type", + isMainValue: true + } + ] + }, + }, { label: '申领数量', field: 'qty', diff --git a/src/views/eam/applicationRecord/index.vue b/src/views/eam/applicationRecord/index.vue index f37e311d3..7e81e1ab7 100644 --- a/src/views/eam/applicationRecord/index.vue +++ b/src/views/eam/applicationRecord/index.vue @@ -1,371 +1,309 @@