Sfoglia il codice sorgente

feat:初始化系统

chenjiaxin 3 settimane fa
parent
commit
53c9d77c28
100 ha cambiato i file con 93 aggiunte e 5692 eliminazioni
  1. 7 3
      .env.development
  2. 2 4
      .env.production
  3. 0 8
      .env.staging
  4. 0 21
      .env.test
  5. 1 1
      README.md
  6. 7 43
      package.json
  7. 0 18
      src/api/advert.js
  8. 0 125
      src/api/article.js
  9. 0 47
      src/api/articleTypeManage.js
  10. 0 12
      src/api/attr/standardChannelAttr.js
  11. 54 54
      src/api/auth/org.js
  12. 14 14
      src/api/auth/user.js
  13. 0 140
      src/api/bind.js
  14. 0 141
      src/api/category/category.js
  15. 0 77
      src/api/category/categoryAttr.js
  16. 0 33
      src/api/category/categorySizeChart.js
  17. 0 57
      src/api/category/platformAttr.js
  18. 0 135
      src/api/category/standardChannelCategory.js
  19. 0 58
      src/api/category/standardChannelCategoryProp.js
  20. 0 46
      src/api/category/standardChannelCategorySchema.js
  21. 0 44
      src/api/channel/channel.js
  22. 0 42
      src/api/channel/channelAuth.js
  23. 0 7
      src/api/channel/channelConst.js
  24. 0 92
      src/api/channel/channelStore.js
  25. 0 10
      src/api/channel/standardChannel.js
  26. 0 152
      src/api/channelStore.js
  27. 0 8
      src/api/chart.js
  28. 0 32
      src/api/common.js
  29. 0 32
      src/api/config/ossConf.js
  30. 0 151
      src/api/config/watermark.js
  31. 0 3
      src/api/cscCategoryRel.js
  32. 0 27
      src/api/distributionChannelAuth.js
  33. 0 46
      src/api/dropWash.js
  34. 0 43
      src/api/image.js
  35. 0 62
      src/api/label.js
  36. 0 10
      src/api/log/loggingEvent.js
  37. 0 13
      src/api/log/message_log.js
  38. 0 10
      src/api/log/schedulelog.js
  39. 0 19
      src/api/log/syslog.js
  40. 0 10
      src/api/log/task.js
  41. 8 8
      src/api/login.js
  42. 0 56
      src/api/material.js
  43. 0 41
      src/api/model.js
  44. 0 63
      src/api/notice.js
  45. 0 9
      src/api/oms/ai.js
  46. 0 68
      src/api/oms/bagProduct.js
  47. 0 43
      src/api/oms/basicConfig/addressAreas.js
  48. 0 210
      src/api/oms/basicConfig/basicConfig.js
  49. 0 19
      src/api/oms/basicConfig/inventoryProtectingDetail.js
  50. 0 84
      src/api/oms/basicConfig/orderSourceRule.js
  51. 0 32
      src/api/oms/copy.js
  52. 0 11
      src/api/oms/inventory/category.js
  53. 0 83
      src/api/oms/inventory/childInventory.js
  54. 0 32
      src/api/oms/inventory/childWarehoue.js
  55. 0 159
      src/api/oms/inventory/inventory.js
  56. 0 35
      src/api/oms/inventory/inventoryDistribute.js
  57. 0 10
      src/api/oms/inventory/logisticsCompany.js
  58. 0 9
      src/api/oms/inventory/product.js
  59. 0 31
      src/api/oms/inventory/refundReason.js
  60. 0 9
      src/api/oms/inventory/sku.js
  61. 0 9
      src/api/oms/inventory/virtualInventorySendLog.js
  62. 0 130
      src/api/oms/inventory/warehouse.js
  63. 0 41
      src/api/oms/onTrial/onTrial.js
  64. 0 79
      src/api/oms/onTrial/onTrialInfo.js
  65. 0 9
      src/api/oms/onTrial/subscription.js
  66. 0 35
      src/api/oms/order/activityProduct.js
  67. 0 24
      src/api/oms/order/address.js
  68. 0 10
      src/api/oms/order/invoice.js
  69. 0 66
      src/api/oms/order/multiBuyDiscount.js
  70. 0 319
      src/api/oms/order/order.js
  71. 0 80
      src/api/oms/order/promotion.js
  72. 0 59
      src/api/oms/order/promotionGift.js
  73. 0 43
      src/api/oms/order/promotionGoods.js
  74. 0 9
      src/api/oms/order/promotionLog.js
  75. 0 75
      src/api/oms/order/virtualGoods.js
  76. 0 84
      src/api/oms/refund/autoRefund.js
  77. 0 244
      src/api/oms/refund/refund.js
  78. 0 9
      src/api/oms/refund/refundReason.js
  79. 0 100
      src/api/oms/return/return.js
  80. 0 65
      src/api/oms/storage/adjustManagement.js
  81. 0 44
      src/api/oms/storage/adjustManagementDetail.js
  82. 0 18
      src/api/oms/storage/balanceManagement.js
  83. 0 25
      src/api/oms/storage/channelManagement.js
  84. 0 35
      src/api/oms/storage/channelWarehouse.js
  85. 0 17
      src/api/oms/storage/inBoundManagement.js
  86. 0 27
      src/api/oms/storage/inventoryManagement.js
  87. 0 17
      src/api/oms/storage/outBoundManagement.js
  88. 0 24
      src/api/pageFindTune.js
  89. 0 36
      src/api/pimFile.js
  90. 0 232
      src/api/product/attr.js
  91. 0 121
      src/api/product/categoryAuth.js
  92. 0 83
      src/api/product/catentryLabel.js
  93. 0 11
      src/api/product/catentrySizeChart.js
  94. 0 19
      src/api/product/channelImport.js
  95. 0 96
      src/api/product/import.js
  96. 0 70
      src/api/product/industry.js
  97. 0 291
      src/api/product/product.js
  98. 0 18
      src/api/product/sku.js
  99. 0 82
      src/api/product/template/template.js
  100. 0 74
      src/api/product/template/templateCategory.js

