Procházet zdrojové kódy

直播代码提交

yuhongqi před 1 týdnem
revize
3d9cd3445a
100 změnil soubory, kde provedl 33350 přidání a 0 odebrání
  1. 22 0
      .editorconfig
  2. 19 0
      .env.development
  3. 5 0
      .env.production
  4. 7 0
      .env.staging
  5. 10 0
      .eslintignore
  6. 199 0
      .eslintrc.js
  7. 26 0
      .gitignore
  8. 36 0
      README.en.md
  9. 22 0
      README.md
  10. 13 0
      babel.config.js
  11. 35 0
      build/index.js
  12. 20 0
      deploy.sh
  13. 122 0
      package.json
  14. 1 0
      public/WW_verify_USggkFaa89ugREjp.txt
  15. 211 0
      public/index.html
  16. 2 0
      public/robots.txt
  17. 27672 0
      public/sdk.js
  18. 254 0
      public/wx.html
  19. 11 0
      src/App.vue
  20. 17 0
      src/api/common.js
  21. 31 0
      src/api/company/company.js
  22. 22 0
      src/api/company/companyConfig.js
  23. 76 0
      src/api/company/companyDept.js
  24. 60 0
      src/api/company/companyMenu.js
  25. 61 0
      src/api/company/companyMoneyLogs.js
  26. 53 0
      src/api/company/companyPost.js
  27. 71 0
      src/api/company/companyProfit.js
  28. 53 0
      src/api/company/companyRecharge.js
  29. 75 0
      src/api/company/companyRole.js
  30. 89 0
      src/api/company/companySms.js
  31. 53 0
      src/api/company/companySmsLogs.js
  32. 53 0
      src/api/company/companySmsOrder.js
  33. 19 0
      src/api/company/companySmsPackage.js
  34. 63 0
      src/api/company/companySmsTemp.js
  35. 165 0
      src/api/company/companyUser.js
  36. 64 0
      src/api/company/companyUserCard.js
  37. 30 0
      src/api/company/companyVoiceApi.js
  38. 68 0
      src/api/company/companyVoiceCaller.js
  39. 53 0
      src/api/company/companyVoiceLogs.js
  40. 36 0
      src/api/company/companyVoicePackageOrder.js
  41. 12 0
      src/api/company/pay.js
  42. 47 0
      src/api/company/statistics.js
  43. 103 0
      src/api/company/tcmScheduleReport.js
  44. 53 0
      src/api/company/tcmconsume.js
  45. 185 0
      src/api/crm/customer.js
  46. 21 0
      src/api/crm/customerAssign.js
  47. 53 0
      src/api/crm/customerContacts.js
  48. 53 0
      src/api/crm/customerExt.js
  49. 53 0
      src/api/crm/customerHisOrder.js
  50. 53 0
      src/api/crm/customerLogs.js
  51. 53 0
      src/api/crm/customerUser.js
  52. 53 0
      src/api/crm/customerVisit.js
  53. 30 0
      src/api/crm/event.js
  54. 43 0
      src/api/crm/msg.js
  55. 35 0
      src/api/crm/statistics.js
  56. 53 0
      src/api/doc/doc.js
  57. 53 0
      src/api/doc/docOrder.js
  58. 53 0
      src/api/doc/docOrderReply.js
  59. 53 0
      src/api/doc/docRecord.js
  60. 53 0
      src/api/doc/docRecordReply.js
  61. 31 0
      src/api/index.js
  62. 62 0
      src/api/live/gift.js
  63. 134 0
      src/api/live/live.js
  64. 53 0
      src/api/live/liveAnchor.js
  65. 47 0
      src/api/live/liveData.js
  66. 96 0
      src/api/live/liveGoods.js
  67. 53 0
      src/api/live/liveLotteryConf.js
  68. 61 0
      src/api/live/liveLotteryProductConf.js
  69. 53 0
      src/api/live/liveMsg.js
  70. 101 0
      src/api/live/liveOrder.js
  71. 53 0
      src/api/live/liveOrderitems.js
  72. 53 0
      src/api/live/liveQuestion.js
  73. 36 0
      src/api/live/liveQuestionBank.js
  74. 89 0
      src/api/live/liveQuestionLive.js
  75. 53 0
      src/api/live/liveRedConf.js
  76. 61 0
      src/api/live/liveVideo.js
  77. 27 0
      src/api/live/liveWatchUser.js
  78. 53 0
      src/api/live/task.js
  79. 53 0
      src/api/live/words.js
  80. 42 0
      src/api/login.js
  81. 9 0
      src/api/menu.js
  82. 35 0
      src/api/monitor/logininfor.js
  83. 35 0
      src/api/monitor/operlog.js
  84. 69 0
      src/api/qw/account.js
  85. 53 0
      src/api/qw/forbiddenMessage.js
  86. 96 0
      src/api/qw/im.js
  87. 42 0
      src/api/qw/login.js
  88. 53 0
      src/api/qw/words.js
  89. 62 0
      src/api/store/city.js
  90. 56 0
      src/api/store/material.js
  91. 61 0
      src/api/store/materialGroup.js
  92. 53 0
      src/api/store/schedule.js
  93. 33 0
      src/api/store/statistics.js
  94. 88 0
      src/api/store/storeAfterSales.js
  95. 166 0
      src/api/store/storeOrder.js
  96. 71 0
      src/api/store/storePayment.js
  97. 24 0
      src/api/store/storeProduct.js
  98. 8 0
      src/api/store/storeProductCategory.js
  99. 53 0
      src/api/store/storeProductPackage.js
  100. 61 0
      src/api/system/dict/data.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

+ 19 - 0
.env.development

@@ -0,0 +1,19 @@
+# 开发环境配置
+ENV = 'development'
+
+# FS管理系统/开发环境
+VUE_APP_BASE_API = '/dev-api'
+
+# 路由懒加载
+VUE_CLI_BABEL_TRANSPILE_MODULES = true
+
+# 存储桶配置
+VUE_APP_COS_BUCKET = fs-1319721001
+# 存储桶配置
+VUE_APP_COS_REGION = ap-chongqing
+# 线路一地址
+VUE_APP_VIDEO_LINE_1 = https://cos.his.cdwjyyh.com
+# 线路二地址
+VUE_APP_VIDEO_LINE_2 = https://zkzhobs.ylrztop.com
+
+VUE_APP_LIVE_WS_URL = ws://192.168.10.166:7014

+ 5 - 0
.env.production

@@ -0,0 +1,5 @@
+# 生产环境配置
+ENV = 'production'
+
+#FS管理系统/生产环境
+VUE_APP_BASE_API = '/prod-api'

+ 7 - 0
.env.staging

@@ -0,0 +1,7 @@
+NODE_ENV = production
+
+# 测试环境配置
+ENV = 'staging'
+
+#FS管理系统/测试环境
+VUE_APP_BASE_API = '/stage-api'

+ 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 @@
+# RTCrm_companyUI
+
+#### Description
+客户管理系统公司端UI
+
+#### 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/)

+ 22 - 0
README.md

@@ -0,0 +1,22 @@
+
+# 安装依赖
+npm install
+
+# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
+npm install --registry=https://registry.npm.taobao.org
+
+# 启动服务
+npm run dev
+```
+
+浏览器访问 http://localhost:80
+
+## 发布
+
+```bash
+# 构建测试环境
+npm run build:stage
+
+# 构建生产环境
+npm run build:prod
+```

+ 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}`)
+}

+ 20 - 0
deploy.sh

