From 68afbb4aa68a487610b27d73371ce25210922fb5 Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Wed, 22 May 2024 13:13:10 +0800 Subject: [PATCH 1/9] =?UTF-8?q?EAM=20=E2=80=94=E2=80=94>=20=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E6=95=B0=E6=8D=AE=20=20=E5=A4=87=E4=BB=B6=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/sparePart/index.ts | 36 ++-- src/views/eam/sparePart/index.vue | 4 +- src/views/eam/sparePart/sparePart.data.ts | 224 ++++++++++++---------- 3 files changed, 140 insertions(+), 124 deletions(-) diff --git a/src/api/eam/sparePart/index.ts b/src/api/eam/sparePart/index.ts index 8ae1f345a..58ef9f2bc 100644 --- a/src/api/eam/sparePart/index.ts +++ b/src/api/eam/sparePart/index.ts @@ -7,23 +7,19 @@ export interface SparePartVO { brand: string specifications: string isOverall: string - isConstant: string subject: string subjectCode: string - category: string + type: string + images: string region: string classification: string uom: string singlePrice: number - stockAge: number - reprocurement: number - safetyStock: number - cost: string - purchaser: string - financer: string - purchaseTime: Date - isFramework: string - isRadeIn: string + manufacturer: string + minInventory: number + maxInventory: number + replacementCycle: number + storageLocation: string departmentCode: string remark: string siteId: string @@ -38,38 +34,38 @@ export const getSparePartPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/eam/sparepart/spare-part/senior', data }) + return await request.post({ url: '/eam/basic/spare-part/senior', data }) } else { - return await request.get({ url: `/eam/sparepart/spare-part/page`, params }) + return await request.get({ url: `/eam/basic/spare-part/page`, params }) } } // 查询备件基础详情 export const getSparePart = async (id: number) => { - return await request.get({ url: `/eam/sparepart/spare-part/get?id=` + id }) + return await request.get({ url: `/eam/basic/spare-part/get?id=` + id }) } // 新增备件基础 export const createSparePart = async (data: SparePartVO) => { - return await request.post({ url: `/eam/sparepart/spare-part/create`, data }) + return await request.post({ url: `/eam/basic/spare-part/create`, data }) } // 修改备件基础 export const updateSparePart = async (data: SparePartVO) => { - return await request.put({ url: `/eam/sparepart/spare-part/update`, data }) + return await request.put({ url: `/eam/basic/spare-part/update`, data }) } // 删除备件基础 export const deleteSparePart = async (id: number) => { - return await request.delete({ url: `/eam/sparepart/spare-part/delete?id=` + id }) + return await request.delete({ url: `/eam/basic/spare-part/delete?id=` + id }) } // 导出备件基础 Excel export const exportSparePart = async (params) => { - return await request.download({ url: `/eam/sparepart/spare-part/export-excel`, params }) + return await request.download({ url: `/eam/basic/spare-part/export-excel`, params }) } // 下载用户导入模板 export const importTemplate = () => { - return request.download({ url: '/eam/sparepart/spare-part/get-import-template' }) -} \ No newline at end of file + return request.download({ url: '/eam/basic/spare-part/get-import-template' }) +} diff --git a/src/views/eam/sparePart/index.vue b/src/views/eam/sparePart/index.vue index 3471dd480..0c59357eb 100644 --- a/src/views/eam/sparePart/index.vue +++ b/src/views/eam/sparePart/index.vue @@ -54,7 +54,7 @@ - + + + diff --git a/src/views/wms/countManage/count/countJobMain/index.vue b/src/views/wms/countManage/count/countJobMain/index.vue index ba882335d..91cd63903 100644 --- a/src/views/wms/countManage/count/countJobMain/index.vue +++ b/src/views/wms/countManage/count/countJobMain/index.vue @@ -64,6 +64,19 @@ :searchTableParams="searchTableParams" :apiPage="CountJobDetailApi.getCountJobDetailPage" /> + + + +