export const getBaseInfoFormConfig = (formType) => {
    return [
        {
            type: 'cardItem',
            config: {
                studyMc: {
                    label: 'template.common.testName',
                    type: 'input',
                    disabled: true
                },
                studySn: {
                    label: 'template.common.testNumber',
                    type: 'input',
                    disabled: true
                },
                methodCode: {
                    label: 'template.common.methodCode',
                    type: 'input',
                    fillType: formType === 'sp0020' ? 'actFill' : 'preFill',
                    maxlength: 50
                },
                versionNum: {
                    label: 'template.common.versionNumber',
                    type: 'inputNumber',
                    fillType: 'actFill',
                    prepend: 'V',
                    maxlength: 50
                },
                clpbh: {
                    label: '处理批编号',
                    type: 'input',
                    fillType: 'actFill',
                    maxlength: 50
                },
                fxpbh: {
                    label: '分析批编号',
                    type: 'input',
                    fillType: 'actFill',
                    maxlength: 50
                },
            }
        },
    ]
}

export const storageFormConfig = [
    {
        type: 'step',
        config: {
            yqmxh: {
                label: '色谱柱型号',
                type: 'yq',
                fillType: 'actFill',
                filledCodes:['mc','bh'],
            },
        }
    },
]

//仪器信息
export const getYqColumns = ($this) => {
    return [
        {
            label: 'template.common.instrumentCode',
            prop: "bh",
            bodyType: "yq",
            bodyFillType: 'actFill',
        },//仪器编号
        {
            label: 'template.common.instrumentName',
            prop: "mc",
            bodyType: "input",
            bodyType: "input",
            bodyDisabled: true,
            bodyFillType: 'actFill',
        },//仪器名称
        {
            label: 'template.common.instrumentModel',
            prop: "xh",
            bodyType: "input",
            bodyDisabled: true,
            bodyFillType: 'actFill',
        },//仪器型号
    
        {
            label: 'template.common.nextTestDate',
            prop: "jzrq",
            bodyType: "input",
            bodyDisabled: true,
            bodyFillType: 'actFill',
        },//下次测试/校准/检定日期
    ]
}

//溶液
export const getRyColumns = ($this) => {
    return [
        {
            label: '溶液类型',
            prop: "rylx",
            bodyType: "select",
            otherCode:'rylxOther',
            width:380,
            bodyOptions: $this.getDictOptions('business_rylx'),
            bodyFillType: 'preFill',
        },
        {
            label: '溶液名称(编号)',
            prop: "rymc",
            bodyType: "sj",
            bodyFillType: 'actFill',
            filledCodes:['mc','bh'],
        },
        {
            label: '配置日期',
            prop: "pzrq",
            bodyType: "input",
            bodyDisabled: true,
            bodyFillType: 'actFill',
        },
        {
            label: '失效日',
            prop: "sxr",
            bodyType: "input",
            bodyDisabled: true,
            bodyFillType: 'actFill',
        },
    ]
}
//仪器平衡
export const getYqphFormConfig = () => {
    return [
        {
            type: 'checkboxList',
            config: {
                yqph: {
                    label: '仪器平衡',
                    type: 'checkboxTree',
                    fillType: 'actFill',
                    span:1,
                    options: [
                        { label: '流动相平衡', value: '流动相平衡' },
                        { label: '样品平衡', value: '样品平衡' },
                        { label: '样品', value: '样品'},
                        { label: '未平衡', value: '未平衡' }
                    ]
                },
            }
        }
    ]
}