43 lines
1.1 KiB
JavaScript
Raw Normal View History

2025-03-11 09:45:29 +08:00
/**
2025-03-11 17:57:17 +08:00
* 将所有接口统一起来便于维护
* 如果项目很大可以将 url 独立成文件接口分成不同的模块
* handle [boolean] 如果需要自己处理 catch 请求 传入 true 交给接口统一处理 请传如 false或不传
2025-03-11 09:45:29 +08:00
*/
2025-03-11 17:57:17 +08:00
// 默认全部导出
import $http from './http.js'
2025-03-11 09:45:29 +08:00
export function getdata(data) {
2025-03-11 17:57:17 +08:00
return $http.post('/request/getlocation', data)
2025-03-11 09:45:29 +08:00
}
2025-03-11 17:57:17 +08:00
// 登录
export function LoginCheck(data) {
//return $http.post('/WMS_Webservice.asmx/LoginCheck', data)
// return $http.post('/user/loginPDA', data)
return $http.post('/login/LoginCheck', data)
}
2025-03-11 09:45:29 +08:00
export function QueryInfo(data) {
2025-03-11 17:57:17 +08:00
return $http.post('/common/query',data)
2025-03-11 09:45:29 +08:00
}
export function CreateBoxID_PO(data) {
2025-03-11 17:57:17 +08:00
return $http.post('/poStockIn/CreateBoxID_PO',data)
2025-03-11 09:45:29 +08:00
}
2025-03-11 17:57:17 +08:00
// 获取组织
export function getORG(data) {
return $http.post('/storage/getORG',data)
2025-03-11 09:45:29 +08:00
}
2025-03-11 17:57:17 +08:00
// 获取菜单
export function getHierarchicalMenuOfPermission(data) {
return $http.post('/menu/getHierarchicalMenuOfPermission',data)
2025-03-11 09:45:29 +08:00
}
2025-03-11 17:57:17 +08:00
//查询opCode
export function getOpCode(data) {
return $http.post('/OpCode/getOpCode',data)
}