businessSettings.js 2.0 KB

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