...
|
...
|
@@ -4,199 +4,198 @@ exports.domain = require('../config/common.js').domain; |
|
|
|
|
|
//商品管理路由配置
|
|
|
exports.res = [
|
|
|
{route: '/-p-l-a-t-f-o-r-m/1',method:"GET"}//此模块不上
|
|
|
// {
|
|
|
// //商品审核
|
|
|
// route: '/supplier/baseaudit/index',
|
|
|
// method: 'GET',
|
|
|
// view: 'pages/goods/index',
|
|
|
// noApi:true,
|
|
|
// data: {
|
|
|
// bottons:'{"detail":true}',
|
|
|
// gridurl:'/goods/review/getList',
|
|
|
// searchStatus: [
|
|
|
// {name:"未审核",value:"100"},
|
|
|
// {name:"已通过",value:"200"},
|
|
|
// {name:"驳回",value:"300"}
|
|
|
// ],
|
|
|
// searchJIT: true,
|
|
|
// pageTitle:"商品审核"
|
|
|
// },
|
|
|
// src:'/goods/index'
|
|
|
// },
|
|
|
// {
|
|
|
// route: '/goods/review/getList',
|
|
|
// method: 'POST',
|
|
|
// url: '/goods/review/getReviewList',
|
|
|
// isJsonRaw:true,
|
|
|
// params: [
|
|
|
// {name: 'skn', type: 'String'},
|
|
|
// {name: 'brandName', type: 'String'},
|
|
|
// {name: 'storeName', type: 'String'},
|
|
|
// {name: 'status', type: 'String'},
|
|
|
// {name: 'jit', type: 'String'}
|
|
|
// ]
|
|
|
// }, {
|
|
|
// //价格管理 -> 代销变价页面渲染
|
|
|
// route: '/goods/pricechange/index',
|
|
|
// method: 'GET',
|
|
|
// view: 'pages/goods/index',
|
|
|
// src:'/goods/index',
|
|
|
// noApi:true,
|
|
|
// data: {
|
|
|
// headerTab: {
|
|
|
// changePrice: true
|
|
|
// },
|
|
|
// secondTitle: '价格管理',
|
|
|
// pageTitle: '代销变价',
|
|
|
// filter: {
|
|
|
// skn: true,
|
|
|
// store: true,
|
|
|
// brand: true,
|
|
|
// supplier: true,
|
|
|
// jit: true,
|
|
|
// onStatus: true,
|
|
|
// stock:true,
|
|
|
// gender: true,
|
|
|
// aCate: true
|
|
|
// },
|
|
|
// bulkImport: true, //批量导入
|
|
|
// bottons:'{"edit":true,"columnsHidisFr":true}',
|
|
|
// gridurl:'/goods/price/list',
|
|
|
// domain: exports.domain,
|
|
|
// download: '/common/batchUpdatePrice.xlsx'
|
|
|
// }
|
|
|
// }, {
|
|
|
// //代销变价 -> 列表数据
|
|
|
// route: '/goods/price/list',
|
|
|
// method: 'POST',
|
|
|
// url: '/product/queryProductPriceList',
|
|
|
// isJsonRaw:true,
|
|
|
// params: [
|
|
|
// {name: 'product_skn', type: 'Number'},
|
|
|
// {name: 'shop_id', type: 'Number'},
|
|
|
// {name: 'brand_id', type: 'Number'},
|
|
|
// {name: 'supplier_id', type: 'Number'},
|
|
|
// {name: 'is_jit', type: 'String'},
|
|
|
// {name: 'is_auditing', type: 'Number'},
|
|
|
// {name: 'stock', type: 'Number'},
|
|
|
// {name: 'gender', type: 'Number'},
|
|
|
// {name: 'max_sort_id', type: 'Number'},
|
|
|
// {name: 'middle_sort_id', type: 'Number'},
|
|
|
// {name: 'small_sort_id', type: 'Number'},
|
|
|
// {name: 'page', type: 'Number'},
|
|
|
// {name: 'size', type: 'Number'}
|
|
|
// ]
|
|
|
// }, {
|
|
|
// //代销变价 -> 获得单个变价详情
|
|
|
// route: '/goods/getPrice',
|
|
|
// method: 'POST',
|
|
|
// url: '/product/getProductPrice',
|
|
|
// isJsonRaw: true,
|
|
|
// params: [
|
|
|
// {name: 'param', type: 'Number'}
|
|
|
// ]
|
|
|
// }, {
|
|
|
// //查询店铺列表接口
|
|
|
// route: '/goods/query/shop',
|
|
|
// method: 'POST',
|
|
|
// url: '/ShopsRest/queryAllShops',
|
|
|
// isJsonRaw: true,
|
|
|
// params: []
|
|
|
// }, {
|
|
|
// //查询品牌列表接口
|
|
|
// route: '/goods/query/brand',
|
|
|
// method: 'POST',
|
|
|
// url: '/erpproduct/brands/queryAllBrands',
|
|
|
// isJsonRaw: true,
|
|
|
// params: []
|
|
|
// }, {
|
|
|
// //查询供应商列表接口
|
|
|
// route: '/goods/query/supplier',
|
|
|
// method: 'POST',
|
|
|
// url: '/supplier/supplier/queryAllSupplier',
|
|
|
// isJsonRaw: true,
|
|
|
// params: []
|
|
|
// }, {
|
|
|
// //查询一级类目列表接口
|
|
|
// route: '/goods/query/maxSort',
|
|
|
// method: 'POST',
|
|
|
// url: '/product/queryAllMaxSortList',
|
|
|
// isJsonRaw: true,
|
|
|
// params: []
|
|
|
// }, {
|
|
|
// //单个变价接口
|
|
|
// route: '/goods/updatePrice',
|
|
|
// method: 'POST',
|
|
|
// url: '/product/updateProductPrice',
|
|
|
// isJsonRaw: true,
|
|
|
// params: [
|
|
|
// {name: 'product_skn', type: 'number'},
|
|
|
// {name: 'sales_price', type: 'number'},
|
|
|
// {name: 'vip_discount_type', type: 'number'},
|
|
|
// {name: 'return_coin', type: 'number'},
|
|
|
// {name: 'vip_price', type: 'number'},
|
|
|
// {name: 'vip1_price', type: 'number'},
|
|
|
// {name: 'vip2_price', type: 'number'},
|
|
|
// {name: 'vip3_price', type: 'number'}
|
|
|
// ]
|
|
|
// }, {
|
|
|
// //批量变价接口
|
|
|
// route: '/goods/batchUpdatePrice',
|
|
|
// method: 'POST',
|
|
|
// url: '/product/batchUpdateProductPrice',
|
|
|
// isJsonRaw: true,
|
|
|
// params: [
|
|
|
// {name: 'batchList', type: 'String'}
|
|
|
// ]
|
|
|
// }, {
|
|
|
// //价格管理 -> 品牌合作模式页面渲染
|
|
|
// route: '/goods/brandCooperation/index',
|
|
|
// method: 'GET',
|
|
|
// view: 'pages/goods/index',
|
|
|
// src:'/goods/brand-cooperation',
|
|
|
// noApi:true,
|
|
|
// data: {
|
|
|
// headerTab: {
|
|
|
// brandCooperation: true
|
|
|
// },
|
|
|
// secondTitle: '价格管理',
|
|
|
// pageTitle: '品牌合作模式设置',
|
|
|
// filter: {
|
|
|
// brandInput: true,
|
|
|
// brandCooperation: true,
|
|
|
// brandCooperationSet: true
|
|
|
// },
|
|
|
// bulkImport: true,
|
|
|
// bottons:'{"edit":true,"columnsHidisFr":true}',
|
|
|
// gridurl:'/goods/brandCooperation/list',
|
|
|
// domain: exports.domain,
|
|
|
// download: '/common/brandCooperation.xlsx'
|
|
|
// }
|
|
|
// }, {
|
|
|
// //品牌合作模式 -> 列表数据
|
|
|
// route: '/goods/brandCooperation/list',
|
|
|
// method: 'POST',
|
|
|
// url: '/brandCooperation/queryBrandCooperationList',
|
|
|
// isJsonRaw:true,
|
|
|
// params: [
|
|
|
// {name: 'cooperateTypeId', type: 'Number'},
|
|
|
// {name: 'brandName', type: 'String'},
|
|
|
// {name: 'setFlag', type: 'Number'},
|
|
|
// {name: 'page', type: 'Number'},
|
|
|
// {name: 'size', type: 'Number'}
|
|
|
// ]
|
|
|
// }, {
|
|
|
// //品牌合作模式 -> 修改合作模式
|
|
|
// route: '/goods/brandCooperation/update',
|
|
|
// method: 'POST',
|
|
|
// url: '/brandCooperation/saveBrandCooperation',
|
|
|
// isJsonRaw:true,
|
|
|
// params: [
|
|
|
// {name: 'id', type: 'Number'},
|
|
|
// {name: 'cooperateTypeId', type: 'String'},
|
|
|
// {name: 'brandId', type: 'Number'}
|
|
|
// ]
|
|
|
// }
|
|
|
{
|
|
|
//商品审核
|
|
|
route: '/supplier/baseaudit/index',
|
|
|
method: 'GET',
|
|
|
view: 'pages/goods/index',
|
|
|
noApi:true,
|
|
|
data: {
|
|
|
bottons:'{"detail":true}',
|
|
|
gridurl:'/goods/review/getList',
|
|
|
searchStatus: [
|
|
|
{name:"未审核",value:"100"},
|
|
|
{name:"已通过",value:"200"},
|
|
|
{name:"驳回",value:"300"}
|
|
|
],
|
|
|
searchJIT: true,
|
|
|
pageTitle:"商品审核"
|
|
|
},
|
|
|
src:'/goods/index'
|
|
|
},
|
|
|
{
|
|
|
route: '/goods/review/getList',
|
|
|
method: 'POST',
|
|
|
url: '/goods/review/getReviewList',
|
|
|
isJsonRaw:true,
|
|
|
params: [
|
|
|
{name: 'skn', type: 'String'},
|
|
|
{name: 'brandName', type: 'String'},
|
|
|
{name: 'storeName', type: 'String'},
|
|
|
{name: 'status', type: 'String'},
|
|
|
{name: 'jit', type: 'String'}
|
|
|
]
|
|
|
}, {
|
|
|
//价格管理 -> 代销变价页面渲染
|
|
|
route: '/goods/pricechange/index',
|
|
|
method: 'GET',
|
|
|
view: 'pages/goods/index',
|
|
|
src:'/goods/index',
|
|
|
noApi:true,
|
|
|
data: {
|
|
|
headerTab: {
|
|
|
changePrice: true
|
|
|
},
|
|
|
secondTitle: '价格管理',
|
|
|
pageTitle: '代销变价',
|
|
|
filter: {
|
|
|
skn: true,
|
|
|
store: true,
|
|
|
brand: true,
|
|
|
supplier: true,
|
|
|
jit: true,
|
|
|
onStatus: true,
|
|
|
stock:true,
|
|
|
gender: true,
|
|
|
aCate: true
|
|
|
},
|
|
|
bulkImport: true, //批量导入
|
|
|
bottons:'{"edit":true,"columnsHidisFr":true}',
|
|
|
gridurl:'/goods/price/list',
|
|
|
domain: exports.domain,
|
|
|
download: '/common/batchUpdatePrice.xlsx'
|
|
|
}
|
|
|
}, {
|
|
|
//代销变价 -> 列表数据
|
|
|
route: '/goods/price/list',
|
|
|
method: 'POST',
|
|
|
url: '/product/queryProductPriceList',
|
|
|
isJsonRaw:true,
|
|
|
params: [
|
|
|
{name: 'product_skn', type: 'Number'},
|
|
|
{name: 'shop_id', type: 'Number'},
|
|
|
{name: 'brand_id', type: 'Number'},
|
|
|
{name: 'supplier_id', type: 'Number'},
|
|
|
{name: 'is_jit', type: 'String'},
|
|
|
{name: 'is_auditing', type: 'Number'},
|
|
|
{name: 'stock', type: 'Number'},
|
|
|
{name: 'gender', type: 'Number'},
|
|
|
{name: 'max_sort_id', type: 'Number'},
|
|
|
{name: 'middle_sort_id', type: 'Number'},
|
|
|
{name: 'small_sort_id', type: 'Number'},
|
|
|
{name: 'page', type: 'Number'},
|
|
|
{name: 'size', type: 'Number'}
|
|
|
]
|
|
|
}, {
|
|
|
//代销变价 -> 获得单个变价详情
|
|
|
route: '/goods/getPrice',
|
|
|
method: 'POST',
|
|
|
url: '/product/getProductPrice',
|
|
|
isJsonRaw: true,
|
|
|
params: [
|
|
|
{name: 'param', type: 'Number'}
|
|
|
]
|
|
|
}, {
|
|
|
//查询店铺列表接口
|
|
|
route: '/goods/query/shop',
|
|
|
method: 'POST',
|
|
|
url: '/ShopsRest/queryAllShops',
|
|
|
isJsonRaw: true,
|
|
|
params: []
|
|
|
}, {
|
|
|
//查询品牌列表接口
|
|
|
route: '/goods/query/brand',
|
|
|
method: 'POST',
|
|
|
url: '/erpproduct/brands/queryAllBrands',
|
|
|
isJsonRaw: true,
|
|
|
params: []
|
|
|
}, {
|
|
|
//查询供应商列表接口
|
|
|
route: '/goods/query/supplier',
|
|
|
method: 'POST',
|
|
|
url: '/supplier/supplier/queryAllSupplier',
|
|
|
isJsonRaw: true,
|
|
|
params: []
|
|
|
}, {
|
|
|
//查询一级类目列表接口
|
|
|
route: '/goods/query/maxSort',
|
|
|
method: 'POST',
|
|
|
url: '/product/queryAllMaxSortList',
|
|
|
isJsonRaw: true,
|
|
|
params: []
|
|
|
}, {
|
|
|
//单个变价接口
|
|
|
route: '/goods/updatePrice',
|
|
|
method: 'POST',
|
|
|
url: '/product/updateProductPrice',
|
|
|
isJsonRaw: true,
|
|
|
params: [
|
|
|
{name: 'product_skn', type: 'number'},
|
|
|
{name: 'sales_price', type: 'number'},
|
|
|
{name: 'vip_discount_type', type: 'number'},
|
|
|
{name: 'return_coin', type: 'number'},
|
|
|
{name: 'vip_price', type: 'number'},
|
|
|
{name: 'vip1_price', type: 'number'},
|
|
|
{name: 'vip2_price', type: 'number'},
|
|
|
{name: 'vip3_price', type: 'number'}
|
|
|
]
|
|
|
}, {
|
|
|
//批量变价接口
|
|
|
route: '/goods/batchUpdatePrice',
|
|
|
method: 'POST',
|
|
|
url: '/product/batchUpdateProductPrice',
|
|
|
isJsonRaw: true,
|
|
|
params: [
|
|
|
{name: 'batchList', type: 'String'}
|
|
|
]
|
|
|
}, {
|
|
|
//价格管理 -> 品牌合作模式页面渲染
|
|
|
route: '/goods/brandCooperation/index',
|
|
|
method: 'GET',
|
|
|
view: 'pages/goods/index',
|
|
|
src:'/goods/brand-cooperation',
|
|
|
noApi:true,
|
|
|
data: {
|
|
|
headerTab: {
|
|
|
brandCooperation: true
|
|
|
},
|
|
|
secondTitle: '价格管理',
|
|
|
pageTitle: '品牌合作模式设置',
|
|
|
filter: {
|
|
|
brandInput: true,
|
|
|
brandCooperation: true,
|
|
|
brandCooperationSet: true
|
|
|
},
|
|
|
bulkImport: true,
|
|
|
bottons:'{"edit":true,"columnsHidisFr":true}',
|
|
|
gridurl:'/goods/brandCooperation/list',
|
|
|
domain: exports.domain,
|
|
|
download: '/common/brandCooperation.xlsx'
|
|
|
}
|
|
|
}, {
|
|
|
//品牌合作模式 -> 列表数据
|
|
|
route: '/goods/brandCooperation/list',
|
|
|
method: 'POST',
|
|
|
url: '/brandCooperation/queryBrandCooperationList',
|
|
|
isJsonRaw:true,
|
|
|
params: [
|
|
|
{name: 'cooperateTypeId', type: 'Number'},
|
|
|
{name: 'brandName', type: 'String'},
|
|
|
{name: 'setFlag', type: 'Number'},
|
|
|
{name: 'page', type: 'Number'},
|
|
|
{name: 'size', type: 'Number'}
|
|
|
]
|
|
|
}, {
|
|
|
//品牌合作模式 -> 修改合作模式
|
|
|
route: '/goods/brandCooperation/update',
|
|
|
method: 'POST',
|
|
|
url: '/brandCooperation/saveBrandCooperation',
|
|
|
isJsonRaw:true,
|
|
|
params: [
|
|
|
{name: 'id', type: 'Number'},
|
|
|
{name: 'cooperateTypeId', type: 'String'},
|
|
|
{name: 'brandId', type: 'Number'}
|
|
|
]
|
|
|
}
|
|
|
|
|
|
]; |
|
|
\ No newline at end of file |
...
|
...
|
|