<template>
    <div>
      <div class="high">高处安全作业许可证</div>
      <table style="width: 100%" border="1" cellpadding="5" cellspacing="0">
        <tr>
          <td colspan="2">申请部门</td>
          <td style="width: 18%">{{ dataInfo.applyDeptName }}</td>
          <td>申请人</td>
          <td style="width: 18%">{{ dataInfo.applyName }}</td>
          <td>作业证编号</td>
          <td style="width: 18%" colspan="2">{{ dataInfo.documentNum }}</td>
        </tr>

        <tr>
          <td colspan="2">作业时间</td>
          <td colspan="6">
            <span v-if="baseInfo.startTime && baseInfo.endTime">
              自 {{ $parent.$parent.dateFormatter(baseInfo.startTime) }}始 至 {{ $parent.$parent.dateFormatter(baseInfo.endTime) }}止
            </span>
            <span v-else>自   年   月   日   时   分始   至   年   月   日   时   分止</span>
          </td>
        </tr>

        <tr>
          <td colspan="2">作业地点</td>
          <td colspan="2">{{ baseInfo.address }}</td>
          <td>作业内容</td>
          <td colspan="3">{{ baseInfo.content }}</td>
        </tr>

        <tr>
          <td colspan="2">作业高度</td>
          <td colspan="2">{{ baseInfo.high }}</td>
          <td>作业级别</td>
          <td colspan="3">{{ baseInfo.level }}</td>
        </tr>

        <tr>
          <td colspan="2">作业部门</td>
          <td>{{ baseInfo.danwei }}</td>
          <td>作业人</td>
          <td>{{ baseInfo.operator }}</td>
          <td>监护人</td>
          <td colspan="2">{{ baseInfo.head }}</td>
        </tr>

        <tr>
          <td colspan="2">作业人</td>
          <td>{{ baseInfo.operator2 }}</td>
          <td colspan="2">涉及的其他特殊作业</td>
          <td colspan="3">{{ baseInfo.otherNum }}</td>
        </tr>

        <tr>
          <td colspan="2">危害辨识</td>
          <td colspan="6">{{ baseInfo.danger }}</td>
        </tr>

        <tr>
          <td style="width: 7%;text-align: center">序号</td>
          <td colspan="6" style="text-align: center">安全措施</td>
          <td style="width: 9%;text-align: center">是否涉及</td>
        </tr>

        <tr>
          <td style="text-align: center">1</td>
          <td colspan="6">作业人员身体条件符合要求</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.one?'sheji':'busheji'">{{baseInfo.cuoshi.one?'涉及':'不涉及'}}</span></td>
        </tr>

        <tr>
          <td style="text-align: center">2</td>
          <td colspan="6">作业人员着装符合工作要求</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.two?'sheji':'busheji'">{{baseInfo.cuoshi.two?'涉及':'不涉及'}}</span></td>
        </tr>

        <tr>
          <td style="text-align: center">3</td>
          <td colspan="6">作业人员佩戴符合标准要求的安全帽、安全带，有可能散发有毒气体的场所携带 正压式空气呼吸器或面罩备用</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.three?'sheji':'busheji'">{{baseInfo.cuoshi.three?'涉及':'不涉及'}}</span></td>
        </tr>

        <tr>
          <td style="text-align: center">4</td>
          <td colspan="6">作业人员携带有工具袋及安全绳</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.four?'sheji':'busheji'">{{baseInfo.cuoshi.four?'涉及':'不涉及'}}</span></td>
        </tr>

        <tr>
          <td style="text-align: center">5</td>
          <td colspan="6">现场搭设的脚手架、防护网、围栏符合安全规定</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.five?'sheji':'busheji'">{{baseInfo.cuoshi.five?'涉及':'不涉及'}}</span></td>
        </tr>

        <tr>
          <td style="text-align: center">6</td>
          <td colspan="6">垂直分层作业中间有隔离设施</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.six?'sheji':'busheji'">{{baseInfo.cuoshi.six?'涉及':'不涉及'}}</span></td>
        </tr>

        <tr>
          <td style="text-align: center">7</td>
          <td colspan="6">梯子、绳子符合安全规定</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.seven?'sheji':'busheji'">{{baseInfo.cuoshi.seven?'涉及':'不涉及'}}</span></td>
        </tr>

        <tr>
          <td style="text-align: center">8</td>
          <td colspan="6">轻型棚的承重梁、柱能承重作业过程最大负荷的要求</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.eight?'sheji':'busheji'">{{baseInfo.cuoshi.eight?'涉及':'不涉及'}}</span></td>
        </tr>

        <tr>
          <td style="text-align: center">9</td>
          <td colspan="6">采光、夜间作业照明符合作业要求</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.nine?'sheji':'busheji'">{{baseInfo.cuoshi.nine?'涉及':'不涉及'}}</span></td>
        </tr>

        <tr>
          <td style="text-align: center">10</td>
          <td colspan="6">采光、夜间作业照明符合作业要求</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.ten?'sheji':'busheji'">{{baseInfo.cuoshi.ten?'涉及':'不涉及'}}</span></td>
        </tr>

        <tr>
          <td style="text-align: center">11</td>
          <td colspan="6">30m以上高处作业时，作业人员已配备通信、联络工具</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.eleven?'sheji':'busheji'">{{baseInfo.cuoshi.eleven?'涉及':'不涉及'}}</span></td>
        </tr>

        <tr>
          <td style="text-align: center">12</td>
          <td colspan="6">作业现场四周已设警戒区</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.twelve?'sheji':'busheji'">{{baseInfo.cuoshi.twelve?'涉及':'不涉及'}}</span></td>
        </tr>

        <tr>
          <td style="text-align: center">13</td>
          <td colspan="6">露天作业，风力满足作业安全要求</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.thirteen?'sheji':'busheji'">{{baseInfo.cuoshi.thirteen?'涉及':'不涉及'}}</span></td>
        </tr>
        <tr>
          <td style="text-align: center">14</td>
          <td colspan="6">其他相关特殊作业已办理相应安全作业票</td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.fourteen?'sheji':'busheji'">{{baseInfo.cuoshi.fourteen?'涉及':'不涉及'}}</span></td>
        </tr>


        <tr>
          <td style="text-align: center">15</td>
          <td colspan="6">
            <div style="margin-bottom: 5px">其他安全措施:</div>
            <div>{{ baseInfo.cuoshi.fifteenContent }}</div>
            <div style="float: right"> 编制人: {{ baseInfo.cuoshi.fifteenPeople }}</div>
          </td>
          <td style="width: 9%;text-align: center"><span :class="baseInfo.cuoshi.fifteen?'sheji':'busheji'">{{baseInfo.cuoshi.fifteen?'涉及':'不涉及'}}</span></td>
        </tr>

        <tr>
          <td style="text-align: center">确认人</td>
          <td colspan="7">
            <div style="width: 100px;height: 24px">
              <el-image
                v-if="baseInfo.yessignUrl"
                :src="baseInfo.yessignUrl"
                :preview-src-list="[baseInfo.yessignUrl]"
                :z-index="9999"
                style="width: 24px;height: 100px;transform: rotate(-90deg);top: -39px;left: 39px;"
              >
              </el-image>
              <span v-else></span>
            </div>
          </td>
        </tr>

        <tr>
          <td colspan="2">实施安全教育人</td>
          <td colspan="6">
            <div style="width: 124px;height: 24px">
              <el-image
                v-if="$parent.$parent.getSignInfo(-1).signUrl"
                :src="$parent.$parent.getSignInfo(-1).signUrl"
                :preview-src-list="[$parent.$parent.getSignInfo(-1).signUrl]"
                :z-index="9999"
                style="width: 24px;height: 124px;transform: rotate(-90deg);top: -50px;left: 55px;"
              >
              </el-image>
              <span v-else></span>
            </div>
          </td>
        </tr>

        <tr>
          <td colspan="8">
            <div style="margin-bottom: 5px">部门负责人意见</div>
            <div>{{ $parent.$parent.getSignInfo(1).signOpinion }}</div>
            <div style="float: right;display: flex;margin-top: 5px">
              签字:
              <div style="width: 85px;height: 24px">
                <el-image
                  v-if="$parent.$parent.getSignInfo(1).signUrl"
                  :src="$parent.$parent.getSignInfo(1).signUrl"
                  :preview-src-list="[$parent.$parent.getSignInfo(1).signUrl]"
                  :z-index="9999"
                  style="width: 24px;height: 85px;transform: rotate(-90deg);top: -32px;left: 30px;"
                >
                </el-image>
                <span v-else></span>
              </div>
              <span v-if="$parent.$parent.getSignInfo(1).signTime">{{ $parent.$parent.dateFormatter($parent.$parent.getSignInfo(1).signTime) }}</span>
              <span v-else>年   月   日   时   分</span>
            </div>
          </td>
        </tr>

        <tr>
          <td colspan="8">
            <div style="margin-bottom: 5px">安全部门意见</div>
            <div>{{ $parent.$parent.getSignInfo(2).signOpinion }}</div>
            <div style="float: right;display: flex;margin-top: 5px">
              签字:
              <div style="width: 85px;height: 24px">
                <el-image
                  v-if="$parent.$parent.getSignInfo(2).signUrl"
                  :src="$parent.$parent.getSignInfo(2).signUrl"
                  :preview-src-list="[$parent.$parent.getSignInfo(2).signUrl]"
                  :z-index="9999"
                  style="width: 24px;height: 85px;transform: rotate(-90deg);top: -32px;left: 30px;"
                >
                </el-image>
                <span v-else></span>
              </div>
              <span v-if="$parent.$parent.getSignInfo(2).signTime">{{ $parent.$parent.dateFormatter($parent.$parent.getSignInfo(2).signTime) }}</span>
              <span v-else>年   月   日   时   分</span>
            </div>
          </td>
        </tr>

        <tr>
          <td colspan="8">
            <div style="margin-bottom: 5px">运行副总批准意见</div>
            <div>{{ $parent.$parent.getSignInfo(3).signOpinion }}</div>
            <div style="float: right;display: flex;margin-top: 5px">
              签字:
              <div style="width: 85px;height: 24px">
                <el-image
                  v-if="$parent.$parent.getSignInfo(3).signUrl"
                  :src="$parent.$parent.getSignInfo(3).signUrl"
                  :preview-src-list="[$parent.$parent.getSignInfo(3).signUrl]"
                  :z-index="9999"
                  style="width: 24px;height: 85px;transform: rotate(-90deg);top: -32px;left: 30px;"
                >
                </el-image>
                <span v-else></span>
              </div>
              <span v-if="$parent.$parent.getSignInfo(3).signTime">{{ $parent.$parent.dateFormatter($parent.$parent.getSignInfo(3).signTime) }}</span>
              <span v-else>年   月   日   时   分</span>
            </div>
          </td>
        </tr>

        <tr>
          <td colspan="8">
            <div style="margin-bottom: 5px">完工（关闭）验收</div>
            <div>{{ $parent.$parent.getSignInfo(4).signOpinion }}</div>
            <div style="float: right;display: flex;margin-top: 5px">
              签字:
              <div style="width: 85px;height: 24px">
                <el-image
                  v-if="$parent.$parent.getSignInfo(4).signUrl"
                  :src="$parent.$parent.getSignInfo(4).signUrl"
                  :preview-src-list="[$parent.$parent.getSignInfo(4).signUrl]"
                  :z-index="9999"
                  style="width: 24px;height: 85px;transform: rotate(-90deg);top: -32px;left: 30px;"
                >
                </el-image>
                <span v-else></span>
              </div>
              <span v-if="$parent.$parent.getSignInfo(4).signTime">{{ $parent.$parent.dateFormatter($parent.$parent.getSignInfo(4).signTime) }}</span>
              <span v-else>年   月   日   时   分</span>
            </div>
          </td>
        </tr>

      </table>
    </div>
</template>

<script>
    export default {
      name: "high",
      data(){
          return{
            dataInfo:{},
            baseInfo:{
              "startTime": "",
              "endTime": "",
              "address": "",
              "content": "",
              "high": "",
              "level": "",
              "danwei": "",
              "operator": "",
              "head": "",
              "otherNum": "",
              "danger": "",
              "zuoyecontent": "",
              "cuoshi": {
                "one": false,
                "two": false,
                "three": false,
                "four": false,
                "five": false,
                "six": false,
                "seven": false,
                "eight": false,
                "nine": false,
                "ten": false,
                "eleven": false,
                "twelve": false,
                "thirteen": false,
                "fourteen": false,
                "fifteen": false,
                "fifteenContent": "",
                "fifteenPeople": "",
              },
              "operator2": "",
              "yessignUrl": ""
            }
          }
      }
    }
</script>

<style scoped lang="scss">
  .high{
    width: 100%;
    text-align: center;
    font-size: 25px;
    padding: 13px;
  }
  .sheji{
    color:red;
  }
  .busheji{
    color:#111111;
  }
</style>
