Browse Source

更换访问路径

master
songguoqiang 7 months ago
parent
commit
c6151a5e73
  1. 26
      src/api/eam/basic/item/index.ts
  2. 18
      src/api/eam/basic/location/index.ts
  3. 16
      src/api/eam/basic/locationArea/index.ts
  4. 14
      src/api/eam/item/adjustRecordMain/index.ts
  5. 18
      src/api/eam/item/countJobMain/index.ts
  6. 20
      src/api/eam/item/countRecordMain/index.ts
  7. 16
      src/api/eam/item/countadjustPlan/index.ts
  8. 26
      src/api/eam/item/itemAccounts/index.ts
  9. 16
      src/api/eam/item/itemInLocation/index.ts
  10. 16
      src/api/eam/item/itemLocationReplace/index.ts
  11. 16
      src/api/eam/item/itemOutLocation/index.ts
  12. 16
      src/api/eam/item/transaction/index.ts
  13. 96
      src/api/eam/report/warning/index.ts
  14. 27
      src/views/eam/item/itemAccounts/itemAccounts.data.ts
  15. 15
      src/views/eam/item/itemLocationReplace/itemLocationReplace.data.ts
  16. 2
      src/views/eam/report/itemWarning/index.vue

26
src/api/eam/basic/item/index.ts

