云仓库
This commit is contained in:
parent
f8f2d75467
commit
59a58021c3
@ -142,6 +142,35 @@ export function categorySelectApi() {
|
|||||||
return request.get(`store/category/select`)
|
return request.get(`store/category/select`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**mer/store/category/topList
|
||||||
|
* @description 商品列表 -- 新商户分类
|
||||||
|
*/
|
||||||
|
export function newCategorySelectApi() {
|
||||||
|
return request.get(`store/category/topList`)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**mer/store/category/topList
|
||||||
|
* @description 商品导入到云商城
|
||||||
|
*/
|
||||||
|
export function importApi(data) {
|
||||||
|
return request.post(`store/product/import`, data)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**mer/store/category/topList
|
||||||
|
* @description 删除云商品
|
||||||
|
*/
|
||||||
|
export function deleteProductCloudApi(data) {
|
||||||
|
return request.post(`store/product/delCloudProduct`, data)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**mer/store/category/topList
|
||||||
|
* @description 云商城列表
|
||||||
|
*/
|
||||||
|
export function cloudProductListApi(data) {
|
||||||
|
return request.get(`store/product/cloudProductList`, data)
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 商品列表 -- 平台分类
|
* @description 商品列表 -- 平台分类
|
||||||
*/
|
*/
|
||||||
@ -528,11 +557,11 @@ export function batchesTempApi(data) {
|
|||||||
}
|
}
|
||||||
/** 参数模板 -- 添加 */
|
/** 参数模板 -- 添加 */
|
||||||
export function productSpecs(data) {
|
export function productSpecs(data) {
|
||||||
return request.post(`store/params/temp/create`,data)
|
return request.post(`store/params/temp/create`, data)
|
||||||
}
|
}
|
||||||
/** 参数模板 -- 编辑 */
|
/** 参数模板 -- 编辑 */
|
||||||
export function specsUpdate(id, data) {
|
export function specsUpdate(id, data) {
|
||||||
return request.post(`store/params/temp/update/${id}`,data)
|
return request.post(`store/params/temp/update/${id}`, data)
|
||||||
}
|
}
|
||||||
/** 参数模板 -- 详情 */
|
/** 参数模板 -- 详情 */
|
||||||
export function productSpecsInfo(id) {
|
export function productSpecsInfo(id) {
|
||||||
@ -552,7 +581,7 @@ export function specsDetailApi(id) {
|
|||||||
}
|
}
|
||||||
/** 添加商品 -- 参数筛选 */
|
/** 添加商品 -- 参数筛选 */
|
||||||
export function specsSelectedApi(data) {
|
export function specsSelectedApi(data) {
|
||||||
return request.get(`store/params/temp/select`,data)
|
return request.get(`store/params/temp/select`, data)
|
||||||
}
|
}
|
||||||
/** 添加商品 -- 参数筛选详情 */
|
/** 添加商品 -- 参数筛选详情 */
|
||||||
export function productSpecsDetailApi(data) {
|
export function productSpecsDetailApi(data) {
|
||||||
@ -567,7 +596,7 @@ export function productBathSvipApi(data) {
|
|||||||
return request.post(`store/product/batch_svip`, data)
|
return request.post(`store/product/batch_svip`, data)
|
||||||
}
|
}
|
||||||
/** 商品列表 -- 立即生成规格 */
|
/** 商品列表 -- 立即生成规格 */
|
||||||
export function generateAttrApi(id,data) {
|
export function generateAttrApi(id, data) {
|
||||||
return request.post(`store/product/get_attr_value/${id}`, data)
|
return request.post(`store/product/get_attr_value/${id}`, data)
|
||||||
}
|
}
|
||||||
/** 商品列表 -- 系统表单下拉 */
|
/** 商品列表 -- 系统表单下拉 */
|
||||||
@ -580,11 +609,11 @@ export function associatedFormInfo(id) {
|
|||||||
}
|
}
|
||||||
/** 商品列表 -- 批量设置 */
|
/** 商品列表 -- 批量设置 */
|
||||||
export function batchSetProduct(data) {
|
export function batchSetProduct(data) {
|
||||||
return request.post(`store/product/batch_process`,data)
|
return request.post(`store/product/batch_process`, data)
|
||||||
}
|
}
|
||||||
/** 商品列表 -- 商品操作记录 */
|
/** 商品列表 -- 商品操作记录 */
|
||||||
export function operateRecordList(id,data) {
|
export function operateRecordList(id, data) {
|
||||||
return request.get(`store/product/get_operate_list/${id}`,data)
|
return request.get(`store/product/get_operate_list/${id}`, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -10,99 +10,108 @@
|
|||||||
import Layout from '@/layout'
|
import Layout from '@/layout'
|
||||||
import { roterPre } from '@/settings'
|
import { roterPre } from '@/settings'
|
||||||
const productRouter =
|
const productRouter =
|
||||||
{
|
{
|
||||||
path: `${roterPre}/product`,
|
path: `${roterPre}/product`,
|
||||||
name: 'product',
|
name: 'product',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
meta: {
|
meta: {
|
||||||
icon: 'dashboard',
|
icon: 'dashboard',
|
||||||
title: '商品管理'
|
title: '商品管理'
|
||||||
|
},
|
||||||
|
alwaysShow: true,
|
||||||
|
redirect: 'noRedirect',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'classify',
|
||||||
|
name: 'ProductClassify',
|
||||||
|
meta: {
|
||||||
|
title: '商品分类',
|
||||||
|
noCache: true
|
||||||
|
},
|
||||||
|
component: () => import('@/views/product/productClassify')
|
||||||
},
|
},
|
||||||
alwaysShow: true,
|
{
|
||||||
redirect: 'noRedirect',
|
path: 'attr',
|
||||||
children: [
|
name: `ProductAttr`,
|
||||||
{
|
meta: {
|
||||||
path: 'classify',
|
title: '商品规格',
|
||||||
name: 'ProductClassify',
|
noCache: true
|
||||||
meta: {
|
|
||||||
title: '商品分类',
|
|
||||||
noCache: true
|
|
||||||
},
|
|
||||||
component: () => import('@/views/product/productClassify')
|
|
||||||
},
|
},
|
||||||
{
|
component: () => import('@/views/product/productAttr')
|
||||||
path: 'attr',
|
},
|
||||||
name: `ProductAttr`,
|
{
|
||||||
meta: {
|
path: 'label',
|
||||||
title: '商品规格',
|
name: `ProductLabel`,
|
||||||
noCache: true
|
meta: {
|
||||||
},
|
title: '商品标签',
|
||||||
component: () => import('@/views/product/productAttr')
|
noCache: true
|
||||||
},
|
},
|
||||||
{
|
component: () => import('@/views/product/productLabel')
|
||||||
path: 'label',
|
},
|
||||||
name: `ProductLabel`,
|
{
|
||||||
meta: {
|
path: 'list',
|
||||||
title: '商品标签',
|
name: `ProductList`,
|
||||||
noCache: true
|
meta: {
|
||||||
},
|
title: '商品列表',
|
||||||
component: () => import('@/views/product/productLabel')
|
noCache: true
|
||||||
},
|
},
|
||||||
{
|
component: () => import('@/views/product/productList')
|
||||||
path: 'list',
|
},
|
||||||
name: `ProductList`,
|
{
|
||||||
meta: {
|
path: 'list/addProduct/:id?/:edit?',
|
||||||
title: '商品列表',
|
component: () => import('@/views/product/addProduct/index'),
|
||||||
noCache: true
|
name: 'AddProduct',
|
||||||
},
|
meta: { title: '商品添加', noCache: true, activeMenu: `${roterPre}/product/list` },
|
||||||
component: () => import('@/views/product/productList')
|
hidden: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'reviews',
|
||||||
|
name: 'ProductReviews',
|
||||||
|
meta: {
|
||||||
|
title: '商品评论', noCache: true, activeMenu: `${roterPre}/product/reviews`
|
||||||
},
|
},
|
||||||
{
|
component: () => import('@/views/product/Reviews/index')
|
||||||
path: 'list/addProduct/:id?/:edit?',
|
},
|
||||||
component: () => import('@/views/product/addProduct/index'),
|
{
|
||||||
name: 'AddProduct',
|
path: 'specs',
|
||||||
meta: { title: '商品添加', noCache: true, activeMenu: `${roterPre}/product/list` },
|
name: 'ProductSpecs',
|
||||||
hidden: true
|
meta: {
|
||||||
|
title: '商品参数',
|
||||||
|
noCache: true,
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
component: () => import('@/views/product/specs/list.vue')
|
||||||
path: 'reviews',
|
},
|
||||||
name: 'ProductReviews',
|
{
|
||||||
meta: {
|
path: 'cloud',
|
||||||
title: '商品评论', noCache: true, activeMenu: `${roterPre}/product/reviews`
|
name: 'productCloud',
|
||||||
},
|
meta: {
|
||||||
component: () => import('@/views/product/Reviews/index')
|
title: '云商品列表',
|
||||||
|
noCache: true,
|
||||||
},
|
},
|
||||||
{
|
component: () => import('@/views/product/cloud/index.vue')
|
||||||
path: 'specs',
|
},
|
||||||
name: 'ProductSpecs',
|
{
|
||||||
meta: {
|
path: 'specs/create/:id?',
|
||||||
title: '商品参数',
|
name: 'ProductSpecsCreate',
|
||||||
noCache: true,
|
meta: {
|
||||||
|
title: '添加参数模板',
|
||||||
},
|
noCache: true,
|
||||||
component: () => import('@/views/product/specs/list.vue')
|
activeMenu: `${roterPre}/product/specs`
|
||||||
},
|
},
|
||||||
{
|
component: () => import('@/views/product/specs/create.vue')
|
||||||
path: 'specs/create/:id?',
|
},
|
||||||
name: 'ProductSpecsCreate',
|
{
|
||||||
meta: {
|
path: 'unit',
|
||||||
title: '添加参数模板',
|
name: `ProductUnit`,
|
||||||
noCache: true,
|
meta: {
|
||||||
activeMenu: `${roterPre}/product/specs`
|
title: '商品单位',
|
||||||
},
|
noCache: true,
|
||||||
component: () => import('@/views/product/specs/create.vue')
|
activeMenu: `${roterPre}/product/unit`
|
||||||
},
|
},
|
||||||
{
|
component: () => import('@/views/product/productUnit')
|
||||||
path: 'unit',
|
},
|
||||||
name: `ProductUnit`,
|
]
|
||||||
meta: {
|
}
|
||||||
title: '商品单位',
|
|
||||||
noCache: true,
|
|
||||||
activeMenu: `${roterPre}/product/unit`
|
|
||||||
},
|
|
||||||
component: () => import('@/views/product/productUnit')
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
export default productRouter
|
export default productRouter
|
||||||
|
1080
src/views/product/cloud/index.vue
Normal file
1080
src/views/product/cloud/index.vue
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user