‘基础资料对接口’

This commit is contained in:
Fanzink 2022-02-16 19:32:54 +08:00
parent d47343af69
commit fe1c64845e
7 changed files with 23 additions and 16 deletions

View File

@ -9,7 +9,7 @@ import request from '@/utils/request'
export function areaList(data) { // 获取缓存区区域信息列表 export function areaList(data) { // 获取缓存区区域信息列表
return request({ return request({
url: '/api/wms/area/shelf', url: '/api/wms/area/page',
method: 'post', method: 'post',
data data
}) })
@ -17,7 +17,7 @@ export function areaList(data) { // 获取缓存区区域信息列表
export function areaDetail(id) { // 获取缓存区区域信息单条数据 export function areaDetail(id) { // 获取缓存区区域信息单条数据
return request({ return request({
url: '/api/wms/area/get', url: '/api/wms/area/getById',
method: 'post', method: 'post',
data: { id } data: { id }
}) })

View File

@ -9,7 +9,7 @@ import request from '@/utils/request'
export function shelfList(data) { // 获取货架信息列表 export function shelfList(data) { // 获取货架信息列表
return request({ return request({
url: '/basic/shelf/page', url: '/api/wms/area/shelf',
method: 'post', method: 'post',
data data
}) })
@ -17,7 +17,7 @@ export function shelfList(data) { // 获取货架信息列表
export function shelfDetail(id) { // 获取货架信息单条数据 export function shelfDetail(id) { // 获取货架信息单条数据
return request({ return request({
url: '/basic/shelf/get', url: '/api/wms/area/shelfById',
method: 'post', method: 'post',
data: { id } data: { id }
}) })
@ -25,7 +25,8 @@ export function shelfDetail(id) { // 获取货架信息单条数据
export function shelfUpdate(data) { // 更新货架信息单条数据 export function shelfUpdate(data) { // 更新货架信息单条数据
return request({ return request({
url: '/basic/shelf/update', // url: '/basic/shelf/update',
url: '/api/wms/area/updateshelf',
method: 'post', method: 'post',
data data
}) })
@ -33,7 +34,7 @@ export function shelfUpdate(data) { // 更新货架信息单条数据
export function shelfAdd(data) { // 新增货架信息单条数据 export function shelfAdd(data) { // 新增货架信息单条数据
return request({ return request({
url: '/basic/shelf/add', url: '/api/wms/area/addshelf',
method: 'post', method: 'post',
data data
}) })
@ -41,14 +42,14 @@ export function shelfAdd(data) { // 新增货架信息单条数据
export function shelfCode() { // 获取货架信息code export function shelfCode() { // 获取货架信息code
return request({ return request({
url: '/basic/shelf/get-code', url: '/api/wms/area/getCode',
method: 'post' method: 'post'
}) })
} }
export function shelfDelete(id) { // 删除货架信息单条数据 export function shelfDelete(id) { // 删除货架信息单条数据
return request({ return request({
url: '/basic/shelf/delete', url: '/api/wms/area/deleteshelf',
method: 'post', method: 'post',
data: { id } data: { id }
}) })

View File

@ -10,7 +10,8 @@ import request from '@/utils/request'
export function equipmentGroupList(data) { // 获取设备分组列表 export function equipmentGroupList(data) { // 获取设备分组列表
return request({ return request({
url: '/equipment/equipment-group/findAll', // url: '/equipment/equipment-group/findAll',
url: '/api/wms/equipment/page',
method: 'post', method: 'post',
data data
}) })

View File

@ -64,8 +64,10 @@ export function equipmentInfoFileAdd(data) { // 设备信息上传
export function getEquipmentInfoFile(data) { // 设备信息下载 export function getEquipmentInfoFile(data) { // 设备信息下载
return request({ return request({
url: '/api/wms/equipment-file/get-by-param', // url: '/api/wms/equipment-file/get-by-param',
method: 'post', url: '/api/common/attachment/downloadFile',
// method: 'post',
method: 'get',
data data
}) })
} }

View File

@ -9,7 +9,8 @@ import request from '@/utils/request'
export function equipmentInfoAttrList(data) { // 获取设备属性列表 export function equipmentInfoAttrList(data) { // 获取设备属性列表
return request({ return request({
url: '/basic/equipment-attr/page', // url: '/basic/equipment-attr/page',
url: '/api/wms/equipment/page',
method: 'post', method: 'post',
data data
}) })
@ -17,7 +18,8 @@ export function equipmentInfoAttrList(data) { // 获取设备属性列表
export function equipmentInfoAttrDetail(id) { // 获取设备属性单条数据 export function equipmentInfoAttrDetail(id) { // 获取设备属性单条数据
return request({ return request({
url: '/basic/equipment-attr/get', // url: '/basic/equipment-attr/get',
url: '/api/wms/equipment/attrById',
method: 'post', method: 'post',
data: { id } data: { id }
}) })

View File

@ -9,7 +9,8 @@ import request from '@/utils/request'
export function equipmentTypeList(data) { // 获取设备类型列表 export function equipmentTypeList(data) { // 获取设备类型列表
return request({ return request({
url: '/basic/equipment-type/page', // url: '/basic/equipment-type/page',
url: '/api/wms/equipment/page',
method: 'post', method: 'post',
data data
}) })

View File

@ -46,8 +46,8 @@ module.exports = {
// 这里写入需要代理的api和对应的目标地址 // 这里写入需要代理的api和对应的目标地址
proxy: { proxy: {
'/api': { '/api': {
// target: 'http://localhost:8080', target: 'http://localhost:8080',
target: 'http://192.168.0.148:8080', // target: 'http://192.168.0.148:8080',
// target: 'http://192.168.0.127:8080', // target: 'http://192.168.0.127:8080',
// target: 'http://192.168.0.165:8080', // target: 'http://192.168.0.165:8080',
// target: 'http://192.168.43.105:8080', // target: 'http://192.168.43.105:8080',