pact.js 10.9 KB
module.exports = {
    '/pact/create/list': function (req, res) {
        res.json({
            code: 200,
            message:'请求成功',
            data: {
                list: [
                    {
                        agreementId:'1',
                        agreementName: '网络代理销售合同PUCCA',
                        agreementCode: '16YH33',
                        supplierName: '广州市动尚卡通产品有限公司',
                        brand: ['PUCCA', '111', '333'],
                        businessModelName: '代销入库',
                        agreementTypeName: '主合同',
                        agreementStartTime: '2015-12-31',
                        agreementEndTime: '2016-12-30',
                        operationsName: '创建',
                        status: 200
                        }
                ],
                page: 1,
                totalpage: 142,
                size: 50,
                total:1000
            }
        })
    },
    '/pact/add/list/ajax': function(req, res) {
        res.json({
            code: 200,
            message: '请求成功',
            data: {
                list: [{
                        agreementName: '上海热力贸易有限公司',
                        businessModelName: '代销入库',
                        operateName: "添加补充合同"
                    }, {
                        agreementName: '上海热力贸易有限公司',
                        businessModelName: '代销入库',
                        operateName: "添加主合同"
                    }],
                page: 1,
                totalpage: 142,
                size: 50,
                total: 1000
            }
        })
    },
    '/interface/pact/info':function(req, res){
        var JSON = {
            contractsDatas: '[{"operation_service":{"type":"1","name":"代运营-YOHO运营","value":"0.00"},"photographic_service":{"type":"1","name":"使用摄影服务","value":"0.00"},"size_service":{"type":"1","name":"使用尺码测量","value":"0.00"},"storage_service_koudian":"0.00","ruledatas":[{"maxSort":{"name":"所有一级目录","value":"0"},"middleSort":{"name":"所有二级目录","value":"0"},"smallSort":{"name":"所有三级目录","value":"0"},"sort":{"name":"所有四级目录","value":"0"},"commissions":[{"zhe":"0","kou":"0.00"}],"discount":"0","key":"0-0-0-0"}],"supplier_name":{"name":"上海热力贸易有限公司","value":"1120"}},{"operation_service":{"type":"1","name":"代运营-YOHO运营","value":"0.00"},"photographic_service":{"type":"1","name":"使用摄影服务","value":"0.00"},"size_service":{"type":"1","name":"使用尺码测量","value":"0.00"},"storage_service_koudian":"0.00","ruledatas":[{"maxSort":{"name":"所有一级目录","value":"0"},"middleSort":{"name":"所有二级目录","value":"0"},"smallSort":{"name":"所有三级目录","value":"0"},"sort":{"name":"所有四级目录","value":"0"},"commissions":[{"zhe":"0","kou":"0.00"}],"discount":"0","key":"0-0-0-0"}],"supplier_name":{"name":"广州市烨德商贸有限公司","value":"1205"}}]',
            agreementEndTime: "2016-01-29",
            agreementName: "111",
            agreementStartTime: "2016-01-05",
            settlementPeriod: '2',
            invoiceType: '3',
            agreementCode: '111',
            agreementFile: "http://img01.yohoboys.com/o_1a9mt81m1to11hg0d5t13de1idj7.png?imageMogr2/auto-orient/thumbnail/x100/gravity/Center/quality/100/crop/625x794/format/png",
            agreementId: "1"
        }
        res.json(JSON);
    },
    '/interface/supplier/agreement/save':function(req,res){
        res.json({
            code: 200,
            message: '添加成功!'
        });
    },
    '/interface/sort/type/ajax':function(req,res){
        var JSON=[{name:"男装",value:"0"},{name:"男装",value:"0"},{name:"男装",value:"0"}];
        res.json(JSON);
    },
    '/interface/supplier/update':function(req,res){
        var JSON={
            contractsDatas: '[{"operation_service":{"type":"1","name":"代运营-YOHO运营","value":"0.00"},"photographic_service":{"type":"1","name":"使用摄影服务","value":"0.00"},"size_service":{"type":"1","name":"使用尺码测量","value":"0.00"},"storage_service_koudian":"0.00","ruledatas":[{"maxSort":{"name":"所有一级目录","value":"0"},"middleSort":{"name":"所有二级目录","value":"0"},"smallSort":{"name":"所有三级目录","value":"0"},"sort":{"name":"所有四级目录","value":"0"},"commissions":[{"zhe":"0","kou":"0.00"}],"discount":"0","key":"0-0-0-0"}],"supplier_name":{"name":"上海热力贸易有限公司","value":"1120"}},{"operation_service":{"type":"1","name":"代运营-YOHO运营","value":"0.00"},"photographic_service":{"type":"1","name":"使用摄影服务","value":"0.00"},"size_service":{"type":"1","name":"使用尺码测量","value":"0.00"},"storage_service_koudian":"0.00","ruledatas":[{"maxSort":{"name":"所有一级目录","value":"0"},"middleSort":{"name":"所有二级目录","value":"0"},"smallSort":{"name":"所有三级目录","value":"0"},"sort":{"name":"所有四级目录","value":"0"},"commissions":[{"zhe":"0","kou":"0.00"}],"discount":"0","key":"0-0-0-0"}],"supplier_name":{"name":"广州市烨德商贸有限公司","value":"1205"}}]',
            agreementEndTime: "2016-01-29",
            agreementName: "111",
            agreementStartTime: "2016-01-05",
            settlementPeriod: '2',
            invoiceType: '3',
            agreementCode: '111',
            agreementFile: "http://img01.yohoboys.com/o_1a9mt81m1to11hg0d5t13de1idj7.png?imageMogr2/auto-orient/thumbnail/x100/gravity/Center/quality/100/crop/625x794/format/png",
            agreementId: "1"
        }
        res.json(JSON);
    }

}



//'/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'
//            }]
//    })
//},