"""
缺陷图目录格式：

缺陷图期望格式  _隔开

外部内部命名格式都如下：
图片名：xuhao_缺陷类型_缺陷位置_缺陷尺寸_可见程度_紧急程度_危重等级_维修建议
例：涂层损伤_叶片ps面距叶根3m处_缺陷尺寸弦向100mm，轴向800mm_轻微_紧急_重要_建议打磨维修
每个的选项：见我发的图

防雷：
例：轮毂至塔基导通阻值_169mΩ
缺陷例：轮毂至塔基未导通     #即标明未导通即可
"""

DEFAULT_BASE_INFO = {   #项目基本信息
    "turbine_id" : None,
}
DEFAULT_BAOGAO_INFO = {
    #目录
    'shengcheng_dir': "",   #报告生成的路径
    'muban_dir': "", #文档模板存放路径
    
    "dianxing_enum" : "TYPICAL",
    "quexian_enum" : "DEFECT",
    "other_enum" : "OTHER",
    "waibu_enum" : "out_work",
    "neibu_enum" : "in_work",
    "fanglei_enum" : "lightning-protection-work",
    "if_waibu" : True,
    "if_neibu" : True,
    "if_fanglei" : True,
    "userName" : "admin",
    "baogaoCheck" : "未审核",
    'key_words': '缺,损,裂,脱,污',    #关键字，用于汇总图的名字包含缺陷时标红，匹配逻辑为正则匹配单个字则为红  后续可优化
    
    "shigong_fangan" : None,
    'jiancha_renyuan': '张三',
    "check_date" : None,
}

class JIANCHA_ENUM :
    class WAIBU:
      PART = "无人机外部高精度飞行"
      #NEIRONG =

class SHIGONG_FANGAN_ENUM :
    class WAIBU:
      GONGZUO_NEIRONG = "无人机叶片外观巡检"
      RENYUAN_PEIZHI = "1人；主检飞手1人"
      SHEBEI_PEIZHI = "1、大疆无人机1台（M350rtk，M300rtk，M30T，M30，精灵4PRO）2、大疆精灵4PRO+索尼A7R2机身+索尼200-600mm镜头/适马150-600mm镜头"
      SHIGONG_FANGAN = ""
    class NEIBU:
      GONGZUO_NEIRONG = "叶片内部检查"
      RENYUAN_PEIZHI = "2人；轮毂作业检查2人"
      SHEBEI_PEIZHI = "1、人工检查：照明设备2套，视频记录手机2台，含氧量监测仪1台，电动扳手2套，卷尺1个。2、爬壁机器人检查：无人作业校车+视频图传1套，照明设备2套，含氧量监测仪1台，电动扳手2套，卷尺1个。"
      SHIGONG_FANGAN = ""
    class FANGLEI:
      class YEPIAN: 
        GONGZUO_NEIRONG = "无人机叶片防雷导通测试"
        RENYUAN_PEIZHI = "2人；主检飞手1人，副检抄表1人"
        SHEBEI_PEIZHI = "1四轴电阻无人机1套，电子微欧计1台，视频记录手机1台"
        SHIGONG_FANGAN = ""
      class DIAOLAN:
        GONGZUO_NEIRONG = "无人吊篮叶片导通测试（含机舱设备、）"
        RENYUAN_PEIZHI = "3人，轮毂机舱作业1人，揽风绳作业1人，无人设备操作员及抄表1人"
        SHEBEI_PEIZHI = "无人吊篮系统1套（爬绳器+接触平台）、电子微欧计1套，视频记录手机1台，对讲机2台"
        SHIGONG_FANGAN = ""
      class SHESHI:
        GONGZUO_NEIRONG = "风机基础、办公楼、变电站防雷接地检测及浪涌保护器测试"
        RENYUAN_PEIZHI = "1人；抄表人员1人，检测人员1人，监护1人。"
        SHEBEI_PEIZHI = "接地电阻测试仪1套、SPD测试仪1套、对讲机2个、"
        SHIGONG_FANGAN = ""
      FEISHOURENYUAN_PEIZHI = "1人；主检飞手1人"
      LUNGUZUOYERENYUAN_PEIZHI = "2人；轮毂作业检查2人"
oneproject = {
    "status": 200,
    "data": {
        "projectId": "96e0debf78187300f144d7f3450a2477",
        "projectName": "三峡能源阿城万兴风电场防雷通道检测项目",
        "coverUrl": "",
        "farmName": "三峡能源阿城万兴风电场",
        "farmAddress": "哈尔滨市阿城区",
        "client": "辽宁信达检测有限公司",
        "clientContact": "李经理",
        "clientPhone": "13504783720",
        "inspectionUnit": "武汉市迪特影像科技有限公司",
        "inspectionContact": "吴名州",
        "inspectionPhone": "18807109269",
        "scale": "",
        "turbineModel": "",
        "constructorIds": "5709ccfece2685090ff700a3469f2539,a76d78f1325deda1790a12bdad4aad4e",
        "auditorId": "ca37c4337df8673a5c045b6c25acf74a",
        "qualityOfficerId": "862e027910c2562d2b67d88ec33d77ba",
        "projectManagerId": "fbaa9e0aecf2ce287138c38a4b654085",
        "constructionTeamLeaderId": "",
        "status": 0,
        "startDate": "",
        "endDate": "",
        "constructorName": "",
        "auditorName": "李四",
        "qualityOfficerName": "辛奇",
        "projectManagerName": "张三",
        "constructionTeamLeaderName": "",
        "statusLabel": "待施工"
    },
    "msg": "",
    "code": 200,
    "success": True
    }
onejizu = {
  "status": 200,
  "data": [
    {
      "turbineId": "183463dbf40d9278549a76b82b175dd9",
      "projectId": "96e0debf78187300f144d7f3450a2477",
      "projectName": "三峡能源阿城万兴风电场防雷通道检测项目",
      "turbineName": "一期012号",
      "turbineCode": "00000",
      "turbineDesc": "一期012号，全新设备",
      "turbineManufacturer": "",
      "turbineModel": "",
      "turbineCoverUrl": ""
    }
  ],
  "msg": "",
  "code": 200,
  "success": True
}
yepian = {
  "status": 200,
  "data": [
    {
      "partId": "12bc30fb209f3af3bf530541c5b062bc",
      "projectId": "96e0debf78187300f144d7f3450a2477",
      "projectName": "三峡能源阿城万兴风电场防雷通道检测项目",
      "turbineId": "183463dbf40d9278549a76b82b175dd9",
      "turbineName": "一期012号",
      "partName": "叶片2",
      "partCode": "0001",
      "partType": "VANE-2",
      "partTypeLabel": "叶片2"
    },
    {
      "partId": "12bc30fb209f3af3bf530541c5b062bd",
      "projectId": "96e0debf78187300f144d7f3450a2477",
      "projectName": "三峡能源阿城万兴风电场防雷通道检测项目",
      "turbineId": "183463dbf40d9278549a76b82b175dd9",
      "turbineName": "一期012号",
      "partName": "叶片1",
      "partCode": "0000",
      "partType": "VANE-1",
      "partTypeLabel": "叶片1"
    }
  ],
  "msg": "",
  "code": 200,
  "success": True
}
