zx преди 3 дни
ревизия
8ce1128b32
променени са 100 файла, в които са добавени 33724 реда и са изтрити 0 реда
  1. 22 0
      .editorconfig
  2. 12 0
      .env.development
  3. 8 0
      .env.production
  4. 10 0
      .env.staging
  5. 10 0
      .eslintignore
  6. 199 0
      .eslintrc.js
  7. 26 0
      .gitignore
  8. 36 0
      README.en.md
  9. 37 0
      README.md
  10. 13 0
      babel.config.js
  11. 35 0
      build/index.js
  12. 119 0
      package.json
  13. 211 0
      public/index.html
  14. 2 0
      public/robots.txt
  15. 27672 0
      public/sdk.js
  16. 254 0
      public/wx.html
  17. 11 0
      src/App.vue
  18. 53 0
      src/api/bill/billLog.js
  19. 53 0
      src/api/chat/chatDataset.js
  20. 53 0
      src/api/chat/chatDatasetFile.js
  21. 53 0
      src/api/chat/chatKeyword.js
  22. 53 0
      src/api/chat/chatMsg.js
  23. 61 0
      src/api/chat/chatMsgLogs.js
  24. 62 0
      src/api/chat/chatRole.js
  25. 53 0
      src/api/chat/chatSession.js
  26. 11 0
      src/api/chat/chatUpload.js
  27. 53 0
      src/api/chat/chatUser.js
  28. 17 0
      src/api/common.js
  29. 53 0
      src/api/company/VoiceRoboticWx.js
  30. 45 0
      src/api/company/company.js
  31. 70 0
      src/api/company/companyAccount.js
  32. 70 0
      src/api/company/companyClient.js
  33. 22 0
      src/api/company/companyConfig.js
  34. 76 0
      src/api/company/companyDept.js
  35. 60 0
      src/api/company/companyMenu.js
  36. 61 0
      src/api/company/companyMoneyLogs.js
  37. 53 0
      src/api/company/companyPost.js
  38. 71 0
      src/api/company/companyProfit.js
  39. 53 0
      src/api/company/companyRecharge.js
  40. 75 0
      src/api/company/companyRole.js
  41. 97 0
      src/api/company/companySms.js
  42. 53 0
      src/api/company/companySmsLogs.js
  43. 53 0
      src/api/company/companySmsOrder.js
  44. 19 0
      src/api/company/companySmsPackage.js
  45. 63 0
      src/api/company/companySmsTemp.js
  46. 53 0
      src/api/company/companyTag.js
  47. 53 0
      src/api/company/companyTagGroup.js
  48. 226 0
      src/api/company/companyUser.js
  49. 64 0
      src/api/company/companyUserCard.js
  50. 31 0
      src/api/company/companyVoiceApi.js
  51. 68 0
      src/api/company/companyVoiceCaller.js
  52. 62 0
      src/api/company/companyVoiceDialog.js
  53. 53 0
      src/api/company/companyVoiceLogs.js
  54. 28 0
      src/api/company/companyVoicePackageOrder.js
  55. 118 0
      src/api/company/companyVoiceRobotic.js
  56. 12 0
      src/api/company/pay.js
  57. 47 0
      src/api/company/statistics.js
  58. 102 0
      src/api/company/tcmScheduleReport.js
  59. 53 0
      src/api/company/tcmconsume.js
  60. 61 0
      src/api/company/wxDialog.js
  61. 71 0
      src/api/course/courseAnswerlogs.js
  62. 53 0
      src/api/course/courseDomainName.js
  63. 53 0
      src/api/course/courseFinishTemp.js
  64. 53 0
      src/api/course/courseQuestionBank.js
  65. 88 0
      src/api/course/courseRedPacketLog.js
  66. 122 0
      src/api/course/courseWatchLog.js
  67. 53 0
      src/api/course/sop.js
  68. 10 0
      src/api/course/sopCourseLink.js
  69. 62 0
      src/api/course/sopLogs.js
  70. 82 0
      src/api/course/userCourse.js
  71. 76 0
      src/api/course/userCourseCategory.js
  72. 77 0
      src/api/course/userCourseVideo.js
  73. 191 0
      src/api/crm/customer.js
  74. 21 0
      src/api/crm/customerAssign.js
  75. 53 0
      src/api/crm/customerContacts.js
  76. 53 0
      src/api/crm/customerExt.js
  77. 53 0
      src/api/crm/customerHisOrder.js
  78. 53 0
      src/api/crm/customerLogs.js
  79. 53 0
      src/api/crm/customerUser.js
  80. 53 0
      src/api/crm/customerVisit.js
  81. 30 0
      src/api/crm/event.js
  82. 43 0
      src/api/crm/msg.js
  83. 110 0
      src/api/crm/statistics.js
  84. 152 0
      src/api/doctor/doctor.js
  85. 53 0
      src/api/fastGpt/fastGptChatKeyword.js
  86. 53 0
      src/api/fastGpt/fastGptChatMsg.js
  87. 60 0
      src/api/fastGpt/fastGptChatMsgLogs.js
  88. 53 0
      src/api/fastGpt/fastGptChatSession.js
  89. 60 0
      src/api/fastGpt/fastGptCollection.js
  90. 61 0
      src/api/fastGpt/fastGptCollentionData.js
  91. 69 0
      src/api/fastGpt/fastGptDataset.js
  92. 81 0
      src/api/fastGpt/fastGptRole.js
  93. 63 0
      src/api/fastGpt/fastGptRoleTag.js
  94. 53 0
      src/api/fastGpt/fastGptUser.js
  95. 31 0
      src/api/index.js
  96. 40 0
      src/api/login.js
  97. 9 0
      src/api/menu.js
  98. 35 0
      src/api/monitor/logininfor.js
  99. 35 0
      src/api/monitor/operlog.js
  100. 79 0
      src/api/qw/QwWorkTask.js

+ 22 - 0
.editorconfig

@@ -0,0 +1,22 @@
+# 告诉EditorConfig插件,这是根文件,不用继续往上查找
+root = true
+
+# 匹配全部文件
+[*]
+# 设置字符集
+charset = utf-8
+# 缩进风格,可选space、tab
+indent_style = space
+# 缩进的空格数
+indent_size = 2
+# 结尾换行符,可选lf、cr、crlf
+end_of_line = lf
+# 在文件结尾插入新行
+insert_final_newline = true
+# 删除一行中的前后空格
+trim_trailing_whitespace = true
+
+# 匹配md结尾的文件
+[*.md]
+insert_final_newline = false
+trim_trailing_whitespace = false

+ 12 - 0
.env.development

@@ -0,0 +1,12 @@
+
+# 页面标题
+VUE_APP_TITLE =互联网医院管理系统
+
+# 开发环境配置
+ENV = 'development'
+
+# FS管理系统/开发环境
+VUE_APP_BASE_API = '/dev-api'
+
+# 路由懒加载
+VUE_CLI_BABEL_TRANSPILE_MODULES = true

+ 8 - 0
.env.production

@@ -0,0 +1,8 @@
+# 页面标题
+VUE_APP_TITLE =互联网医院管理系统
+
+# 生产环境配置
+ENV = 'production'
+
+#FS管理系统/生产环境
+VUE_APP_BASE_API = '/prod-api'

+ 10 - 0
.env.staging

@@ -0,0 +1,10 @@
+NODE_ENV = production
+
+# 测试环境配置
+ENV = 'staging'
+
+#FS管理系统/测试环境
+VUE_APP_BASE_API = '/stage-api'
+
+# 页面标题
+VUE_APP_TITLE =互联网医院管理系统

+ 10 - 0
.eslintignore

@@ -0,0 +1,10 @@
+# 忽略build目录下类型为js的文件的语法检查
+build/*.js
+# 忽略src/assets目录下文件的语法检查
+src/assets
+# 忽略public目录下文件的语法检查
+public
+# 忽略当前目录下为js的文件的语法检查
+*.js
+# 忽略当前目录下为vue的文件的语法检查
+*.vue

+ 199 - 0
.eslintrc.js

@@ -0,0 +1,199 @@
+// ESlint 检查配置
+module.exports = {
+  root: true,
+  parserOptions: {
+    parser: 'babel-eslint',
+    sourceType: 'module'
+  },
+  env: {
+    browser: true,
+    node: true,
+    es6: true,
+  },
+  extends: ['plugin:vue/recommended', 'eslint:recommended'],
+
+  // add your custom rules here
+  //it is base on https://github.com/vuejs/eslint-config-vue
+  rules: {
+    "vue/max-attributes-per-line": [2, {
+      "singleline": 10,
+      "multiline": {
+        "max": 1,
+        "allowFirstLine": false
+      }
+    }],
+    "vue/singleline-html-element-content-newline": "off",
+    "vue/multiline-html-element-content-newline":"off",
+    "vue/name-property-casing": ["error", "PascalCase"],
+    "vue/no-v-html": "off",
+    'accessor-pairs': 2,
+    'arrow-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'block-spacing': [2, 'always'],
+    'brace-style': [2, '1tbs', {
+      'allowSingleLine': true
+    }],
+    'camelcase': [0, {
+      'properties': 'always'
+    }],
+    'comma-dangle': [2, 'never'],
+    'comma-spacing': [2, {
+      'before': false,
+      'after': true
+    }],
+    'comma-style': [2, 'last'],
+    'constructor-super': 2,
+    'curly': [2, 'multi-line'],
+    'dot-location': [2, 'property'],
+    'eol-last': 2,
+    'eqeqeq': ["error", "always", {"null": "ignore"}],
+    'generator-star-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'handle-callback-err': [2, '^(err|error)$'],
+    'indent': [2, 2, {
+      'SwitchCase': 1
+    }],
+    'jsx-quotes': [2, 'prefer-single'],
+    'key-spacing': [2, {
+      'beforeColon': false,
+      'afterColon': true
+    }],
+    'keyword-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'new-cap': [2, {
+      'newIsCap': true,
+      'capIsNew': false
+    }],
+    'new-parens': 2,
+    'no-array-constructor': 2,
+    'no-caller': 2,
+    'no-console': 'off',
+    'no-class-assign': 2,
+    'no-cond-assign': 2,
+    'no-const-assign': 2,
+    'no-control-regex': 0,
+    'no-delete-var': 2,
+    'no-dupe-args': 2,
+    'no-dupe-class-members': 2,
+    'no-dupe-keys': 2,
+    'no-duplicate-case': 2,
+    'no-empty-character-class': 2,
+    'no-empty-pattern': 2,
+    'no-eval': 2,
+    'no-ex-assign': 2,
+    'no-extend-native': 2,
+    'no-extra-bind': 2,
+    'no-extra-boolean-cast': 2,
+    'no-extra-parens': [2, 'functions'],
+    'no-fallthrough': 2,
+    'no-floating-decimal': 2,
+    'no-func-assign': 2,
+    'no-implied-eval': 2,
+    'no-inner-declarations': [2, 'functions'],
+    'no-invalid-regexp': 2,
+    'no-irregular-whitespace': 2,
+    'no-iterator': 2,
+    'no-label-var': 2,
+    'no-labels': [2, {
+      'allowLoop': false,
+      'allowSwitch': false
+    }],
+    'no-lone-blocks': 2,
+    'no-mixed-spaces-and-tabs': 2,
+    'no-multi-spaces': 2,
+    'no-multi-str': 2,
+    'no-multiple-empty-lines': [2, {
+      'max': 1
+    }],
+    'no-native-reassign': 2,
+    'no-negated-in-lhs': 2,
+    'no-new-object': 2,
+    'no-new-require': 2,
+    'no-new-symbol': 2,
+    'no-new-wrappers': 2,
+    'no-obj-calls': 2,
+    'no-octal': 2,
+    'no-octal-escape': 2,
+    'no-path-concat': 2,
+    'no-proto': 2,
+    'no-redeclare': 2,
+    'no-regex-spaces': 2,
+    'no-return-assign': [2, 'except-parens'],
+    'no-self-assign': 2,
+    'no-self-compare': 2,
+    'no-sequences': 2,
+    'no-shadow-restricted-names': 2,
+    'no-spaced-func': 2,
+    'no-sparse-arrays': 2,
+    'no-this-before-super': 2,
+    'no-throw-literal': 2,
+    'no-trailing-spaces': 2,
+    'no-undef': 2,
+    'no-undef-init': 2,
+    'no-unexpected-multiline': 2,
+    'no-unmodified-loop-condition': 2,
+    'no-unneeded-ternary': [2, {
+      'defaultAssignment': false
+    }],
+    'no-unreachable': 2,
+    'no-unsafe-finally': 2,
+    'no-unused-vars': [2, {
+      'vars': 'all',
+      'args': 'none'
+    }],
+    'no-useless-call': 2,
+    'no-useless-computed-key': 2,
+    'no-useless-constructor': 2,
+    'no-useless-escape': 0,
+    'no-whitespace-before-property': 2,
+    'no-with': 2,
+    'one-var': [2, {
+      'initialized': 'never'
+    }],
+    'operator-linebreak': [2, 'after', {
+      'overrides': {
+        '?': 'before',
+        ':': 'before'
+      }
+    }],
+    'padded-blocks': [2, 'never'],
+    'quotes': [2, 'single', {
+      'avoidEscape': true,
+      'allowTemplateLiterals': true
+    }],
+    'semi': [2, 'never'],
+    'semi-spacing': [2, {
+      'before': false,
+      'after': true
+    }],
+    'space-before-blocks': [2, 'always'],
+    'space-before-function-paren': [2, 'never'],
+    'space-in-parens': [2, 'never'],
+    'space-infix-ops': 2,
+    'space-unary-ops': [2, {
+      'words': true,
+      'nonwords': false
+    }],
+    'spaced-comment': [2, 'always', {
+      'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
+    }],
+    'template-curly-spacing': [2, 'never'],
+    'use-isnan': 2,
+    'valid-typeof': 2,
+    'wrap-iife': [2, 'any'],
+    'yield-star-spacing': [2, 'both'],
+    'yoda': [2, 'never'],
+    'prefer-const': 2,
+    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
+    'object-curly-spacing': [2, 'always', {
+      objectsInObjects: false
+    }],
+    'array-bracket-spacing': [2, 'never']
+  }
+}

+ 26 - 0
.gitignore

@@ -0,0 +1,26 @@
+.DS_Store
+node_modules
+/dist
+
+
+# local env files
+.env.local
+.env.*.local
+
+# Log files
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
+
+package-lock.json
+yarn.lock

+ 36 - 0
README.en.md

@@ -0,0 +1,36 @@
+# his_companyui
+
+#### Description
+his_companyui
+
+#### Software Architecture
+Software architecture description
+
+#### Installation
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### Instructions
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### Contribution
+
+1.  Fork the repository
+2.  Create Feat_xxx branch
+3.  Commit your code
+4.  Create Pull Request
+
+
+#### Gitee Feature
+
+1.  You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
+2.  Gitee blog [blog.gitee.com](https://blog.gitee.com)
+3.  Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
+4.  The most valuable open source project [GVP](https://gitee.com/gvp)
+5.  The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
+6.  The most popular members  [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

+ 37 - 0
README.md

@@ -0,0 +1,37 @@
+# his_companyui
+
+#### 介绍
+his_companyui
+
+#### 软件架构
+软件架构说明
+
+
+#### 安装教程
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### 使用说明
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### 参与贡献
+
+1.  Fork 本仓库
+2.  新建 Feat_xxx 分支
+3.  提交代码
+4.  新建 Pull Request
+
+
+#### 特技
+
+1.  使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
+2.  Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
+3.  你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
+4.  [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
+5.  Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
+6.  Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

+ 13 - 0
babel.config.js

@@ -0,0 +1,13 @@
+module.exports = {
+  presets: [
+    // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
+    '@vue/cli-plugin-babel/preset'
+  ],
+  'env': {
+    'development': {
+      // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
+      // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
+      'plugins': ['dynamic-import-node']
+    }
+  }
+}

+ 35 - 0
build/index.js

@@ -0,0 +1,35 @@
+const { run } = require('runjs')
+const chalk = require('chalk')
+const config = require('../vue.config.js')
+const rawArgv = process.argv.slice(2)
+const args = rawArgv.join(' ')
+
+if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
+  const report = rawArgv.includes('--report')
+
+  run(`vue-cli-service build ${args}`)
+
+  const port = 9526
+  const publicPath = config.publicPath
+
+  var connect = require('connect')
+  var serveStatic = require('serve-static')
+  const app = connect()
+
+  app.use(
+    publicPath,
+    serveStatic('./dist', {
+      index: ['index.html', '/']
+    })
+  )
+
+  app.listen(port, function () {
+    console.log(chalk.green(`> Preview at  http://localhost:${port}${publicPath}`))
+    if (report) {
+      console.log(chalk.green(`> Report at  http://localhost:${port}${publicPath}report.html`))
+    }
+
+  })
+} else {
+  run(`vue-cli-service build ${args}`)
+}

+ 119 - 0
package.json

@@ -0,0 +1,119 @@
+{
+  "name": "fs",
+  "version": "1.1.0",
+  "description": "互联网医院销售管理平台",
+  "author": "FS",
+  "license": "MIT",
+  "scripts": {
+    "dev": "vue-cli-service serve",
+    "build:prod": "vue-cli-service build",
+    "build:stage": "vue-cli-service build --mode staging",
+    "preview": "node build/index.js --preview",
+    "lint": "eslint --ext .js,.vue src",
+    "test:unit": "jest --clearCache && vue-cli-service test:unit",
+    "test:ci": "npm run lint && npm run test:unit",
+    "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
+    "new": "plop"
+  },
+  "husky": {
+    "hooks": {
+      "pre-commit": "lint-staged"
+    }
+  },
+  "lint-staged": {
+    "src/**/*.{js,vue}": [
+      "eslint --fix",
+      "git add"
+    ]
+  },
+  "keywords": [
+    "vue",
+    "admin",
+    "dashboard",
+    "element-ui",
+    "boilerplate",
+    "admin-template",
+    "management-system"
+  ],
+  "dependencies": {
+    "@amap/amap-jsapi-loader": "^1.0.1",
+    "@jridgewell/gen-mapping": "^0.3.5",
+    "@riophae/vue-treeselect": "0.4.0",
+    "axios": "0.18.1",
+    "chart.js": "^2.9.4",
+    "clipboard": "2.0.4",
+    "compression-webpack-plugin": "^5.0.1",
+    "core-js": "3.6.5",
+    "echarts": "4.2.1",
+    "element-ui": "2.15.5",
+    "file-saver": "2.0.1",
+    "form-making": "^1.2.9",
+    "fuse.js": "3.4.4",
+    "js-beautify": "1.10.2",
+    "js-cookie": "2.2.0",
+    "jsencrypt": "3.0.0-rc.1",
+    "lodash.clonedeep": "^4.5.0",
+    "lodash.merge": "^4.6.2",
+    "moment": "^2.29.4",
+    "normalize.css": "7.0.0",
+    "nprogress": "0.2.0",
+    "path-to-regexp": "2.4.0",
+    "qrcodejs2": "0.0.2",
+    "quill": "1.3.7",
+    "screenfull": "4.2.0",
+    "sortablejs": "1.8.4",
+    "stylus": "^0.54.7",
+    "stylus-loader": "^3.0.2",
+    "v-clipboard": "^2.2.3",
+    "vue": "2.6.10",
+    "vue-clipboard2": "^0.3.1",
+    "vue-count-to": "1.0.13",
+    "vue-cropper": "0.4.9",
+    "vue-full-calendar": "^2.8.1-0",
+    "vue-mobile-audio": "^0.1.3",
+    "vue-router": "3.0.2",
+    "vue-splitpane": "1.0.4",
+    "vue2-ace-editor": "0.0.15",
+    "vuedraggable": "^2.20.0",
+    "vuex": "3.1.0",
+    "wangeditor": "^4.6.13"
+  },
+  "devDependencies": {
+    "@vue/cli-plugin-babel": "4.4.4",
+    "@vue/cli-plugin-eslint": "4.4.4",
+    "@vue/cli-plugin-unit-jest": "4.4.4",
+    "@vue/cli-service": "4.4.4",
+    "@vue/test-utils": "1.0.0-beta.29",
+    "autoprefixer": "9.5.1",
+    "babel-eslint": "10.1.0",
+    "babel-jest": "23.6.0",
+    "babel-plugin-dynamic-import-node": "2.3.3",
+    "chalk": "2.4.2",
+    "chokidar": "2.1.5",
+    "connect": "3.6.6",
+    "eslint": "6.7.2",
+    "eslint-plugin-vue": "6.2.2",
+    "html-webpack-plugin": "3.2.0",
+    "husky": "1.3.1",
+    "lint-staged": "8.1.5",
+    "mockjs": "1.0.1-beta3",
+    "node-sass": "4.14.1",
+    "plop": "2.3.0",
+    "runjs": "4.3.2",
+    "sass-loader": "8.0.2",
+    "script-ext-html-webpack-plugin": "2.1.3",
+    "script-loader": "0.7.2",
+    "serve-static": "1.13.2",
+    "svg-sprite-loader": "4.1.3",
+    "svgo": "1.2.0",
+    "vue-template-compiler": "2.6.10"
+  },
+  "engines": {
+    "node": ">=8.9",
+    "npm": ">= 3.0.0"
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions"
+  ]
+}

