import { rt_ctx } from '@lm_fe/env';
import { defineFormConfig } from '@lm_fe/service';
var ctx = rt_ctx;
ctx.React;
var width = 66;
var form_config = defineFormConfig([{
  label: '就诊卡号',
  inputType: 'PatientAutoComplete',
  dataIndex: 'outpatientNO',
  layout: '1/3',
  disabledDeps: function disabledDeps(f) {
    return !!f.getFieldValue('pregnancyId');
  },
  inputProps: {
    onPatientAutoComplete: function onPatientAutoComplete(v, form) {
      form === null || form === void 0 ? void 0 : form.setFieldsValue(Object.assign(v, {
        id: undefined
      }));
    }
  }
}, {
  dataIndex: 'id',
  hidden: true,
  form_hidden: true
}, {
  dataIndex: 'pregnancyId',
  hidden: true,
  form_hidden: true
}, {
  title: '姓名',
  dataIndex: 'name',
  inputProps: {
    disabled: true
  },
  layout: '1/3',
  width: width
}, {
  title: '证件号码',
  dataIndex: 'idNO',
  inputProps: {
    disabled: true
  },
  layout: '1/3'
}, {
  title: '年龄',
  dataIndex: 'age',
  inputProps: {
    disabled: true
  },
  layout: '1/3',
  width: width / 2,
  inputType: 'InputNumber'
}, {
  title: '孕周',
  width: width,
  dataIndex: 'gestationalWeek',
  layout: '1/3'
}, {
  title: '标本类别',
  dataIndex: 'sampleType',
  width: width,
  layout: '1/3'
}, {
  title: '标本编号',
  dataIndex: 'sampleNO',
  width: width,
  layout: '1/3'
}, {
  title: '验证时间',
  layout: '1/3',
  dataIndex: 'testTime',
  inputType: 'DatePicker',
  inputProps: {
    showTime: true
  }
}, {
  isNewRow: 1,
  title: '诊断',
  width: width,
  layout: '2/3',
  dataIndex: 'diagnosis'
}, {
  title: '医生',
  layout: '2/3',
  dataIndex: 'doctor',
  width: width,
  "inputType": "textareaWithTemplate",
  inputProps: {
    TemplateTextarea_type: [{
      title: '科室',
      type: 38,
      depid: 2
    }]
  }
}, {
  title: '操作人',
  layout: '2/3',
  width: width,
  dataIndex: 'operator',
  "inputType": "textareaWithTemplate",
  inputProps: {
    TemplateTextarea_type: [{
      title: '科室',
      type: 37,
      depid: 2
    }]
  }
}, {
  title: '结果',
  layout: '2/3',
  width: width,
  inputType: 'MA',
  inputProps: {
    options: '阴性,阳性'
  },
  dataIndex: 'result'
}]);
export { form_config as default };
//# sourceMappingURL=pages.prenatal-visit.gbs2.js.map
