FlareUp.vue 43 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
1 2
<template>
  <div>
耿迪迪's avatar
耿迪迪 committed
3
    <table id="flareUpPrint">
耿迪迪's avatar
耿迪迪 committed
4 5
      <tr>
        <td colspan="4">申请单位</td>
耿迪迪's avatar
耿迪迪 committed
6
        <td colspan="3"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.applyUnit" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
7
        <td colspan="3">作业申请时间</td>
耿迪迪's avatar
耿迪迪 committed
8
        <td colspan="5" v-if="(applyStatus-0) == 0">
耿迪迪's avatar
耿迪迪 committed
9 10 11 12 13 14 15 16
          <el-date-picker clearable size="small"
                          v-model="flareUp.applyDate"
                          type="datetime"
                          value-format="yyyy-MM-dd HH:mm:ss"
                          placeholder="选择作业申请时间"
                          style="width: 100%">
          </el-date-picker>
        </td>
耿迪迪's avatar
耿迪迪 committed
17
        <td colspan="5"  v-if="(applyStatus-0) > 0">
耿迪迪's avatar
耿迪迪 committed
18
          {{ (flareUp.applyDate == null || flareUp.applyDate =='') ? "-" :flareUp.applyDate.split(" ")[0].split("-")[0]}}{{ (flareUp.applyDate == null || flareUp.applyDate =='') ? "-" :flareUp.applyDate.split(" ")[0].split("-")[1]}}{{(flareUp.applyDate == null || flareUp.applyDate =='') ? "-" :flareUp.applyDate.split(" ")[0].split("-")[2]}}{{(flareUp.applyDate == null || flareUp.applyDate =='') ? "-" :flareUp.applyDate.split(" ")[1].split(":")[0]}}{{(flareUp.applyDate == null || flareUp.applyDate =='') ? "-" :flareUp.applyDate.split(" ")[1].split(":")[1]}}
耿迪迪's avatar
耿迪迪 committed
19
        </td>
耿迪迪's avatar
耿迪迪 committed
20 21 22 23 24
        <td colspan="2">编号</td>
        <td colspan="3"><input v-model="flareUp.num" disabled class="editInput"/></td>
      </tr>
      <tr>
        <td colspan="4">作业内容</td>
耿迪迪's avatar
耿迪迪 committed
25
        <td colspan="6"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.workContent" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
26
        <td colspan="4">动火地点及动火部位</td>
耿迪迪's avatar
耿迪迪 committed
27
        <td colspan="6"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.fireLocation" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
28 29 30 31
      </tr>
      <tr>
        <td colspan="4">动火作业级别</td>
        <td colspan="6">
耿迪迪's avatar
耿迪迪 committed
32 33 34
          特级<input :disabled="(applyStatus-0) > 0" v-model="flareUp.fireLevel.special" type="checkbox"/>
          一级<input :disabled="(applyStatus-0) > 0" v-model="flareUp.fireLevel.first" type="checkbox"/>
          二级<input :disabled="(applyStatus-0) > 0" v-model="flareUp.fireLevel.second" type="checkbox"/>
耿迪迪's avatar
耿迪迪 committed
35 36
        </td>
        <td colspan="4">动火方式</td>
耿迪迪's avatar
耿迪迪 committed
37
        <td colspan="6"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.fireMethod" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
38 39 40
      </tr>
      <tr>
        <td colspan="4">动火人及证书编号</td>
耿迪迪's avatar
耿迪迪 committed
41
        <td colspan="16"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.pepeloAndLinceseNum" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
42 43 44
      </tr>
      <tr>
        <td colspan="4">作业单位</td>
耿迪迪's avatar
耿迪迪 committed
45
        <td colspan="6"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.workUnit" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
46
        <td colspan="4">作业负责人</td>
耿迪迪's avatar
耿迪迪 committed
47
        <td colspan="6"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.leader" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
48 49 50
      </tr>
      <tr>
        <td colspan="4">气体取样分析时间</td>
耿迪迪's avatar
耿迪迪 committed
51
        <td colspan="4" v-if="(applyStatus-0) == 0">
耿迪迪's avatar
耿迪迪 committed
52 53 54 55 56 57 58 59
          <el-date-picker clearable size="small"
                          v-model="flareUp.firstSimple.simpleDate"
                          type="datetime"
                          value-format="yyyy-MM-dd HH:mm:ss"
                          placeholder="选择分析时间"
                          style="width: 100%">
          </el-date-picker>
        </td>
耿迪迪's avatar
耿迪迪 committed
60
        <td colspan="4" v-if="(applyStatus-0) == 0">
耿迪迪's avatar
耿迪迪 committed
61 62 63 64 65 66 67 68
          <el-date-picker clearable size="small"
                          v-model="flareUp.secondSimple.simpleDate"
                          type="datetime"
                          value-format="yyyy-MM-dd HH:mm:ss"
                          placeholder="选择分析时间"
                          style="width: 100%">
          </el-date-picker>
        </td>
耿迪迪's avatar
耿迪迪 committed
69
        <td colspan="4" v-if="(applyStatus-0) == 0">
耿迪迪's avatar
耿迪迪 committed
70 71 72 73 74 75 76 77
          <el-date-picker clearable size="small"
                          v-model="flareUp.thirdSimple.simpleDate"
                          type="datetime"
                          value-format="yyyy-MM-dd HH:mm:ss"
                          placeholder="选择分析时间"
                          style="width: 100%">
          </el-date-picker>
        </td>
耿迪迪's avatar
耿迪迪 committed
78
        <td colspan="4" v-if="(applyStatus-0) == 0">
耿迪迪's avatar
耿迪迪 committed
79 80 81 82 83 84 85 86
          <el-date-picker clearable size="small"
                          v-model="flareUp.fourthSimple.simpleDate"
                          type="datetime"
                          value-format="yyyy-MM-dd HH:mm:ss"
                          placeholder="选择分析时间"
                          style="width: 100%">
          </el-date-picker>
        </td>
