import { MockAdapter } from '../mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'

// 获取全部数组
mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, [
        {
        "srfkey": "SysOperator",
        "emptytext": "未定义",
        "codelisttype":"dynamic",
        "appdataentity":"",
        "appdedataset":"",
        "items": []
    },
    {
        srfkey: "YesNo",
        emptytext: "未定义",
        "codelisttype":"static",
        items: [
            {
                id: "1",
                label: "是",
                text: "是",
                "data":"",
                "codename":"Item_1",
                value: "1",
                
                disabled: false,
            },
            {
                id: "0",
                label: "否",
                text: "否",
                "data":"",
                "codename":"Item_0",
                value: "0",
                
                disabled: false,
            },
        ]
    },
    {
        srfkey: "CL_HR_0001",
        emptytext: "未定义",
        "codelisttype":"static",
        items: [
            {
                id: "COSTCENTER",
                label: "成本中心",
                text: "成本中心",
                "data":"",
                "codename":"Costcenter",
                value: "COSTCENTER",
                
                disabled: false,
            },
            {
                id: "BUSINESSUNIT",
                label: "业务单位",
                text: "业务单位",
                "data":"",
                "codename":"Businessunit",
                value: "BUSINESSUNIT",
                
                disabled: false,
            },
            {
                id: "DEPARTMENT",
                label: "部门",
                text: "部门",
                "data":"",
                "codename":"Department",
                value: "DEPARTMENT",
                
                disabled: false,
            },
            {
                id: "COMMERCIAL",
                label: "商业渠道",
                text: "商业渠道",
                "data":"",
                "codename":"Commercial",
                value: "COMMERCIAL",
                
                disabled: false,
            },
        ]
    },
    {
        srfkey: "CL_HR_0002",
        emptytext: "未定义",
        "codelisttype":"static",
        items: [
            {
                id: "BUSINESS",
                label: "业务",
                text: "业务",
                "data":"",
                "codename":"Business",
                value: "BUSINESS",
                
                disabled: false,
            },
            {
                id: "HOME",
                label: "家庭住址",
                text: "家庭住址",
                "data":"",
                "codename":"Home",
                value: "HOME",
                
                disabled: false,
            },
            {
                id: "REALLOCATION",
                label: "实际位置",
                text: "实际位置",
                "data":"",
                "codename":"Reallocation",
                value: "REALLOCATION",
                
                disabled: false,
            },
            {
                id: "RECRUIT",
                label: "招聘",
                text: "招聘",
                "data":"",
                "codename":"Recruit",
                value: "RECRUIT",
                
                disabled: false,
            },
            {
                id: "SERVICE",
                label: "服务",
                text: "服务",
                "data":"",
                "codename":"Service",
                value: "SERVICE",
                
                disabled: false,
            },
            {
                id: "HEADCOMPANY",
                label: "总公司",
                text: "总公司",
                "data":"",
                "codename":"Headcompany",
                value: "HEADCOMPANY",
                
                disabled: false,
            },
            {
                id: "INVOICE",
                label: "发票",
                text: "发票",
                "data":"",
                "codename":"Invoice",
                value: "INVOICE",
                
                disabled: false,
            },
            {
                id: "PAYMENT",
                label: "付款",
                text: "付款",
                "data":"",
                "codename":"Payment",
                value: "PAYMENT",
                
                disabled: false,
            },
            {
                id: "REMIT",
                label: "汇款至",
                text: "汇款至",
                "data":"",
                "codename":"Remit",
                value: "REMIT",
                
                disabled: false,
            },
            {
                id: "STATEMENT",
                label: "对帐单",
                text: "对帐单",
                "data":"",
                "codename":"Statement",
                value: "STATEMENT",
                
                disabled: false,
            },
            {
                id: "CONSIGNMENT",
                label: "托运",
                text: "托运",
                "data":"",
                "codename":"Consignment",
                value: "CONSIGNMENT",
                
                disabled: false,
            },
            {
                id: "DELIVERY",
                label: "交货",
                text: "交货",
                "data":"",
                "codename":"Delivery",
                value: "DELIVERY",
                
                disabled: false,
            },
            {
                id: "LADING",
                label: "装货",
                text: "装货",
                "data":"",
                "codename":"Lading",
                value: "LADING",
                
                disabled: false,
            },
            {
                id: "UNLADING",
                label: "卸货",
                text: "卸货",
                "data":"",
                "codename":"Unlading",
                value: "UNLADING",
                
                disabled: false,
            },
            {
                id: "OTHER",
                label: "其他",
                text: "其他",
                "data":"",
                "codename":"Other",
                value: "OTHER",
                
                disabled: false,
            },
        ]
    },
    {
        srfkey: "CL_HR_0003",
        emptytext: "未定义",
        "codelisttype":"static",
        items: [
            {
                id: "TEL",
                label: "电话",
                text: "电话",
                "data":"",
                "codename":"Tel",
                value: "TEL",
                
                disabled: false,
            },
            {
                id: "EMAIL",
                label: "电子邮件地址",
                text: "电子邮件地址",
                "data":"",
                "codename":"Email",
                value: "EMAIL",
                
                disabled: false,
            },
            {
                id: "WECHAT",
                label: "微信",
                text: "微信",
                "data":"",
                "codename":"Wechat",
                value: "WECHAT",
                
                disabled: false,
            },
            {
                id: "QQ",
                label: "QQ",
                text: "QQ",
                "data":"",
                "codename":"Qq",
                value: "QQ",
                
                disabled: false,
            },
            {
                id: "FAX",
                label: "传真",
                text: "传真",
                "data":"",
                "codename":"Fax",
                value: "FAX",
                
                disabled: false,
            },
        ]
    },
    {
        srfkey: "OrganizationType",
        emptytext: "未定义",
        "codelisttype":"static",
        items: [
            {
                id: "LEGAL",
                label: "法人",
                text: "法人",
                "data":"",
                "codename":"Legal",
                value: "LEGAL",
                
                disabled: false,
            },
            {
                id: "OPERATIONUNIT",
                label: "运营单位",
                text: "运营单位",
                "data":"",
                "codename":"Operationunit",
                value: "OPERATIONUNIT",
                
                disabled: false,
            },
        ]
    }
    ]];
});

