import { APP_CONFIG } from '@lm_fe/components_m';
import { rt_ctx } from '@lm_fe/env';
import { defineFormConfig } from '@lm_fe/service';
var ctx = rt_ctx;
var React = ctx.React;
var table = defineFormConfig([{
  title: '就诊卡号',
  dataIndex: 'outpatientNO',
  ellipsis: true,
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  align: 'center'
}, {
  title: '孕妇姓名',
  dataIndex: 'name',
  ellipsis: true,
  width: APP_CONFIG.CELL_WIDTH_SMALL
}, {
  title: '年龄',
  dataIndex: 'age',
  width: 42
}, {
  title: '孕周',
  dataIndex: 'currentGestationalWeek',
  width: 52
}, {
  title: '证件号码',
  dataIndex: 'idNO',
  ellipsis: true,
  width: APP_CONFIG.CELL_WIDTH_MIDDLE + 20
}, {
  title: '预产期-日期',
  dataIndex: 'edd',
  width: APP_CONFIG.CELL_WIDTH_SMALL
}, {
  title: '预产期-B超',
  dataIndex: 'sureEdd',
  width: APP_CONFIG.CELL_WIDTH_SMALL
}, {
  title: '孕/产',
  dataIndex: 'gravidity',
  width: 60,
  align: 'center',
  render: function render(value, rowData) {
    return ctx.utils.format_gp(rowData);
  }
}, {
  title: '产检编号',
  dataIndex: 'checkupNO',
  ellipsis: true,
  width: APP_CONFIG.CELL_WIDTH_SMALL
}, {
  title: '手机号码',
  dataIndex: 'telephone',
  width: APP_CONFIG.CELL_WIDTH_SMALL + 20
}, {
  title: '审核日期',
  dataIndex: 'validateDate',
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  render: function render(value, rowData) {
    return ctx.utils.formatDate(value);
  }
}, {
  title: '创建日期',
  dataIndex: 'createDate',
  width: APP_CONFIG.CELL_WIDTH_SMALL,
  render: function render(value, rowData) {
    return ctx.utils.formatDate(value);
  }
}, {
  title: '审核人',
  dataIndex: 'auditorName',
  width: APP_CONFIG.CELL_WIDTH_SMALL
}, {
  title: '档案状态',
  dataIndex: 'recordstate',
  width: 76,
  align: 'center',
  render: function render(state, rowData) {
    var id = rowData.id;
    var label = ctx.mchcEnv.get_option_label('档案状态', state);
    var Button = ctx.ui.Button;
    if (label === '已审核' || label === '已结案') {
      var className = label === '已审核' ? 'egister_2' : '';
      return /*#__PURE__*/React.createElement(Button, {
        size: "small",
        onClick: function onClick() {
          ctx.safeTo("/prenatal-visit/pregnancy/nurse-end?id=".concat(id), {
            id: id
          });
        },
        className: "egister_ ".concat(className)
      }, label);
    }
    return /*#__PURE__*/React.createElement(Button, {
      size: "small",
      onClick: function onClick() {
        ctx.safeTo("/prenatal-visit/pregnancy/check?id=".concat(id), {
          id: id
        });
      },
      className: "egister_ egister_1"
    }, label);
  }
}]);
export { table as default };
//# sourceMappingURL=pregnancy.list.config.js.map