耿迪迪's avatar
耿迪迪 committed
87 88 89 90 91 92 93 94 95 96 97 98 99

        <td colspan="4" v-if="(applyStatus-0) >0">
          {{ (flareUp.firstSimple.simpleDate == null || flareUp.firstSimple.simpleDate =='') ? "-" :flareUp.firstSimple.simpleDate.split(" ")[0].split("-")[1]}}{{(flareUp.firstSimple.simpleDate == null || flareUp.firstSimple.simpleDate =='') ? "-" :flareUp.firstSimple.simpleDate.split(" ")[0].split("-")[2]}}{{(flareUp.firstSimple.simpleDate == null || flareUp.firstSimple.simpleDate =='') ? "-" :flareUp.firstSimple.simpleDate.split(" ")[1].split(":")[0]}}{{(flareUp.firstSimple.simpleDate == null || flareUp.firstSimple.simpleDate =='') ? "-" :flareUp.firstSimple.simpleDate.split(" ")[1].split(":")[1]}}
        </td>
        <td colspan="4" v-if="(applyStatus-0) >0">
          {{ (flareUp.secondSimple.simpleDate == null || flareUp.secondSimple.simpleDate =='') ? "-" :flareUp.secondSimple.simpleDate.split(" ")[0].split("-")[1]}}{{(flareUp.secondSimple.simpleDate == null || flareUp.firstSimple.simpleDate =='') ? "-" :flareUp.secondSimple.simpleDate.split(" ")[0].split("-")[2]}}{{(flareUp.secondSimple.simpleDate == null || flareUp.secondSimple.simpleDate =='') ? "-" :flareUp.secondSimple.simpleDate.split(" ")[1].split(":")[0]}}{{(flareUp.secondSimple.simpleDate == null || flareUp.secondSimple.simpleDate =='') ? "-" :flareUp.secondSimple.simpleDate.split(" ")[1].split(":")[1]}}
        </td>
        <td colspan="4" v-if="(applyStatus-0) >0">
          {{ (flareUp.thirdSimple.simpleDate == null || flareUp.thirdSimple.simpleDate =='') ? "-" :flareUp.thirdSimple.simpleDate.split(" ")[0].split("-")[1]}}{{(flareUp.thirdSimple.simpleDate == null || flareUp.firstSimple.simpleDate =='') ? "-" :flareUp.thirdSimple.simpleDate.split(" ")[0].split("-")[2]}}{{(flareUp.thirdSimple.simpleDate == null || flareUp.thirdSimple.simpleDate =='') ? "-" :flareUp.thirdSimple.simpleDate.split(" ")[1].split(":")[0]}}{{(flareUp.thirdSimple.simpleDate == null || flareUp.thirdSimple.simpleDate =='') ? "-" :flareUp.thirdSimple.simpleDate.split(" ")[1].split(":")[1]}}
        </td>
        <td colspan="4" v-if="(applyStatus-0) >0">
          {{ (flareUp.fourthSimple.simpleDate == null || flareUp.fourthSimple.simpleDate =='') ? "-" :flareUp.fourthSimple.simpleDate.split(" ")[0].split("-")[1]}}{{(flareUp.fourthSimple.simpleDate == null || flareUp.firstSimple.simpleDate =='') ? "-" :flareUp.fourthSimple.simpleDate.split(" ")[0].split("-")[2]}}{{(flareUp.fourthSimple.simpleDate == null || flareUp.fourthSimple.simpleDate =='') ? "-" :flareUp.fourthSimple.simpleDate.split(" ")[1].split(":")[0]}}{{(flareUp.fourthSimple.simpleDate == null || flareUp.fourthSimple.simpleDate =='') ? "-" :flareUp.fourthSimple.simpleDate.split(" ")[1].split(":")[1]}}
        </td>
耿迪迪's avatar
耿迪迪 committed
100 101 102
      </tr>
      <tr>
        <td colspan="4">代表性气体</td>
耿迪迪's avatar
耿迪迪 committed
103 104 105 106
        <td colspan="4"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.firstSimple.simpleGas" class="editInput"/></td>
        <td colspan="4"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.secondSimple.simpleGas" class="editInput"/></td>
        <td colspan="4"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.thirdSimple.simpleGas" class="editInput"/></td>
        <td colspan="4"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.fourthSimple.simpleGas" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
107 108 109
      </tr>
      <tr>
        <td colspan="4">分析结果/%</td>
耿迪迪's avatar
耿迪迪 committed
110 111 112 113
        <td colspan="4"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.firstSimple.simpleResult" class="editInput"/></td>
        <td colspan="4"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.secondSimple.simpleResult" class="editInput"/></td>
        <td colspan="4"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.thirdSimple.simpleResult" class="editInput"/></td>
        <td colspan="4"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.fourthSimple.simpleResult" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
114 115 116
      </tr>
      <tr>
        <td colspan="4">分析人</td>
耿迪迪's avatar
耿迪迪 committed
117 118 119 120
        <td colspan="4"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.firstSimple.simplePeople" class="editInput"/></td>
        <td colspan="4"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.secondSimple.simplePeople" class="editInput"/></td>
        <td colspan="4"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.thirdSimple.simplePeople" class="editInput"/></td>
        <td colspan="4"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.fourthSimple.simplePeople" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
121 122 123
      </tr>
      <tr>
        <td colspan="4">关联的其他特殊作业及安全作业票编号</td>
耿迪迪's avatar
耿迪迪 committed
124
        <td colspan="16"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.specialLinceseNum" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
125 126 127 128 129 130
      </tr>
      <tr>
        <td colspan="4">风险辨识结果在下列画√</td>
        <td colspan="16" style="text-align: left">
          <el-row>
            <el-col :span="5">
耿迪迪's avatar
耿迪迪 committed
131
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.hit" type="checkbox"/>1.物体打击
耿迪迪's avatar
耿迪迪 committed
132 133
            </el-col>
            <el-col :span="5">
耿迪迪's avatar
耿迪迪 committed
134
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.vehicleInjuries" type="checkbox"/>2.车辆伤害
耿迪迪's avatar
耿迪迪 committed
135 136
            </el-col>
            <el-col :span="5">
耿迪迪's avatar
耿迪迪 committed
137
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.mechanicalInjuries" type="checkbox"/>3.机械伤害
耿迪迪's avatar
耿迪迪 committed
138 139
            </el-col>
            <el-col :span="5">
耿迪迪's avatar
耿迪迪 committed
140
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.liftingInjury" type="checkbox"/>4.起重伤害
耿迪迪's avatar
耿迪迪 committed
141 142
            </el-col>
            <el-col :span="4">
