"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _vmCard = _interopRequireDefault(require("../../../vm-card"));
var _antd = require("antd");
var _react = _interopRequireDefault(require("react"));
var _vmInfoCollection = _interopRequireDefault(require("../../../vm-info-collection"));
var _CollectStatistics = _interopRequireDefault(require("./CollectStatistics"));
var _moment = _interopRequireDefault(require("moment"));
var _Factory = _interopRequireDefault(require("./Factory"));
var _CollectRecord = _interopRequireDefault(require("./CollectRecord"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var QdBase = function QdBase(_ref) {
  var info = _ref.info,
    id = _ref.id;
  var dataSource = [{
    label: '单位名称',
    key: 'unitName',
    value: info.unitName
  }, {
    label: '收运单位类型',
    key: 'garbageTypeStr',
    value: info.garbageTypeStr
  }, {
    label: '餐厨废弃物收运许可编号',
    key: 'licenseNumber',
    value: info.licenseNumber,
    width: '100%'
  }, {
    label: '餐厨废弃物收运许可',
    key: 'licenseFiles',
    value: info.licenseFiles,
    componentType: 'image',
    width: '100%'
  }, {
    label: '服务范围',
    key: 'ccScopeServiceVOList',
    value: info.ccScopeServiceVOList && info.ccScopeServiceVOList.length ? info.ccScopeServiceVOList.map(function (item) {
      return item.divisionName;
    }).join(',') : '-'
  }, {
    label: '成立时间',
    key: 'establishedTime',
    value: info.establishedTime
  }];
  return /*#__PURE__*/_react["default"].createElement(_antd.Row, {
    gutter: [10, 10],
    style: {
      padding: 10
    }
  }, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    span: 11
  }, /*#__PURE__*/_react["default"].createElement(_antd.Row, {
    gutter: [10, 10],
    style: {
      height: '100%'
    }
  }, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    span: 24
  }, /*#__PURE__*/_react["default"].createElement(_vmCard["default"], {
    title: "\u57FA\u7840\u4FE1\u606F"
  }, /*#__PURE__*/_react["default"].createElement(_vmInfoCollection["default"], {
    data: dataSource,
    horizontal: true,
    width: "50%",
    ellipsis: true
  }))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    span: 24
  }, /*#__PURE__*/_react["default"].createElement(_vmCard["default"], {
    title: "\u4ECA\u65E5\u8FDB\u5382\u660E\u7EC6"
  }, /*#__PURE__*/_react["default"].createElement(_Factory["default"], {
    id: id
  }))))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    span: 13
  }, /*#__PURE__*/_react["default"].createElement(_antd.Row, {
    gutter: [10, 10],
    style: {
      height: '100%'
    }
  }, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    span: 24
  }, /*#__PURE__*/_react["default"].createElement(_vmCard["default"], {
    title: "\u4ECA\u65E5\u6536\u8FD0\u7EDF\u8BA1"
  }, /*#__PURE__*/_react["default"].createElement(_CollectStatistics["default"], {
    id: id,
    startTime: (0, _moment["default"])().format('YYYY-MM-DD 00:00:00'),
    endTime: (0, _moment["default"])().format('YYYY-MM-DD 23:59:59'),
    garbageType: info.garbageType
  }))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    span: 24
  }, /*#__PURE__*/_react["default"].createElement(_vmCard["default"], {
    title: "\u4ECA\u65E5\u6536\u8FD0\u660E\u7EC6"
  }, /*#__PURE__*/_react["default"].createElement(_CollectRecord["default"], {
    id: id,
    startTime: (0, _moment["default"])().format('YYYY-MM-DD 00:00:00'),
    endTime: (0, _moment["default"])().format('YYYY-MM-DD 23:59:59'),
    garbageType: info.garbageType
  }))))));
};
var _default = exports["default"] = QdBase;
//# sourceMappingURL=index.js.map