+ 7 - 3
.env.development

@@ -3,9 +3,13 @@ ENV = 'development'
 
 # base api
 
-VUE_APP_OAUTH_API = '/oauth/'
-VUE_APP_PIM_API = '/pim/'
-VUE_APP_OMS_API = '/oms/'
+VUE_APP_OAUTH_API = '/auth/'
+VUE_APP_AI_API = '/ai/'
+
+# VUE_APP_OAUTH_API = '/auth/'
+# VUE_APP_PIM_API = '/'
+# VUE_APP_OMS_API = '/order/'
+
 # 静态资源
 VUE_APP_RESOURCE_URL='/pim'
 VUE_APP_IMS_API='/ims/'

+ 2 - 4
.env.production

@@ -2,10 +2,8 @@
 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_OAUTH_API = '/auth/'
+VUE_APP_AI_API = '/ai/'
 #静态资源
 VUE_APP_RESOURCE_URL = ''
 

+ 0 - 8
.env.staging

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

+ 0 - 21
.env.test

@@ -1,21 +0,0 @@
-# just a flag
-ENV = 'development'
-
-# base api
-
-VUE_APP_OAUTH_API = '/oauth/'
-VUE_APP_PIM_API = '/'
-VUE_APP_OMS_API = '/order/'
-
-# 静态资源
-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

+ 1 - 1
README.md

@@ -1 +1 @@
->#歌莉娅海外订单中心前端
+> #歌莉娅 AI 口播视频管理平台前端

+ 7 - 43
package.json

@@ -5,16 +5,8 @@
   "author": "xykj",
   "license": "MIT",
   "scripts": {
-    "dev": "vue-cli-service serve --inline --host swings.pim.com",
-    "dev:local": "vue-cli-service serve",
-    "dev:test": "vue-cli-service serve  build --mode test",
-    "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"
+    "dev": "vue-cli-service serve",
+    "build:prod": "vue-cli-service build"
   },
   "husky": {
     "hooks": {
@@ -35,52 +27,23 @@
     "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",
+    "sm-crypto": "^0.3.13",
     "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"
   },
@@ -91,7 +54,7 @@
     "@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",
+    "autoprefixer": "^9.8.8",
     "babel-core": "7.0.0-bridge.0",
     "babel-jest": "23.6.0",
     "chalk": "2.4.2",
@@ -103,6 +66,7 @@
     "mockjs": "1.0.1-beta3",
     "node-sass": "^4.13.0",
     "plop": "2.3.0",
+    "postcss": "^8.5.3",
     "runjs": "^4.3.2",
     "sass-loader": "^7.3.1",
     "script-ext-html-webpack-plugin": "2.1.3",
@@ -114,8 +78,8 @@
     "vue-template-compiler": "2.6.10"
   },
   "engines": {
-    "node": ">=8.9",
-    "npm": ">= 3.0.0"
+    "node": ">=14.0.0",
+    "npm": ">= 6.0.0"
   },
   "browserslist": [
     "> 1%",

+ 0 - 18
src/api/advert.js

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

+ 0 - 125
src/api/article.js

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

+ 0 - 47
src/api/articleTypeManage.js

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

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

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

+ 54 - 54
src/api/auth/org.js

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

+ 14 - 14
src/api/auth/user.js

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

+ 0 - 140
src/api/bind.js

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

+ 0 - 152
src/api/channelStore.js

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

+ 0 - 8
src/api/chart.js

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

+ 0 - 32
src/api/common.js

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

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

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

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

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

+ 0 - 3
src/api/cscCategoryRel.js

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

+ 0 - 27
src/api/distributionChannelAuth.js

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

+ 0 - 46
src/api/dropWash.js

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

+ 0 - 43
src/api/image.js

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

+ 0 - 62
src/api/label.js

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

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

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

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

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

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

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

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

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

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

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

+ 8 - 8
src/api/login.js

@@ -1,24 +1,24 @@
 import request from '@/utils/requestAuth'
-
+// B端账号密码登录
 export function login(data) {
   return request({
-    url:'/login',
+    url: '/passwordLogin',
     method: 'post',
     data
   })
 }
-
-export function getInfo(query) {
+// 获取用户信息
+export function getInfo(data) {
   return request({
-    url: '/sysOrgUser/currentInfo',
+    url: '/getLoginUser',
     method: 'get',
-    params:query
+    data
   })
 }
-
+// 退出
 export function logout() {
   return request({
-    url: '/sysLogout',
+    url: '/doLogout',
     method: 'get'
   })
 }

+ 0 - 56
src/api/material.js

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

+ 0 - 41
src/api/model.js

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

+ 0 - 63
src/api/notice.js

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

+ 0 - 9
src/api/oms/ai.js

@@ -1,9 +0,0 @@
-import request from '@/utils/requestOms'
-
-export function createCozeToken(data) {
-  return request({
-    url:  '/coze/create_token',
-    method: 'post',
-    data: data
-  })
-}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -1,130 +0,0 @@
-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'
-  })
-}
-export function getLocation(date) {
-  return request({
-    url:  '/storeLocations/getLocation',
-    method: 'get',
-    params: date
-  })
-}
-
-

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

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

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

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

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

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

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

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

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

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

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

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

+ 0 - 66
src/api/oms/order/multiBuyDiscount.js

