WMS_PDA/core/request/apis.js

172 lines
2.9 KiB
JavaScript

/**
* 接口列表文件
*/
export default {
/** 公共 ↓ **/
common: {
ping: {
path: "index.ping",
auth: false,
method: "POST",
isSystemApi: true
},
store: {
path: "index.loadStores",
auth: false,
method: "POST",
isSystemApi: true
},
getCOSUploadConfig: {
path: "index.getCOSUploadConfig",
auth: true,
method: "POST",
isSystemApi: true
},
uploadSuccessNotify: {
path: "index.uploadSuccessNotify",
auth: true,
method: "POST",
isSystemApi: true
},
ReferenceFile: {
path: "index.ReferenceFile",
auth: true,
method: "POST",
isSystemApi: true
},
searchSpace: {
path: "index.searchSpace",
auth: true,
method: "POST",
isSystemApi: true
},
listTemplatesByType: {
path: "setting.printTemplate.listTemplatesByType",
auth: true,
method: "POST",
isSystemApi: true
}
},
/** 用户 ↓ **/
user: {
info: {
path: "user.info",
auth: false,
method: "POST",
isSystemApi: true
},
login: {
path: "user.login",
auth: false,
method: "POST",
isSystemApi: true
},
loginByCode: {
path: "user.loginByCode",
auth: false,
method: "POST",
isSystemApi: true
},
changeRole: {
path: "user.changeRole",
auth: true,
method: "POST",
isSystemApi: true
}
},
storage: {
receiving: {
getReceivingList: {
path: "storage.receiving.getReceivingList",
auth: true,
method: "POST",
isSystemApi: true
},
create: {
path: "storage.receiving.create",
auth: true,
method: "POST",
isSystemApi: true
},
get: {
path: "storage.receiving.get",
auth: true,
method: "POST",
isSystemApi: true
},
addDetail: {
path: "storage.receiving.addDetail",
auth: true,
method: "POST",
isSystemApi: true
},
deleteDetail: {
path: "storage.receiving.deleteDetail",
auth: true,
method: "POST",
isSystemApi: true
},
detailChange: {
path: "storage.receiving.detailChange",
auth: true,
method: "POST",
isSystemApi: true
},
cancel: {
path: "storage.receiving.cancel",
auth: true,
method: "POST",
isSystemApi: true
},
completeReceiving: {
path: "storage.receiving.completeReceiving",
auth: true,
method: "POST",
isSystemApi: true
}
}
},
stock: {
search: {
path: "stock.search",
auth: true,
method: "POST",
isSystemApi: true
},
warehouse: {
list: {
path: "stock.warehouse.list",
auth: true,
method: "POST",
isSystemApi: true
},
search: {
path: "stock.warehouse.search",
auth: true,
method: "POST",
isSystemApi: true
}
}
},
print: {
getList: {
path: "print.getList",
auth: true,
method: "POST",
isSystemApi: true
},
getComputerPrinter: {
path: "print.getComputerPrinter",
auth: true,
method: "POST",
isSystemApi: true
},
send:{
path: "print.send",
auth: true,
method: "POST",
isSystemApi: true
}
}
};