list.js 9.28 KB
/**
 * 桩数据
 *  @author h1bomb
 */

module.exports = {
    '/supplier/create/list/ajax': function(req, res) {
        res.json({
            code: 200,
            data: [{
                id:1,
                name: '芘芘國際有限公司',
                updateTime: '2016-01-21 09:44:28',
                status: 2
            }, {
                id:2,
                name: '南京恒睿电子商务有限公司',
                updateTime: '2016-01-14 16:38:03',
                status: 0
            }, {
                id:3,
                name: '广州市周子服饰有限公司',
                updateTime: '2016-01-14 16:30:23',
                status: 2
            }]
        })
    },
    '/supplier/create/filter/ajax': function(req, res) {
        res.json({
            code: 200,
            data: [{
                name: '芘芘國際有限公司',
                updateTime: '2016-01-21 09:44:28',
                status: 2
            }]
        })
    },
    '/supplier/index/submit/ajax': function(req, res) {
        res.json({
            code: 200,
            message: '提交成功'
        });
    },
    '/supplier/manage/list': function(req, res) {
        res.json({
            code: 200,
            data: [{
                id:1,
                name: '心飞扬有限公司',
                updateTime: '2016-01-21 11:05:14',
                recentOperation: '编辑',
                status: 0,
                valid: 1
            }, {
                id:2,
                name: '上海热力贸易有限公司',
                updateTime: '2016-01-21 18:18:04',
                recentOperation: '创建',
                status: 1,
                valid: 0
            }, {
                id:3,
                name: '广州市烨德商贸有限公司',
                updateTime: '2016-01-14 18:11:47',
                recentOperation: '创建',
                status: 1,
                valid: 1
            }]
        })
    },
    '/supplier/index/freeze/ajax': function(req, res) {
        res.json({
            code: 200,
            message: '提交审核成功'
        });
    },
    '/supplier/index/recovery/ajax': function(req, res) {
        res.json({
            code: 200,
            message: '提交审核成功'
        });
    },
    '/supplier/audit/list': function(req, res) {
        res.json({
            code: 200,
            data: [{
                id:1,
                name: '心飞扬有限公司',
                updateTime: '2016-01-21 11:05:14',
                recentOperation: '编辑'
            }, {
                id:2,
                name: '上海热力贸易有限公司',
                updateTime: '2016-01-21 18:18:04',
                recentOperation: '创建'
            }, {
                id:3,
                name: '广州市烨德商贸有限公司',
                updateTime: '2016-01-14 18:11:47',
                recentOperation: '创建'
            }]
        })
    },
    '/brand/create/list': function(req, res) {
        res.json({
            code: 200,
            data: [{
                logo: 'http://img10.static.yhbimg.com/brandLogo/2016/01/18/03/01f7e2adcbe8701d1b3f367157820ea59f.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
                nameCn: '心飞扬',
                nameEn: 'xinfeiyang',
                level: 'KA',
                score: '0',
                time: '2016-01-18 11:18:20',
                operate: 1
            }, {
                logo: 'http://img13.static.yhbimg.com/brandLogo/2016/01/14/08/02ba05d8de88846dd34787e9780afb408a.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
                nameCn: 'A.A.SPECTRUM',
                nameEn: 'A.A.SPECTRUM',
                level: 'C',
                score: '0',
                time: '2016-01-14 16:34:42',
                operate: 0
            }]
        })
    },
    '/brand/index/close/ajax': function(req, res) {
        res.json({
            code: 200,
            message: '操作成功'
        });
    },
    '/brand/index/open/ajax': function(req, res) {
        res.json({
            code: 200,
            message: '操作成功'
        });
    },
    '/pact/create/list': function(req, res) {
        res.json({
            code: 200,
            data: [{
                name: '网络代理销售合同PUCCA',
                number: '16YH33',
                supplier: '广州市动尚卡通产品有限公司',
                brand: ['PUCCA', '111', '333'],
                pattern: '代销入库',
                attr: '主合同',
                timeFrom: '2015-12-31',
                timeTo: '2016-12-30',
                operate: '创建',
                status: 0
            }, {
                name: '网络代理销售合同自然元素&FairyFair&小淑女与约翰little fairy&john&淑女生活',
                number: '15YHZ9',
                supplier: '深圳市淑女屋时装股份有限公司',
                brand: ['自然元素', '淑女屋'],
                pattern: '代销入库',
                attr: '主合同',
                timeFrom: '2015-12-31',
                timeTo: '2016-12-30',
                operate: '创建',
                status: 2
            }, {
                name: '网络代理销售合同uncommon&Power Support&RetinaGuard&HOMI',
                number: '15YHZ9',
                supplier: '深圳市淑女屋时装股份有限公司',
                brand: ['Uncommon'],
                pattern: '代销入库',
                attr: '主合同',
                timeFrom: '2015-12-31',
                timeTo: '2016-12-30',
                operate: '创建',
                status: 3
            }]
        })
    },
    '/pact/add/list/ajax': function(req, res) {
        res.json({
            code: 200,
            data: [{
                name: '上海热力贸易有限公司',
                pattern: '代销入库',
                operate: true
            }, {
                name: '上海热力贸易有限公司',
                pattern: '代销入库',
                operate: false
            }]
        })
    },
    '/pact/manage/list/ajax': function(req, res) {
        res.json({
            code: 200,
            data: [{
                name: '网络代理销售合同PUCCA',
                number: '16YH33',
                supplier: '广州市动尚卡通产品有限公司',
                brand: ['PUCCA'],
                pattern: '代销入库',
                attr: '主合同',
                timeFrom: '2015-12-31',
                timeTo: '2016-12-30',
                operate: 1,
                status: 0
            }, {
                name: '网络代理销售合同PUCCA',
                number: '16YH33',
                supplier: '广州市动尚卡通产品有限公司',
                brand: ['PUCCA'],
                pattern: '代销入库',
                attr: '主合同',
                timeFrom: '2015-12-31',
                timeTo: '2016-12-30',
                operate: 1,
                status: 1
            }, {
                name: '心飞扬jit主合同',
                number: 'xinfeiyang20160118',
                supplier: '心飞扬有限公司',
                brand: ['心飞扬', 'aa'],
                pattern: '代销入库',
                attr: '主合同',
                timeFrom: '2015-12-31',
                timeTo: '2016-12-30',
                operate: 2,
                status: 1
            }, {
                name: '网络代理销售合同MarcByMarcJacobs&Kenzo&BLOCCO5&B5BYBLOCCO5',
                number: '15YHM55',
                supplier: '埃科斯丹(上海)商贸股份有限公司 ',
                brand: ['MARC BY MARC JACOBS', 'B5 BY BLOCCO5', 'BLOCCO5', 'KENZO'],
                pattern: '代销入库',
                attr: '主合同',
                timeFrom: '2015-12-31',
                timeTo: '2016-12-30',
                operate: 0,
                status: 1
            }]
        })
    },
    '/pact/manage/modify/ajax': function(req, res) {
        res.json({
            code: 200,
            message: '操作成功'
        });
    },
    '/pact/manage/renew/ajax': function(req, res) {
        res.json({
            code: 200,
            message: '操作成功'
        });
    },
    '/pact/manage/relieve/ajax': function(req, res) {
        res.json({
            code: 200,
            message: '操作成功'
        });
    },
    '/pact/audit/list/ajax': function(req, res) {
        res.json({
            code: 200,
            data: [{
                name: '网络代理销售合同PUCCA',
                number: '16YH33',
                supplier: '广州市动尚卡通产品有限公司',
                brand: ['PUCCA'],
                pattern: '代销入库',
                attr: '主合同',
                time: '2016-01-13',
                timeFrom: '2015-12-31',
                timeTo: '2016-12-30'
            }, {
                name: '心飞扬jit主合同',
                number: 'xinfeiyang20160118',
                supplier: '心飞扬有限公司',
                brand: ['心飞扬', 'aa'],
                pattern: '代销入库',
                attr: '主合同',
                time: '2016-01-12',
                timeFrom: '2015-12-31',
                timeTo: '2016-12-30'
            }]
        })
    }
}