WMS_PDA/core/request/apis.js
zm2000 5305f77560 feat: 新增商品查询入口并优化菜单路由匹配
- 新增 stock.warehouse.search 接口并在收货详情中切换为仓库维度搜索

- 优化用户菜单路径校验,兼容 component/path 及前导斜杠、.vue 后缀

- 首页与全部功能页对商品查询菜单统一跳转到 /pages/work/product/query

- pages.json 注册商品查询页面路由
2026-03-27 16:01:35 +08:00

166 lines
2.8 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: {
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
}
}
};