@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# 源目录 (本地)
+local_dir="./dist"
+
+# 目标目录 (远程)
+remote_user="root"
+remote_host="175.178.171.148"
+remote_dir="/var/www/frontend/company"
+
+# 使用 scp 递归复制 dist 目录下的所有内容
+scp -r "$local_dir"/* "$remote_user@$remote_host:$remote_dir"
+
+if [ $? -ne 0 ]; then
+  echo "文件传输失败。"
+  exit 1
+fi
+
+echo "文件传输成功。"
+exit 0

+ 122 - 0
package.json

@@ -0,0 +1,122 @@
+{
+  "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": {
+    "@riophae/vue-treeselect": "0.4.0",
+    "axios": "0.18.1",
+    "clipboard": "2.0.4",
+    "compression-webpack-plugin": "^5.0.1",
+    "core-js": "3.6.5",
+    "cos-js-sdk-v5": "^1.10.1",
+    "crypto-js": "^4.2.0",
+    "echarts": "4.2.1",
+    "element-ui": "^2.15.5",
+    "file-saver": "2.0.1",
+    "form-making": "^1.2.9",
+    "fuse.js": "3.4.4",
+    "hls.js": "^1.6.12",
+    "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",
+    "qrious": "^4.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",
+    "stylus": "^0.54.7",
+    "stylus-loader": "^3.0.2",
+    "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"
+  ]
+}

+ 1 - 0
public/WW_verify_USggkFaa89ugREjp.txt

@@ -0,0 +1 @@
+USggkFaa89ugREjp

+ 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: #13c2c2;
+      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: /

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 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>

+ 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 getTmpSecretKey(query) {
+  return request({
+    url: '/common/getTmpSecretKey',
+    method: 'get',
+    params:query
+  })
+
+}

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

@@ -0,0 +1,31 @@
+import request from '@/utils/request'
+
+ 
+ 
+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'
+  })
+}
+ 
+

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

@@ -0,0 +1,22 @@
+import request from '@/utils/request'
+
+ 
+
+// 根据参数键名查询参数值
+export function getConfigKey(configKey) {
+  return request({
+    url: '/company/config/configKey/' + configKey,
+    method: 'get'
+  })
+}
+
+
+// 修改参数配置
+export function updateConfig(data) {
+  return request({
+    url: '/company/config',
+    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/dept/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询部门列表(排除节点)
+export function listDeptExcludeChild(deptId) {
+  return request({
+    url: '/company/dept/list/exclude/' + deptId,
+    method: 'get'
+  })
+}
+
+// 查询部门详细
+export function getDept(deptId) {
+  return request({
+    url: '/company/dept/' + deptId,
+    method: 'get'
+  })
+}
+
+// 查询部门下拉树结构
+export function treeselect() {
+  return request({
+    url: '/company/dept/treeselect',
+    method: 'get'
+  })
+}
+
+// 根据角色ID查询部门树结构
+export function roleDeptTreeselect(roleId) {
+  return request({
+    url: '/company/dept/roleDeptTreeselect/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增部门
+export function addDept(data) {
+  return request({
+    url: '/company/dept',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改部门
+export function updateDept(data) {
+  return request({
+    url: '/company/dept',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除部门
+export function delDept(deptId) {
+  return request({
+    url: '/company/dept/' + deptId,
+    method: 'delete'
+  })
+}
+
+
+export function allTreeselect() {
+  return request({
+    url: '/company/dept/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/menu/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询菜单详细
+export function getMenu(menuId) {
+  return request({
+    url: '/company/menu/' + menuId,
+    method: 'get'
+  })
+}
+
+// 查询菜单下拉树结构
+export function treeselect() {
+  return request({
+    url: '/company/menu/treeselect',
+    method: 'get'
+  })
+}
+
+// 根据角色ID查询菜单下拉树结构
+export function roleMenuTreeselect(roleId) {
+  return request({
+    url: '/company/menu/roleMenuTreeselect/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增菜单
+export function addMenu(data) {
+  return request({
+    url: '/company/menu',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改菜单
+export function updateMenu(data) {
+  return request({
+    url: '/company/menu',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除菜单
+export function delMenu(menuId) {
+  return request({
+    url: '/company/menu/' + 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/post/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询岗位详细
+export function getPost(postId) {
+  return request({
+    url: '/company/post/' + postId,
+    method: 'get'
+  })
+}
+
+// 新增岗位
+export function addPost(data) {
+  return request({
+    url: '/company/post',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改岗位
+export function updatePost(data) {
+  return request({
+    url: '/company/post',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除岗位
+export function delPost(postId) {
+  return request({
+    url: '/company/post/' + postId,
+    method: 'delete'
+  })
+}
+
+// 导出岗位
+export function exportPost(query) {
+  return request({
+    url: '/company/post/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/role/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询角色详细
+export function getRole(roleId) {
+  return request({
+    url: '/company/role/' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增角色
+export function addRole(data) {
+  return request({
+    url: '/company/role',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改角色
+export function updateRole(data) {
+  return request({
+    url: '/company/role',
+    method: 'put',
+    data: data
+  })
+}
+
+// 角色数据权限
+export function dataScope(data) {
+  return request({
+    url: '/company/role/dataScope',
+    method: 'put',
+    data: data
+  })
+}
+
+// 角色状态修改
+export function changeRoleStatus(roleId, status) {
+  const data = {
+    roleId,
+    status
+  }
+  return request({
+    url: '/company/role/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除角色
+export function delRole(roleId) {
+  return request({
+    url: '/company/role/' + roleId,
+    method: 'delete'
+  })
+}
+
+// 导出角色
+export function exportRole(query) {
+  return request({
+    url: '/company/role/export',
+    method: 'get',
+    params: query
+  })
+}

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

@@ -0,0 +1,89 @@
+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/sendStoreOrderMsg',
+    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
+  })
+}

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

@@ -0,0 +1,165 @@
+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 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 getUserListByDeptId(query) {
+  return request({
+    url: '/company/user/getUserListByDeptId',
+    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(userId) {
+  return request({
+    url: '/company/user/' + userId,
+    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
+  })
+}

+ 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
+    })
+ }
+ 

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

@@ -0,0 +1,30 @@
+import request from '@/utils/request'
+ 
+
+export function callMobile(query) {
+
+  return request({
+    url: '/company/voiceApi/callMobile' ,
+    method: 'get',
+    params: query
+
+  })
+}
+ 
+export function callOffMobile(voiceId) {
+  return request({
+    url: '/company/voiceApi/callOffMobile?voiceId='+voiceId ,
+    method: 'get'
+  })
+}
+export function getSipAccount() {
+
+  return request({
+    url: '/company/voiceApi/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
+  })
+}
+

+ 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
+  })
+}

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

@@ -0,0 +1,36 @@
+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 exportCompanyVoicePackageOrder(query) {
+  return request({
+    url: '/company/companyVoicePackageOrder/export',
+    method: 'get',
+    params: query
+  })
+}
+
+export function buy(data) {
+  return request({
+    url: '/company/companyVoicePackageOrder/buy',
+    method: 'post',
+    data: data
+  })
+}
+
+

+ 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/statistics/voiceLogs',
+    method: 'get',
+    params: query
+  })
+}
+export function exportVoiceLogs(query) {
+  return request({
+    url: '/company/statistics/exportVoiceLogs',
+    method: 'get',
+    params: query
+  })
+}
+
+export function myVoiceLogs(query) {
+  return request({
+    url: '/company/statistics/myVoiceLogs',
+    method: 'get',
+    params: query
+  })
+}
+export function exportMyVoiceLogs(query) {
+  return request({
+    url: '/company/statistics/exportMyVoiceLogs',
+    method: 'get',
+    params: query
+  })
+}
+ 
+export function smsLogs(query) {
+  return request({
+    url: '/company/statistics/smsLogs',
+    method: 'get',
+    params: query
+  })
+}
+export function exportSmsLogs(query) {
+  return request({
+    url: '/company/statistics/exportSmsLogs',
+    method: 'get',
+    params: query
+  })
+}

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

@@ -0,0 +1,103 @@
+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
+  })
+}

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

@@ -0,0 +1,185 @@
+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 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'
+  })
+}
+
+
+

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

@@ -0,0 +1,35 @@
+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 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
+  })
+}
+ 
+ 

+ 53 - 0
src/api/doc/doc.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询档案列表
+export function listDoc(query) {
+  return request({
+    url: '/doc/doc/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询档案详细
+export function getDoc(docId) {
+  return request({
+    url: '/doc/doc/' + docId,
+    method: 'get'
+  })
+}
+
+// 新增档案
+export function addDoc(data) {
+  return request({
+    url: '/doc/doc',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改档案
+export function updateDoc(data) {
+  return request({
+    url: '/doc/doc',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除档案
+export function delDoc(docId) {
+  return request({
+    url: '/doc/doc/' + docId,
+    method: 'delete'
+  })
+}
+
+// 导出档案
+export function exportDoc(query) {
+  return request({
+    url: '/doc/doc/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/doc/docOrder.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询问医生列表
+export function listDocOrder(query) {
+  return request({
+    url: '/doc/docOrder/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询问医生详细
+export function getDocOrder(orderId) {
+  return request({
+    url: '/doc/docOrder/' + orderId,
+    method: 'get'
+  })
+}
+
+// 新增问医生
+export function addDocOrder(data) {
+  return request({
+    url: '/doc/docOrder',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改问医生
+export function updateDocOrder(data) {
+  return request({
+    url: '/doc/docOrder',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除问医生
+export function delDocOrder(orderId) {
+  return request({
+    url: '/doc/docOrder/' + orderId,
+    method: 'delete'
+  })
+}
+
+// 导出问医生
+export function exportDocOrder(query) {
+  return request({
+    url: '/doc/docOrder/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/doc/docOrderReply.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询订单回复列表
+export function listDocOrderReply(query) {
+  return request({
+    url: '/doc/docOrderReply/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询订单回复详细
+export function getDocOrderReply(replyId) {
+  return request({
+    url: '/doc/docOrderReply/' + replyId,
+    method: 'get'
+  })
+}
+
+// 新增订单回复
+export function addDocOrderReply(data) {
+  return request({
+    url: '/doc/docOrderReply',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改订单回复
+export function updateDocOrderReply(data) {
+  return request({
+    url: '/doc/docOrderReply',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除订单回复
+export function delDocOrderReply(replyId) {
+  return request({
+    url: '/doc/docOrderReply/' + replyId,
+    method: 'delete'
+  })
+}
+
+// 导出订单回复
+export function exportDocOrderReply(query) {
+  return request({
+    url: '/doc/docOrderReply/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/doc/docRecord.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询记录列表
+export function listDocRecord(query) {
+  return request({
+    url: '/doc/docRecord/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询记录详细
+export function getDocRecord(recordId) {
+  return request({
+    url: '/doc/docRecord/' + recordId,
+    method: 'get'
+  })
+}
+
+// 新增记录
+export function addDocRecord(data) {
+  return request({
+    url: '/doc/docRecord',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改记录
+export function updateDocRecord(data) {
+  return request({
+    url: '/doc/docRecord',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除记录
+export function delDocRecord(recordId) {
+  return request({
+    url: '/doc/docRecord/' + recordId,
+    method: 'delete'
+  })
+}
+
+// 导出记录
+export function exportDocRecord(query) {
+  return request({
+    url: '/doc/docRecord/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/doc/docRecordReply.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询回复列表
+export function listDocRecordReply(query) {
+  return request({
+    url: '/doc/docRecordReply/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询回复详细
+export function getDocRecordReply(replyId) {
+  return request({
+    url: '/doc/docRecordReply/' + replyId,
+    method: 'get'
+  })
+}
+
+// 新增回复
+export function addDocRecordReply(data) {
+  return request({
+    url: '/doc/docRecordReply',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改回复
+export function updateDocRecordReply(data) {
+  return request({
+    url: '/doc/docRecordReply',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除回复
+export function delDocRecordReply(replyId) {
+  return request({
+    url: '/doc/docRecordReply/' + replyId,
+    method: 'delete'
+  })
+}
+
+// 导出回复
+export function exportDocRecordReply(query) {
+  return request({
+    url: '/doc/docRecordReply/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',
+    data: 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
+  }
+  )
+}
+ 
+ 

+ 62 - 0
src/api/live/gift.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询直播间礼物配置列表
+export function listGift(query) {
+  return request({
+    url: '/live/gift/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询直播间礼物配置详细
+export function getGift(giftId) {
+  return request({
+    url: '/live/gift/' + giftId,
+    method: 'get'
+  })
+}
+
+// 新增直播间礼物配置
+export function addGift(data) {
+  return request({
+    url: '/live/gift',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改直播间礼物配置
+export function updateGift(data) {
+  return request({
+    url: '/live/gift',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除直播间礼物配置
+export function delGift(giftId) {
+  return request({
+    url: '/live/gift/' + giftId,
+    method: 'delete'
+  })
+}
+
+// 导出直播间礼物配置
+export function exportGift(query) {
+  return request({
+    url: '/live/gift/export',
+    method: 'get',
+    params: query
+  })
+}
+
+
+// 查询直播间礼物配置详细
+export function getDictData(dictType) {
+  return request({
+    url: '/system/dict/data/type/' + dictType,
+    method: 'get'
+  })
+}

+ 134 - 0
src/api/live/live.js

@@ -0,0 +1,134 @@
+import request from '@/utils/request'
+
+// 查询直播列表
+export function listLive(query) {
+  return request({
+    url: '/live/live/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询直播详细
+export function getLive(liveId) {
+  return request({
+    url: '/live/live/' + liveId,
+    method: 'get'
+  })
+}
+
+// 新增直播
+export function addLive(data) {
+  return request({
+    url: '/live/live',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改直播
+export function updateLive(data) {
+  return request({
+    url: '/live/live',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除直播
+export function delLive(liveId) {
+  return request({
+    url: '/live/live/' + liveId,
+    method: 'delete'
+  })
+}
+
+// 导出直播
+export function exportLive(query) {
+  return request({
+    url: '/live/live/export',
+    method: 'get',
+    params: query
+  })
+}
+
+export function selectLiveToStudent(query) {
+  return request({
+    url: '/live/live/selectLiveToStudent?pageNum=' + query.pageNum + '&pageSize=' + query.pageSize,
+    method: 'post',
+    data: query
+  })
+}
+
+export function selectCompanyTalent(query) {
+  return request({
+    url: '/company/user/selectCompanyTalent/' + query,
+    method: 'get'
+  })
+}
+
+export function getLivingUrl(liveId) {
+  return request({
+    url: '/live/live/living/' + liveId,
+    method: 'get'
+  })
+}
+
+export function verifyIdInfo(data) {
+  return request({
+    url: '/live/live/verifyIdInfo',
+    method: 'post',
+    data: data
+  })
+}
+//上下架视频
+export function handleShelfOrUn(data) {
+  return request({
+    url: '/live/live/handleShelfOrUn',
+    method: 'post',
+    data: data
+  })
+}
+
+
+export function handleDeleteSelected(data) {
+  return request({
+    url: '/live/live/handleDeleteSelected',
+    method: 'post',
+    data: data
+  })
+}
+
+// 结束录播直播间
+export function finishLive(data) {
+  return request({
+    url: '/live/live/finishLive',
+    method: 'get',
+    params: data
+  })
+}
+// 复制录播直播间
+export function copyLive(data) {
+  return request({
+    url: '/live/live/copyLive',
+    method: 'get',
+    params: data
+  })
+}
+
+// 结束录播直播间
+export function startLive(data) {
+  return request({
+    url: '/live/live/startLive',
+    method: 'get',
+    params: data
+  })
+}
+// 生成直播间小程序二维码
+export function generateCode(data) {
+  return request({
+    url: '/live/live/getWxaCodeUnLimit',
+    method: 'get',
+    params: data
+  })
+}

+ 53 - 0
src/api/live/liveAnchor.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询主播列表
+export function listLiveAnchor(query) {
+  return request({
+    url: '/live/liveAnchor/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询主播详细
+export function getLiveAnchor(anchorId) {
+  return request({
+    url: '/live/liveAnchor/' + anchorId,
+    method: 'get'
+  })
+}
+
+// 新增主播
+export function addLiveAnchor(data) {
+  return request({
+    url: '/live/liveAnchor',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改主播
+export function updateLiveAnchor(data) {
+  return request({
+    url: '/live/liveAnchor',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除主播
+export function delLiveAnchor(anchorId) {
+  return request({
+    url: '/live/liveAnchor/' + anchorId,
+    method: 'delete'
+  })
+}
+
+// 导出主播
+export function exportLiveAnchor(query) {
+  return request({
+    url: '/live/liveAnchor/export',
+    method: 'get',
+    params: query
+  })
+}

+ 47 - 0
src/api/live/liveData.js

@@ -0,0 +1,47 @@
+import request from '@/utils/request'
+export function recentLive() {
+  return request({
+    url: '/liveData/liveData/recentLive',
+    method: 'get',
+  })
+}
+
+export function liveTop(query) {
+  return request({
+    url: '/liveData/liveData/getLiveTop',
+    method: 'get',
+    params: query
+  })
+}
+export function getTrendData(queryParams) {
+  return request({
+    url: '/liveData/liveData/getTrendData',
+    method: 'post',
+    data: queryParams
+  })
+}
+
+export function columns() {
+  return request({
+    url: '/liveData/liveData/columns',
+    method: 'get',
+  })
+}
+
+
+export function updateColumns(columns) {
+  return request({
+    url: '/liveData/liveData/updateColumns',
+    method: 'post',
+    data:columns,
+  })
+}
+
+export function queryStudentData(query) {
+  return request({
+    url: '/live/studentData/queryStudentData',
+    method: 'post',
+    data:query,
+  })
+}
+

+ 96 - 0
src/api/live/liveGoods.js

@@ -0,0 +1,96 @@
+import request from '@/utils/request'
+
+// 查询直播商品列表
+export function listLiveGoods(query) {
+  return request({
+    url: '/live/liveGoods/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询直播商品详细
+export function getLiveGoods(goodsId) {
+  return request({
+    url: '/live/liveGoods/' + goodsId,
+    method: 'get'
+  })
+}
+
+// 新增直播商品
+export function addLiveGoods(data) {
+  return request({
+    url: '/live/liveGoods',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改直播商品
+export function updateLiveGoods(data) {
+  return request({
+    url: '/live/liveGoods',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除直播商品
+export function delLiveGoods(goodsId) {
+  return request({
+    url: '/live/liveGoods/' + goodsId,
+    method: 'delete'
+  })
+}
+
+// 导出直播商品
+export function exportLiveGoods(query) {
+  return request({
+    url: '/live/liveGoods/export',
+    method: 'get',
+    params: query
+  })
+}
+
+// 导出直播商品
+export function listStoreProduct(data) {
+  return request({
+    url: '/store/storeProduct/list',
+    method: 'get',
+    params: data
+  })
+}
+
+//上下架商品
+export function handleShelfOrUn(data) {
+  return request({
+    url: '/live/liveGoods/handleShelfOrUn',
+    method: 'post',
+    data: data
+  })
+}
+
+
+export function handleDeleteSelected(data) {
+  return request({
+    url: '/live/liveGoods/handleDeleteSelected',
+    method: 'post',
+    data: data
+  })
+}
+
+export function handleIsShowChange(data) {
+  return request({
+    url: '/live/liveGoods/handleIsShowChange',
+    method: 'post',
+    data: data
+  })
+}
+export function updateGoodsStock(data) {
+  return request({
+    url: '/live/liveGoods',
+    method: 'put',
+    data: data
+  })
+}
+

+ 53 - 0
src/api/live/liveLotteryConf.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询直播抽奖配置列表
+export function listLiveLotteryConf(query) {
+  return request({
+    url: '/live/liveLotteryConf/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询直播抽奖配置详细
+export function getLiveLotteryConf(lotteryId) {
+  return request({
+    url: '/live/liveLotteryConf/' + lotteryId,
+    method: 'get'
+  })
+}
+
+// 新增直播抽奖配置
+export function addLiveLotteryConf(data) {
+  return request({
+    url: '/live/liveLotteryConf',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改直播抽奖配置
+export function updateLiveLotteryConf(data) {
+  return request({
+    url: '/live/liveLotteryConf',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除直播抽奖配置
+export function delLiveLotteryConf(lotteryId) {
+  return request({
+    url: '/live/liveLotteryConf/' + lotteryId,
+    method: 'delete'
+  })
+}
+
+// 导出直播抽奖配置
+export function exportLiveLotteryConf(query) {
+  return request({
+    url: '/live/liveLotteryConf/export',
+    method: 'get',
+    params: query
+  })
+}

+ 61 - 0
src/api/live/liveLotteryProductConf.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询直播抽奖记录列表
+export function listLiveLotteryProductConf(query) {
+  return request({
+    url: '/live/liveLotteryProductConf/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询直播抽奖记录详细
+export function getLiveLotteryProductConf(id) {
+  return request({
+    url: '/live/liveLotteryProductConf/' + id,
+    method: 'get'
+  })
+}
+
+//查询抽奖商品列表
+export function listStoreProduct(query) {
+  return request({
+    url: '/live/liveLotteryConf/getGoods/'+query,
+    method: 'get'
+  })
+}
+
+// 新增直播抽奖记录
+export function addLiveLotteryProductConf(data) {
+  return request({
+    url: '/live/liveLotteryProductConf',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改直播抽奖记录
+export function updateLiveLotteryProductConf(data) {
+  return request({
+    url: '/live/liveLotteryConf/product',
+    method: 'post',
+    data: data
+  })
+}
+
+// 删除直播抽奖记录
+export function delLiveLotteryProductConf(id) {
+  return request({
+    url: '/live/liveLotteryProductConf/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出直播抽奖记录
+export function exportLiveLotteryProductConf(query) {
+  return request({
+    url: '/live/liveLotteryProductConf/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/live/liveMsg.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询直播讨论列表
+export function listLiveMsg(query) {
+  return request({
+    url: '/live/liveMsg/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询直播讨论详细
+export function getLiveMsg(msgId) {
+  return request({
+    url: '/live/liveMsg/' + msgId,
+    method: 'get'
+  })
+}
+
+// 新增直播讨论
+export function addLiveMsg(data) {
+  return request({
+    url: '/live/liveMsg',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改直播讨论
+export function updateLiveMsg(data) {
+  return request({
+    url: '/live/liveMsg',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除直播讨论
+export function delLiveMsg(msgId) {
+  return request({
+    url: '/live/liveMsg/' + msgId,
+    method: 'delete'
+  })
+}
+
+// 导出直播讨论
+export function exportLiveMsg(query) {
+  return request({
+    url: '/live/liveMsg/export',
+    method: 'get',
+    params: query
+  })
+}

+ 101 - 0
src/api/live/liveOrder.js

@@ -0,0 +1,101 @@
+import request from '@/utils/request'
+
+// 查询订单列表
+export function listLiveOrder(query) {
+  return request({
+    url: '/live/liveOrder/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询订单详细
+export function getLiveOrder(orderId) {
+  return request({
+    url: '/live/liveOrder/info/' + orderId,
+    method: 'get'
+  })
+}
+
+// 新增订单
+export function addLiveOrder(data) {
+  return request({
+    url: '/live/liveOrder',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改订单
+export function updateLiveOrder(data) {
+  return request({
+    url: '/live/liveOrder/update',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除订单
+export function delLiveOrder(orderId) {
+  return request({
+    url: '/live/liveOrder/' + orderId,
+    method: 'delete'
+  })
+}
+
+// 导出订单
+export function exportLiveOrder(query) {
+  return request({
+    url: '/live/liveOrder/export',
+    method: 'get',
+    params: query
+  })
+}
+
+// 获取表格 时间粒度
+export function getLiveOrderTimeGranularity(query) {
+  return request({
+    url: '/live/liveOrder/getLiveOrderTimeGranularity',
+    method: 'get',
+    params: query
+  })
+}
+
+// 同步快递信息
+export function syncExpress(orderId) {
+  return request({
+    url: '/live/liveOrder/syncExpress/' + orderId,
+    method: 'get'
+  })
+}
+
+
+export function getExpress(orderId) {
+  return request({
+    url: '/live/liveOrder/getExpress/' + orderId,
+    method: 'get'
+  })
+}
+
+export function updateErp(data) {
+  return request({
+    url: '/live/liveOrder/updateErpOrder',
+    method: 'post',
+    data: data
+  })
+}
+
+export function listOrderitem(orderId) {
+  return request({
+    url: '/live/liveOrder/ltemlist/' + orderId,
+    method: 'get'
+  })
+}
+
+export function tuiOrder(data) {
+  return request({
+    url: '/live/liveOrder/tuiOrder',
+    method: 'put',
+    data: data
+  })
+}

+ 53 - 0
src/api/live/liveOrderitems.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询订单商品列表
+export function listLiveOrderitems(query) {
+  return request({
+    url: '/live/liveOrderitems/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询订单商品详细
+export function getLiveOrderitems(id) {
+  return request({
+    url: '/live/liveOrderitems/' + id,
+    method: 'get'
+  })
+}
+
+// 新增订单商品
+export function addLiveOrderitems(data) {
+  return request({
+    url: '/live/liveOrderitems',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改订单商品
+export function updateLiveOrderitems(data) {
+  return request({
+    url: '/live/liveOrderitems',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除订单商品
+export function delLiveOrderitems(id) {
+  return request({
+    url: '/live/liveOrderitems/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出订单商品
+export function exportLiveOrderitems(query) {
+  return request({
+    url: '/live/liveOrderitems/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/live/liveQuestion.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询问答列表
+export function listLiveQuestion(query) {
+  return request({
+    url: '/live/liveQuestion/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询问答详细
+export function getLiveQuestion(questionId) {
+  return request({
+    url: '/live/liveQuestion/' + questionId,
+    method: 'get'
+  })
+}
+
+// 新增问答
+export function addLiveQuestion(data) {
+  return request({
+    url: '/live/liveQuestion',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改问答
+export function updateLiveQuestion(data) {
+  return request({
+    url: '/live/liveQuestion',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除问答
+export function delLiveQuestion(questionId) {
+  return request({
+    url: '/live/liveQuestion/' + questionId,
+    method: 'delete'
+  })
+}
+
+// 导出问答
+export function exportLiveQuestion(query) {
+  return request({
+    url: '/live/liveQuestion/export',
+    method: 'get',
+    params: query
+  })
+}

+ 36 - 0
src/api/live/liveQuestionBank.js

@@ -0,0 +1,36 @@
+import request from '@/utils/request'
+
+// 查询题库列表
+export function listLiveQuestionBank(query) {
+  return request({
+    url: '/live/liveQuestionBank/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 新增题库
+export function addLiveQuestionBank(data) {
+  return request({
+    url: '/live/liveQuestionBank',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改题库
+export function updateLiveQuestionBank(data) {
+  return request({
+    url: '/live/liveQuestionBank',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除题库
+export function deleteLiveQuestionBank(questionBankId) {
+  return request({
+    url: '/live/liveQuestionBank/' + questionBankId,
+    method: 'delete'
+  })
+}

+ 89 - 0
src/api/live/liveQuestionLive.js

@@ -0,0 +1,89 @@
+import request from '@/utils/request'
+
+// 查询直播间题库列表
+export function listLiveQuestionLive(query) {
+    return request({
+        url: '/live/liveQuestionLive/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询直播间可选题库列表
+export function listLiveQuestionOptionList(query) {
+    return request({
+        url: '/live/liveQuestionLive/optionList',
+        method: 'get',
+        params: query
+    })
+}
+
+// 新增直播间题库
+export function addLiveQuestionLive(data) {
+    return request({
+        url: '/live/liveQuestionLive',
+        method: 'post',
+        params: data
+    })
+}
+
+// 删除直播间题库
+export function deleteLiveQuestionLive(data) {
+    return request({
+        url: '/live/liveQuestionLive/' + data.liveId,
+        method: 'delete',
+        params: {ids: data.ids}
+    })
+}
+
+// 查询直播观看奖励设置列表
+export function listConfig(query) {
+  return request({
+    url: '/live/config/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询直播观看奖励设置详细
+export function getConfig(id) {
+  return request({
+    url: '/live/config/' + id,
+    method: 'get'
+  })
+}
+
+// 新增直播观看奖励设置
+export function addConfig(data) {
+  return request({
+    url: '/live/config',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改直播观看奖励设置
+export function updateConfig(data) {
+  return request({
+    url: '/live/config',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除直播观看奖励设置
+export function delConfig(id) {
+  return request({
+    url: '/live/config/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出直播观看奖励设置
+export function exportConfig(query) {
+  return request({
+    url: '/live/config/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/live/liveRedConf.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询直播红包记录配置列表
+export function listLiveRedConf(query) {
+  return request({
+    url: '/live/liveRedConf/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询直播红包记录配置详细
+export function getLiveRedConf(redId) {
+  return request({
+    url: '/live/liveRedConf/' + redId,
+    method: 'get'
+  })
+}
+
+// 新增直播红包记录配置
+export function addLiveRedConf(data) {
+  return request({
+    url: '/live/liveRedConf',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改直播红包记录配置
+export function updateLiveRedConf(data) {
+  return request({
+    url: '/live/liveRedConf',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除直播红包记录配置
+export function delLiveRedConf(redId) {
+  return request({
+    url: '/live/liveRedConf/' + redId,
+    method: 'delete'
+  })
+}
+
+// 导出直播红包记录配置
+export function exportLiveRedConf(query) {
+  return request({
+    url: '/live/liveRedConf/export',
+    method: 'get',
+    params: query
+  })
+}

+ 61 - 0
src/api/live/liveVideo.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询直播视频列表
+export function listLiveVideo(query) {
+  return request({
+    url: '/live/liveVideo/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询直播视频详细
+export function getLiveVideo(videoId) {
+  return request({
+    url: '/live/liveVideo/' + videoId,
+    method: 'get'
+  })
+}
+
+// 查询直播视频详细
+export function getLiveVideoByLiveId(liveId) {
+  return request({
+    url: '/live/liveVideo/liveVideoByLiveId/' + liveId,
+    method: 'get'
+  })
+}
+
+// 新增直播视频
+export function addLiveVideo(data) {
+  return request({
+    url: '/live/liveVideo',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改直播视频
+export function updateLiveVideo(data) {
+  return request({
+    url: '/live/liveVideo',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除直播视频
+export function delLiveVideo(videoId) {
+  return request({
+    url: '/live/liveVideo/' + videoId,
+    method: 'delete'
+  })
+}
+
+// 导出直播视频
+export function exportLiveVideo(query) {
+  return request({
+    url: '/live/liveVideo/export',
+    method: 'get',
+    params: query
+  })
+}

+ 27 - 0
src/api/live/liveWatchUser.js

@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+
+// 查询直播间用户列表
+export function watchUserList(query) {
+  return request({
+    url: '/live/liveWatchUser/watchUserList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 直播间用户禁言
+export function changeUserStatus(query) {
+  return request({
+    url: '/live/liveWatchUser/changeUserState',
+    method: 'put',
+    params: query
+  })
+}
+
+// 直播间用户禁言
+export function blockUser(query) {
+  return request({
+    url: '/live/liveWatchUser/blockUser/' + query,
+    method: 'get',
+  })
+}

+ 53 - 0
src/api/live/task.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询直播间自动化任务配置列表
+export function listTask(query) {
+  return request({
+    url: '/live/task/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询直播间自动化任务配置详细
+export function getTask(id) {
+  return request({
+    url: '/live/task/' + id,
+    method: 'get'
+  })
+}
+
+// 新增直播间自动化任务配置
+export function addTask(data) {
+  return request({
+    url: '/live/task',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改直播间自动化任务配置
+export function updateTask(data) {
+  return request({
+    url: '/live/task',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除直播间自动化任务配置
+export function delTask(id) {
+  return request({
+    url: '/live/task/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出直播间自动化任务配置
+export function exportTask(query) {
+  return request({
+    url: '/live/task/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/live/words.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询直播间敏感词过滤列表
+export function listWords(query) {
+  return request({
+    url: '/live/words/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询直播间敏感词过滤详细
+export function getWords(wordId) {
+  return request({
+    url: '/live/words/' + wordId,
+    method: 'get'
+  })
+}
+
+// 新增直播间敏感词过滤
+export function addWords(data) {
+  return request({
+    url: '/live/words',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改直播间敏感词过滤
+export function updateWords(data) {
+  return request({
+    url: '/live/words',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除直播间敏感词过滤
+export function delWords(wordId) {
+  return request({
+    url: '/live/words/' + wordId,
+    method: 'delete'
+  })
+}
+
+// 导出直播间敏感词过滤
+export function exportWords(query) {
+  return request({
+    url: '/live/words/export',
+    method: 'get',
+    params: query
+  })
+}

+ 42 - 0
src/api/login.js

@@ -0,0 +1,42 @@
+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
+  })
+}

+ 69 - 0
src/api/qw/account.js

@@ -0,0 +1,69 @@
+import request from '@/utils/request'
+
+// 查询企微功能账号管理列表
+export function listAccount(query) {
+  return request({
+    url: '/qw/account/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询企微功能账号管理详细
+export function getAccount(id) {
+  return request({
+    url: '/qw/account/' + id,
+    method: 'get'
+  })
+}
+
+export function updateDevice(id) {
+  return request({
+    url: '/qw/account/editDeviceId/' + id,
+    method: 'get'
+  })
+}
+
+// 新增企微功能账号管理
+export function addAccount(data) {
+  return request({
+    url: '/qw/account',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改企微功能账号管理
+export function updateAccount(data) {
+  return request({
+    url: '/qw/account',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除企微功能账号管理
+export function delAccount(id) {
+  return request({
+    url: '/qw/account/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出企微功能账号管理
+export function exportAccount(query) {
+  return request({
+    url: '/qw/account/export',
+    method: 'get',
+    params: query
+  })
+}
+
+
+//根据账号获取设备id
+export function getDeviceId(account) {
+  return request({
+    url: '/qw/account/getDeviceId/' + account,
+    method: 'get'
+  })
+}

+ 53 - 0
src/api/qw/forbiddenMessage.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询企微违禁消息列表
+export function listForbiddenMessage(query) {
+  return request({
+    url: '/qw/forbiddenMessage/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询企微违禁消息详细
+export function getForbiddenMessage(id) {
+  return request({
+    url: '/qw/forbiddenMessage/' + id,
+    method: 'get'
+  })
+}
+
+// 新增企微违禁消息
+export function addForbiddenMessage(data) {
+  return request({
+    url: '/qw/forbiddenMessage',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改企微违禁消息
+export function updateForbiddenMessage(data) {
+  return request({
+    url: '/qw/forbiddenMessage',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除企微违禁消息
+export function delForbiddenMessage(id) {
+  return request({
+    url: '/qw/forbiddenMessage/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出企微违禁消息
+export function exportForbiddenMessage(query) {
+  return request({
+    url: '/qw/forbiddenMessage/export',
+    method: 'get',
+    params: query
+  })
+}

+ 96 - 0
src/api/qw/im.js

@@ -0,0 +1,96 @@
+import request from '@/utils/request'
+
+export function getContacts(deviceId) {
+  return request({
+    url: '/qw/contact/list/'+deviceId,
+    method: 'get'
+  })
+}
+
+
+export function getContactsByUser(userId) {
+  return request({
+    url: '/qw/contact/listByUser/'+userId,
+    method: 'get'
+  })
+}
+
+
+export function getConversations(userId) {
+  return request({
+    url: '/qw/contact/conversationList/'+userId,
+    method: 'get'
+  })
+}
+
+
+export function getConversation(query) {
+  return request({
+    url: '/qw/contact/conversation',
+    method: 'get',
+    params:query
+  })
+}
+
+
+
+export function getMessageList(query) {
+  return request({
+    url: '/qw/message/getList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function getHistoryList(query) {
+  return request({
+    url: '/qw/message/getHistoryList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+// 发送文本消息
+export function sendTextMsg(data) {
+  return request({
+    url: '/qw/message/text',
+    method: 'post',
+    data: data
+  })
+}
+
+
+
+// 发送文本消息
+export function sendImageMsg(data) {
+  return request({
+    url: '/qw/message/image',
+    method: 'post',
+    data: data
+  })
+}
+
+
+export function getRoomInfo(roomId) {
+  return request({
+    url: '/qw/room/roomDetail/'+roomId,
+    method: 'get'
+  })
+}
+
+
+
+//导出消息
+export function exportMessage(query) {
+  return request({
+    url: '/qw/message/export/',
+    method: 'get',
+    params: query
+  })
+}
+
+
+
+

+ 42 - 0
src/api/qw/login.js

@@ -0,0 +1,42 @@
+import request from '@/utils/request'
+
+
+//获取二维码
+export function getQrCode(deviceId) {
+  return request({
+    url: '/qw/login/getQrCode/' + deviceId,
+    method: 'get'
+  })
+}
+
+
+// 二维码
+export function verify(data) {
+  return request({
+    url: '/qw/login/verify',
+    method: 'post',
+    data:data 
+  })
+}
+
+
+export function getQwUser(deviceId) {
+  return request({
+    url: '/qw/login/getQwUserInfo/' + deviceId,
+    method: 'get'
+  })
+}
+
+
+//企微退出登录
+export function qwLoginOut(deviceId) {
+  return request({
+    url: '/qw/login/ban',
+    method: 'post',
+    data:deviceId 
+  })
+}
+
+
+
+

+ 53 - 0
src/api/qw/words.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询企微违禁词管理列表
+export function listWords(query) {
+  return request({
+    url: '/qw/words/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询企微违禁词管理详细
+export function getWords(id) {
+  return request({
+    url: '/qw/words/' + id,
+    method: 'get'
+  })
+}
+
+// 新增企微违禁词管理
+export function addWords(data) {
+  return request({
+    url: '/qw/words',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改企微违禁词管理
+export function updateWords(data) {
+  return request({
+    url: '/qw/words',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除企微违禁词管理
+export function delWords(id) {
+  return request({
+    url: '/qw/words/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出企微违禁词管理
+export function exportWords(query) {
+  return request({
+    url: '/qw/words/export',
+    method: 'get',
+    params: query
+  })
+}

+ 62 - 0
src/api/store/city.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询城市列表
+export function listCity(query) {
+  return request({
+    url: '/store/city/list',
+    method: 'get',
+    params: query
+  })
+}
+export function getCitys(query) {
+  return request({
+    url: '/store/city/getCitys',
+    method: 'get',
+    params: query
+  })
+}
+
+
+
+// 查询城市详细
+export function getCity(id) {
+  return request({
+    url: '/store/city/' + id,
+    method: 'get'
+  })
+}
+
+// 新增城市
+export function addCity(data) {
+  return request({
+    url: '/store/city',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改城市
+export function updateCity(data) {
+  return request({
+    url: '/store/city',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除城市
+export function delCity(id) {
+  return request({
+    url: '/store/city/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出城市
+export function exportCity(query) {
+  return request({
+    url: '/store/city/export',
+    method: 'get',
+    params: query
+  })
+}

+ 56 - 0
src/api/store/material.js

@@ -0,0 +1,56 @@
+import request from '@/utils/request'
+
+// 查询素材库列表
+export function listMaterial(query) {
+  return request({
+    url: '/qw/material/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询素材库详细
+export function getMaterial(id) {
+  return request({
+    url: '/qw/material/' + id,
+    method: 'get'
+  })
+}
+
+// 新增素材库
+export function addMaterial(data) {
+  return request({
+    url: '/qw/material',
+    method: 'post',
+    data: data,
+    Headers:{
+      'Content-Type': 'multipart/form-data'
+    }
+  })
+}
+
+// 修改素材库
+export function updateMaterial(data) {
+  return request({
+    url: '/qw/material',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除素材库
+export function delMaterial(id) {
+  return request({
+    url: '/qw/material/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出素材库
+export function exportMaterial(query) {
+  return request({
+    url: '/qw/material/export',
+    method: 'get',
+    params: query
+  })
+}

+ 61 - 0
src/api/store/materialGroup.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询素材分组列表
+export function listMaterialGroup(query) {
+  return request({
+    url: '/qw/materialGroup/list',
+    method: 'get',
+    params: query
+  })
+}
+export function getAllMaterialGroup(query) {
+  return request({
+    url: '/qw/materialGroup/getAllList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+// 查询素材分组详细
+export function getMaterialGroup(groupId) {
+  return request({
+    url: '/qw/materialGroup/' + groupId,
+    method: 'get'
+  })
+}
+
+// 新增素材分组
+export function addMaterialGroup(data) {
+  return request({
+    url: '/qw/materialGroup',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改素材分组
+export function updateMaterialGroup(data) {
+  return request({
+    url: '/qw/materialGroup',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除素材分组
+export function delMaterialGroup(groupId) {
+  return request({
+    url: '/qw/materialGroup/' + groupId,
+    method: 'delete'
+  })
+}
+
+// 导出素材分组
+export function exportMaterialGroup(query) {
+  return request({
+    url: '/qw/materialGroup/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
src/api/store/schedule.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询定时发放优惠券队列列表
+export function listSchedule(query) {
+  return request({
+    url: '/system/schedule/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询定时发放优惠券队列详细
+export function getSchedule(id) {
+  return request({
+    url: '/system/schedule/' + id,
+    method: 'get'
+  })
+}
+
+// 新增定时发放优惠券队列
+export function addSchedule(data) {
+  return request({
+    url: '/system/schedule',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改定时发放优惠券队列
+export function updateSchedule(data) {
+  return request({
+    url: '/system/schedule',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除定时发放优惠券队列
+export function delSchedule(id) {
+  return request({
+    url: '/system/schedule/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出定时发放优惠券队列
+export function exportSchedule(query) {
+  return request({
+    url: '/system/schedule/export',
+    method: 'get',
+    params: query
+  })
+}

+ 33 - 0
src/api/store/statistics.js

@@ -0,0 +1,33 @@
+import request from '@/utils/request'
+
+ 
+export function storeOrder(query) {
+  return request({
+    url: '/store/statistics/storeOrder',
+    method: 'get',
+    params: query
+  })
+}
+export function exportStoreOrder(query) {
+  return request({
+    url: '/store/statistics/exportStoreOrder',
+    method: 'get',
+    params: query
+  })
+}
+
+export function storePayment(query) {
+  return request({
+    url: '/store/statistics/storePayment',
+    method: 'get',
+    params: query
+  })
+}
+export function exportStorePayment(query) {
+  return request({
+    url: '/store/statistics/exportStorePayment',
+    method: 'get',
+    params: query
+  })
+}
+

+ 88 - 0
src/api/store/storeAfterSales.js

@@ -0,0 +1,88 @@
+import request from '@/utils/request'
+
+// 查询售后记录列表
+export function listStoreAfterSales(query) {
+  return request({
+    url: '/store/storeAfterSales/list',
+    method: 'get',
+    params: query
+  })
+}
+export function myListStoreAfterSales(query) {
+  return request({
+    url: '/store/storeAfterSales/myList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+// 查询售后记录详细
+export function getStoreAfterSales(id) {
+  return request({
+    url: '/store/storeAfterSales/' + id,
+    method: 'get'
+  })
+}
+
+// 新增售后记录
+export function addStoreAfterSales(data) {
+  return request({
+    url: '/store/storeAfterSales',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改售后记录
+export function updateStoreAfterSales(data) {
+  return request({
+    url: '/store/storeAfterSales',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除售后记录
+export function delStoreAfterSales(id) {
+  return request({
+    url: '/store/storeAfterSales/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出售后记录
+export function exportStoreAfterSales(query) {
+  return request({
+    url: '/store/storeAfterSales/export',
+    method: 'get',
+    params: query
+  })
+}
+
+
+
+export function cancel(data) {
+  return request({
+    url: '/store/storeAfterSales/cancel',
+    method: 'post',
+    data: data
+  })
+}
+
+export function refund(data) {
+  return request({
+    url: '/store/storeAfterSales/refund',
+    method: 'post',
+    data: data
+  })
+}
+
+export function audit(data) {
+  return request({
+    url: '/store/storeAfterSales/audit',
+    method: 'post',
+    data: data
+  })
+}
+

+ 166 - 0
src/api/store/storeOrder.js

@@ -0,0 +1,166 @@
+import request from '@/utils/request'
+
+// 查询订单列表
+export function listStoreOrder(query) {
+  return request({
+    url: '/store/storeOrder/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getExpressByDeliverId(param) {
+  return request({
+    url: '/fsStoreDelivers/getExpressByDeliverId',
+    method: 'post',
+    data: param
+  })
+}
+
+/**
+ * 根据订单获取物流信息
+ * @param orderId
+ * @returns {*}
+ */
+export function getByOrderId(orderId){
+  return request({
+    url: '/fsStoreDelivers/getByOrderId/'+orderId,
+    method: 'get'
+  })
+}
+
+export function listAllStoreOrder(query) {
+  return request({
+    url: '/store/storeOrder/allList',
+    method: 'get',
+    params: query
+  })
+}
+export function getCustomerOrderList(query) {
+  return request({
+    url: '/store/storeOrder/getCustomerOrderList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function myListStoreOrder(query) {
+  return request({
+    url: '/store/storeOrder/myList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询订单详细
+export function getStoreOrder(id) {
+  return request({
+    url: '/store/storeOrder/' + id,
+    method: 'get'
+  })
+}
+// 查询电话
+export function getUserPhone(id) {
+  return request({
+    url: '/store/storeOrder/queryPhone/' + id,
+    method: 'get'
+  })
+}
+
+// 查询订单详细
+export function getStoreOrderAddress(id) {
+  return request({
+    url: '/store/storeOrder/queryAddress/' + id,
+    method: 'get'
+  })
+}
+
+export function getExpress(id) {
+  return request({
+    url: '/store/storeOrder/getExpress/' + id,
+    method: 'get'
+  })
+}
+
+
+// 新增订单
+export function addStoreOrder(data) {
+  return request({
+    url: '/store/storeOrder',
+    method: 'post',
+    data: data
+  })
+}
+
+
+
+
+// 修改订单
+export function updateStoreOrder(data) {
+  return request({
+    url: '/store/storeOrder',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除订单
+export function delStoreOrder(id) {
+  return request({
+    url: '/store/storeOrder/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出订单
+export function exportStoreOrder(query) {
+  return request({
+    url: '/store/storeOrder/export',
+    method: 'get',
+    params: query
+  })
+}
+
+export function exportStoreOrderItems(query) {
+  return request({
+    url: '/store/storeOrder/exportItems',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function createUserOrder(data) {
+  return request({
+    url: '/store/storeOrder/createUserOrder',
+    method: 'post',
+    data: data
+  })
+}
+
+export function editPayPrice(data) {
+  return request({
+    url: '/store/storeOrder/editPayPrice',
+    method: 'post',
+    data: data
+  })
+}
+
+
+export function bindCustomer(data) {
+  return request({
+    url: '/store/storeOrder/bindCustomer',
+    method: 'post',
+    data: data
+  })
+}
+
+export function uploadCredentials(data) {
+  return request({
+    url: '/store/storeOrder/uploadCredentials',
+    method: 'post',
+    data: data
+  })
+}
+

+ 71 - 0
src/api/store/storePayment.js

@@ -0,0 +1,71 @@
+import request from '@/utils/request'
+
+// 查询支付明细列表
+export function listStorePayment(query) {
+  return request({
+    url: '/store/storePayment/list',
+    method: 'get',
+    params: query
+  })
+}
+export function getStorePaymentList(query) {
+  return request({
+    url: '/store/storePayment/getStorePaymentList',
+    method: 'get',
+    params: query
+  })
+}
+export function getMyPaymentList(query) {
+  return request({
+    url: '/store/storePayment/getMyPaymentList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+
+
+
+// 查询支付明细详细
+export function getStorePayment(paymentId) {
+  return request({
+    url: '/store/storePayment/' + paymentId,
+    method: 'get'
+  })
+}
+
+// 新增支付明细
+export function addStorePayment(data) {
+  return request({
+    url: '/store/storePayment',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改支付明细
+export function updateStorePayment(data) {
+  return request({
+    url: '/store/storePayment',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除支付明细
+export function delStorePayment(paymentId) {
+  return request({
+    url: '/store/storePayment/' + paymentId,
+    method: 'delete'
+  })
+}
+
+// 导出支付明细
+export function exportStorePayment(query) {
+  return request({
+    url: '/store/storePayment/export',
+    method: 'get',
+    params: query
+  })
+}

+ 24 - 0
src/api/store/storeProduct.js

@@ -0,0 +1,24 @@
+import request from '@/utils/request'
+
+// 查询商品列表
+export function listStoreProduct(query) {
+  return request({
+    url: '/store/storeProduct/list',
+    method: 'get',
+    params: query
+  })
+}
+export function getStoreProductAttrValueList(query) {
+  return request({
+    url: '/store/storeProduct/getStoreProductAttrValueList',
+    method: 'get',
+    params: query
+  })
+}
+export function getStoreProduct(productId) {
+  return request({
+    url: '/store/storeProduct/' + productId,
+    method: 'get'
+  })
+}
+ 

+ 8 - 0
src/api/store/storeProductCategory.js

@@ -0,0 +1,8 @@
+import request from '@/utils/request'
+ 
+export function getAllStoreProductCategory() {
+  return request({
+    url: '/store/storeProductCategory/getAllList' ,
+    method: 'get'
+  })
+}

+ 53 - 0
src/api/store/storeProductPackage.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询商品组合套餐列表
+export function listStoreProductPackage(query) {
+  return request({
+    url: '/store/storeProductPackage/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询商品组合套餐详细
+export function getStoreProductPackage(packageId) {
+  return request({
+    url: '/store/storeProductPackage/' + packageId,
+    method: 'get'
+  })
+}
+
+// 新增商品组合套餐
+export function addStoreProductPackage(data) {
+  return request({
+    url: '/store/storeProductPackage',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改商品组合套餐
+export function updateStoreProductPackage(data) {
+  return request({
+    url: '/store/storeProductPackage',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除商品组合套餐
+export function delStoreProductPackage(packageId) {
+  return request({
+    url: '/store/storeProductPackage/' + packageId,
+    method: 'delete'
+  })
+}
+
+// 导出商品组合套餐
+export function exportStoreProductPackage(query) {
+  return request({
+    url: '/store/storeProductPackage/export',
+    method: 'get',
+    params: query
+  })
+}

+ 61 - 0
src/api/system/dict/data.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询字典数据列表
+export function listData(query) {
+  return request({
+    url: '/system/dict/data/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询字典数据详细
+export function getData(dictCode) {
+  return request({
+    url: '/system/dict/data/' + dictCode,
+    method: 'get'
+  })
+}
+
+// 根据字典类型查询字典数据信息
+export function getDicts(dictType) {
+  return request({
+    url: '/system/dict/data/type/' + dictType,
+    method: 'get'
+  })
+}
+
+// 新增字典数据
+export function addData(data) {
+  return request({
+    url: '/system/dict/data',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改字典数据
+export function updateData(data) {
+  return request({
+    url: '/system/dict/data',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除字典数据
+export function delData(dictCode) {
+  return request({
+    url: '/system/dict/data/' + dictCode,
+    method: 'delete'
+  })
+}
+
+// 导出字典数据
+export function exportData(query) {
+  return request({
+    url: '/system/dict/data/export',
+    method: 'get',
+    params: query
+  })
+}

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů