import 'antd/es/modal/style';
import 'antd/es/modal';
import 'antd/es/row/style';
import 'antd/es/row';
import 'antd/es/input/style';
import 'antd/es/input';
import 'antd/es/col/style';
import 'antd/es/col';
import 'antd/es/button/style';
import 'antd/es/button';
import _get from 'lodash/get';
import { s as styleInject, b as __awaiter, c as __generator, e as api, d as __assign } from './index.js';
import { DoctorEnd_ImageReport_Report, LazyAntd } from '@lm_fe/components_m';
import React__default, { useState, useEffect } from 'react';
import { mchcLogger } from '@lm_fe/env';
import '@lm_fe/pages';
import { filter_obj_to_url_search } from '@lm_fe/utils';
import 'classnames';
import 'antd/es/tabs/style';
import 'antd/es/tabs';
import 'lodash/size';
import 'lodash/orderBy';
import 'lodash/map';
import '@lm_fe/components';
import 'antd/es/collapse/style';
import 'antd/es/collapse';
import 'antd/es/badge/style';
import 'antd/es/badge';
import 'lodash/assign';
import '@ant-design/icons';
import '@lm_fe/service';
var css_248z = ".prenatal-visit-main_image {\n  height: 100%;\n  padding: 10px 20px;\n  overflow-y: auto;\n  background-color: #fff;\n}\n.prenatal-visit-main_image .isShot {\n  position: relative;\n  display: inline-block;\n  width: 100%;\n  padding-right: 24px;\n}\n.prenatal-visit-main_image .isShot::after {\n  position: absolute;\n  top: 50%;\n  right: 6px;\n  width: 18px;\n  height: 18px;\n  color: #0e318d;\n  font-size: 12px;\n  line-height: 14px;\n  text-align: center;\n  border: 1px solid #0e318d;\n  border-radius: 50%;\n  transform: translateY(-50%);\n  content: '\\62CD';\n}\n.prenatal-visit-main_image-modal .ant-modal-body {\n  height: 90vh;\n  padding: 0;\n}\n.prenatal-visit-main_image-modal img {\n  width: 100%;\n}\n.prenatal-visit-main_image-modal .image-search .image-msg {\n  margin: 10px;\n}\n.prenatal-visit-main_image-modal .image-search .image-btn {\n  margin: 0 12px 12px 0;\n}\n.img-report-modal {\n  height: 95vh;\n}\n.img-report-modal .ant-modal-content {\n  height: 100%;\n}\n.img-report-modal .ant-modal-content .ant-modal-body {\n  height: calc(100% - 50px);\n  text-align: center;\n}\n.img-report-modal .img-container {\n  height: calc(100% - 50px);\n  margin-bottom: 4px;\n  overflow: auto;\n}\n.img-report-modal .img-container .hideContent {\n  display: none;\n}\n.img-report-modal .img-container .isShow {\n  display: block;\n}\n.img-report-modal .img-container img {\n  width: 100%;\n}\n";
styleInject(css_248z);
LazyAntd.Tree;
LazyAntd.TreeSelect;
LazyAntd.Select;
LazyAntd.Table;
LazyAntd.Dropdown;
LazyAntd.Pagination;
process.env.NODE_ENV === 'production' ? '' : 'http://120.79.170.18:8975';
var ignore_usr = true;
function Inner(props) {
  var _this = this;
  mchcLogger.log('DoctorEnd_ImageReport', props);
  var _a = useState(false);
  _a[0];
  _a[1];
  var _b = useState(false);
  _b[0];
  _b[1];
  var _c = useState(false);
  _c[0];
  _c[1];
  var _d = useState('');
  _d[0];
  _d[1];
  var _e = useState([]),
    tableData = _e[0],
    set_tableData = _e[1];
  var _f = useState('');
  _f[0];
  _f[1];
  var _g = useState(['无脑儿', '脑积水', '侧脑室扩张', '十二指肠闭锁', '多囊肾', '唇裂']);
  _g[0];
  _g[1];
  var _h = useState([]);
  _h[0];
  _h[1];
  var _j = useState(1);
  _j[0];
  _j[1];
  var _k = useState({});
  _k[0];
  _k[1];
  var _l = props.headerInfo,
    headerInfo = _l === void 0 ? {} : _l,
    _m = props.type,
    type = _m === void 0 ? 1 : _m,
    needOutReport = props.needOutReport;
  var outpatientNO = _get(headerInfo, 'outpatientNO') || _get(headerInfo, 'outpatientNo');
  var filter_obj = filter_obj_to_url_search(headerInfo);
  useEffect(function () {
    (function () {
      return __awaiter(_this, void 0, void 0, function () {
        var list;
        return __generator(this, function (_a) {
          switch (_a.label) {
            case 0:
              return [4, needOutReport ? api.image.getOuterReports(__assign(__assign({}, filter_obj), {
                'type.equals': 2,
                'patientNo.equals': outpatientNO
              }), ignore_usr) : api.image.getReportList(headerInfo, type, ignore_usr)];
            case 1:
              list = _a.sent();
              set_tableData(list);
              return [2];
          }
        });
      });
    })();
    return function () {};
  }, []);
  return /*#__PURE__*/React__default.createElement(DoctorEnd_ImageReport_Report, {
    tableData: tableData
  });
}
export { Inner as default };
//# sourceMappingURL=prenatal-visit.pregnancy.doctor-end2.js.map
