import { rt_ctx } from '@lm_fe/env';
import { defineFormConfig } from '@lm_fe/service';
var ctx = rt_ctx;
ctx.React;
var width = 66;
var form_config_midwifery = defineFormConfig([{
  dataIndex: 'id',
  hidden: true,
  form_hidden: true
}, {
  title: '姓名',
  dataIndex: ['pregnancy', 'name'],
  layout: '1/1',
  align: 'center',
  width: width
}, {
  title: '门诊号',
  dataIndex: ['pregnancy', 'outpatientNO'],
  layout: '1/1',
  align: 'center'
}, {
  title: '年龄',
  dataIndex: ['pregnancy', 'age'],
  layout: '1/1',
  align: 'center',
  width: width / 2
}, {
  title: '电话号码',
  dataIndex: ['pregnancy', 'telephone'],
  layout: '1/1',
  align: 'center',
  inputType: 'input'
}, {
  title: '证件号码',
  dataIndex: ['pregnancy', 'idNO'],
  layout: '1/1',
  align: 'center'
}, {
  title: '孕周',
  dataIndex: ['gestationalWeek'],
  layout: '1/1',
  align: 'center',
  width: width / 2
}, {
  title: 'GP',
  dataIndex: ['pregnancy'],
  layout: '1/1',
  width: width / 2,
  isActive: 0,
  align: 'center',
  render: function render(value, rowData, index) {
    if (value === void 0) {
      value = {};
    }
    return ctx.utils.format_gp(value);
  }
}, {
  title: '预产期',
  dataIndex: ['pregnancy', 'sureEdd'],
  layout: '1/1',
  align: 'center'
}, {
  title: '高危等级',
  dataIndex: ['pregnancy', 'highriskGrad'],
  layout: '1/1',
  align: 'center',
  width: width,
  inputType: 'input'
}, {
  title: '项目',
  dataIndex: ['course', 'name'],
  layout: '1/1',
  align: 'center'
}, {
  title: '项目日期',
  dataIndex: ['course', 'courseDate'],
  layout: '1/1',
  align: 'center',
  render: function render(text, record) {
    return "".concat(record.course.courseDate || '', " ").concat(record.course.period);
  }
}, {
  title: '预约日期',
  dataIndex: 'reserveDate',
  layout: '1/1',
  align: 'center'
}, {
  dataIndex: 'status',
  title: '签到',
  layout: '1/1',
  inputType: 'MC',
  width: width,
  inputProps: {
    marshal: 0,
    options: '未签到,已签到,已取消'
  },
  render: function render(status, rowData) {
    var arr = ['未签到', '已签到', '已取消'];
    return arr[status];
  }
}]);
export { form_config_midwifery as default };
//# sourceMappingURL=pages.pregnant-school.ordered2.js.map
