2 커밋 cd977e16a2 ... 40562a11f1

작성자 SHA1 메시지 날짜
  wangxy 40562a11f1 Merge remote-tracking branch 'origin/master' 1 주 전
  wangxy da18716180 商城管理修复 1 주 전

+ 7 - 7
src/api/hisStore/shippingTemplates.js

@@ -3,7 +3,7 @@ import request from '@/utils/request'
 // 查询运费模板列表
 export function listShippingTemplates(query) {
   return request({
-    url: '/store/shippingTemplates/list',
+    url: '/store/store/shippingTemplates/list',
     method: 'get',
     params: query
   })
@@ -12,7 +12,7 @@ export function listShippingTemplates(query) {
 // 查询运费模板详细
 export function getShippingTemplates(shippingId) {
   return request({
-    url: '/store/shippingTemplates/' + shippingId,
+    url: '/store/store/shippingTemplates/' + shippingId,
     method: 'get'
   })
 }
@@ -20,7 +20,7 @@ export function getShippingTemplates(shippingId) {
 // 新增运费模板
 export function addShippingTemplates(data) {
   return request({
-    url: '/store/shippingTemplates',
+    url: '/store/store/shippingTemplates',
     method: 'post',
     data: data
   })
@@ -29,7 +29,7 @@ export function addShippingTemplates(data) {
 // 修改运费模板
 export function updateShippingTemplates(data) {
   return request({
-    url: '/store/shippingTemplates',
+    url: '/store/store/shippingTemplates',
     method: 'put',
     data: data
   })
@@ -38,7 +38,7 @@ export function updateShippingTemplates(data) {
 // 删除运费模板
 export function delShippingTemplates(shippingId) {
   return request({
-    url: '/store/shippingTemplates/' + shippingId,
+    url: '/store/store/shippingTemplates/' + shippingId,
     method: 'delete'
   })
 }
@@ -46,14 +46,14 @@ export function delShippingTemplates(shippingId) {
 // 导出运费模板
 export function exportShippingTemplates(query) {
   return request({
-    url: '/store/shippingTemplates/export',
+    url: '/store/store/shippingTemplates/export',
     method: 'get',
     params: query
   })
 }
 export function getAllShippingTemplates() {
   return request({
-    url: '/store/shippingTemplates/getAllList',
+    url: '/store/store/shippingTemplates/getAllList',
     method: 'get'
   })
 }

+ 14 - 14
src/api/hisStore/storeProduct.js

@@ -3,7 +3,7 @@ import request from '@/utils/request'
 // 查询商品列表
 export function listStoreProduct(query) {
   return request({
-    url: '/store/storeProduct/list',
+    url: '/store/store/storeProduct/list',
     method: 'get',
     params: query
   })
@@ -11,7 +11,7 @@ export function listStoreProduct(query) {
 
 export function batchModify(param) {
   return request({
-    url: '/store/storeProduct/batchModify',
+    url: '/store/store/storeProduct/batchModify',
     method: 'post',
     data: param
   })
@@ -19,7 +19,7 @@ export function batchModify(param) {
 
 export function batchAudit(param) {
   return request({
-    url: '/store/storeProduct/batchAudit',
+    url: '/store/store/storeProduct/batchAudit',
     method: 'post',
     data: param
   })
@@ -28,7 +28,7 @@ export function batchAudit(param) {
 // 查询商品详细
 export function getStoreProduct(productId) {
   return request({
-    url: '/store/storeProduct/' + productId,
+    url: '/store/store/storeProduct/' + productId,
     method: 'get'
   })
 }
@@ -36,7 +36,7 @@ export function getStoreProduct(productId) {
 
 export function addOrEdit(data) {
   return request({
-    url: '/store/storeProduct/addOrEdit',
+    url: '/store/store/storeProduct/addOrEdit',
     method: 'post',
     data: data
   })
@@ -44,7 +44,7 @@ export function addOrEdit(data) {
 
 export function importTemplate() {
   return request({
-    url: '/store/storeProduct/importTemplate',
+    url: '/store/store/storeProduct/importTemplate',
     method: 'get'
   })
 }
@@ -53,14 +53,14 @@ export function importTemplate() {
 // 删除商品
 export function delStoreProduct(productId) {
   return request({
-    url: '/store/storeProduct/' + productId,
+    url: '/store/store/storeProduct/' + productId,
     method: 'delete'
   })
 }
 // 复制商品
 export function copyStoreProduct(productId) {
   return request({
-    url: '/store/storeProduct/copyStoreProduct?productId=' + productId,
+    url: '/store/store/storeProduct/copyStoreProduct?productId=' + productId,
     method: 'get'
   })
 }
@@ -68,7 +68,7 @@ export function copyStoreProduct(productId) {
 // 批量复制商品
 export function bulkCopy(productId) {
   return request({
-    url: '/store/storeProduct/bulkCopy/' + productId,
+    url: '/store/store/storeProduct/bulkCopy/' + productId,
     method: 'get'
   })
 }
@@ -76,7 +76,7 @@ export function bulkCopy(productId) {
 // 导出商品
 export function exportStoreProduct(query) {
   return request({
-    url: '/store/storeProduct/export',
+    url: '/store/store/storeProduct/export',
     method: 'get',
     params: query
   })
@@ -84,7 +84,7 @@ export function exportStoreProduct(query) {
 
 export function genFormatAttr(productId,json) {
   return request({
-    url: '/store/storeProduct/genFormatAttr/'+productId,
+    url: '/store/store/storeProduct/genFormatAttr/'+productId,
     method: 'post',
     data: json
   })
@@ -93,7 +93,7 @@ export function genFormatAttr(productId,json) {
 
 export function getStoreProductAttrValueList(query) {
   return request({
-    url: '/store/storeProduct/getStoreProductAttrValueList',
+    url: '/store/store/storeProduct/getStoreProductAttrValueList',
     method: 'get',
     params: query
   })
@@ -102,7 +102,7 @@ export function getStoreProductAttrValueList(query) {
 
 export function getStoreTuiProductAttrValueList(query) {
   return request({
-    url: '/store/storeProduct/getStoreTuiProductAttrValueList',
+    url: '/store/store/storeProduct/getStoreTuiProductAttrValueList',
     method: 'get',
     params: query
   })
@@ -110,7 +110,7 @@ export function getStoreTuiProductAttrValueList(query) {
 
 export function productBySearCh(query) {
   return request({
-    url: '/store/storeProduct/listBySearch',
+    url: '/store/store/storeProduct/listBySearch',
     method: 'get',
     params: query
   })

+ 7 - 7
src/api/hisStore/storeProductCategory.js

@@ -3,7 +3,7 @@ import request from '@/utils/request'
 // 查询商品分类列表
 export function listStoreProductCategory(query) {
   return request({
-    url: '/store/storeProductCategory/list',
+    url: '/store/store/storeProductCategory/list',
     method: 'get',
     params: query
   })
@@ -12,7 +12,7 @@ export function listStoreProductCategory(query) {
 // 查询商品分类详细
 export function getStoreProductCategory(cateId) {
   return request({
-    url: '/store/storeProductCategory/' + cateId,
+    url: '/store/store/storeProductCategory/' + cateId,
     method: 'get'
   })
 }
@@ -20,7 +20,7 @@ export function getStoreProductCategory(cateId) {
 // 新增商品分类
 export function addStoreProductCategory(data) {
   return request({
-    url: '/store/storeProductCategory',
+    url: '/store/store/storeProductCategory',
     method: 'post',
     data: data
   })
@@ -29,7 +29,7 @@ export function addStoreProductCategory(data) {
 // 修改商品分类
 export function updateStoreProductCategory(data) {
   return request({
-    url: '/store/storeProductCategory',
+    url: '/store/store/storeProductCategory',
     method: 'put',
     data: data
   })
@@ -38,7 +38,7 @@ export function updateStoreProductCategory(data) {
 // 删除商品分类
 export function delStoreProductCategory(cateId) {
   return request({
-    url: '/store/storeProductCategory/' + cateId,
+    url: '/store/store/storeProductCategory/' + cateId,
     method: 'delete'
   })
 }
@@ -46,14 +46,14 @@ export function delStoreProductCategory(cateId) {
 // 导出商品分类
 export function exportStoreProductCategory(query) {
   return request({
-    url: '/store/storeProductCategory/export',
+    url: '/store/store/storeProductCategory/export',
     method: 'get',
     params: query
   })
 }
 export function getAllStoreProductCategory() {
   return request({
-    url: '/store/storeProductCategory/getAllList' ,
+    url: '/store/store/storeProductCategory/getAllList' ,
     method: 'get'
   })
 }

+ 7 - 7
src/api/hisStore/storeProductRule.js

@@ -3,7 +3,7 @@ import request from '@/utils/request'
 // 查询商品规则值(规格)列表
 export function listStoreProductRule(query) {
   return request({
-    url: '/store/storeProductRule/list',
+    url: '/store/store/storeProductRule/list',
     method: 'get',
     params: query
   })
@@ -12,7 +12,7 @@ export function listStoreProductRule(query) {
 // 查询商品规则值(规格)详细
 export function getStoreProductRule(id) {
   return request({
-    url: '/store/storeProductRule/' + id,
+    url: '/store/store/storeProductRule/' + id,
     method: 'get'
   })
 }
@@ -20,7 +20,7 @@ export function getStoreProductRule(id) {
 // 新增商品规则值(规格)
 export function addStoreProductRule(data) {
   return request({
-    url: '/store/storeProductRule',
+    url: '/store/store/storeProductRule',
     method: 'post',
     data: data
   })
@@ -29,7 +29,7 @@ export function addStoreProductRule(data) {
 // 修改商品规则值(规格)
 export function updateStoreProductRule(data) {
   return request({
-    url: '/store/storeProductRule',
+    url: '/store/store/storeProductRule',
     method: 'put',
     data: data
   })
@@ -38,7 +38,7 @@ export function updateStoreProductRule(data) {
 // 删除商品规则值(规格)
 export function delStoreProductRule(id) {
   return request({
-    url: '/store/storeProductRule/' + id,
+    url: '/store/store/storeProductRule/' + id,
     method: 'delete'
   })
 }
@@ -46,7 +46,7 @@ export function delStoreProductRule(id) {
 // 导出商品规则值(规格)
 export function exportStoreProductRule(query) {
   return request({
-    url: '/store/storeProductRule/export',
+    url: '/store/store/storeProductRule/export',
     method: 'get',
     params: query
   })
@@ -55,7 +55,7 @@ export function exportStoreProductRule(query) {
 
 export function getAllStoreProductRule() {
   return request({
-    url: '/store/storeProductRule/getAllList',
+    url: '/store/store/storeProductRule/getAllList',
     method: 'get'
   })
 }

+ 2 - 2
src/views/hisStore/components/productDetails.vue

@@ -129,8 +129,8 @@ export default {
   methods: {
     getStoreProduct(productId) {
       getStoreProduct(productId).then(response => {
-        this.product = response.product;
-        this.items=response.values
+        this.product = response.data;
+        this.items=response.attrs
       });
     },
   }