@@ -1,66 +0,0 @@
-import request from "@/utils/requestOms";
-// 列表
-export function fetchList(query) {
-  return request({
-    url: "/priceRule/list",
-    method: "get",
-    params: query
-  });
-}
-
-// 版本
-export function fetchVersions(id, query) {
-  return request({
-    url: `/priceRule/version/${id}`,
-    method: "get",
-    params: query
-  });
-}
-// 获取详情
-export function fetchDetailByIdAndVersion(query) {
-  const { id, version } = query
-  return request({
-    url: `/priceRule/detail/${id}/${version}`,
-    method: "get",
-  });
-}
-// 新增&编辑多件多折
-export function updateMutiDiscount(data) {
-  return request({
-    url: "/priceRule/editMultiplePieceDiscount",
-    method: "post",
-    data
-  });
-}
-// 删除折扣
-export function deleteMutiDiscount(query) {
-  return request({
-    url: "/priceRule/delete",
-    method: "delete",
-    params: query
-  });
-}
-// 启用禁用折扣
-export function updateStatusMutiDiscount(query) {
-  return request({
-    url: "/priceRule/updateStatus",
-    method: "post",
-    params: query
-  });
-}
-// 商品标签列表
-export function getProductTagList(query) {
-  return request({
-    url: "/product/tag/list",
-    method: "get",
-    params: query
-  });
-}
-// 根据标签查询货品
-export function getProductBuyTag(query) {
-  return request({
-    url: "/product/getListByTags",
-    method: "get",
-    params: query
-  });
-}

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

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

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

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

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

@@ -1,59 +0,0 @@
-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"
-  });
-}

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

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

+ 0 - 9
src/api/oms/order/promotionLog.js

@@ -1,9 +0,0 @@
-import request from "@/utils/requestOms";
-// 日志列表
-export function fetchLogList(query) {
-  return request({
-    url: "/priceRuleLog/list",
-    method: "get",
-    params: query
-  });
-}

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

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

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

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

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

@@ -1,244 +0,0 @@
-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 backstageSubmitRefund(data) {
-  return request({
-    url: "/ordersRefund/backstageSubmitRefund",
-    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
-  });
-}
-// 客服提交售后申请版本查询
-export function checkRefundVersions(data) {
-  return request({
-    url: "/ordersRefund/getRefundVersions",
-    method: "get",
-    data
-  });
-}
-// 客服提交售后申请预览
-export function checkSubmitRefund(data) {
-  return request({
-    url: "/ordersRefund/backstageCheckSubmitRefund",
-    method: "post",
-    data
-  });
-}
-// 退款单获取折扣信息
-export function getRefundDiscount(data) {
-  return request({
-    url: "/ordersRefund/getRefundDiscount",
-    method: "post",
-    data
-  });
-}

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

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

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

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

+ 0 - 65
src/api/oms/storage/adjustManagement.js

@@ -1,65 +0,0 @@
-import request from "@/utils/requestIms";
-
-export function fetchList(query) {
-  return request({
-    url: "/imsAdjustBill/list",
-    method: "get",
-    params: query
-  });
-}
-
-export function save(data) {
-  return request({
-    url: "/imsAdjustBill/save",
-    method: "post",
-    data
-  });
-}
-
-export function getById(id) {
-  return request({
-    url: "/imsAdjustBill/info/" + id,
-    method: "get"
-  });
-}
-
-// 更新
-export function update(data) {
-  return request({
-    url: "/imsAdjustBill/update",
-    method: "put",
-    data
-  });
-}
-
-export function deleteById(id) {
-  return request({
-    url: "/imsAdjustBill/delete",
-    method: "delete",
-    params: { id: id }
-  });
-}
-
-/**
- * 审核
- * @param data
- * @returns {AxiosPromise}
- */
-export function audit(data) {
-  return request({
-    url: "/imsAdjustBill/audit",
-    method: "post",
-    data
-  });
-}
-
-/**
- * 渠道仓库
- * @returns {AxiosPromise}
- */
-export function channelWarehouse() {
-  return request({
-    url: "/imsAdjustBill/channelWarehouse",
-    method: "get"
-  });
-}

+ 0 - 44
src/api/oms/storage/adjustManagementDetail.js

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

+ 0 - 18
src/api/oms/storage/balanceManagement.js

@@ -1,18 +0,0 @@
-import request from "@/utils/requestIms";
-
-export function imsClosingBilllist(query){
-  return request({
-    url: "imsClosingBill/list",
-    method: "get",
-    params: query,
-  })
-}
-export function imsClosingBilldetail(query){
-  return request({
-    url: "imsClosingBillDetail/list/",
-    method: "get",
-    params: query
-  })
-}
-
-

+ 0 - 25
src/api/oms/storage/channelManagement.js

@@ -1,25 +0,0 @@
-import request from "@/utils/requestIms";
-// 查询渠道信息
-export function imsChannelList(query) {
-  return request({
-    url: "/imsChannelInfo/list",
-    method: "get",
-    params: query
-  });
-}
-// 新增渠道
-export function saveImsChannel(query) {
-  return request({
-    url: "/imsChannelInfo/save",
-    method: "post",
-    data: query
-  });
-}
-// 删除渠道
-export function deleteImsChannelById(id) {
-  return request({
-    url: '/imsChannelInfo/delete',
-    method: 'delete',
-    params: {id:id}
-  });
-}

+ 0 - 35
src/api/oms/storage/channelWarehouse.js

@@ -1,35 +0,0 @@
-import request  from "@/utils/requestIms";
-
-export function setDefault(id) {
-  return request({
-    url: '/imsChannelWarehouse/setDefault/' + id,
-    method: 'get'
-  });
-}
-
-// 查询渠道信息
-export function imsChannelWarehouseList(query) {
-  return request({
-    url: "/imsChannelWarehouse/list",
-    method: "get",
-    params: query
-  });
-}
-// 新增渠道
-export function saveImsChannelWarehouse(query) {
-  return request({
-    url: "/imsChannelWarehouse/save",
-    method: "post",
-    data: query
-  });
-}
-// 删除渠道
-export function deleteImsChannelById(id) {
-  return request({
-    url: '/imsChannelWarehouse/delete',
-    method: 'delete',
-    params: {id:id}
-  });
-}
-
-

+ 0 - 17
src/api/oms/storage/inBoundManagement.js

@@ -1,17 +0,0 @@
-import request from '@/utils/requestIms'
-
-export function inBoundlist(query){
-  return request({
-    url: "imsInboundBill/list",
-    method: "get",
-    params: query,
-  })
-}
-export function inBoundDetails(query){
-  return request({
-    url: "imsInboundBillDetail/list",
-    method: "get",
-    params: query
-  })
-}
-