耿迪迪's avatar
耿迪迪 committed
143
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.electricShock" type="checkbox"/> 5.触电
耿迪迪's avatar
耿迪迪 committed
144 145 146 147
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="5">
耿迪迪's avatar
耿迪迪 committed
148
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.drowning" type="checkbox"/> 6.淹溺
耿迪迪's avatar
耿迪迪 committed
149 150
            </el-col>
            <el-col :span="5">
耿迪迪's avatar
耿迪迪 committed
151
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.scald" type="checkbox"/> 7.灼烫
耿迪迪's avatar
耿迪迪 committed
152 153
            </el-col>
            <el-col :span="5">
耿迪迪's avatar
耿迪迪 committed
154
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.fire" type="checkbox"/> 8.火灾
耿迪迪's avatar
耿迪迪 committed
155 156
            </el-col>
            <el-col :span="5">
耿迪迪's avatar
耿迪迪 committed
157
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.drop" type="checkbox"/> 9.高处坠落
耿迪迪's avatar
耿迪迪 committed
158 159
            </el-col>
            <el-col :span="4">
耿迪迪's avatar
耿迪迪 committed
160
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.collapse" type="checkbox"/> 10.坍塌
耿迪迪's avatar
耿迪迪 committed
161 162 163 164
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="5">
耿迪迪's avatar
耿迪迪 committed
165
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.boilerExplosion" type="checkbox"/> 11.锅炉爆炸
耿迪迪's avatar
耿迪迪 committed
166 167
            </el-col>
            <el-col :span="5">
耿迪迪's avatar
耿迪迪 committed
168
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.containerExplosion" type="checkbox"/> 12.容器爆炸
耿迪迪's avatar
耿迪迪 committed
169 170
            </el-col>
            <el-col :span="5">
耿迪迪's avatar
耿迪迪 committed
171
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.otherExplosion" type="checkbox"/> 13.其它爆炸
耿迪迪's avatar
耿迪迪 committed
172 173
            </el-col>
            <el-col :span="5">
耿迪迪's avatar
耿迪迪 committed
174
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.poisoning" type="checkbox"/> 14.中毒和窒息
耿迪迪's avatar
耿迪迪 committed
175 176
            </el-col>
            <el-col :span="4">
耿迪迪's avatar
耿迪迪 committed
177
              <input :disabled="(applyStatus-0) > 0" v-model="flareUp.dangerousResult.otherHurt" type="checkbox"/>15.其它伤害
耿迪迪's avatar
耿迪迪 committed
178 179 180 181 182 183
            </el-col>
          </el-row>
        </td>
      </tr>
      <tr>
        <td colspan="4">动火作业实施时间</td>
184
        <td colspan="16" v-if="(applyStatus-0) == 0">
耿迪迪's avatar
耿迪迪 committed
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
        <el-row>
          <el-col :span="11">
            <el-date-picker clearable size="small"
                            v-model="flareUp.executeStartTime"
                            type="datetime"
                            value-format="yyyy-MM-dd HH:mm:ss"
                            placeholder="选择实施开始时间"
                            style="width: 100%">
            </el-date-picker>
          </el-col>
          <el-col :span="2" style="margin-top: 5px">

          </el-col>
          <el-col :span="11">
            <el-date-picker clearable size="small"
                            v-model="flareUp.executeEndTime"
                            type="datetime"
                            value-format="yyyy-MM-dd HH:mm:ss"
                            placeholder="选择实施结束时间"
                            style="width: 100%">
            </el-date-picker>
          </el-col>
        </el-row>
      </td>
209 210
        <td colspan="16" v-if="(applyStatus-0) > 0">
{{ (flareUp.executeStartTime == null || flareUp.executeStartTime =='') ? "-" :flareUp.executeStartTime.split(" ")[0].split("-")[0]}}{{ (flareUp.executeStartTime == null || flareUp.executeStartTime =='') ? "-" :flareUp.executeStartTime.split(" ")[0].split("-")[1]}}{{(flareUp.executeStartTime == null || flareUp.executeStartTime =='') ? "-" :flareUp.executeStartTime.split(" ")[0].split("-")[2]}}{{(flareUp.executeStartTime == null || flareUp.executeStartTime =='') ? "-" :flareUp.executeStartTime.split(" ")[1].split(":")[0]}}{{(flareUp.executeStartTime == null || flareUp.executeStartTime =='') ? "-" :flareUp.executeStartTime.split(" ")[1].split(":")[1]}}分至{{ (flareUp.executeStartTime == null || flareUp.executeStartTime =='') ? "-" :flareUp.executeStartTime.split(" ")[0].split("-")[0]}}{{(flareUp.executeStartTime == null || flareUp.executeStartTime =='') ? "-" :flareUp.executeStartTime.split(" ")[0].split("-")[1]}}{{(flareUp.executeStartTime == null || flareUp.executeStartTime =='') ? "-" :flareUp.executeStartTime.split(" ")[0].split("-")[2]}}{{(flareUp.executeStartTime == null || flareUp.executeStartTime =='') ? "-" :flareUp.executeStartTime.split(" ")[1].split(":")[0]}}{{(flareUp.executeStartTime == null || flareUp.executeStartTime =='') ? "-" :flareUp.executeStartTime.split(" ")[1].split(":")[1]}}
耿迪迪's avatar
耿迪迪 committed
211 212 213 214 215 216 217 218 219 220 221
        </td>
      </tr>
      <tr>
        <td colspan="2">序号</td>
        <td colspan="14">安全措施</td>
        <td colspan="2">是否涉及</td>
        <td colspan="2">确认人</td>
      </tr>
      <tr>
        <td colspan="2">1</td>
        <td colspan="14">动火设备内部构件清洗干净,蒸汽吹扫或水洗、置换合格,达到动火条件;</td>
耿迪迪's avatar
耿迪迪 committed
222 223
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.deviceClean.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.deviceClean.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
224 225 226
      </tr>
      <tr>
        <td colspan="2">2</td>
耿迪迪's avatar
耿迪迪 committed
227 228 229
        <td colspan="14">与动火设备相连接的所有管线已断开,加盲板<input :disabled="(applyStatus-0) > 0" v-model="flareUp.blindPlate.block" class="editLine" style="width: 50px"/>块,未采取水封或仅关闭阀门的方式代替盲板;</td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.blindPlate.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.blindPlate.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
