"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _vtxFormLayout = _interopRequireDefault(require("@vtx/components/lib/vtx-form-layout"));
var _input = _interopRequireDefault(require("antd/lib/input"));
var _inputNumber = _interopRequireDefault(require("antd/lib/input-number"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var Inflowinfiltration = function Inflowinfiltration() {
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "sunnyCount",
    label: "\u6674\u5929\u5929\u6570",
    rules: [{
      required: true,
      message: '请填写晴天天数'
    }],
    initialValue: 7
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    min: 0,
    precision: 0,
    placeholder: "\u8BF7\u8F93\u5165",
    style: {
      width: '100%'
    }
  })), /*#__PURE__*/_react["default"].createElement("div", null, "\u5165\u6D41\u5165\u6E17\u914D\u7F6E"), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "infiltrationFlowThreshold",
    label: "\u964D\u96E8\u4E0E\u6674\u5929\u6D41\u91CF\u6BD4\u503C\u9608\u503C",
    rules: [{
      required: true,
      message: '请填写降雨与晴天流量比值阈值'
    }]
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    placeholder: "\u8BF7\u8F93\u5165",
    style: {
      width: '100%'
    }
  })), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "infiltrationWaterLevelThreshold",
    label: "\u964D\u96E8\u4E0E\u6674\u5929\u6DB2\u4F4D\u6BD4\u503C\u9608\u503C",
    rules: [{
      required: true,
      message: '请填写降雨与晴天液位比值阈值'
    }]
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    placeholder: "\u8BF7\u8F93\u5165",
    style: {
      width: '100%'
    }
  })), /*#__PURE__*/_react["default"].createElement("div", null, "\u7BA1\u7F51\u7834\u635F\u914D\u7F6E"), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "brokenFlowThreshold",
    label: "\u964D\u96E8\u4E0E\u6674\u5929\u6D41\u91CF\u6BD4\u503C\u9608\u503C",
    rules: [{
      required: true,
      message: '请填写降雨与晴天流量比值阈值'
    }, function (_ref) {
      var getFieldValue = _ref.getFieldValue;
      return {
        validator: function validator(_, value) {
          if (!value || value > getFieldValue('infiltrationFlowThreshold')) {
            return Promise.resolve();
          }
          return Promise.reject(new Error('需大于入流入渗流量比值阈值'));
        }
      };
    }]
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    placeholder: "\u8BF7\u8F93\u5165",
    style: {
      width: '100%'
    }
  })), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "brokenWaterLevelThreshold",
    label: "\u964D\u96E8\u4E0E\u6674\u5929\u6DB2\u4F4D\u6BD4\u503C\u9608\u503C",
    rules: [{
      required: true,
      message: '请填写降雨与晴天液位比值阈值'
    }, function (_ref2) {
      var getFieldValue = _ref2.getFieldValue;
      return {
        validator: function validator(_, value) {
          if (!value || value > getFieldValue('infiltrationWaterLevelThreshold')) {
            return Promise.resolve();
          }
          return Promise.reject(new Error('需大于入流入渗流量液位阈值'));
        }
      };
    }]
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    placeholder: "\u8BF7\u8F93\u5165",
    style: {
      width: '100%'
    }
  })), /*#__PURE__*/_react["default"].createElement("div", null, "\u5904\u7406\u63AA\u65BD\u914D\u7F6E"), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "brokenHandleMeasure",
    label: "\u5165\u6D41\u5165\u6E17\u5904\u7406\u63AA\u65BD",
    rules: [{
      required: true,
      message: '请填写入流入渗处理措施'
    }]
  }, /*#__PURE__*/_react["default"].createElement(_input["default"].TextArea, {
    showCount: true,
    maxLength: 100
  })), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "infiltrationHandleMeasure",
    label: "\u7BA1\u7F51\u7834\u635F\u5904\u7406\u63AA\u65BD",
    rules: [{
      required: true,
      message: '请填写管网破损处理措施'
    }]
  }, /*#__PURE__*/_react["default"].createElement(_input["default"].TextArea, {
    showCount: true,
    maxLength: 100
  })));
};
var _default = exports["default"] = Inflowinfiltration;
//# sourceMappingURL=Inflowinfiltration.js.map
