module.exports = {
    getColor: function (status) {
        var color = null;
        if (status == '新建') {
            color = '#3874F6';
        } else if (status == '已提交') {
            color = '#52C41A';
        } else if (status == '已终止') {
            color = '#BBB';
        } else if (status == '已过期') {
            color = '#BBB';
        } else {
            color = '#FA8C16';
        };
        return color
    },
    getType: function (type) {
        var result = "";
        switch (type) {
            case "框架":
                result = '经销商合作协议'
                break;
            case "工具借用":
                result = '工具使用(借用)协议'
                break;
            case "居间":
                result = '居间协议'
                break;
            default:
                result = '--'
                break;
        };
        return result;
    }
}