import { APP_CONFIG, rt_ctx } from '@lm_fe/env';
import { defineFormConfig } from '@lm_fe/service';
var ctx = rt_ctx;
var React = rt_ctx.React;
rt_ctx.mchcEnv;
function form_config(type) {
  var TYPE = type.toUpperCase();
  return defineFormConfig([{
    label: '住院号',
    dataIndex: 'inpatientNo',
    inputType: 'PatientAutoComplete',
    layout: '1/2',
    hidden: true,
    inputProps: {
      PatientAutoComplete_url: '/api/noenate-records',
      PatientAutoComplete_filterKey: 'admissionCriteria.inpatientNO',
      PatientAutoComplete_displayKey: ['admission.inpatientNO', 'admission.name', 'admission.bedNO'],
      onPatientAutoComplete: function onPatientAutoComplete(v, form) {
        form === null || form === void 0 ? void 0 : form.setFieldsValue(Object.assign(v.admission, {
          id: undefined
        }));
      }
    }
  }, {
    form_hidden: true,
    hidden: true,
    dataIndex: 'id'
  }, {
    title: '床号',
    layout: '1/2',
    dataIndex: 'bedNO',
    width: APP_CONFIG.CELL_WIDTH_SMALL,
    fixed: 'left'
  }, {
    title: '姓名',
    layout: '1/2',
    dataIndex: 'name',
    width: 70,
    fixed: 'left'
  }, {
    title: '多胎',
    layout: '1/2',
    dataIndex: 'multiplets',
    width: 50
  }, {
    title: '性别',
    layout: '1/2',
    dataIndex: 'gender',
    inputType: 'MC',
    inputProps: {
      optionKey: '性别2',
      marshal: 0
    },
    width: 50
  }, {
    title: '出生日期',
    layout: '1/2',
    dataIndex: 'deliveryTime',
    width: APP_CONFIG.CELL_WIDTH_MIDDLE,
    inputType: 'single_date_picker',
    render: function render(value) {
      return ctx.utils.formatDateTimeNoSecond(value);
    }
  }, {
    title: '体重（g）',
    layout: '1/2',
    dataIndex: 'weight',
    inputType: 'input_with_label',
    inputProps: {
      type: 'number'
    },
    width: APP_CONFIG.CELL_WIDTH_SMALL,
    render: function render(value, record) {
      return /*#__PURE__*/React.createElement("div", {
        title: (record === null || record === void 0 ? void 0 : record.deleteFlag) ? '该数据已被护理系统删除' : ''
      }, value);
    }
  }, {
    title: '新生儿记录标记',
    layout: '1/2',
    dataIndex: 'mark',
    inputType: 'MC',
    inputProps: {
      options: ctx.mchcEnv.get_other_options('nyOptions'),
      marshal: 0
    }
  }, {
    title: '接种日期',
    layout: '1/2',
    dataIndex: 'vaccinationTime',
    width: APP_CONFIG.CELL_WIDTH_MIDDLE,
    inputType: 'single_date_picker',
    inputProps: {
      showTime: true
    },
    render: function render(value) {
      return ctx.utils.formatDateTimeNoSecond(value);
    }
  }, {
    title: '接种剂量',
    layout: '1/2',
    dataIndex: 'dosage',
    inputType: 'MA',
    width: APP_CONFIG.CELL_WIDTH_SMALL,
    inputProps: {
      memorieskey: "".concat(type, "Dosage"),
      memoriesname: "".concat(TYPE, "\u63A5\u79CD\u5242\u91CF")
    }
  }, {
    title: '接种部位',
    layout: '1/2',
    dataIndex: 'part',
    inputType: 'MA',
    width: APP_CONFIG.CELL_WIDTH_SMALL,
    inputProps: {
      memorieskey: "".concat(type, "Part"),
      memoriesname: "".concat(TYPE, "\u63A5\u79CD\u90E8\u4F4D")
    }
  }, {
    title: '接种方式',
    layout: '1/2',
    dataIndex: 'way',
    inputProps: {
      memorieskey: "".concat(type, "Way"),
      memoriesname: "".concat(TYPE, "\u63A5\u79CD\u65B9\u5F0F")
    },
    inputType: 'MA',
    width: APP_CONFIG.CELL_WIDTH_SMALL
  }, {
    title: '生产厂家',
    layout: '1/2',
    dataIndex: 'vender',
    inputType: 'MA',
    width: APP_CONFIG.CELL_WIDTH_LARGE,
    inputProps: {
      memorieskey: "".concat(type, "Vender"),
      memoriesname: "".concat(TYPE, "\u751F\u4EA7\u5382\u5BB6")
    }
  }, {
    title: '生产批号',
    layout: '1/2',
    dataIndex: 'batchNumber',
    inputType: 'MA',
    width: APP_CONFIG.CELL_WIDTH_MIDDLE,
    inputProps: {
      memorieskey: 'bggBatchNumber',
      memoriesname: 'BCG生产批号'
    }
  }, {
    title: '有效期',
    layout: '1/2',
    dataIndex: 'validity',
    width: APP_CONFIG.CELL_WIDTH_MIDDLE,
    inputType: 'single_date_picker',
    render: function render(value) {
      return ctx.utils.formatDate(value);
    }
  }, {
    title: '备注',
    layout: '1/2',
    dataIndex: 'note',
    width: APP_CONFIG.CELL_WIDTH_MIDDLE
  }, {
    title: '阳性',
    layout: '1/2',
    dataIndex: 'hBV',
    inputType: 'MC',
    inputProps: {
      options: ctx.mchcEnv.get_other_options('nyOptions'),
      marshal: 0
    },
    width: 50
  }, {
    title: '接种者签名',
    layout: '1/2',
    dataIndex: 'signature',
    inputType: 'MA',
    width: APP_CONFIG.CELL_WIDTH_MIDDLE,
    inputProps: {
      memorieskey: 'bggSignature',
      memoriesname: 'BGG接种者签名'
    }
  }]);
}
export { form_config as default };
//# sourceMappingURL=pages.deliver-management.bgg-record3.js.map
