import 'antd/es/button/style';
import _Button from 'antd/es/button';
import { b as __awaiter, c as __generator } from './index.js';
import { BF_Wrap2, MyBaseList } from '@lm_fe/pages';
import { getMomentRange, formatDate, request } from '@lm_fe/utils';
import React__default from 'react';
import { defineFormConfig } from '@lm_fe/service';
import '@lm_fe/env';
import 'antd/es/tabs/style';
import 'antd/es/tabs';
import 'lodash/size';
import 'lodash/get';
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/components_m';
function BreastCancerDataReport(prop) {
  var _this = this;
  var _a = BF_Wrap2({
      default_conf: {
        title: "\u5A5A\u524D\u68C0\u67E5-\u4E0A\u62A5",
        searchConfig: defineFormConfig([{
          label: '就诊卡号',
          name: 'womanOutpatientNO',
          inputType: 'Input'
        }, {
          label: '姓名',
          name: 'womanName',
          inputType: 'Input'
        }, {
          label: '上报状态',
          name: 'womanUploadState',
          inputType: 'MS',
          inputProps: {
            optionKey: '上报状态'
          }
        }]),
        tableColumns: defineFormConfig([{
          title: '就诊卡号',
          dataIndex: 'womanOutpatientNO'
        }, {
          title: '姓名',
          dataIndex: 'womanName'
        }, {
          title: '上报时间',
          dataIndex: 'womanUploadDate'
        }, {
          title: '上报状态',
          dataIndex: 'womanUploadState',
          inputType: 'MS',
          inputProps: {
            optionKey: '上报状态',
            marshal: 0
          }
        }, {
          title: '上报说明',
          dataIndex: 'womanUploadMsg'
        }, {
          title: '男方就诊卡号',
          dataIndex: 'manOutpatientNO'
        }, {
          title: '男方姓名',
          dataIndex: 'manName'
        }, {
          title: '男方上报时间',
          dataIndex: 'manUploadDate'
        }, {
          title: '男方上报状态',
          dataIndex: 'manUploadState',
          inputType: 'MS',
          inputProps: {
            optionKey: '上报状态',
            marshal: 0
          }
        }, {
          title: '男方上报说明',
          dataIndex: 'manUploadMsg'
        }])
      }
    }),
    Wrap = _a.Wrap,
    config = _a.config;
  return /*#__PURE__*/React__default.createElement(Wrap, null, /*#__PURE__*/React__default.createElement(MyBaseList, {
    name: "/api/premarital/check/findAllPremaritalCheckReportLog",
    searchParams: {},
    needChecked: true,
    useListSourceCount: true,
    initialSearchValue: {
      validateDate: getMomentRange().近一周.map(formatDate)
    },
    searchConfig: config === null || config === void 0 ? void 0 : config.searchConfig,
    showAction: false,
    showAdd: false,
    RenderBtns: function RenderBtns(ctx) {
      var selectRows = ctx.getCheckRows();
      return /*#__PURE__*/React__default.createElement(_Button, {
        disabled: !selectRows.length,
        onClick: function onClick() {
          return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
              request.post('/api/dataReport/reportPremaritalCheckups', {
                ids: selectRows.map(function (_) {
                  return _.id;
                })
              });
              ctx.handleSearch();
              return [2];
            });
          });
        }
      }, "\u4E0A\u62A5");
    },
    tableColumns: config === null || config === void 0 ? void 0 : config.tableColumns
  }));
}
export { BreastCancerDataReport as default };
//# sourceMappingURL=pages.data-report.premarital-checkup.js.map
