import { rt_ctx } from '@lm_fe/env';
import { defineFormConfig } from '@lm_fe/service';
var ctx = rt_ctx;
var React = ctx.React;
var width = 66;
var form_config = defineFormConfig([{
  label: '就诊卡号',
  dataIndex: 'outpatientNO',
  inputType: 'PatientAutoComplete',
  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',
  layout: '1/3',
  width: width,
  inputProps: {
    disabled: true
  }
}, {
  title: '证件号码',
  dataIndex: 'idNO',
  inputProps: {
    disabled: true
  },
  layout: '1/3'
}, {
  title: '年龄',
  width: width / 2,
  layout: '1/3',
  inputProps: {
    disabled: true
  },
  dataIndex: 'age'
}, {
  title: '手机号',
  layout: '1/3',
  dataIndex: 'telephone'
}, {
  title: '孕周',
  width: width / 2,
  layout: '1/3',
  dataIndex: 'gestationalWeek'
}, {
  title: '产检日期',
  layout: '1/3',
  dataIndex: 'visitDate',
  inputType: 'DatePicker',
  inputProps: {}
}, {
  dataIndex: 'residenceAddress',
  title: "居住地址",
  inputType: "MyAddress",
  layout: '2/3',
  hidden: true
}, {
  title: '次数',
  layout: '1/3',
  width: width / 2,
  dataIndex: 'monitorSum',
  render: function render(value, rowData, index) {
    if (value > 1) {
      return /*#__PURE__*/React.createElement("span", {
        style: {
          fontSize: 18,
          fontWeight: 'bold'
        }
      }, value);
    }
    return value;
  }
}, {
  title: '确认时间',
  layout: '1/3',
  dataIndex: 'enterTime',
  inputType: 'DatePicker',
  inputProps: {
    showTime: true
  }
}, {
  title: '状态',
  width: width,
  layout: '1/3',
  dataIndex: 'state',
  inputType: 'MS',
  inputProps: {
    options: [{
      value: false,
      label: '未确认'
    }, {
      value: true,
      label: '已确认'
    }],
    marshal: 0
  }
}, {
  title: '备注',
  layout: '1/3',
  width: width,
  dataIndex: 'note'
}]);
export { form_config as default };
//# sourceMappingURL=pages.prenatal-visit.fetal-monitor2.js.map
