export const getBaseInfoFormConfig = ($this) => {
  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: 'preFill',
          maxlength: 50
        },
        versionNum: {
          label: 'template.common.versionNumber',
          type: 'inputNumber',
          fillType: 'actFill',
          prepend: 'V',
          maxlength: 50
        },
        clpbh: {
          label: 'template.sp.sp008.clpbh',
          type: 'input',
          fillType: 'actFill',
          maxlength: 50
        }
      }
    },
    {
      type: 'conditionItem',
      label: 'template.common.testConfigurationConditions',
      config: {
        pre: {
          label: 'template.common.preFill',
          type: 'select',
          multiple: true,
          fillType: 'preFill',
          options: $this.getDictOptions('business_pztj'),
          otherCode: 'preOther'
        },
        act: {
          label: 'template.common.actualFill',
          type: 'select',
          fillType: 'actFill',
          otherCode: 'actOther',
          multiple: true,
          compareTo: 'pre',
          options: $this.getDictOptions('business_pztj')
        }
      }
    },
    {
      type: 'cellItem',
      config: {
        containerMaterial: {
          label: 'template.sp.sp003.rqcz',
          type: 'select',
          options: $this.getDictOptions('business_rqcz'),
          fillType: 'actFill',
          otherCode: 'containerMaterialOther'
        }
      }
    },
    {
      type: 'cellItem',
      label: 'template.sp.sp008.clsj',
      config: {
        startDate: {
          label: 'template.common.startTime',
          type: 'input'
        },
        endDate: {
          label: 'template.common.endTime',
          type: 'input'
        }
      }
    }
  ]
}
//备注
export const getRemarkFormConfig = () => {
  return [
    {
      type: 'cellItem',
      config: {
        remark: {
          label: '',
          type: 'textarea',
          fillType: 'actFill',
          span: 1,
          placeholder: 'template.common.remarkPlaceholder',
          maxlength: 1000,
          rows: 5
        }
      }
    }
  ]
}
//样本说明
export const getYbFormConfig = () => {
  return [
    {
      type: 'cellItem',
      config: {
        remark: {
          label: '',
          type: 'textarea',
          fillType: 'actFill',
          span: 1,
          placeholder: 'template.sp.sp007.ybsm',
          maxlength: 1000,
          rows: 5
        }
      }
    }
  ]
}

//存储条件
export const getStorageFormConfig = ($this) => {
  return [
    {
      type: 'conditionItem',
      config: {
        storageCondition: {
          label: 'template.common.storageConditionLabel',
          type: 'select',
          fillType: 'preFill',
          options: $this.getDictOptions('business_cctj'),
          otherCode: 'storageConditionOther'
        }
      }
    }
  ]
}

//存储条件
export const getfjFormConfig = () => {
  return [
    {
      type: 'attachment',
      config: {
        attTitle: {
          label: 'template.sp.sp007.bt',
          type: 'attachment',
          fillType: 'actFill'
        }
      }
    }
  ]
}