+ 211 - 0
public/index.html

@@ -0,0 +1,211 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="renderer" content="webkit">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <title><%= webpackConfig.name %></title>
+    <script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=ONIBZ-44LLJ-QHYFI-KGG6Y-5ADJT-A7BIO&libraries=drawing"></script>
+    <script src="/sdk.js" charset="utf-8"></script>
+
+	  <style>
+    html,
+    body,
+    #app {
+      height: 100%;
+      margin: 0px;
+      padding: 0px;
+    }
+    .chromeframe {
+      margin: 0.2em 0;
+      background: #ccc;
+      color: #000;
+      padding: 0.2em 0;
+    }
+
+    #loader-wrapper {
+      position: fixed;
+      top: 0;
+      left: 0;
+      width: 100%;
+      height: 100%;
+      z-index: 999999;
+    }
+
+    #loader {
+      display: block;
+      position: relative;
+      left: 50%;
+      top: 50%;
+      width: 150px;
+      height: 150px;
+      margin: -75px 0 0 -75px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -webkit-animation: spin 2s linear infinite;
+      -ms-animation: spin 2s linear infinite;
+      -moz-animation: spin 2s linear infinite;
+      -o-animation: spin 2s linear infinite;
+      animation: spin 2s linear infinite;
+      z-index: 1001;
+    }
+
+    #loader:before {
+      content: "";
+      position: absolute;
+      top: 5px;
+      left: 5px;
+      right: 5px;
+      bottom: 5px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -webkit-animation: spin 3s linear infinite;
+      -moz-animation: spin 3s linear infinite;
+      -o-animation: spin 3s linear infinite;
+      -ms-animation: spin 3s linear infinite;
+      animation: spin 3s linear infinite;
+    }
+
+    #loader:after {
+      content: "";
+      position: absolute;
+      top: 15px;
+      left: 15px;
+      right: 15px;
+      bottom: 15px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -moz-animation: spin 1.5s linear infinite;
+      -o-animation: spin 1.5s linear infinite;
+      -ms-animation: spin 1.5s linear infinite;
+      -webkit-animation: spin 1.5s linear infinite;
+      animation: spin 1.5s linear infinite;
+    }
+
+
+    @-webkit-keyframes spin {
+      0% {
+        -webkit-transform: rotate(0deg);
+        -ms-transform: rotate(0deg);
+        transform: rotate(0deg);
+      }
+      100% {
+        -webkit-transform: rotate(360deg);
+        -ms-transform: rotate(360deg);
+        transform: rotate(360deg);
+      }
+    }
+
+    @keyframes spin {
+      0% {
+        -webkit-transform: rotate(0deg);
+        -ms-transform: rotate(0deg);
+        transform: rotate(0deg);
+      }
+      100% {
+        -webkit-transform: rotate(360deg);
+        -ms-transform: rotate(360deg);
+        transform: rotate(360deg);
+      }
+    }
+
+
+    #loader-wrapper .loader-section {
+      position: fixed;
+      top: 0;
+      width: 51%;
+      height: 100%;
+      background: #7171C6;
+      z-index: 1000;
+      -webkit-transform: translateX(0);
+      -ms-transform: translateX(0);
+      transform: translateX(0);
+    }
+
+    #loader-wrapper .loader-section.section-left {
+      left: 0;
+    }
+
+    #loader-wrapper .loader-section.section-right {
+      right: 0;
+    }
+
+
+    .loaded #loader-wrapper .loader-section.section-left {
+      -webkit-transform: translateX(-100%);
+      -ms-transform: translateX(-100%);
+      transform: translateX(-100%);
+      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+    }
+
+    .loaded #loader-wrapper .loader-section.section-right {
+      -webkit-transform: translateX(100%);
+      -ms-transform: translateX(100%);
+      transform: translateX(100%);
+      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+    }
+
+    .loaded #loader {
+      opacity: 0;
+      -webkit-transition: all 0.3s ease-out;
+      transition: all 0.3s ease-out;
+    }
+
+    .loaded #loader-wrapper {
+      visibility: hidden;
+      -webkit-transform: translateY(-100%);
+      -ms-transform: translateY(-100%);
+      transform: translateY(-100%);
+      -webkit-transition: all 0.3s 1s ease-out;
+      transition: all 0.3s 1s ease-out;
+    }
+
+    .no-js #loader-wrapper {
+      display: none;
+    }
+
+    .no-js h1 {
+      color: #222222;
+    }
+
+    #loader-wrapper .load_title {
+      font-family: 'Open Sans';
+      color: #FFF;
+      font-size: 16px;
+      width: 100%;
+      text-align: center;
+      z-index: 9999999999999;
+      position: absolute;
+      top: 60%;
+      opacity: 1;
+      line-height: 30px;
+    }
+
+    #loader-wrapper .load_title span {
+      font-weight: normal;
+      font-style: italic;
+      font-size: 13px;
+      color: #FFF;
+      opacity: 0.5;
+    }
+  </style>
+  </head>
+  <body>
+    <audio id='remoteAudio'  autoPlay></audio>
+    <div id="app">
+	    <div id="loader-wrapper">
+		    <div id="loader"></div>
+		    <div class="loader-section section-left"></div>
+		    <div class="loader-section section-right"></div>
+		    <div class="load_title">正在加载系统资源,请耐心等待</div>
+        </div>
+	</div>
+  </body>
+</html>

+ 2 - 0
public/robots.txt

@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /

Файловите разлики са ограничени, защото са твърде много
+ 27672 - 0
public/sdk.js


+ 254 - 0
public/wx.html

@@ -0,0 +1,254 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <link rel="icon" href="data:;base64,=">
+  <meta charset="UTF-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <title></title>
+  <meta name="description" content="">
+  <link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/2.4.1/weui.min.css"></link>
+  <script src="https://n.stcfile.com/inner/wlh5/jquery.min.js"></script>
+  <link rel="stylesheet" type="text/css" href="https://n.stcfile.com/inner/wlh5/home_links.css">
+  <script>
+    window.onerror = e => {
+      console.error(e)
+    }
+  </script>
+</head>
+<body>
+  <div class="page full">
+    <div id="public-web-container" class="public-container">
+        <div id="safe-notice" style="display:none;">
+            <div class="safe-notice">
+                <img src="https://n.stcfile.com/inner/wlh5/safe.png">
+                <p>本链接经过<font style="font-weight: 500;color: #333333;">SSL安全加密</font>,请放心点击!</p>
+            </div>
+        </div>
+        <div id="style_normal" style="display:none;">
+            <img class="logo" src="">
+            <p class="notice-msg"><small style="font-weight: 500;">正在跳转中...</small><br>如未自动打开微信请点击下方按钮</p>
+            <div class="button-container" onclick="getInfos()">
+                <a id="public-web-jump-button" type="button" class="default" style="width: 66%; margin-top: 20px;">
+                    <span id="public-web-jump-button-loading" class="weui-primary-loading weui-primary-loading_transparent">
+                        <i class="weui-primary-loading__dot"></i>
+                    </span>
+                    <span style="font-weight: 500;">正在打开微信</span>
+                  </a>
+            </div>
+            <a id="dianjiimg_links" href="">
+            </a>
+            <div class="qrcodes-container" id="qrcodes"></div>
+        </div>
+        <div id="style_full" style="display:none;">
+            <a id="dianjiimg_links_full" href="">
+                <img class="fullimg" src="">
+            </a>
+            <div id="button_container_full" class="button-container-none">
+                <a id="public-web-jump-button-full" href="" style="">
+                </a>
+            </div>
+        </div>
+    </div>
+  </div>
+
+  <script type="text/javascript">
+    var cid=0;
+    $(document).ready(function() {
+        cid=getQueryString("id");
+        htmlInfo();
+        getInfos();
+    });
+
+    function  getQueryString(name){
+      var  reg = new  RegExp( "(^|&)" + name + "=([^&]*)(&|$)" );
+      var  r = window.location.search.substr(1).match(reg);
+      if (r!= null ) return   unescape(r[2]); return  null ;
+    }
+
+    
+    function htmlInfo() {
+      var mobile_flag = isMobile();
+        if (mobile_flag) {
+          $("#safe-notice").show();
+          $("#style_normal").show();
+          $(".logo").attr("src","https://n.stcfile.com/inner/wlh5/wx_202204.png")
+        } else {
+          $("#safe-notice").hide();
+          $("#style_normal").hide();
+          $(".public-container").html('请使用手机访问本链接'+'</p>');
+        }
+    }
+
+    function getInfos() {
+      
+      var weixin = isWeiXin();
+    //   var res={
+    //         "code": 200,
+    //         "msg": "success",
+    //         "result": {
+    //                 "openlink": "weixin:\/\/dl\/business\/?t=Dyq5kn9Vfyf"
+    //             }
+    //     };
+	   
+	//    if (res.code === 200) {
+    //     if (!weixin) {
+    //       $("#dianjiimg_links").attr('href', res.result.openlink)
+    //       // $("#public-web-jump-button").attr("href", res.result.openlink)
+    //       jsUpdate(res)
+    //     }
+	//    } else {
+	//    	    $(".public-container").html('<p class="error-msg">'+res.msg+'</p>');
+	//    }
+      
+      $.ajax({
+            type: "get",
+            //async: false,
+            //dataType: "jsonp",
+            //jsonp: "callback",//传递给请求处理程序或页面的,标识jsonp回调函数名(一般为:callback)
+            //jsonpCallback: "GetData",//callback的function名称
+            //url: "http://127.0.0.1:7015/app/user/getAppletScheme", 
+            url: "http://139.186.77.83:7015/app/user/getAppletScheme",
+            data: {
+              "cardId":cid,
+              // "domain": "eturl.cn",
+              // "cookie":"ca77320dfefbda77f218b15fb5e64e96",
+              // "f":"bd084627"
+            },
+            success: function(res) {
+                  if (res.code === 200) {
+                      if (!weixin) {
+                        $("#dianjiimg_links").attr('href', res.result.openlink)
+                        // $("#public-web-jump-button").attr("href", res.result.openlink)
+                        jsUpdate(res)
+                      }
+                  } 
+                  else {
+                        $(".public-container").html('<p class="error-msg">'+res.msg+'</p>');
+                  }
+              }
+      });
+   
+	}
+    function jsUpdate(res) {
+            var mobile_flag = isMobile();
+            var weixin = isWeiXin();
+            if(mobile_flag){
+                var baidu = isBaidu();
+                var uc = isUc();
+                var weibo = isWeibo();
+                var douyin = isDouyin();
+                if (weixin) {
+
+                } 
+                else if (uc) {
+                    $("#public-web-jump-button").html("点击立即前往微信");
+                    $("#dianjiimg").show();
+                    window.location.href = res.result.openlink;
+                } 
+                else if (douyin) {
+                    if (res.result.openlink !== '') {
+                      window.location.href = res.result.openlink;
+                      // $("#public-web-jump-button span").click();
+                    }
+                } 
+                else if (weibo) {
+                  window.location.href = res.result.openlink;
+                } 
+                else {
+                    $("#dianjiimg").show();
+                    if (res.result.openlink !== '') {
+                      window.location.href = res.result.openlink;
+                      // $("#public-web-jump-button span").click();
+                    }
+                    setTimeout(function (){
+                        $("#public-web-jump-button").html("点击立即前往微信");
+                        $("#dianjiimg").show();
+                    }, 3000);
+                }
+            } else {
+                // 强行调用一波URLScheme
+                if (res.result.openlink !== '') {
+                  window.location.href = res.result.openlink;
+                }
+                $(".notice-msg").html("请使用手机访问本网页!");
+            }
+        }
+
+    function isWeiXin(){
+        var ua = navigator.userAgent.toLowerCase()
+        var isWXWork = ua.match(/wxwork/i) == 'wxwork'
+        var isWeixin = !isWXWork && ua.match(/micromessenger/i) == 'micromessenger'
+        return isWeixin;
+    }
+
+    function isDouyin(){
+            ua = navigator.userAgent.toLowerCase();
+            if (ua.indexOf('aweme') >-1){
+                return true;
+            } else {
+                return false;
+            }
+        }
+
+    function isBaidu(){
+        ua = navigator.userAgent.toLowerCase();
+        if (ua.indexOf('baiduboxapp/') >-1){
+            return true;
+        } else {
+            return false;
+        }
+    }
+
+    function isUc() {
+        if (navigator.userAgent.match(/(UCBrowser|Quark)/i)) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+
+    function isWeibo() {
+        var ua = navigator.userAgent;
+        if(ua.indexOf('Weibo') > -1) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+
+    function getQueryVariable(variable)
+    {
+        var query = window.location.search.substring(1);
+        var vars = query.split("&");
+        for (var i=0;i<vars.length;i++) {
+            var pair = vars[i].split("=");
+            if(pair[0] == variable){return pair[1];}
+        }
+        return(false);
+    }
+
+    function isMobile() {
+        var mobile_flag = true;
+        if (navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|XiaoMi|IEMobile)/i)) {
+            mobile_flag = true;
+        } else {
+            mobile_flag = false;
+        }
+        var screen_width = window.screen.availWidth;
+        if(screen_width < 700){
+            mobile_flag = true;
+        }
+        return mobile_flag;
+    }
+
+    function isIphone() {
+        if (navigator.userAgent.match(/(iPhone|iPod|ios|iPad)/i)) {
+            return true;
+        } else {
+            return false;
+        }
+    }
+  </script>
+</body>
+</html>

