businessSettings.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. import request from '../../utils/request';
  2. export function getCompanyMsg() {
  3. return request({
  4. url: '/baseCompany/query/companyInfo', // 获取企业详情
  5. method: 'get',
  6. params: {}
  7. });
  8. }
  9. export function setCompany(data) {
  10. return request({
  11. url: '/baseCompany/api/changeInfo', // 修改企业详情
  12. method: 'post',
  13. data
  14. });
  15. }
  16. // 获取系统常量,目前只用到了获取组织本币
  17. export function getSystemConsts(params) {
  18. return request({
  19. url: '/parameterCompany/query/parameterTenant',
  20. params
  21. })
  22. }
  23. export function getLoginInfo() {
  24. return request({
  25. url: '/manager/query/currentManagerInfo', // 获取当前登录人信息
  26. method: 'get'
  27. });
  28. }
  29. export function sendMsg(data) {
  30. return request({
  31. url: '/veriCode/api/sendMgr', // 发送验证码
  32. method: 'post',
  33. data
  34. });
  35. }
  36. export function checkMsg(data) {
  37. return request({
  38. url: '/veriCode/api/check', // 检测验证码
  39. method: 'post',
  40. data
  41. });
  42. }
  43. export function findUsers(data) {
  44. return request({
  45. url: '/baseStaff/query/staffsByDept', // 获取部门下所有职员
  46. method: 'get',
  47. params: data,
  48. });
  49. }
  50. export function changeManager(data) {
  51. return request({
  52. url: '/manager/api/change', // 修改企业管理员
  53. method: 'post',
  54. data
  55. });
  56. }
  57. export function changePasswordByPwd(data) {
  58. return request({
  59. url: '/auth/api/changePassword', // 修改管理员密码
  60. method: 'post',
  61. data
  62. });
  63. }
  64. export function findCompanyVessels(data) {
  65. return request({
  66. url: '/baseVessel/query/companyVessels', // 获取船舶列表
  67. method: 'get',
  68. params: data
  69. });
  70. }
  71. export function removeShip(data) {
  72. return request({
  73. url: '/baseVessel/api/remove', // 删除船舶
  74. method: 'post',
  75. data
  76. });
  77. }
  78. export function addAndChangeShip(url, data) {
  79. return request({
  80. url, // 添加或修改船舶
  81. method: 'post',
  82. data
  83. });
  84. }