@ -27,9 +27,9 @@ export const getItemPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = { ...params } const data = { ...params }
return await request.post({ url: '/eam/item/senior', data }) return await request.post({ url: '/eam/basic/item/senior', data })
} else { } else {
return await request.get({ url: `/eam/item/page`, params }) return await request.get({ url: `/eam/basic/item/page`, params })
} }
} }
@ -38,45 +38,45 @@ export const getWarningPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = { ...params } const data = { ...params }
return await request.post({ url: '/eam/item/warningSenior', data }) return await request.post({ url: '/eam/basic/item/warningSenior', data })
} else { } else {
return await request.get({ url: `/eam/item/warningPage`, params }) return await request.get({ url: `/eam/basic/item/warningPage`, params })
} }
} }
// 生成标签 // 生成标签
export const genDevice = async (data) => { export const genDevice = async (data) => {
return await request.post({ url: `/eam/item/genDevice`, data }) return await request.post({ url: `/eam/basic/item/genDevice`, data })
} }
// 查询备件详情 // 查询备件详情
export const getItem = async (id : number) => { export const getItem = async (id : number) => {
return await request.get({ url: `/eam/item/get?id=` + id }) return await request.get({ url: `/eam/basic/item/get?id=` + id })
} }
// 新增备件 // 新增备件
export const createItem = async (data : ItemVO) => { export const createItem = async (data : ItemVO) => {
return await request.post({ url: `/eam/item/create`, data }) return await request.post({ url: `/eam/basic/item/create`, data })
} }
// 修改备件 // 修改备件
export const updateItem = async (data : ItemVO) => { export const updateItem = async (data : ItemVO) => {
return await request.put({ url: `/eam/item/update`, data }) return await request.put({ url: `/eam/basic/item/update`, data })
} }
// 删除备件 // 删除备件
export const deleteItem = async (id : number) => { export const deleteItem = async (id : number) => {
return await request.delete({ url: `/eam/item/delete?id=` + id }) return await request.delete({ url: `/eam/basic/item/delete?id=` + id })
} }
// 导出备件 Excel // 导出备件 Excel
export const exportItem = async (params) => { export const exportItem = async (params) => {
return await request.download({ url: `/eam/item/export-excel`, params }) return await request.download({ url: `/eam/basic/item/export-excel`, params })
} }
// 修改备件 // 修改备件
export const getItemList = async (params) => { export const getItemList = async (params) => {
return await request.get({ url: `/eam/item/getListByNumber`, params }) return await request.get({ url: `/eam/basic/item/getListByNumber`, params })
} }
// // 删除备件 // // 删除备件
@ -87,10 +87,10 @@ export const getItemList = async (params) => {
// 备件不分页 // 备件不分页
export const getItemNoPage = async (params) => { export const getItemNoPage = async (params) => {
return await request.get({ url: `/eam/item/noPage`, params }) return await request.get({ url: `/eam/basic/item/noPage`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/item/get-import-template' }) return request.download({ url: '/eam/basic/item/get-import-template' })
} }

18
src/api/eam/basic/location/index.ts

@ -17,43 +17,43 @@ export const getLocationPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/eam/location/senior', data }) return await request.post({ url: '/eam/basic/location/senior', data })
} else { } else {
return await request.get({ url: `/eam/location/page`, params }) return await request.get({ url: `/eam/basic/location/page`, params })
} }
} }
// 查询库位详情 // 查询库位详情
export const getLocation = async (id: number) => { export const getLocation = async (id: number) => {
return await request.get({ url: `/eam/location/get?id=` + id }) return await request.get({ url: `/eam/basic/location/get?id=` + id })
} }
// 新增库位 // 新增库位
export const createLocation = async (data: LocationVO) => { export const createLocation = async (data: LocationVO) => {
return await request.post({ url: `/eam/location/create`, data }) return await request.post({ url: `/eam/basic/location/create`, data })
} }
// 修改库位 // 修改库位
export const updateLocation = async (data: LocationVO) => { export const updateLocation = async (data: LocationVO) => {
return await request.put({ url: `/eam/location/update`, data }) return await request.put({ url: `/eam/basic/location/update`, data })
} }
// 删除库位 // 删除库位
export const deleteLocation = async (id: number) => { export const deleteLocation = async (id: number) => {
return await request.delete({ url: `/eam/location/delete?id=` + id }) return await request.delete({ url: `/eam/basic/location/delete?id=` + id })
} }
// 导出库位 Excel // 导出库位 Excel
export const exportLocation = async (params) => { export const exportLocation = async (params) => {
return await request.download({ url: `/eam/location/export-excel`, params }) return await request.download({ url: `/eam/basic/location/export-excel`, params })
} }
// 查询库位列表 // 查询库位列表
export const getLocationNoPage = async (params) => { export const getLocationNoPage = async (params) => {
return await request.get({ url: `/eam/location/noPage`, params }) return await request.get({ url: `/eam/basic/location/noPage`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/location/get-import-template' }) return request.download({ url: '/eam/basic/location/get-import-template' })
} }

16
src/api/eam/basic/locationArea/index.ts

@ -15,39 +15,39 @@ export const getLocationAreaPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/eam/location-area/senior', data }) return await request.post({ url: '/eam/basic/location-area/senior', data })
} else { } else {
return await request.get({ url: `/eam/location-area/page`, params }) return await request.get({ url: `/eam/basic/location-area/page`, params })
} }
} }
// 查询库区详情 // 查询库区详情
export const getLocationArea = async (id: number) => { export const getLocationArea = async (id: number) => {
return await request.get({ url: `/eam/location-area/get?id=` + id }) return await request.get({ url: `/eam/basic/location-area/get?id=` + id })
} }
// 新增库区 // 新增库区
export const createLocationArea = async (data: LocationAreaVO) => { export const createLocationArea = async (data: LocationAreaVO) => {
return await request.post({ url: `/eam/location-area/create`, data }) return await request.post({ url: `/eam/basic/location-area/create`, data })
} }
// 修改库区 // 修改库区
export const updateLocationArea = async (data: LocationAreaVO) => { export const updateLocationArea = async (data: LocationAreaVO) => {
return await request.put({ url: `/eam/location-area/update`, data }) return await request.put({ url: `/eam/basic/location-area/update`, data })
} }
// 删除库区 // 删除库区
export const deleteLocationArea = async (id: number) => { export const deleteLocationArea = async (id: number) => {
return await request.delete({ url: `/eam/location-area/delete?id=` + id }) return await request.delete({ url: `/eam/basic/location-area/delete?id=` + id })
} }
// 导出库区 Excel // 导出库区 Excel
export const exportLocationArea = async (params) => { export const exportLocationArea = async (params) => {
return await request.download({ url: `/eam/location-area/export-excel`, params }) return await request.download({ url: `/eam/basic/location-area/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/location-area/get-import-template' }) return request.download({ url: '/eam/basic/location-area/get-import-template' })
} }

14
src/api/eam/item/adjustRecordMain/index.ts

@ -14,33 +14,33 @@ export const getAdjustRecordMainPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/eam/adjustRecordMain/senior', data }) return await request.post({ url: '/eam/item/adjustRecordMain/senior', data })
} else { } else {
return await request.get({ url: `/eam/adjustRecordMain/page`, params }) return await request.get({ url: `/eam/item/adjustRecordMain/page`, params })
} }
} }
// 查询备件盘点调整记录主详情 // 查询备件盘点调整记录主详情
export const getAdjustRecordMain = async (id: number) => { export const getAdjustRecordMain = async (id: number) => {
return await request.get({ url: `/eam/adjustRecordMain/get?id=` + id }) return await request.get({ url: `/eam/item/adjustRecordMain/get?id=` + id })
} }
// 新增备件盘点调整记录主 // 新增备件盘点调整记录主
export const createAdjustRecordMain = async (data: AdjustRecordMainVO) => { export const createAdjustRecordMain = async (data: AdjustRecordMainVO) => {
return await request.post({ url: `/eam/adjustRecordMain/create`, data }) return await request.post({ url: `/eam/item/adjustRecordMain/create`, data })
} }
// 修改备件盘点调整记录主 // 修改备件盘点调整记录主
export const updateAdjustRecordMain = async (data: AdjustRecordMainVO) => { export const updateAdjustRecordMain = async (data: AdjustRecordMainVO) => {
return await request.put({ url: `/eam/adjustRecordMain/update`, data }) return await request.put({ url: `/eam/item/adjustRecordMain/update`, data })
} }
// 删除备件盘点调整记录主 // 删除备件盘点调整记录主
export const deleteAdjustRecordMain = async (id: number) => { export const deleteAdjustRecordMain = async (id: number) => {
return await request.delete({ url: `/eam/adjustRecordMain/delete?id=` + id }) return await request.delete({ url: `/eam/item/adjustRecordMain/delete?id=` + id })
} }
// 导出备件盘点调整记录主 Excel // 导出备件盘点调整记录主 Excel
export const exportAdjustRecordMain = async (params) => { export const exportAdjustRecordMain = async (params) => {
return await request.download({ url: `/eam/adjustRecordMain/export-excel`, params }) return await request.download({ url: `/eam/item/adjustRecordMain/export-excel`, params })
} }

18
src/api/eam/item/countJobMain/index.ts

@ -14,43 +14,43 @@ export const getCountJobMainPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = { ...params } const data = { ...params }
return await request.post({ url: '/eam/countJobMain/senior', data }) return await request.post({ url: '/eam/item/countJobMain/senior', data })
} else { } else {
return await request.get({ url: `/eam/countJobMain/page`, params }) return await request.get({ url: `/eam/item/countJobMain/page`, params })
} }
} }
// 查询备件盘点计划详情 // 查询备件盘点计划详情
export const getCountJobMain = async (id : number) => { export const getCountJobMain = async (id : number) => {
return await request.get({ url: `/eam/countJobMain/get?id=` + id }) return await request.get({ url: `/eam/item/countJobMain/get?id=` + id })
} }
// 新增备件盘点计划 // 新增备件盘点计划
export const createCountJobMain = async (data : CountJobMainVO) => { export const createCountJobMain = async (data : CountJobMainVO) => {
return await request.post({ url: `/eam/countJobMain/create`, data }) return await request.post({ url: `/eam/item/countJobMain/create`, data })
} }
// 修改备件盘点计划 // 修改备件盘点计划
export const updateCountJobMain = async (data : CountJobMainVO) => { export const updateCountJobMain = async (data : CountJobMainVO) => {
return await request.put({ url: `/eam/countJobMain/update`, data }) return await request.put({ url: `/eam/item/countJobMain/update`, data })
} }
// 删除备件盘点计划 // 删除备件盘点计划
export const deleteCountJobMain = async (id : number) => { export const deleteCountJobMain = async (id : number) => {
return await request.delete({ url: `/eam/countJobMain/delete?id=` + id }) return await request.delete({ url: `/eam/item/countJobMain/delete?id=` + id })
} }
// 导出备件盘点计划 Excel // 导出备件盘点计划 Excel
export const handleMainExport = async (id : number) => { export const handleMainExport = async (id : number) => {
return await request.download({ url: `/eam/countJobMain/handleMainExport?id=` + id }) return await request.download({ url: `/eam/item/countJobMain/handleMainExport?id=` + id })
} }
// 导出备件盘点计划 Excel // 导出备件盘点计划 Excel
export const exportCountJobMain = async (params) => { export const exportCountJobMain = async (params) => {
return await request.download({ url: `/eam/countJobMain/export-excel`, params }) return await request.download({ url: `/eam/item/countJobMain/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/countJobMain/get-import-template' }) return request.download({ url: '/eam/item/countJobMain/get-import-template' })
} }

20
src/api/eam/item/countRecordMain/index.ts

@ -15,47 +15,47 @@ export const getCountRecordMainPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = { ...params } const data = { ...params }
return await request.post({ url: '/eam/countRecordMain/senior', data }) return await request.post({ url: '/eam/item/countRecordMain/senior', data })
} else { } else {
return await request.get({ url: `/eam/countRecordMain/page`, params }) return await request.get({ url: `/eam/item/countRecordMain/page`, params })
} }
} }
// 查询备件盘点计划详情 // 查询备件盘点计划详情
export const getCountRecordMain = async (id : number) => { export const getCountRecordMain = async (id : number) => {
return await request.get({ url: `/eam/countRecordMain/get?id=` + id }) return await request.get({ url: `/eam/item/countRecordMain/get?id=` + id })
} }
// 新增备件盘点计划 // 新增备件盘点计划
export const createCountRecordMain = async (data : CountRecordMainVO) => { export const createCountRecordMain = async (data : CountRecordMainVO) => {
return await request.post({ url: `/eam/countRecordMain/create`, data }) return await request.post({ url: `/eam/item/countRecordMain/create`, data })
} }
// 修改备件盘点计划 // 修改备件盘点计划
export const updateCountRecordMain = async (data : CountRecordMainVO) => { export const updateCountRecordMain = async (data : CountRecordMainVO) => {
return await request.put({ url: `/eam/countRecordMain/update`, data }) return await request.put({ url: `/eam/item/countRecordMain/update`, data })
} }
// 删除备件盘点计划 // 删除备件盘点计划
export const deleteCountRecordMain = async (id : number) => { export const deleteCountRecordMain = async (id : number) => {
return await request.delete({ url: `/eam/countRecordMain/delete?id=` + id }) return await request.delete({ url: `/eam/item/countRecordMain/delete?id=` + id })
} }
// 盘点调整 // 盘点调整
export const adjustCountRecordMain = async (id : number) => { export const adjustCountRecordMain = async (id : number) => {
return await request.get({ url: `/eam/countRecordMain/adjust?number=` + id }) return await request.get({ url: `/eam/item/countRecordMain/adjust?number=` + id })
} }
// 导出备件盘点计划 Excel // 导出备件盘点计划 Excel
export const handleMainExport = async (id : number) => { export const handleMainExport = async (id : number) => {
return await request.download({ url: `/eam/countRecordMain/handleMainExport?id=` + id }) return await request.download({ url: `/eam/item/countRecordMain/handleMainExport?id=` + id })
} }
// 导出备件盘点计划 Excel // 导出备件盘点计划 Excel
export const exportCounRecordMain = async (params) => { export const exportCounRecordMain = async (params) => {
return await request.download({ url: `/eam/countRecordMain/export-excel`, params }) return await request.download({ url: `/eam/item/countRecordMain/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/countRecordMain/get-import-template' }) return request.download({ url: '/eam/item/countRecordMain/get-import-template' })
} }

16
src/api/eam/item/countadjustPlan/index.ts

@ -14,38 +14,38 @@ export const getCountadjustPlanPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = { ...params } const data = { ...params }
return await request.post({ url: '/eam/countadjust-plan/senior', data }) return await request.post({ url: '/eam/item/countadjust-plan/senior', data })
} else { } else {
return await request.get({ url: `/eam/countadjust-plan/page`, params }) return await request.get({ url: `/eam/item/countadjust-plan/page`, params })
} }
} }
// 查询备件盘点计划详情 // 查询备件盘点计划详情
export const getCountadjustPlan = async (id : number) => { export const getCountadjustPlan = async (id : number) => {
return await request.get({ url: `/eam/countadjust-plan/get?id=` + id }) return await request.get({ url: `/eam/item/countadjust-plan/get?id=` + id })
} }
// 新增备件盘点计划 // 新增备件盘点计划
export const createCountadjustPlan = async (data : CountadjustPlanVO) => { export const createCountadjustPlan = async (data : CountadjustPlanVO) => {
return await request.post({ url: `/eam/countadjust-plan/create`, data }) return await request.post({ url: `/eam/item/countadjust-plan/create`, data })
} }
// 修改备件盘点计划 // 修改备件盘点计划
export const updateCountadjustPlan = async (data : CountadjustPlanVO) => { export const updateCountadjustPlan = async (data : CountadjustPlanVO) => {
return await request.put({ url: `/eam/countadjust-plan/update`, data }) return await request.put({ url: `/eam/item/countadjust-plan/update`, data })
} }
// 删除备件盘点计划 // 删除备件盘点计划
export const deleteCountadjustPlan = async (id : number) => { export const deleteCountadjustPlan = async (id : number) => {
return await request.delete({ url: `/eam/countadjust-plan/delete?id=` + id }) return await request.delete({ url: `/eam/item/countadjust-plan/delete?id=` + id })
} }
// 导出备件盘点计划 Excel // 导出备件盘点计划 Excel
export const exportCountadjustPlan = async (params) => { export const exportCountadjustPlan = async (params) => {
return await request.download({ url: `/eam/countadjust-plan/export-excel`, params }) return await request.download({ url: `/eam/item/countadjust-plan/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/countadjust-plan/get-import-template' }) return request.download({ url: '/eam/item/countadjust-plan/get-import-template' })
} }

26
src/api/eam/item/itemAccounts/index.ts

@ -17,65 +17,65 @@ export const getItemAccountsPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/eam/item-accounts/senior', data }) return await request.post({ url: '/eam/item/item-accounts/senior', data })
} else { } else {
return await request.get({ url: `/eam/item-accounts/page`, params }) return await request.get({ url: `/eam/item/item-accounts/page`, params })
} }
} }
// 查询备件台账详情 // 查询备件台账详情
export const getItemAccounts = async (id: number) => { export const getItemAccounts = async (id: number) => {
return await request.get({ url: `/eam/item-accounts/get?id=` + id }) return await request.get({ url: `/eam/item/item-accounts/get?id=` + id })
} }
// 根据库位查询备件台账详情 // 根据库位查询备件台账详情
export const getByLocationNumber = async (locationNumber: string) => { export const getByLocationNumber = async (locationNumber: string) => {
return await request.get({ url: `/eam/item-accounts/getByLocationNumber?locationNumber=` + locationNumber }) return await request.get({ url: `/eam/item/item-accounts/getByLocationNumber?locationNumber=` + locationNumber })
} }
// 根据备件查询备件台账详情 // 根据备件查询备件台账详情
export const getByItemNumber = async (itemNumber: string) => { export const getByItemNumber = async (itemNumber: string) => {
return await request.get({ url: `/eam/item-accounts/getByItemNumber?itemNumber=` + itemNumber }) return await request.get({ url: `/eam/item/item-accounts/getByItemNumber?itemNumber=` + itemNumber })
} }
// 新增备件台账 // 新增备件台账
export const createItemAccounts = async (data: ItemAccountsVO) => { export const createItemAccounts = async (data: ItemAccountsVO) => {
return await request.post({ url: `/eam/item-accounts/create`, data }) return await request.post({ url: `/eam/item/item-accounts/create`, data })
} }
// 备件台账新到货转账内 // 备件台账新到货转账内
export const newTurnIn = async (data: ItemAccountsVO) => { export const newTurnIn = async (data: ItemAccountsVO) => {
return await request.post({ url: `/eam/item-accounts/newTurnIn`, data }) return await request.post({ url: `/eam/item/item-accounts/newTurnIn`, data })
} }
// 修改备件台账 // 修改备件台账
export const updateItemAccounts = async (data: ItemAccountsVO) => { export const updateItemAccounts = async (data: ItemAccountsVO) => {
return await request.put({ url: `/eam/item-accounts/update`, data }) return await request.put({ url: `/eam/item/item-accounts/update`, data })
} }
// 删除备件台账 // 删除备件台账
export const deleteItemAccounts = async (id: number) => { export const deleteItemAccounts = async (id: number) => {
return await request.delete({ url: `/eam/item-accounts/delete?id=` + id }) return await request.delete({ url: `/eam/item/item-accounts/delete?id=` + id })
} }
// 导出备件台账 Excel // 导出备件台账 Excel
export const exportItemAccounts = async (params) => { export const exportItemAccounts = async (params) => {
return await request.download({ url: `/eam/item-accounts/export-excel`, params }) return await request.download({ url: `/eam/item/item-accounts/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/item-accounts/get-import-template' }) return request.download({ url: '/eam/item/item-accounts/get-import-template' })
} }
// 更改备件库位 // 更改备件库位
export const replaceLocation = async (data: Array<ItemAccountsVO>) => { export const replaceLocation = async (data: Array<ItemAccountsVO>) => {
return await request.post({url: `/eam/item-accounts/replaceLocation `, data }); return await request.post({url: `/eam/item/item-accounts/replaceLocation `, data });
}; };
// 备件不分页 // 备件不分页
export const getItemAccountsNoPage = async (params) => { export const getItemAccountsNoPage = async (params) => {
return await request.get({ url: `/eam/item-accounts/noPage`, params }) return await request.get({ url: `/eam/item/item-accounts/noPage`, params })
} }

16
src/api/eam/item/itemInLocation/index.ts

@ -13,38 +13,38 @@ export const getItemInLocationPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/eam/item-in-location/senior', data }) return await request.post({ url: '/eam/item/item-in-location/senior', data })
} else { } else {
return await request.get({ url: `/eam/item-in-location/page`, params }) return await request.get({ url: `/eam/item/item-in-location/page`, params })
} }
} }
// 查询备件入库记录详情 // 查询备件入库记录详情
export const getItemInLocation = async (id: number) => { export const getItemInLocation = async (id: number) => {
return await request.get({ url: `/eam/item-in-location/get?id=` + id }) return await request.get({ url: `/eam/item/item-in-location/get?id=` + id })
} }
// 新增备件入库记录 // 新增备件入库记录
export const createItemInLocation = async (data: ItemInLocationVO) => { export const createItemInLocation = async (data: ItemInLocationVO) => {
return await request.post({ url: `/eam/item-in-location/create`, data }) return await request.post({ url: `/eam/item/item-in-location/create`, data })
} }
// 修改备件入库记录 // 修改备件入库记录
export const updateItemInLocation = async (data: ItemInLocationVO) => { export const updateItemInLocation = async (data: ItemInLocationVO) => {
return await request.put({ url: `/eam/item-in-location/update`, data }) return await request.put({ url: `/eam/item/item-in-location/update`, data })
} }
// 删除备件入库记录 // 删除备件入库记录
export const deleteItemInLocation = async (id: number) => { export const deleteItemInLocation = async (id: number) => {
return await request.delete({ url: `/eam/item-in-location/delete?id=` + id }) return await request.delete({ url: `/eam/item/item-in-location/delete?id=` + id })
} }
// 导出备件入库记录 Excel // 导出备件入库记录 Excel
export const exportItemInLocation = async (params) => { export const exportItemInLocation = async (params) => {
return await request.download({ url: `/eam/item-in-location/export-excel`, params }) return await request.download({ url: `/eam/item/item-in-location/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/item-in-location/get-import-template' }) return request.download({ url: '/eam/item/item-in-location/get-import-template' })
} }

16
src/api/eam/item/itemLocationReplace/index.ts

@ -12,38 +12,38 @@ export const getItemLocationReplacePage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/eam/item-location-replace/senior', data }) return await request.post({ url: '/eam/item/item-location-replace/senior', data })
} else { } else {
return await request.get({ url: `/eam/item-location-replace/page`, params }) return await request.get({ url: `/eam/item/item-location-replace/page`, params })
} }
} }
// 查询备件库位变更记录详情 // 查询备件库位变更记录详情
export const getItemLocationReplace = async (id: number) => { export const getItemLocationReplace = async (id: number) => {
return await request.get({ url: `/eam/item-location-replace/get?id=` + id }) return await request.get({ url: `/eam/item/item-location-replace/get?id=` + id })
} }
// 新增备件库位变更记录 // 新增备件库位变更记录
export const createItemLocationReplace = async (data: ItemLocationReplaceVO) => { export const createItemLocationReplace = async (data: ItemLocationReplaceVO) => {
return await request.post({ url: `/eam/item-location-replace/create`, data }) return await request.post({ url: `/eam/item/item-location-replace/create`, data })
} }
// 修改备件库位变更记录 // 修改备件库位变更记录
export const updateItemLocationReplace = async (data: ItemLocationReplaceVO) => { export const updateItemLocationReplace = async (data: ItemLocationReplaceVO) => {
return await request.put({ url: `/eam/item-location-replace/update`, data }) return await request.put({ url: `/eam/item/item-location-replace/update`, data })
} }
// 删除备件库位变更记录 // 删除备件库位变更记录
export const deleteItemLocationReplace = async (id: number) => { export const deleteItemLocationReplace = async (id: number) => {
return await request.delete({ url: `/eam/item-location-replace/delete?id=` + id }) return await request.delete({ url: `/eam/item/item-location-replace/delete?id=` + id })
} }
// 导出备件库位变更记录 Excel // 导出备件库位变更记录 Excel
export const exportItemLocationReplace = async (params) => { export const exportItemLocationReplace = async (params) => {
return await request.download({ url: `/eam/item-location-replace/export-excel`, params }) return await request.download({ url: `/eam/item/item-location-replace/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/item-location-replace/get-import-template' }) return request.download({ url: '/eam/item/item-location-replace/get-import-template' })
} }

16
src/api/eam/item/itemOutLocation/index.ts

@ -13,38 +13,38 @@ export const getItemOutLocationPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/eam/item-out-location/senior', data }) return await request.post({ url: '/eam/item/item-out-location/senior', data })
} else { } else {
return await request.get({ url: `/eam/item-out-location/page`, params }) return await request.get({ url: `/eam/item/item-out-location/page`, params })
} }
} }
// 查询备件出库记录详情 // 查询备件出库记录详情
export const getItemOutLocation = async (id: number) => { export const getItemOutLocation = async (id: number) => {
return await request.get({ url: `/eam/item-out-location/get?id=` + id }) return await request.get({ url: `/eam/item/item-out-location/get?id=` + id })
} }
// 新增备件出库记录 // 新增备件出库记录
export const createItemOutLocation = async (data: ItemOutLocationVO) => { export const createItemOutLocation = async (data: ItemOutLocationVO) => {
return await request.post({ url: `/eam/item-out-location/create`, data }) return await request.post({ url: `/eam/item/item-out-location/create`, data })
} }
// 修改备件出库记录 // 修改备件出库记录
export const updateItemOutLocation = async (data: ItemOutLocationVO) => { export const updateItemOutLocation = async (data: ItemOutLocationVO) => {
return await request.put({ url: `/eam/item-out-location/update`, data }) return await request.put({ url: `/eam/item/item-out-location/update`, data })
} }
// 删除备件出库记录 // 删除备件出库记录
export const deleteItemOutLocation = async (id: number) => { export const deleteItemOutLocation = async (id: number) => {
return await request.delete({ url: `/eam/item-out-location/delete?id=` + id }) return await request.delete({ url: `/eam/item/item-out-location/delete?id=` + id })
} }
// 导出备件出库记录 Excel // 导出备件出库记录 Excel
export const exportItemOutLocation = async (params) => { export const exportItemOutLocation = async (params) => {
return await request.download({ url: `/eam/item-out-location/export-excel`, params }) return await request.download({ url: `/eam/item/item-out-location/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/item-out-location/get-import-template' }) return request.download({ url: '/eam/item/item-out-location/get-import-template' })
} }

16
src/api/eam/item/transaction/index.ts

@ -16,38 +16,38 @@ export const getTransactionPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/eam/transaction/senior', data }) return await request.post({ url: '/eam/item/transaction/senior', data })
} else { } else {
return await request.get({ url: `/eam/transaction/page`, params }) return await request.get({ url: `/eam/item/transaction/page`, params })
} }
} }
// 查询库存事务详情 // 查询库存事务详情
export const getTransaction = async (id: number) => { export const getTransaction = async (id: number) => {
return await request.get({ url: `/eam/transaction/get?id=` + id }) return await request.get({ url: `/eam/item/transaction/get?id=` + id })
} }
// 新增库存事务 // 新增库存事务
export const createTransaction = async (data: TransactionVO) => { export const createTransaction = async (data: TransactionVO) => {
return await request.post({ url: `/eam/transaction/create`, data }) return await request.post({ url: `/eam/item/transaction/create`, data })
} }
// 修改库存事务 // 修改库存事务
export const updateTransaction = async (data: TransactionVO) => { export const updateTransaction = async (data: TransactionVO) => {
return await request.put({ url: `/eam/transaction/update`, data }) return await request.put({ url: `/eam/item/transaction/update`, data })
} }
// 删除库存事务 // 删除库存事务
export const deleteTransaction = async (id: number) => { export const deleteTransaction = async (id: number) => {
return await request.delete({ url: `/eam/transaction/delete?id=` + id }) return await request.delete({ url: `/eam/item/transaction/delete?id=` + id })
} }
// 导出库存事务 Excel // 导出库存事务 Excel
export const exportTransaction = async (params) => { export const exportTransaction = async (params) => {
return await request.download({ url: `/eam/transaction/export-excel`, params }) return await request.download({ url: `/eam/item/transaction/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/transaction/get-import-template' }) return request.download({ url: '/eam/item/transaction/get-import-template' })
} }

96
src/api/eam/report/warning/index.ts

@ -0,0 +1,96 @@
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 getWarningPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/eam/item/transaction/warningSenior', data })
} else {
return await request.get({ url: `/eam/item/transaction/warningPage`, params })
}
}
// 生成标签
export const genDevice = async (data) => {
return await request.post({ url: `/eam/item/transaction/genDevice`, data })
}
// 查询备件详情
export const getItem = async (id : number) => {
return await request.get({ url: `/eam/item/transaction/get?id=` + id })
}
// 新增备件
export const createItem = async (data : ItemVO) => {
return await request.post({ url: `/eam/item/transaction/create`, data })
}
// 修改备件
export const updateItem = async (data : ItemVO) => {
return await request.put({ url: `/eam/item/transaction/update`, data })
}
// 删除备件
export const deleteItem = async (id : number) => {
return await request.delete({ url: `/eam/item/transaction/delete?id=` + id })
}
// 导出备件 Excel
export const exportItem = async (params) => {
return await request.download({ url: `/eam/item/transaction/export-excel`, params })
}
// 修改备件
export const getItemList = async (params) => {
return await request.get({ url: `/eam/item/transaction/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/transaction/noPage`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/item/transaction/get-import-template' })
}

27
src/views/eam/item/itemAccounts/itemAccounts.data.ts

@ -55,7 +55,7 @@ export const ItemAccounts = useCrudSchemas(
field: 'itemName', field: 'itemName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 110 width: 130
}, },
form:{ form:{
componentProps:{ componentProps:{
@ -68,7 +68,7 @@ export const ItemAccounts = useCrudSchemas(
label: '库区编号', label: '库区编号',
field: 'areaNumber', field: 'areaNumber',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: true,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
@ -93,13 +93,15 @@ export const ItemAccounts = useCrudSchemas(
field: 'areaName', field: 'areaName',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
isForm:false isForm:false,table: {
width: 130
},
}, },
{ {
label: '库位编号', label: '库位编号',
field: 'locationNumber', field: 'locationNumber',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: true,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
@ -129,7 +131,9 @@ export const ItemAccounts = useCrudSchemas(
field: 'locationName', field: 'locationName',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
isForm:false isForm:false,table: {
width: 130
},
}, },
// { // {
// label: '库位类型', // label: '库位类型',
@ -147,22 +151,22 @@ export const ItemAccounts = useCrudSchemas(
// } // }
// }, // },
{ {
label: '库类型', label: '库类型',
field: 'type', field: 'type',
sort: 'custom', sort: 'custom',
table: { table: {
width: '150', width: '110',
}, },
isDetail: false, isDetail: false,
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return typeLists.find((account) => account.value == cellValue)?.label return typeLists.find((account) => account.value == cellValue)?.label
}, },
// dictType: DICT_TYPE.APP_DEVICE_MOLD_TYPE, // dictType: DICT_TYPE.APP_DEVICE_MOLD_TYPE,
isSearch: false, isSearch: true,
search: { search: {
component: 'Select', component: 'Select',
componentProps: { componentProps: {
options: typeList, options: typeLists,
optionsAlias: { optionsAlias: {
labelField: 'label', labelField: 'label',
valueField: 'value' valueField: 'value'
@ -228,7 +232,10 @@ export const ItemAccounts = useCrudSchemas(
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, },
isForm: false isForm: false,
table: {
width: 180
},
}, },
// { // {
// label: '是否账内库', // label: '是否账内库',

15
src/views/eam/item/itemLocationReplace/itemLocationReplace.data.ts

@ -28,6 +28,21 @@ export const ItemLocationReplace = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{
label: '库存类型',
field: 'type',
dictType: DICT_TYPE.ITEM_ACCOUNT_LOCATION_TYPE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 130
},
form: {
component: 'Select'
}
},
{ {
label: '变更时间', label: '变更时间',
field: 'createTime', field: 'createTime',

2
src/views/eam/report/itemWarning/index.vue

@ -43,7 +43,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { Item, ItemRules } from './itemWarning.data' import { Item, ItemRules } from './itemWarning.data'
import * as ItemApi from '@/api/eam/basic/item' import * as ItemApi from '@/api/eam/report/warning'
import { createDeviceItemBatch, getDeviceItemPage, getDeviceItemNoPage } from '@/api/eam/basic/rel' import { createDeviceItemBatch, getDeviceItemPage, getDeviceItemNoPage } from '@/api/eam/basic/rel'
import { DeviceAccounts, DeviceAccountsRules } from '@/views/eam/device/deviceAccounts/deviceAccounts.data' import { DeviceAccounts, DeviceAccountsRules } from '@/views/eam/device/deviceAccounts/deviceAccounts.data'
import * as DeviceAccountsApi from '@/api/eam/device/deviceAccounts' import * as DeviceAccountsApi from '@/api/eam/device/deviceAccounts'

Loading…
Cancel
Save