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