大大的豆芽 11 月之前
父节点
当前提交
e085f34615
共有 100 个文件被更改,包括 5844 次插入0 次删除
  1. 22 0
      .editorconfig
  2. 14 0
      .env.development
  3. 11 0
      .env.production
  4. 13 0
      .env.staging
  5. 10 0
      .eslintignore
  6. 199 0
      .eslintrc.js
  7. 25 0
      .gitignore
  8. 13 0
      babel.config.js
  9. 12 0
      bin/build.bat
  10. 12 0
      bin/package.bat
  11. 12 0
      bin/run-web.bat
  12. 35 0
      build/index.js
  13. 98 0
      package.json
  14. 二进制
      public/favicon.ico
  15. 21 0
      public/html/ie.html
  16. 210 0
      public/index.html
  17. 2 0
      public/robots.txt
  18. 28 0
      src/App.vue
  19. 59 0
      src/api/activity/clothInfo.js
  20. 58 0
      src/api/activity/clothItem.js
  21. 86 0
      src/api/activity/couponInfo.js
  22. 66 0
      src/api/activity/couponItem.js
  23. 59 0
      src/api/activity/discountInfo.js
  24. 59 0
      src/api/activity/groupInfo.js
  25. 14 0
      src/api/activity/info.js
  26. 62 0
      src/api/activity/rechargeInfo.js
  27. 71 0
      src/api/activity/rechargeItem.js
  28. 44 0
      src/api/app/banner.js
  29. 75 0
      src/api/app/delivery.js
  30. 58 0
      src/api/app/feedback.js
  31. 27 0
      src/api/app/notify.js
  32. 128 0
      src/api/app/user.js
  33. 58 0
      src/api/app/version.js
  34. 65 0
      src/api/cloth/adjunct.js
  35. 65 0
      src/api/cloth/brand.js
  36. 65 0
      src/api/cloth/craft.js
  37. 67 0
      src/api/cloth/hanger.js
  38. 104 0
      src/api/cloth/hangerDetail.js
  39. 25 0
      src/api/cloth/price.js
  40. 58 0
      src/api/cloth/rewashReason.js
  41. 58 0
      src/api/cloth/rewashType.js
  42. 65 0
      src/api/cloth/speed.js
  43. 58 0
      src/api/cloth/texture.js
  44. 63 0
      src/api/cloth/unitPrice.js
  45. 65 0
      src/api/cloth/washProblem.js
  46. 58 0
      src/api/core/brand.js
  47. 58 0
      src/api/core/category.js
  48. 74 0
      src/api/core/clothItem.js
  49. 65 0
      src/api/core/clothType.js
  50. 65 0
      src/api/core/color.js
  51. 58 0
      src/api/core/customItem.js
  52. 64 0
      src/api/core/flaw.js
  53. 19 0
      src/api/core/flawTop.js
  54. 65 0
      src/api/core/flawType.js
  55. 58 0
      src/api/core/goods.js
  56. 111 0
      src/api/core/goodsComment.js
  57. 58 0
      src/api/core/goodsSkuSpec.js
  58. 86 0
      src/api/core/sku.js
  59. 58 0
      src/api/core/stockRecord.js
  60. 58 0
      src/api/core/store.js
  61. 76 0
      src/api/core/washMode.js
  62. 0 0
      src/api/core/washModeRelation.js
  63. 67 0
      src/api/coupon/item.js
  64. 58 0
      src/api/coupon/thirdParty.js
  65. 85 0
      src/api/coupon/type.js
  66. 60 0
      src/api/coupon/typeApplyCloth.js
  67. 11 0
      src/api/express/delivery.js
  68. 32 0
      src/api/express/intracity.js
  69. 52 0
      src/api/generator/form.js
  70. 59 0
      src/api/login.js
  71. 9 0
      src/api/menu.js
  72. 57 0
      src/api/monitor/cache.js
  73. 71 0
      src/api/monitor/job.js
  74. 26 0
      src/api/monitor/jobLog.js
  75. 34 0
      src/api/monitor/logininfor.js
  76. 18 0
      src/api/monitor/online.js
  77. 26 0
      src/api/monitor/operlog.js
  78. 9 0
      src/api/monitor/server.js
  79. 68 0
      src/api/order/activity.js
  80. 274 0
      src/api/order/cloth.js
  81. 134 0
      src/api/order/clothItem.js
  82. 10 0
      src/api/order/clothItemFlowRecord.js
  83. 125 0
      src/api/order/goods.js
  84. 138 0
      src/api/order/purchaseGoods.js
  85. 79 0
      src/api/recharge/batchRecord.js
  86. 95 0
      src/api/recharge/card.js
  87. 58 0
      src/api/recharge/cardVersion.js
  88. 100 0
      src/api/recharge/order.js
  89. 48 0
      src/api/recharge/refund.js
  90. 66 0
      src/api/recharge/type.js
  91. 72 0
      src/api/settlement/bill.js
  92. 58 0
      src/api/settlement/rate.js
  93. 29 0
      src/api/statistics/reception.js
  94. 11 0
      src/api/system/area.js
  95. 60 0
      src/api/system/config.js
  96. 52 0
      src/api/system/dept.js
  97. 52 0
      src/api/system/dict/data.js
  98. 60 0
      src/api/system/dict/type.js
  99. 67 0
      src/api/system/document.js
  100. 64 0
      src/api/system/factory.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

+ 14 - 0
.env.development

@@ -0,0 +1,14 @@
+# 页面标题
+VUE_APP_TITLE = 一七生活管理系统(测试)
+
+# 开发环境配置
+ENV = 'development'
+
+# 一七生活管理系统/开发环境
+VUE_APP_BASE_API_HOST = 'http://localhost:9801'
+VUE_APP_BASE_API = '/'
+
+# 路由懒加载
+VUE_CLI_BABEL_TRANSPILE_MODULES = true
+
+port=9900

+ 11 - 0
.env.production

@@ -0,0 +1,11 @@
+# 页面标题
+VUE_APP_TITLE = 一七生活管理系统
+
+# 生产环境配置
+ENV = 'production'
+
+# 一七生活管理系统/生产环境
+VUE_APP_BASE_API_HOST = 'http://yiqi-test.xhmiracle.com'
+VUE_APP_BASE_API = '/prod-api'
+
+port=9900

+ 13 - 0
.env.staging

@@ -0,0 +1,13 @@
+# 页面标题
+VUE_APP_TITLE = 一七生活管理系统(本地)
+
+NODE_ENV = development
+
+# 测试环境配置
+ENV = 'staging'
+
+# 一七生活管理系统/测试环境
+VUE_APP_BASE_API_HOST = 'http://localhost:9801'
+VUE_APP_BASE_API = '/stage-api'
+
+port=9900

+ 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']
+  }
+}

+ 25 - 0
.gitignore

@@ -0,0 +1,25 @@
+.DS_Store
+node_modules/
+dist/
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+**/*.log
+
+tests/**/coverage/
+tests/e2e/reports
+selenium-debug.log
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.local
+
+package-lock.json
+yarn.lock
+
+.vscode

+ 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']
+    }
+  }
+}

+ 12 - 0
bin/build.bat

@@ -0,0 +1,12 @@
+@echo off
+echo.
+echo [信息] 打包Web工程,生成dist文件。
+echo.
+
+%~d0
+cd %~dp0
+
+cd ..
+npm run build:prod
+
+pause

+ 12 - 0
bin/package.bat

@@ -0,0 +1,12 @@
+@echo off
+echo.
+echo [信息] 安装Web工程,生成node_modules文件。
+echo.
+
+%~d0
+cd %~dp0
+
+cd ..
+npm install --registry=https://registry.npmmirror.com
+
+pause

+ 12 - 0
bin/run-web.bat

@@ -0,0 +1,12 @@
+@echo off
+echo.
+echo [信息] 使用 Vue CLI 命令运行 Web 工程。
+echo.
+
+%~d0
+cd %~dp0
+
+cd ..
+npm run dev
+
+pause

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

+ 98 - 0
package.json

@@ -0,0 +1,98 @@
+{
+  "name": "yiqi",
+  "version": "3.8.4",
+  "description": "一七生活管理系统",
+  "author": "一七生活",
+  "license": "MIT",
+  "scripts": {
+    "dev": "vue-cli-service serve --mode development",
+    "serve": "vue-cli-service serve",
+    "stag": "vue-cli-service serve --mode staging",
+    "devssl": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --mode development",
+    "servessl": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --mode production",
+    "stagssl": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --mode staging",
+    "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",
+    "build": "vue-cli-service build"
+  },
+  "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"
+  ],
+  "repository": {
+    "type": "git",
+    "url": "https://gitee.com/y_project/RuoYi-Vue.git"
+  },
+  "dependencies": {
+    "@riophae/vue-treeselect": "0.4.0",
+    "axios": "^0.24.0",
+    "clipboard": "^2.0.8",
+    "core-js": "3.25.3",
+    "echarts": "4.9.0",
+    "element-ui": "2.15.10",
+    "file-saver": "^2.0.5",
+    "fuse.js": "6.4.3",
+    "highlight.js": "9.18.5",
+    "js-beautify": "1.13.0",
+    "js-cookie": "3.0.1",
+    "jsencrypt": "3.0.0-rc.1",
+    "nprogress": "0.2.0",
+    "quill": "1.3.7",
+    "screenfull": "5.0.2",
+    "sortablejs": "1.10.2",
+    "vue": "2.6.12",
+    "vue-baidu-map": "^0.21.22",
+    "vue-count-to": "1.0.13",
+    "vue-cropper": "0.5.5",
+    "vue-meta": "2.4.0",
+    "vue-router": "3.4.9",
+    "vuedraggable": "2.24.3",
+    "vuex": "3.6.0"
+  },
+  "devDependencies": {
+    "@vue/cli-plugin-babel": "4.4.6",
+    "@vue/cli-plugin-eslint": "4.4.6",
+    "@vue/cli-service": "4.4.6",
+    "babel-eslint": "10.1.0",
+    "babel-plugin-dynamic-import-node": "2.3.3",
+    "chalk": "4.1.0",
+    "compression-webpack-plugin": "5.0.2",
+    "connect": "3.6.6",
+    "eslint": "7.15.0",
+    "eslint-plugin-vue": "7.2.0",
+    "lint-staged": "10.5.3",
+    "merge": "^1.2.1",
+    "runjs": "4.4.2",
+    "sass": "1.32.13",
+    "sass-loader": "10.1.1",
+    "script-ext-html-webpack-plugin": "2.1.5",
+    "svg-sprite-loader": "5.1.1",
+    "vue-template-compiler": "2.6.12"
+  },
+  "engines": {
+    "node": ">=8.9",
+    "npm": ">= 3.0.0"
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions"
+  ]
+}

二进制
public/favicon.ico


文件差异内容过多而无法显示
+ 21 - 0
public/html/ie.html


+ 210 - 0
public/index.html

@@ -0,0 +1,210 @@
+<!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>
+    <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
+    <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=BlxqGnImGVvHSKXN2xd7T1IP2LsqGA93"></script>
+
+    <style>
+    html,
+    body,
+    #app {
+      height: 100%;
+      margin: 0px;
+      padding: 0px;
+    }
+    .chromeframe {
+      margin: 0.2em 0;
+      background: #ccc;
+      color: #000;
+      padding: 0.2em 0;
+    }
+
+    #loader-wrapper {
+      position: fixed;
+      top: 0;
+      left: 0;
+      width: 100%;
+      height: 100%;
+      z-index: 999999;
+    }
+
+    #loader {
+      display: block;
+      position: relative;
+      left: 50%;
+      top: 50%;
+      width: 150px;
+      height: 150px;
+      margin: -75px 0 0 -75px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -webkit-animation: spin 2s linear infinite;
+      -ms-animation: spin 2s linear infinite;
+      -moz-animation: spin 2s linear infinite;
+      -o-animation: spin 2s linear infinite;
+      animation: spin 2s linear infinite;
+      z-index: 1001;
+    }
+
+    #loader:before {
+      content: "";
+      position: absolute;
+      top: 5px;
+      left: 5px;
+      right: 5px;
+      bottom: 5px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -webkit-animation: spin 3s linear infinite;
+      -moz-animation: spin 3s linear infinite;
+      -o-animation: spin 3s linear infinite;
+      -ms-animation: spin 3s linear infinite;
+      animation: spin 3s linear infinite;
+    }
+
+    #loader:after {
+      content: "";
+      position: absolute;
+      top: 15px;
+      left: 15px;
+      right: 15px;
+      bottom: 15px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -moz-animation: spin 1.5s linear infinite;
+      -o-animation: spin 1.5s linear infinite;
+      -ms-animation: spin 1.5s linear infinite;
+      -webkit-animation: spin 1.5s linear infinite;
+      animation: spin 1.5s linear infinite;
+    }
+
+
+    @-webkit-keyframes spin {
+      0% {
+        -webkit-transform: rotate(0deg);
+        -ms-transform: rotate(0deg);
+        transform: rotate(0deg);
+      }
+      100% {
+        -webkit-transform: rotate(360deg);
+        -ms-transform: rotate(360deg);
+        transform: rotate(360deg);
+      }
+    }
+
+    @keyframes spin {
+      0% {
+        -webkit-transform: rotate(0deg);
+        -ms-transform: rotate(0deg);
+        transform: rotate(0deg);
+      }
+      100% {
+        -webkit-transform: rotate(360deg);
+        -ms-transform: rotate(360deg);
+        transform: rotate(360deg);
+      }
+    }
+
+
+    #loader-wrapper .loader-section {
+      position: fixed;
+      top: 0;
+      width: 51%;
+      height: 100%;
+      background: #7171C6;
+      z-index: 1000;
+      -webkit-transform: translateX(0);
+      -ms-transform: translateX(0);
+      transform: translateX(0);
+    }
+
+    #loader-wrapper .loader-section.section-left {
+      left: 0;
+    }
+
+    #loader-wrapper .loader-section.section-right {
+      right: 0;
+    }
+
+
+    .loaded #loader-wrapper .loader-section.section-left {
+      -webkit-transform: translateX(-100%);
+      -ms-transform: translateX(-100%);
+      transform: translateX(-100%);
+      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+    }
+
+    .loaded #loader-wrapper .loader-section.section-right {
+      -webkit-transform: translateX(100%);
+      -ms-transform: translateX(100%);
+      transform: translateX(100%);
+      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+    }
+
+    .loaded #loader {
+      opacity: 0;
+      -webkit-transition: all 0.3s ease-out;
+      transition: all 0.3s ease-out;
+    }
+
+    .loaded #loader-wrapper {
+      visibility: hidden;
+      -webkit-transform: translateY(-100%);
+      -ms-transform: translateY(-100%);
+      transform: translateY(-100%);
+      -webkit-transition: all 0.3s 1s ease-out;
+      transition: all 0.3s 1s ease-out;
+    }
+
+    .no-js #loader-wrapper {
+      display: none;
+    }
+
+    .no-js h1 {
+      color: #222222;
+    }
+
+    #loader-wrapper .load_title {
+      font-family: 'Open Sans';
+      color: #FFF;
+      font-size: 19px;
+      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>
+    <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: /

