"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.signColorMap = exports.getFormItem = exports.RestaurantConfigureEnum = exports.QD_DETAIL_FIELDS = exports.QD_BASIC_FIELDS = void 0;
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 _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : 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 signColorMap = exports.signColorMap = {
  fwz: 'green',
  wkq: 'blue',
  ydq: 'yellow'
};
var QD_BASIC_FIELDS = exports.QD_BASIC_FIELDS = [{
  key: 'code',
  label: '餐厨废弃物产生单位编号'
}, {
  key: 'name',
  label: '餐厨废弃物产生名称'
}, {
  key: 'contactPerson',
  label: '联系人'
}, {
  key: 'contactPhone',
  label: '联系方式'
}, {
  key: 'classesName',
  label: '产生单位类型'
}, {
  key: 'divisionName',
  label: '行政区划'
}, {
  key: 'wasteGrease',
  label: '是否产生废弃油脂'
}, {
  key: 'address',
  label: '商户地址',
  isAddress: true
}];
var QD_DETAIL_FIELDS = exports.QD_DETAIL_FIELDS = [{
  key: 'establishedTime',
  label: '产生单位起始经营时间'
}, {
  key: 'signedStatusValue',
  label: '产生单位状态'
}, {
  key: 'scaleCount',
  label: '企业规模（餐位数量）'
}, {
  key: 'paperFileIds',
  label: '食品经营许可证',
  componentType: 'image'
}, {
  key: 'photoIds',
  label: '产生单位图片',
  componentType: 'image'
}, {
  key: 'trashBinLocationPhoto',
  label: '垃圾桶摆放位置',
  componentType: 'image'
}, {
  key: 'qrcode',
  label: '二维码'
}];
var RestaurantConfigureEnum = exports.RestaurantConfigureEnum = {
  /**
   * 编号
   */
  CODE: 'code',
  /**
   * 产生单位名称
   */
  NAME: 'name',
  /**
   * 店铺名称
   */
  SHORT_NAME: 'shortName',
  /**
   * 行政区划名称
   */
  DIVISION_NAME: 'divisionId',
  /**
   * 联系人
   */
  CONTACT_PERSON: 'contactPerson',
  /**
   * 联系方式
   */
  CONTACT_PHONE: 'contactPhone',
  /**
   * 身份证号
   */
  CARD_ID: 'cardId',
  /**
   * 商户地址
   */
  ADDRESS: 'address',
  /**
   * 经纬度
   */
  LOCATION: 'location',
  /**
   * 产生单位状态
   */
  SIGNED_STATUS: 'signedStatus',
  /**
   * 签约状态
   */
  IS_SIGN: 'isSign',
  /**
   * 收集类型
   */
  COLLECT_STATUS: 'collectStatus',
  /**
   * 收集点
   */
  SY_POINT_NAME: 'syPointId',
  /**
   * 商户类型名称
   */
  CLASSES_NAME: 'classesId',
  /**
   * 规模名称
   */
  SCALE_NAME: 'scaleId',
  /**
   * 垃圾桶个数
   */
  TRASH_CAN_NUM: 'trashCanNum',
  /**
   * 统一社会信用代码
   */
  CREDIT_CODE: 'creditCode',
  /**
   * 行业名称
   */
  INDUSTRY_NAME: 'industryId',
  /**
   * 经营范围
   */
  BUSINESS_SCOPE: 'businessScope',
  /**
   * 注册资金
   */
  REGISTER_MONEY: 'registerMoney',
  /**
   * 企业成立时间
   */
  ESTABLISHED_TIME: 'establishedTime',
  /**
   * 建议收集时间
   */
  SUGGEST_COLLECT_TIME: 'suggestCollectTime',
  /**
   * 营业时间段
   */
  BUSINESS_TIME: 'businessTime',
  /**
   * 垃圾桶摆放位置图片
   */
  TRASH_BIN_LOCATION_PHOTO: 'trashBinLocationPhoto',
  /**
   * 商户图片
   */
  PHOTO_IDS: 'photoIds',
  /**
   * 证件图片
   */
  PAPER_FILE_IDS: 'paperFileIds'
};
var getFormItem = exports.getFormItem = function getFormItem(item, data) {
  var _formItemMap;
  var code = data.code,
    divisionName = data.divisionName,
    shortName = data.shortName,
    name = data.name,
    address = data.address,
    contactPerson = data.contactPerson,
    contactPhone = data.contactPhone,
    cardId = data.cardId,
    collectStatusValue = data.collectStatusValue,
    syPointName = data.syPointName,
    classesName = data.classesName,
    scaleName = data.scaleName,
    creditCode = data.creditCode,
    isSignValue = data.isSignValue,
    trashCanNum = data.trashCanNum,
    industryName = data.industryName,
    businessScope = data.businessScope,
    registerMoney = data.registerMoney,
    establishedTime = data.establishedTime,
    photoIds = data.photoIds,
    paperFileIds = data.paperFileIds,
    location = data.location,
    businessTime = data.businessTime,
    trashBinLocationPhoto = data.trashBinLocationPhoto,
    signedStatusValue = data.signedStatusValue,
    suggestCollectTime = data.suggestCollectTime;
  var dataKey = item.dataKey,
    displayName = item.displayName;
  var formItemMap = (_formItemMap = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_formItemMap, RestaurantConfigureEnum.CODE, {
    label: displayName,
    value: code
  }), RestaurantConfigureEnum.NAME, {
    label: displayName,
    value: name
  }), RestaurantConfigureEnum.SHORT_NAME, {
    label: displayName,
    value: shortName
  }), RestaurantConfigureEnum.DIVISION_NAME, {
    label: '行政区划',
    value: divisionName,
    isAddress: true
  }), RestaurantConfigureEnum.CONTACT_PERSON, {
    label: '联系人',
    value: contactPerson
  }), RestaurantConfigureEnum.CONTACT_PHONE, {
    label: '联系方式',
    value: contactPhone
  }), RestaurantConfigureEnum.CARD_ID, {
    label: '身份证号',
    value: cardId
  }), RestaurantConfigureEnum.ADDRESS, {
    label: '产生单位地址',
    value: address,
    isAddress: true
  }), RestaurantConfigureEnum.LOCATION, {
    label: '经纬度',
    value: location
  }), RestaurantConfigureEnum.SIGNED_STATUS, {
    label: '产生单位状态',
    value: signedStatusValue
  }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_formItemMap, RestaurantConfigureEnum.IS_SIGN, {
    label: '签约状态',
    value: isSignValue
  }), RestaurantConfigureEnum.COLLECT_STATUS, {
    label: '收集类型',
    value: collectStatusValue
  }), RestaurantConfigureEnum.SY_POINT_NAME, {
    label: '收集点',
    value: syPointName
  }), RestaurantConfigureEnum.CLASSES_NAME, {
    label: '产生单位类型',
    value: classesName
  }), RestaurantConfigureEnum.SCALE_NAME, {
    label: '产生单位规模',
    value: scaleName
  }), RestaurantConfigureEnum.TRASH_CAN_NUM, {
    label: '垃圾桶个数',
    value: trashCanNum
  }), RestaurantConfigureEnum.CREDIT_CODE, {
    label: '统一社会信用代码',
    value: creditCode
  }), RestaurantConfigureEnum.INDUSTRY_NAME, {
    label: '行业',
    value: industryName
  }), RestaurantConfigureEnum.BUSINESS_SCOPE, {
    label: '经营范围',
    value: businessScope
  }), RestaurantConfigureEnum.REGISTER_MONEY, {
    label: '注册资金（元）',
    value: registerMoney
  }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_formItemMap, RestaurantConfigureEnum.ESTABLISHED_TIME, {
    label: '企业成立时间',
    value: establishedTime
  }), RestaurantConfigureEnum.SUGGEST_COLLECT_TIME, {
    label: '建议收运时间',
    value: suggestCollectTime
  }), RestaurantConfigureEnum.BUSINESS_TIME, {
    label: '营业时间',
    value: businessTime
  }), RestaurantConfigureEnum.TRASH_BIN_LOCATION_PHOTO, {
    label: '垃圾桶摆放位置图片',
    value: trashBinLocationPhoto,
    type: 'img'
  }), RestaurantConfigureEnum.PHOTO_IDS, {
    label: '产生单位图片',
    value: photoIds,
    type: 'img'
  }), RestaurantConfigureEnum.PAPER_FILE_IDS, {
    label: '证件图片',
    value: paperFileIds,
    type: 'img'
  }));
  return formItemMap[dataKey];
};
//# sourceMappingURL=config.js.map