+ 0 - 27
src/api/oms/storage/inventoryManagement.js

@@ -1,27 +0,0 @@
-import request  from "@/utils/requestIms";
-
-// 查询库存列表
-export function inventoryManagementList(query) {
-  return request({
-    url: "/imsWarehouseInventory/list",
-    method: "get",
-    params: query
-  });
-}
-
-// 推送库存
-export function pushInventory(id) {
-  return request({
-    url: "/imsWarehouseInventory/pushInventory",
-    method: "get",
-    params: {id: id}
-  });
-}
-// 重新计算库存
-export function inventoryCalculations(id) {
-  return request({
-    url: "/imsWarehouseInventory/inventoryCalculations",
-    method: "get",
-    params: {id: id}
-  });
-}

+ 0 - 17
src/api/oms/storage/outBoundManagement.js

@@ -1,17 +0,0 @@
-import request from '@/utils/requestIms'
-
-export function outBoundlist(query){
-  return request({
-    url: "imsOutboundBill/list",
-    method: "get",
-    params: query,
-  })
-}
-export function outBounddetail(query){
-  return request({
-    url: "imsOutboundBillDetail/list",
-    method: "get",
-    params: query
-  })
-}
-

+ 0 - 24
src/api/pageFindTune.js

@@ -1,24 +0,0 @@
-import request from '@/utils/requestPIM'
-export function getPageFindTuneHtml(query) {
-  return request({
-    url:+'/pimViewTmplEffect/getFindTuneHtml',
-    method:'get',
-    params:query
-  })
-}
-
-export function saveFindTunePage(data) {
-  return request({
-    url:+"/pimViewTmplEffect/saveFindTunePage",
-    method: 'post',
-    data
-  })
-}
-
-export function getViewTemplateModule(query) {
-  return request({
-    url:+"/pimViewTemplateModule/getModuleList",
-    method:'get',
-    params:query
-  })
-}

+ 0 - 36
src/api/pimFile.js