230 231 232 233
      </tr>
      <tr>
        <td colspan="2">3</td>
        <td colspan="14">动火点周围及附近的孔洞、窨井、地沟、水封设施、污水井等已清除易燃物,并已采取覆盖、铺沙等手段进行隔离;</td>
耿迪迪's avatar
耿迪迪 committed
234 235
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.around.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.around.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
236 237 238 239
      </tr>
      <tr>
        <td colspan="2">4</td>
        <td colspan="14">罐区内动火点同一防火提内和防火间距内的储罐未进行脱水和取样作业;</td>
耿迪迪's avatar
耿迪迪 committed
240 241
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.tankFarm.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.tankFarm.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
242 243 244 245
      </tr>
      <tr>
        <td colspan="2">5</td>
        <td colspan="14">高处作业已采取防火花飞溅措施,作业人员佩戴必要的个体防护装备;</td>
耿迪迪's avatar
耿迪迪 committed
246 247
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.height.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.height.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
248 249 250 251
      </tr>
      <tr>
        <td colspan="2">6</td>
        <td colspan="14">在有可燃物构件和使用可燃物做防腐内衬的设备内部动火作业,已采取防火隔绝措施;</td>
耿迪迪's avatar
耿迪迪 committed
252 253
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.firePrevention.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.firePrevention.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
254 255 256 257
      </tr>
      <tr>
        <td colspan="2">7</td>
        <td colspan="14">乙炔气瓶直立放置,已采取防倾倒措施并安装防回火装置;乙炔气瓶、氧气瓶与火源间的距离不应小于10 m,两气瓶相互间距不应小于5 m;</td>
耿迪迪's avatar
耿迪迪 committed
258 259
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.gasCylinder.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.gasCylinder.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
260 261 262
      </tr>
      <tr>
        <td colspan="2">8</td>
耿迪迪's avatar
耿迪迪 committed
263 264 265
        <td colspan="14">现场配备灭火器<input :disabled="(applyStatus-0) > 0" v-model="flareUp.equipment.platform" class="editLine" style="width: 50px"/>台,灭火毯<input :disabled="(applyStatus-0) > 0" v-model="flareUp.equipment.block" class="editLine" style="width: 50px"/>块,消防蒸汽带或消防水带<input :disabled="(applyStatus-0) > 0" v-model="flareUp.equipment.metre" class="editLine" style="width: 50px"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.equipment.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.equipment.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
266 267 268 269
      </tr>
      <tr>
        <td colspan="2">9</td>
        <td colspan="14">电焊机所处位置已考虑防火防爆要求,且已可靠接地;</td>
耿迪迪's avatar
耿迪迪 committed
270 271
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.electricWeldingMachine.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.electricWeldingMachine.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
272 273 274 275
      </tr>
      <tr>
        <td colspan="2">10</td>
        <td colspan="14">动火点周围规定距离内没有易燃易爆化学品的装卸、排放、喷漆等可能引起火灾爆炸的危险作业;</td>
耿迪迪's avatar
耿迪迪 committed
276 277
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.danger.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.danger.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
278 279 280 281
      </tr>
      <tr>
        <td colspan="2">11</td>
        <td colspan="14">动火点30 m内垂直空间未排放可燃气体;15 m内垂直空间未排放可燃液体;10m范围内及动火点下方未同时进行可燃溶剂清洗或喷漆等作业,10m范围内未见有可燃性粉尘清扫作业;</td>
耿迪迪's avatar
耿迪迪 committed
282 283
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.combustible.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.combustible.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
284 285 286 287
      </tr>
      <tr>
        <td colspan="2">12</td>
        <td colspan="14">已开展作业危害分析,制定相应的安全风险管控措施,交叉作业已明确协调人;</td>
耿迪迪's avatar
耿迪迪 committed
288 289
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.overlappingWork.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.overlappingWork.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
290 291 292 293
      </tr>
      <tr>
        <td colspan="2">13</td>
        <td colspan="14">用于连续检测的移动式可燃气体检测仪已配备到位;</td>
耿迪迪's avatar
耿迪迪 committed
294 295
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.moveDevice.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.moveDevice.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
296 297 298 299
      </tr>
      <tr>
        <td colspan="2">14</td>
        <td colspan="14">配备的摄录设备已到位,且防爆级别满足安全要求;</td>
耿迪迪's avatar
耿迪迪 committed
300 301
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.videography.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.videography.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
302 303 304 305
      </tr>
      <tr>
        <td colspan="2">15</td>
        <td colspan="14">其他相关特殊作业已办理相应安全作业票,作业现场四周已设立警戒区;</td>
耿迪迪's avatar
耿迪迪 committed
306 307
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.special.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.special.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
308 309 310 311
      </tr>
      <tr>
        <td colspan="2">16</td>
        <td colspan="14" style="text-align: left">
耿迪迪's avatar
耿迪迪 committed
312 313
          <div>其他安全措施:<input :disabled="(applyStatus-0) > 0" v-model="flareUp.otherSafeMeasure.otherDetail" class="editInput" style="width: 81%"/></div>
          <div style="float: right">编制人:<input :disabled="(applyStatus-0) > 0" v-model="flareUp.otherSafeMeasure.prepared" class="editInput" style="width: 70%"/>  </div>
耿迪迪's avatar
耿迪迪 committed
314
        </td>
耿迪迪's avatar
耿迪迪 committed
315 316
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.otherSafeMeasure.involve" class="editInput"/></td>
        <td colspan="2"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.otherSafeMeasure.comfire" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
317 318 319
      </tr>
      <tr>
        <td colspan="4">安全交底人</td>
耿迪迪's avatar
耿迪迪 committed
320
        <td colspan="6"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.discloser" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
321
        <td colspan="4">接受交底人</td>
耿迪迪's avatar
耿迪迪 committed
322
        <td colspan="6"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.receiver" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
323 324 325
      </tr>
      <tr>
        <td colspan="4">监护人</td>
