"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _config = _interopRequireDefault(require("./config"));
var _request = _interopRequireDefault(require("./request"));
var _PublicService = _interopRequireDefault(require("./PublicService"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
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); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
var getData = function getData(data, listData) {
  data.map(function (item) {
    item.label = item.name;
    item.title = item.name;
    item.value = item.key || item.id;
    if (listData && Array.isArray(listData)) {
      listData.push(item.value);
    }
    if (item.children) {
      if (item.children.length < 1) {
        delete item.children;
      } else {
        getData(item.children, listData);
      }
    }
  });
  return data;
};
function formatUserData(list) {
  list.map(function (item) {
    var _item$children;
    item.title = item.name;
    item.label = item.name;
    item.disabled = item.type !== 'Staff' ? true : false;
    item.value = item.attributes.id || item.key;
    delete item.key;
    if (item !== null && item !== void 0 && (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length) {
      formatUserData(item.children);
    }
  });
  return list;
}
var handleUrl = function handleUrl(data) {
  var encode = encodeURI(data);
  // 对编码的字符串转化base64
  var base64 = btoa(encode);
  var url = encodeURIComponent(base64);
  return url;
};

// 递归树
var renderTree = function renderTree(data, params) {
  var _data, _data2;
  var _ref = params || {},
    _ref$labelFile = _ref.labelFile,
    labelFile = _ref$labelFile === void 0 ? 'name' : _ref$labelFile,
    _ref$valueFile = _ref.valueFile,
    valueFile = _ref$valueFile === void 0 ? 'key' : _ref$valueFile,
    _ref$disabled = _ref.disabled,
    disabled = _ref$disabled === void 0 ? true : _ref$disabled,
    nodeTypeValue = _ref.nodeTypeValue,
    nodeTypeFile = _ref.nodeTypeFile,
    isLast = _ref.isLast;
  data.label = (_data = data) === null || _data === void 0 ? void 0 : _data[labelFile];
  data.value = (_data2 = data) === null || _data2 === void 0 ? void 0 : _data2[valueFile];
  if (data.children && data.children.length) {
    data.disabled = disabled;
    data = changeDisabled({
      data: data,
      nodeTypeValue: nodeTypeValue,
      nodeTypeFile: nodeTypeFile,
      isLast: isLast
    });
    data.children.map(function (val) {
      renderTree(val, {
        labelFile: labelFile,
        valueFile: valueFile,
        disabled: disabled,
        nodeTypeValue: nodeTypeValue,
        nodeTypeFile: nodeTypeFile,
        isLast: isLast
      });
    });
  }
  return data;
};

// 不可选判断
var changeDisabled = function changeDisabled(_ref2) {
  var data = _ref2.data,
    nodeTypeValue = _ref2.nodeTypeValue,
    nodeTypeFile = _ref2.nodeTypeFile,
    isLast = _ref2.isLast;
  if (nodeTypeFile && nodeTypeValue && (data === null || data === void 0 ? void 0 : data[nodeTypeFile]) === nodeTypeValue || isLast) {
    data.disabled = true;
  }
  return data;
};

// 获取负责人数据
var getPeopleData = function getPeopleData() {
  return _request["default"].get('/cloud/management/rest/np/tree/loadStaffTree', {
    body: {
      isControlPermission: true
    }
  }).then(function (res) {
    var list = [];
    if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res.data) {
      var _res$data;
      list = (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.children) || [];
      list.map(function (item) {
        renderTree(item);
      });
    }
    return list;
  });
};
var _default = exports["default"] = {
  // 根据userId获取用户角色权限
  getRoleByUserId: function getRoleByUserId(callBack) {
    var userId = _PublicService["default"].getQueryString('userId') || _PublicService["default"].getSystemInfo('userId') || ''; // 登录人id---用于判定用户角色
    _request["default"].post("/cloud/management/user/".concat(userId, "/role/dataTenantList.sa")).then(function (res) {
      var _res$data2;
      var list = [];
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && (_res$data2 = res.data) !== null && _res$data2 !== void 0 && _res$data2.length) {
        res.data.map(function (item) {
          list.push({
            code: item === null || item === void 0 ? void 0 : item.code,
            name: item === null || item === void 0 ? void 0 : item.name
          });
        });
      }
      callBack && callBack(list);
    });
  },
  // 获取行政区划
  getDivisionList: function getDivisionList(callBack) {
    _request["default"].get("/cloud/management/api/v101/tree/loadDivisionTree", {
      body: {
        isControlPermission: true
      }
    }).then(function (res) {
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        var divisionIds = [];
        var data = getData([res.data], divisionIds);
        callBack && callBack(data, divisionIds);
      }
    });
  },
  // 获取管理单位
  getOrgList: function getOrgList(callBack) {
    var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
    var nodeTypeValue = params.nodeTypeValue,
      nodeTypeFile = params.nodeTypeFile,
      isLast = params.isLast;
    _request["default"].get("/cloud/management/rest/np/tenant/dept/loadOrgTreeByPermission", {
      body: {
        tenantId: _PublicService["default"].getQueryString('tenantId') || _PublicService["default"].getSystemInfo('tenantId') || '',
        userId: _PublicService["default"].getQueryString('userId') || _PublicService["default"].getSystemInfo('userId') || '',
        isControlPermission: '1'
      }
    }).then(function (res) {
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        var _JSON$parse;
        var list = ((_JSON$parse = JSON.parse(res === null || res === void 0 ? void 0 : res.data)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.items) || [];
        list && list.length && list.map(function (item) {
          renderTree(item, {
            labelFile: 'name',
            valueFile: 'id',
            disabled: false,
            nodeTypeValue: nodeTypeValue,
            nodeTypeFile: nodeTypeFile,
            isLast: isLast
          });
        });
        callBack && callBack(list);
      }
    });
  },
  // 获取规模下拉选数据
  getByParamTypeCode: function getByParamTypeCode() {
    var code = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'param_project_scale';
    var callBack = arguments.length > 1 ? arguments[1] : undefined;
    _request["default"].get("/cloud/management/rest/np/param/getByParamTypeCode", {
      body: {
        parameters: JSON.stringify({
          paramTypeCode: code,
          tenantId: _PublicService["default"].getQueryString('tenantId') || _PublicService["default"].getSystemInfo('tenantId') || ''
        })
      }
    }).then(function (res) {
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        var list = _PublicService["default"].transformOptions({
          data: (res === null || res === void 0 ? void 0 : res.data) || [],
          valueIndex: 'parmCode',
          labelIndex: 'parmName',
          addAll: false,
          paramsAll: true
        });
        callBack && callBack(list);
      }
    });
  },
  // 根据处理人权限获取部门下的责任人
  getPeopleListByDispose: function getPeopleListByDispose() {
    var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    var callBack = arguments.length > 1 ? arguments[1] : undefined;
    return _request["default"].get('/cloud/zhsw-jcyj/api/userInfo/getUserByRoleCode', {
      body: _objectSpread({
        roleCode: 'function_dept_role'
      }, params)
    }).then(function (res) {
      var list = [];
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        list = _PublicService["default"].transformOptions({
          data: (res === null || res === void 0 ? void 0 : res.data) || [],
          valueIndex: 'userId',
          labelIndex: 'staffName',
          paramsAll: true
        });
      }
      callBack && callBack(list);
    });
  },
  // 获取责任人
  getPeopleList: function getPeopleList(callBack) {
    return _request["default"].get('/cloud/management/rest/np/tree/loadStaffTree', {
      body: {
        isControlPermission: true
      }
    }).then(function (res) {
      var list = [];
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        var _res$data3;
        list = (res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.children) || [];
        list.map(function (item) {
          renderTree(item);
        });
      }
      callBack && callBack(list);
    });
  },
  // 供水厂下拉选
  getWaterSupplyPlantList: function getWaterSupplyPlantList(callBack) {
    return _request["default"].get('/cloud/zhsw-jcss/api/waterSupplyPlant/idNameMapByParams').then(function (res) {
      var list = [];
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        for (var key in res === null || res === void 0 ? void 0 : res.data) {
          var _res$data4;
          list.push({
            label: res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4[key],
            value: key
          });
        }
      }
      callBack && callBack(list);
    });
  },
  // 获取基础数据信息
  getFacilityInfo: function getFacilityInfo() {
    var code = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'water_company';
    var callBack = arguments.length > 1 ? arguments[1] : undefined;
    _request["default"].get("/cloud/jcss-reborn/facility/list", {
      body: {
        code: code,
        coordType: 'wgs84',
        desensitization: true
      }
    }).then(function (res) {
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        var list = _PublicService["default"].transformOptions({
          data: (res === null || res === void 0 ? void 0 : res.data) || [],
          valueIndex: 'id',
          labelIndex: 'name',
          addAll: false,
          paramsAll: true
        });
        callBack && callBack(list);
      }
    });
  },
  //获取组织
  getDepartment: function getDepartment(callBack) {
    _request["default"].get("/cloud/management/api/v101/department/page", {
      body: {
        size: 9999,
        page: 0
      }
    }).then(function (res) {
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        var departmentList = [];
        var _res$data$rows = res.data.rows,
          rows = _res$data$rows === void 0 ? [] : _res$data$rows;
        rows.length && rows.map(function (item) {
          departmentList.push({
            value: item.id,
            label: item.depName
          });
        });
        callBack && callBack(departmentList);
      }
    });
  },
  //获取设施类型
  getFacility: function getFacility(callBack) {
    _request["default"].get("/cloud/jcss-reborn/facility/type/list").then(function (res) {
      var facilityList = [];
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        res.data.length && res.data.map(function (item) {
          facilityList.push({
            value: item.id,
            label: item.name,
            code: item.code
          });
        });
        callBack && callBack(facilityList);
      }
    });
  },
  //获取设施类型
  getFacilityList: function getFacilityList(code, callBack) {
    _request["default"].get("".concat(_config["default"].publicUrlREBORN, "/facility/list"), {
      body: {
        code: code
      }
    }).then(function (res) {
      var facilityList = [];
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        res.data.length && res.data.map(function (item) {
          facilityList.push(_objectSpread({
            value: item.code,
            label: item.name
          }, item));
        });
        callBack && callBack(facilityList);
      }
    });
  },
  // 设备列表
  getDeviceList: function getDeviceList(callBack) {
    var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
    var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
    var method = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'GET';
    var addr = url || "".concat(_config["default"].publicUrlDEVICE, "/api/device/list");
    var request = _request["default"].get;
    if (method === 'POST') {
      request = _request["default"].post;
    }
    request(addr, {
      body: params
    }).then(function (res) {
      var deviceList = [];
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        res.data.length && res.data.map(function (item) {
          deviceList.push(_objectSpread({
            value: item.deviceId,
            label: item.name
          }, item));
        });
      }
      callBack && callBack(deviceList);
    });
  },
  //获取设备类型
  getDeviceType: function getDeviceType(callBack) {
    _request["default"].get("/cloud/zhsw-jcyj/api/dataQuery/getDeviceType").then(function (res) {
      var deviceTypeList = [];
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        res.data.length && res.data.map(function (item) {
          deviceTypeList.push({
            value: item.value,
            label: item.key
          });
        });
        callBack && callBack(deviceTypeList);
      }
    });
  },
  // 设施类型树
  getFacilityTreeList: function getFacilityTreeList(callBack) {
    var _Object$keys;
    var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
    var fmd = new FormData();
    fmd.append('projectIds', _PublicService["default"].getQueryString('tenantId') || _config["default"].projectIds);
    ((_Object$keys = Object.keys(params)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) && Object.keys(params).map(function (key) {
      fmd.append(key, params[key]);
    });
    _request["default"].post("/cloud/device/facility/loadFacilityTypeTree", {
      body: fmd
    }).then(function (res) {
      var data = [];
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        data = res.data;
      }
      callBack && callBack(data);
    });
  },
  getRiverList: function getRiverList(callBack) {
    _request["default"].post("".concat(_config["default"].publicUrlJCSS, "/api/river/list")).then(function (res) {
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        var data = getData(res.data, true);
        callBack && callBack(data);
      }
    });
  },
  // 获取其他人员下拉树
  getStaffUserTree: function getStaffUserTree(callBack) {
    _request["default"].get("/cloud/management/rest/np/tree/loadStaffTree", {
      body: {
        isControlPermission: true
      }
    }).then(function (res) {
      var list = [];
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        var _res$data$children = res.data.children,
          children = _res$data$children === void 0 ? [] : _res$data$children;
        list = formatUserData(children);
      }
      callBack && callBack(list);
    });
  },
  // 获取人员对应的联系方式
  getUserToPhone: function getUserToPhone() {
    var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    var callBack = arguments.length > 1 ? arguments[1] : undefined;
    _request["default"].get("".concat(_config["default"].publicUrlXCGL, "/api/patrolUser/getPhoneByStaffId"), {
      body: params
    }).then(function (res) {
      var data;
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        data = res.data;
      }
      callBack && callBack(data);
    });
  },
  // 获取窨井
  getPointList: function getPointList() {
    var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    var callBack = arguments.length > 1 ? arguments[1] : undefined;
    _request["default"].post("".concat(_config["default"].publicUrlJCSS, "/api/point/list"), {
      body: JSON.stringify(params)
    }).then(function (res) {
      var pointList = [];
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res.data) {
        res.data.length && res.data.map(function (item) {
          pointList.push({
            value: item.id,
            label: item.code
          });
        });
      }
      callBack && callBack(pointList);
    });
  },
  getLayerTree: function getLayerTree() {
    var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    var callBack = arguments.length > 1 ? arguments[1] : undefined;
    _request["default"].get("".concat(_config["default"].publicUrlDEVICE, "/api/device/getParams"), {
      body: params
    }).then(function (res) {
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        var data = [];
        res.data.length && res.data.map(function (item) {
          var _item$params;
          if (item !== null && item !== void 0 && (_item$params = item.params) !== null && _item$params !== void 0 && _item$params.length) {
            item.params.map(function (r) {
              data.push(_objectSpread({
                code: r.bigType,
                text: r.name,
                value: r.value,
                key: r.smallType
              }, r));
            });
          }
        });
        callBack && callBack(data);
      }
    });
  },
  // 获取小类
  getSmallType: function getSmallType() {
    var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    var callBack = arguments.length > 1 ? arguments[1] : undefined;
    _request["default"].get("".concat(_config["default"].publicUrlREBORN, "/facility/type/view/list"), {
      body: params
    }).then(function (res) {
      if (String(res === null || res === void 0 ? void 0 : res.result) === '0' && res !== null && res !== void 0 && res.data) {
        if (res.data.listFields && res.data.listFields.length) {
          var data = [];
          res.data.listFields.map(function (item) {
            if (item.key === 'facilityClassId' && item.component && item.component.type === 'FACILITY_CODE' && item.component.parameter && item.component.parameter.data && item.component.parameter.data.length) {
              data = _PublicService["default"].transformOptions({
                data: item.component.parameter.data,
                valueIndex: 'key',
                labelIndex: 'value',
                addAll: false,
                paramsAll: true
              });
              data.map(function (row) {
                row.code = params.code || '';
              });
            }
          });
          callBack && callBack(data);
        }
      }
    });
  },
  handleUrl: handleUrl,
  // 文件预览地址处理
  getPeopleData: getPeopleData,
  // 获取负责任下拉
  facilityType: {
    1: '液位流量站',
    2: '水质站',
    3: '雨量站',
    4: '视频监控点',
    5: '窨井',
    6: '窨井',
    7: '河道',
    8: '泵站',
    9: '人工',
    10: '水源地',
    11: '制水厂',
    12: '单村水站',
    13: '污水厂',
    14: '农污终端',
    15: '易涝点',
    16: '易涝点',
    17: '小微水体',
    18: '排放口'
  },
  inspectionConfig: {
    categoryObj: {
      1: '雨水井',
      2: '污水井',
      3: '合流井'
    },
    categoryOpt: [{
      label: '雨水井',
      value: 1
    }, {
      label: '污水井',
      value: 2
    }, {
      label: '合流井',
      value: 3
    }],
    wellShapeOpt: [{
      label: '圆形',
      value: 1
    }, {
      label: '三角形',
      value: 2
    }, {
      label: '矩形',
      value: 3
    }],
    wellTextureOpt: [{
      label: '铸铁',
      value: 1
    }, {
      label: '钢',
      value: 2
    }, {
      label: '砼',
      value: 3
    }, {
      label: '塑料',
      value: 4
    }, {
      label: '玻璃钢',
      value: 5
    }, {
      label: '大理石',
      value: 6
    }],
    typeOpt: [{
      label: '排水井',
      value: 1
    }, {
      label: '接户井',
      value: 2
    }, {
      label: '闸阀井',
      value: 3
    }, {
      label: '溢流井',
      value: 4
    }, {
      label: '倒虹井',
      value: 5
    }, {
      label: '透气井',
      value: 6
    }, {
      label: '压力井',
      value: 7
    }, {
      label: '检测井',
      value: 8
    }, {
      label: '拍门井',
      value: 9
    }, {
      label: '截流井',
      value: 10
    }, {
      label: '水封井',
      value: 11
    }, {
      label: '跌水井',
      value: 12
    }, {
      label: '其他',
      value: 13
    }],
    formOpt: [{
      label: '一通',
      value: 1
    }, {
      label: '二通直',
      value: 2
    }, {
      label: '二通转',
      value: 3
    }, {
      label: '三通',
      value: 4
    }, {
      label: '四通',
      value: 5
    }, {
      label: '五通',
      value: 6
    }, {
      label: '五通以上',
      value: 7
    }, {
      label: '暗井',
      value: 8
    }, {
      label: '侧立型Ⅱ',
      value: 9
    }, {
      label: '平面型Ⅰ',
      value: 10
    }, {
      label: '平面型Ⅲ',
      value: 11
    }, {
      label: '其他',
      value: 12
    }]
  },
  pipeConfig: {
    networkTypeOpt: [{
      label: '雨水管网',
      value: 1
    }, {
      label: '污水管网',
      value: 1
    }, {
      label: '雨污合流',
      value: 1
    }],
    sectionFormOpt: [{
      label: '圆形',
      value: 1
    }, {
      label: '矩形',
      value: 2
    }, {
      label: '三角形',
      value: 3
    }, {
      label: '椭圆形',
      value: 4
    }, {
      label: '梯形',
      value: 5
    }, {
      label: '不规则形状',
      value: 6
    }],
    flowDirectionOpt: [{
      label: '正向',
      value: 0
    }, {
      label: '反向',
      value: 1
    }],
    lineTextureOpt: [{
      label: '混凝土管',
      value: 1
    }, {
      label: '钢筋混凝土管',
      value: 2
    }, {
      label: '陶土管',
      value: 3
    }, {
      label: 'PE（聚乙烯）管',
      value: 4
    }, {
      label: 'HDPE（高密度聚乙烯）管',
      value: 5
    }, {
      label: 'UPVC管',
      value: 6
    }, {
      label: '铸铁管',
      value: 7
    }, {
      label: '玻璃钢夹砂管',
      value: 8
    }, {
      label: '钢管',
      value: 9
    }, {
      label: '石棉水泥管',
      value: 10
    }, {
      label: '其他',
      value: 11
    }],
    pressureTypeOpt: [{
      label: '压力',
      value: 1
    }, {
      label: '重力',
      value: 2
    }, {
      label: '其他',
      value: 3
    }],
    isInvertedSiphonOpt: [{
      label: '否',
      value: false
    }, {
      label: '是',
      value: true
    }],
    layWayOpt: [{
      label: '直埋',
      value: 0
    }, {
      label: '矩形管沟',
      value: 1
    }, {
      label: '圆形管沟',
      value: 2
    }, {
      label: '拱形管沟',
      value: 3
    }, {
      label: '人防',
      value: 4
    }, {
      label: '管块',
      value: 5
    }, {
      label: '套管（管埋）',
      value: 6
    }, {
      label: '其他（架空）、牵引、顶管',
      value: 7
    }],
    gslayWayOpt: [{
      label: '管埋',
      value: 1
    }, {
      label: '直埋',
      value: 2
    }, {
      label: '架空',
      value: 3
    }, {
      label: '架空管线',
      value: 4
    }, {
      label: '其他',
      value: 5
    }],
    gslineTextureOpt: [{
      label: 'PE',
      value: 1
    }, {
      label: 'PVC',
      value: 2
    }, {
      label: '镀锌',
      value: 3
    }, {
      label: '砼',
      value: 4
    }, {
      label: '钢',
      value: 5
    }, {
      label: '铸铁',
      value: 6
    }, {
      label: '其他',
      value: 7
    }]
  },
  pointConfig: {
    appendList: [{
      value: 1,
      label: '泵站'
    }, {
      value: 2,
      label: '节点'
    }, {
      value: 3,
      label: '变径管 '
    }, {
      value: 4,
      label: '出水口 '
    }, {
      value: 5,
      label: '阀门'
    }, {
      value: 6,
      label: '检查井'
    }, {
      value: 7,
      label: '排气阀'
    }, {
      value: 8,
      label: '排水阀'
    }, {
      value: 9,
      label: '水表'
    }, {
      value: 10,
      label: '消防栓'
    }, {
      value: 11,
      label: '压力点'
    }, {
      value: 12,
      label: '堵头封板'
    }, {
      value: 13,
      label: '管堵'
    }, {
      value: 14,
      label: '排泥井'
    }, {
      value: 15,
      label: '偏心井'
    }, {
      value: 16,
      label: '泄水井'
    }],
    pointCharacteristics: [{
      value: 1,
      label: '泵站'
    }, {
      value: 2,
      label: '变材'
    }, {
      value: 3,
      label: '变径'
    }, {
      value: 4,
      label: '出水口'
    }, {
      value: 5,
      label: '多通'
    }, {
      value: 6,
      label: '三通'
    }, {
      value: 7,
      label: '四通'
    }, {
      value: 8,
      label: '弯头'
    }, {
      value: 9,
      label: '出地'
    }, {
      value: 10,
      label: '阀门'
    }, {
      value: 11,
      label: '阀门井'
    }, {
      value: 12,
      label: '检查井'
    }, {
      value: 13,
      label: '排气阀'
    }, {
      value: 14,
      label: '排气井'
    }, {
      value: 15,
      label: '排沙井'
    }, {
      value: 16,
      label: '排水阀'
    }, {
      value: 17,
      label: '水表井'
    }, {
      value: 18,
      label: '消防井'
    }, {
      value: 19,
      label: '消防栓'
    }, {
      value: 20,
      label: '压力表'
    }, {
      value: 21,
      label: '预留口'
    }, {
      value: 22,
      label: '非普查区去向'
    }, {
      value: 23,
      label: '管堵'
    }, {
      value: 24,
      label: '排泥井'
    }, {
      value: 25,
      label: '偏心井'
    }, {
      value: 26,
      label: '泄水井'
    }],
    manholeCategory: [{
      value: 1,
      label: '排水井'
    }, {
      value: 2,
      label: '接户井'
    }, {
      value: 3,
      label: '闸阀井'
    }, {
      value: 4,
      label: '溢流井'
    }, {
      value: 5,
      label: '倒虹井'
    }, {
      value: 6,
      label: '透气井'
    }, {
      value: 7,
      label: '压力井'
    }, {
      value: 8,
      label: '检测井'
    }, {
      value: 9,
      label: '拍门井'
    }, {
      value: 10,
      label: '截流井'
    }, {
      value: 11,
      label: '水封井'
    }, {
      value: 12,
      label: '跌水井'
    }, {
      value: 13,
      label: '其他'
    }],
    wellShapeOpt: [{
      label: '圆形',
      value: 1
    }, {
      label: '三角形',
      value: 2
    }, {
      label: '矩形',
      value: 3
    }, {
      label: '其他',
      value: 4
    }],
    wellTextureOpt: [{
      label: '铸铁',
      value: 1
    }, {
      label: '钢',
      value: 2
    }, {
      label: '砼',
      value: 3
    }, {
      label: '塑料',
      value: 4
    }, {
      label: '玻璃钢',
      value: 5
    }, {
      label: '大理石',
      value: 6
    }],
    formList: [{
      label: '一通',
      value: 1
    }, {
      label: '二通直',
      value: 2
    }, {
      label: '二通转',
      value: 3
    }, {
      label: '三通',
      value: 4
    }, {
      label: '四通',
      value: 5
    }, {
      label: '五通',
      value: 6
    }, {
      label: '五通以上',
      value: 7
    }, {
      label: '暗井',
      value: 8
    }, {
      label: '侧立型Ⅱ',
      value: 9
    }, {
      label: '平面型Ⅰ',
      value: 10
    }, {
      label: '平面型Ⅲ',
      value: 11
    }, {
      label: '其他',
      value: 12
    }]
  },
  pumpConfig: {
    bigTypeOpt: [{
      label: '雨水',
      value: 1
    }, {
      label: '污水',
      value: 2
    }],
    smallTypeObj: {
      YS: [{
        label: '河道泵站',
        value: 1
      }, {
        label: '城区雨水泵站',
        value: 2
      }],
      WS: [{
        label: '污水泵站',
        value: 3
      }]
    },
    hasGateOpt: [{
      label: '有',
      value: true
    }, {
      label: '无',
      value: false
    }],
    gateTypeOpt: [{
      label: '垂直升降',
      value: 1
    }, {
      label: '可倾式',
      value: 2
    }]
  },
  // 行业类别
  industryList: [{
    label: 'PVC粘胶剂',
    value: '0'
  }, {
    label: '氨基树脂、甲醛、合成',
    value: '1'
  }, {
    label: '初级形态塑料及合成树脂制造',
    value: '2'
  }, {
    label: '电力、热力生产和供应业',
    value: '3'
  }, {
    label: '电器机械和器材制造',
    value: '4'
  }, {
    label: '电子元器件制造',
    value: '5'
  }, {
    label: '服装制造',
    value: '6'
  }, {
    label: '合成橡胶制造',
    value: '7'
  }]
};
//# sourceMappingURL=serviceConfig.js.map
