Browse Source

初始导入

747446360@qq.com 4 months ago
parent
commit
9097272a5d
100 changed files with 5304 additions and 0 deletions
  1. 14 0
      .editorconfig
  2. 20 0
      .env.development
  3. 12 0
      .env.production
  4. 8 0
      .env.staging
  5. 4 0
      .eslintignore
  6. 196 0
      .eslintrc.js
  7. 23 0
      .gitignore
  8. 2 0
      .npmrc
  9. 64 0
      .project
  10. 5 0
      .travis.yml
  11. 21 0
      LICENSE
  12. 5 0
      babel.config.js
  13. 35 0
      build/index.js
  14. 24 0
      jest.config.js
  15. 9 0
      jsconfig.json
  16. 122 0
      package.json
  17. 26 0
      plop-templates/component/index.hbs
  18. 55 0
      plop-templates/component/prompt.js
  19. 9 0
      plop-templates/utils.js
  20. 26 0
      plop-templates/view/index.hbs
  21. 55 0
      plop-templates/view/prompt.js
  22. 7 0
      plopfile.js
  23. 5 0
      postcss.config.js
  24. BIN
      public/favicon.ico
  25. 15 0
      public/index.html
  26. 29 0
      src/App.vue
  27. 18 0
      src/api/advert.js
  28. 125 0
      src/api/article.js
  29. 47 0
      src/api/articleTypeManage.js
  30. 12 0
      src/api/attr/standardChannelAttr.js
  31. 112 0
      src/api/auth/org.js
  32. 73 0
      src/api/auth/orgGroup.js
  33. 37 0
      src/api/auth/orgTenant.js
  34. 74 0
      src/api/auth/res.js
  35. 72 0
      src/api/auth/role.js
  36. 112 0
      src/api/auth/user.js
  37. 140 0
      src/api/bind.js
  38. 141 0
      src/api/category/category.js
  39. 77 0
      src/api/category/categoryAttr.js
  40. 33 0
      src/api/category/categorySizeChart.js
  41. 57 0
      src/api/category/platformAttr.js
  42. 135 0
      src/api/category/standardChannelCategory.js
  43. 58 0
      src/api/category/standardChannelCategoryProp.js
  44. 46 0
      src/api/category/standardChannelCategorySchema.js
  45. 44 0
      src/api/channel/channel.js
  46. 42 0
      src/api/channel/channelAuth.js
  47. 7 0
      src/api/channel/channelConst.js
  48. 92 0
      src/api/channel/channelStore.js
  49. 10 0
      src/api/channel/standardChannel.js
  50. 152 0
      src/api/channelStore.js
  51. 8 0
      src/api/chart.js
  52. 32 0
      src/api/common.js
  53. 32 0
      src/api/config/ossConf.js
  54. 151 0
      src/api/config/watermark.js
  55. 3 0
      src/api/cscCategoryRel.js
  56. 27 0
      src/api/distributionChannelAuth.js
  57. 46 0
      src/api/dropWash.js
  58. 43 0
      src/api/image.js
  59. 62 0
      src/api/label.js
  60. 10 0
      src/api/log/loggingEvent.js
  61. 13 0
      src/api/log/message_log.js
  62. 10 0
      src/api/log/schedulelog.js
  63. 19 0
      src/api/log/syslog.js
  64. 10 0
      src/api/log/task.js
  65. 24 0
      src/api/login.js
  66. 56 0
      src/api/material.js
  67. 41 0
      src/api/model.js
  68. 63 0
      src/api/notice.js
  69. 68 0
      src/api/oms/bagProduct.js
  70. 43 0
      src/api/oms/basicConfig/addressAreas.js
  71. 210 0
      src/api/oms/basicConfig/basicConfig.js
  72. 19 0
      src/api/oms/basicConfig/inventoryProtectingDetail.js
  73. 84 0
      src/api/oms/basicConfig/orderSourceRule.js
  74. 32 0
      src/api/oms/copy.js
  75. 11 0
      src/api/oms/inventory/category.js
  76. 83 0
      src/api/oms/inventory/childInventory.js
  77. 32 0
      src/api/oms/inventory/childWarehoue.js
  78. 159 0
      src/api/oms/inventory/inventory.js
  79. 35 0
      src/api/oms/inventory/inventoryDistribute.js
  80. 10 0
      src/api/oms/inventory/logisticsCompany.js
  81. 9 0
      src/api/oms/inventory/product.js
  82. 31 0
      src/api/oms/inventory/refundReason.js
  83. 9 0
      src/api/oms/inventory/sku.js
  84. 9 0
      src/api/oms/inventory/virtualInventorySendLog.js
  85. 123 0
      src/api/oms/inventory/warehouse.js
  86. 41 0
      src/api/oms/onTrial/onTrial.js
  87. 79 0
      src/api/oms/onTrial/onTrialInfo.js
  88. 9 0
      src/api/oms/onTrial/subscription.js
  89. 35 0
      src/api/oms/order/activityProduct.js
  90. 24 0
      src/api/oms/order/address.js
  91. 10 0
      src/api/oms/order/invoice.js
  92. 319 0
      src/api/oms/order/order.js
  93. 80 0
      src/api/oms/order/promotion.js
  94. 59 0
      src/api/oms/order/promotionGift.js
  95. 43 0
      src/api/oms/order/promotionGoods.js
  96. 75 0
      src/api/oms/order/virtualGoods.js
  97. 84 0
      src/api/oms/refund/autoRefund.js
  98. 213 0
      src/api/oms/refund/refund.js
  99. 9 0
      src/api/oms/refund/refundReason.js
  100. 100 0
      src/api/oms/return/return.js

+ 14 - 0
.editorconfig

@@ -0,0 +1,14 @@
+# https://editorconfig.org
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 2
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.md]
+insert_final_newline = false
+trim_trailing_whitespace = false

+ 20 - 0
.env.development

@@ -0,0 +1,20 @@
+# just a flag
+ENV = 'development'
+
+# base api
+
+VUE_APP_OAUTH_API = '/oauth/'
+VUE_APP_PIM_API = '/pim/'
+VUE_APP_OMS_API = '/oms/'
+# 静态资源
+VUE_APP_RESOURCE_URL='/pim'
+VUE_APP_IMS_API='/ims/'
+
+# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
+# to control whether the babel-plugin-dynamic-import-node plugin is enabled.
+# It only does one thing by converting all import() to require().
+# This configuration can significantly increase the speed of hot updates,
+# when you have a large number of pages.
+# Detail:  https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js
+
+VUE_CLI_BABEL_TRANSPILE_MODULES = true

+ 12 - 0
.env.production

@@ -0,0 +1,12 @@
+# just a flag
+ENV = 'production'
+
+# base api
+VUE_APP_OAUTH_API = '/oauth/'
+VUE_APP_PIM_API = '/pim/'
+VUE_APP_OMS_API = '/order/'
+VUE_APP_IMS_API='/ims/'
+#静态资源
+VUE_APP_RESOURCE_URL = ''
+
+

+ 8 - 0
.env.staging

@@ -0,0 +1,8 @@
+NODE_ENV = production
+
+# just a flag
+ENV = 'staging'
+
+# base api
+VUE_APP_BASE_API = '/stage-api'
+

+ 4 - 0
.eslintignore

@@ -0,0 +1,4 @@
+build/*.js
+src/assets
+public
+dist

+ 196 - 0
.eslintrc.js

@@ -0,0 +1,196 @@
+module.exports = {
+  root: true,
+  parserOptions: {
+    sourceType: 'module'
+  },
+  env: {
+    browser: true,
+    node: true,
+    es6: true,
+  },
+  extends: ['plugin:vue/recommended'],
+
+  // add your custom rules here
+  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',  '*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']
+  }
+}

+ 23 - 0
.gitignore

@@ -0,0 +1,23 @@
+.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

+ 2 - 0
.npmrc

@@ -0,0 +1,2 @@
+sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
+registry=https://registry.npm.taobao.org

+ 64 - 0
.project

@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>mallmin-view</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>com.aptana.ide.core.unifiedBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>com.aptana.projects.webnature</nature>
+	</natures>
+	<filteredResources>
+		<filter>
+			<id>1575855533611</id>
+			<name></name>
+			<type>26</type>
+			<matcher>
+				<id>org.eclipse.ui.ide.multiFilter</id>
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
+			</matcher>
+		</filter>
+		<filter>
+			<id>1575945209815</id>
+			<name></name>
+			<type>26</type>
+			<matcher>
+				<id>org.eclipse.ui.ide.multiFilter</id>
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
+			</matcher>
+		</filter>
+		<filter>
+			<id>1576573406963</id>
+			<name></name>
+			<type>26</type>
+			<matcher>
+				<id>org.eclipse.ui.ide.multiFilter</id>
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
+			</matcher>
+		</filter>
+		<filter>
+			<id>1579054092566</id>
+			<name></name>
+			<type>26</type>
+			<matcher>
+				<id>org.eclipse.ui.ide.multiFilter</id>
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
+			</matcher>
+		</filter>
+		<filter>
+			<id>1580799892793</id>
+			<name></name>
+			<type>26</type>
+			<matcher>
+				<id>org.eclipse.ui.ide.multiFilter</id>
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
+			</matcher>
+		</filter>
+	</filteredResources>
+</projectDescription>

+ 5 - 0
.travis.yml

@@ -0,0 +1,5 @@
+language: node_js
+node_js: 10
+script: npm run test
+notifications:
+  email: false

+ 21 - 0
LICENSE

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017-present PanJiaChen
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 5 - 0
babel.config.js

@@ -0,0 +1,5 @@
+module.exports = {
+  presets: [
+    '@vue/app'
+  ]
+};

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

+ 24 - 0
jest.config.js

@@ -0,0 +1,24 @@
+module.exports = {
+  moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
+  transform: {
+    '^.+\\.vue$': 'vue-jest',
+    '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
+      'jest-transform-stub',
+    '^.+\\.jsx?$': 'babel-jest'
+  },
+  moduleNameMapper: {
+    '^@/(.*)$': '<rootDir>/src/$1'
+  },
+  snapshotSerializers: ['jest-serializer-vue'],
+  testMatch: [
+    '**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
+  ],
+  collectCoverageFrom: ['src/utils/**/*.{js,vue}', '!src/utils/auth.js', '!src/utils/request.js', 'src/components/**/*.{js,vue}'],
+  coverageDirectory: '<rootDir>/tests/unit/coverage',
+  // 'collectCoverage': true,
+  'coverageReporters': [
+    'lcov',
+    'text-summary'
+  ],
+  testURL: 'http://localhost/'
+}

+ 9 - 0
jsconfig.json

@@ -0,0 +1,9 @@
+{ 
+  "compilerOptions": {
+    "baseUrl": "./",
+    "paths": {
+        "@/*": ["src/*"]
+    }
+  },
+  "exclude": ["node_modules", "dist"]
+}

+ 122 - 0
package.json

@@ -0,0 +1,122 @@
+{
+  "name": "vue-element-admin",
+  "version": "4.2.1",
+  "description": "A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features",
+  "author": "xykj",
+  "license": "MIT",
+  "scripts": {
+    "dev": "vue-cli-service serve --inline --host swings.pim.com",
+    "build:prod": "vue-cli-service build",
+    "build:stage": "vue-cli-service build --mode staging",
+    "preview": "node build/index.js --preview",
+    "test:unit": "jest --clearCache && vue-cli-service test:unit",
+    "test:ci": "npm run lint && npm run test:unit",
+    "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
+    "new": "plop"
+  },
+  "husky": {
+    "hooks": {
+      "pre-commit": "lint-staged"
+    }
+  },
+  "lint-staged": {
+    "src/**/*.{js,vue}": [
+      "git add"
+    ]
+  },
+  "keywords": [
+    "vue",
+    "admin",
+    "dashboard",
+    "element-ui",
+    "boilerplate",
+    "admin-template",
+    "management-system"
+  ],
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/PanJiaChen/vue-element-admin.git"
+  },
+  "bugs": {
+    "url": "https://github.com/PanJiaChen/vue-element-admin/issues"
+  },
+  "dependencies": {
+    "@toast-ui/editor": "^3.1.3",
+    "awe-dnd": "^0.3.4",
+    "axios": "0.18.1",
+    "babel-polyfill": "^6.26.0",
+    "bignumber.js": "^9.1.1",
+    "clipboard": "2.0.4",
+    "codemirror": "5.45.0",
+    "copper": "0.0.2",
+    "cropper": "^4.0.0",
+    "crypto-js": "^3.1.9-1",
+    "default-passive-events": "^2.0.0",
+    "driver.js": "0.9.5",
+    "dropzone": "5.5.1",
+    "echarts": "4.2.1",
+    "element-ui": "^2.15.0",
+    "file-saver": "2.0.1",
+    "font-awesome": "^4.7.0",
+    "fuse.js": "3.4.4",
+    "highlight.js": "^11.3.1",
+    "jquery": "^3.4.1",
+    "jquery-contextmenu": "^2.8.0",
+    "js-cookie": "2.2.0",
+    "jsonlint": "1.6.3",
+    "jszip": "3.2.1",
+    "normalize.css": "7.0.0",
+    "nprogress": "0.2.0",
+    "path-to-regexp": "2.4.0",
+    "screenfull": "4.2.0",
+    "showdown": "1.9.0",
+    "sortablejs": "1.8.4",
+    "stylus": "^0.54.5",
+    "stylus-loader": "^3.0.2",
+    "vue": "2.6.10",
+    "vue-count-to": "1.0.13",
+    "vue-i18n": "7.3.2",
+    "vue-router": "3.0.2",
+    "vue-splitpane": "1.0.4",
+    "vuedraggable": "2.20.0",
+    "vuex": "3.1.0",
+    "xlsx": "0.14.1"
+  },
+  "devDependencies": {
+    "@babel/core": "7.0.0",
+    "@babel/register": "7.0.0",
+    "@vue/cli-plugin-babel": "3.5.3",
+    "@vue/cli-plugin-unit-jest": "3.5.3",
+    "@vue/cli-service": "3.5.3",
+    "@vue/test-utils": "1.0.0-beta.29",
+    "autoprefixer": "^9.5.1",
+    "babel-core": "7.0.0-bridge.0",
+    "babel-jest": "23.6.0",
+    "chalk": "2.4.2",
+    "chokidar": "2.1.5",
+    "connect": "3.6.6",
+    "html-webpack-plugin": "3.2.0",
+    "husky": "1.3.1",
+    "lint-staged": "8.1.5",
+    "mockjs": "1.0.1-beta3",
+    "node-sass": "^4.13.0",
+    "plop": "2.3.0",
+    "runjs": "^4.3.2",
+    "sass-loader": "^7.3.1",
+    "script-ext-html-webpack-plugin": "2.1.3",
+    "script-loader": "0.7.2",
+    "serve-static": "^1.13.2",
+    "style-loader": "^1.0.2",
+    "svg-sprite-loader": "4.1.3",
+    "svgo": "1.2.0",
+    "vue-template-compiler": "2.6.10"
+  },
+  "engines": {
+    "node": ">=8.9",
+    "npm": ">= 3.0.0"
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions"
+  ]
+}

+ 26 - 0
plop-templates/component/index.hbs

