import { checkMobile } from '@/utils/followup/followupUtils/checkField';

export default ($this) => {
  return [
    {
      formType: 'checkbox',
      className: 'obj-form-title',
      prop: 'symptom',
      model: 'symptom',
      label: '选择的症状：',
      // linkageRule: [{name: 'takeHypoglycemicDrugs', value: ['是']}],
      disabled: false,
      changeFun: (val) => {
        // console.log(val)
      },
      spanNum: 24,
      options: [
        {label: '无症状', value: '无症状', disabled: false},
        {label: '头痛头晕', value: '头痛头晕', disabled: false},
        {label: '恶心呕吐', value: '恶心呕吐', disabled: false},
        {label: '眼花耳鸣', value: '眼花耳鸣', disabled: false},
        {label: '呼吸困难', value: '呼吸困难', disabled: false},
        {label: '心悸胸闷', value: '心悸胸闷', disabled: false},
        {label: '鼻衄出血不止', value: '鼻衄出血不止', disabled: false},
        {label: '四肢发麻', value: '四肢发麻', disabled: false},
        {label: '下肢水肿', value: '下肢水肿', disabled: false},
        {label: '其他', value: '其他', disabled: false},
      ],
      rules: [{required: true, message: '选择的症状', trigger: ['submit']}]
    },
    {
      formType: 'input',
      className: 'obj-form-title4',
      linkageRule: [{name: 'symptom',value: ['其他']}],
      prop: 'remark',
      model: 'remark',
      disabled: false,
      placeholder: '请输入其他症状',
      spanNum: 12,
      maxlength: 30,
      type: 'text',
      labmsg: '',
      rules: [{ required: true, message: '请输入其他症状', trigger: ['submit','change'] }]
    },
  ]
}

