basegoods.js 2.16 KB

module.exports=function(app) {
	/*基础商品列表*/
	app.get("/supplier/baseproduct/index","goods.basegoods.Index",function(){
		this.$extend={
			moduleName:"基础商品",
			pageName:"商品列表"
		}
	});

	/*列表头部各个审核状态的数量*/
	app.post("/base/goods/ajax/auditCount","basegoods_getbaseProductCountByStatus");

	/*ajax列表数据*/
	app.post("/product/getBaseProductList","basegoods_getBaseProductList");

	/*添加页面*/
	app.get("/base/goods/add","goods.basegoods.Edit","basegoods_queryProductColors",function(){
		this.$extend={
			moduleName:"基础商品",
			pageName:"添加商品"
		}
	});
    
	/*添加数据接口*/
	app.post("/base/goods/ajax/add","basegoods_addBaseProduct");

	/*修改页面*/
	app.get("/base/goods/update/:productSkn/:isAuditing","goods.basegoods.Edit","basegoods_queryProductColors",function(){
		this.$extend={
			moduleName:"基础商品",
			pageName:"修改商品"
		}
	});

	/*删除*/
	app.post("/base/goods/ajax/delete","basegoods_deleteBaseProduct");

	/*修改接口*/
	app.post("/base/goods/ajax/update","basegoods_updateBaseProduct");

	/*基础商品详情空页面*/
	app.get("/base/goods/info/:productSkn/:isAuditing","goods.basegoods.Info");

	/*获取商品详情数据*/
	app.post("/base/goods/getData","goods_getBaseProduct");

	/*获取颜色*/
	app.post("/base/goods/queryProductColors","goods_queryProductColors");

	/*通过*/
	app.post("/base/goods/pass","goods_batchAuditPassBaseProduct");

	/*驳回*/
	app.post("/base/goods/reject","goods_batchAuditRejectBaseProduct");

	/*商品属性*/
	app.post("/base/goods/queryAllProductAttr","goods_queryAllBySortId4Html");

	/*尺码列表*/
	app.post("/base/goods/queryMaterialList","goods_queryMaterialList");

	/*类目*/
	app.post("/goods/query/querySortBySmallSort","goods_querySortBySmallSort");

	/*批量*/
	app.get("/goods/piliang/batch","goods.basegoods.Index");

	/*基础商品录入*/
	app.get("/goods/base/batch","goods.basebatch.Index");

	/*检查SKU*/
	app.post("/goods/base/checkSkuBarCodeExist","goods_checkSkuBarCodeExist");

	/*通过任务ID查看任务是否被执行完*/
	app.post("/product/queryBatchImportResult","goods_queryBatchImportResult");
}