export default {
    "customerNo": {
        "value": null,
        "type": "input",
        "title": "仓位编码",
        "name": [
            "customerNo"
        ],
        "required": false
    },
    "customerName": {
        "value": null,
        "type": "input",
        "title": "仓位名称",
        "name": [
            "customerName"
        ],
        "required": true
    },
    "officialWebsite": {
        "value": null,
        "type": "input",
        "title": "所属仓库",
        "name": [
            "officialWebsite"
        ],
        "required": false
    },
    "telephone": {
        "value": null,
        "type": "input",
        "title": "所属库区",
        "name": [
            "telephone"
        ],
        "required": false
    },
    "email": {
        "value": null,
        "type": "input",
        "title": "排",
        "name": [
            "email"
        ],
        "required": false
    },
    "address": {
        "value": null,
        "type": "input",
        "title": "列",
        "name": [
            "address"
        ],
        "required": false
    },
    "score": {
        "value": null,
        "type": "rate",
        "title": "层",
        "name": [
            "score"
        ],
        "required": false,
        allowHalf: true,
    },
    "status": {
        "value": 1,
        "type": "select",
        "title": "启停状态",
        "name": [
            "status"
        ],
        "required": true,
        options: [
            {
                label: "启用",
                value: 1
            },
            {
                label: "停用",
                value: 0
            },
        ]
    },
    "remark": {
        "value": null,
        "type": "textarea",
        "title": "备注",
        "name": [
            "remark"
        ],
        "required": false,
        col: { span: 24 }
    },

    "customerUserList": {
        "value": null,
        "editable": true,
        "type": "table",
        "title": "联系人",
        "name": [
            "customerUserList"
        ],
        "required": false,
        "columns": [
            {
                "title": "联系人姓名",
                "dataIndex": "userName",
                "key": "userName",
                "search": false,
                "valueType": "input",
                formItemProps: {
                    rules: [
                        {
                            required: true,
                            message: '此项为必填项',
                        },
                    ],
                }
            },
            {
                "title": "联系电话",
                "dataIndex": "telephone",
                "key": "telephone",
                "search": false,
                "valueType": "input",
                formItemProps: {
                    rules: [
                        {
                            required: false,
                            pattern: /^(((\d{3,4}-)?[0-9]{7,8})|(1(3|4|5|6|7|8|9)\d{9}))$/,
                            message: '手机号格式不正确'
                        },
                    ],
                }
            },
            {
                "title": "邮箱",
                "dataIndex": "email",
                "key": "email",
                "search": false,
                "valueType": "input",
                formItemProps: {
                    rules: [
                        {
                            required: false,
                            pattern: /^[a-z0-9A-Z]+[- | a-z0-9A-Z . _]+@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\.)+[a-z]{2,}$/,
                            message: '邮箱格式不正确'
                        },
                    ],
                }
            },
            {
                "title": "职位",
                "dataIndex": "title",
                "key": "title",
                "search": false,
                "valueType": "input"
            },
            {
                title: '操作',
                valueType: 'option',
                render: () => {
                    return null;
                },
            },
        ],
        "editable": true,
        "rowKey": "id",
        "rowName": "",
        "dataSource": [],
        col: { span: 24 }
    }
}