import 'antd/es/tabs/style';
import _Tabs from 'antd/es/tabs';
import { _ as _extends } from './extends.js';
import 'antd/es/message/style';
import _message from 'antd/es/message';
import _get from 'lodash/get';
import { s as styleInject, _ as __extends, d as __assign, b as __awaiter, c as __generator, a as __spreadArray } from './index.js';
import { DoctorEnd_HeaderInfoLayout } from '@lm_fe/pages';
import { SLocal_SystemConfig } from '@lm_fe/service';
import { formatDate, getFutureDate, request, getSearchParamsValue } from '@lm_fe/utils';
import React__default, { lazy, useState, useEffect } from 'react';
import { P as Pregnancies } from './index12.js';
import { C as ClosingArchives } from './index1.js';
import _set from 'lodash/set';
import _isNil from 'lodash/isNil';
import dayjs from 'dayjs';
import { BaseTableOld, APP_CONFIG, PressureInput, InputWithRange, BaseListOld } from '@lm_fe/components_m';
import { mchcUtils } from '@lm_fe/env';
import { MyLazyComponent } from '@lm_fe/components';
import 'lodash/size';
import 'lodash/orderBy';
import 'lodash/map';
import 'antd/es/collapse/style';
import 'antd/es/collapse';
import 'antd/es/badge/style';
import 'antd/es/badge';
import 'antd/es/button/style';
import 'antd/es/button';
import 'lodash/assign';
import '@ant-design/icons';
var css_248z = ".questionnaire-steps {\n  background-color: white;\n  height: 70px;\n  display: flex;\n  align-items: center;\n  padding: 0 15% !important;\n  margin-bottom: 8px;\n}\n.questionnaire-steps-content {\n  padding: 16px;\n  background-color: white;\n}\n.panel-with-child_content-tabs {\n  height: 100%;\n}\n.panel-with-child_content-tabs .ant-tabs-nav {\n  margin-bottom: 12px;\n  padding-left: 12px;\n  padding-right: 12px;\n  background-color: #fff;\n}\n.panel-with-child_content-tabs .ant-tabs-nav .ant-tabs-tab {\n  height: 40px;\n}\n.panel-with-child_content-tabs .ant-tabs-nav .ant-tabs-tab-active .ant-tabs-tab-btn {\n  font-weight: bold;\n  font-size: 15px;\n  color: #5050e8;\n}\n.panel-with-child_content-tabs .ant-form-item-explain.ant-form-item-explain-error {\n  color: #ff4d4f;\n  /* margin-bottom: -14px; */\n  line-height: 32px;\n  margin-bottom: -19px;\n}\n.panel-with-child_content-tabs .ant-tabs-content-holder {\n  height: calc(100% - 52px);\n  overflow: auto;\n}\n.panel-with-child_content-tabs .ant-tabs-content-holder .ant-tabs-content {\n  height: 100%;\n}\n.panel-with-child_content-tabs .ant-tabs-tabpane {\n  height: 100%;\n}\n";
styleInject(css_248z);
var ProductsTable$1 = function (_super) {
  __extends(ProductsTable, _super);
  function ProductsTable() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  return ProductsTable;
}(BaseTableOld);
var tableColumns$1 = [{
  title: '创建时间',
  dataIndex: 'createDate',
  editable: true,
  rules: [{
    required: true,
    message: '创建时间是必填项'
  }],
  width: APP_CONFIG.CELL_WIDTH_MIDDLE,
  inputType: 'single_date_picker'
}, {
  title: function title() {
    return /*#__PURE__*/React__default.createElement("span", null, "\u8840\u538B-\u9996\u6D4B", /*#__PURE__*/React__default.createElement("em", {
      className: "suffix"
    }, "(mmHg)"));
  },
  dataIndex: 'bloodPressure',
  editable: true,
  inputType: 'pressure',
  render: function render(value, rowData) {
    return /*#__PURE__*/React__default.createElement(PressureInput, {
      value: _get(rowData, 'physicalExamMeasure'),
      hiddenIpt: true
    });
  },
  width: APP_CONFIG.CELL_WIDTH_MIDDLE
}, {
  title: function title() {
    return /*#__PURE__*/React__default.createElement("span", null, "\u8840\u538B-\u4E8C\u6D4B", /*#__PURE__*/React__default.createElement("em", {
      className: "suffix"
    }, "(mmHg)"));
  },
  dataIndex: 'bloodPressure2',
  editable: true,
  inputType: 'pressure',
  render: function render(value, rowData) {
    var pressure = {
      systolic: _get(rowData, 'physicalExamMeasure.systolic2'),
      diastolic: _get(rowData, 'physicalExamMeasure.diastolic2')
    };
    return /*#__PURE__*/React__default.createElement(PressureInput, {
      value: pressure,
      hiddenIpt: true
    });
  },
  width: APP_CONFIG.CELL_WIDTH_MIDDLE
}, {
  title: function title() {
    return /*#__PURE__*/React__default.createElement("span", null, "\u8840\u538B-\u4E09\u6D4B", /*#__PURE__*/React__default.createElement("em", {
      className: "suffix"
    }, "(mmHg)"));
  },
  dataIndex: 'bloodPressure3',
  editable: true,
  inputType: 'pressure',
  render: function render(value, rowData) {
    var pressure = {
      systolic: _get(rowData, 'physicalExamMeasure.systolic3'),
      diastolic: _get(rowData, 'physicalExamMeasure.diastolic3')
    };
    return /*#__PURE__*/React__default.createElement(PressureInput, {
      value: pressure,
      hiddenIpt: true
    });
  },
  width: APP_CONFIG.CELL_WIDTH_MIDDLE
}, {
  title: function title() {
    return /*#__PURE__*/React__default.createElement("span", null, "\u8109\u640F", /*#__PURE__*/React__default.createElement("em", {
      className: "suffix"
    }, "(bpm)"));
  },
  dataIndex: ['physicalExamMeasure', 'pulse'],
  editable: true,
  inputType: 'input_with_range',
  inputProps: {
    min: 60,
    max: 100,
    tip: '脉搏的正常范围值是60~100bpm'
  },
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  render: function render(value) {
    return /*#__PURE__*/React__default.createElement(InputWithRange, {
      value: value,
      min: 60,
      max: 100,
      hiddenIpt: true
    });
  }
}, {
  title: function title() {
    return /*#__PURE__*/React__default.createElement("span", null, "\u4F53\u91CD", /*#__PURE__*/React__default.createElement("em", {
      className: "suffix"
    }, "(kg)"));
  },
  dataIndex: ['physicalExamMeasure', 'weight'],
  editable: true,
  inputType: 'input_with_label',
  inputProps: {
    min: 0,
    type: 'number'
  },
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  render: function render(value) {
    return value || '';
  }
}, {
  title: function title() {
    return /*#__PURE__*/React__default.createElement("span", null, "\u5BAB\u9AD8", /*#__PURE__*/React__default.createElement("em", {
      className: "suffix"
    }, "(cm)"));
  },
  dataIndex: ['gynecologicalExamMeasure', 'fundalHeight'],
  editable: true,
  inputType: 'input_with_label',
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  render: function render(value) {
    return value || '';
  }
}, {
  title: function title() {
    return /*#__PURE__*/React__default.createElement("span", null, "\u8179\u56F4", /*#__PURE__*/React__default.createElement("em", {
      className: "suffix"
    }, "(cm)"));
  },
  dataIndex: ['gynecologicalExamMeasure', 'waistHip'],
  editable: true,
  inputType: 'input_with_label',
  inputProps: {
    min: 0,
    type: 'number'
  },
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  render: function render(value) {
    return value || '';
  }
}, {
  title: '备注',
  dataIndex: 'remark',
  editable: true,
  inputType: 'input_with_label',
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  render: function render(value) {
    return value || '';
  }
}, {
  title: '创建人',
  dataIndex: 'createUser',
  editable: false,
  inputType: 'input_with_label',
  width: APP_CONFIG.CELL_WIDTH_MIDDLE,
  render: function render(value) {
    return value || '';
  },
  inputProps: {
    disabled: true
  }
}];
var List$1 = function (_super) {
  __extends(List, _super);
  function List() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.staticDefaultQuery = {
      page: 0,
      size: 20,
      sort: 'createDate,DESC',
      'type.equals': 1
    };
    _this.handleEdit = function (rowData) {
      return function () {
        var dataSource = _this.state.dataSource;
        var form = _this.form;
        form.setFieldsValue(__assign(__assign({}, rowData), {
          bloodPressure: {
            systolic: _get(rowData, 'physicalExamMeasure.systolic'),
            diastolic: _get(rowData, 'physicalExamMeasure.diastolic')
          },
          bloodPressure2: {
            systolic: _get(rowData, 'physicalExamMeasure.systolic2'),
            diastolic: _get(rowData, 'physicalExamMeasure.diastolic2')
          },
          bloodPressure3: {
            systolic: _get(rowData, 'physicalExamMeasure.systolic3'),
            diastolic: _get(rowData, 'physicalExamMeasure.diastolic3')
          },
          createDate: dayjs(_get(rowData, 'createDate'))
        }));
        _this.setState({
          editKey: _get(rowData, 'editKey') || _get(rowData, 'id'),
          dataSource: dataSource.map(function (_) {
            return __assign({}, _);
          })
        });
      };
    };
    _this.handleAdd = function () {
      return __awaiter(_this, void 0, void 0, function () {
        var _a, user, _b, dataSource, editKey, toDayData, mockKey, addData, form;
        return __generator(this, function (_c) {
          switch (_c.label) {
            case 0:
              _a = this.props, _a.pregnancyData, user = _a.user;
              _b = this.state, dataSource = _b.dataSource, editKey = _b.editKey;
              toDayData = dataSource.find(function (_) {
                return _.createDate === formatDate();
              });
              if (toDayData) {
                _message.warning('此用户当天已记录体征数据，请搜索对应的记录编辑。');
                return [2];
              }
              if (!_isNil(editKey)) {
                _message.error('请先保存上一条记录');
                return [2];
              }
              mockKey = new Date().toString();
              addData = {
                createDate: dayjs(getFutureDate(0)),
                createUser: _get(user, 'basicInfo.firstName'),
                editKey: mockKey
              };
              form = this.form;
              form.setFieldsValue(addData);
              return [4, this.setState({
                dataSource: __spreadArray([addData], dataSource, true),
                editKey: mockKey
              })];
            case 1:
              _c.sent();
              return [2];
          }
        });
      });
    };
    _this.handleItemSave = function (rowData) {
      return function () {
        return __awaiter(_this, void 0, void 0, function () {
          var _a, baseUrl, pregnancyData, formData, physicalExamMeasure, gynecologicalExamMeasure, data;
          var _b, _c, _d;
          return __generator(this, function (_e) {
            switch (_e.label) {
              case 0:
                _a = this.props, baseUrl = _a.baseUrl, pregnancyData = _a.pregnancyData;
                return [4, (_b = this.form) === null || _b === void 0 ? void 0 : _b.validateFields()];
              case 1:
                _e.sent();
                formData = (_c = this.form) === null || _c === void 0 ? void 0 : _c.getFieldsValue();
                physicalExamMeasure = __assign(__assign(__assign({}, _get(rowData, 'physicalExamMeasure')), _get(formData, 'physicalExamMeasure')), {
                  systolic: _get(formData, 'bloodPressure.systolic'),
                  diastolic: _get(formData, 'bloodPressure.diastolic'),
                  systolic2: _get(formData, 'bloodPressure2.systolic'),
                  diastolic2: _get(formData, 'bloodPressure2.diastolic'),
                  systolic3: _get(formData, 'bloodPressure3.systolic'),
                  diastolic3: _get(formData, 'bloodPressure3.diastolic')
                });
                gynecologicalExamMeasure = __assign(__assign({}, _get(rowData, 'gynecologicalExamMeasure')), _get(formData, 'gynecologicalExamMeasure'));
                data = __assign(__assign(__assign({}, rowData), formData), {
                  createDate: formatDate(formData.createDate),
                  physicalExamMeasure: physicalExamMeasure,
                  gynecologicalExamMeasure: gynecologicalExamMeasure
                });
                if (!_get(data, 'id')) return [3, 3];
                return [4, request.put(baseUrl, data)];
              case 2:
                _e.sent();
                return [3, 5];
              case 3:
                _set(data, 'outpatientNO', _get(pregnancyData, 'outpatientNO'));
                _set(data, 'name', _get(pregnancyData, 'name'));
                _set(data, 'type', 1);
                return [4, request.post(baseUrl, data)];
              case 4:
                _e.sent();
                _e.label = 5;
              case 5:
                (_d = this.form) === null || _d === void 0 ? void 0 : _d.resetFields();
                _message.success('保存成功');
                return [4, this.setState({
                  editKey: undefined
                })];
              case 6:
                _e.sent();
                return [4, this.handleSearch()];
              case 7:
                _e.sent();
                return [2];
            }
          });
        });
      };
    };
    return _this;
  }
  List.defaultProps = {
    baseUrl: '/api/measures',
    asChildComponentQueryLabel: 'outpatientNO.equals',
    baseTitle: '复诊记录',
    needPagination: true,
    needEditInTable: true,
    showQuery: false,
    showAdd: true,
    showAction: true,
    tableColumns: tableColumns$1,
    rowKey: 'id',
    Table: ProductsTable$1,
    otherTableProps: {
      scroll: {
        x: 1278
      }
    }
  };
  return List;
}(BaseListOld);
var Inner = /*#__PURE__*/lazy(function () {
  return import('./pregnancy.nurse-end.InformedConsent.js');
});
var ProductsTable = function (_super) {
  __extends(ProductsTable, _super);
  function ProductsTable() {
    return _super !== null && _super.apply(this, arguments) || this;
  }
  return ProductsTable;
}(BaseTableOld);
var tableColumns = [{
  title: '创建时间',
  dataIndex: 'createDate',
  editable: true,
  rules: [{
    required: true,
    message: '创建时间是必填项'
  }],
  width: APP_CONFIG.CELL_WIDTH_MIDDLE,
  inputType: 'single_date_picker'
}, {
  title: function title() {
    return /*#__PURE__*/React__default.createElement("span", null, "\u8840\u538B-\u9996\u6D4B", /*#__PURE__*/React__default.createElement("em", {
      className: "suffix"
    }, "(mmHg)"));
  },
  dataIndex: 'bloodPressure',
  editable: true,
  inputType: 'pressure',
  render: function render(value, rowData) {
    return /*#__PURE__*/React__default.createElement(PressureInput, {
      value: _get(rowData, 'physicalExamMeasure'),
      hiddenIpt: true
    });
  },
  width: APP_CONFIG.CELL_WIDTH_MIDDLE
}, {
  title: function title() {
    return /*#__PURE__*/React__default.createElement("span", null, "\u8840\u538B-\u4E8C\u6D4B", /*#__PURE__*/React__default.createElement("em", {
      className: "suffix"
    }, "(mmHg)"));
  },
  dataIndex: 'bloodPressure2',
  editable: true,
  inputType: 'pressure',
  render: function render(value, rowData) {
    var pressure = {
      systolic: _get(rowData, 'physicalExamMeasure.systolic2'),
      diastolic: _get(rowData, 'physicalExamMeasure.diastolic2')
    };
    return /*#__PURE__*/React__default.createElement(PressureInput, {
      value: pressure,
      hiddenIpt: true
    });
  },
  width: APP_CONFIG.CELL_WIDTH_MIDDLE
}, {
  title: function title() {
    return /*#__PURE__*/React__default.createElement("span", null, "\u8840\u538B-\u4E09\u6D4B", /*#__PURE__*/React__default.createElement("em", {
      className: "suffix"
    }, "(mmHg)"));
  },
  dataIndex: 'bloodPressure3',
  editable: true,
  inputType: 'pressure',
  render: function render(value, rowData) {
    var pressure = {
      systolic: _get(rowData, 'physicalExamMeasure.systolic3'),
      diastolic: _get(rowData, 'physicalExamMeasure.diastolic3')
    };
    return /*#__PURE__*/React__default.createElement(PressureInput, {
      value: pressure,
      hiddenIpt: true
    });
  },
  width: APP_CONFIG.CELL_WIDTH_MIDDLE
}, {
  title: function title() {
    return /*#__PURE__*/React__default.createElement("span", null, "\u8109\u640F", /*#__PURE__*/React__default.createElement("em", {
      className: "suffix"
    }, "(bpm)"));
  },
  dataIndex: ['physicalExamMeasure', 'pulse'],
  editable: true,
  inputType: 'input_with_range',
  inputProps: {
    min: 60,
    max: 100,
    tip: '脉搏的正常范围值是60~100bpm'
  },
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  render: function render(value) {
    return /*#__PURE__*/React__default.createElement(InputWithRange, {
      value: value,
      min: 60,
      max: 100,
      hiddenIpt: true
    });
  }
}, {
  title: function title() {
    return /*#__PURE__*/React__default.createElement("span", null, "\u4F53\u91CD", /*#__PURE__*/React__default.createElement("em", {
      className: "suffix"
    }, "(kg)"));
  },
  dataIndex: ['physicalExamMeasure', 'weight'],
  editable: true,
  inputType: 'input_with_label',
  inputProps: {
    min: 0,
    type: 'number'
  },
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  render: function render(value) {
    return value || '';
  }
}, {
  title: '备注',
  dataIndex: 'remark',
  editable: true,
  inputType: 'input_with_label',
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  render: function render(value) {
    return value || '';
  }
}, {
  title: '创建人',
  dataIndex: ['createUser', 'firstName'],
  editable: false,
  inputType: 'input_with_label',
  width: APP_CONFIG.CELL_WIDTH_MIDDLE,
  render: function render(value) {
    return value || '';
  }
}];
var List = function (_super) {
  __extends(List, _super);
  function List() {
    var _this = _super !== null && _super.apply(this, arguments) || this;
    _this.staticDefaultQuery = {
      'type.equals': 2,
      page: 0,
      size: 20,
      sort: 'createDate,DESC'
    };
    _this.handleEdit = function (rowData) {
      return function () {
        var form = _this.form;
        form.setFieldsValue(__assign(__assign({}, rowData), {
          bloodPressure: {
            systolic: _get(rowData, 'physicalExamMeasure.systolic'),
            diastolic: _get(rowData, 'physicalExamMeasure.diastolic')
          },
          bloodPressure2: {
            systolic: _get(rowData, 'physicalExamMeasure.systolic2'),
            diastolic: _get(rowData, 'physicalExamMeasure.diastolic2')
          },
          bloodPressure3: {
            systolic: _get(rowData, 'physicalExamMeasure.systolic3'),
            diastolic: _get(rowData, 'physicalExamMeasure.diastolic3')
          },
          createDate: dayjs(_get(rowData, 'createDate'))
        }));
        _this.setState({
          editKey: _get(rowData, 'editKey') || _get(rowData, 'id')
        });
      };
    };
    _this.handleAdd = function () {
      return __awaiter(_this, void 0, void 0, function () {
        var user, _a, dataSource, editKey, mockKey, addData, form;
        return __generator(this, function (_b) {
          switch (_b.label) {
            case 0:
              user = this.props.user;
              _a = this.state, dataSource = _a.dataSource, editKey = _a.editKey;
              if (!_isNil(editKey)) {
                _message.error('请先保存上一条记录');
                return [2];
              }
              mockKey = new Date().toString();
              addData = {
                createDate: dayjs(getFutureDate(0)),
                createUser: {
                  id: _get(user, 'basicInfo.id')
                },
                editKey: mockKey
              };
              form = this.form;
              form.setFieldsValue(addData);
              return [4, this.setState({
                dataSource: __spreadArray([addData], dataSource, true),
                editKey: mockKey
              })];
            case 1:
              _b.sent();
              return [2];
          }
        });
      });
    };
    _this.handleItemSave = function (rowData) {
      return function () {
        return __awaiter(_this, void 0, void 0, function () {
          var _a, baseUrl, pregnancyData, formData, physicalExamMeasure, data;
          var _b, _c, _d;
          return __generator(this, function (_e) {
            switch (_e.label) {
              case 0:
                _a = this.props, baseUrl = _a.baseUrl, pregnancyData = _a.pregnancyData;
                return [4, (_b = this.form) === null || _b === void 0 ? void 0 : _b.validateFields()];
              case 1:
                _e.sent();
                formData = (_c = this.form) === null || _c === void 0 ? void 0 : _c.getFieldsValue();
                physicalExamMeasure = __assign(__assign(__assign({}, _get(rowData, 'physicalExamMeasure')), _get(formData, 'physicalExamMeasure')), {
                  systolic: _get(formData, 'bloodPressure.systolic'),
                  diastolic: _get(formData, 'bloodPressure.diastolic'),
                  systolic2: _get(formData, 'bloodPressure2.systolic'),
                  diastolic2: _get(formData, 'bloodPressure2.diastolic'),
                  systolic3: _get(formData, 'bloodPressure3.systolic'),
                  diastolic3: _get(formData, 'bloodPressure3.diastolic')
                });
                data = __assign(__assign(__assign({}, rowData), formData), {
                  createDate: formatDate(formData.createDate),
                  physicalExamMeasure: physicalExamMeasure
                });
                if (!_get(data, 'id')) return [3, 3];
                return [4, request.put(baseUrl, data)];
              case 2:
                _e.sent();
                return [3, 5];
              case 3:
                _set(data, 'outpatientNO', _get(pregnancyData, 'outpatientNO'));
                _set(data, 'name', _get(pregnancyData, 'name'));
                _set(data, 'type', 2);
                return [4, request.post(baseUrl, data)];
              case 4:
                _e.sent();
                _e.label = 5;
              case 5:
                (_d = this.form) === null || _d === void 0 ? void 0 : _d.resetFields();
                _message.success('保存成功');
                return [4, this.setState({
                  editKey: undefined
                })];
              case 6:
                _e.sent();
                return [4, this.handleSearch()];
              case 7:
                _e.sent();
                return [2];
            }
          });
        });
      };
    };
    return _this;
  }
  List.defaultProps = {
    baseUrl: '/api/measures',
    asChildComponentQueryLabel: 'outpatientNO.equals',
    baseTitle: '产后复诊记录',
    needPagination: true,
    needEditInTable: true,
    showQuery: false,
    showAdd: true,
    showAction: true,
    tableColumns: tableColumns,
    rowKey: 'id',
    Table: ProductsTable,
    otherTableProps: {
      scroll: {
        x: 1278
      }
    }
  };
  return List;
}(BaseListOld);
mchcUtils.getDoctorEndId;
var TABS = {
  ArchivalInformation: '1',
  FurtherVisit: '2',
  PostpartumVisit: '3',
  DoctorInformedConsent: '4',
  InformedConsent: '5',
  OuterCourtReport: '6',
  CloseArchives: '7'
};
function NurseMain(props) {
  var _a;
  console.log('NurseMain props', props);
  var _b = useState({}),
    headerData = _b[0],
    set_headerData = _b[1];
  var _c = useState(TABS['ArchivalInformation']),
    activeKey = _c[0],
    set_activeKey = _c[1];
  var pregnancy_id = (_a = _get(props, "id")) !== null && _a !== void 0 ? _a : getSearchParamsValue('id');
  useEffect(function () {
    getHeaderInfo();
    console.log('useEffect getHeaderInfo');
    return function () {};
  }, []);
  function getHeaderData() {
    return __awaiter(this, void 0, void 0, function () {
      var id, headerData;
      return __generator(this, function (_a) {
        switch (_a.label) {
          case 0:
            id = _get(props, 'id') || getSearchParamsValue('id');
            return [4, request.get("/api/nurse/getOutpatientHeaderInfo?id=".concat(id, "&q=1"))];
          case 1:
            headerData = _a.sent().data;
            set_headerData(headerData);
            return [2];
        }
      });
    });
  }
  function getHeaderInfo() {
    return __awaiter(this, void 0, void 0, function () {
      var id, res;
      return __generator(this, function (_a) {
        switch (_a.label) {
          case 0:
            id = getSearchParamsValue('id') || _get(props, "id");
            if (!id) {
              _message.error('请选择就诊人');
              return [2, null];
            }
            return [4, request.get('/api/doctor/getOutpatientHeaderInfo?q=2&id=' + id)];
          case 1:
            res = _a.sent().data;
            set_headerData(res);
            return [2, res];
        }
      });
    });
  }
  function handleChangeTab(activeKey) {
    return __awaiter(this, void 0, void 0, function () {
      return __generator(this, function (_a) {
        set_activeKey(activeKey);
        return [2];
      });
    });
  }
  function renderContent() {
    var id = _get(props, 'id') || getSearchParamsValue('id');
    var nurseDeskVoucher = SLocal_SystemConfig.get('nurseDeskVoucher');
    return /*#__PURE__*/React__default.createElement(MyLazyComponent, null, /*#__PURE__*/React__default.createElement(_Tabs, {
      className: "panel-with-child_content-tabs",
      activeKey: activeKey,
      onChange: handleChangeTab
    }, /*#__PURE__*/React__default.createElement(_Tabs.TabPane, {
      tab: "\u6863\u6848\u4FE1\u606F",
      key: TABS['ArchivalInformation']
    }, /*#__PURE__*/React__default.createElement(Pregnancies, _extends({
      id: id,
      reloadHeader: getHeaderData
    }, props))), /*#__PURE__*/React__default.createElement(_Tabs.TabPane, {
      tab: "\u590D\u8BCA\u7BA1\u7406",
      key: TABS['FurtherVisit']
    }, activeKey === TABS['FurtherVisit'] && /*#__PURE__*/React__default.createElement(List$1, _extends({
      id: _get(headerData, 'outpatientNO'),
      pregnancyData: headerData
    }, props))), /*#__PURE__*/React__default.createElement(_Tabs.TabPane, {
      tab: "\u4EA7\u540E\u590D\u8BCA\u7BA1\u7406",
      key: TABS['PostpartumVisit']
    }, activeKey === TABS['PostpartumVisit'] && /*#__PURE__*/React__default.createElement(List, _extends({
      id: _get(headerData, 'outpatientNO'),
      pregnancyData: headerData
    }, props))), nurseDeskVoucher && /*#__PURE__*/React__default.createElement(_Tabs.TabPane, {
      tab: "\u8865\u52A9\u5238\u7BA1\u7406",
      key: TABS['InformedConsent']
    }, activeKey === TABS['InformedConsent'] && /*#__PURE__*/React__default.createElement(Inner, _extends({
      id: id,
      pregnancyData: headerData
    }, props))), /*#__PURE__*/React__default.createElement(_Tabs.TabPane, {
      tab: "\u7ED3\u6848\u7BA1\u7406",
      key: TABS['CloseArchives']
    }, activeKey === TABS['CloseArchives'] && /*#__PURE__*/React__default.createElement(ClosingArchives, _extends({
      id: id
    }, props)))));
  }
  return /*#__PURE__*/React__default.createElement(DoctorEnd_HeaderInfoLayout, _extends({}, props, {
    id: pregnancy_id,
    isNurse: true,
    saveHeaderInfo: set_headerData
  }), renderContent());
}
export { NurseMain as default };
//# sourceMappingURL=prenatal-visit.pregnancy.nurse-end.js.map
