import 'antd/es/message/style';
import _message from 'antd/es/message';
import { d as __assign } from './index.js';
import { OkButton } from '@lm_fe/components_m';
import { BF_Wrap2, MyBaseList, mchcModal__ } from '@lm_fe/pages';
import React__default from 'react';
import '@lm_fe/env';
import 'antd/es/tabs/style';
import 'antd/es/tabs';
import 'lodash/size';
import 'lodash/get';
import '@lm_fe/utils';
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 'antd/es/button/style';
import 'antd/es/button';
import 'lodash/assign';
import '@ant-design/icons';
import '@lm_fe/service';
function BreastCancerDataReport(props) {
  var form_fn = function form_fn() {
    return import('./pages.deliver-management.disease-screening3.js');
  };
  var _a = BF_Wrap2({
      default_conf: {
        name: "/api/disease-screenings",
        title: "\u4EA7\u79D1\u4F4F\u9662-\u65B0\u751F\u513F\u75BE\u75C5\u7B5B\u67E5\u8BB0\u5F55",
        tableColumns: form_fn,
        searchParams: {
          sort: 'deliveryTime,id,desc'
        },
        searchConfig: function searchConfig() {
          return import('./pages.deliver-management.disease-screening4.js');
        }
      }
    }),
    config = _a.config,
    Wrap = _a.Wrap;
  function print(q) {
    if (!q['labourDate.greaterOrEqualThan']) return _message.info('请选择分娩日期');
    mchcModal__.open('print_modal', {
      modal_data: {
        requestData: __assign(__assign({}, q), {
          url: '/api/pdf-preview-all',
          resource: 'diseaseScreening'
        })
      }
    });
  }
  return /*#__PURE__*/React__default.createElement(Wrap, null, /*#__PURE__*/React__default.createElement(MyBaseList, {
    RenderBtns: function RenderBtns(ctx) {
      return /*#__PURE__*/React__default.createElement(OkButton, {
        onClick: function onClick() {
          return print(ctx.getSearchParams());
        }
      }, "\u6253\u5370");
    },
    searchParams: config === null || config === void 0 ? void 0 : config.searchParams,
    name: config === null || config === void 0 ? void 0 : config.name,
    useListSourceCount: true,
    searchConfig: config === null || config === void 0 ? void 0 : config.searchConfig,
    showAdd: false,
    tableColumns: __DEV__ ? form_fn : config === null || config === void 0 ? void 0 : config.tableColumns
  }));
}
export { BreastCancerDataReport as default };
//# sourceMappingURL=pages.deliver-management.disease-screening2.js.map
