shelfAudit.js 2.49 KB
/**
 * Created by wangqianjun on 16/3/11.
 * 上架审核
 */

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

exports.res = [
    {//基础商品列表
        route:'/supplier/baseproduct/audit',
        method:'GET',
        view:'pages/goods/shelf_audit/index',
        src: '/goods/shelf_audit/index',
        data:{
            iscreate:true
        }
    },

    {
        // 列表头部各个审核状态的数量
        route:'/supplier/baseproduct/auditCount',
        method:'POST',
        url:'/product/queryTabCheck',
        params:[
            {name: 'productSkn',type: 'Number'},
            {name: 'productSkc',type: 'Number'},
            {name: 'productSku',type: 'Number'},
            {name: 'productName',type: 'String'},
            {name: 'shopId',type: 'Number'},
            {name: 'brandId',type: 'Number'},
            {name: 'isOutLets',type:'String'},
            {name: 'isAdvance',type:'String'},
            {name: 'gender',type:'String'},
            {name: 'isJit',type:'String'},
            {name: 'maxSortId',type:'Number'},
            {name: 'middleSortId',type: 'Number'},
            {name: 'smallSortId',type: 'Number'},
            {name: 'page',type: 'Number'},
            {name: 'size',type: 'Number'},

        ]
    },

    {//ajax列表数据
        route:'/supplier/baseproduct/ajax/index',
        method:'POST',
        url:'/product/queryNetSaleInforList',
        params:[

            {name: 'productSkn',type: 'Number'},
            {name: 'productSkc',type: 'Number'},
            {name: 'productSku',type: 'Number'},
            {name: 'productName',type: 'String'},
            {name: 'shopId',type: 'Number'},
            {name: 'brandId',type: 'Number'},
            {name: 'isOutLets',type:'String'},
            {name: 'isAdvance',type:'String'},
            {name: 'gender',type:'String'},
            {name: 'isJit',type:'String'},
            {name: 'maxSortId',type:'Number'},
            {name: 'middleSortId',type: 'Number'},
            {name: 'smallSortId',type: 'Number'},
            {name: 'page',type: 'Number'},
            {name: 'size',type: 'Number'},
            {name: 'productStatusStr',type: 'String'},

        ]
    },


    {//驳回操作
        route:'/supplier/baseproduct/auditReject',
        method:'POST',
        url:'/product/updateProductSknStatus',
        params:[
            {name: 'productSknList',type: 'String'},
            {name: 'targetStatus',type: 'Number'},
            {name: 'rejectReason',type:'String'},
        ]
    }
];