"use strict";

function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _antd = require("antd");
var _react = _interopRequireWildcard(require("react"));
var _Info = _interopRequireDefault(require("./Info"));
require("../BaseInfo/index.less");
var _Rules = _interopRequireDefault(require("./Rules"));
var _AllWork = _interopRequireDefault(require("../BaseInfo/AllWork"));
var _SyRecord = _interopRequireDefault(require("../BaseInfo/SyRecord"));
var _moment = _interopRequireDefault(require("moment"));
var _vmCard = _interopRequireDefault(require("../../../vm-card"));
var _vtxCcCpModal = require("../../../vtx-cc-cp-modal");
var _api = require("../../../vtx-cc-cp-modal/api");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
var BaseInfo = function BaseInfo() {
  var _useContext = (0, _react.useContext)(_vtxCcCpModal.CcCpContext),
    id = _useContext.id;
  var data = _api.BasicService.info({
    id: id
  });
  return /*#__PURE__*/_react["default"].createElement(_antd.Row, {
    gutter: [10, 10],
    style: {
      padding: 10
    }
  }, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    xxl: 9,
    xl: 9,
    lg: 9,
    md: 10
  }, /*#__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\u672C\u4FE1\u606F"
  }, /*#__PURE__*/_react["default"].createElement(_Info["default"], {
    data: data
  }))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    span: 24
  }, /*#__PURE__*/_react["default"].createElement(_vmCard["default"], {
    title: "\u6536\u8FD0\u89C4\u5219"
  }, /*#__PURE__*/_react["default"].createElement(_Rules["default"], {
    id: id
  }))))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    xxl: 15,
    xl: 15,
    lg: 15,
    md: 12
  }, /*#__PURE__*/_react["default"].createElement(_antd.Row, {
    gutter: [10, 10],
    style: {
      height: '100%'
    }
  }, /*#__PURE__*/_react["default"].createElement(_AllWork["default"], null), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
    span: 24
  }, /*#__PURE__*/_react["default"].createElement(_vmCard["default"], null, /*#__PURE__*/_react["default"].createElement(_SyRecord["default"], {
    startTime: (0, _moment["default"])().format('YYYY-MM-DD'),
    endTime: (0, _moment["default"])().format('YYYY-MM-DD'),
    pagination: false
  }))))));
};
var _default = exports["default"] = BaseInfo;
//# sourceMappingURL=index.js.map
