import { OkButton } from '@lm_fe/components_m';
import { mchcEvent } from '@lm_fe/env';
import { BF_Wrap2, MyBaseList } from '@lm_fe/pages';
import { SLocal_History } from '@lm_fe/service';
import React__default, { useEffect } from 'react';
function List(props) {
  var _a = BF_Wrap2({
      default_conf: {
        title: 'B族链球菌-列表',
        tableColumns: function tableColumns() {
          return import('./pages.prenatal-visit.gbs2.js');
        },
        name: '/api/gbsResult',
        searchParams: {},
        searchConfig: [{
          title: '姓名',
          dataIndex: 'name'
        }, {
          title: '证件号码',
          dataIndex: 'idNO'
        }, {
          title: '就诊卡号',
          dataIndex: 'outpatientNO'
        }, {
          name: 'testTime',
          label: '校验时间',
          inputType: 'rangeDate'
        }]
      }
    }),
    Wrap = _a.Wrap,
    config = _a.config;
  useEffect(function () {
    var rm = mchcEvent.on_rm('custom_msg', function (e) {
      e.data;
    });
    return rm;
  }, []);
  return /*#__PURE__*/React__default.createElement(Wrap, null, /*#__PURE__*/React__default.createElement(MyBaseList, {
    name: config === null || config === void 0 ? void 0 : config.name,
    searchParams: config === null || config === void 0 ? void 0 : config.searchParams,
    useListSourceCount: true,
    initialSearchValue: {},
    searchConfig: config === null || config === void 0 ? void 0 : config.searchConfig,
    showRowPrintBtn: true,
    ActionAddonBefore: function ActionAddonBefore(ctx) {
      var rowData = ctx.rowData;
      var pregnancyId = rowData.pregnancyId;
      rowData.id;
      return /*#__PURE__*/React__default.createElement(OkButton, {
        size: "small",
        onClick: function onClick() {
          return SLocal_History.historyPush("/prenatal-visit/pregnancy/doctor-end?id=".concat(pregnancyId));
        }
      }, "\u770B\u8BCA");
    },
    tableColumns: __DEV__ ? function () {
      return import('./pages.prenatal-visit.gbs2.js');
    } : config === null || config === void 0 ? void 0 : config.tableColumns
  }));
}
export { List as default };
//# sourceMappingURL=pages.prenatal-visit.gbs.js.map
