import 'antd/es/space/style';
import _Space from 'antd/es/space';
import 'antd/es/button/style';
import _Button from 'antd/es/button';
import 'antd/es/form/style';
import _Form from 'antd/es/form';
import { d as __assign } from './index.js';
import { useReadIdNO, BF_Wrap2, MyBaseList, mchcModal__, IdNOButton } from '@lm_fe/pages';
import { defineFormConfig, SLocal_History } from '@lm_fe/service';
import React__default, { useEffect } from 'react';
import Gaopaiyi_List from './prenatal-visit.report.list.js';
import { EyeOutlined } from '@ant-design/icons';
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 'lodash/assign';
import '@lm_fe/components_m';
import 'antd/es/pagination/style';
import 'antd/es/pagination';
import 'antd/es/modal/style';
import 'antd/es/modal';
import 'dayjs';
var bf_default = {
  tableColumns: function tableColumns() {
    return import('./women.list.config.js');
  },
  searchConfig: defineFormConfig([{
    label: '门诊号',
    inputType: 'input',
    name: 'outpatientNO'
  }, {
    label: '姓名',
    inputType: 'input',
    name: 'name'
  }, {
    label: '证件号码',
    inputType: 'input',
    name: 'idNO'
  }]),
  name: '/api/gynecological-patients',
  showAction: 1
};
function Gynecological_diseases_women(props) {
  var _a;
  var search_form = _Form.useForm()[0];
  var id_NO_msg = useReadIdNO().id_NO_msg;
  useEffect(function () {
    if ((id_NO_msg === null || id_NO_msg === void 0 ? void 0 : id_NO_msg.send_id) === 'list') search_form.setFieldsValue(id_NO_msg.data);
  }, [id_NO_msg]);
  var _b = BF_Wrap2({
      default_conf: __assign(__assign({}, bf_default), {
        title: '妇女档案-列表'
      })
    }),
    config = _b.config,
    Wrap = _b.Wrap;
  return /*#__PURE__*/React__default.createElement(Wrap, null, /*#__PURE__*/React__default.createElement(MyBaseList, {
    tableColumns: config === null || config === void 0 ? void 0 : config.tableColumns,
    searchConfig: config === null || config === void 0 ? void 0 : config.searchConfig,
    name: (_a = config === null || config === void 0 ? void 0 : config.name) !== null && _a !== void 0 ? _a : '/api/gynecological-patients',
    searchForm: search_form,
    ActionAddonBefore: function ActionAddonBefore(_a) {
      var rowData = _a.rowData;
      return /*#__PURE__*/React__default.createElement(_Space, null, /*#__PURE__*/React__default.createElement(_Button, {
        size: "small",
        onClick: function onClick() {
          mchcModal__.open('modal_page', {
            title: '高拍仪查看',
            modal_data: {
              content: /*#__PURE__*/React__default.createElement(Gaopaiyi_List, {
                type: "6",
                search: {
                  patientNo: rowData.outpatientNO
                }
              })
            }
          });
        }
      }, "\u540C\u610F\u4E66"), /*#__PURE__*/React__default.createElement(_Button, {
        size: "small",
        icon: /*#__PURE__*/React__default.createElement(EyeOutlined, null),
        onClick: function onClick() {
          SLocal_History.safe_history_push("/gynecological-diseases/women/women-exam-records?id=".concat(rowData.id), props);
        }
      }));
    },
    RenderBtns: function RenderBtns(ctx) {
      return /*#__PURE__*/React__default.createElement(IdNOButton, {
        send_id: "list"
      });
    }
  }));
}
export { Gynecological_diseases_women as default };
//# sourceMappingURL=gynecological-diseases.women.list.js.map