+ 11 - 0
src/App.vue

@@ -0,0 +1,11 @@
+<template>
+  <div id="app">
+    <router-view />
+  </div>
+</template>
+
+<script>
+export default  {
+  name:  'App'
+}
+</script>

+ 53 - 0
src/api/bill/billLog.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询订单开票记录列表
+export function listBillLog(query) {
+  return request({
+    url: '/bill/billLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询订单开票记录详细
+export function getBillLog(id) {
+  return request({
+    url: '/bill/billLog/' + id,
+    method: 'get'
+  })
+}
+
+// 新增订单开票记录
+export function addBillLog(data) {
+  return request({
+    url: '/bill/billLog',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改订单开票记录
+export function updateBillLog(data) {
+  return request({
+    url: '/bill/billLog',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除订单开票记录
+export function delBillLog(id) {
+  return request({
+    url: '/bill/billLog/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出订单开票记录
+export function exportBillLog(query) {
+  return request({
+    url: '/bill/billLog/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/chat/chatDataset.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询知识库列表
+export function listChatDataset(query) {
+  return request({
+    url: '/chat/chatDataset/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询知识库详细
+export function getChatDataset(datasetId) {
+  return request({
+    url: '/chat/chatDataset/' + datasetId,
+    method: 'get'
+  })
+}
+
+// 新增知识库
+export function addChatDataset(data) {
+  return request({
+    url: '/chat/chatDataset',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改知识库
+export function updateChatDataset(data) {
+  return request({
+    url: '/chat/chatDataset',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除知识库
+export function delChatDataset(datasetId) {
+  return request({
+    url: '/chat/chatDataset/' + datasetId,
+    method: 'delete'
+  })
+}
+
+// 导出知识库
+export function exportChatDataset(query) {
+  return request({
+    url: '/chat/chatDataset/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/chat/chatDatasetFile.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询文件列表
+export function listChatDatasetFile(query) {
+  return request({
+    url: '/chat/chatDatasetFile/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询文件详细
+export function getChatDatasetFile(fileId) {
+  return request({
+    url: '/chat/chatDatasetFile/' + fileId,
+    method: 'get'
+  })
+}
+
+// 新增文件
+export function addChatDatasetFile(data) {
+  return request({
+    url: '/chat/chatDatasetFile',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改文件
+export function updateChatDatasetFile(data) {
+  return request({
+    url: '/chat/chatDatasetFile',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除文件
+export function delChatDatasetFile(fileId) {
+  return request({
+    url: '/chat/chatDatasetFile/' + fileId,
+    method: 'delete'
+  })
+}
+
+// 导出文件
+export function exportChatDatasetFile(query) {
+  return request({
+    url: '/chat/chatDatasetFile/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/chat/chatKeyword.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询关键字列表
+export function listChatKeyword(query) {
+  return request({
+    url: '/chat/chatKeyword/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询关键字详细
+export function getChatKeyword(keywordId) {
+  return request({
+    url: '/chat/chatKeyword/' + keywordId,
+    method: 'get'
+  })
+}
+
+// 新增关键字
+export function addChatKeyword(data) {
+  return request({
+    url: '/chat/chatKeyword',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改关键字
+export function updateChatKeyword(data) {
+  return request({
+    url: '/chat/chatKeyword',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除关键字
+export function delChatKeyword(keywordId) {
+  return request({
+    url: '/chat/chatKeyword/' + keywordId,
+    method: 'delete'
+  })
+}
+
+// 导出关键字
+export function exportChatKeyword(query) {
+  return request({
+    url: '/chat/chatKeyword/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/chat/chatMsg.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询聊天消息记录列表
+export function listChatMsg(query) {
+  return request({
+    url: '/chat/chatMsg/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询聊天消息记录详细
+export function getChatMsg(msgId) {
+  return request({
+    url: '/chat/chatMsg/' + msgId,
+    method: 'get'
+  })
+}
+
+// 新增聊天消息记录
+export function addChatMsg(data) {
+  return request({
+    url: '/chat/chatMsg',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改聊天消息记录
+export function updateChatMsg(data) {
+  return request({
+    url: '/chat/chatMsg',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除聊天消息记录
+export function delChatMsg(msgId) {
+  return request({
+    url: '/chat/chatMsg/' + msgId,
+    method: 'delete'
+  })
+}
+
+// 导出聊天消息记录
+export function exportChatMsg(query) {
+  return request({
+    url: '/chat/chatMsg/export',
+    method: 'get',
+    params: query
+  })
+}

+ 61 - 0
src/api/chat/chatMsgLogs.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询消息操作日志列表
+export function listChatMsgLogs(query) {
+  return request({
+    url: '/chat/chatMsgLogs/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getChatMsgLogsList(query) {
+  return request({
+    url: '/chat/chatMsgLogs/logsList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询消息操作日志详细
+export function getChatMsgLogs(logsId) {
+  return request({
+    url: '/chat/chatMsgLogs/' + logsId,
+    method: 'get'
+  })
+}
+
+// 新增消息操作日志
+export function addChatMsgLogs(data) {
+  return request({
+    url: '/chat/chatMsgLogs',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改消息操作日志
+export function updateChatMsgLogs(data) {
+  return request({
+    url: '/chat/chatMsgLogs',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除消息操作日志
+export function delChatMsgLogs(logsId) {
+  return request({
+    url: '/chat/chatMsgLogs/' + logsId,
+    method: 'delete'
+  })
+}
+
+// 导出消息操作日志
+export function exportChatMsgLogs(query) {
+  return request({
+    url: '/chat/chatMsgLogs/export',
+    method: 'get',
+    params: query
+  })
+}

+ 62 - 0
src/api/chat/chatRole.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询聊天角色列表
+export function listChatRole(query) {
+  return request({
+    url: '/chat/chatRole/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getAllRoleList(query) {
+  return request({
+    url: '/chat/chatRole/getAllRoleList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+// 查询聊天角色详细
+export function getChatRole(roleId) {
+  return request({
+    url: '/chat/chatRole/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增聊天角色
+export function addChatRole(data) {
+  return request({
+    url: '/chat/chatRole',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改聊天角色
+export function updateChatRole(data) {
+  return request({
+    url: '/chat/chatRole',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除聊天角色
+export function delChatRole(roleId) {
+  return request({
+    url: '/chat/chatRole/' + roleId,
+    method: 'delete'
+  })
+}
+
+// 导出聊天角色
+export function exportChatRole(query) {
+  return request({
+    url: '/chat/chatRole/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/chat/chatSession.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询会话列表
+export function listChatSession(query) {
+  return request({
+    url: '/chat/chatSession/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询会话详细
+export function getChatSession(sessionId) {
+  return request({
+    url: '/chat/chatSession/' + sessionId,
+    method: 'get'
+  })
+}
+
+// 新增会话
+export function addChatSession(data) {
+  return request({
+    url: '/chat/chatSession',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改会话
+export function updateChatSession(data) {
+  return request({
+    url: '/chat/chatSession',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除会话
+export function delChatSession(sessionId) {
+  return request({
+    url: '/chat/chatSession/' + sessionId,
+    method: 'delete'
+  })
+}
+
+// 导出会话
+export function exportChatSession(query) {
+  return request({
+    url: '/chat/chatSession/export',
+    method: 'get',
+    params: query
+  })
+}

+ 11 - 0
src/api/chat/chatUpload.js

@@ -0,0 +1,11 @@
+import request from '@/utils/request'
+
+ 
+export function getUrl(data) {
+  return request({
+    url: '/chat/upload/getUrl',
+    method: 'post',
+    data: data
+  })
+}
+ 

+ 53 - 0
src/api/chat/chatUser.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户列表
+export function listChatUser(query) {
+  return request({
+    url: '/chat/chatUser/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户详细
+export function getChatUser(userId) {
+  return request({
+    url: '/chat/chatUser/' + userId,
+    method: 'get'
+  })
+}
+
+// 新增客户
+export function addChatUser(data) {
+  return request({
+    url: '/chat/chatUser',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户
+export function updateChatUser(data) {
+  return request({
+    url: '/chat/chatUser',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户
+export function delChatUser(userId) {
+  return request({
+    url: '/chat/chatUser/' + userId,
+    method: 'delete'
+  })
+}
+
+// 导出客户
+export function exportChatUser(query) {
+  return request({
+    url: '/chat/chatUser/export',
+    method: 'get',
+    params: query
+  })
+}

+ 17 - 0
src/api/common.js

@@ -0,0 +1,17 @@
+import request from '@/utils/request'
+
+export function sendSmsCode(data) {
+  return request({
+    url: '/common/sendSmsCode',
+    method: 'post',
+    data: data
+  })
+}
+
+export function getTask(taskId) {
+  return request({
+    url: '/common/getTask/'+taskId,
+    method: 'get'
+  })
+}
+ 

+ 53 - 0
src/api/company/VoiceRoboticWx.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询AI外呼任务加微方式列表
+export function listVoiceRoboticWx(query) {
+  return request({
+    url: '/company/VoiceRoboticWx/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询AI外呼任务加微方式详细
+export function getVoiceRoboticWx(id) {
+  return request({
+    url: '/company/VoiceRoboticWx/' + id,
+    method: 'get'
+  })
+}
+
+// 新增AI外呼任务加微方式
+export function addVoiceRoboticWx(data) {
+  return request({
+    url: '/company/VoiceRoboticWx',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改AI外呼任务加微方式
+export function updateVoiceRoboticWx(data) {
+  return request({
+    url: '/company/VoiceRoboticWx',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除AI外呼任务加微方式
+export function delVoiceRoboticWx(id) {
+  return request({
+    url: '/company/VoiceRoboticWx/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出AI外呼任务加微方式
+export function exportVoiceRoboticWx(query) {
+  return request({
+    url: '/company/VoiceRoboticWx/export',
+    method: 'get',
+    params: query
+  })
+}

+ 45 - 0
src/api/company/company.js

@@ -0,0 +1,45 @@
+import request from '@/utils/request'
+
+
+export function listCompany(query) {
+  return request({
+    url: '/company/company/list',
+    method: 'get',
+    params: query
+  })
+}
+export function getCompanyInfo() {
+  return request({
+    url: '/company/company/getCompanyInfo',
+    method: 'get'
+  })
+}
+export function getCompanyVoice() {
+  return request({
+    url: '/company/company/getCompanyVoice',
+    method: 'get'
+  })
+}
+export function getCompanySms() {
+  return request({
+    url: '/company/company/getCompanySms',
+    method: 'get'
+  })
+}
+
+
+export function getCompanyList() {
+  return request({
+    url: '/company/company/getCompanyList',
+    method: 'get'
+  })
+}
+
+export function allList(query) {
+  return request({
+    url: '/company/company/allList',
+    method: 'get',
+    params: query
+  })
+}
+

+ 70 - 0
src/api/company/companyAccount.js

@@ -0,0 +1,70 @@
+import request from '@/utils/request'
+
+// 查询个微账号列表
+export function listCompanyAccount(query) {
+  return request({
+    url: '/company/companyWx/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询个微账号列表
+export function companyListAll(query) {
+  return request({
+    url: '/company/companyWx/companyListAll',
+    method: 'get',
+    params: query
+  })
+}
+// 查询个微账号列表
+export function listAll(query) {
+  return request({
+    url: '/company/companyWx/listAll',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询个微账号详细
+export function getCompanyAccount(id) {
+  return request({
+    url: '/company/companyWx/' + id,
+    method: 'get'
+  })
+}
+
+// 新增个微账号
+export function addCompanyAccount(data) {
+  return request({
+    url: '/company/companyWx',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改个微账号
+export function updateCompanyAccount(data) {
+  return request({
+    url: '/company/companyWx',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除个微账号
+export function delCompanyAccount(id) {
+  return request({
+    url: '/company/companyWx/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出个微账号
+export function exportCompanyAccount(query) {
+  return request({
+    url: '/company/companyWx/export',
+    method: 'get',
+    params: query
+  })
+}

+ 70 - 0
src/api/company/companyClient.js

@@ -0,0 +1,70 @@
+import request from '@/utils/request'
+
+// 查询添加个微信账号列表
+export function listCompanyClient(query) {
+  return request({
+    url: '/company/companyClient/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询添加个微信账号列表
+export function addWxStatistics(query) {
+  return request({
+    url: '/company/companyClient/addWxStatistics',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询添加个微信账号详细
+export function getCompanyClient(id) {
+  return request({
+    url: '/company/companyClient/' + id,
+    method: 'get'
+  })
+}
+
+// 新增添加个微信账号
+export function addCompanyClient(data) {
+  return request({
+    url: '/company/companyClient',
+    method: 'post',
+    data: data
+  })
+}
+// 新增添加个微信账号
+export function addWxClient(data) {
+  return request({
+    url: '/company/companyClient/addWxClient',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改添加个微信账号
+export function updateCompanyClient(data) {
+  return request({
+    url: '/company/companyClient',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除添加个微信账号
+export function delCompanyClient(id) {
+  return request({
+    url: '/company/companyClient/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出添加个微信账号
+export function exportCompanyClient(query) {
+  return request({
+    url: '/company/companyClient/export',
+    method: 'get',
+    params: query
+  })
+}

+ 22 - 0
src/api/company/companyConfig.js

@@ -0,0 +1,22 @@
+import request from '@/utils/request'
+
+ 
+
+// 根据参数键名查询参数值
+export function getConfigKey(configKey) {
+  return request({
+    url: '/company/companyConfig/configKey/' + configKey,
+    method: 'get'
+  })
+}
+
+
+// 修改参数配置
+export function updateConfig(data) {
+  return request({
+    url: '/company/companyConfig',
+    method: 'put',
+    data: data
+  })
+}
+

+ 76 - 0
src/api/company/companyDept.js

@@ -0,0 +1,76 @@
+import request from '@/utils/request'
+
+// 查询部门列表
+export function listDept(query) {
+  return request({
+    url: '/company/companyDept/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询部门列表(排除节点)
+export function listDeptExcludeChild(deptId) {
+  return request({
+    url: '/company/companyDept/list/exclude/' + deptId,
+    method: 'get'
+  })
+}
+
+// 查询部门详细
+export function getDept(deptId) {
+  return request({
+    url: '/company/companyDept/' + deptId,
+    method: 'get'
+  })
+}
+
+// 查询部门下拉树结构
+export function treeselect() {
+  return request({
+    url: '/company/companyDept/treeselect',
+    method: 'get'
+  })
+}
+
+// 根据角色ID查询部门树结构
+export function roleDeptTreeselect(roleId) {
+  return request({
+    url: '/company/companyDept/roleDeptTreeselect/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增部门
+export function addDept(data) {
+  return request({
+    url: '/company/companyDept',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改部门
+export function updateDept(data) {
+  return request({
+    url: '/company/companyDept',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除部门
+export function delDept(deptId) {
+  return request({
+    url: '/company/companyDept/' + deptId,
+    method: 'delete'
+  })
+}
+
+
+export function allTreeselect() {
+  return request({
+    url: '/company/companyDept/allTreeselect',
+    method: 'get'
+  })
+}

+ 60 - 0
src/api/company/companyMenu.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询菜单列表
+export function listMenu(query) {
+  return request({
+    url: '/company/companyMenu/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询菜单详细
+export function getMenu(menuId) {
+  return request({
+    url: '/company/companyMenu/' + menuId,
+    method: 'get'
+  })
+}
+
+// 查询菜单下拉树结构
+export function treeselect() {
+  return request({
+    url: '/company/companyMenu/treeselect',
+    method: 'get'
+  })
+}
+
+// 根据角色ID查询菜单下拉树结构
+export function roleMenuTreeselect(roleId) {
+  return request({
+    url: '/company/companyMenu/roleMenuTreeselect/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增菜单
+export function addMenu(data) {
+  return request({
+    url: '/company/companyMenu',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改菜单
+export function updateMenu(data) {
+  return request({
+    url: '/company/companyMenu',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除菜单
+export function delMenu(menuId) {
+  return request({
+    url: '/company/companyMenu/' + menuId,
+    method: 'delete'
+  })
+}

+ 61 - 0
src/api/company/companyMoneyLogs.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询企业账户记录列表
+export function listCompanyMoneyLogs(query) {
+  return request({
+    url: '/company/companyMoneyLogs/list',  
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询企业账户记录详细
+export function getCompanyMoneyLogs(logsId) {
+  return request({
+    url: '/company/companyMoneyLogs/' + logsId,
+    method: 'get'
+  })
+}
+
+// 新增企业账户记录
+export function addCompanyMoneyLogs(data) {
+  return request({
+    url: '/company/companyMoneyLogs',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改企业账户记录
+export function updateCompanyMoneyLogs(data) {
+  return request({
+    url: '/company/companyMoneyLogs',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除企业账户记录
+export function delCompanyMoneyLogs(logsId) {
+  return request({
+    url: '/company/companyMoneyLogs/' + logsId,
+    method: 'delete'
+  })
+}
+
+// 导出企业账户记录
+export function exportCompanyMoneyLogs(query) {
+  return request({
+    url: '/company/companyMoneyLogs/export',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getCompanyTotalMoneys(query) {
+  return request({
+    url: '/company/companyMoneyLogs/getCompanyTotalMoneys',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/company/companyPost.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询岗位列表
+export function listPost(query) {
+  return request({
+    url: '/company/companyPost/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询岗位详细
+export function getPost(postId) {
+  return request({
+    url: '/company/companyPost/' + postId,
+    method: 'get'
+  })
+}
+
+// 新增岗位
+export function addPost(data) {
+  return request({
+    url: '/company/companyPost',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改岗位
+export function updatePost(data) {
+  return request({
+    url: '/company/companyPost',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除岗位
+export function delPost(postId) {
+  return request({
+    url: '/company/companyPost/' + postId,
+    method: 'delete'
+  })
+}
+
+// 导出岗位
+export function exportPost(query) {
+  return request({
+    url: '/company/companyPost/export',
+    method: 'get',
+    params: query
+  })
+}

+ 71 - 0
src/api/company/companyProfit.js

@@ -0,0 +1,71 @@
+import request from '@/utils/request'
+
+// 查询提现列表
+export function listCompanyProfit(query) {
+  return request({
+    url: '/company/companyProfit/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询提现详细
+export function getCompanyProfit(profitId) {
+  return request({
+    url: '/company/companyProfit/' + profitId,
+    method: 'get'
+  })
+}
+
+ 
+export function profit(data) {
+  return request({
+    url: '/company/companyProfit/profit',
+    method: 'post',
+    data: data
+  })
+}
+
+export function cancel(data) {
+  return request({
+    url: '/company/companyProfit/cancel',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 新增提现
+export function addCompanyProfit(data) {
+  return request({
+    url: '/company/companyProfit',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改提现
+export function updateCompanyProfit(data) {
+  return request({
+    url: '/company/companyProfit',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除提现
+export function delCompanyProfit(profitId) {
+  return request({
+    url: '/company/companyProfit/' + profitId,
+    method: 'delete'
+  })
+}
+
+// 导出提现
+export function exportCompanyProfit(query) {
+  return request({
+    url: '/company/companyProfit/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/company/companyRecharge.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询充值列表
+export function listCompanyRecharge(query) {
+  return request({
+    url: '/company/companyRecharge/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询充值详细
+export function getCompanyRecharge(rechargeId) {
+  return request({
+    url: '/company/companyRecharge/' + rechargeId,
+    method: 'get'
+  })
+}
+
+// 新增充值
+export function addCompanyRecharge(data) {
+  return request({
+    url: '/company/companyRecharge',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改充值
+export function updateCompanyRecharge(data) {
+  return request({
+    url: '/company/companyRecharge',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除充值
+export function delCompanyRecharge(rechargeId) {
+  return request({
+    url: '/company/companyRecharge/' + rechargeId,
+    method: 'delete'
+  })
+}
+
+// 导出充值
+export function exportCompanyRecharge(query) {
+  return request({
+    url: '/company/companyRecharge/export',
+    method: 'get',
+    params: query
+  })
+}

+ 75 - 0
src/api/company/companyRole.js

@@ -0,0 +1,75 @@
+import request from '@/utils/request'
+
+// 查询角色列表
+export function listRole(query) {
+  return request({
+    url: '/company/companyRole/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询角色详细
+export function getRole(roleId) {
+  return request({
+    url: '/company/companyRole/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增角色
+export function addRole(data) {
+  return request({
+    url: '/company/companyRole',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改角色
+export function updateRole(data) {
+  return request({
+    url: '/company/companyRole',
+    method: 'put',
+    data: data
+  })
+}
+
+// 角色数据权限
+export function dataScope(data) {
+  return request({
+    url: '/company/companyRole/dataScope',
+    method: 'put',
+    data: data
+  })
+}
+
+// 角色状态修改
+export function changeRoleStatus(roleId, status) {
+  const data = {
+    roleId,
+    status
+  }
+  return request({
+    url: '/company/companyRole/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除角色
+export function delRole(roleId) {
+  return request({
+    url: '/company/companyRole/' + roleId,
+    method: 'delete'
+  })
+}
+
+// 导出角色
+export function exportRole(query) {
+  return request({
+    url: '/company/companyRole/export',
+    method: 'get',
+    params: query
+  })
+}

+ 97 - 0
src/api/company/companySms.js

@@ -0,0 +1,97 @@
+import request from '@/utils/request'
+
+// 查询公司短信列表
+export function listCompanySms(query) {
+  return request({
+    url: '/company/companySms/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询公司短信详细
+export function getCompanySms(smsId) {
+  return request({
+    url: '/company/companySms/' + smsId,
+    method: 'get'
+  })
+}
+
+// 新增公司短信
+export function addCompanySms(data) {
+  return request({
+    url: '/company/companySms',
+    method: 'post',
+    data: data
+  })
+}
+export function sendCustomerMsg(data) {
+  return request({
+    url: '/company/companySms/sendCustomerMsg',
+    method: 'post',
+    data: data
+  })
+}
+
+export function sendStoreOrderMsg(data) {
+  return request({
+    url: '/company/companySms/sendOrderMsg',
+    method: 'post',
+    data: data
+  })
+}
+
+export function sendPackageOrderMsg(data) {
+  return request({
+    url: '/company/companySms/sendPackageOrderMsg',
+    method: 'post',
+    data: data
+  })
+}
+                                
+export function sendCustomerBatchMsg(data) {
+  return request({
+    url: '/company/companySms/sendCustomerBatchMsg',
+    method: 'post',
+    data: data
+  })
+}
+
+
+export function getCompanySmsCount() {
+  return request({
+    url: '/company/companySms/getCompanySmsCount',
+    method: 'get'
+  })
+}
+
+
+
+
+
+
+// 修改公司短信
+export function updateCompanySms(data) {
+  return request({
+    url: '/company/companySms',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除公司短信
+export function delCompanySms(smsId) {
+  return request({
+    url: '/company/companySms/' + smsId,
+    method: 'delete'
+  })
+}
+
+// 导出公司短信
+export function exportCompanySms(query) {
+  return request({
+    url: '/company/companySms/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/company/companySmsLogs.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询短信发送记录列表
+export function listCompanySmsLogs(query) {
+  return request({
+    url: '/company/companySmsLogs/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询短信发送记录详细
+export function getCompanySmsLogs(logsId) {
+  return request({
+    url: '/company/companySmsLogs/' + logsId,
+    method: 'get'
+  })
+}
+
+// 新增短信发送记录
+export function addCompanySmsLogs(data) {
+  return request({
+    url: '/company/companySmsLogs',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改短信发送记录
+export function updateCompanySmsLogs(data) {
+  return request({
+    url: '/company/companySmsLogs',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除短信发送记录
+export function delCompanySmsLogs(logsId) {
+  return request({
+    url: '/company/companySmsLogs/' + logsId,
+    method: 'delete'
+  })
+}
+
+// 导出短信发送记录
+export function exportCompanySmsLogs(query) {
+  return request({
+    url: '/company/companySmsLogs/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/company/companySmsOrder.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询短信购买订单列表
+export function listCompanySmsOrder(query) {
+  return request({
+    url: '/company/companySmsOrder/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询短信购买订单详细
+export function getCompanySmsOrder(orderId) {
+  return request({
+    url: '/company/companySmsOrder/' + orderId,
+    method: 'get'
+  })
+}
+
+// 新增短信购买订单
+export function addCompanySmsOrder(data) {
+  return request({
+    url: '/company/companySmsOrder',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改短信购买订单
+export function updateCompanySmsOrder(data) {
+  return request({
+    url: '/company/companySmsOrder',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除短信购买订单
+export function delCompanySmsOrder(orderId) {
+  return request({
+    url: '/company/companySmsOrder/' + orderId,
+    method: 'delete'
+  })
+}
+
+// 导出短信购买订单
+export function exportCompanySmsOrder(query) {
+  return request({
+    url: '/company/companySmsOrder/export',
+    method: 'get',
+    params: query
+  })
+}

+ 19 - 0
src/api/company/companySmsPackage.js

@@ -0,0 +1,19 @@
+import request from '@/utils/request'
+
+export function getSmsPackage(query) {
+  return request({
+    url: '/company/companySmsPackage/getSmsPackage',
+    method: 'get',
+    params: query
+  })
+}
+ 
+export function buySmsPackage(data) {
+  return request({
+    url: '/company/companySmsPackage/buySmsPackage',
+    method: 'post',
+    data: data
+  })
+}
+
+ 

+ 63 - 0
src/api/company/companySmsTemp.js

@@ -0,0 +1,63 @@
+import request from '@/utils/request'
+
+// 查询短信模板列表
+export function listCompanySmsTemp(query) {
+  return request({
+    url: '/company/companySmsTemp/list',
+    method: 'get',
+    params: query
+  })
+}
+export function getSmsTempList(query) {
+  return request({
+    url: '/company/companySmsTemp/getSmsTempList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+
+
+// 查询短信模板详细
+export function getCompanySmsTemp(tempId) {
+  return request({
+    url: '/company/companySmsTemp/' + tempId,
+    method: 'get'
+  })
+}
+
+// 新增短信模板
+export function addCompanySmsTemp(data) {
+  return request({
+    url: '/company/companySmsTemp',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改短信模板
+export function updateCompanySmsTemp(data) {
+  return request({
+    url: '/company/companySmsTemp',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除短信模板
+export function delCompanySmsTemp(tempId) {
+  return request({
+    url: '/company/companySmsTemp/' + tempId,
+    method: 'delete'
+  })
+}
+
+// 导出短信模板
+export function exportCompanySmsTemp(query) {
+  return request({
+    url: '/company/companySmsTemp/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/company/companyTag.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询销售的客户标签列表
+export function listCompanyTag(query) {
+  return request({
+    url: '/company/companyTag/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询销售的客户标签详细
+export function getCompanyTag(id) {
+  return request({
+    url: '/company/companyTag/' + id,
+    method: 'get'
+  })
+}
+
+// 新增销售的客户标签
+export function addCompanyTag(data) {
+  return request({
+    url: '/company/companyTag',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改销售的客户标签
+export function updateCompanyTag(data) {
+  return request({
+    url: '/company/companyTag',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除销售的客户标签
+export function delCompanyTag(id) {
+  return request({
+    url: '/company/companyTag/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出销售的客户标签
+export function exportCompanyTag(query) {
+  return request({
+    url: '/company/companyTag/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/company/companyTagGroup.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询销售的客户标签组列表
+export function listCompanyTagGroup(query) {
+  return request({
+    url: '/company/companyTagGroup/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询销售的客户标签组详细
+export function getCompanyTagGroup(id) {
+  return request({
+    url: '/company/companyTagGroup/' + id,
+    method: 'get'
+  })
+}
+
+// 新增销售的客户标签组
+export function addCompanyTagGroup(data) {
+  return request({
+    url: '/company/companyTagGroup',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改销售的客户标签组
+export function updateCompanyTagGroup(data) {
+  return request({
+    url: '/company/companyTagGroup',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除销售的客户标签组
+export function delCompanyTagGroup(id) {
+  return request({
+    url: '/company/companyTagGroup/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出销售的客户标签组
+export function exportCompanyTagGroup(query) {
+  return request({
+    url: '/company/companyTagGroup/export',
+    method: 'get',
+    params: query
+  })
+}

+ 226 - 0
src/api/company/companyUser.js

@@ -0,0 +1,226 @@
+import request from '@/utils/request'
+import { praseStrEmpty } from "@/utils/common";
+
+// 查询用户列表
+export function listUser(query) {
+  return request({
+    url: '/company/user/list',
+    method: 'get',
+    params: query
+  })
+}
+// 查询企微用户列表
+export function qwList(query) {
+  return request({
+    url: '/company/user/qwList',
+    method: 'get',
+    params: query
+  })
+}
+export function getList(query) {
+  return request({
+    url: '/company/user/getList',
+    method: 'get',
+    params: query
+  })
+}
+export function getUserList() {
+  return request({
+    url: '/company/user/getUserList',
+    method: 'get'
+  })
+}
+export function getQwUserList() {
+  return request({
+    url: '/company/user/getQwUserList',
+    method: 'get'
+  })
+}
+export function getQwAllUserList(id) {
+  return request({
+    url: '/company/user/getQwAllUserList/'+id,
+    method: 'get'
+  })
+}
+
+export function getUserListByDeptId(query) {
+  return request({
+    url: '/company/user/getUserListByDeptId',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getUserListByDeptIdToQwId(query) {
+  return request({
+    url: '/company/user/getUserListByDeptIdToQwId',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function getAddressBookList(query) {
+  return request({
+    url: '/company/user/getAddressBookList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+
+// 查询用户详细
+export function getUser(userId) {
+  return request({
+    url: '/company/user/' + praseStrEmpty(userId),
+    method: 'get'
+  })
+}
+
+// 新增用户
+export function addUser(data) {
+  return request({
+    url: '/company/user',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改用户
+export function updateUser(data) {
+  return request({
+    url: '/company/user',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除用户
+export function delUser(userIds) {
+  return request({
+    url: '/company/user/' + userIds,
+    method: 'delete'
+  })
+}
+
+// 导出用户
+export function exportUser(query) {
+  return request({
+    url: '/company/user/export',
+    method: 'get',
+    params: query
+  })
+}
+
+// 用户密码重置
+export function resetUserPwd(userId, password) {
+  const data = {
+    userId,
+    password
+  }
+  return request({
+    url: '/company/user/resetPwd',
+    method: 'put',
+    data: data
+  })
+}
+
+// 用户状态修改
+export function changeUserStatus(userId, status) {
+  const data = {
+    userId,
+    status
+  }
+  return request({
+    url: '/company/user/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+
+// 查询用户个人信息
+export function getUserProfile() {
+  return request({
+    url: '/company/user/profile',
+    method: 'get'
+  })
+}
+
+// 修改用户个人信息
+export function updateUserProfile(data) {
+  return request({
+    url: '/company/user/profile',
+    method: 'put',
+    data: data
+  })
+}
+
+// 用户密码重置
+export function updateUserPwd(oldPassword, newPassword) {
+  const data = {
+    oldPassword,
+    newPassword
+  }
+  return request({
+    url: '/company/user/profile/updatePwd',
+    method: 'put',
+    params: data
+  })
+}
+
+// 用户头像上传
+export function uploadAvatar(data) {
+  return request({
+    url: '/company/user/profile/avatar',
+    method: 'post',
+    data: data
+  })
+}
+
+// 下载用户导入模板
+export function importTemplate() {
+  return request({
+    url: '/company/user/importTemplate',
+    method: 'get'
+  })
+}
+
+export function getSelectUserList(query) {
+  return request({
+    url: '/company/user/getSelectUserList',
+    method: 'get',
+    params: query
+  })
+}
+
+/**
+* 获取地区
+*/
+export function getCitysAreaList(query) {
+  return request({
+    url: '/company/user/getCitysAreaList',
+    method: 'get',
+    params: query
+  })
+}
+
+/**
+* 批量修改 销售的所属区域(临时的)
+*/
+export function updateCompanyUserAreaList(data) {
+  return request({
+    url: '/company/user/updateCompanyUserAreaList',
+    method: 'post',
+    data: data
+  })
+}
+
+ // 根据名称模糊查询用户列表
+ export function getCompanyUserListLikeName(params) {
+  return request({
+      url: '/company/user/getCompanyUserListLikeName',
+      method: 'get',
+      params: params
+  })
+}

+ 64 - 0
src/api/company/companyUserCard.js

@@ -0,0 +1,64 @@
+import request from '@/utils/request'
+
+// 查询card列表
+export function listCard(query) {
+  return request({
+    url: '/company/companUsercard/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询card详细
+export function getCard(id) {
+  return request({
+    url: '/company/companUsercard/' + id,
+    method: 'get'
+  })
+}
+
+// 新增card
+export function addCard(data) {
+  return request({
+    url: '/company/companUsercard',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改card
+export function updateCard(data) {
+  return request({
+    url: '/company/companUsercard',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除card
+export function delCard(id) {
+  return request({
+    url: '/company/companUsercard/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出card
+export function exportCard(query) {
+  return request({
+      url: '/company/companUsercard/export',
+      method: 'get',
+      params: query
+  })
+}
+
+
+//群发短信
+export function sendCustomerBatchMsg(data) {
+    return request({
+        url: '/company/companUsercard/sendCustomerBatchMsg',
+        method: 'post',
+        data: data
+    })
+ }
+ 

+ 31 - 0
src/api/company/companyVoiceApi.js

@@ -0,0 +1,31 @@
+import request from '@/utils/request'
+ 
+
+export function callMobile(query) {
+
+  return request({
+    url: '/company/companyVoiceApi/callMobile' ,
+    method: 'get',
+    params: query
+
+  })
+}
+ 
+export function callOffMobile(voiceId) {
+
+  return request({
+    url: '/company/companyVoiceApi/callOffMobile?voiceId='+voiceId ,
+    method: 'get'
+  })
+}
+export function getSipAccount() {
+
+  return request({
+    url: '/company/companyVoiceApi/getSipAccount' ,
+    method: 'get'
+  })
+}
+
+
+
+ 

+ 68 - 0
src/api/company/companyVoiceCaller.js

@@ -0,0 +1,68 @@
+import request from '@/utils/request'
+
+// 查询企业用户坐席列表
+export function listCompanyVoiceCaller(query) {
+  return request({
+    url: '/company/companyVoiceCaller/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询企业用户坐席详细
+export function getCompanyVoiceCaller(callerId) {
+  return request({
+    url: '/company/companyVoiceCaller/' + callerId,
+    method: 'get'
+  })
+}
+
+// 新增企业用户坐席
+export function addCompanyVoiceCaller(data) {
+  return request({
+    url: '/company/companyVoiceCaller',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改企业用户坐席
+export function updateCompanyVoiceCaller(data) {
+  return request({
+    url: '/company/companyVoiceCaller',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除企业用户坐席
+export function delCompanyVoiceCaller(callerId) {
+  return request({
+    url: '/company/companyVoiceCaller/' + callerId,
+    method: 'delete'
+  })
+}
+
+// 导出企业用户坐席
+export function exportCompanyVoiceCaller(query) {
+  return request({
+    url: '/company/companyVoiceCaller/export',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getCallerList() {
+  return request({
+    url: '/company/companyVoiceCaller/getCallerList' ,
+    method: 'get'
+  })
+}
+export function bindCallerNo(data) {
+  return request({
+    url: '/company/companyVoiceCaller/bindCallerNo',
+    method: 'post',
+    data: data
+  })
+}
+

+ 62 - 0
src/api/company/companyVoiceDialog.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询AI外呼话术列表
+export function listDialog(query) {
+  return request({
+    url: '/company/companyVoiceDialog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询AI外呼话术详细
+export function getConfigUrl(id) {
+  return request({
+    url: '/company/companyVoiceDialog/getConfigUrl',
+    method: 'get',
+    params: {id}
+  })
+}
+
+// 查询AI外呼话术详细
+export function getDialog(id) {
+  return request({
+    url: '/company/companyVoiceDialog/' + id,
+    method: 'get'
+  })
+}
+
+// 新增AI外呼话术
+export function addDialog(data) {
+  return request({
+    url: '/company/companyVoiceDialog',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改AI外呼话术
+export function updateDialog(data) {
+  return request({
+    url: '/company/companyVoiceDialog',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除AI外呼话术
+export function delDialog(id) {
+  return request({
+    url: '/company/companyVoiceDialog/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出AI外呼话术
+export function exportDialog(query) {
+  return request({
+    url: '/company/companyVoiceDialog/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/company/companyVoiceLogs.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询通话记录列表
+export function listCompanyVoiceLogs(query) {
+  return request({
+    url: '/company/companyVoiceLogs/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询通话记录详细
+export function getCompanyVoiceLogs(voiceId) {
+  return request({
+    url: '/company/companyVoiceLogs/' + voiceId,
+    method: 'get'
+  })
+}
+
+// 新增通话记录
+export function addCompanyVoiceLogs(data) {
+  return request({
+    url: '/company/companyVoiceLogs',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改通话记录
+export function updateCompanyVoiceLogs(data) {
+  return request({
+    url: '/company/companyVoiceLogs',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除通话记录
+export function delCompanyVoiceLogs(voiceId) {
+  return request({
+    url: '/company/companyVoiceLogs/' + voiceId,
+    method: 'delete'
+  })
+}
+
+// 导出通话记录
+export function exportCompanyVoiceLogs(query) {
+  return request({
+    url: '/company/companyVoiceLogs/export',
+    method: 'get',
+    params: query
+  })
+}

+ 28 - 0
src/api/company/companyVoicePackageOrder.js

@@ -0,0 +1,28 @@
+import request from '@/utils/request'
+
+// 查询套餐订单列表
+export function listCompanyVoicePackageOrder(query) {
+  return request({
+    url: '/company/companyVoicePackageOrder/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getVoicePackagelist(query) {
+  return request({
+    url: '/company/companyVoicePackageOrder/getVoicePackagelist',
+    method: 'get',
+    params: query
+  })
+}
+
+export function buy(data) {
+  return request({
+    url: '/company/companyVoicePackageOrder/buy',
+    method: 'post',
+    data: data
+  })
+}
+
+

+ 118 - 0
src/api/company/companyVoiceRobotic.js

@@ -0,0 +1,118 @@
+import request from '@/utils/request'
+
+// 查询机器人外呼任务列表
+export function listRobotic(query) {
+  return request({
+    url: 'company/companyVoiceRobotic/list',
+    method: 'get',
+    params: query
+  })
+}
+// 查询机器人外呼任务列表
+export function listAll(query) {
+  return request({
+    url: 'company/companyVoiceRobotic/listAll',
+    method: 'get',
+    params: query
+  })
+}
+// 查询机器人外呼任务列表
+export function calleesList(query) {
+  return request({
+    url: 'company/companyVoiceRobotic/calleesList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询机器人外呼任务详细
+export function getRobotic(id) {
+  return request({
+    url: 'company/companyVoiceRobotic/' + id,
+    method: 'get'
+  })
+}
+
+// 新增机器人外呼任务
+export function addRobotic(data) {
+  return request({
+    url: 'company/companyVoiceRobotic',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改机器人外呼任务
+export function updateRobotic(data) {
+  return request({
+    url: 'company/companyVoiceRobotic',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除机器人外呼任务
+export function delRobotic(id) {
+  return request({
+    url: 'company/companyVoiceRobotic/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出机器人外呼任务
+export function exportRobotic(query) {
+  return request({
+    url: 'company/companyVoiceRobotic/export',
+    method: 'get',
+    params: query
+  })
+}
+
+// 导出机器人外呼任务
+export function getTypes() {
+  return request({
+    url: 'company/companyVoiceRobotic/getTypes',
+    method: 'get'
+  })
+}
+// 导出机器人外呼任务
+export function statusList(ids) {
+  return request({
+    url: 'company/companyVoiceRobotic/statusList',
+    method: 'get',
+    params: {ids}
+  })
+}
+// 导出机器人外呼任务
+export function startRobotic(taskId) {
+  return request({
+    url: 'company/companyVoiceRobotic/startRobotic',
+    method: 'get',
+    params: {taskId}
+  })
+}
+// 导出机器人外呼任务
+export function stopRobotic(taskId) {
+  return request({
+    url: 'company/companyVoiceRobotic/stopRobotic',
+    method: 'get',
+    params: {taskId}
+  })
+}
+// 导出机器人外呼任务
+export function companyUserList(params) {
+  return request({
+    url: 'company/companyVoiceRobotic/companyUserList',
+    method: 'get',
+    params
+  })
+}
+
+// 导出机器人外呼任务
+export function wxList(params) {
+  return request({
+    url: 'company/companyVoiceRobotic/wxList',
+    method: 'get',
+    params
+  })
+}

+ 12 - 0
src/api/company/pay.js

@@ -0,0 +1,12 @@
+import request from '@/utils/request'
+
+
+
+export function weixinPay(query) {
+  return request({
+    url: '/pay/wxPay/qrPay',
+    method: 'get',
+    params: query
+  })
+}
+ 

+ 47 - 0
src/api/company/statistics.js

@@ -0,0 +1,47 @@
+import request from '@/utils/request'
+
+ 
+export function voiceLogs(query) {
+  return request({
+    url: '/company/companyStatistics/voiceLogs',
+    method: 'get',
+    params: query
+  })
+}
+export function exportVoiceLogs(query) {
+  return request({
+    url: '/company/companyStatistics/exportVoiceLogs',
+    method: 'get',
+    params: query
+  })
+}
+
+export function myVoiceLogs(query) {
+  return request({
+    url: '/company/companyStatistics/myVoiceLogs',
+    method: 'get',
+    params: query
+  })
+}
+export function exportMyVoiceLogs(query) {
+  return request({
+    url: '/company/companyStatistics/exportMyVoiceLogs',
+    method: 'get',
+    params: query
+  })
+}
+ 
+export function smsLogs(query) {
+  return request({
+    url: '/company/companyStatistics/smsLogs',
+    method: 'get',
+    params: query
+  })
+}
+export function exportSmsLogs(query) {
+  return request({
+    url: '/company/companyStatistics/exportSmsLogs',
+    method: 'get',
+    params: query
+  })
+}

+ 102 - 0
src/api/company/tcmScheduleReport.js

@@ -0,0 +1,102 @@
+import request from '@/utils/request'
+
+// 查询中医档期业绩报表列表
+export function listTcmScheduleReport(query) {
+  return request({
+    url: '/company/tcmScheduleReport/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询中医档期业绩报表详细
+export function getTcmScheduleReport(id) {
+  return request({
+    url: '/company/tcmScheduleReport/' + id,
+    method: 'get'
+  })
+}
+
+// 新增中医档期业绩报表
+export function addTcmScheduleReport(data) {
+  return request({
+    url: '/company/tcmScheduleReport',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改中医档期业绩报表
+export function updateTcmScheduleReport(data) {
+  return request({
+    url: '/company/tcmScheduleReport',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除中医档期业绩报表
+export function delTcmScheduleReport(id) {
+  return request({
+    url: '/company/tcmScheduleReport/' + id,
+    method: 'delete'
+  })
+}
+
+// 查询可用中医档期管理列表
+export function listSchedule(query) {
+  return request({
+    url: '/company/tcmScheduleReport/getScheduleList',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getTcmScheduleList() {
+  return request({
+    url: '/company/tcmScheduleReport/getTcmScheduleList',
+    method: 'get'
+  })
+}
+
+// 查询中医档期管理列表
+export function listAllSchedule(query) {
+  return request({
+    url: '/company/tcmScheduleReport/getAllScheduleList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+// 中医档期业绩报表统计
+export function statisticsReportList(query) {
+  return request({
+    url: '/company/tcmScheduleReport/statisticsList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+// 导出中医档期业绩报表
+export function exportTcmScheduleReport(query) {
+  return request({
+    url: '/company/tcmScheduleReport/export',
+    method: 'get',
+    params: query
+  })
+}
+
+
+
+
+
+// 导出公司报表统计
+export function exportCompanyScheduleReport(query) {
+  return request({
+    url: '/company/tcmScheduleReport/exportCompany',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/company/tcmconsume.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询公司档期消费列表
+export function listConsume(query) {
+  return request({
+    url: '/company/consume/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询公司档期消费详细
+export function getConsume(id) {
+  return request({
+    url: '/company/consume/' + id,
+    method: 'get'
+  })
+}
+
+// 新增公司档期消费
+export function addConsume(data) {
+  return request({
+    url: '/company/consume',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改公司档期消费
+export function updateConsume(data) {
+  return request({
+    url: '/company/consume',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除公司档期消费
+export function delConsume(id) {
+  return request({
+    url: '/company/consume/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出公司档期消费
+export function exportConsume(query) {
+  return request({
+    url: '/company/consume/export',
+    method: 'get',
+    params: query
+  })
+}

+ 61 - 0
src/api/company/wxDialog.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询添加微信话术列表
+export function listWxDialog(query) {
+  return request({
+    url: '/company/wxDialog/list',
+    method: 'get',
+    params: query
+  })
+}
+// 查询添加微信话术列表
+export function listAll(query) {
+  return request({
+    url: '/company/wxDialog/listAll',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询添加微信话术详细
+export function getWxDialog(id) {
+  return request({
+    url: '/company/wxDialog/' + id,
+    method: 'get'
+  })
+}
+
+// 新增添加微信话术
+export function addWxDialog(data) {
+  return request({
+    url: '/company/wxDialog',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改添加微信话术
+export function updateWxDialog(data) {
+  return request({
+    url: '/company/wxDialog',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除添加微信话术
+export function delWxDialog(id) {
+  return request({
+    url: '/company/wxDialog/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出添加微信话术
+export function exportWxDialog(query) {
+  return request({
+    url: '/company/wxDialog/export',
+    method: 'get',
+    params: query
+  })
+}

+ 71 - 0
src/api/course/courseAnswerlogs.js

@@ -0,0 +1,71 @@
+import request from '@/utils/request'
+
+// 查询答题日志列表
+export function listLogs(query) {
+  return request({
+    url: '/course/courseAnswerLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function myListLogs(query) {
+  return request({
+    url: '/course/courseAnswerLog/myList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+// 查询答题日志详细
+export function getLogs(logId) {
+  return request({
+    url: '/course/courseAnswerLog/' + logId,
+    method: 'get'
+  })
+}
+
+// 新增答题日志
+export function addLogs(data) {
+  return request({
+    url: '/course/courseAnswerLog',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改答题日志
+export function updateLogs(data) {
+  return request({
+    url: '/course/courseAnswerLog',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除答题日志
+export function delLogs(logId) {
+  return request({
+    url: '/course/courseAnswerLog/' + logId,
+    method: 'delete'
+  })
+}
+
+// 导出答题日志
+export function exportLogs(query) {
+  return request({
+    url: '/course/courseAnswerLog/export',
+    method: 'get',
+    params: query
+  })
+}
+
+// 导出答题日志
+export function exportLogsMy(query) {
+  return request({
+    url: '/course/courseAnswerLog/myExport',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/course/courseDomainName.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询课程短链域名列表
+export function listCourseDomainName(query) {
+  return request({
+    url: '/course/courseDomainName/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询课程短链域名详细
+export function getCourseDomainName(id) {
+  return request({
+    url: '/course/courseDomainName/' + id,
+    method: 'get'
+  })
+}
+
+// 新增课程短链域名
+export function addCourseDomainName(data) {
+  return request({
+    url: '/course/courseDomainName',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改课程短链域名
+export function updateCourseDomainName(data) {
+  return request({
+    url: '/course/courseDomainName',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除课程短链域名
+export function delCourseDomainName(id) {
+  return request({
+    url: '/course/courseDomainName/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出课程短链域名
+export function exportCourseDomainName(query) {
+  return request({
+    url: '/course/courseDomainName/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/course/courseFinishTemp.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询完课模板列表
+export function listCourseFinishTemp(query) {
+  return request({
+    url: '/course/courseFinishTemp/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询完课模板详细
+export function getCourseFinishTemp(id) {
+  return request({
+    url: '/course/courseFinishTemp/' + id,
+    method: 'get'
+  })
+}
+
+// 新增完课模板
+export function addCourseFinishTemp(data) {
+  return request({
+    url: '/course/courseFinishTemp',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改完课模板
+export function updateCourseFinishTemp(data) {
+  return request({
+    url: '/course/courseFinishTemp',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除完课模板
+export function delCourseFinishTemp(id) {
+  return request({
+    url: '/course/courseFinishTemp/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出完课模板
+export function exportCourseFinishTemp(query) {
+  return request({
+    url: '/course/courseFinishTemp/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/course/courseQuestionBank.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询题库列表
+export function listCourseQuestionBank(query) {
+  return request({
+    url: '/course/courseQuestionBank/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询题库详细
+export function getCourseQuestionBank(id) {
+  return request({
+    url: '/course/courseQuestionBank/' + id,
+    method: 'get'
+  })
+}
+
+// 新增题库
+export function addCourseQuestionBank(data) {
+  return request({
+    url: '/course/courseQuestionBank',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改题库
+export function updateCourseQuestionBank(data) {
+  return request({
+    url: '/course/courseQuestionBank',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除题库
+export function delCourseQuestionBank(id) {
+  return request({
+    url: '/course/courseQuestionBank/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出题库
+export function exportCourseQuestionBank(query) {
+  return request({
+    url: '/course/courseQuestionBank/export',
+    method: 'get',
+    params: query
+  })
+}

+ 88 - 0
src/api/course/courseRedPacketLog.js

@@ -0,0 +1,88 @@
+import request from '@/utils/request'
+
+// 查询短链课程看课记录列表
+export function listCourseRedPacketLog(query) {
+  return request({
+    url: '/course/courseRedPacketLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function myListCourseRedPacketLog(query) {
+  return request({
+    url: '/course/courseRedPacketLog/myList',
+    method: 'get',
+    params: query
+  })
+}
+export function myListCourseRedPacketLogNew(query) {
+  return request({
+    url: '/course/courseRedPacketLog/myListNew',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询短链课程看课记录详细
+export function getCourseRedPacketLog(logId) {
+  return request({
+    url: '/course/courseRedPacketLog/' + logId,
+    method: 'get'
+  })
+}
+export function courseList() {
+  return request({
+    url: '/course/courseRedPacketLog//courseList',
+    method: 'get',
+  })
+}
+export function videoList(id) {
+  return request({
+    url: '/course/courseRedPacketLog/videoList/' + id,
+    method: 'get'
+  })
+}
+// 新增短链课程看课记录
+export function addCourseRedPacketLog(data) {
+  return request({
+    url: '/course/courseRedPacketLog',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改短链课程看课记录
+export function updateCourseRedPacketLog(data) {
+  return request({
+    url: '/course/courseRedPacketLog',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除短链课程看课记录
+export function delCourseRedPacketLog(logId) {
+  return request({
+    url: '/course/courseRedPacketLog/' + logId,
+    method: 'delete'
+  })
+}
+
+// 导出短链课程看课记录
+export function exportCourseRedPacketLog(query) {
+  return request({
+    url: '/course/courseRedPacketLog/export',
+    method: 'get',
+    params: query
+  })
+}
+
+// 导出短链课程看课记录
+export function exportCourseRedPacketLogMy(query) {
+  return request({
+    url: '/course/courseRedPacketLog/myExport',
+    method: 'get',
+    params: query
+  })
+}

+ 122 - 0
src/api/course/courseWatchLog.js

@@ -0,0 +1,122 @@
+import request from '@/utils/request'
+
+// 查询短链课程看课记录列表
+export function listCourseWatchLog(query) {
+  return request({
+    url: '/course/courseWatchLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function myListCourseWatchLog(query) {
+  return request({
+    url: '/course/courseWatchLog/myList',
+    method: 'get',
+    params: query
+  })
+}
+export function statisticsList(query) {
+  return request({
+    url: '/course/courseWatchLog/statisticsList',
+    method: 'get',
+    params: query
+  })
+}
+export function qwWatchLogStatisticsList(query) {
+  return request({
+    url: '/course/courseWatchLog/qwWatchLogStatisticsList',
+    method: 'get',
+    params: query
+  })
+}
+export function myQwWatchLogStatisticsList(query) {
+  return request({
+    url: '/course/courseWatchLog/myQwWatchLogStatisticsList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function qwWatchLogAllStatisticsList(query) {
+  return request({
+    url: '/course/courseWatchLog/qwWatchLogAllStatisticsList',
+    method: 'get',
+    params: query
+  })
+}
+export function myQwWatchLogAllStatisticsList(query) {
+  return request({
+    url: '/course/courseWatchLog/myQwWatchLogAllStatisticsList',
+    method: 'get',
+    params: query
+  })
+}
+
+export function watchLogStatistics(query) {
+  return request({
+    url: '/course/courseWatchLog/watchLogStatistics',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询短链课程看课记录详细
+export function getCourseWatchLog(logId) {
+  return request({
+    url: '/course/courseWatchLog/' + logId,
+    method: 'get'
+  })
+}
+
+// 新增短链课程看课记录
+export function addCourseWatchLog(data) {
+  return request({
+    url: '/course/courseWatchLog',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改短链课程看课记录
+export function updateCourseWatchLog(data) {
+  return request({
+    url: '/course/courseWatchLog',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除短链课程看课记录
+export function delCourseWatchLog(logId) {
+  return request({
+    url: '/course/courseWatchLog/' + logId,
+    method: 'delete'
+  })
+}
+
+// 导出短链课程看课记录
+export function exportCourseWatchLog(query) {
+  return request({
+    url: '/course/courseWatchLog/export',
+    method: 'get',
+    params: query
+  })
+}
+
+export function exportCourseWatchLogMy(query) {
+  return request({
+    url: '/course/courseWatchLog/myExport',
+    method: 'get',
+    params: query
+  })
+}
+
+export function watchLogStatisticsExport(query) {
+  return request({
+    url: '/course/courseWatchLog/watchLogStatisticsExport',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/course/sop.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询看课sop列表
+export function listSop(query) {
+  return request({
+    url: '/course/sop/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询看课sop详细
+export function getSop(id) {
+  return request({
+    url: '/course/sop/' + id,
+    method: 'get'
+  })
+}
+
+// 新增看课sop
+export function addSop(data) {
+  return request({
+    url: '/course/sop',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改看课sop
+export function updateSop(data) {
+  return request({
+    url: '/course/sop',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除看课sop
+export function delSop(id) {
+  return request({
+    url: '/course/sop/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出看课sop
+export function exportSop(query) {
+  return request({
+    url: '/course/sop/export',
+    method: 'get',
+    params: query
+  })
+}

+ 10 - 0
src/api/course/sopCourseLink.js

@@ -0,0 +1,10 @@
+import request from '@/utils/request'
+
+// 生成短链
+export function createLinkUrl(data) {
+  return request({
+    url: '/course/courseLink/createLinkUrl',
+    method: 'put',
+    data: data
+  })
+}

+ 62 - 0
src/api/course/sopLogs.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询看课SOP  定时任务列表
+export function listSopLogs(query) {
+  return request({
+    url: '/course/sopLogs/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询看课SOP  定时任务列表
+export function listSopLogsCVOList(query) {
+  return request({
+    url: '/course/sopLogs/CVOList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询看课SOP  定时任务详细
+export function getSopLogs(id) {
+  return request({
+    url: '/course/sopLogs/' + id,
+    method: 'get'
+  })
+}
+
+// 新增看课SOP  定时任务
+export function addSopLogs(data) {
+  return request({
+    url: '/course/sopLogs',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改看课SOP  定时任务
+export function updateSopLogs(data) {
+  return request({
+    url: '/course/sopLogs',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除看课SOP  定时任务
+export function delSopLogs(id) {
+  return request({
+    url: '/course/sopLogs/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出看课SOP  定时任务
+export function exportSopLogs(query) {
+  return request({
+    url: '/course/sopLogs/export',
+    method: 'get',
+    params: query
+  })
+}

+ 82 - 0
src/api/course/userCourse.js

@@ -0,0 +1,82 @@
+import request from '@/utils/request'
+
+// 查询课程列表
+export function listUserCourse(query) {
+  return request({
+    url: '/course/userCourse/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询课程详细
+export function getUserCourse(courseId) {
+  return request({
+    url: '/course/userCourse/' + courseId,
+    method: 'get'
+  })
+}
+
+// 新增课程
+export function addUserCourse(data) {
+  return request({
+    url: '/course/userCourse',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改课程
+export function updateUserCourse(data) {
+  return request({
+    url: '/course/userCourse',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除课程
+export function delUserCourse(courseId) {
+  return request({
+    url: '/course/userCourse/' + courseId,
+    method: 'delete'
+  })
+}
+
+// 导出课程
+export function exportUserCourse(query) {
+  return request({
+    url: '/course/userCourse/export',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getAllCourse() {
+  return request({
+    url: '/course/userCourse/getAllList',
+    method: 'get'
+  })
+}
+
+
+export function updateIsShow(data) {
+  return request({
+    url: '/course/userCourse/updateIsShow',
+    method: 'post',
+    data: data
+  })
+}
+
+export function putOn(courseIds) {
+  return request({
+    url: '/course/userCourse/putOn/' + courseIds,
+    method: 'post'
+  })
+}
+export function pullOff(courseIds) {
+  return request({
+    url: '/course/userCourse/pullOff/' + courseIds,
+    method: 'post'
+  })
+}

+ 76 - 0
src/api/course/userCourseCategory.js

@@ -0,0 +1,76 @@
+import request from '@/utils/request'
+
+// 查询课堂分类列表
+export function listUserCourseCategory(query) {
+  return request({
+    url: '/course/userCourseCategory/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询课堂分类详细
+export function getUserCourseCategory(cateId) {
+  return request({
+    url: '/course/userCourseCategory/' + cateId,
+    method: 'get'
+  })
+}
+
+// 新增课堂分类
+export function addUserCourseCategory(data) {
+  return request({
+    url: '/course/userCourseCategory',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改课堂分类
+export function updateUserCourseCategory(data) {
+  return request({
+    url: '/course/userCourseCategory',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除课堂分类
+export function delUserCourseCategory(cateId) {
+  return request({
+    url: '/course/userCourseCategory/' + cateId,
+    method: 'delete'
+  })
+}
+
+// 导出课堂分类
+export function exportUserCourseCategory(query) {
+  return request({
+    url: '/course/userCourseCategory/export',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询分类父列表
+export function getAllCourseCategoryList() {
+  return request({
+    url: '/course/userCourseCategory/getAllList',
+    method: 'get'
+  })
+}
+
+
+export function getCatePidList() {
+  return request({
+    url: '/course/userCourseCategory/getCatePidList',
+    method: 'get'
+  })
+}
+
+export function getCateListByPid(pid) {
+  return request({
+    url: '/course/userCourseCategory/getCateListByPid/' + pid,
+    method: 'get'
+  })
+}

+ 77 - 0
src/api/course/userCourseVideo.js

@@ -0,0 +1,77 @@
+import request from '@/utils/request'
+
+// 查询课堂视频列表
+export function listUserCourseVideo(query) {
+  return request({
+    url: '/course/userCourseVideo/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询课堂视频详细
+export function getUserCourseVideo(videoId) {
+  return request({
+    url: '/course/userCourseVideo/' + videoId,
+    method: 'get'
+  })
+}
+export function updatePacketMoney(data) {
+  return request({
+    url: '/course/userCourseVideo/updateMoney',
+    method: 'put',
+    data: data
+  })
+}
+export function getSort(courseId) {
+  return request({
+    url: '/course/userCourseVideo/getSort/' + courseId,
+    method: 'get'
+  })
+}
+
+// 新增课堂视频
+export function addUserCourseVideo(data) {
+  return request({
+    url: '/course/userCourseVideo',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改课堂视频
+export function updateUserCourseVideo(data) {
+  return request({
+    url: '/course/userCourseVideo',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除课堂视频
+export function delUserCourseVideo(videoId) {
+  return request({
+    url: '/course/userCourseVideo/' + videoId,
+    method: 'delete'
+  })
+}
+
+// 导出课堂视频
+export function exportUserCourseVideo(query) {
+  return request({
+    url: '/course/userCourseVideo/export',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function getVideoListByCourseId(query) {
+  return request({
+    url: '/course/userCourseVideo/getVideoListByCourseId',
+    method: 'get',
+    params: query
+  })
+}
+
+

+ 191 - 0
src/api/crm/customer.js

@@ -0,0 +1,191 @@
+import request from '@/utils/request'
+
+export function getFullCustomerList(query) {
+  return request({
+    url: '/crm/customer/getFullCustomerList',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getLineCustomerList(query) {
+  return request({
+    url: '/crm/customer/getLineCustomerList',
+    method: 'get',
+    params: query
+  })
+}
+export function listCustomerAll(query) {
+  return request({
+    url: '/crm/customer/listAll',
+    method: 'get',
+    params: query
+  })
+}
+export function getCustomerList(query) {
+  return request({
+    url: '/crm/customer/getCustomerList',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getCustomerListByIds(query) {
+  return request({
+    url: '/crm/customer/getCustomerListByIds',
+    method: 'get',
+    params: query
+  })
+}
+
+
+
+export function getMyCustomerList(query) {
+  return request({
+    url: '/crm/customer/getMyCustomerList',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getCustomerDetails(query) {
+  return request({
+    url: '/crm/customer/getCustomerDetails/',
+    method: 'get',
+    params: query
+  })
+}
+export function getCustomerDetails1(query) {
+  return request({
+    url: '/crm/customer/getCustomerDetails1/',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getLineCustomerDetails(query) {
+  return request({
+    url: '/crm/customer/getLineCustomerDetails/',
+    method: 'get',
+    params: query
+  })
+}
+export function getCustomer1(customerId) {
+  return request({
+    url: '/crm/customer/query1/' + customerId,
+    method: 'get'
+  })
+}
+
+export function getCustomerListBySearch(query) {
+  return request({
+    url: '/crm/customer/getCustomerListBySearch',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function exportCustomer(query) {
+  return request({
+    url: '/crm/customer/export',
+    method: 'get',
+    params: query
+  })
+}
+
+export function exportCustomerByIds(customerId) {
+  return request({
+    url: '/crm/customer/'+ customerId,
+    method: 'post',
+  })
+}
+
+export function assignToUser(data) {
+  return request({
+    url: '/crm/customer/assignToUser',
+    method: 'post',
+    data: data
+  })
+}
+export function assignUser(data) {
+  return request({
+    url: '/crm/customer/assignUser',
+    method: 'post',
+    data: data
+  })
+}
+
+
+
+export function receive(data) {
+  return request({
+    url: '/crm/customer/receive',
+    method: 'post',
+    data: data
+  })
+}
+
+export function recover(data) {
+  return request({
+    url: '/crm/customer/recover',
+    method: 'post',
+    data: data
+  })
+}
+
+
+
+
+
+
+// 下载用户导入模板
+export function importLineTemplate() {
+  return request({
+    url: '/crm/customer/importLineTemplate',
+    method: 'get'
+  })
+}
+
+// 下载用户导入模板
+export function importVisitTemplate() {
+  return request({
+    url: '/crm/customer/importVisitTemplate',
+    method: 'get'
+  })
+}
+
+
+export function addCustomer(data) {
+  return request({
+    url: '/crm/customer/add',
+    method: 'post',
+    data: data
+  })
+}
+
+export function addMyCustomer(data) {
+  return request({
+    url: '/crm/customer/addMyCustomer',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 修改客户
+export function updateCustomer(data) {
+  return request({
+    url: '/crm/customer/edit',
+    method: 'put',
+    data: data
+  })
+}
+
+export function updateCustomerSource(data) {
+  return request({
+    url: '/crm/customer/updateCustomerSource',
+    method: 'post',
+    data: data
+  })
+}

+ 21 - 0
src/api/crm/customerAssign.js

@@ -0,0 +1,21 @@
+import request from '@/utils/request'
+
+// 查询客户分配记录列表
+export function listCustomerAssign(query) {
+  return request({
+    url: '/crm/customerAssign/list',
+    method: 'get',
+    params: query
+  })
+}
+
+ 
+ 
+export function cancelCustomerAssign(data) {
+  return request({
+    url: '/crm/customerAssign/cancel' ,
+    method: 'post',
+    data: data
+  })
+}
+ 

+ 53 - 0
src/api/crm/customerContacts.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户联系人列表
+export function listCustomerContacts(query) {
+  return request({
+    url: '/crm/customerContacts/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户联系人详细
+export function getCustomerContacts(contactsId) {
+  return request({
+    url: '/crm/customerContacts/' + contactsId,
+    method: 'get'
+  })
+}
+
+// 新增客户联系人
+export function addCustomerContacts(data) {
+  return request({
+    url: '/crm/customerContacts',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户联系人
+export function updateCustomerContacts(data) {
+  return request({
+    url: '/crm/customerContacts',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户联系人
+export function delCustomerContacts(contactsId) {
+  return request({
+    url: '/crm/customerContacts/' + contactsId,
+    method: 'delete'
+  })
+}
+
+// 导出客户联系人
+export function exportCustomerContacts(query) {
+  return request({
+    url: '/crm/customerContacts/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/crm/customerExt.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户字段扩展列表
+export function listCustomerExt(query) {
+  return request({
+    url: '/crm/customerExt/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户字段扩展详细
+export function getCustomerExt(extId) {
+  return request({
+    url: '/crm/customerExt/' + extId,
+    method: 'get'
+  })
+}
+
+// 新增客户字段扩展
+export function addCustomerExt(data) {
+  return request({
+    url: '/crm/customerExt',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户字段扩展
+export function updateCustomerExt(data) {
+  return request({
+    url: '/crm/customerExt',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户字段扩展
+export function delCustomerExt(extId) {
+  return request({
+    url: '/crm/customerExt/' + extId,
+    method: 'delete'
+  })
+}
+
+// 导出客户字段扩展
+export function exportCustomerExt(query) {
+  return request({
+    url: '/crm/customerExt/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/crm/customerHisOrder.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户历史订单列表
+export function listCustomerHisOrder(query) {
+  return request({
+    url: '/crm/customerHisOrder/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户历史订单详细
+export function getCustomerHisOrder(orderId) {
+  return request({
+    url: '/crm/customerHisOrder/' + orderId,
+    method: 'get'
+  })
+}
+
+// 新增客户历史订单
+export function addCustomerHisOrder(data) {
+  return request({
+    url: '/crm/customerHisOrder',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户历史订单
+export function updateCustomerHisOrder(data) {
+  return request({
+    url: '/crm/customerHisOrder',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户历史订单
+export function delCustomerHisOrder(orderId) {
+  return request({
+    url: '/crm/customerHisOrder/' + orderId,
+    method: 'delete'
+  })
+}
+
+// 导出客户历史订单
+export function exportCustomerHisOrder(query) {
+  return request({
+    url: '/crm/customerHisOrder/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/crm/customerLogs.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户日志列表
+export function listCustomerLogs(query) {
+  return request({
+    url: '/crm/customerLogs/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户日志详细
+export function getCustomerLogs(logsId) {
+  return request({
+    url: '/crm/customerLogs/' + logsId,
+    method: 'get'
+  })
+}
+
+// 新增客户日志
+export function addCustomerLogs(data) {
+  return request({
+    url: '/crm/customerLogs',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户日志
+export function updateCustomerLogs(data) {
+  return request({
+    url: '/crm/customerLogs',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户日志
+export function delCustomerLogs(logsId) {
+  return request({
+    url: '/crm/customerLogs/' + logsId,
+    method: 'delete'
+  })
+}
+
+// 导出客户日志
+export function exportCustomerLogs(query) {
+  return request({
+    url: '/crm/customerLogs/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/crm/customerUser.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户员工认领列表
+export function listCustomerUser(query) {
+  return request({
+    url: '/crm/customerUser/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户员工认领详细
+export function getCustomerUser(customerUserId) {
+  return request({
+    url: '/crm/customerUser/' + customerUserId,
+    method: 'get'
+  })
+}
+
+// 新增客户员工认领
+export function addCustomerUser(data) {
+  return request({
+    url: '/crm/customerUser',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户员工认领
+export function updateCustomerUser(data) {
+  return request({
+    url: '/crm/customerUser',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户员工认领
+export function delCustomerUser(customerUserId) {
+  return request({
+    url: '/crm/customerUser/' + customerUserId,
+    method: 'delete'
+  })
+}
+
+// 导出客户员工认领
+export function exportCustomerUser(query) {
+  return request({
+    url: '/crm/customerUser/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/crm/customerVisit.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询跟进列表
+export function listCustomerVisit(query) {
+  return request({
+    url: '/crm/customerVisit/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询跟进详细
+export function getCustomerVisit(visitId) {
+  return request({
+    url: '/crm/customerVisit/' + visitId,
+    method: 'get'
+  })
+}
+
+// 新增跟进
+export function addCustomerVisit(data) {
+  return request({
+    url: '/crm/customerVisit',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改跟进
+export function updateCustomerVisit(data) {
+  return request({
+    url: '/crm/customerVisit',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除跟进
+export function delCustomerVisit(visitId) {
+  return request({
+    url: '/crm/customerVisit/' + visitId,
+    method: 'delete'
+  })
+}
+
+// 导出跟进
+export function exportCustomerVisit(query) {
+  return request({
+    url: '/crm/customerVisit/export',
+    method: 'get',
+    params: query
+  })
+}

+ 30 - 0
src/api/crm/event.js

@@ -0,0 +1,30 @@
+import request from '@/utils/request'
+
+export function getMyCrmEventList(query) {
+  return request({
+    url: '/crm/event/getMyCrmEventList',
+    method: 'get',
+    params: query
+  })
+}
+export function addCrmEvent(data) {
+  return request({
+    url: '/crm/event/addCrmEvent',
+    method: 'post',
+    data: data
+  })
+}
+export function delCrmEvent(data) {
+  return request({
+    url: '/crm/event/delCrmEvent',
+    method: 'post',
+    data: data
+  })
+}
+export function doEvent(data) {
+  return request({
+    url: '/crm/event/doEvent',
+    method: 'post',
+    data: data
+  })
+}

+ 43 - 0
src/api/crm/msg.js

@@ -0,0 +1,43 @@
+import request from '@/utils/request'
+
+// 查询 消息列表
+export function getMsg() {
+  return request({
+    url: '/crm/msg/getMsg',
+    method: 'get'
+  })
+}
+
+export function getMsgList(query) {
+  return request({
+    url: '/crm/msg/getMsgList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function getMsgCount() {
+  return request({
+    url: '/crm/msg/getMsgCount',
+    method: 'get',
+  })
+}
+
+
+export function setRead(data) {
+  return request({
+    url: '/crm/msg/setRead',
+    method: 'post',
+    data: data
+  })
+}
+export function setAllRead() {
+  return request({
+    url: '/crm/msg/setAllRead',
+    method: 'post'
+  })
+}
+
+
+

+ 110 - 0
src/api/crm/statistics.js

@@ -0,0 +1,110 @@
+import request from '@/utils/request'
+
+
+export function customer(query) {
+  return request({
+    url: '/crm/statistics/customer',
+    method: 'get',
+    params: query
+  })
+}
+export function exportCustomer(query) {
+  return request({
+    url: '/crm/statistics/exportCustomer',
+    method: 'get',
+    params: query
+  })
+}
+export function customerCycle(query) {
+  return request({
+    url: '/crm/statistics/customerCycle',
+    method: 'get',
+    params: query
+  })
+}
+export function exportCustomerCycle(query) {
+  return request({
+    url: '/crm/statistics/exportCustomerCycle',
+    method: 'get',
+    params: query
+  })
+}
+
+export function customerFull(query) {
+  return request({
+    url: '/crm/statistics/customerFull',
+    method: 'get',
+    params: query
+  })
+}
+export function exportCustomerFull(query) {
+  return request({
+    url: '/crm/statistics/exportCustomerFull',
+    method: 'get',
+    params: query
+  })
+}
+ export function customerNum(query) {
+   return request({
+     url: '/crm/statistics/customerNum',
+     method: 'get',
+     params: query
+   })
+ }
+ export function exportCustomerNum(query) {
+   return request({
+     url: '/crm/statistics/exportCustomerNum',
+     method: 'get',
+     params: query
+   })
+ }
+ export function customerMap(query) {
+   return request({
+     url: '/crm/statistics/customerMap',
+     method: 'get',
+     params: query
+   })
+ }
+ export function customerSource(query) {
+   return request({
+     url: '/crm/statistics/customerSource',
+     method: 'get',
+     params: query
+   })
+ }
+ export function exportCustomerSource(query) {
+   return request({
+     url: '/crm/statistics/exportCustomerSource',
+     method: 'get',
+     params: query
+   })
+ }
+ export function customerRate(query) {
+   return request({
+     url: '/crm/statistics/customerRate',
+     method: 'get',
+     params: query
+   })
+ }
+ export function exportCustomerRate(query) {
+   return request({
+     url: '/crm/statistics/exportCustomerRate',
+     method: 'get',
+     params: query
+   })
+ }
+export function customerVisit(query) {
+  return request({
+    url: '/crm/statistics/customerVisit',
+    method: 'get',
+    params: query
+  })
+}
+export function exportCustomerVisit(query) {
+  return request({
+    url: '/crm/statistics/exportCustomerVisit',
+    method: 'get',
+    params: query
+  })
+}
+

+ 152 - 0
src/api/doctor/doctor.js

@@ -0,0 +1,152 @@
+import request from '@/utils/request'
+
+// 查询医生管理列表
+export function listDoctor(query) {
+  return request({
+    url: '/his/doctor/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getUserList(name) {
+  return request({
+    url: '/his/doctor/user/list',
+    method: 'get',
+    params: name
+  })
+}
+export function getFollowDoctorList(query) {
+  return request({
+    url: '/his/doctor/followDoctorList',
+    method: 'get',
+    params: query
+  })
+}
+export function getAllFollowDoctorList(query) {
+  return request({
+    url: '/his/doctor/allFollowDoctorList',
+    method: 'get',
+    params: query
+  })
+}
+export function docList() {
+  return request({
+    url: '/his/doctor/doc/list',
+    method: 'get',
+
+  })
+}
+// 查询医生名称列表
+export function listdocuser(query) {
+  return request({
+    url: '/his/doctor/userdoc/list',
+    method: 'get',
+    params: query
+  })
+}
+export function getDoctorPrice(doctorId) {
+  return request({
+    url: '/his/price/getDoctorPrice/' + doctorId,
+    method: 'get'
+  })
+}
+
+
+export function editPassWord(data) {
+  return request({
+    url: '/his/doctor/editPassWord',
+    method: 'put',
+    data: data
+  })
+}
+
+export function editDoctorPrice(data) {
+  return request({
+    url: '/his/price/editDoctorPrice',
+    method: 'post',
+    data: data
+  })
+}
+// 查询医生管理详细
+export function getDoctor(doctorId) {
+  return request({
+    url: '/his/doctor/' + doctorId,
+    method: 'get'
+  })
+}
+// 新增医生管理
+export function addDoctor(data) {
+  return request({
+    url: '/his/doctor',
+    method: 'post',
+    data: data
+  })
+}
+export function editFollow(data) {
+  return request({
+    url: '/his/doctor/editFollow',
+    method: 'put',
+    data: data
+  })
+}
+// 修改医生管理
+export function updateDoctor(data) {
+  return request({
+    url: '/his/doctor',
+    method: 'put',
+    data: data
+  })
+}
+
+// 修改医生管理
+export function editPrice(data) {
+  return request({
+    url: '/his/doctor/editDoctorPrice',
+    method: 'put',
+    data: data
+  })
+}
+
+// 修改医生管理
+export function updateAuditDoctor(data) {
+  return request({
+    url: '/his/doctor/editDoctor',
+    method: 'put',
+    data: data
+  })
+}
+
+
+// 删除医生管理
+export function delDoctor(doctorId) {
+  return request({
+    url: '/his/doctor/' + doctorId,
+    method: 'delete'
+  })
+}
+
+// 导出医生管理
+export function getWxaCodeUnLimit() {
+  return request({
+    url: '/his/doctor/getWxaCodeUnLimit',
+    method: 'get',
+  })
+}
+// 导出医生管理
+export function exportDoctor(query) {
+  return request({
+    url: '/his/doctor/export',
+    method: 'get',
+    params: query
+  })
+}
+
+// 根据名称模糊查询医生列表
+export function getDoctorListLikeName(params) {
+  return request({
+    url: '/his/doctor/getDoctorListLikeName',
+    method: 'get',
+    params: params
+  })
+}

+ 53 - 0
src/api/fastGpt/fastGptChatKeyword.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询关键字列表
+export function listFastgptChatKeyword(query) {
+  return request({
+    url: '/fastGpt/fastGptChatKeyword/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询关键字详细
+export function getFastgptChatKeyword(keywordId) {
+  return request({
+    url: '/fastGpt/fastGptChatKeyword/' + keywordId,
+    method: 'get'
+  })
+}
+
+// 新增关键字
+export function addFastgptChatKeyword(data) {
+  return request({
+    url: '/fastGpt/fastGptChatKeyword',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改关键字
+export function updateFastgptChatKeyword(data) {
+  return request({
+    url: '/fastGpt/fastGptChatKeyword',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除关键字
+export function delFastgptChatKeyword(keywordId) {
+  return request({
+    url: '/fastGpt/fastGptChatKeyword/' + keywordId,
+    method: 'delete'
+  })
+}
+
+// 导出关键字
+export function exportFastgptChatKeyword(query) {
+  return request({
+    url: '/fastGpt/fastGptChatKeyword/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/fastGpt/fastGptChatMsg.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询聊天记录列表
+export function listFastGptChatMsg(query) {
+  return request({
+    url: '/fastGpt/fastGptChatMsg/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询聊天记录详细
+export function getFastGptChatMsg(msgId) {
+  return request({
+    url: '/fastGpt/fastGptChatMsg/' + msgId,
+    method: 'get'
+  })
+}
+
+// 新增聊天记录
+export function addFastGptChatMsg(data) {
+  return request({
+    url: '/fastGpt/fastGptChatMsg',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改聊天记录
+export function updateFastGptChatMsg(data) {
+  return request({
+    url: '/fastGpt/fastGptChatMsg',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除聊天记录
+export function delFastGptChatMsg(msgId) {
+  return request({
+    url: '/fastGpt/fastGptChatMsg/' + msgId,
+    method: 'delete'
+  })
+}
+
+// 导出聊天记录
+export function exportFastGptChatMsg(query) {
+  return request({
+    url: '/fastGpt/fastGptChatMsg/export',
+    method: 'get',
+    params: query
+  })
+}

+ 60 - 0
src/api/fastGpt/fastGptChatMsgLogs.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询聊天记录日志列表
+export function listFastGptChatMsgLogs(query) {
+  return request({
+    url: '/fastGpt/fastGptChatMsgLogs/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getChatMsgLogsList(query) {
+  return request({
+    url: '/fastGpt/fastGptChatMsgLogs/logsList',
+    method: 'get',
+    params: query
+  })
+}
+// 查询聊天记录日志详细
+export function getFastGptChatMsgLogs(logsId) {
+  return request({
+    url: '/fastGpt/fastGptChatMsgLogs/' + logsId,
+    method: 'get'
+  })
+}
+
+// 新增聊天记录日志
+export function addFastGptChatMsgLogs(data) {
+  return request({
+    url: '/fastGpt/fastGptChatMsgLogs',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改聊天记录日志
+export function updateFastGptChatMsgLogs(data) {
+  return request({
+    url: '/fastGpt/fastGptChatMsgLogs',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除聊天记录日志
+export function delFastGptChatMsgLogs(logsId) {
+  return request({
+    url: '/fastGpt/fastGptChatMsgLogs/' + logsId,
+    method: 'delete'
+  })
+}
+
+// 导出聊天记录日志
+export function exportFastGptChatMsgLogs(query) {
+  return request({
+    url: '/fastGpt/fastGptChatMsgLogs/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/fastGpt/fastGptChatSession.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询对话关系列表
+export function listFastGptChatSession(query) {
+  return request({
+    url: '/fastGpt/fastGptChatSession/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询对话关系详细
+export function getFastGptChatSession(sessionId) {
+  return request({
+    url: '/fastGpt/fastGptChatSession/' + sessionId,
+    method: 'get'
+  })
+}
+
+// 新增对话关系
+export function addFastGptChatSession(data) {
+  return request({
+    url: '/fastGpt/fastGptChatSession',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改对话关系
+export function updateFastGptChatSession(data) {
+  return request({
+    url: '/fastGpt/fastGptChatSession',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除对话关系
+export function delFastGptChatSession(sessionId) {
+  return request({
+    url: '/fastGpt/fastGptChatSession/' + sessionId,
+    method: 'delete'
+  })
+}
+
+// 导出对话关系
+export function exportFastGptChatSession(query) {
+  return request({
+    url: '/fastGpt/fastGptChatSession/export',
+    method: 'get',
+    params: query
+  })
+}

+ 60 - 0
src/api/fastGpt/fastGptCollection.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询集合列表
+export function listFastGptCollection(query) {
+  return request({
+    url: '/fastGpt/fastGptCollection/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询集合详细
+export function getFastGptCollection(collectionId) {
+  return request({
+    url: '/fastGpt/fastGptCollection/' + collectionId,
+    method: 'get'
+  })
+}
+
+// 新增集合
+export function addFastGptCollection(data) {
+  return request({
+    url: '/fastGpt/fastGptCollection',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改集合
+export function updateFastGptCollection(data) {
+  return request({
+    url: '/fastGpt/fastGptCollection',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除集合
+export function delFastGptCollection(collectionId) {
+  return request({
+    url: '/fastGpt/fastGptCollection/' + collectionId,
+    method: 'delete'
+  })
+}
+
+// 导出集合
+export function exportFastGptCollection(query) {
+  return request({
+    url: '/fastGpt/fastGptCollection/export',
+    method: 'get',
+    params: query
+  })
+}
+
+export function syncCollection(datasetId) {
+  return request({
+    url: '/fastGpt/fastGptCollection/syncCollection/'+datasetId,
+    method: 'get',
+  })
+}

+ 61 - 0
src/api/fastGpt/fastGptCollentionData.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询集合里数据列表
+export function listFastGptCollentionData(query) {
+  return request({
+    url: '/fastGpt/fastGptCollentionData/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询集合里数据详细
+export function getFastGptCollentionData(id) {
+  return request({
+    url: '/fastGpt/fastGptCollentionData/' + id,
+    method: 'get'
+  })
+}
+
+// 新增集合里数据
+export function addFastGptCollentionData(data) {
+  return request({
+    url: '/fastGpt/fastGptCollentionData',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改集合里数据
+export function updateFastGptCollentionData(data) {
+  return request({
+    url: '/fastGpt/fastGptCollentionData',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除集合里数据
+export function delFastGptCollentionData(id) {
+  return request({
+    url: '/fastGpt/fastGptCollentionData/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出集合里数据
+export function exportFastGptCollentionData(query) {
+  return request({
+    url: '/fastGpt/fastGptCollentionData/export',
+    method: 'get',
+    params: query
+  })
+}
+
+// 同步集合内的数据
+export function SyncCollentionData(collectionid) {
+  return request({
+    url: '/fastGpt/fastGptCollentionData/SyncCollentionData/'+collectionid,
+    method: 'get',
+  })
+}

+ 69 - 0
src/api/fastGpt/fastGptDataset.js

@@ -0,0 +1,69 @@
+import request from '@/utils/request'
+
+// 查询知识库列列表
+export function listFastGptDataset(query) {
+  return request({
+    url: '/fastGpt/fastGptDataset/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询知识库列详细
+export function getFastGptDataset(datasetId) {
+  return request({
+    url: '/fastGpt/fastGptDataset/' + datasetId,
+    method: 'get'
+  })
+}
+
+// 新增知识库列
+export function addFastGptDataset(data) {
+  return request({
+    url: '/fastGpt/fastGptDataset',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改知识库列
+export function updateFastGptDataset(data) {
+  return request({
+    url: '/fastGpt/fastGptDataset',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除知识库列
+export function delFastGptDataset(datasetId) {
+  return request({
+    url: '/fastGpt/fastGptDataset/' + datasetId,
+    method: 'delete'
+  })
+}
+
+// 导出知识库列
+export function exportFastGptDataset(query) {
+  return request({
+    url: '/fastGpt/fastGptDataset/export',
+    method: 'get',
+    params: query
+  })
+}
+//同步
+export function syncDataset() {
+  return request({
+    url: '/fastGpt/fastGptDataset/syncDataset',
+    method: 'get',
+  })
+}
+
+// 导出知识库列
+export function getAllDataSetList(query) {
+  return request({
+    url: '/fastGpt/fastGptDataset/getAllDataSetList',
+    method: 'get',
+    params: query
+  })
+}

+ 81 - 0
src/api/fastGpt/fastGptRole.js

@@ -0,0 +1,81 @@
+import request from '@/utils/request'
+
+// 查询应用列表
+export function listFastGptRole(query) {
+  return request({
+    url: '/fastGpt/fastGptRole/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getAllRoleList(query) {
+  return request({
+    url: '/fastGpt/fastGptRole/getAllRoleList',
+    method: 'get',
+    params: query
+  })
+}
+export function getAllRoleType() {
+  return request({
+    url: '/fastGpt/fastGptRole/getAllRoleType',
+    method: 'get'
+  })
+}
+
+
+// 查询应用详细getAllRoleType
+export function getFastGptRole(roleId) {
+  return request({
+    url: '/fastGpt/fastGptRole/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增应用
+export function addFastGptRole(data) {
+  return request({
+    url: '/fastGpt/fastGptRole',
+    method: 'post',
+    data: data
+  })
+}
+export function copyFastGptRole(data) {
+  return request({
+    url: '/fastGpt/fastGptRole/copy',
+    method: 'post',
+    data: data
+  })
+}
+// 修改应用
+export function updateFastGptRole(data) {
+  return request({
+    url: '/fastGpt/fastGptRole',
+    method: 'put',
+    data: data
+  })
+}
+
+//解除绑定
+export function relieveFastGptRole(roleId) {
+  return request({
+    url: '/fastGpt/fastGptRole/relieveFastGptRole/'+roleId,
+    method: 'get',
+  })
+}
+// 删除应用
+export function delFastGptRole(roleId) {
+  return request({
+    url: '/fastGpt/fastGptRole/' + roleId,
+    method: 'delete'
+  })
+}
+
+// 导出应用
+export function exportFastGptRole(query) {
+  return request({
+    url: '/fastGpt/fastGptRole/export',
+    method: 'get',
+    params: query
+  })
+}

+ 63 - 0
src/api/fastGpt/fastGptRoleTag.js

@@ -0,0 +1,63 @@
+import request from '@/utils/request'
+
+// 查询AI的标签列表
+export function listFastGptRoleTag(query) {
+  return request({
+    url: '/fastGpt/fastGptRoleTag/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询AI的标签详细
+export function getFastGptRoleTag(id) {
+  return request({
+    url: '/fastGpt/fastGptRoleTag/' + id,
+    method: 'get'
+  })
+}
+
+
+// 查询AI的标签根据roleId
+export function getListByRoleId(roleId) {
+  return request({
+    url: '/fastGpt/fastGptRoleTag/getListByRoleId/' + roleId,
+    method: 'get'
+  })
+}
+
+
+// 新增AI的标签
+export function addFastGptRoleTag(data) {
+  return request({
+    url: '/fastGpt/fastGptRoleTag',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改AI的标签
+export function updateFastGptRoleTag(data) {
+  return request({
+    url: '/fastGpt/fastGptRoleTag',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除AI的标签
+export function delFastGptRoleTag(id) {
+  return request({
+    url: '/fastGpt/fastGptRoleTag/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出AI的标签
+export function exportFastGptRoleTag(query) {
+  return request({
+    url: '/fastGpt/fastGptRoleTag/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/fastGpt/fastGptUser.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户信息列表
+export function listFastGptUser(query) {
+  return request({
+    url: '/fastGpt/fastGptUser/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户信息详细
+export function getFastGptUser(uid) {
+  return request({
+    url: '/fastGpt/fastGptUser/' + uid,
+    method: 'get'
+  })
+}
+
+// 新增客户信息
+export function addFastGptUser(data) {
+  return request({
+    url: '/fastGpt/fastGptUser',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户信息
+export function updateFastGptUser(data) {
+  return request({
+    url: '/fastGpt/fastGptUser',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户信息
+export function delFastGptUser(uid) {
+  return request({
+    url: '/fastGpt/fastGptUser/' + uid,
+    method: 'delete'
+  })
+}
+
+// 导出客户信息
+export function exportFastGptUser(query) {
+  return request({
+    url: '/fastGpt/fastGptUser/export',
+    method: 'get',
+    params: query
+  })
+}

+ 31 - 0
src/api/index.js

@@ -0,0 +1,31 @@
+import request from '@/utils/request'
+
+ 
+export function getIndexData(data) {
+  return request({
+    url: '/common/index/getIndexData',
+    method: 'get',
+     params: data
+  })
+}
+
+export function getStoreOrderData(query) {
+  return request({
+    url: '/common/index/getStoreOrderData',
+    method: 'get',
+    params: query
+  }
+  )
+}
+ 
+
+export function getStorePaymentData(query) {
+  return request({
+    url: '/common/index/getStorePaymentData',
+    method: 'get',
+    params: query
+  }
+  )
+}
+ 
+ 

+ 40 - 0
src/api/login.js

@@ -0,0 +1,40 @@
+import request from '@/utils/request'
+
+// 登录方法
+export function login(username, password, code, uuid) {
+  const data = {
+    username,
+    password,
+    code,
+    uuid
+  }
+  return request({
+    url: '/login',
+    method: 'post',
+    data: data
+  })
+}
+
+// 获取用户详细信息
+export function getInfo() {
+  return request({
+    url: '/getInfo',
+    method: 'get'
+  })
+}
+
+// 退出方法
+export function logout() {
+  return request({
+    url: '/logout',
+    method: 'post'
+  })
+}
+
+// 获取验证码
+export function getCodeImg() {
+  return request({
+    url: '/captchaImage',
+    method: 'get'
+  })
+}

+ 9 - 0
src/api/menu.js

@@ -0,0 +1,9 @@
+import request from '@/utils/request'
+
+// 获取路由
+export const getRouters = () => {
+  return request({
+    url: '/getRouters',
+    method: 'get'
+  })
+}

+ 35 - 0
src/api/monitor/logininfor.js

@@ -0,0 +1,35 @@
+import request from '@/utils/request'
+
+// 查询登录日志列表
+export function list(query) {
+  return request({
+    url: '/monitor/logininfor/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 删除登录日志
+export function delLogininfor(infoId) {
+  return request({
+    url: '/monitor/logininfor/' + infoId,
+    method: 'delete'
+  })
+}
+
+// 清空登录日志
+export function cleanLogininfor() {
+  return request({
+    url: '/monitor/logininfor/clean',
+    method: 'delete'
+  })
+}
+
+// 导出登录日志
+export function exportLogininfor(query) {
+  return request({
+    url: '/monitor/logininfor/export',
+    method: 'get',
+    params: query
+  })
+}

+ 35 - 0
src/api/monitor/operlog.js

@@ -0,0 +1,35 @@
+import request from '@/utils/request'
+
+// 查询操作日志列表
+export function list(query) {
+  return request({
+    url: '/monitor/operlog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 删除操作日志
+export function delOperlog(operId) {
+  return request({
+    url: '/monitor/operlog/' + operId,
+    method: 'delete'
+  })
+}
+
+// 清空操作日志
+export function cleanOperlog() {
+  return request({
+    url: '/monitor/operlog/clean',
+    method: 'delete'
+  })
+}
+
+// 导出操作日志
+export function exportOperlog(query) {
+  return request({
+    url: '/monitor/operlog/export',
+    method: 'get',
+    params: query
+  })
+}

+ 79 - 0
src/api/qw/QwWorkTask.js

@@ -0,0 +1,79 @@
+import request from '@/utils/request'
+
+// 查询企微任务看板列表
+export function listQwWorkTask(query) {
+  return request({
+    url: '/qw/QwWorkTask/list',
+    method: 'get',
+    params: query
+  })
+}
+export function allListQwWorkTask(query) {
+  return request({
+    url: '/qw/QwWorkTask/allList',
+    method: 'get',
+    params: query
+  })
+}
+export function glList(query) {
+  return request({
+    url: '/qw/QwWorkTask/glList',
+    method: 'get',
+    params: query
+  })
+}
+// 查询企微任务看板详细
+export function getQwWorkTask(id) {
+  return request({
+    url: '/qw/QwWorkTask/' + id,
+    method: 'get'
+  })
+}
+
+// 新增企微任务看板
+export function addQwWorkTask(data) {
+  return request({
+    url: '/qw/QwWorkTask',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改企微任务看板
+export function updateQwWorkTask(data) {
+  return request({
+    url: '/qw/QwWorkTask',
+    method: 'put',
+    data: data
+  })
+}
+export function updateQwWorkTask2(data) {
+  return request({
+    url: '/qw/QwWorkTask/edit2',
+    method: 'put',
+    data: data
+  })
+}
+export function updateQwWorkTask3(data) {
+  return request({
+    url: '/qw/QwWorkTask/edit3',
+    method: 'put',
+    data: data
+  })
+}
+// 删除企微任务看板
+export function delQwWorkTask(id) {
+  return request({
+    url: '/qw/QwWorkTask/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出企微任务看板
+export function exportQwWorkTask(query) {
+  return request({
+    url: '/qw/QwWorkTask/export',
+    method: 'get',
+    params: query
+  })
+}

Някои файлове не бяха показани, защото твърде много файлове са промени