耿迪迪's avatar
耿迪迪 committed
326 327 328 329 330 331 332 333 334 335 336
        <td colspan="16"><input :disabled="(applyStatus-0) > 0" v-model="flareUp.guardian" class="editInput"/></td>
      </tr>
      <tr v-for="item in specialWorkPermitSigns" v-if="(applyStatus-0) > 0">
        <td colspan="4" v-if="item.staffType=='leader'">作业负责人意见</td>
        <td colspan="4" v-if="item.staffType=='beyondUnit'">所在单位意见</td>
        <td colspan="4" v-if="item.staffType=='auditDept'">审核部门意见</td>
        <td colspan="4" v-if="item.staffType=='approval'">动火审批人意见</td>
        <td colspan="4" v-if="item.staffType=='fireBefore'">动火前,岗位当班班长验票情况</td>
        <td colspan="4" v-if="item.staffType=='complete'">完工验收</td>
        <td colspan="6" v-if="(applyStatus-0) ==1"><input :disabled="item.staffId != $store.state.user.userId" v-model="item.opinion" class="editInput"/></td>
        <td colspan="6" v-if="(applyStatus-0) !=1"><input disabled v-model="item.opinion" class="editInput"/></td>
耿迪迪's avatar
耿迪迪 committed
337
        <td colspan="2">签字:</td>
338
        <td colspan="4"><NewEsign :resultImg.sync ="item.signName" :isDisabled="item.staffId != $store.state.user.userId" :isReWrite="(applyStatus-0) ==1 && item.staffId == $store.state.user.userId" :width="918" :height="100"/></td>
耿迪迪's avatar
耿迪迪 committed
339
        <td colspan="4" v-if="(applyStatus-0) ==1">
耿迪迪's avatar
耿迪迪 committed
340
          <el-date-picker clearable size="small"
耿迪迪's avatar
耿迪迪 committed
341
                          v-model="item.signDate"
耿迪迪's avatar
耿迪迪 committed
342
                          type="datetime"
耿迪迪's avatar
耿迪迪 committed
343
                          :disabled="item.staffId != $store.state.user.userId"
耿迪迪's avatar
耿迪迪 committed
344 345 346 347 348
                          value-format="yyyy-MM-dd HH:mm:ss"
                          placeholder="选择时间"
                          style="width: 100%">
          </el-date-picker>
        </td>
耿迪迪's avatar
耿迪迪 committed
349 350
        <td colspan="4" v-if="(applyStatus-0) !=1">
          {{ item.signDate == null ? "-" :item.signDate.split(" ")[0].split("-")[0]}}{{ item.signDate == null ? "-" :item.signDate.split(" ")[0].split("-")[1]}}{{item.signDate == null ? "-" :item.signDate.split(" ")[0].split("-")[2]}}{{item.signDate == null ? "-" :item.signDate.split(" ")[1].split(":")[0]}}{{item.signDate == null ? "-" :item.signDate.split(" ")[1].split(":")[1]}}
耿迪迪's avatar
耿迪迪 committed
351 352 353 354 355
        </td>
      </tr>
    </table>

    <!-- 审批人选择 -->
耿迪迪's avatar
耿迪迪 committed
356 357 358 359 360 361
    <div v-if="(applyStatus-0) == 0">
      <el-row style="margin-top: 10px">
        <el-col :span="4">
          <div style="font-size: 18px;margin-top: 5px">作业负责人:</div>
        </el-col>
        <el-col :span="8">
362
          <el-select v-model="leaderDeptId" filterable placeholder="请选择作业负责人部门" @change="switchDept(leaderDeptId,1)">
耿迪迪's avatar
耿迪迪 committed
363 364 365 366 367 368 369 370 371 372 373 374
            <el-option
              v-for="item in deptList"
              :key="item.deptId"
              :label="item.deptName"
              :value="item.deptId"
            >
            </el-option>
          </el-select>
        </el-col>
        <el-col :span="12">
          <el-select v-model="leaderAuditor" filterable placeholder="请选择审核人">
            <el-option
375
              v-for="item in leaderUserList"
376 377 378
              :key="item.staffId"
              :label="item.staffName"
              :value="item.staffId"
耿迪迪's avatar
耿迪迪 committed
379 380 381 382 383
            >
            </el-option>
          </el-select>
        </el-col>
      </el-row>
耿迪迪's avatar
耿迪迪 committed
384

耿迪迪's avatar
耿迪迪 committed
385 386
      <el-row style="margin-top: 10px">
        <el-col :span="4">
耿迪迪's avatar
耿迪迪 committed
387
          <div style="font-size: 18px;margin-top: 5px">所在单位:</div>
耿迪迪's avatar
耿迪迪 committed
388 389
        </el-col>
        <el-col :span="8">
390
          <el-select v-model="beyondUnitDeptId" filterable placeholder="请选择所在单位" @change="switchDept(beyondUnitDeptId,2)">
耿迪迪's avatar
耿迪迪 committed
391 392 393 394 395 396 397 398 399 400 401 402
            <el-option
              v-for="item in deptList"
              :key="item.deptId"
              :label="item.deptName"
              :value="item.deptId"
            >
            </el-option>
          </el-select>
        </el-col>
        <el-col :span="12">
          <el-select v-model="beyondUnitAuditor" filterable placeholder="请选择审核人">
            <el-option
403
              v-for="item in beyondUnitUserList"
404 405 406
              :key="item.staffId"
              :label="item.staffName"
              :value="item.staffId"
耿迪迪's avatar
耿迪迪 committed
407 408 409 410 411
            >
            </el-option>
          </el-select>
        </el-col>
      </el-row>
耿迪迪's avatar
耿迪迪 committed
412

耿迪迪's avatar
耿迪迪 committed
413 414
      <el-row style="margin-top: 10px">
        <el-col :span="4">
耿迪迪's avatar
耿迪迪 committed
415
          <div style="font-size: 18px;margin-top: 5px">审核部门:</div>
耿迪迪's avatar
耿迪迪 committed
416 417
        </el-col>
        <el-col :span="8">
418
          <el-select v-model="auditDeptDeptId" filterable placeholder="请选择审核部门" @change="switchDept(auditDeptDeptId,3)">
耿迪迪's avatar
耿迪迪 committed
419 420 421 422 423 424 425 426 427 428 429 430
            <el-option
              v-for="item in deptList"
              :key="item.deptId"
              :label="item.deptName"
              :value="item.deptId"
            >
            </el-option>
          </el-select>
        </el-col>
        <el-col :span="12">
          <el-select v-model="auditDeptAuditor" filterable placeholder="请选择审核人">
            <el-option
431
              v-for="item in auditDeptUserList"
432 433 434
              :key="item.staffId"
              :label="item.staffName"
              :value="item.staffId"
