"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _vmSubTitle = _interopRequireDefault(require("../vm-sub-title"));
var _count = _interopRequireDefault(require("./imgs/count.png"));
var _amount = _interopRequireDefault(require("./imgs/amount.png"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
 * 维保信息汇总
 */

var RmInfoSummary = function RmInfoSummary(props) {
  var data = props.data;
  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
    title: "\u7EF4\u4FDD\u4FE1\u606F\u6C47\u603B"
  }), /*#__PURE__*/_react["default"].createElement("div", {
    className: "rm-summary"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "rm-summary-item"
  }, /*#__PURE__*/_react["default"].createElement("img", {
    src: _count["default"]
  }), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
    className: "rm-summary-item--name"
  }, "\u5E74\u5EA6\u7EF4\u4FDD\u603B\u6B21\u6570"), /*#__PURE__*/_react["default"].createElement("div", {
    className: "rm-summary-item--value"
  }, /*#__PURE__*/_react["default"].createElement("span", null, (data === null || data === void 0 ? void 0 : data.thisYearCount) || 0), ' 次', /*#__PURE__*/_react["default"].createElement("div", {
    className: "rm-summary-item--value-compare"
  }, "\u5E74\u540C\u6BD4 ", (data === null || data === void 0 ? void 0 : data.thisYearOnLastYearCount) || 0, "%", (data === null || data === void 0 ? void 0 : data.thisYearOnLastYearCount) >= 100 ? /*#__PURE__*/_react["default"].createElement("div", {
    className: "triangle-up"
  }) : /*#__PURE__*/_react["default"].createElement("div", {
    className: "triangle-down"
  }))))), /*#__PURE__*/_react["default"].createElement("div", {
    className: "rm-summary-item"
  }, /*#__PURE__*/_react["default"].createElement("img", {
    src: _amount["default"]
  }), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
    className: "rm-summary-item--name"
  }, "\u5E74\u5EA6\u7EF4\u4FDD\u603B\u91D1\u989D"), /*#__PURE__*/_react["default"].createElement("div", {
    className: "rm-summary-item--value"
  }, /*#__PURE__*/_react["default"].createElement("span", null, (data === null || data === void 0 ? void 0 : data.thisYearFee) || 0), ' 元', /*#__PURE__*/_react["default"].createElement("div", {
    className: "rm-summary-item--value-compare"
  }, "\u5E74\u540C\u6BD4 ", (data === null || data === void 0 ? void 0 : data.thisYearOnLastYearFee) || 0, "%", (data === null || data === void 0 ? void 0 : data.thisYearOnLastYearFee) >= 100 ? /*#__PURE__*/_react["default"].createElement("div", {
    className: "triangle-up"
  }) : /*#__PURE__*/_react["default"].createElement("div", {
    className: "triangle-down"
  })))))));
};
var _default = RmInfoSummary;
exports["default"] = _default;
//# sourceMappingURL=RmInfoSummary.js.map
