"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = TodayWorkJXH;
var _react = _interopRequireDefault(require("react"));
var _moment = _interopRequireDefault(require("moment"));
var _vmNodata = _interopRequireDefault(require("../../../vm-nodata"));
var _api = require("../../api");
var _vmTable = _interopRequireDefault(require("../../../vm-table"));
var _antd = require("antd");
var _icons = require("@ant-design/icons");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
/**
 * 今日运行
 */

function TodayWorkJXH(props) {
  var id = props.id,
    service = props.service;
  var _BaseService$useToday = _api.BaseService.useTodayWorkJxh(id, (0, _moment["default"])().format('YYYY-MM-DD'), service),
    todayRunJxhRes = _BaseService$useToday.todayRunJxhRes;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "today-run-jxh"
  }, (todayRunJxhRes === null || todayRunJxhRes === void 0 ? void 0 : todayRunJxhRes.length) > 0 ? (/*#__PURE__*/_react["default"].createElement(_vmTable["default"], {
    dataSource: todayRunJxhRes,
    height: 280,
    columns: [{
      title: '路段名称',
      dataIndex: 'roadName',
      ellipsis: true,
      width: 80
    }, {
      title: '核算作业里程(km)',
      dataIndex: 'workMileage',
      ellipsis: true,
      width: 140,
      align: 'right'
    }, {
      title: (/*#__PURE__*/_react["default"].createElement(_antd.Space, {
        size: 4
      }, /*#__PURE__*/_react["default"].createElement("span", null, "\u5B8C\u6210\u7387(%)"), /*#__PURE__*/_react["default"].createElement(_antd.Tooltip, {
        title: "\u53EA\u7EDF\u8BA1\u6392\u73ED\u8DEF\u6BB5\u5B8C\u6210\u7387"
      }, /*#__PURE__*/_react["default"].createElement(_icons.QuestionCircleOutlined, null)))),
      dataIndex: 'completePercent',
      width: 140,
      align: 'right',
      render: function render(text) {
        return text === null ? '-' : text;
      }
    }]
  })) : (/*#__PURE__*/_react["default"].createElement(_vmNodata["default"], null)));
}
//# sourceMappingURL=TodayWorkJXH.js.map