+ 28 - 0
src/App.vue

@@ -0,0 +1,28 @@
+<template>
+  <div id="app">
+    <router-view />
+    <theme-picker />
+  </div>
+</template>
+
+<script>
+import ThemePicker from "@/components/ThemePicker";
+
+export default {
+  name: "App",
+  components: { ThemePicker },
+    metaInfo() {
+        return {
+            title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
+            titleTemplate: title => {
+                return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
+            }
+        }
+    }
+};
+</script>
+<style scoped>
+#app .theme-picker {
+  display: none;
+}
+</style>

+ 59 - 0
src/api/activity/clothInfo.js

@@ -0,0 +1,59 @@
+import request from '@/utils/request'
+
+// 查询活动明细列表
+export function listInfo(query) {
+  return request({
+    url: '/mapi/activity/clothInfo/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询活动明细详细
+export function getInfo(id) {
+  return request({
+    url: '/mapi/activity/clothInfo/getInfo',
+    method: 'get',
+    params: {id: id}
+  })
+}
+
+// 新增活动明细
+export function addInfo(data) {
+  return request({
+    url: '/mapi/activity/clothInfo',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改活动明细
+export function updateInfo(data) {
+  return request({
+    url: '/mapi/activity/clothInfo',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除活动明细
+export function delInfo(id) {
+  return request({
+    url: '/mapi/activity/clothInfo/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改活动明细状态
+export function updateInfoStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/activity/clothInfo/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 58 - 0
src/api/activity/clothItem.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询指定衣服折扣活动明细列表
+export function listActivityClothItem(query) {
+  return request({
+    url: '/mapi/activity/clothItem/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询指定衣服折扣活动明细详细
+export function getActivityClothItem(id) {
+  return request({
+    url: '/mapi/activity/clothItem/' + id,
+    method: 'get'
+  })
+}
+
+// 新增指定衣服折扣活动明细
+export function addActivityClothItem(data) {
+  return request({
+    url: '/mapi/activity/clothItem',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改指定衣服折扣活动明细
+export function updateActivityClothItem(data) {
+  return request({
+    url: '/mapi/activity/clothItem',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除指定衣服折扣活动明细
+export function delActivityClothItem(id) {
+  return request({
+    url: '/mapi/activity/clothItem/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改指定衣服折扣活动明细状态
+export function updateActivityClothItemStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/activity/clothItem/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 86 - 0
src/api/activity/couponInfo.js

@@ -0,0 +1,86 @@
+import request from '@/utils/request'
+
+// 查询注册送券活动列表
+export function listCouponInfo(query) {
+  return request({
+    url: '/mapi/activity/couponInfo/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询注册送券活动详细
+export function getInfo(id) {
+  return request({
+    url: '/mapi/activity/couponInfo/getInfo',
+    method: 'get',
+    params: {id: id}
+  })
+}
+
+// 新增注册送券活动
+export function addCouponInfo(data) {
+  return request({
+    url: '/mapi/activity/couponInfo',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改注册送券活动
+export function updateCouponInfo(data) {
+  return request({
+    url: '/mapi/activity/couponInfo',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除注册送券活动
+export function delCouponInfo(id) {
+  return request({
+    url: '/mapi/activity/couponInfo/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改注册送券活动状态
+export function updateCouponInfoStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/activity/couponInfo/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 查询门店适用的注册活动和优惠券列表
+export function listByStore(data) {
+  return request({
+    url: '/mapi/activity/couponInfo/listByStore',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询门店发券统计-今日统计数量
+export function todayCouponSendCountByStore() {
+  return request({
+    url: '/mapi/activity/couponInfo/todayCouponSendCountByStore',
+    method: 'get'
+  })
+}
+
+// 查询门店发券统计-列表统计
+export function listCouponSendCount(data) {
+  return request({
+    url: '/mapi/activity/couponInfo/listCouponSendCount',
+    method: 'post',
+    data: data
+  })
+}

+ 66 - 0
src/api/activity/couponItem.js

@@ -0,0 +1,66 @@
+import request from '@/utils/request'
+
+// 查询注册送券活动优惠券明细列表
+export function listCouponItem(query) {
+  return request({
+    url: '/mapi/activity/couponItem/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询注册送券活动优惠券明细详细
+export function getCouponItem(id) {
+  return request({
+    url: '/mapi/activity/couponItem/' + id,
+    method: 'get'
+  })
+}
+
+// 新增注册送券活动优惠券明细
+export function addCouponItem(data) {
+  return request({
+    url: '/mapi/activity/couponItem',
+    method: 'post',
+    data: data
+  })
+}
+
+export function editStock(data) {
+  return request({
+    url: '/mapi/activity/couponItem/editStock',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改注册送券活动优惠券明细
+export function updateCouponItem(data) {
+  return request({
+    url: '/mapi/activity/couponItem',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除注册送券活动优惠券明细
+export function delCouponItem(id) {
+  return request({
+    url: '/mapi/activity/couponItem/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改注册送券活动优惠券明细状态
+export function updateCouponItemStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/activity/couponItem/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 59 - 0
src/api/activity/discountInfo.js

@@ -0,0 +1,59 @@
+import request from '@/utils/request'
+
+// 查询全场折扣活动列表
+export function listDiscountInfo(query) {
+  return request({
+    url: '/mapi/activity/discountInfo/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询全场折扣活动详细
+export function getDiscountInfo(id) {
+  return request({
+    url: '/mapi/activity/discountInfo/getInfo',
+    method: 'get',
+    params:{id:id}
+  })
+}
+
+// 新增全场折扣活动
+export function addDiscountInfo(data) {
+  return request({
+    url: '/mapi/activity/discountInfo',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改全场折扣活动
+export function updateDiscountInfo(data) {
+  return request({
+    url: '/mapi/activity/discountInfo',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除全场折扣活动
+export function delDiscountInfo(id) {
+  return request({
+    url: '/mapi/activity/discountInfo/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改全场折扣活动状态
+export function updateDiscountInfoStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/activity/discountInfo/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 59 - 0
src/api/activity/groupInfo.js

@@ -0,0 +1,59 @@
+import request from '@/utils/request'
+
+// 查询拼团送券活动列表
+export function listGroupInfo(query) {
+  return request({
+    url: '/mapi/activity/groupInfo/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询拼团送券活动详细
+export function getGroupInfo(id) {
+  return request({
+    url: '/mapi/activity/groupInfo/getInfo',
+    method: 'get',
+    params:{id:id}
+  })
+}
+
+// 新增拼团送券活动
+export function addGroupInfo(data) {
+  return request({
+    url: '/mapi/activity/groupInfo',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改拼团送券活动
+export function updateGroupInfo(data) {
+  return request({
+    url: '/mapi/activity/groupInfo',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除拼团送券活动
+export function delGroupInfo(id) {
+  return request({
+    url: '/mapi/activity/groupInfo/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改拼团送券活动状态
+export function updateGroupInfoStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/activity/groupInfo/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 14 - 0
src/api/activity/info.js

@@ -0,0 +1,14 @@
+import request from '@/utils/request'
+
+// 修改活动明细状态
+export function updateInfoStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/activity/info/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 62 - 0
src/api/activity/rechargeInfo.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+
+// 查询活动明细列表
+export function listInfo(query) {
+  return request({
+    url: '/mapi/activity/recharge/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询活动明细详细
+export function getInfo(id) {
+  return request({
+    url: '/mapi/activity/recharge/getInfo',
+    method: 'get',
+    params: {id: id}
+  })
+}
+
+// 新增活动明细
+export function addInfo(data) {
+  return request({
+    url: '/mapi/activity/recharge',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改活动明细
+export function updateInfo(data) {
+  return request({
+    url: '/mapi/activity/recharge',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除活动明细
+export function delInfo(id) {
+  return request({
+    url: '/mapi/activity/recharge/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改活动明细状态
+export function updateInfoStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/activity/recharge/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+
+
+

+ 71 - 0
src/api/activity/rechargeItem.js

@@ -0,0 +1,71 @@
+import request from '@/utils/request'
+
+// 查询充值多送活动明细列表
+export function listRechargeItem(query) {
+  return request({
+    url: '/mapi/activity/rechargeItem/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询充值多送活动明细详细
+export function getRechargeItem(id) {
+  return request({
+    url: '/mapi/activity/rechargeItem/' + id,
+    method: 'get'
+  })
+}
+
+// 新增充值多送活动明细
+export function addRechargeItem(data) {
+  return request({
+    url: '/mapi/activity/rechargeItem',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改充值多送活动明细
+export function updateRechargeItem(data) {
+  return request({
+    url: '/mapi/activity/rechargeItem',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除充值多送活动明细
+export function delRechargeItem(id) {
+  return request({
+    url: '/mapi/activity/rechargeItem/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改充值多送活动明细状态
+export function updateRechargeItemStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/activity/rechargeItem/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 获取套餐相关的活动信息
+export function getRechargeTypeRelationActivityInfo(rechargeTypeId, orgId) {
+  return request({
+    url: '/mapi/activity/rechargeItem/getRechargeTypeRelationActivityInfo',
+    method: 'get',
+    params: {
+      rechargeTypeId : rechargeTypeId,
+      orgId : orgId
+    }
+  })
+}

+ 44 - 0
src/api/app/banner.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询轮播图列表
+export function listBanner(query) {
+  return request({
+    url: '/app/banner/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询轮播图详细
+export function getBanner(id) {
+  return request({
+    url: '/app/banner/' + id,
+    method: 'get'
+  })
+}
+
+// 新增轮播图
+export function addBanner(data) {
+  return request({
+    url: '/app/banner',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改轮播图
+export function updateBanner(data) {
+  return request({
+    url: '/app/banner',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除轮播图
+export function delBanner(id) {
+  return request({
+    url: '/app/banner/' + id,
+    method: 'delete'
+  })
+}

+ 75 - 0
src/api/app/delivery.js

@@ -0,0 +1,75 @@
+import request from '@/utils/request'
+
+// 查询配送员列表
+export function listDelivery(query) {
+  return request({
+    url: '/mapi/app/delivery/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询配送员详细
+export function getDelivery(id) {
+  return request({
+    url: '/mapi/app/delivery/' + id,
+    method: 'get'
+  })
+}
+
+// 新增配送员
+export function addDelivery(data) {
+  return request({
+    url: '/mapi/app/delivery',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改配送员
+export function updateDelivery(data) {
+  return request({
+    url: '/mapi/app/delivery',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除配送员
+export function delDelivery(id) {
+  return request({
+    url: '/mapi/app/delivery/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改配送员状态
+export function updateDeliveryStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/app/delivery/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+// 查询配送员接单记录列表
+export function getDeliveryOrderRecordList(query) {
+  return request({
+    url: '/mapi/app/delivery/getDeliveryOrderRecordList',
+    method: 'get',
+    params: query
+  })
+}
+
+
+// 预约订单查询配送员列表
+export function getDeliveryManListByOrg() {
+  return request({
+    url: '/mapi/app/delivery/getDeliveryManListByOrg',
+    method: 'get'
+  })
+}

+ 58 - 0
src/api/app/feedback.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询APP意见反馈列表
+export function listFeedback(query) {
+  return request({
+    url: '/mapi/app/feedback/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询APP意见反馈详细
+export function getFeedback(id) {
+  return request({
+    url: '/mapi/app/feedback/' + id,
+    method: 'get'
+  })
+}
+
+// 新增APP意见反馈
+export function addFeedback(data) {
+  return request({
+    url: '/mapi/app/feedback',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改APP意见反馈
+export function updateFeedback(data) {
+  return request({
+    url: '/mapi/app/feedback',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除APP意见反馈
+export function delFeedback(id) {
+  return request({
+    url: '/mapi/app/feedback/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改APP意见反馈状态
+export function updateFeedbackStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/app/feedback/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 27 - 0
src/api/app/notify.js

@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+
+// 查询消息通知列表
+export function listNotify(query) {
+  return request({
+    url: '/mapi/app/notify/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询消息通知详细
+export function getNotify(id) {
+  return request({
+    url: '/mapi/app/notify/' + id,
+    method: 'get'
+  })
+}
+
+// 新增消息通知
+export function addNotify(data) {
+  return request({
+    url: '/mapi/app/notify',
+    method: 'post',
+    data: data
+  })
+}

+ 128 - 0
src/api/app/user.js

@@ -0,0 +1,128 @@
+import request from '@/utils/request'
+
+export function findUserByPhoneNumber(query) {
+  return request({
+    url: '/mapi/app/user/getUserByPhone',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询用户列表
+export function listUser(query) {
+  return request({
+    url: '/mapi/app/user/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询用户详细
+export function getUser(id) {
+  return request({
+    url: '/mapi/app/user/' + id,
+    method: 'get'
+  })
+}
+
+// 新增用户
+export function addUser(data) {
+  return request({
+    url: '/mapi/app/user',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改用户
+export function updateUser(data) {
+  return request({
+    url: '/mapi/app/user',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除用户
+export function delUser(id) {
+  return request({
+    url: '/mapi/app/user/' + id,
+    method: 'delete'
+  })
+}
+
+// 修改用户状态
+export function updateUserStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/app/user/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+
+
+
+// 获取会员详情基本信息
+export function getMemberInfoById(query) {
+  return request({
+    url: '/mapi/app/user/getMemberInfoById',
+    method: 'get',
+    params: query
+  })
+}
+// 获取会员优惠券列表
+export function getMemberCouponInfo(data) {
+  return request({
+    url: '/mapi/app/couponItem/getMemberCouponInfo',
+    method: 'post',
+    data: data
+  })
+}
+// 获取会员消费明细
+export function getMemberBillMstrInfo(data) {
+  return request({
+    url: '/mapi/app/user/getMemberBillMstrInfo',
+    method: 'post',
+    data: data
+  })
+}
+// 获取会员商品订单信息
+export function getMemberOrderGoodsInfo(data) {
+  return request({
+    url: '/mapi/order/goods/getMemberOrderGoodsInfo',
+    method: 'post',
+    data: data
+  })
+}
+// 获取会员洗衣订单信息
+export function getMemberOrderClothInfo(data) {
+  return request({
+    url: '/mapi/order/cloth/getMemberOrderClothInfo',
+    method: 'post',
+    data: data
+  })
+}
+// 总部客户管理- 会员卡列表查询
+export function getMemberCardInfoList(data) {
+  return request({
+    url: '/mapi/recharge/card/getMemberCardInfoList',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 获取会员可抵用充值优惠券列表
+export function getMemberCouponInfoByRecharge(data) {
+  return request({
+    url: '/mapi/app/couponItem/getMemberCouponInfoByRecharge',
+    method: 'post',
+    data: data
+  })
+}
+
+

+ 58 - 0
src/api/app/version.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询APP版本管理列表
+export function listVersion(query) {
+  return request({
+    url: '/mapi/app/version/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询APP版本管理详细
+export function getVersion(id) {
+  return request({
+    url: '/mapi/app/version/' + id,
+    method: 'get'
+  })
+}
+
+// 新增APP版本管理
+export function addVersion(data) {
+  return request({
+    url: '/mapi/app/version',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改APP版本管理
+export function updateVersion(data) {
+  return request({
+    url: '/mapi/app/version',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除APP版本管理
+export function delVersion(id) {
+  return request({
+    url: '/mapi/app/version/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改APP版本管理状态
+export function updateVersionStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/app/version/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 65 - 0
src/api/cloth/adjunct.js

@@ -0,0 +1,65 @@
+import request from '@/utils/request'
+
+export function allClothAdjunct() {
+  return request({
+    url: '/mapi/cloth/adjunct/all',
+    method: 'get',
+  })
+}
+
+// 查询衣服附件列表
+export function listAdjunct(query) {
+  return request({
+    url: '/mapi/cloth/adjunct/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询衣服附件详细
+export function getAdjunct(id) {
+  return request({
+    url: '/mapi/cloth/adjunct/' + id,
+    method: 'get'
+  })
+}
+
+// 新增衣服附件
+export function addAdjunct(data) {
+  return request({
+    url: '/mapi/cloth/adjunct',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改衣服附件
+export function updateAdjunct(data) {
+  return request({
+    url: '/mapi/cloth/adjunct',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除衣服附件
+export function delAdjunct(id) {
+  return request({
+    url: '/mapi/cloth/adjunct/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改衣服附件状态
+export function updateAdjunctStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/cloth/adjunct/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 65 - 0
src/api/cloth/brand.js

@@ -0,0 +1,65 @@
+import request from '@/utils/request'
+
+export function allBrand() {
+  return request({
+    url: '/mapi/cloth/brand/all',
+    method: 'get',
+  })
+}
+
+// 查询衣服品牌列表
+export function listBrand(query) {
+  return request({
+    url: '/mapi/cloth/brand/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询衣服品牌详细
+export function getBrand(id) {
+  return request({
+    url: '/mapi/cloth/brand/' + id,
+    method: 'get'
+  })
+}
+
+// 新增衣服品牌
+export function addBrand(data) {
+  return request({
+    url: '/mapi/cloth/brand',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改衣服品牌
+export function updateBrand(data) {
+  return request({
+    url: '/mapi/cloth/brand',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除衣服品牌
+export function delBrand(id) {
+  return request({
+    url: '/mapi/cloth/brand/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改衣服品牌状态
+export function updateBrandStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/cloth/brand/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 65 - 0
src/api/cloth/craft.js

@@ -0,0 +1,65 @@
+import request from '@/utils/request'
+
+export function allClothCraft() {
+  return request({
+    url: '/mapi/cloth/craft/all',
+    method: 'get',
+  })
+}
+
+// 查询衣服工艺列表
+export function listCraft(query) {
+  return request({
+    url: '/mapi/cloth/craft/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询衣服工艺详细
+export function getCraft(id) {
+  return request({
+    url: '/mapi/cloth/craft/' + id,
+    method: 'get'
+  })
+}
+
+// 新增衣服工艺
+export function addCraft(data) {
+  return request({
+    url: '/mapi/cloth/craft',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改衣服工艺
+export function updateCraft(data) {
+  return request({
+    url: '/mapi/cloth/craft',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除衣服工艺
+export function delCraft(id) {
+  return request({
+    url: '/mapi/cloth/craft/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改衣服工艺状态
+export function updateCraftStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/cloth/craft/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 67 - 0
src/api/cloth/hanger.js

@@ -0,0 +1,67 @@
+import request from '@/utils/request'
+
+// 查询挂架管理列表
+export function listHanger(query) {
+  return request({
+    url: '/mapi/cloth/hanger/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询挂架管理详细
+export function getHanger(id) {
+  return request({
+    url: '/mapi/cloth/hanger/' + id,
+    method: 'get'
+  })
+}
+
+// 新增挂架管理
+export function addHanger(data) {
+  return request({
+    url: '/mapi/cloth/hanger',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改挂架管理
+export function updateHanger(data) {
+  return request({
+    url: '/mapi/cloth/hanger',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除挂架管理
+export function delHanger(id) {
+  return request({
+    url: '/mapi/cloth/hanger/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改挂架管理状态
+export function updateHangerStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/cloth/hanger/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询挂架 启用的
+export function getHangerList(query) {
+  return request({
+    url: '/mapi/cloth/hanger/hangerList',
+    method: 'get',
+    params: query
+  })
+}

+ 104 - 0
src/api/cloth/hangerDetail.js

@@ -0,0 +1,104 @@
+import request from '@/utils/request'
+
+// 查询挂架位置详情列表
+export function listDetail(query) {
+  return request({
+    url: '/mapi/cloth/detail/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询挂架位置详情详细
+export function getDetail(id) {
+  return request({
+    url: '/mapi/cloth/detail/' + id,
+    method: 'get'
+  })
+}
+
+// 新增挂架位置详情
+export function addDetail(data) {
+  return request({
+    url: '/mapi/cloth/detail',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改挂架位置详情
+export function updateDetail(data) {
+  return request({
+    url: '/mapi/cloth/detail',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除挂架位置详情
+export function delDetail(id) {
+  return request({
+    url: '/mapi/cloth/detail/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改挂架位置详情状态
+export function updateDetailStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/cloth/detail/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+// 查询挂架位置详情列表
+export function getIsHangerList(hangerId) {
+  return request({
+    url: '/mapi/cloth/detail/getIsHangerList',
+    method: 'get',
+    params: { hangerId: hangerId }
+  })
+}
+
+// 查询挂架位置详情列表
+export function getClothOrderInfoByHangerCodeAndId(hangerId, code) {
+  return request({
+    url: '/mapi/cloth/detail/getClothOrderInfoByHangerCodeAndId',
+    method: 'get',
+    params: {
+      hangerId: hangerId ,
+      hangerCode: code
+    }
+  })
+}
+
+
+// 上挂
+export function upHanger(orderClothItemId, hangerId, code) {
+  return request({
+    url: '/mapi/cloth/detail/upHanger',
+    method: 'get',
+    params: {
+      orderClothItemId:orderClothItemId,
+      hangerId: hangerId ,
+      hangerCode: code
+    }
+  })
+}
+
+// 查询挂架位置详情
+export function getHangerInfoByHangerCodeAndId(hangerId, code) {
+  return request({
+    url: '/mapi/cloth/detail/getHangerInfoByHangerCodeAndId',
+    method: 'get',
+    params: {
+      hangerId: hangerId ,
+      hangerCode: code
+    }
+  })
+}

+ 25 - 0
src/api/cloth/price.js

@@ -0,0 +1,25 @@
+import request from '@/utils/request'
+
+export function listWashModePriceByClothId(query) {
+  return request({
+    url: '/mapi/cloth/price/listWashModePriceByClothId',
+    method: 'get',
+    params: query
+  })
+}
+
+export function listPrice(query) {
+  return request({
+    url: '/mapi/cloth/price/listByClothId',
+    method: 'get',
+    params: query
+  })
+}
+
+export function setPrice(query) {
+  return request({
+    url: '/mapi/cloth/price/setPrice',
+    method: 'post',
+    data: query
+  })
+}

+ 58 - 0
src/api/cloth/rewashReason.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询衣服重洗原因列表
+export function listReason(query) {
+  return request({
+    url: '/mapi/cloth/reason/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询衣服重洗原因详细
+export function getReason(id) {
+  return request({
+    url: '/mapi/cloth/reason/' + id,
+    method: 'get'
+  })
+}
+
+// 新增衣服重洗原因
+export function addReason(data) {
+  return request({
+    url: '/mapi/cloth/reason',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改衣服重洗原因
+export function updateReason(data) {
+  return request({
+    url: '/mapi/cloth/reason',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除衣服重洗原因
+export function delReason(id) {
+  return request({
+    url: '/mapi/cloth/reason/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改衣服重洗原因状态
+export function updateReasonStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/cloth/reason/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 58 - 0
src/api/cloth/rewashType.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询衣服重洗原因类别列表
+export function listRewashType(query) {
+  return request({
+    url: '/mapi/cloth/rewashType/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询衣服重洗原因类别详细
+export function getRewashType(id) {
+  return request({
+    url: '/mapi/cloth/rewashType/' + id,
+    method: 'get'
+  })
+}
+
+// 新增衣服重洗原因类别
+export function addRewashType(data) {
+  return request({
+    url: '/mapi/cloth/rewashType',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改衣服重洗原因类别
+export function updateRewashType(data) {
+  return request({
+    url: '/mapi/cloth/rewashType',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除衣服重洗原因类别
+export function delRewashType(id) {
+  return request({
+    url: '/mapi/cloth/rewashType/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改衣服重洗原因类别状态
+export function updateRewashTypeStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/cloth/rewashType/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 65 - 0
src/api/cloth/speed.js

@@ -0,0 +1,65 @@
+import request from '@/utils/request'
+
+export function allClothSpeed() {
+  return request({
+    url: '/mapi/cloth/speed/allSpeed',
+    method: 'get',
+  })
+}
+
+// 查询洗衣速度列表
+export function listSpeed(query) {
+  return request({
+    url: '/mapi/cloth/speed/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询洗衣速度详细
+export function getSpeed(id) {
+  return request({
+    url: '/mapi/cloth/speed/' + id,
+    method: 'get'
+  })
+}
+
+// 新增洗衣速度
+export function addSpeed(data) {
+  return request({
+    url: '/mapi/cloth/speed',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改洗衣速度
+export function updateSpeed(data) {
+  return request({
+    url: '/mapi/cloth/speed',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除洗衣速度
+export function delSpeed(id) {
+  return request({
+    url: '/mapi/cloth/speed/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改洗衣速度状态
+export function updateSpeedStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/cloth/speed/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 58 - 0
src/api/cloth/texture.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询衣服质地列表
+export function listTexture(query) {
+  return request({
+    url: '/mapi/cloth/texture/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询衣服质地详细
+export function getTexture(id) {
+  return request({
+    url: '/mapi/cloth/texture/' + id,
+    method: 'get'
+  })
+}
+
+// 新增衣服质地
+export function addTexture(data) {
+  return request({
+    url: '/mapi/cloth/texture',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改衣服质地
+export function updateTexture(data) {
+  return request({
+    url: '/mapi/cloth/texture',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除衣服质地
+export function delTexture(id) {
+  return request({
+    url: '/mapi/cloth/texture/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改衣服质地状态
+export function updateTextureStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/cloth/texture/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 63 - 0
src/api/cloth/unitPrice.js

@@ -0,0 +1,63 @@
+import request from '@/utils/request'
+
+// 衣服类型维度 - 列表查询
+export function getClothPriceListByClothType(data) {
+  return request({
+    url: '/mapi/cloth/price/getClothPriceListByClothType',
+    method: 'post',
+    data: data
+  })
+}
+
+// 衣服类型维度 - 设置价格
+export function setPriceByClothType(data) {
+  return request({
+      url: '/mapi/cloth/price/setPriceByClothType',
+      method: 'post',
+      data: data
+  })
+}
+
+//衣服类型维度 - 区域价格复制 
+export function setPriceByClothTypeCopyArea(data) {
+  return request({
+      url: '/mapi/cloth/price/setPriceByClothTypeCopyArea',
+      method: 'post',
+      data: data
+  })
+}
+
+// 洗衣方式维度 - 列表查询
+export function getClothPriceListByWashMode(data) {
+  return request({
+    url: '/mapi/cloth/price/getClothPriceListByWashMode',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询洗衣方式详细
+export function getWashMode() {
+  return request({
+      url: '/mapi/core/washMode',
+      method: 'get'
+  })
+}
+
+// 洗衣方式维度 - 设置价格
+export function setPriceByWashMode(data) {
+  return request({
+      url: '/mapi/cloth/price/setPriceByWashMode',
+      method: 'post',
+      data: data
+  })
+}
+
+//洗衣方式维度 - 区域价格复制
+export function setPriceByWashModeCopyArea(data) {
+  return request({
+      url: '/mapi/cloth/price/setPriceByWashModeCopyArea',
+      method: 'post',
+      data: data
+  })
+}

+ 65 - 0
src/api/cloth/washProblem.js

@@ -0,0 +1,65 @@
+import request from '@/utils/request'
+
+export function allWashProblem() {
+  return request({
+    url: '/mapi/cloth/washProblem/all',
+    method: 'get',
+  })
+}
+
+// 查询洗衣问题列表
+export function listWashProblem(query) {
+  return request({
+    url: '/mapi/cloth/washProblem/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询洗衣问题详细
+export function getWashProblem(id) {
+  return request({
+    url: '/mapi/cloth/washProblem/' + id,
+    method: 'get'
+  })
+}
+
+// 新增洗衣问题
+export function addWashProblem(data) {
+  return request({
+    url: '/mapi/cloth/washProblem',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改洗衣问题
+export function updateWashProblem(data) {
+  return request({
+    url: '/mapi/cloth/washProblem',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除洗衣问题
+export function delWashProblem(id) {
+  return request({
+    url: '/mapi/cloth/washProblem/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改洗衣问题状态
+export function updateWashProblemStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/cloth/washProblem/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 58 - 0
src/api/core/brand.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询商品品牌管理列表
+export function listBrand(query) {
+    return request({
+        url: '/mapi/core/brand/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询商品品牌管理详细
+export function getBrand(id) {
+    return request({
+        url: '/mapi/core/brand/' + id,
+        method: 'get'
+    })
+}
+
+// 新增商品品牌管理
+export function addBrand(data) {
+    return request({
+        url: '/mapi/core/brand',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改商品品牌管理
+export function updateBrand(data) {
+    return request({
+        url: '/mapi/core/brand',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除商品品牌管理
+export function delBrand(id) {
+    return request({
+        url: '/mapi/core/brand/' + id,
+        method: 'delete'
+    })
+}
+
+
+// 修改商品品牌管理状态
+export function updateBrandStatus(id,status) {
+    const data = {
+        id,
+        status
+    }
+    return request({
+        url: '/mapi/core/brand/updateStatus',
+        method: 'post',
+        data: data
+    })
+}

+ 58 - 0
src/api/core/category.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询商品类型管理列表
+export function listCategory(query) {
+    return request({
+        url: '/mapi/core/category/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询商品类型管理详细
+export function getCategory(id) {
+    return request({
+        url: '/mapi/core/category/' + id,
+        method: 'get'
+    })
+}
+
+// 新增商品类型管理
+export function addCategory(data) {
+    return request({
+        url: '/mapi/core/category',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改商品类型管理
+export function updateCategory(data) {
+    return request({
+        url: '/mapi/core/category',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除商品类型管理
+export function delCategory(id) {
+    return request({
+        url: '/mapi/core/category/' + id,
+        method: 'delete'
+    })
+}
+
+
+// 修改商品类型管理状态
+export function updateCategoryStatus(id,status) {
+    const data = {
+        id,
+        status
+    }
+    return request({
+        url: '/mapi/core/category/updateStatus',
+        method: 'post',
+        data: data
+    })
+}

+ 74 - 0
src/api/core/clothItem.js

@@ -0,0 +1,74 @@
+import request from '@/utils/request'
+
+export function allClothItem(query) {
+  return request({
+    url: '/mapi/core/clothItem/allWithPrice',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询衣服列表
+export function listClothItem(query) {
+    return request({
+        url: '/mapi/core/clothItem/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询衣服详细
+export function getClothItem(id) {
+    return request({
+        url: '/mapi/core/clothItem/' + id,
+        method: 'get'
+    })
+}
+
+// 新增衣服
+export function addClothItem(data) {
+    return request({
+        url: '/mapi/core/clothItem',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改衣服
+export function updateClothItem(data) {
+    return request({
+        url: '/mapi/core/clothItem',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除衣服
+export function delClothItem(id) {
+    return request({
+        url: '/mapi/core/clothItem/' + id,
+        method: 'delete'
+    })
+}
+
+// 衣服状态修改
+export function changeClothItemStatus(id, status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/core/clothItem/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+
+// 查询衣服价格设置列表
+export function listClothItemPrice(query) {
+  return request({
+    url: '/mapi/core/clothItem/priceList',
+    method: 'get',
+    params: query
+  })
+}

+ 65 - 0
src/api/core/clothType.js

@@ -0,0 +1,65 @@
+import request from '@/utils/request'
+
+// 查询衣服种类列表
+export function allList() {
+  return request({
+    url: '/mapi/core/clothType/all',
+    method: 'get',
+  })
+}
+
+// 查询衣服种类列表
+export function listType(query) {
+    return request({
+        url: '/mapi/core/clothType/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询衣服种类详细
+export function getType(id) {
+    return request({
+        url: '/mapi/core/clothType/' + id,
+        method: 'get'
+    })
+}
+
+// 新增衣服种类
+export function addType(data) {
+    return request({
+        url: '/mapi/core/clothType',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改衣服种类
+export function updateType(data) {
+    return request({
+        url: '/mapi/core/clothType',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除衣服种类
+export function delType(id) {
+    return request({
+        url: '/mapi/core/clothType/' + id,
+        method: 'delete'
+    })
+}
+
+// 衣服种类状态修改
+export function changeTypeStatus(id, status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/core/clothType/changeStatus',
+    method: 'put',
+    data: data
+  })
+}

+ 65 - 0
src/api/core/color.js

@@ -0,0 +1,65 @@
+import request from '@/utils/request'
+
+export function allClothColor() {
+  return request({
+    url: '/mapi/core/color/all',
+    method: 'get',
+  })
+}
+
+// 查询衣服颜色列表
+export function listColor(query) {
+    return request({
+        url: '/mapi/core/color/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询衣服颜色详细
+export function getColor(id) {
+    return request({
+        url: '/mapi/core/color/' + id,
+        method: 'get'
+    })
+}
+
+// 新增衣服颜色
+export function addColor(data) {
+    return request({
+        url: '/mapi/core/color',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改衣服颜色
+export function updateColor(data) {
+    return request({
+        url: '/mapi/core/color',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除衣服颜色
+export function delColor(id) {
+    return request({
+        url: '/mapi/core/color/' + id,
+        method: 'delete'
+    })
+}
+
+// 衣服颜色状态修改
+export function changeColorStatus(id, status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/core/color/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+

+ 58 - 0
src/api/core/customItem.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询自定义衣物列表
+export function listItem(query) {
+    return request({
+        url: '/mapi/core/customItem/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询自定义衣物详细
+export function getItem(id) {
+    return request({
+        url: '/mapi/core/customItem/' + id,
+        method: 'get'
+    })
+}
+
+// 新增自定义衣物
+export function addItem(data) {
+    return request({
+        url: '/mapi/core/customItem',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改自定义衣物
+export function updateItem(data) {
+    return request({
+        url: '/mapi/core/customItem',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除自定义衣物
+export function delItem(id) {
+    return request({
+        url: '/mapi/core/customItem/' + id,
+        method: 'delete'
+    })
+}
+
+// 自定义衣物状态修改
+export function changeItemStatus(id, status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/core/customItem/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+

+ 64 - 0
src/api/core/flaw.js

@@ -0,0 +1,64 @@
+import request from '@/utils/request'
+
+export function allClothFlaw() {
+  return request({
+    url: '/mapi/core/flaw/all',
+    method: 'get',
+  })
+}
+
+// 查询衣服瑕疵列表
+export function listFlaw(query) {
+    return request({
+        url: '/mapi/core/flaw/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询衣服瑕疵详细
+export function getFlaw(id) {
+    return request({
+        url: '/mapi/core/flaw/' + id,
+        method: 'get'
+    })
+}
+
+// 新增衣服瑕疵
+export function addFlaw(data) {
+    return request({
+        url: '/mapi/core/flaw',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改衣服瑕疵
+export function updateFlaw(data) {
+    return request({
+        url: '/mapi/core/flaw',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除衣服瑕疵
+export function delFlaw(id) {
+    return request({
+        url: '/mapi/core/flaw/' + id,
+        method: 'delete'
+    })
+}
+
+// 衣服瑕疵状态修改
+export function changeFlawStatus(id, status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/core/flaw/changeStatus',
+    method: 'put',
+    data: data
+  })
+}

+ 19 - 0
src/api/core/flawTop.js

@@ -0,0 +1,19 @@
+import request from '@/utils/request'
+
+// 查询衣服瑕疵置顶列表
+export function listFlawTop(query) {
+    return request({
+        url: '/mapi/core/flawTop/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 修改衣服瑕疵置顶
+export function updateFlawTop(data) {
+    return request({
+        url: '/mapi/core/flawTop',
+        method: 'put',
+        data: data
+    })
+}

+ 65 - 0
src/api/core/flawType.js

@@ -0,0 +1,65 @@
+import request from '@/utils/request'
+
+
+export function allClothFlawType() {
+  return request({
+    url: '/mapi/core/flawType/all',
+    method: 'get',
+  })
+}
+
+// 查询衣服瑕疵类型列表
+export function listType(query) {
+    return request({
+        url: '/mapi/core/flawType/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询衣服瑕疵类型详细
+export function getType(id) {
+    return request({
+        url: '/mapi/core/flawType/' + id,
+        method: 'get'
+    })
+}
+
+// 新增衣服瑕疵类型
+export function addType(data) {
+    return request({
+        url: '/mapi/core/flawType',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改衣服瑕疵类型
+export function updateType(data) {
+    return request({
+        url: '/mapi/core/flawType',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除衣服瑕疵类型
+export function delType(id) {
+    return request({
+        url: '/mapi/core/flawType/' + id,
+        method: 'delete'
+    })
+}
+
+// 衣服瑕疵类型状态修改
+export function changeFlawTypeStatus(id, status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/core/flawType/changeStatus',
+    method: 'put',
+    data: data
+  })
+}

+ 58 - 0
src/api/core/goods.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询商品管理列表
+export function listGoods(query) {
+    return request({
+        url: '/mapi/core/goods/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询商品管理详细
+export function getGoods(id) {
+    return request({
+        url: '/mapi/core/goods/' + id,
+        method: 'get'
+    })
+}
+
+// 新增商品管理
+export function addGoods(data) {
+    return request({
+        url: '/mapi/core/goods',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改商品管理
+export function updateGoods(data) {
+    return request({
+        url: '/mapi/core/goods',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除商品管理
+export function delGoods(id) {
+    return request({
+        url: '/mapi/core/goods/' + id,
+        method: 'delete'
+    })
+}
+
+
+// 修改商品管理状态
+export function updateGoodsStatus(id,status) {
+    const data = {
+        id,
+        status
+    }
+    return request({
+        url: '/mapi/core/goods/updateStatus',
+        method: 'post',
+        data: data
+    })
+}

+ 111 - 0
src/api/core/goodsComment.js

@@ -0,0 +1,111 @@
+import request from '@/utils/request'
+
+// 查询商品评论列表
+export function listGoodsComment(data) {
+  return request({
+    url: '/mapi/goods/goodsComment/list',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询商品评论详细
+export function getGoodsComment(id) {
+  return request({
+    url: '/mapi/goods/goodsComment/' + id,
+    method: 'get'
+  })
+}
+
+// 新增商品评论
+export function addGoodsComment(data) {
+  return request({
+    url: '/mapi/goods/goodsComment',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改商品评论
+export function updateGoodsComment(data) {
+  return request({
+    url: '/mapi/goods/goodsComment/updateComment',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除商品评论
+export function delGoodsComment(id) {
+  return request({
+    url: '/mapi/goods/goodsComment/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改商品评论状态
+export function updateGoodsCommentStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/goods/goodsComment/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+// 隐藏商品评论
+export function noShowComment(ids) {
+  return request({
+    url: '/mapi/goods/goodsComment/noShowComment',
+    method: 'post',
+    data: ids
+  })
+}
+
+// 显示商品评论
+export function showComment(ids) {
+  return request({
+    url: '/mapi/goods/goodsComment/showComment',
+    method: 'post',
+    data: ids
+  })
+}
+
+// 评论-商品查询
+export function getCommentgood(data) {
+  return request({
+      url: '/mapi/core/goods/selectGoodsByGoodsType2Comment',
+      method: 'post',
+      data: data
+  })
+}
+
+// 评论-商品物料查询
+export function getCommentSku(data) {
+  return request({
+      url: '/mapi/core/goods/selectGoodsSkuByGoodsId2Comment',
+      method: 'post',
+      data: data
+  })
+}
+
+// 新增商品评论回复
+export function getCommentReply(data) {
+  return request({
+      url: '/mapi/goods/reply/addCommentReply',
+      method: 'post',
+      data: data
+  })
+}
+
+// 查询商品评论回复
+export function getQueryCommentReply(data) {
+  return request({
+      url: '/mapi/goods/reply/queryCommentReplyByCommentId',
+      method: 'post',
+      data: data
+  })
+}

+ 58 - 0
src/api/core/goodsSkuSpec.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询商品规格列表
+export function listGoodsSkuSpec(query) {
+    return request({
+        url: '/mapi/goods/goodsSkuSpec/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询商品规格详细
+export function getGoodsSkuSpec(id) {
+    return request({
+        url: '/mapi/goods/goodsSkuSpec/' + id,
+        method: 'get'
+    })
+}
+
+// 新增商品规格
+export function addGoodsSkuSpec(data) {
+    return request({
+        url: '/mapi/goods/goodsSkuSpec',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改商品规格
+export function updateGoodsSkuSpec(data) {
+    return request({
+        url: '/mapi/goods/goodsSkuSpec',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除商品规格
+export function delGoodsSkuSpec(id) {
+    return request({
+        url: '/mapi/goods/goodsSkuSpec/' + id,
+        method: 'delete'
+    })
+}
+
+
+// 修改商品规格状态
+export function updateGoodsSkuSpecStatus(id,status) {
+    const data = {
+        id,
+        status
+    }
+    return request({
+        url: '/mapi/goods/goodsSkuSpec/updateStatus',
+        method: 'post',
+        data: data
+    })
+}

+ 86 - 0
src/api/core/sku.js

@@ -0,0 +1,86 @@
+import request from '@/utils/request'
+
+// 查询物料明细列表
+export function listSku(query) {
+    return request({
+        url: '/mapi/core/sku/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询物料明细详细
+export function getSku(id) {
+    return request({
+        url: '/mapi/core/sku/' + id,
+        method: 'get'
+    })
+}
+
+// 新增物料明细
+export function addSku(data) {
+    return request({
+        url: '/mapi/core/sku',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改物料明细
+export function updateSku(data) {
+    return request({
+        url: '/mapi/core/sku',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除物料明细
+export function delSku(id) {
+    return request({
+        url: '/mapi/core/sku/' + id,
+        method: 'delete'
+    })
+}
+
+
+// 修改物料明细状态
+export function updateSkuStatus(id,status) {
+    const data = {
+        id,
+        status
+    }
+    return request({
+        url: '/mapi/core/sku/updateStatus',
+        method: 'post',
+        data: data
+    })
+}
+
+
+// 查询物料明细列表
+export function purchaseListSku(id) {
+  return request({
+    url: '/mapi/core/sku/purchase/list',
+    method: 'get',
+    params: { "id": id }
+  })
+}
+
+// 零售商品列表
+export function getGoodsListToGoodsRetail(data) {
+  return request({
+    url: '/mapi/core/sku/goodsRetail/getGoodsList',
+    method: 'post',
+    data: data
+  })
+}
+
+// 零售商品物料列表
+export function getGoodsSkuListToGoodsRetail(goodsId) {
+  return request({
+    url: '/mapi/core/sku/goodsRetail/getGoodsSkuList',
+    method: 'get',
+    params: { "id": goodsId }
+  })
+}

+ 58 - 0
src/api/core/stockRecord.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询商品库存变更记录列表
+export function listRecord(query) {
+  return request({
+    url: '/mapi/goods/record/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询商品库存变更记录详细
+export function getRecord(id) {
+  return request({
+    url: '/mapi/goods/record/' + id,
+    method: 'get'
+  })
+}
+
+// 新增商品库存变更记录
+export function addRecord(data) {
+  return request({
+    url: '/mapi/goods/record',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改商品库存变更记录
+export function updateRecord(data) {
+  return request({
+    url: '/mapi/goods/record',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除商品库存变更记录
+export function delRecord(id) {
+  return request({
+    url: '/mapi/goods/record/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改商品库存变更记录状态
+export function updateRecordStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/goods/record/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 58 - 0
src/api/core/store.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询商品门店列表
+export function listStore(query) {
+    return request({
+        url: '/mapi/core/store/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询商品门店详细
+export function getStore(id) {
+    return request({
+        url: '/mapi/core/store/' + id,
+        method: 'get'
+    })
+}
+
+// 新增商品门店
+export function addStore(data) {
+    return request({
+        url: '/mapi/core/store',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改商品门店
+export function updateStore(data) {
+    return request({
+        url: '/mapi/core/store',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除商品门店
+export function delStore(id) {
+    return request({
+        url: '/mapi/core/store/' + id,
+        method: 'delete'
+    })
+}
+
+
+// 修改商品门店状态
+export function updateStoreStatus(id,status) {
+    const data = {
+        id,
+        status
+    }
+    return request({
+        url: '/mapi/core/store/updateStatus',
+        method: 'post',
+        data: data
+    })
+}

+ 76 - 0
src/api/core/washMode.js

@@ -0,0 +1,76 @@
+import request from '@/utils/request'
+
+// 查询洗衣方式列表
+export function listWashMode(query) {
+    return request({
+        url: '/mapi/core/washMode/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询洗衣方式详细
+export function getWashMode(id) {
+    return request({
+        url: '/mapi/core/washMode/' + id,
+        method: 'get'
+    })
+}
+
+// 新增洗衣方式
+export function addWashMode(data) {
+    return request({
+        url: '/mapi/core/washMode',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改洗衣方式
+export function updateWashMode(data) {
+    return request({
+        url: '/mapi/core/washMode',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除洗衣方式
+export function delWashMode(id) {
+    return request({
+        url: '/mapi/core/washMode/' + id,
+        method: 'delete'
+    })
+}
+
+// 洗衣方式状态修改
+export function changeWashModeStatus(id, status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/core/washMode/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+// 新增洗衣方式和类别的关系
+export function addWashModeAndTypeRelation(data) {
+  return request({
+    url: '/mapi/cloth/WashModeRelation/saveBatchRelation',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询洗衣方式详细
+export function getRelationInfo(id) {
+  return request({
+    url: 'mapi/cloth/WashModeRelation/' + id,
+    method: 'get'
+  })
+}
+
+
+

+ 0 - 0
src/api/core/washModeRelation.js


+ 67 - 0
src/api/coupon/item.js

@@ -0,0 +1,67 @@
+import request from '@/utils/request'
+
+// 选择客户可使用的优惠券
+export function getCouponItemlistByAppUserId(data) {
+  return request({
+    url: '/mapi/app/couponItem/getlistByAppUserId',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询优惠券列表
+export function listCouponItem(query) {
+  return request({
+    url: '/mapi/app/couponItem/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询优惠券详细
+export function getCouponItem(id) {
+  return request({
+    url: '/mapi/app/couponItem/' + id,
+    method: 'get'
+  })
+}
+
+// 新增优惠券
+export function sendCoupon(data) {
+  return request({
+    url: '/mapi/app/couponItem/sendCoupon',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改优惠券
+export function updateCouponItem(data) {
+  return request({
+    url: '/mapi/app/couponItem',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除优惠券
+export function delCouponItem(id) {
+  return request({
+    url: '/mapi/app/couponItem/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改优惠券状态
+export function updateCouponItemStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/app/couponItem/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 58 - 0
src/api/coupon/thirdParty.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询APP第三方管理列表
+export function listThirdParty(query) {
+  return request({
+    url: '/mapi/coupon/thirdParty/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询APP第三方管理详细
+export function getThirdParty(id) {
+  return request({
+    url: '/mapi/coupon/thirdParty/' + id,
+    method: 'get'
+  })
+}
+
+// 新增APP第三方管理
+export function addThirdParty(data) {
+  return request({
+    url: '/mapi/coupon/thirdParty',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改APP第三方管理
+export function updateThirdParty(data) {
+  return request({
+    url: '/mapi/coupon/thirdParty',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除APP第三方管理
+export function delThirdParty(id) {
+  return request({
+    url: '/mapi/coupon/thirdParty/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改APP第三方管理状态
+export function updateThirdPartyStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/coupon/thirdParty/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 85 - 0
src/api/coupon/type.js

@@ -0,0 +1,85 @@
+import request from '@/utils/request'
+
+// 查询优惠券类型列表
+export function listType(query) {
+  return request({
+    url: '/mapi/coupon/type/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function allList() {
+  return request({
+    url: '/mapi/coupon/type/all',
+    method: 'get',
+  })
+}
+// 查询所有有效优惠券类型列表
+export function allValidList(orgId) {
+  return request({
+    url: '/mapi/coupon/type/allValidByStoreId',
+    method: 'get',
+    params:{
+      orgId:orgId
+    }
+  })
+}
+
+// 查询优惠券类型详细
+export function getType(id) {
+  return request({
+    url: '/mapi/coupon/type/getInfo',
+    method: 'get',
+    params: {id:id}
+  })
+}
+
+// 新增优惠券类型
+export function addType(data) {
+  return request({
+    url: '/mapi/coupon/type',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改优惠券类型
+export function updateType(data) {
+  return request({
+    url: '/mapi/coupon/type',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除优惠券类型
+export function delType(id) {
+  return request({
+    url: '/mapi/coupon/type/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改优惠券类型状态
+export function updateTypeStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/coupon/type/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询优惠券类型列表
+export function getCouponTypeList(query) {
+  return request({
+    url: '/mapi/coupon/type/list',
+    method: 'get',
+    params: query
+  })
+}

+ 60 - 0
src/api/coupon/typeApplyCloth.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+
+
+// 查询优惠券可使用衣物列表
+export function listCouponTypeApplyCloth(query) {
+  return request({
+    url: '/mapi/app/couponTypeApplyCloth/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询优惠券可使用衣物详细
+export function getCouponTypeApplyCloth(id) {
+  return request({
+    url: '/mapi/app/couponTypeApplyCloth/' + id,
+    method: 'get'
+  })
+}
+
+// 新增优惠券可使用衣物
+export function addCouponTypeApplyCloth(data) {
+  return request({
+    url: '/mapi/app/couponTypeApplyCloth',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改优惠券可使用衣物
+export function updateCouponTypeApplyCloth(data) {
+  return request({
+    url: '/mapi/app/couponTypeApplyCloth',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除优惠券可使用衣物
+export function delCouponTypeApplyCloth(id) {
+  return request({
+    url: '/mapi/app/couponTypeApplyCloth/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改优惠券可使用衣物状态
+export function updateCouponTypeApplyClothStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/app/couponTypeApplyCloth/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 11 - 0
src/api/express/delivery.js

@@ -0,0 +1,11 @@
+import request from '@/utils/request'
+
+
+//查询订单物流轨迹
+export function getDeliveryPathByClothOrderNo(query) {
+  return request({
+    url: '/mapi/third/delivery/getPathByClothOrderNo',
+    method: 'get',
+    params: query
+  })
+}

+ 32 - 0
src/api/express/intracity.js

@@ -0,0 +1,32 @@
+import request from '@/utils/request'
+
+export function intracityExpressGetStoreBalance() {
+  return request({
+    url: '/mapi/store/intracity/express/getStoreBalance',
+    method: 'get',
+  })
+}
+
+export function intracityExpressQueryFlow(data) {
+  return request({
+    url: '/mapi/store/intracity/express/queryFlow',
+    method: 'get',
+    params: data
+  })
+}
+
+export function intracityExpressChargeBalance(data) {
+  return request({
+    url: '/mapi/store/intracity/express/chargeBalance',
+    method: 'get',
+    params: data
+  })
+}
+
+export function intracityExpressGetOrderInfo(data) {
+  return request({
+    url: '/mapi/store/intracity/express/getOrderInfo',
+    method: 'get',
+    params: data
+  })
+}

+ 52 - 0
src/api/generator/form.js

@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询单生成记录列表
+export function listForm(query) {
+    return request({
+        url: '/generator/form/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询单生成记录详细
+export function getForm(id) {
+    return request({
+        url: '/generator/form/' + id,
+        method: 'get'
+    })
+}
+
+// 新增单生成记录
+export function addForm(data) {
+    return request({
+        url: '/generator/form',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改单生成记录
+export function updateForm(data) {
+    return request({
+        url: '/generator/form',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除单生成记录
+export function delForm(id) {
+    return request({
+        url: '/generator/form/' + id,
+        method: 'delete'
+    })
+}
+
+export function editDrawingData(data) {
+  return request({
+    url: '/generator/form/editDrawingData',
+    method: 'post',
+    data: data
+  })
+}

+ 59 - 0
src/api/login.js

@@ -0,0 +1,59 @@
+import request from '@/utils/request'
+
+// 登录方法
+export function login(username, password, code, uuid) {
+  const data = {
+    username,
+    password,
+    code,
+    uuid
+  }
+  return request({
+    url: '/login',
+    headers: {
+      isToken: false
+    },
+    method: 'post',
+    data: data
+  })
+}
+
+// 注册方法
+export function register(data) {
+  return request({
+    url: '/register',
+    headers: {
+      isToken: false
+    },
+    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',
+    headers: {
+      isToken: false
+    },
+    method: 'get',
+    timeout: 20000
+  })
+}

+ 9 - 0
src/api/menu.js

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

+ 57 - 0
src/api/monitor/cache.js

@@ -0,0 +1,57 @@
+import request from '@/utils/request'
+
+// 查询缓存详细
+export function getCache() {
+  return request({
+    url: '/monitor/cache',
+    method: 'get'
+  })
+}
+
+// 查询缓存名称列表
+export function listCacheName() {
+  return request({
+    url: '/monitor/cache/getNames',
+    method: 'get'
+  })
+}
+
+// 查询缓存键名列表
+export function listCacheKey(cacheName) {
+  return request({
+    url: '/monitor/cache/getKeys/' + cacheName,
+    method: 'get'
+  })
+}
+
+// 查询缓存内容
+export function getCacheValue(cacheName, cacheKey) {
+  return request({
+    url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey,
+    method: 'get'
+  })
+}
+
+// 清理指定名称缓存
+export function clearCacheName(cacheName) {
+  return request({
+    url: '/monitor/cache/clearCacheName/' + cacheName,
+    method: 'delete'
+  })
+}
+
+// 清理指定键名缓存
+export function clearCacheKey(cacheKey) {
+  return request({
+    url: '/monitor/cache/clearCacheKey/' + cacheKey,
+    method: 'delete'
+  })
+}
+
+// 清理全部缓存
+export function clearCacheAll() {
+  return request({
+    url: '/monitor/cache/clearCacheAll',
+    method: 'delete'
+  })
+}

+ 71 - 0
src/api/monitor/job.js

@@ -0,0 +1,71 @@
+import request from '@/utils/request'
+
+// 查询定时任务调度列表
+export function listJob(query) {
+  return request({
+    url: '/monitor/job/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询定时任务调度详细
+export function getJob(jobId) {
+  return request({
+    url: '/monitor/job/' + jobId,
+    method: 'get'
+  })
+}
+
+// 新增定时任务调度
+export function addJob(data) {
+  return request({
+    url: '/monitor/job',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改定时任务调度
+export function updateJob(data) {
+  return request({
+    url: '/monitor/job',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除定时任务调度
+export function delJob(jobId) {
+  return request({
+    url: '/monitor/job/' + jobId,
+    method: 'delete'
+  })
+}
+
+// 任务状态修改
+export function changeJobStatus(jobId, status) {
+  const data = {
+    jobId,
+    status
+  }
+  return request({
+    url: '/monitor/job/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+
+
+// 定时任务立即执行一次
+export function runJob(jobId, jobGroup) {
+  const data = {
+    jobId,
+    jobGroup
+  }
+  return request({
+    url: '/monitor/job/run',
+    method: 'put',
+    data: data
+  })
+}

+ 26 - 0
src/api/monitor/jobLog.js

@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 查询调度日志列表
+export function listJobLog(query) {
+  return request({
+    url: '/monitor/jobLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 删除调度日志
+export function delJobLog(jobLogId) {
+  return request({
+    url: '/monitor/jobLog/' + jobLogId,
+    method: 'delete'
+  })
+}
+
+// 清空调度日志
+export function cleanJobLog() {
+  return request({
+    url: '/monitor/jobLog/clean',
+    method: 'delete'
+  })
+}

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

@@ -0,0 +1,34 @@
+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 unlockLogininfor(userName) {
+  return request({
+    url: '/monitor/logininfor/unlock/' + userName,
+    method: 'get'
+  })
+}
+
+// 清空登录日志
+export function cleanLogininfor() {
+  return request({
+    url: '/monitor/logininfor/clean',
+    method: 'delete'
+  })
+}

+ 18 - 0
src/api/monitor/online.js

@@ -0,0 +1,18 @@
+import request from '@/utils/request'
+
+// 查询在线用户列表
+export function list(query) {
+  return request({
+    url: '/monitor/online/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 强退用户
+export function forceLogout(tokenId) {
+  return request({
+    url: '/monitor/online/' + tokenId,
+    method: 'delete'
+  })
+}

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

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

+ 9 - 0
src/api/monitor/server.js

@@ -0,0 +1,9 @@
+import request from '@/utils/request'
+
+// 获取服务信息
+export function getServer() {
+  return request({
+    url: '/monitor/server',
+    method: 'get'
+  })
+}

+ 68 - 0
src/api/order/activity.js

@@ -0,0 +1,68 @@
+import request from '@/utils/request'
+
+// 查询活动订单列表
+export function listActivity(query) {
+  return request({
+    url: '/mapi/order/activity/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询活动订单详细
+export function getActivity(id) {
+  return request({
+    url: '/mapi/order/activity/' + id,
+    method: 'get'
+  })
+}
+
+// 新增活动订单
+export function addActivity(data) {
+  return request({
+    url: '/mapi/order/activity',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改活动订单
+export function updateActivity(data) {
+  return request({
+    url: '/mapi/order/activity',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除活动订单
+export function delActivity(id) {
+  return request({
+    url: '/mapi/order/activity/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改活动订单状态
+export function updateActivityStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/order/activity/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+
+//订单-总部撤单
+export function refundOrderActivity(data) {
+  return request({
+    url: '/mapi/order/activity/refundOrderActivity',
+    method: 'post',
+    data: data
+  })
+}
+

+ 274 - 0
src/api/order/cloth.js

@@ -0,0 +1,274 @@
+import request from '@/utils/request'
+
+//云洗订单分配工厂
+export function orderClothSelectOrg(data) {
+  return request({
+    url: '/mapi/order/cloth/selectOrg',
+    method: 'post',
+    data: data
+  })
+}
+
+export function getOrderStatusByOrderNo(data) {
+  return request({
+    url: '/mapi/order/cloth/getOrderStatusByOrderNo',
+    method: 'get',
+    params: data
+  })
+}
+
+export function confirmSend(data) {
+  return request({
+    url: '/mapi/order/cloth/confirmSend',
+    method: 'get',
+    params: data
+  })
+}
+
+export function orderClothSetThirdDelivery(data) {
+  return request({
+    url: '/mapi/order/cloth/setThirdDelivery',
+    method: 'post',
+    data: data
+  })
+}
+
+
+export function setSendDelivery(data) {
+  return request({
+    url: '/mapi/order/cloth/setSendDelivery',
+    method: 'get',
+    params: data
+  })
+}
+
+export function setIntracityExpress(data) {
+  return request({
+    url: '/mapi/order/cloth/setIntracityExpress',
+    method: 'get',
+    params: data
+  })
+}
+
+
+export async function getInfoByOrderNo(query){
+  return request({
+    url: '/mapi/order/cloth/getInfoByOrderNo',
+    method: 'get',
+    params: query
+  })
+}
+
+export function takeCloth(data) {
+  return request({
+    url: '/mapi/order/cloth/takeCloth',
+    method: 'get',
+    params: data
+  })
+}
+
+// 收衣
+export function collectCloth(data) {
+  return request({
+    url: '/mapi/order/cloth/collectCloth',
+    method: 'post',
+    data: data
+  })
+}
+
+getSendClothOrderList
+
+// 查询洗衣订单列表
+export function getSendClothOrderList(query) {
+  return request({
+    url: '/mapi/order/cloth/getSendClothOrderList',
+    method: 'post',
+    data: query
+  })
+}
+
+// 查询洗衣订单列表
+export function listOrderCloth(query) {
+  return request({
+    url: '/mapi/order/cloth/list',
+    method: 'post',
+    data: query
+  })
+}
+
+export async function refundOrderCloth(query){
+  return request({
+    url: '/mapi/order/cloth/refund',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询洗衣订单详细
+export function getCloth(id) {
+  return request({
+    url: '/mapi/order/cloth/' + id,
+    method: 'get'
+  })
+}
+
+// 新增洗衣订单
+export function addCloth(data) {
+  return request({
+    url: '/mapi/order/cloth',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改洗衣订单
+export function updateCloth(data) {
+  return request({
+    url: '/mapi/order/cloth',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除洗衣订单
+export function delCloth(id) {
+  return request({
+    url: '/mapi/order/cloth/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改洗衣订单状态
+export function updateClothStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/order/cloth/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询门店预约订单列表
+export function getAppointmentClothOrderList(data) {
+  return request({
+    url: '/mapi/order/cloth/getAppointmentClothOrderList',
+    method: 'post',
+    data: data
+  })
+}
+
+//  预约订单,设置派送员
+export function setDeliveryManByAppointment(data) {
+  return request({
+    url: '/mapi/order/cloth/setDeliveryManByAppointment',
+    method: 'get',
+    params: data
+  })
+}
+
+//  预约订单,取消预约
+export function cancelAppointmentOrderByAppointment(data) {
+  return request({
+    url: '/mapi/order/cloth/cancelAppointmentOrderByAppointment',
+    method: 'get',
+    params: data
+  })
+}
+
+
+// 查询门店消费统计
+export function listCountConsumeByClothOrder(data) {
+  return request({
+    url: '/mapi/order/cloth/listCountConsumeByClothOrder',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询门店未付款统计
+export function listCountNoConsumeByClothOrder(data) {
+  return request({
+    url: '/mapi/order/cloth/listCountNoConsumeByClothOrder',
+    method: 'post',
+    data: data
+  })
+}
+
+// 财务统计-日报
+export function listFinancialStatisticsByClothOrderDay(data) {
+  return request({
+    url: '/mapi/order/cloth/listFinancialStatisticsByClothOrderDay',
+    method: 'post',
+    data: data
+  })
+}
+
+// 财务统计-月报
+export function listFinancialStatisticsByClothOrderMonth(data) {
+  return request({
+    url: '/mapi/order/cloth/listFinancialStatisticsByClothOrderMonth',
+    method: 'post',
+    data: data
+  })
+}
+
+// 财务统计-支付宝微信统计
+export function listFinancialStatisticsByOnlinePay(data) {
+  return request({
+    url: '/mapi/order/cloth/listFinancialStatisticsByOnlinePay',
+    method: 'post',
+    data: data
+  })
+}
+
+// 财务统计-工厂洗衣明细统计
+export function listFinancialStatisticsByClothOrderFactory(data) {
+  return request({
+    url: '/mapi/order/cloth/listFinancialStatisticsByClothOrderFactory',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 工厂财务统计-经营日报-今日统计
+export function countFinancialStatisticsByFactoryWithToday(data) {
+  return request({
+    url: '/mapi/order/cloth/countFinancialStatisticsByFactoryWithToday',
+    method: 'get',
+    params: data
+  })
+}
+
+
+// 工厂财务统计-经营日报-列表查询
+export function listFinancialStatisticsByFactoryWithToday(data) {
+  return request({
+    url: '/mapi/order/cloth/listFinancialStatisticsByFactoryWithToday',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 工厂财务统计-经营统计
+export function countFinancialStatisticsByFactoryOperate(data) {
+  return request({
+    url: '/mapi/order/cloth/countFinancialStatisticsByFactoryOperate',
+    method: 'post',
+    data: data
+  })
+}
+
+// 工厂财务统计-经营明细
+export function countFinancialStatisticsByFactoryOperateDetail(data) {
+  return request({
+    url: '/mapi/order/cloth/countFinancialStatisticsByFactoryOperateDetail',
+    method: 'post',
+    data: data
+  })
+}

+ 134 - 0
src/api/order/clothItem.js

@@ -0,0 +1,134 @@
+import request from '@/utils/request'
+
+
+export function outFactory(data){
+  return request({
+    url: '/mapi/order/clothItem/outFactory',
+    method: 'post',
+    data: data
+  })
+}
+
+
+export function findOutFactoryPageByFlowStatus(data){
+  return request({
+    url: '/mapi/order/clothItem/findOutFactoryPageByFlowStatus',
+    method: 'post',
+    data: data
+  })
+}
+
+export function setClothProblem(query) {
+  return request({
+    url: '/mapi/order/clothItem/setClothProblem',
+    method: 'post',
+    params: query
+  })
+}
+
+export function checkCloth(query) {
+  return request({
+    url: '/mapi/order/clothItem/checkCloth',
+    method: 'get',
+    params: query
+  })
+}
+
+export function rewashCloth(query) {
+  return request({
+    url: '/mapi/order/clothItem/rewashCloth',
+    method: 'get',
+    params: query
+  })
+}
+
+export function inFactory(query) {
+  return request({
+    url: '/mapi/order/clothItem/inFactory',
+    method: 'get',
+    params: query
+  })
+}
+
+export function deleteInFactory(query) {
+  return request({
+    url: '/mapi/order/clothItem/deleteInFactory',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询洗衣订单衣服明细列表
+export function listOrderClothItem(query) {
+  return request({
+    url: '/mapi/order/clothItem/list',
+    method: 'post',
+    data: query
+  })
+}
+
+// 查询洗衣订单衣服明细详细
+export function getClothItem(id) {
+  return request({
+    url: '/mapi/order/clothItem/' + id,
+    method: 'get'
+  })
+}
+
+// 新增洗衣订单衣服明细
+export function addClothItem(data) {
+  return request({
+    url: '/mapi/order/clothItem',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改洗衣订单衣服明细
+export function updateClothItem(data) {
+  return request({
+    url: '/mapi/order/ClothItem',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除洗衣订单衣服明细
+export function delClothItem(id) {
+  return request({
+    url: '/mapi/order/ClothItem/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改洗衣订单衣服明细状态
+export function updateClothItemStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/order/ClothItem/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询洗衣订单-待上挂衣服列表
+export function getOrderClothItemListByUpHanger(query) {
+  return request({
+    url: '/mapi/order/clothItem/getOrderClothItemListByUpHanger',
+    method: 'get',
+    params: query
+  })
+}
+
+// 重洗衣服
+export function reFlowCloth(orderClothItemId) {
+  return request({
+    url: '/mapi/order/clothItem/reFlowCloth',
+    method: 'get',
+    params: { orderClothItemId:orderClothItemId }
+  })
+}

+ 10 - 0
src/api/order/clothItemFlowRecord.js

@@ -0,0 +1,10 @@
+import request from '@/utils/request'
+
+
+export function listOrderClothFlowRecordByOrderClothId(params){
+  return request({
+    url: '/mapi/order/clothFlowRecord/listByOrderClothId',
+    method: 'get',
+    params: params
+  })
+}

+ 125 - 0
src/api/order/goods.js

@@ -0,0 +1,125 @@
+import request from '@/utils/request'
+
+// 查询商品订单列表
+export function listGoods(query) {
+  return request({
+    url: '/mapi/order/goods/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询商品订单详细
+export function getGoods(id) {
+  return request({
+    url: '/mapi/order/goods/' + id,
+    method: 'get'
+  })
+}
+
+// 新增商品订单
+export function insertRetailOrderGoods(data) {
+  return request({
+    url: '/mapi/order/goods/insertRetailOrderGoods',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询商品订单详细
+export function cancelOrder(data) {
+  return request({
+    url: '/mapi/order/goods/cancelOrder',
+    method: 'post',
+    data: data
+  })
+}
+
+// 新增商品订单
+export function rePayOrder(data) {
+  return request({
+    url: '/mapi/order/goods/rePayOrder',
+    method: 'post',
+    data: data
+  })
+}
+
+// 总部出货
+export function outOrderGoods(data) {
+  return request({
+    url: '/mapi/order/goods/outOrderGoods',
+    method: 'post',
+    data: data
+  })
+}
+
+//生活服务-汽车美容订单-总部接单
+export function receiveOrder(query) {
+  return request({
+    url: '/mapi/order/goods/receiveOrder',
+    method: 'get',
+    params: query
+  })
+}
+
+//生活服务-汽车美容订单-确认完成
+export function confirmFinish(query) {
+  return request({
+    url: '/mapi/order/goods/confirmFinish',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询退款商品订单列表
+export function refundOrderGoodsList(query) {
+  return request({
+    url: '/mapi/order/goods/refundOrderGoodsList',
+    method: 'get',
+    params: query
+  })
+}
+
+//订单-总部撤单
+export function refundOrderGoods(data) {
+  return request({
+    url: '/mapi/order/goods/refundOrderGoods',
+    method: 'post',
+    data: data
+  })
+}
+
+//商品订单退款审核,审批同意
+export function refundApprovalPass(query) {
+  return request({
+    url: '/mapi/order/goods/refundApprovalPass',
+    method: 'get',
+    params: query
+  })
+}
+
+//商品订单退款审核,审批驳回
+export function refundApprovalReject(query) {
+  return request({
+    url: '/mapi/order/goods/refundApprovalReject',
+    method: 'get',
+    params: query
+  })
+}
+
+//获取所有可支持的快递公司
+export function getdeliveryAll() {
+  return request({
+    url: '/mapi/third/delivery/all',
+    method: 'get'
+  })
+}
+
+//查询订单物流轨迹
+export function getDeliveryPath(query) {
+  return request({
+    url: '/mapi/order/goods/getDeliveryPath',
+    method: 'get',
+    params: query
+  })
+}

+ 138 - 0
src/api/order/purchaseGoods.js

@@ -0,0 +1,138 @@
+import request from '@/utils/request'
+
+// 查询商品订单列表
+export function listPurchaseGoods(query) {
+  return request({
+    url: '/mapi/order/purchaseGoods/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询商品订单详细
+export function getPurchaseGoods(id) {
+  return request({
+    url: '/mapi/order/purchaseGoods/' + id,
+    method: 'get'
+  })
+}
+
+// 新增商品订单
+export function addPurchaseGoods(data) {
+  return request({
+    url: '/mapi/order/purchaseGoods',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改商品订单
+export function updatePurchaseGoods(data) {
+  return request({
+    url: '/mapi/order/purchaseGoods',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除商品订单
+export function delPurchaseGoods(id) {
+  return request({
+    url: '/mapi/order/purchaseGoods/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改商品订单状态
+export function updatePurchaseGoodsStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/order/purchaseGoods/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询商品出货订单列表
+export function sellGoodsList(query) {
+  return request({
+    url: '/mapi/order/purchaseGoods/sellGoodsList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 商品出货-接单(确认订单)
+export function confirmOrder(id) {
+  return request({
+    url: '/mapi/order/purchaseGoods/confirmOrder',
+    method: 'get',
+    params: {orderId: id}
+  })
+}
+
+// 商品出货-拒单
+export function refuseOrder(id) {
+  return request({
+    url: '/mapi/order/purchaseGoods/refuseOrder',
+    method: 'get',
+    params: {orderId: id}
+  })
+}
+
+// 商品出货-出货
+export function sellOrder(id) {
+  return request({
+    url: '/mapi/order/purchaseGoods/sellOrder',
+    method: 'get',
+    params: {orderId: id}
+  })
+}
+
+// 商品出货-出货
+export function confirmReceiveGoodsByOrderGoods(id) {
+  return request({
+    url: '/mapi/order/purchaseGoods/confirmReceiveGoodsByOrderGoods',
+    method: 'get',
+    params: {orderId: id}
+  })
+}
+
+// 商品出货订单列表--总部工厂的门店订单列表
+export function sellGoodsListByHqFactory(query) {
+  return request({
+    url: '/mapi/order/purchaseGoods/sellGoodsListByHqFactory',
+    method: 'get',
+    params: query
+  })
+}
+
+// 进销存出货-出货-快递配送
+export function outOrderGoods(data) {
+  return request({
+    url: '/mapi/order/purchaseGoods/outOrderGoods',
+    method: 'post',
+    data: data
+  })
+}
+// 进销存出货-出货-自送
+export function outOrderGoodsBySelf(query) {
+  return request({
+    url: '/mapi/order/purchaseGoods/outOrderGoodsBySelf',
+    method: 'get',
+    params: { orderId:query }
+  })
+}
+//查询订单物流轨迹
+export function getDeliveryPath(query) {
+  return request({
+    url: '/mapi/order/purchaseGoods/getDeliveryPath',
+    method: 'get',
+    params: query
+  })
+}
+

+ 79 - 0
src/api/recharge/batchRecord.js

@@ -0,0 +1,79 @@
+import request from '@/utils/request'
+
+// 查询充值批次记录列表
+export function findBatchRecordPage(data) {
+  return request({
+    url: '/mapi/recharge/card/batchRecord/findPage',
+    method: 'post',
+    data: data
+  })
+}
+
+
+export function updateExpireTimeByBatchNo(data) {
+  return request({
+    url: '/mapi/recharge/card/batchRecord/updateExpireTimeByBatchNo',
+    method: 'post',
+    data: data
+  })
+}
+
+export function updateUseLevelByBatchNo(data) {
+  return request({
+    url: '/mapi/recharge/card/batchRecord/updateUseLevelByBatchNo',
+    method: 'post',
+    data: data
+  })
+}
+
+export function listCardUseRecordByBatchNo(data) {
+  return request({
+    url: '/mapi/recharge/card/batchRecord/listCardUseRecordByBatchNo',
+    method: 'post',
+    data: data
+  })
+}
+
+export function listCardDetailByBatchNo(data) {
+  return request({
+    url: '/mapi/recharge/card/batchRecord/listCardDetailByBatchNo',
+    method: 'post',
+    data: data
+  })
+}
+
+// 查询充值批次
+export function getOneByBatchNo(batchNo) {
+  return request({
+    url: '/mapi/recharge/card/batchRecord/getOneByBatchNo',
+    method: 'get',
+    params: { batchNo:batchNo}
+  })
+}
+
+// 批次号明细详情-充值卡撤单
+export function refundCardByCardId(rechargeCardId) {
+  return request({
+    url: '/mapi/recharge/card/batchRecord/refundCardByCardId',
+    method: 'get',
+    params: { rechargeCardId:rechargeCardId}
+  })
+}
+
+// 批次号明细详情-充值卡删除
+export function deleteCardByCardId(rechargeCardId) {
+  return request({
+    url: '/mapi/recharge/card/batchRecord/deleteCardByCardId',
+    method: 'get',
+    params: { rechargeCardId:rechargeCardId}
+  })
+}
+
+//批次号明细详情-充值卡新增
+export function addOneCard(data) {
+  return request({
+    url: '/mapi/recharge/card/batchRecord/addOneCard',
+    method: 'post',
+    data: data
+  })
+}

+ 95 - 0
src/api/recharge/card.js

@@ -0,0 +1,95 @@
+import request from '@/utils/request'
+
+// 查询密码充值卡管理列表
+export function listCard(query) {
+  return request({
+    url: '/mapi/recharge/card/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询密码充值卡管理详细
+export function getCard(id) {
+  return request({
+    url: '/mapi/recharge/card/' + id,
+    method: 'get'
+  })
+}
+
+// 新增密码充值卡管理
+export function addCard(data) {
+  return request({
+    url: '/mapi/recharge/card',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改密码充值卡管理
+export function updateCard(data) {
+  return request({
+    url: '/mapi/recharge/card',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除密码充值卡管理
+export function delCard(id) {
+  return request({
+    url: '/mapi/recharge/card/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改密码充值卡管理状态
+export function updateCardStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/recharge/card/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+
+// 一键生成充值卡
+export function multiInsertCard(data) {
+  return request({
+    url: '/mapi/recharge/card/multiInsert',
+    method: 'post',
+    data: data
+  })
+}
+
+// 门店绑定客户余额统计
+export function getUserBalanceCountList(query) {
+  return request({
+    url: '/mapi/recharge/card/getUserBalanceCountList',
+    method: 'get',
+    params: query
+  })
+}
+
+// 充值卡查询消费明细
+export function getCardBillMstrInfo(rechargeCardId) {
+  return request({
+    url: '/mapi/recharge/card/getCardBillMstrInfo',
+    method: 'get',
+    params: {
+      "rechargeCardId" : rechargeCardId
+    }
+  })
+}
+// 查询收银流水
+export function getBillMstrInfoList(data) {
+  return request({
+    url: '/mapi/recharge/card/getBillMstrInfoList',
+    method: 'post',
+    data: data
+  })
+}

+ 58 - 0
src/api/recharge/cardVersion.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询充值卡版本列表
+export function listCardVersion(query) {
+  return request({
+    url: '/mapi/recharge/cardVersion/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询充值卡版本详细
+export function getCardVersion(id) {
+  return request({
+    url: '/mapi/recharge/cardVersion/' + id,
+    method: 'get'
+  })
+}
+
+// 新增充值卡版本
+export function addCardVersion(data) {
+  return request({
+    url: '/mapi/recharge/cardVersion',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改充值卡版本
+export function updateCardVersion(data) {
+  return request({
+    url: '/mapi/recharge/cardVersion',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除充值卡版本
+export function delCardVersion(id) {
+  return request({
+    url: '/mapi/recharge/cardVersion/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改充值卡版本状态
+export function updateCardVersionStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/recharge/cardVersion/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 100 - 0
src/api/recharge/order.js

@@ -0,0 +1,100 @@
+import request from '@/utils/request'
+
+// 查询充值订单列表
+export function listOrder(query) {
+  return request({
+    url: '/mapi/recharge/order/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询充值订单详细
+export function getOrder(id) {
+  return request({
+    url: '/mapi/recharge/order/' + id,
+    method: 'get'
+  })
+}
+
+// 新增充值订单
+export function addOrder(data) {
+  return request({
+    url: '/mapi/recharge/order',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 新增充值订单
+export function morePay(data) {
+  return request({
+    url: '/mapi/recharge/order/morePay',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 修改充值订单
+export function updateOrder(data) {
+  return request({
+    url: '/mapi/recharge/order',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除充值订单
+export function delOrder(id) {
+  return request({
+    url: '/mapi/recharge/order/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改充值订单状态
+export function updateOrderStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/recharge/order/updateStatus',
+    method: 'post',
+    data: data
+  })
+}
+
+export function getPayDetailById(id) {
+  return request({
+    url: '/mapi/recharge/order/getPayDetailById',
+    method: 'get',
+    params: {id: id}
+  })
+}
+
+export function getRechargeRecordByUserId(id) {
+  return request({
+    url: '/mapi/recharge/order/getRechargeRecordByUserId',
+    method: 'get',
+    params: {userId: id}
+  })
+}
+export function getOrderStatusByOrderNo(data) {
+  return request({
+    url: '/mapi/recharge/order/getOrderStatusByOrderNo',
+    method: 'get',
+    params: data
+  })
+}
+
+export function getOrderIsAllPayByOrderNo(data) {
+  return request({
+    url: '/mapi/recharge/order/getOrderIsAllPayByOrderNo',
+    method: 'get',
+    params: data
+  })
+}

+ 48 - 0
src/api/recharge/refund.js

@@ -0,0 +1,48 @@
+import request from '@/utils/request'
+
+// 查询充值订单列表
+export function listRefund(query) {
+  return request({
+    url: '/mapi/recharge/refund/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 退卡审核
+export function refundApprovalNo(id) {
+  return request({
+    url: '/mapi/recharge/refund/refundApprovalNo',
+    method: 'get',
+    params: {"id": id }
+  })
+}
+
+// 退卡审核
+export function refundApprovalYes(id) {
+  return request({
+    url: '/mapi/recharge/refund/refundApprovalYes',
+    method: 'get',
+    params: {"id": id }
+  })
+}
+
+
+//充值订单撤单
+export function refundRecharge(data) {
+  return request({
+    url: '/mapi/recharge/refund/refundRecharge',
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 查询退款充值订单列表
+export function refundRechargeOrderList(query) {
+  return request({
+    url: '/mapi/recharge/refund/refundRechargeOrderList',
+    method: 'get',
+    params: query
+  })
+}

+ 66 - 0
src/api/recharge/type.js

@@ -0,0 +1,66 @@
+import request from '@/utils/request'
+
+// 查询充值规则管理列表
+export function listType(query) {
+  return request({
+    url: '/mapi/recharge/type/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询充值规则管理列表
+export function allList() {
+  return request({
+    url: '/mapi/recharge/type/all',
+    method: 'get'
+  })
+}
+
+// 查询充值规则管理详细
+export function getType(id) {
+  return request({
+    url: '/mapi/recharge/type/' + id,
+    method: 'get'
+  })
+}
+
+// 新增充值规则管理
+export function addType(data) {
+  return request({
+    url: '/mapi/recharge/type',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改充值规则管理
+export function updateType(data) {
+  return request({
+    url: '/mapi/recharge/type',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除充值规则管理
+export function delType(id) {
+  return request({
+    url: '/mapi/recharge/type/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改充值规则管理状态
+export function updateTypeStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/recharge/type/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 72 - 0
src/api/settlement/bill.js

@@ -0,0 +1,72 @@
+import request from '@/utils/request'
+
+// 查询结算账单列表
+export function listSettlementBill(data) {
+  return request({
+    url: '/mapi/settlement/bill/listSettlementBill',
+    method: 'post',
+    data: data
+  })
+}
+
+// 新增结算账单
+export function insertSettlementBill(data) {
+  return request({
+    url: '/mapi/settlement/bill/insertSettlementBill',
+    method: 'post',
+    data: data
+  })
+}
+
+// 删除结算费率
+export function delRate(id) {
+  return request({
+    url: '/mapi/settlement/bill/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 查询工厂结算列表
+export function listFactorySettlement(data) {
+  return request({
+    url: '/mapi/settlement/bill/listFactorySettlement',
+    method: 'post',
+    data: data
+  })
+}
+// 查询门店结算列表
+export function listStoreSettlement(data) {
+  return request({
+    url: '/mapi/settlement/bill/listStoreSettlement',
+    method: 'post',
+    data: data
+  })
+}
+
+// 工厂确认清算
+export function confirmSettlementByFactory(data) {
+  return request({
+    url: '/mapi/settlement/bill/confirmSettlementByFactory',
+    method: 'get',
+    params: data
+  })
+}
+
+
+// 门店结算详情
+export function getInfoByStore(id) {
+  return request({
+    url: '/mapi/settlement/bill/getInfoByStore',
+    method: 'get',
+    params: { id:id }
+  })
+}
+// 提交门店结算
+export function submitStoreSettlement(data) {
+  return request({
+    url: '/mapi/settlement/bill/submitStoreSettlement',
+    method: 'post',
+    data: data
+  })
+}

+ 58 - 0
src/api/settlement/rate.js

@@ -0,0 +1,58 @@
+import request from '@/utils/request'
+
+// 查询结算费率列表
+export function listRate(query) {
+  return request({
+    url: '/mapi/settlement/rate/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询结算费率详细
+export function getRate(id) {
+  return request({
+    url: '/mapi/settlement/rate/' + id,
+    method: 'get'
+  })
+}
+
+// 新增结算费率
+export function addRate(data) {
+  return request({
+    url: '/mapi/settlement/rate',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改结算费率
+export function updateRate(data) {
+  return request({
+    url: '/mapi/settlement/rate',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除结算费率
+export function delRate(id) {
+  return request({
+    url: '/mapi/settlement/rate/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改结算费率状态
+export function updateRateStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/settlement/rate/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 29 - 0
src/api/statistics/reception.js

@@ -0,0 +1,29 @@
+import request from '@/utils/request'
+
+// 获取门店前台衣服数量统计
+export function getreceptionClothing(query) {
+  return request({
+    url: '/mapi/order/clothItem/getUnFinishedOrderClothCountGroupByStatus',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询洗衣订单衣服明细列表
+export function ListClothingInfo(data) {
+  return request({
+    url: '/mapi/order/clothItem/list',
+    method: 'post',
+    data: data
+  })
+}
+
+// 获取门店超时衣服数量统计
+export function getTimeoutClothing(query) {
+  return request({
+    url: '/mapi/order/clothItem/getTimeoutOrderClothCountGroupByStatus',
+    method: 'get',
+    params: query
+  })
+}
+

+ 11 - 0
src/api/system/area.js

@@ -0,0 +1,11 @@
+import request from '@/utils/request'
+
+// 查询地区码列表
+export function listArea(query) {
+    return request({
+        url: '/system/area/list',
+        method: 'get',
+        params: query
+    })
+}
+

+ 60 - 0
src/api/system/config.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询参数列表
+export function listConfig(query) {
+  return request({
+    url: '/system/config/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询参数详细
+export function getConfig(configId) {
+  return request({
+    url: '/system/config/' + configId,
+    method: 'get'
+  })
+}
+
+// 根据参数键名查询参数值
+export function getConfigKey(configKey) {
+  return request({
+    url: '/system/config/configKey/' + configKey,
+    method: 'get'
+  })
+}
+
+// 新增参数配置
+export function addConfig(data) {
+  return request({
+    url: '/system/config',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改参数配置
+export function updateConfig(data) {
+  return request({
+    url: '/system/config',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除参数配置
+export function delConfig(configId) {
+  return request({
+    url: '/system/config/' + configId,
+    method: 'delete'
+  })
+}
+
+// 刷新参数缓存
+export function refreshCache() {
+  return request({
+    url: '/system/config/refreshCache',
+    method: 'delete'
+  })
+}

+ 52 - 0
src/api/system/dept.js

@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询部门列表
+export function listDept(query) {
+  return request({
+    url: '/system/dept/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询部门列表(排除节点)
+export function listDeptExcludeChild(deptId) {
+  return request({
+    url: '/system/dept/list/exclude/' + deptId,
+    method: 'get'
+  })
+}
+
+// 查询部门详细
+export function getDept(deptId) {
+  return request({
+    url: '/system/dept/' + deptId,
+    method: 'get'
+  })
+}
+
+// 新增部门
+export function addDept(data) {
+  return request({
+    url: '/system/dept',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改部门
+export function updateDept(data) {
+  return request({
+    url: '/system/dept',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除部门
+export function delDept(deptId) {
+  return request({
+    url: '/system/dept/' + deptId,
+    method: 'delete'
+  })
+}

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

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

+ 60 - 0
src/api/system/dict/type.js

@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询字典类型列表
+export function listType(query) {
+  return request({
+    url: '/system/dict/type/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询字典类型详细
+export function getType(dictId) {
+  return request({
+    url: '/system/dict/type/' + dictId,
+    method: 'get'
+  })
+}
+
+// 新增字典类型
+export function addType(data) {
+  return request({
+    url: '/system/dict/type',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改字典类型
+export function updateType(data) {
+  return request({
+    url: '/system/dict/type',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除字典类型
+export function delType(dictId) {
+  return request({
+    url: '/system/dict/type/' + dictId,
+    method: 'delete'
+  })
+}
+
+// 刷新字典缓存
+export function refreshCache() {
+  return request({
+    url: '/system/dict/type/refreshCache',
+    method: 'delete'
+  })
+}
+
+// 获取字典选择框列表
+export function optionselect() {
+  return request({
+    url: '/system/dict/type/optionselect',
+    method: 'get'
+  })
+}

+ 67 - 0
src/api/system/document.js

@@ -0,0 +1,67 @@
+import request from '@/utils/request'
+
+export function getDocumentByCode(query) {
+  return request({
+    url: '/weapp/document/info',
+    method: 'get',
+    params: query
+  })
+}
+
+
+// 查询系统文档列表
+export function listDocument(query) {
+  return request({
+    url: '/mapi/system/document/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询系统文档详细
+export function getDocument(id) {
+  return request({
+    url: '/mapi/system/document/' + id,
+    method: 'get'
+  })
+}
+
+// 新增系统文档
+export function addDocument(data) {
+  return request({
+    url: '/mapi/system/document',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改系统文档
+export function updateDocument(data) {
+  return request({
+    url: '/mapi/system/document',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除系统文档
+export function delDocument(id) {
+  return request({
+    url: '/mapi/system/document/' + id,
+    method: 'delete'
+  })
+}
+
+
+// 修改系统文档状态
+export function updateDocumentStatus(id,status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/mapi/system/document/updateStatus',
+    method: 'post',
+    data: data
+  })
+}

+ 64 - 0
src/api/system/factory.js

@@ -0,0 +1,64 @@
+import request from '@/utils/request'
+
+// 查询工厂 基本信息列表
+export function listFactory(query) {
+    return request({
+        url: '/system/factory/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询工厂 基本信息详细
+export function getFactory(id) {
+    return request({
+        url: '/system/factory/' + id,
+        method: 'get'
+    })
+}
+
+// 新增工厂 基本信息
+export function addFactory(data) {
+    return request({
+        url: '/system/factory',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改工厂 基本信息
+export function updateFactory(data) {
+    return request({
+        url: '/system/factory',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除工厂 基本信息
+export function delFactory(id) {
+    return request({
+        url: '/system/factory/' + id,
+        method: 'delete'
+    })
+}
+
+// 工厂状态修改
+export function changeFactoryStatus(id, status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/system/factory/changeStatus',
+    method: 'put',
+    data: data
+  })
+}
+
+export function getFactoryInfo() {
+  return request({
+    url: '/system/factory/getFactoryInfo',
+    method: 'get'
+  })
+}

部分文件因为文件数量过多而无法显示