"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 _inputNumber = _interopRequireDefault(require("antd/lib/input-number"));
var _input = _interopRequireDefault(require("antd/lib/input"));
var _vtxSelect = _interopRequireDefault(require("@vtx/components/lib/vtx-select"));
var _form = _interopRequireDefault(require("antd/lib/form"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var Option = _vtxSelect["default"].Option;
var DrainagePollutionSource = function DrainagePollutionSource(_ref) {
  var form = _ref.form;
  var sewerageMatchMethod = _form["default"].useWatch('sewerageMatchMethod', form);
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "sewerageMatchMethod",
    label: "\u6392\u6C34\u6237\u5339\u914D\u65B9\u6CD5",
    rules: [{
      required: true,
      message: '请选择'
    }]
  }, /*#__PURE__*/_react["default"].createElement(_vtxSelect["default"], null, /*#__PURE__*/_react["default"].createElement(Option, {
    value: false
  }, "\u6309\u5173\u8054\u7BA1\u70B9\u5339\u914D"), /*#__PURE__*/_react["default"].createElement(Option, {
    value: true
  }, "\u6309\u7ECF\u7EAC\u5EA6\u5339\u914D"))), sewerageMatchMethod && /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "distance",
    label: "\u5339\u914D\u8DDD\u79BB\uFF08m\uFF09",
    rules: [{
      required: true,
      message: '请填写匹配距离'
    }]
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    placeholder: "\u8BF7\u8F93\u5165",
    style: {
      width: '100%'
    },
    min: 1,
    precision: 0
  })), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "handleMeasure",
    label: "\u5904\u7406\u63AA\u65BD",
    rules: [{
      required: true,
      message: '请填写处理措施'
    }]
  }, /*#__PURE__*/_react["default"].createElement(_input["default"].TextArea, {
    showCount: true,
    maxLength: 100
  })));
};
var _default = exports["default"] = DrainagePollutionSource;
//# sourceMappingURL=DrainagePollutionSource.js.map
