index.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // src/api/mes/lotoStation/lotoStation.ts
  2. import request from '@/config/axios'
  3. export interface LotoStationVO {
  4. lotoId?: number
  5. lotoName: string
  6. lotoCode: string
  7. lotoType?: string
  8. lotoStatus?: string
  9. lotoMap?: string
  10. remark?: string
  11. createTime?: Date
  12. }
  13. export interface PageParam {
  14. current: number
  15. size: number
  16. lotoName?: string
  17. lotoCode?: string
  18. lotoType?: string
  19. }
  20. // 查询锁定站列表
  21. export const listLoto = async (params: PageParam) => {
  22. return await request.get({ url: '/iscs/station/getIsLotoStationPage', params })
  23. }
  24. // 查询锁定站详情
  25. export const selectIsLotoStationById = async (id: number) => {
  26. return await request.get({ url: '/iscs/station/selectIsLotoStationById', params: { lotoId: id } })
  27. }
  28. // 查询锁定站地图数据
  29. export const selectLotoMapById = async (id: number) => {
  30. return await request.get({ url: '/iscs/station/selectLotoMapById', params: { lotoId: id } })
  31. }
  32. // 新增锁定站
  33. export const addLoto = async (data: LotoStationVO) => {
  34. return await request.post({ url: '/iscs/station/insertIsLotoStation', data })
  35. }
  36. // 修改锁定站
  37. export const updateLoto = async (data: LotoStationVO) => {
  38. return await request.post({ url: '/iscs/station/updateIsLotoStation', data })
  39. }
  40. // 删除锁定站
  41. export const delLoto = async (id: number) => {
  42. return await request.post({
  43. url: '/iscs/station/deleteIsLotoStationByLotoIds',
  44. params: { lotoIds: id }
  45. })
  46. }
  47. // 更新隔离点绑定关系
  48. export const updatePointsBindingLoto = async (data: any) => {
  49. return await request.post({ url: '/iscs/station/updatePointsBindingLoto', data })
  50. }