cod.js 4.88 KB
/**
 * Created by wangqianjun on 16/4/11.
 * 【货到付款限制】路由
 */

exports.domain = require('../config/common.js').domain;

exports.res = [{
// ====================== 品牌货到付款限制页面路由 ===================
    route: '/goods/cod/brand/index',
    method: 'GET',
    view: 'pages/goods/cod-brand',
    src: '/goods/cod-brand'
}, {
    route: '/payDelivery/queryTotalBrandPayDelivery',
    method: 'POST',
    url: '/payDelivery/queryTotalBrandPayDelivery',
    params: [
        {name: 'brandId', type: 'Number'},
        {name: 'brandName', type: 'String'},
        {name: 'isPayDelivery', type: 'Number'},
        {name: 'checkStatus', type: 'Number'},
        {name: 'page', type: 'Number'},
        {name: 'size', type: 'Number'}
    ]
}, {
    // 开启 & 关闭 货到付款
    route: '/payDelivery/addPayDeliveryCheck',
    method: 'POST',
    url: '/payDelivery/addPayDeliveryCheck',
    params: [
        {name: 'isPayDelivery', type: 'Number'},
        {name: 'brandName', type: 'String'},
        {name: 'brandId', type: 'Number'}
    ]
},{
    // 通过 & 驳回申请
    route: '/payDelivery/reviewPayDeliveryCheck',
    method: 'POST',
    url: '/payDelivery/reviewPayDeliveryCheck',
    params: [
        {name: 'brandName', type: 'String'},
        {name: 'brandId', type: 'Number'},
        {name: 'rejectReason', type: 'String'},
        {name: 'isPayDelivery', type: 'Number'},
        {name: 'checkStatus', type: 'Number'},
        {name: 'id', type: 'Number'}
    ]
},
    // 获取tab上的数量
    {
        route: '/payDelivery/queryCountBrandPayDelivery',
        method: 'POST',
        url: '/payDelivery/queryCountBrandPayDelivery',
        params: [
            {name: 'brandId', type: 'Number'},
            {name: 'isPayDelivery', type: 'Number'}
        ]
    },
// ====================== 单品货到付款限制页面路由 ===================
    {
        route: '/goods/cod/goods/index',
        method: 'GET',
        view: 'pages/goods/cod-goods',
        src: '/goods/cod-goods'
    }, {
        route: '/payDelivery/queryPayDeliveryList',
        method: 'POST',
        url: '/payDelivery/queryPayDeliveryList',
        params: [
            {name: 'brandId', type: 'Number'},
            {name: 'brandName', type: 'String'},
            {name: 'isPayDelivery', type: 'Number'},
            {name: 'status', type:'Number'},
            {name: 'productSkn', type:'Number'},
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'}
        ]
    },
    {
        // 开启货到付款
        route: '/payDelivery/openPayDelivery',
        method: 'POST',
        url: '/payDelivery/openPayDelivery',
        params: [
            {name: 'productSkn', type: 'String'},
            {name: 'brandName', type: 'String'},
            {name: 'brandId', type: 'Number'}
        ]
    },{
        // 关闭货到付款
        route: '/payDelivery/closePayDelivery',
        method: 'POST',
        url: '/payDelivery/closePayDelivery',
        params: [
            {name: 'productSkn', type: 'String'},
            {name: 'brandName', type: 'String'},
            {name: 'brandId', type: 'Number'}
        ]
    },{
        // 通过申请
        route: '/payDelivery/passPayDelivery',
        method: 'POST',
        url: '/payDelivery/passPayDelivery',
        params: [
            {name: 'productSkn', type: 'String'},
            {name: 'brandName', type: 'String'},
            {name: 'brandId', type: 'Number'},
            {name: 'id', type: 'Number'}
        ]
    },{
        // 驳回申请
        route: '/payDelivery/rejectPayDelivery',
        method: 'POST',
        url: '/payDelivery/rejectPayDelivery',
        params: [
            {name: 'productSkn', type: 'String'},
            {name: 'brandName', type: 'String'},
            {name: 'rejectReason', type: 'String'},
            {name: 'brandId', type: 'Number'},
            {name: 'id', type: 'Number'}
        ]
    },
    // 获取skn列表
    {
        route: '/payDelivery/queryPayDeliveryProductSkn',
        method: 'POST',
        url: '/payDelivery/queryPayDeliveryProductSkn',
        params: [
            {name: 'idName', type: 'String'}
        ]
    }, // 获取tab上的数量
    {
        route: '/payDelivery/queryCountProductPayDelivery',
        method: 'POST',
        url: '/payDelivery/queryCountProductPayDelivery',
        params: [
            {name: 'productSkn', type: 'String'},
            {name: 'brandId', type: 'Number'},
            {name: 'isPayDelivery', type: 'Number'}
        ]
    }, { // 获取品牌列表
        route: '/payDelivery/queryPayDeliveryBrandName',
        method: 'POST',
        url: '/payDelivery/queryPayDeliveryBrandName',
        params: [
            {name: 'idName', type: 'String'}
        ]
    }, { // 批量导入
        route: '/goods/cod/upload',
        method: 'GET',
        view: 'pages/goods/cod-upload',
        src: '/goods/cod-upload'
    }
];