Urls.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /**
  2. * gzs:后台接口地址
  3. */
  4. const Urls = {
  5. // 登录
  6. index: {
  7. login: '/admin/login/doLogin',
  8. balanceUpload: '/balance/index/upload',
  9. message: '/admin/message/list',
  10. messageEdit: '/admin/message/edit',
  11. },
  12. // 菜单列表
  13. common: {
  14. menuList: '/admin/index/statistics',
  15. },
  16. // 上传类
  17. upload: {
  18. file: '/admin/upload/file',
  19. },
  20. //账号模块
  21. admin: {
  22. init: 'admin/admin/init', //初始化
  23. list: '/admin/admin/list',
  24. detail: 'admin/admin/detail', //详情
  25. edit: 'admin/admin/edit', //更新
  26. add: 'admin/admin/add', //添加
  27. delete: 'admin/admin/delete', //删除/批量删除
  28. resetPwd: 'admin/admin/resetPwd', //重置密码
  29. },
  30. //项目汇总模型
  31. repertory: {
  32. list: '/admin/project/page',//分页
  33. statuslist:'/admin/project/status/list',//获取状态字典
  34. add: '/admin/project/create', //创建项目
  35. edit: '/admin/project/update', //项目更新
  36. delete: '/admin/project/delete', //项目删除
  37. all:'/admin/admin/fullList',//参与人员列表
  38. addschedules: '/admin/project/schedule/create', //创建进度
  39. editschedules: '/admin/project/schedule/update', //进度更新
  40. deleteschedules: '/admin/project/schedule/delete', //进度删除
  41. listcontract: '/admin/project/contract/page', //合同分页
  42. addcontract: '/admin/project/contract/create', //创建合同
  43. editcontract: '/admin/project/contract/update', //合同更新
  44. deletecontract: '/admin/project/contract/delete', //合同删除
  45. addstatus: '/admin/project/status/create', //创建状态
  46. editstatus: '/admin/project/status/update', //状态更新
  47. },
  48. //物品模型
  49. good: {
  50. list: '/admin/good/page',
  51. add: '/admin/good/create',
  52. edit: '/admin/good/update', //物品更新
  53. delete: '/admin/good/delete', //物品删除
  54. export: '/admin/good/export', //物品导出
  55. import: '/admin/good/import', //物品导入
  56. no: '/admin/good/get/no', //扫码枪
  57. },
  58. //出入库/盘点模型
  59. orderInout: {
  60. // init: "admin/order_inout/init",//初始化
  61. list: '/admin/io/page',
  62. add: '/admin/io/create', //创建出入库/盘点
  63. detail: '/admin/io/info', //出入库/盘点详情
  64. info: '/admin/stock/get/good-repo', //仓库更新
  65. reset: '/admin/io/revert', //回滚订单
  66. },
  67. //调拨
  68. transfer: {
  69. list: '/admin/allocation/page',
  70. add: '/admin/allocation/create', //创建调拨
  71. detail: '/admin/allocation/info', //库存详情
  72. reset: '/admin/allocation/revert', //回滚订单
  73. },
  74. //物品分类模型
  75. goodClass: {
  76. list: '/admin/GoodClass/page',
  77. add: '/admin/GoodClass/create', //分类新增
  78. edit: '/admin/GoodClass/update', //分类更新
  79. delete: '/admin/GoodClass/delete', //分类删除
  80. all: '/admin/GoodClass/all', //所有分类
  81. // detail: "/admin/good_class/detail",//分类详情
  82. },
  83. //在途库存
  84. realinventory: {
  85. list: '/admin/stock/page',
  86. detail: '/admin/IoDetail/transits', //在途明细
  87. export: '/admin/stock/export', //库存导出
  88. edit: '/admin/io/complete', //完成在途/借出
  89. },
  90. //以下准备弃用
  91. /* 基础数据 */
  92. // 公司信息
  93. company: {
  94. detail: '/admin/company/detail', //企业详情
  95. edit: '/admin/company/edit', //更新企业信息
  96. },
  97. // 角色权限
  98. role: {
  99. list: 'admin/role/list', //列表
  100. codes: '/admin/role/codes', // 权限列表
  101. update: 'admin/role/update', //更新
  102. create: 'admin/role/create', //添加
  103. del: 'admin/role/del', //删除/批量删除
  104. },
  105. };
  106. export default Urls;