@@ -1,36 +0,0 @@
-import request from '@/utils/requestPIM'
-
-// 获取文件列表
-export function fetchFileList(query) {
-  return request({
-    url:  '/pimFile/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 创建目录
-export function createPimFile(data) {
-  return request({
-    url:  '/pimFile/save',
-    method: 'post',
-    data
-  })
-}
-
-// 删除文件
-export function deletePimFile(id) {
-  console.log('data'+id);
-  return request({
-    url:  '/pimFile/delete',
-    method: 'delete',
-    params: { id: id }
-  })
-}
-// 通过id查询信息
-export function getPimFileById(id) {
-  return request({
-    url:  '/pimFile/info/' + id,
-    method: 'get'
-  })
-}

+ 0 - 232
src/api/product/attr.js

@@ -1,232 +0,0 @@
-import request from '@/utils/requestPIM'
-
-// 获取属性列表
-export function fetchList(query) {
-  return request({
-    url:   '/pimAttr/list',
-    method: 'get',
-    params: query
-  })
-}
-
-//获取商品销售属性
-export function getSaleAttrsList(query) {
-  return request({
-    url:   '/pimAttr/saleList',
-    method: 'get',
-    params: query
-  })
-}
-
-//获取目录指定销售属性的销售属性值
-export function getSaleAttrValsByAttrId(query) {
-  return request({
-    url:  '/pimAttrVal/listBySaleAttrId',
-    method: 'get',
-    params: query
-  })
-}
-
-//更新商品目录的销售属性
-export function updateCategorySaleAttrVals(data) {
-  return request({
-    url:  '/pimCategorySaleAttr/updateCategorySaleAttrVals',
-    method:'post',
-    data
-  })
-}
-
-//根据类型获取属性
-export function getAttrAndValList(query) {
-  return request({
-    url:   '/pimAttr/list/byType',
-    method: 'get',
-    params: query
-  })
-}
-
-//获取属性值根据属性ID
-export function getAttrValByAttrId(query){
-  return request({
-    url:   '/pimAttrVal/listByAttrId',
-    method: 'get',
-    params: query
-  })
-}
-
-//行业属性选项
-export function industryProductAttr(query) {
-  return request({
-    url:   '/pimAttr/industryProductAttr',
-    method: 'get',
-    params: query
-  })
-}
-
-//zx改,获取当前选中属性值集合
-export function attrValuesByAttrId(query){
-  return request({
-    url:   '/pimAttrVal/attrValuesByAttrId',
-    method: 'get',
-    params: query
-  })
-}
-
-export function queryTemplateAttrValues(query) {
-  return request({
-    url:   "/pimTemplateAttrVal/queryTemplateAttrValues",
-    method: 'get',
-    params: query
-  })
-}
-// 创建属性
-export function createAttr(data) {
-  return request({
-    url:   '/pimAttr/save',
-    method: 'post',
-    data
-  })
-}
-// 更新属性信息
-export function updateAttr(data) {
-  return request({
-    url:   '/pimAttr/update',
-    method: 'PUT',
-    data
-  })
-}
-// 删除属性信息
-export function deleteAttr(id) {
-  return request({
-    url:   '/pimAttr/delete',
-    method: 'delete',
-    params: {attrId: id }
-  })
-}
-
-
-// 删除属性信息
-export function deleteAttrVal(id) {
-  return request({
-    url:   '/pimAttrVal/delete',
-    method: 'delete',
-    params: {id: id }
-  })
-}
-// 通过id查询属性信息
-export function getAttrById(id) {
-  return request({
-    url:   '/pimAttr/info/' + id,
-    method: 'get'
-  })
-}
-// 保存属性-属性值关系
-export function createAttrVal(data) {
-  return request({
-    url:   '/pimAttrVal/save',
-    method: 'post',
-    data
-  })
-}
-
-// 跟新属性-属性值关系
-export function updateAttrVal(data) {
-  return request({
-    url:   '/pimAttrVal/update',
-    method: 'PUT',
-    data
-  })
-}
-
-// 获取属性和属性值关系
-export function getAttrValList(query) {
-  return request({
-    url:   '/pimAttrVal/list',
-    method: 'get',
-    params: query
-  })
-}
-
-//根据模板id与商品属性id获取商品属性
-export function getAttrByTemplateIdAndAttrId(query) {
-  return request({
-    url:  '/pimAttr/info',
-    method: 'get',
-    params: query
-  })
-}
-
-//获取组织关系
-export function getSelectType(query) {
-  return request({
-    url:   '/pimAttr/getSelectType',
-    method: 'get',
-    params: query
-  })
-}
-
-
-
-//获取属性值
-export function getAttrValByID(attrValId) {
-  return request({
-    url:   '/pimAttrVal/info/'+attrValId,
-    method: 'get'
-  })
-}
-
-
-
-//弹框获取的初始化数据
-export function queryInitData(query) {
-  return request({
-    url:   '/pimAttr/getInitData',
-    method: 'get',
-    params:query
-  })
-}
-
-//根据父属性查子属性信息
-export function getChildrenAttr(query) {
-  return request({
-    url:   '/pimAttr/listChildrenAttr',
-    method: 'get',
-    params: query
-  })
-}
-
-
-
-//自定义属性
-export function customList(query) {
-  return request({
-    url:   '/pimAttr/customList',
-    method: 'get',
-    params: query
-  })
-}
-
-// 通过id查询属性信息
-export function getCustomAttrById(id) {
-  return request({
-    url:   '/pimAttr/customInfo/' + id,
-    method: 'get'
-  })
-}
-
-// 创建属性
-export function createCustomAttr(data) {
-  return request({
-    url:   '/pimAttr/saveCustom',
-    method: 'post',
-    data
-  })
-}
-// 更新属性信息
-export function updateCustomAttr(data) {
-  return request({
-    url:   '/pimAttr/updateCustom',
-    method: 'PUT',
-    data
-  })
-}

+ 0 - 121
src/api/product/categoryAuth.js

@@ -1,121 +0,0 @@
-import request from '@/utils/requestPIM'
-
-
-export const channelCodeOption = [
-  { key: "TM", display_name: '天猫' },
-  { key: "TB", display_name: '淘宝' },
-  { key: "JD", display_name: '京东'}
-];
-
-export const channelCodeFilter = channelCodeOption.reduce((acc, cur) => {
-    acc[cur.key] = cur.display_name;
-    return acc
-}, {});
-
-
-//获取商品分类
-export function getCategory(query){
-  return request({
-    url:  '/pimCategoryAuth/list/byParent',
-    method: 'get',
-    params: query
-  })
-}
-
-//获取所有叶子目录
-export function getAllLeafCategoryAuth(query) {
-  return request({
-    url:  '/pimCategoryAuth/list/getAllLeafCategoryAuth',
-    method:'get',
-    params: query
-  })
-}
-
-//获取指定的分类
-export function getCategoryData(categoryId){
-  return request({
-    url:  '/pimCategoryAuth/info/'+categoryId,
-    method: 'get'
-  })
-}
-
-// 获取绑定关系
-export function queryBindCscRelRes(query){
-	return request({
-    url:  '/pimCategoryAuth/bindCscRel',
-    method: 'get',
-    params: query
- });
-}
-
-//获取尺寸表的标题-值 :
-export function querySizeDatas(data){
-	return request({
-		url:  '/pimCategoryAuth/sizeTitleValue',
-		method: 'post',
-		data
-	});
-}
-
-//获取授权目录
-export function queryCategoryAuth(query){
-	return request({
-		url:   '/pimCategoryAuth/list',
-		method: 'get',
-		params:query
-	});
-}
-
-//保存授权目录
-export function saveCategoryAuth(data){
-	return request({
-    url: '/pimCategoryAuth/save',
-    method: 'post',
-    data
- });
-}
-
-//获取授权目录
-export function categoryAuthCombobox(query){
-	return request({
-		url:   '/pimCategoryAuth/combobox',
-		method: 'get',
-		params:query
-	});
-}
-
-//获取授权目录 下的叶子目录的授权销售属性
-export function categoryAuthSaleAttr(query){
-	return request({
-		url:   '/pimCategoryAuth/saleAttr',
-		method: 'get',
-		params:query
-	});
-}
-
-//获取授权目录 下的叶子目录的授权 指定销售属性的属性值
-export function categoryAuthSaleAttrVal(query){
-	return request({
-		url:   '/pimCategoryAuth/saleAttrVal',
-		method: 'get',
-		params:query
-	});
-}
-
-//获取授权目录 下的叶子目录的授权销售属性
-export function industryAttr(query){
-	return request({
-		url:   '/pimCategoryAuth/productAttr',
-		method: 'get',
-		params:query
-	});
-}
-
-//获取授权目录 下的叶子目录的授权 指定销售属性的属性值
-export function industryAttrAttrVal(query){
-	return request({
-		url:   '/pimCategoryAuth/productAttrVal',
-		method: 'get',
-		params:query
-	});
-}

+ 0 - 83
src/api/product/catentryLabel.js

@@ -1,83 +0,0 @@
-import request from '@/utils/requestPIM'
-
-//获取目录标签Table
-export function getCLList(query){
-  return request({
-    url:   '/pimCatentryLabel/list',
-    method: 'get',
-    params: query
-  })
-}
-
-//获取目录标签Tree
-export function getCLTree(query){
-  return request({
-    url:   '/pimCatentryLabel/tree',
-    method: 'get',
-    params: query
-  })
-}
-
-
-//获取目录标签Tree
-export function getCLTreeALL(query){
-  return request({
-    url:   '/pimCatentryLabel/treeAll',
-    method: 'get',
-    params: query
-  })
-}
-
-//创建目录标签
-export function createCL(data) {
-  return request({
-    url:   '/pimCatentryLabel/save',
-    method: 'post',
-    data
-  })
-}
-
-//更新目录标签
-export function getCL(id) {
-	return request({
-    url:   '/pimCatentryLabel/info/'+id,
-    method: 'get'
- }) 
-}
-
-//更新目录标签
-export function editCL(data) {
-	return request({
-    url:   '/pimCatentryLabel/update',
-    method: 'PUT',
-    data
- }) 
-}
-
-export function getNextSortOrder(query){
-	return request({
-    url:   '/pimCatentryLabel/nextSortOrder',
-    method: 'get',
-    params: query
-  })
-}
-
-export function delCL(id){
-	return request({
-    url:   '/pimCatentryLabel/delete',
-    method: 'delete',
-    params: {csclId:id}
-  })
-}
-
-/**
- * 获取标签商品
- * 
- */
-export function queryCatentryList(query){
-	return request({
-		url:   '/pimCatentryLabelRel/list',
-		method: 'get',
-		params: query
-	});
-}

+ 0 - 11
src/api/product/catentrySizeChart.js

@@ -1,11 +0,0 @@
-import request from '@/utils/requestPIM'
-
-export function queryCatentrySizeChart(data){
-	return request({
-    url:  '/pimCatentrySizeChart/byCatentryId',
-    method: 'post',
-    data
-  })
-}
-
-

+ 0 - 19
src/api/product/channelImport.js

@@ -1,19 +0,0 @@
-import request from '@/utils/requestPIM'
-
-// 获取商品导入列表
-export function channelCatentryImportList(query) {
-  return request({
-    url:  '/pimChannelCatentry/list',
-    method: 'get',
-    params: query
-  })
-}
-
-//批量处理商品
-export function processStandardChannelCatentry(data) {
-  return request({
-    url:  '/pimChannelCatentry/process',
-    method: 'post',
-    data
-  })
-}

+ 0 - 96
src/api/product/import.js

@@ -1,96 +0,0 @@
-import request from '@/utils/requestPIM'
-
-// 获取商品导入列表
-export function catentryImportList(query) {
-  return request({
-    url:  '/outCatentryExcel/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 获取商品sku
-export function catentrySkuList(query){
-	return request({
-		url: '/outCatentryExcel/skuList',
-		method: 'get',
-		params: query
-	});
-}
-
-// 获取商品属性
-export function catentryAttrList(query){
-	return request({
-		url: '/outCatentryExcel/productAttr',
-		method: 'get',
-		params: query
-	});
-}
-
-//绑定分类
-export function bindCategorySpec(query){
-	return request({
-		url: '/outCatentryExcel/bindCategory',
-		method: 'get',
-		params: query
-	});
-}
-
-
-//绑定销售属性
-export function bindSaleAttrSpec(query){
-	return request({
-		url: '/outCatentryExcel/bindSaleAttr',
-		method: 'get',
-		params: query
-	});
-}
-
-
-//绑定商品属性
-export function bindProductAttrSpec(query){
-	return request({
-		url: '/outCatentryExcel/bindProductAttr',
-		method: 'get',
-		params: query
-	});
-}
-
-
-//绑定商品属性
-export function processExcelCatentry(data){
-	return request({
-		url: '/pimCatentryImport/process',
-		method: 'post',
-		data
-	});
-}
-
-export function listStatus(){
-  return request({
-    url: '/outCatentryExcel/listStatus',
-    method: 'get',
-  });
-}
-
-export function deleteInitOutCatentry(data) {
-   return request({
-     url: '/outCatentryExcel/deleteInitOutCatentry',
-     method: 'post',
-     data
-   })
-}
-
-export function deleteAllInitOutCatentry() {
-  return request({
-    url: '/outCatentryExcel/deleteAllInitOutCatentry',
-    method: 'get',
-  })
-}
-
-export function errorResolve() {
-   return request({
-     url: '/outCatentryExcel/errorResolve',
-     method: 'get',
-   })
-}

+ 0 - 70
src/api/product/industry.js

@@ -1,70 +0,0 @@
-import request from '@/utils/requestPIM'
-
-//行业列表
-export function fetchList(query) {
-  return request({
-    url:  '/pimIndustry/list',
-    method: 'get',
-    params: query
-  });
-}
-
-//编辑行业
-export function queryObject(id) {
-  return request({
-    url:  '/pimIndustry/info/'+id,
-    method: 'get',
-  });
-}
-
-//模板行业
-export function queryIndustry(query) {
-  return request({
-    url:  '/pimIndustry/forTemplatePerms',
-    method: 'get',
-    params: query
-  });
-}
-
-// 创建行业
-export function createIndustry(data) {
-  return request({
-    url:  '/pimIndustry/save',
-    method: 'post',
-    data
-  });
-}
-// 更新行业
-export function updateIndustry(data) {
-  return request({
-    url:  '/pimIndustry/update',
-    method: 'post',
-    data
-  });
-}
-
-//获取行业属性
-export function industryAttr(id) {
-  return request({
-    url:  '/pimIndustry/industryAttr/'+id,
-    method: 'get',
-  });
-}
-
-//保存行业属性
-export function bindAttr(data){
-	return request({
-    url:  '/pimIndustry/bindAttr',
-    method: 'post',
-    data
-  })
-}
-
-//属性已绑定的行业
-export function industryByAttrId(attrId){
-	return request({
-    url:  '/pimIndustry/industryByAttrId',
-    method: 'get',
-    params: {"attrId":attrId}
- 	});
-}

+ 0 - 291
src/api/product/product.js

@@ -1,291 +0,0 @@
-import request from '@/utils/requestPIM'
-
-//备注说明
-export const remarkOption = [
-  { key: 1, display_name: '页面检查' },
-  { key: 2, display_name: '版衣检查' },
-  { key: 3, display_name: '模特图' },
-  { key: 4, display_name: '吊牌图' },
-  { key: 5, display_name: '平铺图' },
-  { key: 6, display_name: '细节图' },
-  { key: 7, display_name: '面料成分' },
-  { key: 8, display_name: '洗涤说明' },
-  { key: 9, display_name: '尺码表' },
-  { key: 10, display_name: '缺主图' },
-  { key: 11, display_name: '缺竖图' },
-  { key: 12, display_name: '缺颜色图' },
-  { key: 13, display_name: '缺详情图' },
-  { key: -1, display_name: '其他' },
-];
-
-/**----------------------商品CURD-----------------------------**/
-export function fetchList(query) {
-  return request({
-    url:  '/pimCatentry/list',
-    method: 'get',
-    params: query
-  })
-}
-
-export function queryCatentry(catentryId){
-  //获取商品详情 - 预览
-  return request({
-    url:  '/pimCatentry/info/'+catentryId,
-    method: 'get'
-  })
-}
-export function getCanPushList(param) {
-  //u获取所有可以推送的商品数据
-  return request({
-    url:  '/pimCatentry/list/byPush',
-    method: 'get',
-    params: param
-  })
-}
-export function queryCatentryPreview(catentryId){
-  //获取商品详情 - 预览
-  return request({
-    url:  '/pimCatentry/preview/'+catentryId,
-    method: 'get'
-  })
-}
-
-export function createData(data){
-  //保存商品
-  return request({
-    url:  '/pimCatentry/save',
-    method: 'post',
-    data: data
-  });
-}
-
-//生成SKU
-/**
- * saleAVSelected 选中的销售属性
- * 格式
- * {attrId:[{...},{...}]}
- * {
- *   3: [{attrValId:3,alisa:"B00黑色",...},{attrValId:4,alisa:"J22紫色",...}],
- *   4: [{attrValId:19,alisa:"L",...},{attrValId:14,alisa:"XL",...}]
- * },
- * defaultPrice : 默认价格
- * updateSkuList:商品更新时传入
- * attrValIdRelAttrValObj:属性值Id 对应 的属性值对象
- */
-export function genSku(
-	saleAVSelected,defaultPrice,updateSkuList,
-	attrValIdRelAttrValObj){
-  let skuList = [];
-  let attrRelVals = []; //属性与属性值
-
-  for(let attrId in saleAVSelected){ //attrId --> 3
-    //attrVals = [{attrValId:3,alisa:"B00黑色",...},...]
-    let attrVals = saleAVSelected[attrId];
-    let tempArr = [];
-    for(let idx in attrVals){
-      //attrValId = 12
-      let attrValObj = attrVals[idx];
-      let obj =  {};
-      obj[attrId] = attrValObj.attrValId;
-      tempArr.push(obj);
-    }
-    attrRelVals.push(tempArr);
-  }
-  /**
-   * initAttrVal:第一对象
-   * [{3:12},{3:13}]
-   */
-  let i = 0;
-  let initAttrVal = attrRelVals[0];
-  attrRelVals.splice(0,1);
-	/**
-	 * attrRelVals = [
-	 *  [{4:20},{4:21},{4:22}],
-	 *  [{5:30},{5:31}]
-	 * ]
-	 */
-	for(let idx in attrRelVals){//idx = 1
-  	let tempArr = [];
-  	for(let attrValIdx in initAttrVal ){
-      //initAttrValObj = {3:12}
-      let initAttrValObj = initAttrVal[attrValIdx];
-      let attrValArr = attrRelVals[idx];
-      //attrValArr = [{"4":20},{"4":21},{"4":22}]
-      for(let idxx in attrValArr){
-        let attrValObj = attrValArr[idxx];
-        //attrValObj = {"4":20}
-        let obj = {} ;
-        for(let attrId1 in initAttrValObj){
-          obj[attrId1] = initAttrValObj[attrId1];
-        }
-        for(let attrId2 in attrValObj){
-          obj[attrId2] = attrValObj[attrId2];
-        }
-        tempArr.push(obj);
-      }
-    }
-    /**
-     * [{3:12,4:20},{3:12,4:21},{3:12,4:22}] - 第一次循环
-     */
-    initAttrVal = tempArr;
-  }
-  // console.log(initAttrVal);
-  for(let idx in initAttrVal){
-    let obj = initAttrVal[idx];
-
-    let skuT={
-      "rowNo":i++,
-      "skuId":"",
-      "attrAndVal":initAttrVal[idx],
-      "listPrice":defaultPrice,
-      "skuPartNumber":"",
-      "tempAttrValues":"",
-      "markedTime":null,
-    };
-
-    for(let attrId in obj){
-    	let alias = "attrAndValAlias";
-    	let code = "attrAndValCode";
-    	let remark = "attrAndValReMark";
-    	alias += attrId;
-    	code += attrId;
-    	remark += attrId;
-    	let attrValId = obj[attrId] ;
-    	let attrVal = attrValIdRelAttrValObj[attrValId];
-    	skuT[alias] = attrVal.alias;
-    	skuT[code] = attrVal.code;
-    	skuT[remark] = attrVal.remark;
-    }
-    for(let idx in updateSkuList){
-      let sku = updateSkuList[idx];
-      let skuId = sku.catentryId;
-      let flag = true;
-      for(let attrId in sku.savMap){
-        if(obj[attrId] != sku.savMap[attrId]){
-          flag = false;
-          break;
-        }
-      }
-      if(flag){
-        skuT.skuId = skuId;
-        skuT.skuPartNumber = sku.skuPartNumber;
-        skuT.listPrice = sku.listPrice;
-        skuT.markedTime=sku.markedTime;
-        break;
-      }
-    }
-    if(skuT.markedTime==null||skuT.markedTime==undefined||skuT.markedTime=='') {
-      let date = new Date();
-      skuT.markedTime = date.getFullYear() + "-12-31";
-    }
-    skuList.push(skuT);
-  }
-  // console.log(JSON.stringify(skuList));
-
-  return skuList;
-}
-
-//查询skuList
-export function querySkuList(query) {
-  return request({
-    url:  '/pimCatentry/skuList',
-    method: 'get',
-    params: query
-  })
-}
-
-//跟新商品
-export function updateData(data){
-  return request({
-    url:  '/pimCatentry/update',
-    method: 'post',
-    data: data
-  });
-}
-
-// 获取商品图片
-export function getDetailImage(query){
-	return request({
-    url:  '/pimCatentry/detailImage',
-    method: 'get',
-    params: query
-  });
-}
-
-
-export function syncR6ProductData(query){
-	return request({
-    url:  '/pimCatentry/syncR6Data',
-    method: 'get',
-    params: query
-  });
-}
-
-export function syncTermData(query){
-	return request({
-    url:  '/pimCatentry/syncR6Term',
-    method: 'get',
-    params: query
-  });
-}
-
-export function syncProductImg(){
-	return request({
-    url:  '/pimCatentry/syncProductImg',
-    method: 'get'
-  });
-}
-
-
-export function syncProductALL(){
-	return request({
-    url:  '/pimCatentry/syncR6DataALL',
-    method: 'get'
-  });
-}
-
-
-
-
-export function syncOMSDataALL(data){
-	return request({
-    url:  '/pimCatentry/syncOMSDataByPartNums',
-    method: 'post',
-    data
-  });
-}
-
-
-export function processOmsData(data){
-	return request({
-    url:  '/pimCatentry/processOmsDataByPartNums',
-    method: 'post',
-    data
-  });
-}
-
-//推送单个商品
-export function publishProduct(query){
-  return request({
-    url: '/pimCatentry/publish',
-    method: "get",
-    params: query
-  })
-}
-//批量推送商品
-export function publishAllProduct(query) {
-  return request({
-    url: '/pimCatentry/publishAll',
-    method: 'get',
-    params: query
-  })
-}
-
-//获取所有的期数
-export  function getAllMarkedTime() {
-  return request({
-    url: '/pimCatentry/getAllMarkedTime',
-    method: 'get',
-  })
-}
-

+ 0 - 18
src/api/product/sku.js

@@ -1,18 +0,0 @@
-import request from '@/utils/requestPIM'
-
-export function fetchList(query) {
-  return request({
-    url: '/pimCatentrySku/list',
-    method: 'get',
-    params: query
-  })
-}
-
-//更新sku
-export function updateSkuData(data){
-  return request({
-    url:  '/pimCatentrySku/update',
-    method: 'put',
-    data: data
-  });
-}

+ 0 - 82
src/api/product/template/template.js

@@ -1,82 +0,0 @@
-import request from '@/utils/requestPIM'
-
-//使用范围
-export const applicationScope = [
-  { key:1,desc:"是否显示"},
-  { key:2,desc:"是否必填"}
-];
-
-
-//获取模板列表
-export function fetchList(query) {
-  return request({
-    url:  '/pimTemplate/list',
-    method: 'get',
-    params: query
-  })
-}
-//对象查询,zx新增
-export function infoPimTemplate(id){
-  return request({
-    url:  '/pimTemplate/infoPimTemplate/' + id,
-    method: 'get'
-  })
-}
-
-export function queryObject(id){
-  return request({
-    url:  '/pimTemplate/info/' + id,
-    method: 'get'
-  })
-}
-
-export function queryObjectByTenate(id){
-  return request({
-    url:  '/pimTemplate/infoByTemplate/' + id,
-    method: 'get'
-  })
-}
-
-export function createData(data){
-  return request({
-    url:  '/pimTemplate/save',
-    method: 'post',
-    data
-  })
-}
-//更新模板
-export function updateData(data){
-  return request({
-    url:  '/pimTemplate/update',
-    method: 'put',
-    data
-  })
-}
-
-//属性同步 
-export function syncAttrHandle(data){
-	return request({
-    url:  '/pimTemplate/initTmpl',
-    method: 'post',
-    data
-  })
-}
-
-
-//初始化模板 
-export function initTmplHandle(data){
-	return request({
-    url:  '/pimTemplate/initTmplStep2',
-    method: 'post',
-    data
-  })
-}
-
-//根据属性ID获取属性值 [编辑时]需要带入模板的ID 目的是带出 属性值在指定模板中的规则
-export function queryTmplAttrVal(query) {
-  return request({
-    url: '/pimTemplateAttrVal/listByAttrId',
-    method: 'get',
-    params: query
-  })
-}

+ 0 - 74
src/api/product/template/templateCategory.js

@@ -1,74 +0,0 @@
-import request from '@/utils/requestPIM'
-
-
-
-//获取模板列表
-export function fetchList(query) {
-  return request({
-    url: '/pimTemplateCategory/list',
-    method: 'get',
-    params: query
-  })
-}
-
-//获取模板名称  - 获取所有的模板 -- 绑定时供选择用
-export function queryTemplateAll(query){
-  return request({
-    url: '/pimTemplate/all',
-    method: 'get',
-    params: query
-  })
-}
-  
-
-export function queryObject(id){
-  return request({
-    url: '/pimTemplateCategory/info/' + id,
-    method: 'get'
-  })
-}
-
-
-export function queryCategoryTemplate(id){
-  return request({
-    url: '/pimTemplateCategory/data/' + id,
-    method: 'get'
-  })
-}
-
-//保存模板目录关系
-export function createData(data){
-  return request({
-    url: '/pimTemplateCategory/save',
-    method: 'post',
-    data
-  })
-}
-
-//更新模板目录关系
-export function updateData(data){
-  return request({
-    url: '/pimTemplateCategory/update',
-    method: 'put',
-    data
-  })
-}
-
-//保存模板目录关系
-export function syncCategorySyncData(data){
-  return request({
-    url: '/pimTemplateCategory/syncCategoryAuth',
-    method: 'post',
-    data
-  })
-}
-
-//获取目录模板绑定关系
-export function qTmplCateBindData(query){
-	return request({
-    url: '/pimTemplateCategory/queryBind',
-    method: 'get',
-    params: query
- });
-}
-

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