"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _moment = _interopRequireDefault(require("moment"));
var _antd = require("antd");
var _RmInfoSummary = _interopRequireDefault(require("./RmInfoSummary"));
var _RmType = _interopRequireDefault(require("./RmType"));
var _RmMonthTrend = _interopRequireDefault(require("./RmMonthTrend"));
var _RmRecord = _interopRequireDefault(require("./RmRecord"));
var _api = require("./api");
require("./style");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
/**
 * 通用-维保信息
 */

var RepaireMaintain = function RepaireMaintain(props) {
  var id = props.id;
  var date = (0, _moment["default"])().format('YYYY-MM-DD');
  var _BaseService$useRepai = _api.BaseService.useRepairMaintain(id, date, date),
    rmSummary = _BaseService$useRepai.rmSummary,
    rmType = _BaseService$useRepai.rmType,
    rmMonthTrend = _BaseService$useRepai.rmMonthTrend;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "repair-maintain"
  }, /*#__PURE__*/_react["default"].createElement(_antd.Row, {
    gutter: [10, 10]
  }, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    span: 24
  }, /*#__PURE__*/_react["default"].createElement(_RmInfoSummary["default"], {
    data: rmSummary
  })), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    span: 12
  }, /*#__PURE__*/_react["default"].createElement(_RmType["default"], {
    data: rmType
  })), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    span: 12
  }, /*#__PURE__*/_react["default"].createElement(_RmMonthTrend["default"], {
    data: rmMonthTrend
  }))), /*#__PURE__*/_react["default"].createElement(_antd.Row, {
    gutter: [10, 10]
  }, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    span: 24
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "rm-record"
  }, /*#__PURE__*/_react["default"].createElement(_RmRecord["default"], {
    id: id
  })))));
};
var _default = exports["default"] = RepaireMaintain;
//# sourceMappingURL=index.js.map