耿迪迪's avatar
耿迪迪 committed
435 436 437 438 439
            >
            </el-option>
          </el-select>
        </el-col>
      </el-row>
耿迪迪's avatar
耿迪迪 committed
440

耿迪迪's avatar
耿迪迪 committed
441 442
      <el-row style="margin-top: 10px">
        <el-col :span="4">
耿迪迪's avatar
耿迪迪 committed
443
          <div style="font-size: 18px;margin-top: 5px">动火审部门:</div>
耿迪迪's avatar
耿迪迪 committed
444 445
        </el-col>
        <el-col :span="8">
446
          <el-select v-model="approvalDeptId" filterable placeholder="请选择动火审批人" @change="switchDept(approvalDeptId,4)">
耿迪迪's avatar
耿迪迪 committed
447 448 449 450 451 452 453 454 455 456 457 458
            <el-option
              v-for="item in deptList"
              :key="item.deptId"
              :label="item.deptName"
              :value="item.deptId"
            >
            </el-option>
          </el-select>
        </el-col>
        <el-col :span="12">
          <el-select v-model="approvalAuditor" filterable placeholder="请选择审核人">
            <el-option
459
              v-for="item in approvalUserList"
460 461 462
              :key="item.staffId"
              :label="item.staffName"
              :value="item.staffId"
耿迪迪's avatar
耿迪迪 committed
463 464 465 466 467
            >
            </el-option>
          </el-select>
        </el-col>
      </el-row>
耿迪迪's avatar
耿迪迪 committed
468

耿迪迪's avatar
耿迪迪 committed
469 470 471 472 473
      <el-row style="margin-top: 10px">
        <el-col :span="4">
          <div style="font-size: 18px;margin-top: 5px">动火前,岗位当班班长验票情况:</div>
        </el-col>
        <el-col :span="8">
474
          <el-select v-model="fireBeforeDeptId" filterable placeholder="请选择岗位当班班长部门" @change="switchDept(fireBeforeDeptId,5)">
耿迪迪's avatar
耿迪迪 committed
475 476 477 478 479 480 481 482 483 484 485 486
            <el-option
              v-for="item in deptList"
              :key="item.deptId"
              :label="item.deptName"
              :value="item.deptId"
            >
            </el-option>
          </el-select>
        </el-col>
        <el-col :span="12">
          <el-select v-model="fireBeforeAuditor" filterable placeholder="请选择审核人">
            <el-option
487
              v-for="item in fireBeforeUserList"
488 489 490
              :key="item.staffId"
              :label="item.staffName"
              :value="item.staffId"
耿迪迪's avatar
耿迪迪 committed
491 492 493 494 495 496 497 498 499 500 501
            >
            </el-option>
          </el-select>
        </el-col>
      </el-row>

      <el-row style="margin-top: 10px">
        <el-col :span="4">
          <div style="font-size: 18px;margin-top: 5px">完工验收 :</div>
        </el-col>
        <el-col :span="8">
502
          <el-select v-model="completeDeptId" filterable placeholder="请选择验收部门" @change="switchDept(completeDeptId,6)">
耿迪迪's avatar
耿迪迪 committed
503 504 505 506 507 508 509 510 511 512 513 514
            <el-option
              v-for="item in deptList"
              :key="item.deptId"
              :label="item.deptName"
              :value="item.deptId"
            >
            </el-option>
          </el-select>
        </el-col>
        <el-col :span="12">
          <el-select v-model="completeAuditor" filterable placeholder="请选择审核人">
            <el-option
515
              v-for="item in completeUserList"
516 517 518
              :key="item.staffId"
              :label="item.staffName"
              :value="item.staffId"
耿迪迪's avatar
耿迪迪 committed
519 520 521 522 523 524 525 526 527 528 529 530 531 532
            >
            </el-option>
          </el-select>
        </el-col>
      </el-row>
    </div>

    <!-- 审核按钮 -->
    <div style="text-align: right;margin-top: 10px" v-if="applyStatus == '1'">
      <el-button type="primary" @click="submitApproval">确定</el-button>
      <el-button @click="cancelApproval">取消</el-button>
    </div>

    <div style="margin-top:10px;float: right" v-if="(applyStatus-0) > '1'"><el-button type="primary" v-print="'#flareUpPrint'">打印</el-button></div>
耿迪迪's avatar
耿迪迪 committed
533 534 535 536 537 538 539

  </div>

</template>

<script>
  import { listDept } from "@/api/system/dept";
540 541
  //import { listUser } from "@/api/system/user";
  import { listStaff } from "@/api/safetyManagement/staff";
耿迪迪's avatar
耿迪迪 committed
542
  import { addSpecialPermit, getSpecialWorkPermitByWorkPermitId } from "@/api/workPermit/specialPermit";
543
  import { addSign, listSign, batchUpdateSignWorkPermit } from "@/api/workPermit/workPermitSign";
耿迪迪's avatar
耿迪迪 committed
544
  import { judgeSignUpdateTWorkPermit } from "@/api/workPermit/permit";
耿迪迪's avatar
耿迪迪 committed
545
  import NewEsign from "@/components/SaftyWork/NewEsign";
