cod.js 1.76 KB
module.exports=function(app) {
	/*品牌货到付款限制页面路由*/
	app.get("/goods/cod/brand/index","goods.cod.Brand",function(){
		this.$extend={
			moduleName:"货到付款限制",
			pageName:"品牌设置"
		}
	});
	
	/*分页*/
	app.post("/payDelivery/queryTotalBrandPayDelivery","cod_queryTotalBrandPayDelivery");

	/*开启 & 关闭 货到付款*/
	app.post("/payDelivery/addPayDeliveryCheck","cod_addPayDeliveryCheck");

	/*通过 & 驳回申请*/
	app.post("/payDelivery/reviewPayDeliveryCheck","cod_reviewPayDeliveryCheck");

	/*获取tab上的数量*/
	app.post("/payDelivery/queryCountBrandPayDelivery","cod_queryCountBrandPayDelivery");

	/*单品货到付款限制页面路由*/
	app.get("/goods/cod/goods/index","goods.cod.Goods",function(){
		this.$extend={
			moduleName:"货到付款限制",
			pageName:"单品设置"
		}
	});

	/*列表*/
	app.post("/payDelivery/queryPayDeliveryList","cod_queryPayDeliveryList");

	/*开启货到付款*/
	app.post("/payDelivery/openPayDelivery","cod_openPayDelivery");

	/*关闭货到付款*/
	app.post("/payDelivery/closePayDelivery","cod_closePayDelivery");

	/*通过申请*/
	app.post("/payDelivery/passPayDelivery","cod_passPayDelivery");

	/*驳回申请*/
	app.post("/payDelivery/rejectPayDelivery","cod_rejectPayDelivery");

	/*获取skn列表*/
	app.post("/payDelivery/queryPayDeliveryProductSkn","cod_queryPayDeliveryProductSkn");

	/*获取tab上的数量*/
	app.post("/payDelivery/queryCountProductPayDelivery","cod_queryCountProductPayDelivery");

	/*获取品牌列表*/
	app.post("/payDelivery/queryPayDeliveryBrandName","cod_queryPayDeliveryBrandName");

	/*批量导入*/
	app.get("/goods/cod/upload","goods.cod.Upload",function(){
		this.$extend={
			moduleName:"货到付款限制",
			pageName:"批量导入"
		}
	});
}