@@ -0,0 +1,26 @@
+{{#if template}}
+<template>
+  <div />
+</template>
+{{/if}}
+
+{{#if script}}
+<script>
+export default {
+  name: '{{ properCase name }}',
+  props: {},
+  data() {
+    return {}
+  },
+  created() {},
+  mounted() {},
+  methods: {}
+}
+</script>
+{{/if}}
+
+{{#if style}}
+<style lang="scss" scoped>
+
+</style>
+{{/if}}

+ 55 - 0
plop-templates/component/prompt.js

@@ -0,0 +1,55 @@
+const { notEmpty } = require('../utils.js')
+
+module.exports = {
+  description: 'generate vue component',
+  prompts: [{
+    type: 'input',
+    name: 'name',
+    message: 'component name please',
+    validate: notEmpty('name')
+  },
+  {
+    type: 'checkbox',
+    name: 'blocks',
+    message: 'Blocks:',
+    choices: [{
+      name: '<template>',
+      value: 'template',
+      checked: true
+    },
+    {
+      name: '<script>',
+      value: 'script',
+      checked: true
+    },
+    {
+      name: 'style',
+      value: 'style',
+      checked: true
+    }
+    ],
+    validate(value) {
+      if (value.indexOf('script') === -1 && value.indexOf('template') === -1) {
+        return 'Components require at least a <script> or <template> tag.'
+      }
+      return true
+    }
+  }
+  ],
+  actions: data => {
+    const name = '{{properCase name}}'
+    const actions = [{
+      type: 'add',
+      path: `src/components/${name}/index.vue`,
+      templateFile: 'plop-templates/component/index.hbs',
+      data: {
+        name: name,
+        template: data.blocks.includes('template'),
+        script: data.blocks.includes('script'),
+        style: data.blocks.includes('style')
+      }
+    }]
+
+    return actions
+  }
+}

+ 9 - 0
plop-templates/utils.js

@@ -0,0 +1,9 @@
+exports.notEmpty = name => {
+  return v => {
+    if (!v || v.trim === '') {
+      return `${name} is required`
+    } else {
+      return true
+    }
+  }
+}

+ 26 - 0
plop-templates/view/index.hbs

@@ -0,0 +1,26 @@
+{{#if template}}
+<template>
+  <div />
+</template>
+{{/if}}
+
+{{#if script}}
+<script>
+export default {
+  name: '{{ properCase name }}',
+  props: {},
+  data() {
+    return {}
+  },
+  created() {},
+  mounted() {},
+  methods: {}
+}
+</script>
+{{/if}}
+
+{{#if style}}
+<style lang="scss" scoped>
+
+</style>
+{{/if}}

+ 55 - 0
plop-templates/view/prompt.js

@@ -0,0 +1,55 @@
+const { notEmpty } = require('../utils.js')
+
+module.exports = {
+  description: 'generate a view',
+  prompts: [{
+    type: 'input',
+    name: 'name',
+    message: 'view name please',
+    validate: notEmpty('name')
+  },
+  {
+    type: 'checkbox',
+    name: 'blocks',
+    message: 'Blocks:',
+    choices: [{
+      name: '<template>',
+      value: 'template',
+      checked: true
+    },
+    {
+      name: '<script>',
+      value: 'script',
+      checked: true
+    },
+    {
+      name: 'style',
+      value: 'style',
+      checked: true
+    }
+    ],
+    validate(value) {
+      if (value.indexOf('script') === -1 && value.indexOf('template') === -1) {
+        return 'View require at least a <script> or <template> tag.'
+      }
+      return true
+    }
+  }
+  ],
+  actions: data => {
+    const name = '{{name}}'
+    const actions = [{
+      type: 'add',
+      path: `src/views/${name}/index.vue`,
+      templateFile: 'plop-templates/view/index.hbs',
+      data: {
+        name: name,
+        template: data.blocks.includes('template'),
+        script: data.blocks.includes('script'),
+        style: data.blocks.includes('style')
+      }
+    }]
+
+    return actions
+  }
+}

+ 7 - 0
plopfile.js

@@ -0,0 +1,7 @@
+const viewGenerator = require('./plop-templates/view/prompt');
+const componentGenerator = require('./plop-templates/component/prompt');
+
+module.exports = function(plop) {
+  plop.setGenerator('view', viewGenerator);
+  plop.setGenerator('component', componentGenerator)
+};

+ 5 - 0
postcss.config.js

@@ -0,0 +1,5 @@
+module.exports = {
+  plugins: {
+    autoprefixer: {}
+  }
+};

BIN
public/favicon.ico


+ 15 - 0
public/index.html

@@ -0,0 +1,15 @@
+<!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>
+    <style></style>
+  </head>
+  <body>
+    <div id="app"></div>
+  </body>
+</html>

+ 29 - 0
src/App.vue

@@ -0,0 +1,29 @@
+<template>
+  <div id="app">
+    <router-view v-if="isRouterAlive"/>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'App',
+  provide(){
+  	return {
+  		reload: this.reload
+  	}
+  },
+  data(){
+  	return {
+  		isRouterAlive: true
+  	}
+  },
+  methods:{
+  	reload(){
+  		this.isRouterAlive = false;
+  		this.$nextTick(function(){
+  			this.isRouterAlive = true;
+  		})
+  	}
+  }
+}
+</script>

+ 18 - 0
src/api/advert.js

@@ -0,0 +1,18 @@
+import request from '@/utils/request'
+
+export function fetchList(query) {
+  return request({
+    url: '/advert/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getAdvertInfo(id) {
+  return request({
+    url: '/advert/info',
+    method: 'get',
+    params: { id }
+  })
+}
+

+ 125 - 0
src/api/article.js

@@ -0,0 +1,125 @@
+import request from '@/utils/request'
+
+/**
+ * 创建所有索引
+ */
+export function buildAllArticle() {
+  return request({
+    url:process.env.BASE_CMS_API+"/article/buildAllArticle",
+    method: 'get'
+  })
+}
+
+//文章列表
+export function articleList(query){
+  return request({
+    url:process.env.BASE_CMS_API+"/article/list",
+    method:'get',
+    params:query
+  })
+}
+
+//当前页面展示文章
+export function tagarticleList(data){
+  return request({
+    url:process.env.BASE_CMS_API+"/article/tagSearch",
+    method:'post',
+	  data
+  })
+}
+//展示文章列表
+export function articleViewList(query,apiUrl){
+  return request({
+    url:process.env.BASE_CMS_API+apiUrl,
+    method:'get',
+    params:query
+  })
+}
+
+// 新增文章
+export function createArticle(data) {
+  return request({
+    url: process.env.BASE_CMS_API + '/article/save',
+    method: 'post',
+    data: data
+  })
+}
+
+// 通过ID查询文章
+export function getArticleInfo(id) {
+  return request({
+    url: process.env.BASE_CMS_API + '/article/info/' + id,
+    method: 'get'
+  })
+}
+
+// 更新文章
+export function updateArticle(data) {
+  return request({
+    url: process.env.BASE_CMS_API + '/article/update',
+    method: 'post',
+    data: data
+  })
+ }
+
+// 删除分类
+export function deleteArticle(data) {
+  return request({
+    url: process.env.BASE_CMS_API + '/article/delete',
+    method: 'delete',
+    params: data
+  })
+}
+
+
+// 分类列表
+export function categoriesList(query){
+  return request({
+    url:process.env.BASE_CMS_API+"/articleCategories/list",
+    method:'get',
+    params:query
+  })
+ }
+
+// 新增分类
+export function createCategories(data) {
+  return request({
+    url: process.env.BASE_CMS_API + '/articleCategories/save',
+    method: 'post',
+    data: data
+  })
+}
+
+// 删除分类
+export function deleteCategories(data) {
+  return request({
+    url: process.env.BASE_CMS_API + '/articleCategories/delete',
+    method: 'delete',
+    params: data
+  })
+}
+
+// 通过ID查询分类
+export function getCategoriesInfo(id) {
+  return request({
+    url: process.env.BASE_CMS_API + '/articleCategories/info/' + id,
+    method: 'get'
+  })
+}
+
+// 更新分类
+export function updateCategories(data) {
+  return request({
+    url: process.env.BASE_CMS_API + '/articleCategories/update',
+    method: 'post',
+    data: data
+  })
+}
+// 搜索文章
+export function articleSearch(query) {
+return request({
+    url: process.env.BASE_CMS_API + '/article/articleSearch',
+    method:'get',
+    params:query
+})
+}

+ 47 - 0
src/api/articleTypeManage.js

@@ -0,0 +1,47 @@
+import request from '@/utils/request'
+
+//文章类型删除
+export function articleTypeDelete(data) {
+  return request({
+    url: process.env.BASE_CMS_API + '/articleType/delete',
+    method: 'delete',
+    params: data
+  })
+}
+
+// 获取文章类型列表
+export function articleTypeList(query) {
+  return request({
+    url: process.env.BASE_CMS_API + '/articleType/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 通过id查询信息
+export function articleTypeDetail(id) {
+  return request({
+    url: process.env.BASE_CMS_API + '/articleType/info/' + id,
+    method: 'get'
+  })
+}
+
+// 保存新的类型
+export function articleTypeSave(data) {
+  return request({
+    url: process.env.BASE_CMS_API + '/articleType/save',
+    method: 'post',
+    data
+  })
+}
+
+// 更新类型
+export function articleTypeUpdate(data) {
+  return request({
+    url: process.env.BASE_CMS_API + '/articleType/update',
+    method: 'put',
+    data
+  })
+}
+
+

+ 12 - 0
src/api/attr/standardChannelAttr.js

@@ -0,0 +1,12 @@
+import request from '@/utils/requestPIM'
+
+
+export function syncStandardAttr(query){
+	//同步标签渠道 元数据
+	return request({
+    url:  '/tmMetaCategory/syncTmSchema',
+    method: 'get',
+    params: query
+  })
+}
+

+ 112 - 0
src/api/auth/org.js

@@ -0,0 +1,112 @@
+import requestAuth from '@/utils/requestAuth'
+
+import requestPIM from '@/utils/requestPIM'
+
+//组织集合
+export function orgCombobox(query) {
+	return requestAuth({
+		url:  '/sysOrg/orgCombobox',
+		method: 'get',
+		params: query
+	})
+}
+
+// 组织搜索
+export function orgSearch(query) {
+	return requestAuth({
+		url:  '/sysOrg/search',
+		method: 'get',
+		params: query
+	})
+}
+
+// 获取组织列表
+export function fetchList(query) {
+	return requestAuth({
+		url:  '/sysOrg/list',
+		method: 'get',
+		params: query
+	})
+}
+
+// 获取组织列表
+export function sysOrgList(query) {
+	return requestAuth({
+		url:  '/sysOrg/list',
+		method: 'get',
+		params: query
+	})
+}
+
+// 创建组织
+export function createOrg(data) {
+	return requestAuth({
+		url:  '/sysOrg/save',
+		method: 'post',
+		data
+	})
+}
+// 更新组织信息
+export function updateOrg(data) {
+	return requestAuth({
+		url:  '/sysOrg/update',
+		method: 'post',
+		data
+	})
+}
+// 删除组织信息
+export function deleteOrg(id) {
+	return requestAuth({
+		url:  '/sysOrg/delete',
+		method: 'delete',
+		params: {
+			orgId: id
+		}
+	})
+}
+// 通过id查询组织信息
+export function getOrgById(id) {
+	return requestAuth({
+		url:  '/sysOrg/info/' + id,
+		method: 'get'
+	})
+}
+
+
+// 获取资源数和组织资源关系
+export function getOrgResTree(id) {
+	return requestAuth({
+		url:  '/sysOrgResRel/list',
+		method: 'get',
+		params: {
+			orgId: id
+		}
+	})
+}
+
+
+// 获取组织列表(键值对,ID:名称)
+export function fetchOrgKeyValueList() {
+  return requestAuth({
+    url:  '/sysOrg/keyValueList',
+    method: 'get'
+  })
+}
+
+
+export function getOrgDistributionChannel(id){
+	return requestPIM({
+    url: '/pimOrgDistributionChannel/list',
+    method: 'get',
+    params: { orgId: id }
+  })
+}
+
+export function saveOrgDistributionChannel(data){
+	return requestPIM({
+    url: '/pimOrgDistributionChannel/save',
+    method: 'post',
+    data
+  })
+}
+

+ 73 - 0
src/api/auth/orgGroup.js

@@ -0,0 +1,73 @@
+import requestAuth from '@/utils/requestAuth'
+
+// 获取组织角色列表
+export function queryOrgGroupList(query) {
+  return requestAuth({
+    url:  '/sysOrgGroup/list',
+    method: 'get',
+    params: query
+  })
+}
+
+
+// 获取组织角色 - 全部数据
+export function queryOrgGroupALL() {
+  return requestAuth({
+    url:  '/sysOrgGroup/all',
+    method: 'get'
+  })
+}
+
+
+
+// 创建组织角色
+export function createOrgGroup(data) {
+  return requestAuth({
+    url:  '/sysOrgGroup/save',
+    method: 'post',
+    data
+  })
+}
+// 更新组织角色信息
+export function updateOrgGroup(data) {
+  return requestAuth({
+    url:  '/sysOrgGroup/update',
+    method: 'put',
+    data
+  })
+}
+// 删除组织角色信息
+export function deleteOrgGroup(id) {
+  return requestAuth({
+    url:  '/sysOrgGroup/delete',
+    method: 'delete',
+    params: { orgGroupId: id }
+  })
+}
+
+// 通过id查询组织角色信息
+export function getOrgGroupById(id) {
+  return requestAuth({
+    url:  '/sysOrgGroup/info/' + id,
+    method: 'get'
+  })
+}
+// 保存组织角色资源关系
+export function saveOrgGroupRes(data) {
+  return requestAuth({
+    url:  '/sysOrgGroupResRel/save',
+    method: 'post',
+    data
+  })
+}
+
+// 获取资源树和组织角色资源关系
+export function getOrgGroupResTree(query) {
+  return requestAuth({
+    url:  '/sysOrgGroupResRel/list',
+    method: 'get',
+    params: query
+  })
+}
+
+

+ 37 - 0
src/api/auth/orgTenant.js

@@ -0,0 +1,37 @@
+import requestAuth from '@/utils/requestAuth'
+
+
+// 通过id查询组织信息
+export function getShopById(id) {
+  return requestAuth({
+    url:  '/sysOrgTenant/shop/' + id,
+    method: 'get'
+  });
+}
+
+// 更新店铺信息
+export function updateShop(data){
+	return requestAuth({
+    url:  '/sysOrgTenant/shop/update',
+    method: 'post',
+    data
+ });
+}
+
+
+// 通过id查询组织信息
+export function getSupplierById(id) {
+  return requestAuth({
+    url:  '/sysOrgTenant/supplier/' + id,
+    method: 'get'
+  })
+}
+
+// 更新店铺信息
+export function updateSupplier(data){
+	return requestAuth({
+    url:  '/sysOrgTenant/supplier/update',
+    method: 'post',
+    data
+ });
+}

+ 74 - 0
src/api/auth/res.js

@@ -0,0 +1,74 @@
+import requestAuth from '@/utils/requestAuth'
+
+export function fetchList(query) {
+  return requestAuth({
+    url:  '/sysOrgRes/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function fetchListNew(query){
+  return requestAuth({
+    url:"/sysOrgRes/list",
+    method:'get',
+    params:query
+  })
+}
+
+// 新增
+export function createRes(data) {
+  return requestAuth({
+    url:  '/sysOrgRes/save',
+    method: 'post',
+    data: data
+  })
+}
+// 通过ID查询
+export function getResInfo(id) {
+  return requestAuth({
+    url:  '/sysOrgRes/info/' + id,
+    method: 'get'
+  })
+}
+
+// 更新
+export function updateRes(data) {
+  return requestAuth({
+    url:  '/sysOrgRes/update',
+    method: 'post',
+    data: data
+  })
+}
+// 删除
+export function deleteRes(data) {
+  return requestAuth({
+    url:  '/sysOrgRes/delete',
+    method: 'delete',
+    params: data
+  })
+}
+
+/**
+ * 获取资源树
+ */
+export function dynamicTree(query){
+	return requestAuth({
+    url:  '/sysOrgRes/tree',
+    method: 'get',
+    params: query
+  })
+}
+
+//code是否存在
+export function checkCodeExist(code,resId){
+	let query={
+		"code":code,
+		"resId":resId
+	};
+	return requestAuth({
+    url:  '/sysOrgRes/checkCodeExist',
+    method: 'get',
+    params: query
+  })
+}

+ 72 - 0
src/api/auth/role.js

@@ -0,0 +1,72 @@
+import requestAuth from '@/utils/requestAuth'
+
+// 获取角色列表
+export function fetchList(query) {
+  return requestAuth({
+    url:  '/sysOrgRole/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 获取角色树和该角色对应的资源
+export function getRoleResTree(query) {
+  return requestAuth({
+    url:  '/sysOrgRoleRes/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 创建角色
+export function createRole(data) {
+  return requestAuth({
+    url:  '/sysOrgRole/save',
+    method: 'post',
+    data
+  })
+}
+
+// 更新角色
+export function updateRole(data) {
+  return requestAuth({
+    url:  '/sysOrgRole/update',
+    method: 'post',
+    data
+  })
+}
+
+// 获取角色详情
+export function getRoleById(id) {
+  return requestAuth({
+    url:  '/sysOrgRole/info/' + id,
+    method: 'get'
+  })
+}
+
+// 删除角色信息
+export function deleteRole(id) {
+  return requestAuth({
+    url:  '/sysOrgRole/delete',
+    method: 'delete',
+    data: [id]
+  })
+}
+
+// 保存角色资源关系
+export function saveRoleRes(data) {
+  return requestAuth({
+    url:  '/sysOrgRoleRes/save',
+    method: 'post',
+    data
+  })
+}
+
+// 保存角色的数据权限
+export function saveRoleDataAuth(data) {
+  return requestAuth({
+    url:  '/sysRoleSensitiveAuth/update',
+    method: 'put',
+    data
+  })
+}

+ 112 - 0
src/api/auth/user.js

@@ -0,0 +1,112 @@
+import requestAuth from '@/utils/requestAuth'
+
+// 获取用户列表
+export function fetchList(query) {
+  return requestAuth({
+    url:  '/sysOrgUser/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 创建用户
+export function createUser(data) {
+  return requestAuth({
+    url:  '/sysOrgUser/save',
+    method: 'post',
+    data
+  })
+}
+
+// 更新用户
+export function updateUser(data) {
+  return requestAuth({
+    url:  '/sysOrgUser/update',
+    method: 'post',
+    data
+  })
+}
+
+// 获取用户详情
+export function getUserById(id) {
+  return requestAuth({
+    url:  '/sysOrgUser/info/' + id,
+    method: 'get'
+  })
+}
+
+// 删除用户信息
+export function deleteUser(data) {
+  return requestAuth({
+    url:  '/sysOrgUser/delete',
+    method: 'delete',
+    data
+  })
+}
+
+// 禁用用户
+export function closeUser(id) {
+  return requestAuth({
+    url:  '/sysOrgUser/update',
+    method: 'post',
+    data: {
+      userId: id,
+      status: 0
+    }
+  })
+}
+
+// 启用用户
+export function openUser(id) {
+  return requestAuth({
+    url:  '/sysOrgUser/update',
+    method: 'post',
+    data: {
+      userId: id,
+      status: 1
+    }
+  })
+}
+
+// 获取角色树以及用户和角色的关联关系
+export function getUserRoleTree(userId) {
+  return requestAuth({
+    url:  '/sysOrgUserRole/list',
+    method: 'get',
+    params: { userId: userId }
+  })
+}
+
+// 更新用户角色关联关系
+export function updateUserRole(data) {
+  return requestAuth({
+    url:  '/sysOrgUserRole/save',
+    method: 'post',
+    data
+  })
+}
+
+// 保存用户操作记录
+export function saveUserOpRecored(data) {
+  return requestAuth({
+    url:  '/userOpRecord/save',
+    method: 'post',
+    data
+  })
+}
+
+// 获取推荐用户菜单
+export function getUseMenu() {
+  return requestAuth({
+    url:  '/userMenu/userlist',
+    method: 'get'
+  })
+}
+
+export function channgePass(data){
+	return requestAuth({
+    url:  '/changePassword',
+    method: 'post',
+    data
+  })
+}

+ 140 - 0
src/api/bind.js

@@ -0,0 +1,140 @@
+import request from '@/utils/requestPIM'
+
+export const bindVals=[
+  { key: '0', display_name: '未绑定'},
+  { key: '1', display_name: '已绑定'}
+];
+
+//获取所有叶子目录
+export function fetchList(query) {
+  return request({
+    url:  '/pimOutOrgCategory/list',
+    method:'get',
+    params: query
+  })
+}
+
+//保存或者更新绑定的目录
+export function saveOutCategory(data) {
+  return request({
+    url: '/pimOutOrgCategory/update',
+    method: 'PUT',
+    data
+  })
+}
+
+//获取销售属性
+export function querySaleAttr(query) {
+  return request({
+    url: '/pimOutSaleAttr/list',
+    method:'get',
+    params: query
+  })
+}
+
+//销售属性值
+export function querySaleAttrVal(query) {
+  return request({
+    url: '/pimOutSaleAttr/attrValList',
+    method:'get',
+    params: query
+  })
+}
+
+//保存绑定关系
+export function bindSave(data) {
+  return request({
+    url: '/pimOutSaleAttr/update',
+    method:'put',
+   data
+  })
+}
+
+//获取商品属性
+export function queryProductAttr(query) {
+  return request({
+    url: '/pimOutAttr/list',
+    method:'get',
+    params: query
+  })
+}
+
+//商品属性值
+export function queryProductAttrVal(query) {
+  return request({
+    url: '/pimOutAttr/attrValList',
+    method:'get',
+    params: query
+  })
+}
+
+//保存绑定关系
+export function bindProductAttrSave(data) {
+  return request({
+    url: '/pimOutAttr/update',
+    method:'put',
+   data
+  })
+}
+
+//获取所有尺码绑定关系的数据
+export function fetchSizeList(query) {
+  return request({
+    url:  '/pimOutSizeRel/list',
+    method:'get',
+    params: query
+  })
+}
+
+//保存或者更新颜色绑定关系
+export function saveOutColor(data) {
+  return request({
+    url:  '/pimOutColorRel/update',
+    method: 'post',
+    data
+  })
+}
+
+//保存或者更新尺码绑定关系
+export function saveOutSize(data) {
+  return request({
+    url: '/pimOutSizeRel/update',
+    method: 'post',
+    data
+  })
+}
+
+export function getPlatformSaleAttrVals(query) {
+  return request({
+    url:  '/pimAttr/getSaleAttrVals',
+    method:'get',
+    params: query
+  })
+}
+
+/**
+ * 一键绑定默认目录
+ * @param params
+ * @returns {AxiosPromise}
+ */
+export function bingDefaultCategory(params){
+  return request({
+    url: '/pimOutOrgCategory/bingDefaultCategory',
+    method: 'get',
+    params:params
+  })
+}
+
+/**
+ * 一键绑定销售属性
+ * @param params
+ * @returns {AxiosPromise}
+ */
+export function bingDefaultSaleAttr(params){
+  return request({
+    url: '/pimOutOrgCategory/bingDefaultSaleAttr',
+    method: 'get',
+    params:params
+  })
+}
+

+ 141 - 0
src/api/category/category.js

@@ -0,0 +1,141 @@
+import request from '@/utils/requestPIM'
+// 获取属性列表
+export function fetchList(data) {
+  return request({
+    url:   '/pimCategory/list',
+    method: 'post',
+    data
+  })
+}
+//获取分类树形结构
+export function categoryTree(query){
+  return request({
+    url:   '/pimCategory/tree',
+    method: 'get',
+    params: query
+  })
+}
+//叶子分类列表
+export function leafCategoryList(query){
+  return request({
+    url: '/pimCategory/leafCategoryList',
+    method:'get',
+    params:query
+  });
+}
+//平台分类和来源渠道分类绑定 - 如服装分类 平台分类就是根据天猫的分类进行设置的所以渠道分类直接绑定
+export function bindOriginChannelCategory() {
+  return request({
+    url:   '/pimCategoryMapping/bindOriginChannel',
+    method: 'get',
+  })
+}
+//获取已经绑定的数据 - 编辑使用
+export function queryCategoryBindData(categoryId) {
+  return request({
+    url:'/pimCategoryMapping/queryCategoryBindData/'+categoryId,
+    method: 'get',
+  })
+}
+//绑定渠道分类 - 保存绑定信息
+export function bindChannelCategoryData(data){
+  return request({
+    url:   '/pimCategoryMapping/bindChannelCategory',
+    method: 'post',
+    data
+  })
+}
+//根据渠道属性 生成 平台属性
+export function channel2PlatformCategoryApply(data){
+  return request({
+    url:"/pimCategory/channel2PlatformCategoryApply",
+    method: 'post',
+    data
+  })
+}
+
+//查询分类属性与渠道属性的比较关系
+export function queryCategoryAttrCompare(query){
+  return request({
+    url:'/pimCategoryMapping/queryCategoryAttrCompare',
+    method:'get',
+    params: query
+  })
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// 创建分类
+export function createCategory(data) {
+  return request({
+    url:   '/pimCategory/save',
+    method: 'post',
+    data
+  })
+}
+// 更新属性信息
+export function updateCategory(data) {
+  return request({
+    url:   '/pimCategory/update',
+    method: 'PUT',
+    data
+  })
+}
+// 删除目录
+export function deleteCategory(id) {
+  return request({
+    url:   '/pimCategory/delete',
+    method: 'delete',
+    params: { id: id }
+  })
+}
+
+
+// 自动绑定
+export function autoBind(data) {
+	return request({
+    url:   '/pimCategory/autoBindCsc',
+    method: 'GET',
+    params: data
+ })
+}
+
+//获取跟目录
+export function getRootCategory(){
+	return request({
+	  url:   '/pimCategory/getRootCategory',
+	  method: 'get'
+	})
+}
+//叶子节点
+export function getLeafCategory(categoryId){
+	return request({
+    url:   '/pimCategory/getLeafCategory',
+    method: 'post',
+    params: { categoryId: categoryId }
+ })
+}
+
+
+
+
+
+
+
+
+
+
+
+

+ 77 - 0
src/api/category/categoryAttr.js

@@ -0,0 +1,77 @@
+import request from '@/utils/requestPIM'
+//分类属性
+
+//查询模块化属性 - 标准渠道属性 与 模块化的关系
+export function queryModularityPropList(param){
+  return request({
+    url:'/pimCategory/propModularityList',
+    method:'get',
+    params:param
+  });
+}
+
+//属性模块化
+export function modularityProp(param){
+  return request({
+    url:'/pimCategory/propModularity',
+    method:'get',
+    params:param
+  })
+}
+
+//按照模块查看标准分类属性
+export function standardPropModuleAgg(param){
+  return request({
+    url:'/pimCategory/standardPropModuleAgg',
+    method:'get',
+    params:param
+  })
+}
+
+//属性的属性值
+export function standardPropOptionList(param){
+  return request({
+    url:'/pimCategory/standardPropOptionList',
+    method:'get',
+    params:param
+  })
+}
+
+//渠道属性映射成平台属性
+export function channelToPlatformProp(data){
+  return request({
+    url:'/pimCategoryAttr/channelToPlatformProp',
+    method:'put',
+    data
+  })
+}
+
+//生成尺码表
+export function channelToSizeMapping(data){
+  return request({
+    url:'/pimCategoryAttr/channelToSizeMapping',
+    method:'put',
+    data
+  })
+}
+
+//绑定销售属性
+export function bindCategorySaleAttr(data){
+  return request({
+    url:'/pimCategoryAttr/bindCategorySaleAttr',
+    method:'put',
+    data
+  })
+}
+
+
+
+
+
+
+
+
+
+
+
+

+ 33 - 0
src/api/category/categorySizeChart.js

@@ -0,0 +1,33 @@
+import request from '@/utils/requestPIM'
+//分类尺码表
+
+//查询尺码表
+export function queryCategorySizeChart(param){
+  return request({
+    url:'/pimCategorySizeChart/list',
+    method:'get',
+    params:param
+  });
+}
+
+//尺码表详情
+export function categorySizeChartTitle(sizeChartId){
+  return request({
+    url:'/pimCategorySizeChart/categorySizeChartTitle/' + sizeChartId,
+    method:'get'
+  });
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+

+ 57 - 0
src/api/category/platformAttr.js

@@ -0,0 +1,57 @@
+import request from '@/utils/requestPIM'
+//平台属性
+
+//查询平台列表
+export function queryPlatformAttrList(param){
+  return request({
+    url:'/platformAttr/list',
+    method:'get',
+    params:param
+  });
+}
+
+//商品属性->属性值
+export function queryAttrValList(param){
+  return request({
+    url:'/platformAttr/attrValList',
+    method:'get',
+    params:param
+  });
+}
+
+//所有销售属性
+export function saleAttrCombobox(){
+  return request({
+    url:'/platformAttr/saleAttrCombobox',
+    method:'get',
+  });
+}
+
+
+
+//销售属性->属性值
+export function querySaleAttrValList(param){
+  return request({
+    url:'/platformAttr/saleAttrValList',
+    method:'get',
+    params:param
+  });
+}
+
+//销售属性新建编辑
+export function saveOrUpdateSaleAttr(data){
+  return request({
+    url:'/platformAttr/saleAttrSaveOrUpdate',
+    method:'post',
+    data
+  });
+}
+
+//销售属性值新建编辑
+export function saveOrUpdateSaleAttrVal(data){
+  return request({
+    url:'/platformAttr/saleAttrValSaveOrUpdate',
+    method:'post',
+    data
+  });
+}

+ 135 - 0
src/api/category/standardChannelCategory.js

@@ -0,0 +1,135 @@
+import request from '@/utils/requestPIM'
+
+//分类树
+export function queryStandardChannelCategoryTree(query){
+  return request({
+    url:'/standardCategory/tree',
+    method:'get',
+    params:query
+  })
+}
+
+//获取叶子分类页面
+export function queryStandardChannelLeafCategory(query){
+  return request({
+    url:'/standardCategory/leafCategoryPage',
+    method:'get',
+    params:query
+  })
+}
+
+//渠道非叶子节点
+export function queryChannelParentCategory(query){
+  return request({
+    url:'/standardCategory/channelParentCategory',
+    method:'get',
+    params:query
+  })
+}
+
+
+//查询分类
+export function queryStandardChannelCategoryList(query){
+  return request({
+    url:'/standardCategory/list',
+    method:'get',
+    params: query
+  })
+}
+
+//同步标准--- schema---授权分类
+export function syncAuthCategory(data){
+  return request({
+    url:'/standardChannel/syncChannelBySyncType',
+    method:'PUT',
+    data
+  })
+}
+
+//获取授权品牌
+export function syncAuthBrand(data){
+  return request({
+    url:'/standardChannel/syncAuthBrand',
+    method:'get',
+    params:data
+  })
+}
+
+
+
+
+
+
+
+
+
+
+
+//品牌
+export function queryStandardChannelBrand(query){
+  return request({
+    url:'/standardChannel/brandList',
+    method:'get',
+    params:query
+  })
+}
+
+//根据分类Id同步子分类 -> 根据渠道父分类Id 获取 子分类
+export function syncChannelCategoryByPid(query){
+  return request({
+    url:'/standardChannel/syncChannelCategory',
+    method:'get',
+    params:query
+  })
+}
+
+//更新TM渠道分类
+export function updateTmChannelCategory(data){
+  return request({
+    url:'/standardChannel/categoryUpdate',
+    method:'put',
+    data
+  })
+}
+
+//忽略此分类
+export function ignoreStandardCategory(query){
+  return request({
+    url:'/standardCategory/ignoreStandardCategory',
+    method:'get',
+    params:query
+  })
+}
+
+
+
+
+
+
+//更新TM渠道分类 属性
+export function syncStandardChannelCategoryAttr(data){
+  return request({
+    url:'/standardChannel/standardChannelSyncAttr',
+    method:'get',
+    params:data
+  })
+}
+
+//获取渠道分类
+export function queryStandardChannelCategory(query){
+  return request({
+    url:'/standardChannel/queryStandardChannelCategory',
+    method:'get',
+    params:query
+  })
+}
+
+
+
+
+
+
+
+
+
+

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

@@ -0,0 +1,58 @@
+import request from '@/utils/requestPIM'
+
+
+//查询渠道分类属性
+export function queryPropList(query){
+  return request({
+    url:'/standardCategoryProp/list',
+    method:'get',
+    params:query
+  });
+}
+
+//查询渠道属性 - 用于设置属性类型 (数据字典使用)
+export function standardPropComboboxPage(query){
+  return request({
+    url:'/standardCategoryProp/propComboboxPage',
+    method:'get',
+    params:query
+  });
+}
+
+//查询渠道属性内容 - 包括属性、属性值、规则
+export function standardPropDataPage(query){
+  return request({
+    url:'/standardCategoryProp/standardPropDataPage',
+    method:'get',
+    params:query
+  });
+}
+
+//属性模块化 -> 将属性按照商品属性,销售属性,图片属性,售后属性,固定属性(价格,款号)等进行标记
+export function standardPropModularity(data){
+  return request({
+    url:'/standardCategoryProp/standardPropModularity',
+    method:'PUT',
+    data
+  });
+}
+
+//属性分布的模块 的聚合
+export function standardPropModuleAgg(query){
+  return request({
+    url:'/standardCategoryProp/propModuleAgg',
+    method:'get',
+    params:query
+  });
+}
+
+//获取标准属性内容 - 更具属性类型
+export function standardPropContentByPropType(query){
+  return request({
+    url:'/standardCategoryProp/propDataByPropType',
+    method:'get',
+    params:query
+  });
+}
+
+

+ 46 - 0
src/api/category/standardChannelCategorySchema.js

@@ -0,0 +1,46 @@
+import request from '@/utils/requestPIM'
+
+
+//渠道schema分类 - 分页
+export function queryCategorySchemaPage(query){
+  return request({
+    url:"/standardCategory/schemaCategoryPage",
+    method:'get',
+    params:query
+  });
+}
+export function queryCategorySchemaTree(query){
+  return request({
+    url:"/standardCategory/schemaCategoryTree",
+    method:'get',
+    params:query
+  });
+}
+
+
+//渠道schema combobox
+export function querySchemaCategoryCombobox(query){
+  return request({
+    url:"/standardCategory/schemaCategoryCombobox",
+    method:'get',
+    params:query
+  });
+}
+
+//查询渠道分类属性schema
+export function querySchemaPropList(data){
+  return request({
+    url:'/standardCategoryProp/schemaPropList',
+    method:'put',
+    data
+  });
+}
+
+//解析分类schema -
+export function parseCategorySchema(data){
+  return request({
+    url:"/standardChannel/parseSchema",
+    method:'put',
+    data
+  });
+}

+ 44 - 0
src/api/channel/channel.js

@@ -0,0 +1,44 @@
+import request from '@/utils/requestPIM'
+
+// 查询渠道列表  只有管理员才有权限查看
+export function fetchList(query) {
+  return request({
+    url:  '/pimChannel/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getChannelById(id) {
+  return request({
+    url:  '/pimChannel/info/'+ id,
+    method: 'get',
+  })
+}
+
+
+export function saveOrUpdateChannel(data){
+	return request({
+    url:  '/pimChannel/saveOrUpdate',
+    method: 'post',
+    data
+  })
+}
+
+export function queryCCLList(query){
+	//获取 渠道目录标签 channel category label 列表
+	return request({
+    url:  '/pimChannel/listByOrg',
+    method: 'get',
+    params: query
+  })
+}
+
+export function channelCombobox(query){
+  return request({
+    url:"/pimChannel/combobox",
+    method:"get",
+    params:query
+  });
+}
+

+ 42 - 0
src/api/channel/channelAuth.js

@@ -0,0 +1,42 @@
+import request from '@/utils/requestPIM'
+
+// 查询渠道列表  只有管理员才有权限查看
+export function channelAuthList(query) {
+  return request({
+    url:  '/pimChannelAuth/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function authChannel(data){
+	return request({
+    url:  '/pimChannelAuth/authChannel',
+    method: 'post',
+    data
+  })
+}
+
+export function queryAuthChannel(){
+  return request({
+    url:  '/pimChannelAuth/queryAuthChannel' ,
+    method: 'get',
+  })
+}
+
+export function channelAuthDetail(query){
+  return request({
+    url:  '/pimChannelAuth/queryChannelAuthDetail',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function saveChannelAuthDetail(data){
+  return request({
+    url:  '/pimChannelAuth/saveChannelAuthDetail',
+    method: 'PUT',
+    data
+  })
+}

+ 7 - 0
src/api/channel/channelConst.js

@@ -0,0 +1,7 @@
+export const channelCodeCons = {
+  "tm":{key:'TM',name:'天猫'},
+  "tb":{key:'TB',name:'淘宝'},
+  "jd":{key:'JD',name:'京东'},
+  "dy":{key:'DY',name:"抖音"}
+};
+

+ 92 - 0
src/api/channel/channelStore.js

@@ -0,0 +1,92 @@
+import request from '@/utils/requestPIM'
+
+//店铺列表
+export function queryChannelStoreList(query) {
+  return request({
+    url:  '/pimChannelStore/list',
+    method: 'get',
+    params: query
+  })
+}
+// 创建店铺
+export function createOrUpdateStore(data) {
+  return request({
+    url:  '/pimChannelStore/saveOrUpdateStore',
+    method: 'post',
+    data
+  })
+}
+
+//获取渠道店铺详情
+export function getStoreById(id) {
+  return request({
+    url:  '/pimChannelStore/info/'+ id,
+    method: 'get',
+  })
+}
+
+//获取店铺combobox - 用于选择框
+export function queryChannelStoreCombobox(query) {
+  return request({
+    url: '/pimChannelStore/combobox',
+    method: 'get',
+    params: query
+  });
+}
+
+//获取同步顶级分类|渠道的店铺
+export function storeListToAuthCateBrand(query){
+  return request({
+    url: '/pimChannelStore/storeListToAuthCateBrand',
+    method: 'get',
+    params:query
+  });
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+export function updateStore(data){
+	return request({
+    url:  '/pimChannelStore/update',
+    method: 'post',
+    data
+  })
+}
+
+
+
+
+export function storeApiList(query){
+	return request({
+    url:  '/pimStoreApi/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function saveOrUpdateAPI(data){
+	return request({
+    url:  '/pimStoreApi/saveOrUpdate',
+    method: 'post',
+    data
+  })
+}
+
+//获取店铺信息
+export function getStoreByChannel(data) {
+  return request({
+    url:  '/pimStore/getStoreByChannel',
+    method: 'post',
+    data
+  })
+}

+ 10 - 0
src/api/channel/standardChannel.js

@@ -0,0 +1,10 @@
+import request from '@/utils/requestPIM'
+
+//标准渠道处理状态
+export function queryStandardChannelProcessStatus(query){
+  return request({
+    url:'/standardChannel/processStatusByScope',
+    method:'get',
+    params:query
+  })
+}

+ 152 - 0
src/api/channelStore.js

@@ -0,0 +1,152 @@
+import request from '@/utils/requestPIM'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+export function queryCSCList(query) {
+  return request({
+    url: '/pimChannelStoreCategory/list',
+    method: 'get',
+    params: query
+  });
+}
+
+export function getChannelAttr(query) {
+  return request({
+    url: '/pimChannelStoreCategory/getChannelAttr',
+    method:'get',
+    params: query
+  })
+}
+
+//获取指定目录下的子目录 -- 同时获取已选中的数据
+export function queryCSCbyParentId(query) {
+  return request({
+    url: '/pimChannelStoreCategory/byParentId',
+    method: 'get',
+    params: query
+  });
+}
+
+//获取组织下有效渠道店铺
+export function queryChannelStoreUsage(query) {
+  return request({
+    url: '/pimChannelStoreCategory/channelStoreUsage',
+    method: 'get',
+    params: query
+  });
+}
+
+
+
+
+//查询指定渠道目录的指定属性下的属性值
+export function getChannelAttrVal(query){
+  return request({
+    url: '/pimChannelStoreCategory/getChannelAttrVal',
+    method: 'get',
+    params: query
+  })
+}
+
+export function resolveChannelCategory(query){
+  return request({
+    url:  '/pimChannelStoreCategory/resolveChannelCategory',
+    method: 'get',
+    params: query
+  })
+}
+
+export function resolveAllChannelCategory(query){
+  return request({
+    url: '/pimChannelStoreCategory/resolveAllChannelCategory',
+    method: 'get',
+    params: query
+  })
+}
+
+export function searchBindAttrs(query){
+  return request({
+    url: '/pimChannelStoreCategory/searchBindAttrs',
+    method: 'get',
+    params: query
+  })
+}
+
+export function searchBindAttrVals(query){
+  return request({
+    url: '/pimChannelStoreCategory/searchBindAttrVals',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function bindChannelAttr(data){
+  return request({
+    url: '/pimChannelStoreCategory/bindChannelAttr',
+    method: 'post',
+    data
+  })
+}
+
+
+export function bindChannelAttrVal(data){
+  return request({
+    url: '/pimChannelStoreCategory/bindChannelAttrVal',
+    method: 'post',
+    data
+  })
+}
+
+
+
+export function fetchList(query){
+  return request({
+    url: '/pimChannelStoreCategory/byParentId',
+    method: 'get',
+    params: query
+  })
+}
+
+export function updateChannelCategory(param) {
+  return request({
+    url: "/pimChannelStoreCategory/updateChannelCategory",
+    method: 'get',
+    params:param
+  })
+}
+
+/**
+ * 同步所有渠道目录根目录
+ * @param param
+ * @returns {AxiosPromise}
+ */
+export function syncAllRootChannelCategory(param) {
+  return request({
+    url: "/pimChannelStoreCategory/syncAllRootChannelCategory",
+    method: 'get',
+    params:param
+  })
+}
+
+

+ 8 - 0
src/api/chart.js

@@ -0,0 +1,8 @@
+import request from '@/utils/requestPIM'
+
+export function getChartList() {
+    return request({
+      url: '/pimChart/getCharts',
+      method: 'get',
+    })
+}

+ 32 - 0
src/api/common.js

@@ -0,0 +1,32 @@
+import request from '@/utils/request'
+
+/**----------------------商品 笛卡尔积-----------------------------**/
+
+export function circulate(query){
+
+}
+
+function getBase64Image(imgReader){
+	var canvas = document.createElement("canvas");
+  canvas.width = img.width;
+  canvas.height = img.height;
+  var ctx = canvas.getContext("2d");
+  ctx.drawImage(img, 0, 0, img.width, img.height);
+  var ext = img.src.substring(img.src.lastIndexOf(".")+1).toLowerCase();
+  var dataURL = canvas.toDataURL("image/"+ext);
+  return dataURL;
+}
+
+export function getBase64Image(imgUrl,base64Data) {
+
+	let reader = new Image();
+  reader.src = imgUrl;
+  //防止跨域
+  reader.crossOrigin = "*";
+  // 将图片将转成 base64 格式
+  reader.onload =()=>{
+    base64Data = getBase64Image(reader);
+  }
+}
+
+

+ 32 - 0
src/api/config/ossConf.js

@@ -0,0 +1,32 @@
+import request from '@/utils/requestPIM'
+
+export function getOssChannel(param) {
+  return request({
+    url: '/ossChannel/info',
+    method: 'get',
+    params:param
+  })
+}
+
+export function saveOssChannel(data) {
+  return request({
+    url:'/ossChannel/save',
+    method: 'post',
+    data
+  })
+}
+export function updateOssChannel(data) {
+  return request({
+    url:'/ossChannel/update',
+    method: 'post',
+    data
+  })
+}
+export function activeOss(data) {
+  return request({
+    url:'/ossChannel/activeOss',
+    method: 'post',
+    data
+  })
+}
+

+ 151 - 0
src/api/config/watermark.js

@@ -0,0 +1,151 @@
+import request from '@/utils/requestPIM'
+
+export function fetchList(query) {
+  return request({
+    url:  '/pimWatermarkImg/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function fetchCustomList(query) {
+  return request({
+    url:   '/pimWatermarkRule/customelist',
+    method: 'get',
+    params: query
+  })
+}
+
+export function updateWaterImg(query) {
+  return request({
+    url:  '/pimWatermarkImg/updateOrCreate',
+    method: 'post',
+    params: query
+  })
+}
+export function deleteWaterImg(query) {
+  return request({
+    url:  '/pimWatermarkImg/delete',
+    method: 'post',
+    params: query
+  })
+}
+
+/**
+ * 查询水印规则
+ * @param query
+ */
+export function getRuleList(query) {
+  return request({
+    url:  '/pimWatermarkRule/list',
+    method: 'post',
+    params: query
+  })
+}
+
+/**
+ * 获取渠道列表
+ * @param query
+ */
+export function getChannelList(query) {
+  return request({
+    url:  '/pimWatermarkRule/channel_list',
+    method: 'post',
+    params: query
+  })
+}
+/*
+创建水印规则
+ */
+export function createWaterMarkRule(data) {
+  return request({
+    url:  '/pimWatermarkRule/save',
+    method: 'post',
+    data
+  })
+}
+
+/*
+更新水印规则
+ */
+export function updateWaterMarkRule(data) {
+  return request({
+    url:  '/pimWatermarkRule/update',
+    method: 'post',
+    data
+  })
+}
+
+/*
+更新水印规则
+ */
+export function getWaterMarkRule(id) {
+  return request({
+    url:  '/pimWatermarkRule/info/' + id,
+    method: 'get'
+  })
+}
+
+/*
+删除水印规则
+ */
+export function deleteWaterMarkRule(id) {
+  return request({
+    url:  '/pimWatermarkRule/delete',
+    method: 'post',
+    params: { id: id }
+  })
+}
+
+/*
+创建水印规则组
+ */
+export function createWaterMarkRuleGroup(data) {
+  return request({
+    url:  '/pimWatermarkRuleGroup/save',
+    method: 'post',
+    data
+  })
+}
+
+/*
+更新水印规则组
+ */
+export function updateWaterMarkRuleGroup(data) {
+  return request({
+    url:  '/pimWatermarkRuleGroup/update',
+    method: 'post',
+    data
+  })
+}
+
+// 删除水印组
+export function deleteWaterMarkRuleGroup(id) {
+  return request({
+    url:  '/pimWatermarkRuleGroup/delete',
+    method: 'delete',
+    params: { id: id }
+  })
+}
+
+/*
+更新水印规则组
+ */
+export function updateWaterGroupStatus(id, active) {
+  return request({
+    url:  '/pimWatermarkRuleGroup/updateStatus',
+    method: 'put',
+    params: { id: id, active: active }
+  })
+}
+
+/*
+更新水印规则组
+ */
+export function updateWaterMarkRuleStatus(id, active) {
+  return request({
+    url:  '/pimWatermarkRule/updateStatus',
+    method: 'put',
+    params: { id: id, active: active }
+  })
+}

+ 3 - 0
src/api/cscCategoryRel.js

@@ -0,0 +1,3 @@
+import request from '@/utils/request'
+
+

+ 27 - 0
src/api/distributionChannelAuth.js

@@ -0,0 +1,27 @@
+import request from '@/utils/requestPIM'
+/**
+ * 授权渠道
+ */
+
+/**
+ * 获取授权的三方渠道
+ */
+export function queryDistributionChannelAuthList(query){
+
+	return request({
+    url:  '/pimDistributionChannelAuth/list',
+    method: 'get',
+    params: query
+  })
+}
+
+/**
+ * 根据组织id获取授权渠道code
+ */
+export function listByOrgId(){
+  return request({
+    url:  '/pimDistributionChannelAuth/listByOrgId',
+    method: 'get',
+  })
+}
+

+ 46 - 0
src/api/dropWash.js

@@ -0,0 +1,46 @@
+import request from '@/utils/requestPIM'
+
+
+
+/**----------------------CURD---start--------------------------**/
+export function queryDropWashList(query) {
+  return request({
+    url:  '/pimOutR6DropWash/list',
+    method: 'get',
+    params: query
+  })
+}
+
+
+/**----------------------CURD---end--------------------------**/
+
+
+/**-------------------同步吊牌洗涤信息------------------------**/
+export function syncDropWashData(query) {
+  return request({
+    url:  '/pimOutR6DropWash/sync',
+    method: 'get',
+    params: query
+  })
+}
+
+
+/**-----------------------根据模板--生成静态页面 ---以及图片----------------------**/
+export function genHtmlImg(query){
+	return request({
+		url:  '/pimOutR6DropWash/genHtmlImg',
+		method: 'get',
+		params: query
+	})
+}
+
+
+
+export function downImg(query){
+	return request({
+		url:  '/pimOutR6DropWash/down',
+		method: 'get',
+		params: query
+	})
+}
+

+ 43 - 0
src/api/image.js

@@ -0,0 +1,43 @@
+import request from '@/utils/requestPIM'
+
+export function fetchImageList(query) {
+  return request({
+    url:  '/pimImage/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function getImageByCode(data) {
+  console.log('getImageByCode=' + data);
+  return request({
+    url:  '/pimImage/getImageByCodeAndChannel',
+    method: 'post',
+    data
+  })
+}
+
+export function delImageDes(data){
+	return request({
+    url:  '/pimImage/delete',
+    method: 'delete',
+    params:data
+  })
+}
+
+export function imageClipperUpload(data) {
+  return request({
+    url:  '/pimImage/imageClipperUpload',
+    method: 'post',
+    data
+  })
+}
+
+export function deleteDescImage(data) {
+  return request({
+    url:  '/pimImage/deleteOnMaterialPane',
+    method: 'post',
+    data
+  })
+}
+

+ 62 - 0
src/api/label.js

@@ -0,0 +1,62 @@
+import request from '@/utils/request'
+/**------------------------ 标签 ---------------------**/
+
+// 获取标签列表
+export function fetchLabelList(query) {
+  return request({
+    url: process.env.BASE_AUTH_API + '/sysOrgLabel/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 获取标签
+export function getLabelObject(labelId) {
+  return request({
+    url: process.env.BASE_AUTH_API + '/sysOrgLabel/info/'+labelId,
+    method: 'get'
+  })
+}
+
+// 创建标签
+export function createLabel(data) {
+  return request({
+    url: process.env.BASE_AUTH_API + '/sysOrgLabel/save',
+    method: 'post',
+    data
+  })
+}
+// 更新标签
+export function updateLabel(data) {
+  return request({
+    url: process.env.BASE_AUTH_API + '/sysOrgLabel/update',
+    method: 'post',
+    data
+  })
+}
+
+//获取全部的标签
+export function queryLableAll(query){
+	return request({
+		url: process.env.BASE_AUTH_API + '/sysOrgLabel/listAll',
+    method: 'get',
+    params: query
+	});
+}
+
+export function queryLabelRes(query){
+	return request({
+		url: process.env.BASE_AUTH_API + '/sysOrgLabelRel/list',
+    method: 'get',
+    params: query
+	});
+}
+// 保存标签资源
+export function saveOrgLabelRes(data){
+	return request({
+    url: process.env.BASE_AUTH_API + '/sysOrgLabelRel/save',
+    method: 'post',
+    data
+ });
+}
+

+ 10 - 0
src/api/log/loggingEvent.js

@@ -0,0 +1,10 @@
+import request from '@/utils/requestOms'
+
+// 操作日志列表
+export function fetchList(query) {
+  return request({
+    url:  '/loggingEvent/list',
+    method: 'get',
+    params: query
+  })
+}

+ 13 - 0
src/api/log/message_log.js

@@ -0,0 +1,13 @@
+import request from '@/utils/requestPIM'
+
+
+
+//列表
+export function fetchList(query) {
+  return request({
+    url: '/messageTemplateLog/list',
+    method: 'get',
+    params: query
+  })
+}
+

+ 10 - 0
src/api/log/schedulelog.js

@@ -0,0 +1,10 @@
+import requestPIM from '@/utils/requestPIM'
+
+// 获取调度列表
+export function fetchList(query) {
+  return requestPIM({
+    url: '/scheduleLog/list',
+    method: 'get',
+    params: query
+  })
+}

+ 19 - 0
src/api/log/syslog.js

@@ -0,0 +1,19 @@
+import requestPIM from '@/utils/requestPIM'
+
+// 获取任务列表
+export function fetchList(query) {
+  return requestPIM({
+    url: '/sysLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+
+export function getSysLog(id) {
+  return requestPIM({
+    url: '/sysLog/info/'+ id,
+    method: 'get'
+  })
+}
+

+ 10 - 0
src/api/log/task.js

@@ -0,0 +1,10 @@
+import requestPIM from '@/utils/requestPIM'
+
+// 获取任务列表
+export function fetchList(query) {
+  return requestPIM({
+    url: '/asyncTask/list',
+    method: 'get',
+    params: query
+  })
+}

+ 24 - 0
src/api/login.js

@@ -0,0 +1,24 @@
+import request from '@/utils/requestAuth'
+
+export function login(data) {
+  return request({
+    url:'/login',
+    method: 'post',
+    data
+  })
+}
+
+export function getInfo(query) {
+  return request({
+    url: '/sysOrgUser/currentInfo',
+    method: 'get',
+    params:query
+  })
+}
+
+export function logout() {
+  return request({
+    url: '/sysLogout',
+    method: 'get'
+  })
+}

+ 56 - 0
src/api/material.js

@@ -0,0 +1,56 @@
+import request from '@/utils/requestPIM'
+
+export const channelCodeMap={
+  "TM":"天猫",
+  "YGH":"员购会",
+  "EMM":"微商城",
+};
+export function getImageByCode(data) {
+  console.log('getImageByCode=' + data);
+  return request({
+    url: '/pimCatentryMaterial/byCodeAndChannel',
+    method: 'get',
+    params:data
+  })
+}
+
+export function getMainImage(query){
+	return request({
+    url: '/pimCatentryMaterial/getMainImage',
+    method: 'get',
+    params:query
+  })
+}
+
+export function save(data){
+	return request({
+    url: '/pimCatentryMaterial/save',
+    method: 'post',
+    data
+  })
+
+}
+//裁剪上传
+export function clipUpload(data){
+	return request({
+    url: '/pimCatentryMaterial/clipUpdate',
+    method: 'post',
+    data
+ 	});
+}
+//删除指定图片
+export function deleteImage(data){
+  return request({
+    url:'/pimCatentryMaterial/delete',
+    method: 'post',
+    data
+  })
+}
+//上传图片
+export function uploadMaterial(data){
+  return request({
+    url:'/pimCatentryMaterial/upload',
+    method: 'post',
+    data
+  })
+}

+ 41 - 0
src/api/model.js

@@ -0,0 +1,41 @@
+import request from '@/utils/requestPIM'
+
+export function fetchList(query){
+	return request({
+	    url:  '/pimModelBasic/list',
+	    method: 'get',
+	    params: query
+    })
+}
+
+export function queryObject(id){
+	return request({
+	    url:  '/pimModelBasic/info/'+id,
+	    method: 'get',
+	    params: id
+    })
+}
+
+export function createModel(data){
+	return request({
+	    url:  '/pimModelBasic/save',
+	    method: 'post',
+	    data
+    })
+}
+
+export function updateModel(data) {
+	return request({
+	    url:  '/pimModelBasic/update',
+	    method: 'put',
+	    data
+    })
+}
+
+export function deleteModel(id) {
+	return request({
+	    url:  '/pimModelBasic/delete',
+	    method: 'delete',
+	    params: {modelId: id }
+    })
+}

+ 63 - 0
src/api/notice.js

@@ -0,0 +1,63 @@
+import request from '@/utils/request'
+
+//列表
+export function getLastestNotice(query){
+  return request({
+    url:process.env.BASE_CMS_API+"/notice/getLastestNotice",
+    method:'get',
+    params:query
+  })
+ }
+//列表
+export function getList(query){
+  return request({
+    url:process.env.BASE_CMS_API+"/notice/list",
+    method:'get',
+    params:query
+  })
+}
+//展示列表
+export function viewList(query,apiUrl){
+  return request({
+    url:process.env.BASE_CMS_API+apiUrl,
+    method:'get',
+    params:query
+  })
+}
+
+// 新增
+export function createNotice(data) {
+  return request({
+    url: process.env.BASE_CMS_API + '/notice/save',
+    method: 'post',
+    data: data
+  })
+}
+
+// 通过ID查询
+export function getInfo(id) {
+  return request({
+    url: process.env.BASE_CMS_API + '/notice/info/' + id,
+    method: 'get'
+  })
+}
+
+// 更新
+export function updateNotice(data) {
+  return request({
+    url: process.env.BASE_CMS_API + '/notice/update',
+    method: 'PUT',
+    data: data
+  })
+ }
+
+// 删除
+export function deleteNotice(data) {
+  return request({
+    url: process.env.BASE_CMS_API + '/notice/delete',
+    method: 'delete',
+    params: data
+  })
+}
+
+

+ 68 - 0
src/api/oms/bagProduct.js

@@ -0,0 +1,68 @@
+import request from '@/utils/requestOms'
+
+export function fetchList(query) {
+  return request({
+    // url:  '/tReturnOrders/list',
+    url:  '/bagProduct/list',
+    method: 'get',
+    params: query
+  })
+}
+export function getAllSkuList(query) {
+  return request({
+    // url:  '/tReturnOrders/list',
+    url:  '/bagProduct/getAllSkuList',
+    method: 'get',
+    params: query
+  })
+}
+export function createData(data){
+  //保存商品
+  return request({
+    url:  '/bagProduct/save',
+    method: 'post',
+    data: data
+  });
+}
+export function queryBag(catentryId){
+  //获取商品详情 - 预览
+  return request({
+    url:  '/bagProduct/queryBag/'+catentryId,
+    method: 'get'
+  })
+}
+export function updateData(data){
+  //保存商品
+  return request({
+    url:  '/bagProduct/update',
+    method: 'post',
+    data: data
+  });
+}
+export function changeProduct(data){
+  //保存商品
+  return request({
+    url:  '/bagProduct/changeStatus',
+    method: 'post',
+    data: data
+  });
+}
+export function queryBagOperationLog(data){
+  //保存商品
+  return request({
+    url:  '/bagOperationLog/list',
+    method: 'get',
+    params: data
+  });
+}
+
+export function queryBagOperationLogDetil(data){
+  //保存商品
+  return request({
+    url:  '/bagOperationLogDetail/list',
+    method: 'get',
+    params: data
+  });
+}
+
+

+ 43 - 0
src/api/oms/basicConfig/addressAreas.js

@@ -0,0 +1,43 @@
+import request from '@/utils/requestOms'
+
+export function queryUnboundCountry(id){
+  return request({
+    url:  '/addressAreas/queryUnboundCountry',
+    method: 'get',
+    params: {id:id}
+  });
+}
+
+// 列表
+export function fetchList(query) {
+  return request({
+    url: "/addressAreas/list",
+    method: "get",
+    params: query
+  });
+}
+
+// 详情
+export function getById(id) {
+  return request({
+    url: "/addressAreas/info/" + id,
+    method: "get"
+  });
+}
+
+// 保存
+export function save(data) {
+  return request({
+    url: "/addressAreas/save",
+    method: "post",
+    data
+  });
+}
+
+export function deleteById(id){
+  return request({
+    url:  '/addressAreas/delete',
+    method: 'delete',
+    params: {id:id}
+  });
+}

+ 210 - 0
src/api/oms/basicConfig/basicConfig.js

@@ -0,0 +1,210 @@
+import request from "@/utils/requestOms";
+
+export function fetchList(query) {
+  return request({
+    url: "/channel/list",
+    method: "get",
+    params: query
+  });
+}
+
+//更新修改渠道
+export function editChannel(data){
+  return request({
+    url: '/channel/editChannel',
+    method: 'post',
+    data
+  });
+}
+
+export function deleteChannelById(id) {
+  return request({
+    url: '/channel/delete',
+    method: 'delete',
+    params: {id:id}
+  });
+}
+
+export function storeList(query) {
+  return request({
+    url: "/channelStore/list",
+    method: "get",
+    params: query
+  });
+}
+
+export function editStore(data) {
+  return request({
+    url: '/channelStore/editStore',
+    method: 'post',
+    data
+  });
+}
+
+export function deleteStoreById(id) {
+  return request({
+    url: '/channelStore/delete',
+    method: 'delete',
+    params: {id:id}
+  });
+}
+
+export function countryList(query) {
+  return request({
+    url: "/country/list",
+    method: "get",
+    params: query
+  });
+}
+
+export function editCountry(data) {
+  return request({
+    url: '/country/editCountry',
+    method: 'post',
+    data
+  });
+}
+
+export function deleteCountryById(id) {
+  return request({
+    url: '/country/delete',
+    method: 'delete',
+    params: {id:id}
+  });
+}
+
+export function productList(query) {
+  return request({
+    url: "/orderSourceRulePriorProduct/list",
+    method: "get",
+    params: query
+  });
+}
+
+export function deleteProductById(id) {
+  return request({
+    url: '/orderSourceRulePriorProduct/delete',
+    method: 'delete',
+    params: {id:id}
+  });
+}
+
+//店铺寻源规则绑定
+export function storeOrderRuleList(query) {
+  return request({
+    url: "/storeOrderRule/list",
+    method: "get",
+    params: query
+  });
+}
+
+export function editStoreRule(data) {
+  return request({
+    url: '/storeOrderRule/editRule',
+    method: 'post',
+    data
+  });
+}
+
+export function deleteStoreRuleById(id) {
+  return request({
+    url: '/storeOrderRule/delete',
+    method: 'delete',
+    params: {id:id}
+  });
+}
+
+//查询物流规则渠道数据
+export function logisticsList(query) {
+  return request({
+    url: "/logisticsMatchingRule/list",
+    method: "get",
+    params: query
+  });
+}
+
+export function saveLogistics(data) {
+  return request({
+    url: "/logisticsMatchingRule/save",
+    method: "post",
+    data
+  });
+}
+
+export function getLogisticsById(id) {
+  return request({
+    url: "/logisticsMatchingRule/info/" + id,
+    method: "get"
+  });
+}
+
+export function deleteLogisticsById(id){
+  return request({
+    url:  '/logisticsMatchingRule/delete',
+    method: 'delete',
+    params: {id:id}
+  });
+}
+
+export function logisticsDetailSave(data) {
+  return request({
+    url: "/logisticsMatchingRuleDetails/save",
+    method: "post",
+    data
+  });
+}
+
+export function logisticsDetailList(query) {
+  return request({
+    url: "/logisticsMatchingRuleDetails/list",
+    method: "get",
+    params: query
+  });
+}
+
+export function logisticsDetailDelete(id){
+  return request({
+    url:  '/logisticsMatchingRuleDetails/delete',
+    method: 'delete',
+    params: {id:id}
+  });
+}
+
+export function logisticsCompanyList(query) {
+  return request({
+    url: "/logisticsCompany/list",
+    method: "get",
+    params: query
+  });
+}
+
+export function editLogisticsCompany(data) {
+  return request({
+    url: "/logisticsCompany/save",
+    method: "post",
+    data
+  });
+}
+
+export function getLogisticsCompanyById(id) {
+  return request({
+    url: "/logisticsCompany/info/" + id,
+    method: "get"
+  });
+}
+
+export function deleteLogisticsCompanyById(id){
+  return request({
+    url:  '/logisticsCompany/delete',
+    method: 'delete',
+    params: {id:id}
+  });
+}
+
+export function getLogisticsCompany(query) {
+  return request({
+    url: "/logisticsCompany/list",
+    method: "get",
+    params: query
+  });
+}

+ 19 - 0
src/api/oms/basicConfig/inventoryProtectingDetail.js

@@ -0,0 +1,19 @@
+import request from '@/utils/requestOms'
+
+export function deleteById(id){
+  return request({
+    url:  '/inventoryProtectingDetail/delete',
+    method: 'delete',
+    params: {id:id}
+  });
+}
+
+// 列表
+export function fetchList(query) {
+  return request({
+    url:  '/inventoryProtectingDetail/list',
+    method: 'get',
+    params: query
+  })
+}
+

+ 84 - 0
src/api/oms/basicConfig/orderSourceRule.js

@@ -0,0 +1,84 @@
+import request from '@/utils/requestOms'
+
+export function detailDelete(id){
+  return request({
+    url:  '/orderSourceRuleDetail/delete',
+    method: 'delete',
+    params: {id:id}
+  });
+}
+
+// 保存
+export function detailSave(data) {
+  return request({
+    url: "/orderSourceRuleDetail/save",
+    method: "post",
+    data
+  });
+}
+
+// 列表
+export function detailList(query) {
+  return request({
+    url: "/orderSourceRuleDetail/list",
+    method: "get",
+    params: query
+  });
+}
+
+// 列表
+export function fetchList(query) {
+  return request({
+    url: "/orderSourceRule/list",
+    method: "get",
+    params: query
+  });
+}
+
+// 详情
+export function getById(id) {
+  return request({
+    url: "/orderSourceRule/info/" + id,
+    method: "get"
+  });
+}
+
+// 保存
+export function save(data) {
+  return request({
+    url: "/orderSourceRule/save",
+    method: "post",
+    data
+  });
+}
+
+export function deleteById(id){
+  return request({
+    url:  '/orderSourceRule/delete',
+    method: 'delete',
+    params: {id:id}
+  });
+}
+
+export function getLogisticsRule(id) {
+  return request({
+    url: "/sourceLogisticsRelation/logisticsInfo/" + id,
+    method: "get"
+  });
+}
+
+export function saveLogisticsRule(data) {
+  return request({
+    url: "/sourceLogisticsRelation/saveLogisticsRule",
+    method: "post",
+    data
+  });
+}
+
+export function deleteRelationByDetailId(id){
+  return request({
+    url:  '/sourceLogisticsRelation/deleteRelationByDetailId',
+    method: 'delete',
+    params: {detailId:id}
+  });
+}

+ 32 - 0
src/api/oms/copy.js

@@ -0,0 +1,32 @@
+import Vue from 'vue'
+import Clipboard from 'clipboard'
+
+function clipboardSuccess() {
+  Vue.prototype.$message({
+    message: '复制成功',
+    type: 'success',
+    duration: 1500
+  })
+}
+
+function clipboardError() {
+  Vue.prototype.$message({
+    message: '复制失败',
+    type: 'error'
+  })
+}
+
+export function handleClipboard(text, event) {
+  const clipboard = new Clipboard(event.target, {
+    text: () => text
+  });
+  clipboard.on('success', () => {
+    clipboardSuccess();
+    clipboard.destroy()
+  });
+  clipboard.on('error', () => {
+    clipboardError();
+    clipboard.destroy()
+  });
+  clipboard.onClick(event)
+}

+ 11 - 0
src/api/oms/inventory/category.js

@@ -0,0 +1,11 @@
+import request from '@/utils/requestOms'
+
+//获取分类树形结构
+export function categoryTree(query){
+  return request({
+    url:   '/pimCategory/tree',
+    method: 'get',
+    params: query
+  })
+}
+

+ 83 - 0
src/api/oms/inventory/childInventory.js

@@ -0,0 +1,83 @@
+import request from '@/utils/requestOms'
+
+// 列表
+export function childInventoryList(query) {
+  return request({
+    url:  '/childInventory/listInventory',
+    method: 'get',
+    params: query
+  })
+}
+
+//更新修改退货仓库信息
+export function editReturnWarehouse(data){
+  return request({
+    url:  '/warehouse/editReturnWarehouse',
+    method: 'post',
+    data
+  });
+}
+
+//更新修改仓库信息
+export function editWarehouse(data){
+  return request({
+    url:  '/warehouse/editWarehouse',
+    method: 'post',
+    data
+  });
+}
+//获取仓库信息
+export function getWarehouseList(query) {
+  return request({
+    url:  '/warehouse/getWarehouse',
+    method: 'get',
+    params: query
+  })
+}
+
+// 获取店铺
+export function getStoreList(query) {
+  return request({
+    url:  '/warehouse/getStore',
+    method: 'get',
+    params: query
+  })
+}
+
+//获取国家
+export function getCounrtyList(query) {
+  return request({
+    url:  '/warehouse/getCountry',
+    method: 'get',
+    params: query
+  })
+}
+//获取国家编码
+export function getCounrtyCodeList(query) {
+  return request({
+    url:  '/warehouse/getCountryCode',
+    method: 'get',
+    params: query
+  })
+}
+export function getById(id) {
+  return request({
+    url:  '/warehouse/info/'+id,
+    method: 'get',
+  })
+}
+
+export function save(data){
+  return request({
+    url:  '/warehouse/save',
+    method: 'post',
+    data: data
+  });
+}
+export function editStatus(query){
+  return request({
+    url:  '/warehouse/editStatus',
+    method: 'get',
+    params: query
+  });
+}

+ 32 - 0
src/api/oms/inventory/childWarehoue.js

@@ -0,0 +1,32 @@
+import request from '@/utils/requestOms'
+
+// 列表
+export function childWarehouseList(query) {
+  return request({
+    url:  '/childWarehouse/list',
+    method: 'get',
+    params: query
+  })
+}
+
+//更新修改退货仓库信息
+export function editReturnWarehouse(data){
+  return request({
+    url:  '/childWarehouse/editReturnWarehouse',
+    method: 'post',
+    data
+  });
+}
+export function childWarehouseGetById(id) {
+  return request({
+    url:  '/childWarehouse/info/'+id,
+    method: 'get',
+  })
+}
+export function childEditStatus(query){
+  return request({
+    url:  '/childWarehouse/update',
+    method: 'put',
+    data: query
+  });
+}

+ 159 - 0
src/api/oms/inventory/inventory.js

@@ -0,0 +1,159 @@
+import request from '@/utils/requestOms'
+
+const warehouseTypeOptions = [
+  { key: 10, display_name: "歌莉娅WMS" },
+  { key: 20, display_name: "国内电商仓" },
+  { key: 30, display_name: "国内海外仓" },
+  { key: 40, display_name: "海外门店" },
+  { key: 50, display_name: "顺丰仓" },
+  { key: 60, display_name: "数据仓" }
+];
+export const warehouseTypeValue = warehouseTypeOptions.reduce((acc, cur) => {
+  acc[cur.key] = cur.display_name;
+  return acc;
+}, {});
+
+// 列表
+export function fetchList(query) {
+  return request({
+    url:  '/inventory/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function fetchVirtualList(query) {
+  return request({
+    url:  '/virtualInventory/list',
+    method: 'get',
+    params: query
+  })
+}
+
+//根据skuId获取可卖库存
+export function getAvailableAmountBySkuId(query) {
+  return request({
+    url:  '/tInventory/getAvailableAmountBySkuId',
+    method: 'get',
+    params: query
+  })
+}
+
+//手动推送
+export function manualPush(query) {
+  return request({
+    url:  '/tInventory/manualPush',
+    method: 'get',
+    params: query
+  })
+}
+
+//立即重算
+export function manualRecalculate(query) {
+  return request({
+    url:  '/tInventory/manualRecalculate',
+    method: 'get',
+    params: query
+  })
+}
+
+//查询仓库列表
+export function getWarehouseList(query) {
+  return request({
+    url:  '/warehouse/list',
+    method: 'get',
+    params: query
+  })
+}
+
+//立即推送
+export function pushToShopify(query) {
+  return request({
+    url:  '/virtualInventory/pushToShopify',
+    method: 'get',
+    params: query
+  })
+}
+//状态代码
+const statusOptions = [
+  { key: '0', display_name: '未启用' },
+  { key: '1', display_name: '已启用' }
+]
+//转换状态代码方法
+export const statusKeyValue = statusOptions.reduce((acc, cur) => {
+  acc[cur.key] = cur.display_name
+  return acc
+}, {})
+
+//查询列表
+export function alertList(query) {
+  return request({
+    url:  '/inventoryAlert/list',
+    method: 'get',
+    params: query
+  })
+}
+//修改状态
+export function updateStatus(query) {
+  return request({
+    url:  '/inventoryAlert/updateStatue',
+    method: 'put',
+    data: query
+  })
+}
+
+//更新内容
+export function update(query) {
+  return request({
+    url:  '/inventoryAlert/update',
+    method: 'put',
+    data: query
+  })
+}
+//删除
+export function deleteDate(id) {
+  return request({
+    url:  '/inventoryAlert/delete',
+    method: 'DELETE',
+    params: { id: id }
+  })
+}
+//商店名称
+export function queryStoreName(query) {
+  return request({
+    url:  '/inventoryAlert/queryStore',
+    method: 'GET',
+    data: query
+  })
+}
+export function queryChannelStore(query) {
+  return request({
+    url:  '/channelStore/queryChannelStore',
+    method: 'get',
+    params: query
+  })
+}
+
+export function queryChannel(query) {
+  return request({
+    url:  '/channel/queryChannel',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询库存预警结果表
+export function queryAlertResultList(query) {
+  return request({
+    url:  '/inventoryAlertResults/queryPartNumberList',
+    method: 'get',
+    params: query
+  })
+}
+export function queryAlertResultSkuList(query) {
+  return request({
+    url:  '/inventoryAlertResults/queryPartSkuList',
+    method: 'get',
+    params: query
+  })
+}

+ 35 - 0
src/api/oms/inventory/inventoryDistribute.js

@@ -0,0 +1,35 @@
+import request from '@/utils/requestOms'
+
+//商品解除独享库存
+export function productReleaseExclusive(query) {
+  return request({
+    url:  '/tInventory/productReleaseExclusive',
+    method: 'get',
+    params: query
+  })
+}
+
+//sku解除独享库存
+export function releaseExclusive(query) {
+  return request({
+    url:  '/tInventory/releaseExclusive',
+    method: 'get',
+    params: query
+  })
+}
+
+export function saveInventoryDistribute(data){
+  return request({
+    url:  '/tInventory/saveInventoryDistribute',
+    method: 'post',
+    data: data
+  });
+}
+
+export function getInventoryDistribute(data){
+  return request({
+    url:  '/tInventory/getInventoryDistribute',
+    method: 'post',
+    data: data
+  });
+}

+ 10 - 0
src/api/oms/inventory/logisticsCompany.js

@@ -0,0 +1,10 @@
+import request from '@/utils/requestOms'
+
+// 列表
+export function fetchList(query) {
+  return request({
+    url:  '/logisticsCompany/list',
+    method: 'get',
+    params: query
+  })
+}

+ 9 - 0
src/api/oms/inventory/product.js

@@ -0,0 +1,9 @@
+import request from '@/utils/requestOms'
+
+export function fetchList(query) {
+  return request({
+    url:  '/pimCatentry/list',
+    method: 'get',
+    params: query
+  })
+}

+ 31 - 0
src/api/oms/inventory/refundReason.js

@@ -0,0 +1,31 @@
+import request from "@/utils/requestOms";
+
+export function fetchList(query) {
+  return request({
+    url:  '/refundReason/list',
+    method: 'get',
+    params: query
+  })
+}
+export function editReason(query) {
+  return request({
+    url:  '/refundReason/save',
+    method: 'post',
+    data: query
+  })
+}
+
+export function update(query) {
+  return request({
+    url:  '/refundReason/update',
+    method: 'put',
+    data: query
+  })
+}
+export function updateStatus(query) {
+  return request({
+    url:  '/refundReason/updateStatus',
+    method: 'put',
+    data: query
+  })
+}

+ 9 - 0
src/api/oms/inventory/sku.js

@@ -0,0 +1,9 @@
+import request from '@/utils/requestOms'
+
+export function fetchList(query) {
+  return request({
+    url: '/pimCatentrySku/list',
+    method: 'get',
+    params: query
+  })
+}

+ 9 - 0
src/api/oms/inventory/virtualInventorySendLog.js

@@ -0,0 +1,9 @@
+import request from '@/utils/requestOms'
+
+export function queryVirtualInventoryLog (query){
+  return request({
+    url:  '/tPushInventoryLog/list',
+    method: 'get',
+    params: query
+  });
+}

+ 123 - 0
src/api/oms/inventory/warehouse.js

@@ -0,0 +1,123 @@
+import request from '@/utils/requestOms'
+
+//
+export function returnWarehouseList(query) {
+  return request({
+    url:  '/warehouse/returnWarehouseList',
+    method: 'get',
+    params: query
+  })
+}
+// 列表
+export function fetchList(query) {
+  return request({
+    url:  '/warehouse/list',
+    method: 'get',
+    params: query
+  })
+}
+
+//更新修改退货仓库信息
+export function editReturnWarehouse(data){
+  return request({
+    url:  '/warehouse/editReturnWarehouse',
+    method: 'post',
+    data
+  });
+}
+
+//更新修改仓库信息
+export function editWarehouse(data){
+  return request({
+    url:  '/warehouse/editWarehouse',
+    method: 'post',
+    data
+  });
+}
+//获取仓库信息
+export function getWarehouseList(query) {
+  return request({
+    url:  '/warehouse/getWarehouse',
+    method: 'get',
+    params: query
+  })
+}
+
+// 获取店铺
+export function getStoreList(query) {
+  return request({
+    url:  '/warehouse/getStore',
+    method: 'get',
+    params: query
+  })
+}
+
+//获取国家
+export function getCounrtyList(query) {
+  return request({
+    url:  '/warehouse/getCountry',
+    method: 'get',
+    params: query
+  })
+}
+//获取国家编码
+export function getCounrtyCodeList(query) {
+  return request({
+    url:  '/warehouse/getCountryCode',
+    method: 'get',
+    params: query
+  })
+}
+export function getById(id) {
+  return request({
+    url:  '/warehouse/info/'+id,
+    method: 'get',
+  })
+}
+
+export function save(data){
+  return request({
+    url:  '/warehouse/save',
+    method: 'post',
+    data: data
+  });
+}
+export function editStatus(query){
+  return request({
+    url:  '/warehouse/editStatus',
+    method: 'get',
+    params: query
+  });
+}
+const typeOptions = [
+  	{ key: '10', display_name: '歌莉娅WMS(香港)' },
+    { key: '20', display_name: '国内电商仓(国内OMS)' },
+    { key: '30', display_name: '国内海外仓(国内GBP)' },
+    // { key: '40', display_name: '海外门店(海外GBP)' }, 调整为 海外云仓(FGBP)
+    { key: '40', display_name: '海外云仓(FGBP)' },
+    { key: '50', display_name: '顺丰仓(海外顺丰)' },
+    { key: '60', display_name: '数据仓(数据展示)' },
+    { key: '70', display_name: '派速捷海外仓 ' }
+  ]
+ export const typeKeyValue = typeOptions.reduce((acc, cur) => {
+    acc[cur.key] = cur.display_name
+    return acc
+  }, {})
+ const statusOptions = [
+  	{ key: '0', display_name: '未启用' },
+    { key: '1', display_name: '生效中' },
+    { key: '2', display_name: '关闭' }
+  ]
+ export const statusKeyValue = statusOptions.reduce((acc, cur) => {
+    acc[cur.key] = cur.display_name
+    return acc
+  }, {})
+
+export function getReturnWarehouseInfo(id) {
+  return request({
+    url:  '/warehouse/returnWarehouseInfo/'+id,
+    method: 'get'
+  })
+}
+
+

+ 41 - 0
src/api/oms/onTrial/onTrial.js

@@ -0,0 +1,41 @@
+import request from "@/utils/requestOms";
+
+export function fetchList(query) {
+  return request({
+    url: "/tOnTrialReport/fetchList",
+    method: "get",
+    params: query
+  });
+}
+
+export function getDetail(id) {
+  return request({
+    url: "/tOnTrialReport/get/info/"+id,
+    method: "get",
+  });
+}
+
+export function reportRefused(query) {
+  return request({
+    url: "/tOnTrialReport/report/Refused",
+    method: "get",
+    params: query
+  });
+}
+
+export function reportApproved(query) {
+  return request({
+    url: "/tOnTrialReport/report/Approved",
+    method: "get",
+    params: query
+  });
+}
+
+
+export function publishReport(data) {
+  return request({
+    url: "/tOnTrialReport/report/publishReport",
+    method: "post",
+    data
+  });
+}

+ 79 - 0
src/api/oms/onTrial/onTrialInfo.js

@@ -0,0 +1,79 @@
+import request from '@/utils/requestOms'
+
+// 手动匹配
+export function manualMate(data) {
+  return request({
+    url: "/tOnTrialInfo/manualMate",
+    method: "post",
+    data
+  });
+}
+
+// 审核
+export function review(data) {
+  return request({
+    url: "/tOnTrialInfo/review",
+    method: "post",
+    data
+  });
+}
+
+//获取日志
+export function getLog(query) {
+  return request({
+    url:  '/tOnTrialLog/list',
+    method: 'get',
+    params: query
+  })
+}
+
+//获取国家数据
+export function getCountries(query) {
+  return request({
+    url:  '/country/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 详情
+export function getById(id) {
+  return request({
+    url: "/tOnTrialInfo/info/" + id,
+    method: "get"
+  });
+}
+
+export function fetchList(query) {
+  return request({
+    url:  '/tOnTrialInfo/list',
+    method: 'get',
+    params: query
+  })
+}
+
+//手动签收
+export function receipted(id) {
+  return request({
+    url: "/tOnTrialInfo/receipted/" + id,
+    method: "get"
+  });
+}
+
+//查询试用报告数量
+export function queryNumber(query) {
+  return request({
+    url:  '/tOnTrialInfo/queryNumber',
+    method: "get",
+    params: query
+  });
+}
+
+//批量拒绝
+export function batchReject(query) {
+  return request({
+    url:  '/tOnTrialInfo/batchReject',
+    method: "get",
+    params: query
+  });
+}

+ 9 - 0
src/api/oms/onTrial/subscription.js

@@ -0,0 +1,9 @@
+import request from "@/utils/requestOms";
+
+export function fetchList(query) {
+  return request({
+    url:  '/tFreeTrailSubs/list',
+    method: 'get',
+    params: query
+  })
+}

+ 35 - 0
src/api/oms/order/activityProduct.js

@@ -0,0 +1,35 @@
+import request from '@/utils/requestOms'
+
+// 列表
+export function fetchList(query) {
+  return request({
+    url: "/activityProduct/list",
+    method: "get",
+    params: query
+  });
+}
+
+// 详情
+export function getById(id) {
+  return request({
+    url: "/activityProduct/info/" + id,
+    method: "get"
+  });
+}
+
+// 保存
+export function save(data) {
+  return request({
+    url: "/activityProduct/save",
+    method: "post",
+    data
+  });
+}
+
+export function deleteById(id){
+  return request({
+    url:  '/activityProduct/delete',
+    method: 'delete',
+    params: {id:id}
+  });
+}

+ 24 - 0
src/api/oms/order/address.js

@@ -0,0 +1,24 @@
+import request from '@/utils/requestOms'
+
+export function getById(query) {
+  return request({
+    url:  '/tAddress/info',
+    method: 'get',
+    params: query
+  })
+}
+
+// 
+export function queryByOrdersId(id) {
+  return request({
+    url:  '/address/queryByOrdersId/'+id,
+    method: 'get'
+  })
+}
+
+export function queryByOrmorder(id) {
+  return request({
+    url:  '/address/queryByOrmorder/'+id,
+    method: 'get'
+  })
+}

+ 10 - 0
src/api/oms/order/invoice.js

@@ -0,0 +1,10 @@
+import request from '@/utils/requestOms'
+
+export function getById(query) {
+  return request({
+    url:  '/tInvoice/info',
+    method: 'get',
+    params: query
+  })
+}
+

+ 319 - 0
src/api/oms/order/order.js

@@ -0,0 +1,319 @@
+import request from "@/utils/requestOms";
+import i18n from "@/lang"; // 国际化
+
+// 手动寻源
+export function manualOrderSource(query) {
+  return request({
+    url: "/orders/manualOrderSource",
+    method: "get",
+    params: query
+  });
+}
+// 手动拆单
+export function manualSpiltOrder(data) {
+  return request({
+    url: "/orders/manualSpiltOrder",
+    method: "post",
+    data
+  });
+}
+// 检测是否会拆出纯赠品订单
+export function checkActivityProduct(data) {
+  return request({
+    url: "/orders/checkActivityProduct",
+    method: "post",
+    data
+  });
+}
+
+// 发货
+export function orderShip(data) {
+  return request({
+    url: "/orders/orderShip",
+    method: "post",
+    data
+  });
+}
+
+// 唯一码匹配
+export function shipUniqueCodeMatch(query) {
+  return request({
+    url: "/orders/shipUniqueCodeMatch",
+    method: "get",
+    params: query
+  });
+}
+
+// 可发货列表
+export function getShippableOrders(query) {
+  return request({
+    url: "/orders/getShippableOrders",
+    method: "get",
+    params: query
+  });
+}
+
+// 审核订单
+export function queryOrderDetails(id) {
+  return request({
+    url: "/orders/queryOrderDetails/" + id,
+    method: "get"
+  });
+}
+//查询订单支付方式
+export function queryOrderGiftCard(id) {
+  return request({
+    url: "/orders/queryOrderGiftCard/" + id,
+    method: "get"
+  });
+}
+
+//通过网店单号查询
+export function queryOrderDetailsByOrmorder(query) {
+  return request({
+    url: "/orders/queryOrderDetailsByOrmorder",
+    method: "get",
+    params: query
+  });
+}
+
+//修改内部备注
+export function addNote(query) {
+  return request({
+    url: "/orders/handleAddNote",
+    method: "get",
+    params: query
+  });
+}
+
+//修改地址备注
+export function editAddress(query) {
+  return request({
+    url: "/orders/handleEditAddress",
+    method: "get",
+    params: query
+  });
+}
+
+//通过发货单号查询订单项数据
+export function queryOrderItemList(id) {
+  return request({
+    url: "/orders/queryOrderItemList/" + id,
+    method: "get"
+  });
+}
+
+//订单挂起
+export function suspend(query) {
+  return request({
+    url: "/orders/handleSuspend",
+    method: "get",
+    params: query
+  });
+}
+
+// 作废订单
+export function invalid(id) {
+  return request({
+    url: "/orders/handleInvalid/" + id,
+    method: "get"
+  });
+}
+
+// 审核订单
+export function checkOrder(id) {
+  return request({
+    url: "/orders/handleProcess/" + id,
+    method: "get"
+  });
+}
+
+// 订单明细
+export function getDetailList(query) {
+  return request({
+    url: "/orders/orderItemList",
+    method: "get",
+    params: query
+  });
+}
+
+// 订单列表
+export function fetchList(query) {
+  return request({
+    url: "/orders/list",
+    method: "get",
+    params: query
+  });
+}
+
+export function queryWarehouseNameALL() {
+  return request({
+    url: "/orders/queryWarehouseName",
+    method: "get"
+  });
+}
+// 订单详情
+export function getById(id) {
+  return request({
+    url: "/orders/info/" + id,
+    method: "get"
+  });
+}
+// 全部退款理由查询
+export function getAllReason() {
+  return request({
+    url: "/orders/getAllReason",
+    method: "get"
+  });
+}
+//取消发货
+export function cancelDelivery(id) {
+  return request({
+    url: "/orders/cancelDelivery/" + id,
+    method: "get"
+  });
+}
+//部分取消发货
+export function partlyCancelOrder(data) {
+  return request({
+    url: "/orders/partlyCancelOrder",
+    method: "post",
+    data
+  });
+}
+//推送订单到国内OMS 针对已作废和未推送过的单
+export function pushOrderToOms(id) {
+  return request({
+    url: "/orders/pushOrderToOms/" + id,
+    method: "get"
+  });
+}
+
+const orderTypeOptions = [
+  { key: "fixed", display_name: "正常订单" },
+  { key: "pre", display_name: "预售订单" },
+  { key: "manual", display_name: "手工订单" },
+  { key: "point", display_name: "积分订单" },
+  { key: "exChange", display_name: "换货订单" },
+  { key: "conversion", display_name: "兑换订单" },
+  { key: "data", display_name: "FBA订单" }
+];
+export const orderTypeKeyValue = orderTypeOptions.reduce((acc, cur) => {
+  acc[cur.key] = cur.key;
+  return acc;
+}, {});
+
+const statusOptions = [
+  { key: "unchecked", display_name: "未审核" },
+  { key: "check", display_name: "已审核" },
+  { key: "undelivery", display_name: "未发货" },
+  { key: "delivery", display_name: "已发货" },
+  { key: "off", display_name: "已完成" },
+  { key: "cancel", display_name: "已作废" },
+  { key: "partdelivery", display_name: "部分发货" }
+];
+export const statusKeyValue = statusOptions.reduce((acc, cur) => {
+  acc[cur.key] = cur.key;
+  return acc;
+}, {});
+
+function $t(key) {
+  return i18n.t(key);
+}
+
+const ormstatusOptions = [
+  { key: "WAIT_SELLER_SEND_GOODS", display_name: "买家已付款" },
+  { key: "WAIT_BUYER_CONFIRM_GOODS", display_name: "卖家已发货" },
+  { key: "FINISHED", display_name: "交易成功" },
+  { key: "CLOSED", display_name: "交易关闭" },
+  { key: "SELLER_CONSIGNED_PART", display_name: "买家已签收" }
+];
+export const ormstatusKeyValue = ormstatusOptions.reduce((acc, cur) => {
+  acc[cur.key] = cur.display_name;
+  return acc;
+}, {});
+
+const typeSaleOptions = [
+  { key: "nosale", display_name: "非预售" },
+  { key: "tmsale", display_name: "天猫预售" },
+  { key: "waysale", display_name: "在途预售" },
+  { key: "zjsale", display_name: "征集预售" },
+  { key: "klsale", display_name: "考拉预售" },
+  { key: "presale", display_name: "预付款" }
+];
+export const typeSaleKeyValue = typeSaleOptions.reduce((acc, cur) => {
+  acc[cur.key] = cur.display_name;
+  return acc;
+}, {});
+
+//获取国家信息
+export function getReceiverCountryList(query) {
+  return request({
+    url: "/address/getCountry",
+    method: "get",
+    params: query
+  });
+}
+
+
+//获取可换货的sku
+export function getSku(query) {
+  return request({
+    url: "/orderItems/querySku",
+    method: "get",
+    params: query
+  });
+}
+
+
+
+export function exchangeGoods(data) {
+  return request({
+    url: "/orders/exchangeGoods",
+    method: "get",
+    params: data
+  });
+}
+
+export function getLogData(id) {
+  return request({
+    url: "/orders/getLogData/" + id,
+    method: "get"
+  });
+}
+
+//验证导出
+export function verifyExport(query){
+  return request({
+    url: "/orders/verifyExport",
+    method: "get",
+    params: query
+  });
+}
+
+//通过网店单号或shopify单号获取所有详情
+export function getDetailListForRefund(query) {
+  return request({
+    url:  '/orders/getDetailListForRefund',
+    method: 'get',
+    params: query
+  })
+}
+
+//获取订单详情
+export function getDetailListByOrderId(query) {
+  return request({
+    url:  '/orderItems/list',
+    method: 'get',
+    params: query
+  })
+}
+
+//获取订单明细详情
+export function getDetailListByOrderInfo(query) {
+  return request({
+    url:  '/orderItems/orderItemLists',
+    method: 'get',
+    params: query
+  })
+}

+ 80 - 0
src/api/oms/order/promotion.js

@@ -0,0 +1,80 @@
+import request from "@/utils/requestOms";
+
+// 列表
+export function fetchList(query) {
+  return request({
+    url: "/promotion/list",
+    method: "get",
+    params: query
+  });
+}
+
+// 详情
+export function getById(id) {
+  return request({
+    url: "/promotion/info/" + id,
+    method: "get"
+  });
+}
+
+// 保存
+export function save(data) {
+  return request({
+    url: "/promotion/save",
+    method: "post",
+    data
+  });
+}
+// 更新
+export function update(data) {
+  return request({
+    url: "/promotion/update",
+    method: "put",
+    data
+  });
+}
+
+export function deleteById(id) {
+  return request({
+    url: "/promotion/delete",
+    method: "delete",
+    params: { id: id }
+  });
+}
+
+export function storeList() {
+  return request({
+    url: "/promotion/store",
+    method: "get"
+  });
+}
+
+// 审核
+export function checkPromotion(data) {
+  return request({
+    url: "/promotion/check",
+    method: "post",
+    data
+  });
+}
+
+/**
+ * 变更启用状态
+ */
+export function changeStatus(id) {
+  return request({
+    url: "/promotion/status/" + id,
+    method: "get"
+  });
+}
+
+/**
+ * 促销操作日志
+ */
+export function promotionLogs(query) {
+  return request({
+    url: "/promotionLog/list",
+    method: "get",
+    params: query
+  });
+}

+ 59 - 0
src/api/oms/order/promotionGift.js

@@ -0,0 +1,59 @@
+import request from "@/utils/requestOms";
+
+// 列表
+export function fetchList(query) {
+  return request({
+    url: "/promotionGift/list",
+    method: "get",
+    params: query
+  });
+}
+
+// 详情
+export function getById(id) {
+  return request({
+    url: "/promotionGift/info/" + id,
+    method: "get"
+  });
+}
+
+// 保存
+export function save(data) {
+  return request({
+    url: "/promotionGift/save",
+    method: "post",
+    data
+  });
+}
+// 更新
+export function update(data) {
+  return request({
+    url: "/promotionGift/update",
+    method: "put",
+    data
+  });
+}
+
+export function deleteById(id) {
+  return request({
+    url: "/promotionGift/delete",
+    method: "delete",
+    params: { id: id }
+  });
+}
+
+// 促销配置列表
+export function promotionList() {
+  return request({
+    url: "/promotionGift/promotionList",
+    method: "get"
+  });
+}
+
+// 仓库列表
+export function warehouseList() {
+  return request({
+    url: "/promotionGift/warehouse",
+    method: "get"
+  });
+}

+ 43 - 0
src/api/oms/order/promotionGoods.js

@@ -0,0 +1,43 @@
+import request from "@/utils/requestOms";
+
+// 列表
+export function fetchList(query) {
+  return request({
+    url: "/promotionOrderGoods/list",
+    method: "get",
+    params: query
+  });
+}
+
+// 详情
+export function getById(id) {
+  return request({
+    url: "/promotionOrderGoods/info/" + id,
+    method: "get"
+  });
+}
+
+// 保存
+export function save(data) {
+  return request({
+    url: "/promotionOrderGoods/save",
+    method: "post",
+    data
+  });
+}
+// 更新
+export function update(data) {
+  return request({
+    url: "/promotionOrderGoods/update",
+    method: "put",
+    data
+  });
+}
+
+export function deleteById(id) {
+  return request({
+    url: "/promotionOrderGoods/delete",
+    method: "delete",
+    params: { id: id }
+  });
+}

+ 75 - 0
src/api/oms/order/virtualGoods.js

@@ -0,0 +1,75 @@
+import request from "@/utils/requestOms";
+
+
+
+export function queryActivitySkuList(storeId) {
+  return request({
+    url:  '/activityProduct/getActivitySkuList',
+    method: 'get',
+    params: { storeId: storeId }
+  })
+}
+
+export function getVirtualGoodList(query) {
+  return request({
+    url:  '/virtualGift/list',
+    method: 'get',
+    params: query
+  })
+}
+
+export function updateVirtualGoodList(query) {
+  return request({
+    url:  '/virtualGift/update',
+    method: 'put',
+    data: query
+  })
+}
+
+export function save(data) {
+  return request({
+    url: "/virtualGift/save",
+    method: "post",
+    data
+  });
+}
+export function update(data) {
+  return request({
+    url: "/virtualGift/update",
+    method: "put",
+    data
+  });
+}
+
+
+export function deleteGifts(id) {
+  return request({
+    url: "/virtualGift/delete",
+    method: "delete",
+    params: { id: id }
+  });
+}
+
+export function getVirtualGoodsDetail(id) {
+  return request({
+    url:  '/virtualGiftDetail/list',
+    method:"get",
+    params: { virtualGiftId: id }
+  })
+}
+
+export function saveDetail(data) {
+  return request({
+    url: "/virtualGiftDetail/save",
+    method: "post",
+    data
+  });
+}
+
+export function deleteDetail(data) {
+  return request({
+    url: "/virtualGiftDetail/delete",
+    method: "post",
+    data
+  });
+}

+ 84 - 0
src/api/oms/refund/autoRefund.js

@@ -0,0 +1,84 @@
+
+
+import request from "@/utils/requestOms";
+
+//查询列表
+export function getConfigList(query) {
+  return request({
+    url: "/autoRefundConfig/list",
+    method: "get",
+    params: query
+  });
+}
+
+
+export function updateConfig(data) {
+  return request({
+    url: "/autoRefundConfig/update",
+    method: "put",
+    data
+  });
+}
+
+
+
+export function updateConfigList(query) {
+  return request({
+    url:  '/autoRefundConfig/update',
+    method: 'put',
+    data: query
+  })
+}
+
+
+export function deleteConfig(id) {
+  return request({
+    url: "/autoRefundConfig/delete",
+    method: "delete",
+    params: { id: id }
+  });
+}
+
+export function saveConfig(data) {
+  return request({
+    url: "/autoRefundConfig/save",
+    method: "post",
+    data
+  });
+}
+
+
+export function saveConfigDetail(data) {
+  return request({
+    url: "/autoRefundConfigDetail/save",
+    method: "post",
+    data
+  });
+}
+
+export function updateConfigDetail(data) {
+  return request({
+    url: "/autoRefundConfigDetail/update",
+    method: "put",
+    data
+  });
+}
+
+
+
+export function getConfigDetailList(id) {
+  return request({
+    url:  '/autoRefundConfigDetail/list',
+    method:"get",
+    params: { configId: id }
+  })
+}
+
+export function deleteConfigDetail(data) {
+  return request({
+    url: "/autoRefundConfigDetail/delete",
+    method: "delete",
+    params:{id:data.id}
+  });
+}
+

+ 213 - 0
src/api/oms/refund/refund.js

@@ -0,0 +1,213 @@
+import request from "@/utils/requestOms";
+
+//刷新物流轨迹
+export function updateCargoTrack(query){
+  return request({
+    url: "/ordersRefund/updateCargoTrack",
+    method: "get",
+    params: query
+  });
+}
+//物流轨迹
+export function cargoTrackList(query){
+  return request({
+    url: "/ordersRefund/getCargoTrack",
+    method: "get",
+    params: query
+  });
+}
+
+//手动退款成功
+export function manualRefundSuccess(query) {
+  return request({
+    url: "/ordersRefund/manualRefundSuccess",
+    method: "get",
+    params: query
+  });
+}
+
+export function fetchList(query) {
+  return request({
+    url: "/ordersRefund/list",
+    method: "get",
+    params: query
+  });
+}
+export function RequestExcel(param) {
+  return request({
+    url: "/ordersRefund/uploadExcel",
+    method: "post",
+    params: param
+  });
+}
+export function getRefundInfo(id) {
+  return request({
+    url: "/ordersRefund/info/" + id,
+    method: "get"
+  });
+}
+
+export function getDetailListByRefundId(id) {
+  return request({
+    url: "/ordersRefund/getDetailListByRefundId/" + id,
+    method: "get"
+  });
+}
+
+export function getNewRefundInfo(id) {
+  return request({
+    url: "/ordersRefund/newInfo/" + id,
+    method: "get"
+  });
+}
+
+export function saveRefund(data) {
+  return request({
+    url: "/ordersRefund/save",
+    method: "post",
+    data
+  });
+}
+
+export function saveRefundNew(data) {
+  return request({
+    url: "/ordersRefund/saveNew",
+    method: "post",
+    data
+  });
+}
+
+export function updateRefund(data) {
+  return request({
+    url: "/ordersRefund/update",
+    method: "put",
+    data
+  });
+}
+export function updateshipping(data) {
+  return request({
+    url: "/ordersRefund/updateshipping",
+    method: "put",
+    data
+  });
+}
+export function warehouseList(id) {
+  return request({
+    url: "/ordersRefund/warehouseList",
+    method: "get"
+  });
+}
+export function rejectRefund(id, refundId) {
+  return request({
+    url: "/ordersRefund/rejectRefund",
+    method: "get",
+    params: { id: id, refundId: refundId }
+  });
+}
+
+export function cancel(data) {
+  return request({
+    url: "/ordersRefund/cancel",
+    method: "put",
+    data
+  });
+}
+//查询退件目的仓
+export function queryTWarehouseNameALL() {
+  return request({
+    url: "/orders/queryTWarehouseName",
+    method: "get"
+  });
+}
+export function checkCw(data) {
+  return request({
+    url: "/ordersRefund/checkCw",
+    method: "put",
+    data
+  });
+}
+export function checkKf(data) {
+  return request({
+    url: "/ordersRefund/checkKf",
+    method: "put",
+    data
+  });
+}
+export function checkRefundCalculates(data) {
+  return request({
+    url: "/ordersRefund/checkRefundCalculates",
+    method: "put",
+    data
+  });
+}
+
+//修改内部备注
+export function addNote(query) {
+  return request({
+    url: "/ordersRefund/handleAddNote",
+    method: "get",
+    params: query
+  });
+}
+
+export function batchReview(data) {
+  return request({
+    url: "/ordersRefund/batchReview",
+    method: "post",
+    data
+  });
+}
+
+export function getRefundType(data) {
+  return request({
+    url: "/ordersRefund/getRefundType",
+    method: "get",
+    params: data
+  });
+}
+
+export function getRefundReason(query) {
+  return request({
+    url: "/ordersRefund/getReasonList",
+    method: "get",
+    params: query
+  });
+}
+
+//验证导出退款
+export function verifyExport(query) {
+  return request({
+    url: "/ordersRefund/verifyExport",
+    method: "get",
+    params: query
+  });
+}
+
+//查询shippingLabel运费
+export function queryShippingAmount(refundInfo) {
+  return request({
+    url: "/ordersRefund/queryShippingAmount",
+    method: "get",
+    params: {
+      wareHouseCode: refundInfo.warehouseCode,
+      refundNo: refundInfo.refundNo
+    }
+  });
+}
+
+//异常处理,先注释
+// export function releaseExceptions(data) {
+//   return request({
+//     url: "/ordersRefund/releaseExceptions",
+//     method: "get",
+//     params: {"id":data}
+//   });
+// }
+
+export function validPromotionReq(data) {
+  return request({
+    url: "/ordersRefund/validPromotion",
+    method: "post",
+    data
+  });
+}

+ 9 - 0
src/api/oms/refund/refundReason.js

@@ -0,0 +1,9 @@
+import request from "@/utils/requestOms";
+
+export function fetchList(query) {
+  return request({
+    url: "/refundReason/list",
+    method: "get",
+    params: query
+  });
+}

+ 100 - 0
src/api/oms/return/return.js

@@ -0,0 +1,100 @@
+import request from '@/utils/requestOms'
+
+export function fetchList(query) {
+  return request({
+    // url:  '/tReturnOrders/list',
+    url:  '/tReturnOrders/listDetails',
+    method: 'get',
+    params: query
+  })
+}
+export function getReturnInfo(id) {
+  return request({
+    url:  '/tReturnOrders/info/'+id,
+    method: 'get'
+  })
+}
+
+export function saveReturn(data) {
+  return request({
+    url:  '/tReturnOrders/save',
+    method: 'post',
+    data
+  })
+}
+export function updateConfirmSh(data) {
+  return request({
+    url:  '/tReturnOrders/updateConfirmSh',
+    method: 'PUT',
+    data
+  })
+}
+
+export function getExceptionUniqueCode(id) {
+  return request({
+    url:  '/tReturnOrders/exceptionInfo/'+id,
+    method: 'get'
+  })
+}
+
+export function dealReturnException(data) {
+  return request({
+    url:  '/tReturnOrders/dealReturnException',
+    method: 'PUT',
+    data
+  })
+}
+
+//验证导出退货
+export function verifyExport(query){
+  return request({
+    url: "/tReturnOrders/verifyExport",
+    method: "get",
+    params: query
+  });
+}
+
+export function getShippingFeeList(data) {
+  return request({
+    url: "/slShippingFeeRule/list",
+    method: "get",
+    params: data
+  });
+}
+
+export function saveSL(data) {
+  return request({
+    url: "/slShippingFeeRule/save",
+    method: "post",
+    data
+  });
+}
+
+export function deleteSL(data) {
+  return request({
+    url: "/slShippingFeeRule/delete",
+    method: "post",
+    data
+  });
+}
+export function matchingOrders(param1, param2) {
+  return request({
+    url: "/tReturnOrders/matchingOrders",
+    method: "get",
+    params: {
+      orderDetilsId: param1,
+      returnOrdDetailId: param2
+    }
+  });
+}
+export function antiMatchingOrders(data) {
+  return request({
+    url: "/tReturnOrders/antiMatchingOrders",
+    method: "get",
+    params: {
+      returnOrdDetailId: data
+    }
+  });
+}
+
+

Some files were not shown because too many files changed in this diff