耿迪迪's avatar
耿迪迪 committed
546 547 548 549 550 551 552 553
  export default {
    name: "flare-up",
    props:{
      workPermitId:{
        type:Number
      },
      licenceNum:{
        type:String
耿迪迪's avatar
耿迪迪 committed
554 555 556
      },
      applyStatus:{
        type:String
耿迪迪's avatar
耿迪迪 committed
557 558
      }
    },
耿迪迪's avatar
耿迪迪 committed
559 560 561
    components:{
      NewEsign
    },
耿迪迪's avatar
耿迪迪 committed
562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697
    data(){
      return{
        flareUp:{
          applyUnit:"",
            applyDate:"",
            num:"",
            workContent:"",
            fireLocation:"",
            fireLevel:{
            special:false,
              first:false,
              second:false
          },
          fireMethod:"",
            pepeloAndLinceseNum:"",
            workUnit:"",
            leader:"",
            firstSimple:{
            simpleDate:"",
              simpleGas:"",
              simpleResult:"",
              simplePeople:""
          },
          secondSimple:{
            simpleDate:"",
              simpleGas:"",
              simpleResult:"",
              simplePeople:""
          },
          thirdSimple:{
            simpleDate:"",
              simpleGas:"",
              simpleResult:"",
              simplePeople:""
          },
          fourthSimple:{
            simpleDate:"",
              simpleGas:"",
              simpleResult:"",
              simplePeople:""
          },
          specialLinceseNum:"",
            dangerousResult:{
              hit:false,
              vehicleInjuries:false,
              mechanicalInjuries:false,
              liftingInjury:false,
              electricShock:false,
              drowning:false,
              scald:false,
              fire:false,
              drop:false,
              collapse:false,
              boilerExplosion:false,
              containerExplosion:false,
              otherExplosion:false,
              poisoning:false,
              otherHurt:false
          },
          executeStartTime:"",
            executeEndTime:"",
            deviceClean:{
            involve:"",
              comfire:""
          },
          blindPlate:{
            block:"",
              involve:"",
              comfire:""
          },
          around:{
            involve:"",
              comfire:""
          },
          tankFarm:{
            involve:"",
              comfire:""
          },
          height:{
            involve:"",
              comfire:""
          },
          firePrevention:{
            involve:"",
              comfire:""
          },
          gasCylinder:{
            involve:"",
              comfire:""
          },
          equipment:{
            platform:"",
              block:"",
              metre:"",
              involve:"",
              comfire:""
          },
          electricWeldingMachine:{
            involve:"",
              comfire:""
          },
          danger:{
            involve:"",
              comfire:""
          },
          combustible:{
            involve:"",
              comfire:""
          },
          overlappingWork:{
            involve:"",
              comfire:""
          },
          moveDevice:{
            involve:"",
              comfire:""
          },
          videography:{
            involve:"",
              comfire:""
          },
          special:{
            involve:"",
              comfire:""
          },
          otherSafeMeasure:{
            otherDetail:"",
            prepared:"",
            involve:"",
            comfire:""
          },
          discloser:"",
          receiver:"",
          guardian:""
        },
        deptList:[],
698 699 700 701 702 703
        leaderUserList:[],
        beyondUnitUserList:[],
        auditDeptUserList:[],
        approvalUserList:[],
        fireBeforeUserList:[],
        completeUserList:[],
耿迪迪's avatar
耿迪迪 committed
704 705 706 707 708 709 710 711 712 713 714 715
        leaderDeptId:"",
        beyondUnitDeptId:"",
        auditDeptDeptId:"",
        approvalDeptId:"",
        fireBeforeDeptId:"",
        completeDeptId:"",
        leaderAuditor:"",
        beyondUnitAuditor:"",
        auditDeptAuditor:"",
        approvalAuditor:"",
        fireBeforeAuditor:"",
        completeAuditor:"",
耿迪迪's avatar
耿迪迪 committed
716 717 718 719
        specialWorkPermitSigns:[],
        specialWorkPermitId:"",
        sign:"",
        signOpen:false
耿迪迪's avatar
耿迪迪 committed
720 721 722 723 724 725 726 727 728 729 730 731 732 733
      }
    },
    created(){
      this.getList();
      this.flareUp.num = this.licenceNum;
    },
    methods:{
      /** 查询部门列表 */
      getList() {
        listDept().then(response => {
          this.deptList = response.data;
        });
      },
      //部门切换
734
      switchDept(deptId,type){
735
        listStaff({ pageNum: 1,pageSize: 99999,deptId:deptId}).then(response => {
736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753
          if(type == 1){
            this.leaderUserList = response.rows;
          }
          if(type == 2){
            this.beyondUnitUserList = response.rows;
          }
          if(type == 3){
            this.auditDeptUserList = response.rows;
          }
          if(type == 4){
            this.approvalUserList = response.rows;
          }
          if(type == 5){
            this.fireBeforeUserList = response.rows;
          }
          if(type == 6){
            this.completeUserList = response.rows;
          }
耿迪迪's avatar
耿迪迪 committed
754 755 756 757
        });
      },
      //新增特殊作业单
      addSpecialWorkPermit(){
耿迪迪's avatar
耿迪迪 committed
758
        /*if(this.validateData()){
耿迪迪's avatar
耿迪迪 committed
759
         return true;
耿迪迪's avatar
耿迪迪 committed
760
        }*/
耿迪迪's avatar
耿迪迪 committed
761 762 763 764 765
        let param = {};
        param.workPermitId = this.workPermitId;
        param.licenceNum = this.licenceNum;
        param.specialWorkType = "flareUp"
        param.specialWorkData = JSON.stringify(this.flareUp);
766 767
        param.signs = this.combinSign();
        return param;
耿迪迪's avatar
耿迪迪 committed
768 769 770 771
      },
      //数据校验
      validateData(){
        if(typeof this.flareUp.applyUnit== "undefined" || this.flareUp.applyUnit== null || this.flareUp.applyUnit== ""){
耿迪迪's avatar
耿迪迪 committed
772
          this.msgError("动火作业单申请单位为空!");
耿迪迪's avatar
耿迪迪 committed
773 774 775
          return true;
        }
        if(typeof this.flareUp.workContent== "undefined" || this.flareUp.workContent== null || this.flareUp.workContent== ""){
耿迪迪's avatar
耿迪迪 committed
776
          this.msgError("动火作业单作业内容为空!");
耿迪迪's avatar
耿迪迪 committed
777 778 779 780 781 782 783 784 785 786 787
          return true;
        }
        if(typeof this.flareUp.fireMethod== "undefined" || this.flareUp.fireMethod== null || this.flareUp.fireMethod== ""){
          this.msgError("动火方式为空!");
          return true;
        }
        if(typeof this.flareUp.pepeloAndLinceseNum== "undefined" || this.flareUp.pepeloAndLinceseNum== null || this.flareUp.pepeloAndLinceseNum== ""){
          this.msgError("动火人及证书编号为空!");
          return true;
        }
        if(typeof this.leaderAuditor== "undefined" || this.leaderAuditor== null || this.leaderAuditor== ""){
耿迪迪's avatar
耿迪迪 committed
788
          this.msgError("动火作业单作业负责人未选择!");
耿迪迪's avatar
耿迪迪 committed
789 790 791
          return true;
        }
        if(typeof this.beyondUnitAuditor== "undefined" || this.beyondUnitAuditor== null || this.beyondUnitAuditor== ""){
耿迪迪's avatar
耿迪迪 committed
792
          this.msgError("动火作业单所在单位审核人未选择!");
耿迪迪's avatar
耿迪迪 committed
793 794 795
          return true;
        }
        if(typeof this.auditDeptAuditor== "undefined" || this.auditDeptAuditor== null || this.auditDeptAuditor== ""){
耿迪迪's avatar
耿迪迪 committed
796
          this.msgError("动火作业单审核部门审核人未选择!");
耿迪迪's avatar
耿迪迪 committed
797 798 799 800 801 802 803
          return true;
        }
        if(typeof this.approvalAuditor== "undefined" || this.approvalAuditor== null || this.approvalAuditor== ""){
          this.msgError("动火审批人未选择!");
          return true;
        }
        if(typeof this.fireBeforeAuditor== "undefined" || this.fireBeforeAuditor== null || this.fireBeforeAuditor== ""){
耿迪迪's avatar
耿迪迪 committed
804
          this.msgError("动火作业单岗位当班班长未选择!");
耿迪迪's avatar
耿迪迪 committed
805 806 807
          return true;
        }
        if(typeof this.completeAuditor== "undefined" || this.completeAuditor== null || this.completeAuditor== ""){
耿迪迪's avatar
耿迪迪 committed
808
          this.msgError("动火作业单完工验收人未选择!");
耿迪迪's avatar
耿迪迪 committed
809 810 811 812
          return true;
        }
      },
      //新增审核人
813 814 815 816 817 818 819 820 821 822
      combinSign(){
        let signs = [];
        signs.push({staffId:this.leaderAuditor,staffType:"leader"});
        signs.push({staffId:this.beyondUnitAuditor,staffType:"beyondUnit"});
        signs.push({staffId:this.auditDeptAuditor,staffType:"auditDept"});
        signs.push({staffId:this.approvalAuditor,staffType:"approval"});
        signs.push({staffId:this.fireBeforeAuditor,staffType:"fireBefore"});
        signs.push({staffId:this.completeAuditor,staffType:"complete"});
        return signs;
       // batchInsertTSpecialWorkPermitSign(signs);
耿迪迪's avatar
耿迪迪 committed
823
        //新增作业负责人
824
       /* addSign({permitId:permitId,staffId:this.leaderAuditor,staffType:"leader"});
耿迪迪's avatar
耿迪迪 committed
825
        //新增单位意见
耿迪迪's avatar
耿迪迪 committed
826
        addSign({permitId:permitId,staffId:this.beyondUnitAuditor,staffType:"beyondUnit"});
耿迪迪's avatar
耿迪迪 committed
827 828 829 830 831 832 833
        //新增审核部门
        addSign({permitId:permitId,staffId:this.auditDeptAuditor,staffType:"auditDept"});
        //新增动火审批人
        addSign({permitId:permitId,staffId:this.approvalAuditor,staffType:"approval"});
        //新增岗位当班班长
        addSign({permitId:permitId,staffId:this.fireBeforeAuditor,staffType:"fireBefore"});
        //新增完工验收
834
        addSign({permitId:permitId,staffId:this.completeAuditor,staffType:"complete"});*/
耿迪迪's avatar
耿迪迪 committed
835
      },
耿迪迪's avatar
耿迪迪 committed
836
      submitApproval(){
837
        let data = [];
耿迪迪's avatar
耿迪迪 committed
838 839 840 841
        for(let key in this.specialWorkPermitSigns){
          if(this.specialWorkPermitSigns[key].staffId == this.$store.state.user.userId
            && '' != this.specialWorkPermitSigns[key].signName
            && null != this.specialWorkPermitSigns[key].signName){
842 843 844 845 846 847
            data.push(this.specialWorkPermitSigns[key]);
          }
        }
        if(data.length >0){
          batchUpdateSignWorkPermit(data).then(res =>{
            if(res.code == 200){
耿迪迪's avatar
耿迪迪 committed
848 849
              this.updateWorkPermitStatus();
              this.msgSuccess("审核成功");
850 851
            }
          })
耿迪迪's avatar
耿迪迪 committed
852 853 854
        }
      },
      //更新作业单状态
855 856
      async updateWorkPermitStatus(){
        await  judgeSignUpdateTWorkPermit({workPermitId:this.workPermitId,applyStatus:"2"});
耿迪迪's avatar
耿迪迪 committed
857 858 859
        getSpecialWorkPermitByWorkPermitId({workPermitId:this.workPermitId}).then(res =>{
          let specialWorkPermits = res.data.specialWorkPermits;
          let flag = true;
耿迪迪's avatar
耿迪迪 committed
860 861 862 863
          for(let key in specialWorkPermits){
            let signs = specialWorkPermits[key].signs;
            for(let signKey in signs){
              if(signs[signKey].staffId == this.$store.state.user.userId){
864
                if("" == signs[signKey].signName || null == signs[signKey].signName){
耿迪迪's avatar
耿迪迪 committed
865
                  flag = false;
耿迪迪's avatar
耿迪迪 committed
866
                }
耿迪迪's avatar
耿迪迪 committed
867 868
              }
            }
耿迪迪's avatar
耿迪迪 committed
869 870
          }
          if(flag){
耿迪迪's avatar
耿迪迪 committed
871 872
            this.cancelApproval();
            this.$parent.$parent.getList();
耿迪迪's avatar
耿迪迪 committed
873
          }
耿迪迪's avatar
耿迪迪 committed
874
        })
耿迪迪's avatar
耿迪迪 committed
875 876 877 878 879 880 881 882 883
      },
      cancelApproval(){
        this.$parent.$parent.cancelCertificateApproval();
      },
      signName(imageSrc){
        this.sign = imageSrc;
        this.signOpen = true;

      },
耿迪迪's avatar
耿迪迪 committed
884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937
    }

  }
</script>

<style scoped lang="scss">
  table{
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
    width: 100%;
  }
  table td, table th{
    border: 1px solid;
    height: 30px;
  }

  .editInput{
    border: none;
    width: 100%;
    height: 100%;
    text-align: center;
  }

  .editInput:focus{
    outline: none;
  }

  .editLine{
    border-bottom: 1px solid;
    border-top: none;
    border-left: none;
    border-right: none;
    text-align: center;
  }

  .editLine:focus{
    outline: none;
  }


  textarea{
    height: 100%;
    width: 100%;
    border: none;
    resize:none;
  }

  textarea:focus{
    outline: none;
  }


</style>