import { checkRange, checkIsInteger, checkNumberIsToFixed } from '@/utils/followup/followupUtils/checkField';

export default ($this) => {
  return [
    {
      formType: 'button',
      className: 'float-none',
      prop: 'followUpOrgName',
      model: 'followUpOrgName',
      icon: 'el-icon-circle-plus',
      btnText: '点击添加',
      disabled: false,
      spanNum: 12,
      maxlength: 30,
      type: 'text',
      labmsg: '次',
      clickFunc: () => {
        $this.dialogFormVisible = true;
      }
    },
    {
      formType: 'div',
      name: '胰岛素',
      className: 'sec-title',
    },
    {
      formType: 'input',
      className: 'float-none',
      prop: 'insulinType',
      model: 'insulinType',
      label: '种类：',
      disabled: false,
      placeholder: '请输入胰岛素种类',
      spanNum: 12,
      maxlength: 30,
      type: 'text',
      labmsg: '次',
      rules: [{required: true, message: '请输入胰岛素种类', trigger: ['submit','change']}],
    },
    {
      formType: 'input',
      className: 'float-none',
      prop: 'insulinMethod',
      model: 'insulinMethod',
      label: '用法：',
      disabled: false,
      placeholder: '请输入胰岛素用法',
      spanNum: 12,
      maxlength: 30,
      type: 'text',
      labmsg: '次',
      rules: [{required: true, message: '请输入胰岛素用法', trigger: ['submit','change']}],
    },
    {
      formType: 'input',
      className: 'float-none',
      prop: 'insulinUsage',
      model: 'insulinUsage',
      label: '用量：',
      disabled: false,
      placeholder: '请输入胰岛素用量',
      spanNum: 12,
      maxlength: 30,
      type: 'text',
      labmsg: '次',
      rules: [{required: true, message: '请输入胰岛素用量', trigger: ['submit','change']}],
    },
  ]
}

