index.vue 68.2 KB
Newer Older
旭艳's avatar
旭艳 committed
1 2 3 4 5 6 7 8 9
<template>
  <div class="assemblyPerform">
    <div class="fitting-page">
      <div v-show="showHeader" class="c-header">
        <el-row>
          <el-col :lg="21" :md="18" :sm="18" :xs="12">
            <el-row>
              <el-col
                :md="12"
“lixuyan”'s avatar
“lixuyan” committed
10
                :lg="8"
旭艳's avatar
旭艳 committed
11 12 13 14 15 16
                :sm="12"
              ><label class="label">AO号:</label><span style="color: #2b7ab2">{{
                headerData.serialNumber
              }}</span></el-col>
              <el-col
                :md="12"
“lixuyan”'s avatar
“lixuyan” committed
17
                :lg="3"
旭艳's avatar
旭艳 committed
18 19 20 21
                :sm="12"
              ><label class="label">机型:</label>{{ headerData.resName }}</el-col>
              <el-col
                :md="12"
“lixuyan”'s avatar
“lixuyan” committed
22
                :lg="3"
旭艳's avatar
旭艳 committed
23 24 25 26
                :sm="12"
              ><label class="label">架次:</label>{{ headerData.serialNo }}</el-col>
              <el-col
                :md="12"
“lixuyan”'s avatar
“lixuyan” committed
27
                :lg="5"
旭艳's avatar
旭艳 committed
28 29 30
                :sm="12"
                class="fai"
              ><label class="label">首检标识:</label><span v-if="headerData.firstCheckFlag">FAI</span></el-col>
“lixuyan”'s avatar
“lixuyan” committed
31 32
              <el-col
                :md="12"
“lixuyan”'s avatar
“lixuyan” committed
33
                :lg="5"
“lixuyan”'s avatar
“lixuyan” committed
34 35
                :sm="12"
              ><label class="label">工艺员:</label>{{ headerData.noteName }}</el-col>
旭艳's avatar
旭艳 committed
36 37 38 39
            </el-row>
            <el-row>
              <el-col
                :md="12"
“lixuyan”'s avatar
“lixuyan” committed
40
                :lg="8"
旭艳's avatar
旭艳 committed
41 42 43 44 45 46 47 48 49
                :sm="12"
              ><label class="label">名称:</label>{{ headerData.name }}</el-col>
              <el-col
                :md="12"
                :lg="6"
                :sm="12"
              ><label class="label">计划开始时间:</label>{{ headerData.scheduledStart }}</el-col>
              <el-col
                :md="12"
“lixuyan”'s avatar
“lixuyan” committed
50
                :lg="5"
旭艳's avatar
旭艳 committed
51 52
                :sm="12"
              ><label class="label">计划完工时间:</label>{{ headerData.scheduledEnd }}</el-col>
53
              <!-- <el-col
旭艳's avatar
旭艳 committed
54 55 56 57 58
                :md="12"
                :lg="6"
                :sm="12"
              ><label v-show="false" class="label">{{
                headerData.isQualified ? "不合格品" : ""
59 60
              }}</label></el-col> -->
              <el-col
“lixuyan”'s avatar
“lixuyan” committed
61
                :md="12"
“lixuyan”'s avatar
“lixuyan” committed
62
                :lg="5"
“lixuyan”'s avatar
“lixuyan” committed
63
                :sm="12"
64
              ><label class="label">检验员:</label><span :title="headerData.inspectPerson" style="cursor:pointer">{{ headerData.inspectPerson }}</span></el-col>
旭艳's avatar
旭艳 committed
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
            </el-row>
          </el-col>
          <el-col :lg="3" :md="6" :sm="6" :xs="12">
            <el-switch
              :disabled="headerData.disabled || isOK"
              :value="headerData.planStateCode === 'Run'"
              :width="40"
              active-text="已开工"
              inactive-text="未开工"
              active-color="#13ce66"
              inactive-color="#409eff"
              @change="start"
            />
          </el-col>
        </el-row>
      </div>
      <div class="c-body">
        <div
          v-show="sideShow"
          v-loading="workingProcedureLoading"
          class="c-step-sel"
        >
          <div v-if="workingProcedure.length">
            <div
              v-for="item in workingProcedure"
              :key="item.id"
              :class="[
                item.id === procedureId ? 'cur' : '',
                item.statusCode,
                'step-sel-item',
              ]"
              @click="selectOptions(item.id)"
            >
              <div class="step-sel-item-content">
                <div
                  v-if="
                    (!item.airFlag || !item.airFlag === '无') && item.checkFlag
                  "
                >
                  <p>Q</p>
                  <p>A</p>
                </div>
                <div v-else-if="item.airFlag === 'AAD'">
                  <p>A</p>
                  <p>A</p>
                  <p>D</p>
                </div>
                <div v-else-if="item.airFlag === '目击'">
                  <p></p>
                  <p></p>
                </div>
                <img
                  src="/icons/author.png"
                  class="g-icon"
                  alt=""
                >
                <div class="text" :title="item.serialNumber">
                  <span>{{ item.serialNumber }}</span>
                  <span>{{ item.keyOperation ? "关键" : "" }}</span>
                </div>
                <div v-if="false" class="help-say" @click="drawer = true">
                  操作说明
                </div>
              </div>
            </div>
          </div>
          <div v-else class="not-content">暂无数据</div>
        </div>
        <div class="right-content">
          <div class="header">
            <div class="title">
              <span>工序名称:{{ editor.title }}</span>
              <span>工序版本:{{ editor.versionKey }}</span>
              <span v-show="editor.isQualified" class="iden">不合格品</span>
              <span v-show="editor.keyOperation" class="iden">关键工序</span>
              <span v-show="editor.airFlag" class="iden">AAD/目击</span>
            </div>
            <div class="description">
              <span
                v-show="editor.isQualified"
                class="unqualified"
                @click="routerNnonConformingProductReviewList"
              >不合格品</span>
              <!-- <span v-show="">关键</span> -->
              <span>工装:<span
                :class="{ satisfy: editor.isOKClothesLink }"
              /></span>
              <span>工具:<span
                :class="{ satisfy: editor.isOKToolLink }"
              /></span>
              <span>设备:<span :class="{ satisfy: editor.deviceLink }" /></span>
            </div>
          </div>
          <div ref="content" v-loading="editShow" class="content">
            <p class="editer-title">
              <span>
                操作者:<span
                  title="完工生成"
                  :class="{ not: !editor.operator }"
                >{{ editor.operator || "/" }}</span></span>
              <span
                v-show="editor.checkFlag || editor.airFlag"
              >检验:<span
                title="完工生成"
                :class="{ not: !editor.testor }"
              >{{ editor.testor || "/" }}</span></span>
              <span v-show="editor.airFlag">
                适航标识:<span
                  class="img"
                  :class="{ not: !editor.dmir.dmirTime }"
                  :style="'background-image:url(' + editor.dmir.dmriImg + ')'"
                >/
                </span>
                <span class="time" :class="{ not: !editor.dmir.dmirTime }">
                  /{{ editor.dmir.dmirTime }}</span></span>
              <!-- @click="electronicSignatureVersion" -->
            </p>
“lixuyan”'s avatar
“lixuyan” committed
182
            <!-- <scan class="qrcode" @getQrCode="getQRcode" /> -->
旭艳's avatar
旭艳 committed
183 184 185 186 187 188 189
            {{ title }}
            <div class="editHtml" v-html="editor.html" />
            <el-button
              style="margin-top: 15px"
              @click="$refs.AttachmentUpload.open(editor)"
            >附件</el-button>
            <el-table
190
              :data="editor.fileList"
旭艳's avatar
旭艳 committed
191 192 193 194 195 196
              border
              class="enclosure"
              size="small"
              style="width: 700px"
            >
              <el-table-column
197
                prop="target.originalFileName"
旭艳's avatar
旭艳 committed
198 199 200 201 202
                label="文件名"
                min-width="180"
                align="center"
              />
              <el-table-column
203
                prop="target.fileSize"
旭艳's avatar
旭艳 committed
204 205 206 207 208 209
                label="文件大小"
                min-width="120"
                align="center"
              />
              <el-table-column
                min-width="120"
210
                prop="target.fileExtension"
旭艳's avatar
旭艳 committed
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
                label="扩展名"
                align="center"
              />
            </el-table>
          </div>
          <!-- <span
            class="toleft"
            title="查看配套表"
            @click="getMatchData"
          ><img
            src="/icons/toleft.png"
            alt=""
          ></span> -->
        </div>
      </div>
226
      <nav v-if="this.$route.query.title==='装配任务执行'" id="gooey-v">
旭艳's avatar
旭艳 committed
227 228 229 230 231 232 233 234 235 236 237 238 239 240
        <input
          id="menu-open4"
          type="checkbox"
          class="menu-open"
          name="menu-open4"
        >
        <label class="open-button" for="menu-open4">
          <el-badge :value="55" class="item" hidden>
            <i class="icon el-icon-menu" /></el-badge></label>
        <a
          href="javascript:void(0)"
          :disabled="isOK"
          content="驳回记录"
          class="gooey-menu-item"
旭艳's avatar
旭艳 committed
241
          @click="!isOK && $refs.InspectionRejected.open(2)"
旭艳's avatar
旭艳 committed
242 243 244 245 246 247 248 249 250 251
        >
          <el-badge :value="editor.countOBJReject" class="item">
            <i class="el-icon-chat-line-round" />
          </el-badge>
        </a>
        <a
          href="javascript:void(0)"
          class="gooey-menu-item"
          :disabled="editor.statusCode !== 'Not' || editor.countRecord || isOK"
          :content="editor.statusCode === 'Not' ? '工序完工' : '已完工'"
252
          @click="!isOK && !editor.countRecord&&editor.statusCode === 'Not' && completeDioge()"
旭艳's avatar
旭艳 committed
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
        >
          <el-badge :value="12" class="item" hidden>
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-yiwangong" />
            </svg>
          </el-badge>
        </a>
        <a
          href="javascript:void(0)"
          class="gooey-menu-item"
          :disabled="isOK"
          content="问题申报"
          @click="
            !isOK && editor.statusCode === 'Not' && $refs.ProblemDeclare.open()
          "
        >
          <el-badge :value="editor.countProblem" class="item">
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-wenti" />
            </svg>
          </el-badge>
        </a>
        <a
          href="javascript:void(0)"
          class="gooey-menu-item"
          :disabled="isOK"
          content="试验申请"
          @click="!isOK && testDioge()"
        >
          <el-badge :value="editor.countRecord" class="item">
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-shiyan" />
            </svg>
          </el-badge>
        </a>
        <a
          href="javascript:void(0)"
          class="gooey-menu-item"
          :disabled="isOK"
          content="装配流程"
          @click="!isOK && $refs.AssemblyProcess.open()"
        >
          <el-badge :value="12" class="item" hidden>
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-zhuangpeishuju" />
            </svg>
          </el-badge>
        </a>
        <a
          href="javascript:void(0)"
          class="gooey-menu-item"
          :disabled="isOK"
          content="技术要求"
306
          @click="!isOK && $refs.TechnicalRequirements.open(headerData)"
旭艳's avatar
旭艳 committed
307 308 309 310 311 312 313 314 315 316 317
        >
          <el-badge :value="12" class="item" hidden>
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-crew_tech" />
            </svg>
          </el-badge>
        </a>
        <a
          href="javascript:void(0)"
          class="gooey-menu-item"
          content="胶漆申领"
318
          @click="$refs.LacClaims.open()"
旭艳's avatar
旭艳 committed
319 320 321 322 323 324 325 326 327 328 329
        >
          <el-badge :value="12" class="item" hidden>
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-icon-test1" />
            </svg>
          </el-badge>
        </a>
        <a
          href="javascript:void(0)"
          class="gooey-menu-item"
          content="物料确认"
330
          @click="$refs.ConfirmMaterial.open()"
旭艳's avatar
旭艳 committed
331 332 333 334 335 336 337 338
        >
          <el-badge :value="12" class="item" hidden>
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-wuliao" />
            </svg>
          </el-badge>
        </a>
      </nav>
339 340 341 342 343 344 345 346 347 348 349 350 351
      <nav v-else id="gooey-v">
        <input
          id="menu-open4"
          type="checkbox"
          class="menu-open"
          name="menu-open4"
        >
        <label class="open-button" for="menu-open4">
          <el-badge :value="22" class="item" hidden>
            <i class="icon el-icon-menu" /></el-badge></label>
        <a
          href="javascript:void(0)"
          class="gooey-menu-item"
“lixuyan”'s avatar
“lixuyan” committed
352
          :disabled="!editor.revoke || (isOk&&isRevoke)"
353
          content="检验撤销"
“lixuyan”'s avatar
“lixuyan” committed
354
          @click="editor.revoke && !(isOk&&isRevoke) && setRejected()"
355 356 357 358 359 360 361 362
        >
          <el-badge :value="editor.countQuality" class="item" hidden>
            <i
              style="font-size:20px;padding-top: 6px;"
              class="el-icon-refresh-left"
            />
          </el-badge>
        </a>
旭艳's avatar
旭艳 committed
363
        <!-- <a
364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386
          href="javascript:void(0)"
          class="gooey-menu-item"
          :disabled="isOK"
          content="质量预审"
          @click="!isOK && handleQualityHearing()"
        >
          <el-badge :value="editor.countQuality" class="item">
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-ziyuan145" />
            </svg>
          </el-badge>
        </a>
        <a
          href="javascript:void(0)"
          class="gooey-menu-item"
          :disabled="isOK"
          content="联试联调"
        >
          <el-badge :value="editor.countDebugging" class="item">
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-tiaoshi" />
            </svg>
          </el-badge>
旭艳's avatar
旭艳 committed
387
        </a> -->
388 389 390 391 392 393
        <a
          href="javascript:void(0)"
          class="gooey-menu-item"
          :disabled="isOK || !editor.jurisdiction"
          content="检验驳回"
          @click="
旭艳's avatar
旭艳 committed
394
            !isOK && editor.jurisdiction && $refs.InspectionRejected.open(1)
395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433
          "
        >
          <el-badge :value="editor.countOBJReject" class="item">
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-bohui" />
            </svg>
          </el-badge>
        </a>
        <a
          :disabled="isOK || !editor.jurisdiction"
          href="javascript:void(0)"
          class="gooey-menu-item"
          content="检验完成"
          @click="!isOK && editor.jurisdiction && inspectionDioge()"
        >
          <el-badge :value="12" class="item" hidden>
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-wancheng" />
            </svg>
          </el-badge>
        </a>
        <a
          href="javascript:void(0)"
          class="gooey-menu-item"
          :disabled="isOK"
          content="装配流程"
          @click="!isOK && $refs.AssemblyProcess.open()"
        >
          <el-badge :value="12" class="item" hidden>
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-zhuangpeishuju" />
            </svg>
          </el-badge>
        </a>
        <a
          href="javascript:void(0)"
          class="gooey-menu-item"
          content="工作说明"
          :disabled="isOK"
434
          @click="!isOK && $refs.TechnicalRequirements.open(headerData)"
435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455
        >
          <el-badge :value="12" class="item" hidden>
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-zhuangtaishuoming" />
            </svg>
          </el-badge>
        </a>
        <a
          href="javascript:void(0)"
          class="gooey-menu-item"
          content="物料查看"
          :disabled="isOK"
          @click="!isOK && $refs.ConfirmMaterial.open()"
        >
          <el-badge :value="12" class="item" hidden>
            <svg class="icon" aria-hidden="true">
              <use xlink:href="#icon-wuliao" />
            </svg>
          </el-badge>
        </a>
      </nav>
旭艳's avatar
旭艳 committed
456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503
    </div>
    <!-- 弹框操作说明 -->
    <el-drawer
      :with-header="false"
      :modal-append-to-body="false"
      :visible.sync="drawerShow"
      direction="rtl"
    >
      <div class="d-content-box">
        <h3>AG600</h3>
        <img style="width: 100%" src="/images/wheelgear.png" alt="">
        <p>检查设备、工装工具是否到位,装配环境和装配人员是否到位</p>
        <ul style="padding-left: 30px">
          <li style="list-style-type: disc">打开夹具,将装配件放置好</li>
          <li style="list-style-type: disc">开始按照工序进行装配</li>
          <li style="list-style-type: disc">装配完成后检查是否合格</li>
          <li style="list-style-type: disc">完成装配作业</li>
        </ul>
      </div>
    </el-drawer>
    <!-- 弹框表格 -->
    <!-- <el-drawer
      :size="680"
      :with-header="false"
      :visible.sync="showDrawerTable"
      direction="rtl"
      :modal-append-to-body="false"
    >
      <div class="d-content-box">
        <p>零组件/外购成品/标准件/元器件配套表:</p>
        <Table ref="matching" />
      </div>
    </el-drawer> -->
    <!-- 底部扫描 -->
    <!-- <div class="ipad-footer">
      <div class="btn-box">
        <div class="btn-box-content">
          <div class="scan-btn">
            <img src="/images/scan-icon.png" alt="">
          </div>
        </div>
      </div>
    </div> -->
    <div v-show="signatureShow" class="electronic-signature-version">
      <div
        class="js-signature"
        data-width="600"
        data-height="200"
旭艳's avatar
旭艳 committed
504
        data-line-width="10"
旭艳's avatar
旭艳 committed
505
        data-border="1px solid black"
旭艳's avatar
旭艳 committed
506
        data-line-color="#000000"
旭艳's avatar
旭艳 committed
507 508 509 510 511 512 513 514 515 516 517 518 519 520
        data-auto-fit="true"
      >
        <p>提示: 请在红线方框内用正楷签名!</p>
        <p class="button">
          <el-button size="medium" @click="clearCanvas">清除</el-button>
          <el-button
            type="primary"
            size="medium"
            @click="saveSignature"
          >保存</el-button>
        </p>
      </div>
    </div>
    <!-- 物料确认 -->
521
    <ConfirmMaterial ref="ConfirmMaterial" />
旭艳's avatar
旭艳 committed
522
    <!--胶漆申领  -->
“lixuyan”'s avatar
“lixuyan” committed
523
    <LacClaims ref="LacClaims" />
旭艳's avatar
旭艳 committed
524
    <!-- 技术要求 -->
525
    <TechnicalRequirements ref="TechnicalRequirements" />
旭艳's avatar
旭艳 committed
526
    <!-- 装配流程 -->
527
    <AssemblyProcess ref="AssemblyProcess" />
旭艳's avatar
旭艳 committed
528
    <!-- 问题申报 -->
旭艳's avatar
旭艳 committed
529
    <ProblemDeclare ref="ProblemDeclare" />
530 531
    <!-- 检验驳回 驳回记录 -->
    <InspectionRejected ref="InspectionRejected" />
旭艳's avatar
旭艳 committed
532 533
    <AttachmentUpload ref="AttachmentUpload" />
    <!-- 物料确认 -->
534
    <RecordMaintenance ref="RecordMaintenance" @refreshPage="refreshPage" />
535
    <!-- 物料确认 -->
旭艳's avatar
旭艳 committed
536 537 538 539 540 541 542 543 544 545 546
  </div>
</template>

<script>
import $ from 'jquery'
import '@/api/gooey.min.js'
import { previewIMG } from '@/api/previewIMG.js'
import '@/api/jq-signature'
import '@/icons/app/iconfont'
import { post, get } from '@/utils/http'
// import Table from './components/table'
547
import ConfirmMaterial from './components/ConfirmMaterial/index'
“lixuyan”'s avatar
“lixuyan” committed
548
import LacClaims from './components/LacClaims/index'
549 550 551
import TechnicalRequirements from './components/TechnicalRequirements/index'
import AssemblyProcess from './components/AssemblyProcess/index'
import InspectionRejected from './components/chatBox/index'
旭艳's avatar
旭艳 committed
552
import ProblemDeclare from './components/ProblemDeclare/index'
553
import RecordMaintenance from './components/RecordMaintenance/index'
旭艳's avatar
旭艳 committed
554 555 556 557 558 559
// import scan from '@/components/scanCode/scanCode'
import AttachmentUpload from './components/AttachmentUpload/dialog'
export default {
  name: 'AssemblyPerform',
  components: {
    // Table
560 561 562
    AttachmentUpload,
    TechnicalRequirements,
    InspectionRejected,
563 564
    AssemblyProcess,
    RecordMaintenance,
旭艳's avatar
旭艳 committed
565
    ConfirmMaterial,
“lixuyan”'s avatar
“lixuyan” committed
566 567
    ProblemDeclare,
    LacClaims
旭艳's avatar
旭艳 committed
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586
  },
  data() {
    return {
      headerData: {},
      workingProcedureLoading: true,
      workingProcedure: [],
      procedureId: null,
      editor: {
        title: '',
        html: '',
        tableId: null,
        keyOperation: null,
        checkFlag: null,
        airFlag: null,
        operator: null,
        testor: null,
        dmir: {
          dmriImg: null,
          dmirTime: null
587 588
        },
        jurisdiction: false
旭艳's avatar
旭艳 committed
589 590 591 592 593 594 595 596 597 598 599
      },
      drawerShow: false,
      // showDrawerTable: false,
      startLoading: false,
      editShow: false,
      signatureShow: false,
      qrcodeDOM: {},
      title: null,
      enclosureData: [],
      showHeader: true,
      sideShow: true,
“lixuyan”'s avatar
“lixuyan” committed
600 601
      isOK: !this.$route.query.isOK || this.$route.query.isOK === 'false',
      isRevoke: this.$route.query.isRevoke && this.$route.query.isRevoke === 'true'
旭艳's avatar
旭艳 committed
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 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712
    }
  },
  computed: {},
  watch: {
    $route: {
      handler(to, from) {
        if (to && to.name === 'assemblyPerform') {
          this.getWorkingProcedure()
        }
      }
      // immediate: true
    }
  },
  created() {},
  mounted() {
    var that = this
    this.getHeaderData()
    this.showTools()
    this.$nextTick(() => {
      var startX, startY, moveEndX, moveEndY, X, Y
      $('.right-content .header').on('touchstart', function(e) {
        e.preventDefault()
        startX = e.originalEvent.changedTouches[0].pageX
        startY = e.originalEvent.changedTouches[0].pageY
      })
      $('.right-content .header').on('touchend', function(e) {
        e.preventDefault()
        moveEndX = e.originalEvent.changedTouches[0].pageX
        moveEndY = e.originalEvent.changedTouches[0].pageY
        X = moveEndX - startX
        Y = moveEndY - startY

        if (X > 50) {
          that.sideShow = true
        }
        if (X < -50) {
          that.sideShow = false
        }
        if (Y > 50) {
          that.showHeader = true
        }
        if (Y < -50) {
          that.showHeader = false
        }
      })
    })
  },
  methods: {
    getQRcode(info) {
      this.qrcodeDOM
        .parent()
        .children('textarea')
        .html(info)
    },
    showTools() {
      this.$nextTick(() => {
        $('#gooey-v').gooeymenu({
          bgColor: '#f3f2f2',
          contentColor: '#716d6d',
          style: 'vertical',
          horizontal: {
            menuItemPosition: 'glue'
          },
          vertical: {
            menuItemPosition: 'spaced',
            direction: 'up'
          },
          circle: {
            radius: 40
          },
          margin: 'small',
          size: 40,
          bounce: true,
          bounceLength: 'small',
          transitionStep: 100,
          hover: '#57d1fb',
          open: function() {
            $('.assemblyPerform .navimenu .gooey-menu-item').addClass('show')
            $('#gooey-v').addClass('show')
          },
          close: function() {
            $('.assemblyPerform .navimenu .gooey-menu-item').removeClass(
              'show'
            )
            $('#gooey-v').removeClass('show')
          }
        })
      })
    },
    getHeaderData() {
      const that = this
      var param = {
        'searchItems': {
          'children': [
            {
              'items': [
                {
                  'fieldName': 'id',
                  'operator': 'EQ',
                  'value': this.$route.query.id
                }
              ],
              'operator': 'AND'
            }
          ],
          'items': [],
          'operator': 'AND'
        },
        'openProps': [
          {
            'name': 'extProcessPlan'
713 714 715 716 717 718 719 720
          },
          {
            'name': 'prodTask',
            'openProps': [
              {
                'name': 'extProcessSkillUser'
              }
            ]
旭艳's avatar
旭艳 committed
721 722 723 724 725 726 727 728 729 730 731 732 733 734 735
          }
        ],
        'sortItem': [
          {
            'fieldName': 'modifyTime',
            'sortOrder': 'desc'
          }
        ],
        'toValidateKeys': ''
      }
      that.processLoading = true
      post('/JoExecutePlan/search', param)
        .then((res) => {
          if (res && res.items.content.length) {
            var data = res.items.content[0]
736
            const inspectPerson = []
“lixuyan”'s avatar
“lixuyan” committed
737 738 739 740 741 742
            if (data.prodTask) {
              data.prodTask.forEach(element => {
                if (element.subTypeName === 'CheckOut') {
                  if (element.extProcessSkillUser) {
                    inspectPerson.push(element.extProcessSkillUser.dxUserInfo.name)
                  }
743
                }
“lixuyan”'s avatar
“lixuyan” committed
744 745
              })
            }
旭艳's avatar
旭艳 committed
746 747 748
            that.headerData = {
              id: data.id,
              serialNumber: data.extProcessPlan.serialNumber,
旭艳's avatar
旭艳 committed
749
              positionNumber: data.extProcessPlan.positionNumber,
旭艳's avatar
旭艳 committed
750 751 752 753 754 755 756 757
              resName: data.extProcessPlan.planeType,
              serialNo: data.extProcessPlan.sorties,
              firstCheckFlag: data.extProcessPlan.firstCheckFlag === '是',
              name: data.extProcessPlan.name,
              scheduledStart: data.scheduledStart,
              scheduledEnd: data.scheduledEnd,
              planStateCode: data.planState,
              disabled: true,
758 759 760
              aoId: data.extProcessPlan.id,
              workDescription: data.extProcessPlan.workDescription,
              versionChangeDesc: data.workDescription,
“lixuyan”'s avatar
“lixuyan” committed
761
              prepareDescription: data.extProcessPlan.prepareDescription,
762 763
              noteName: data.extProcessPlan.noteName,
              inspectPerson: inspectPerson.join(' ')
旭艳's avatar
旭艳 committed
764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789
              // 不合格
            }
            that.getWorkingProcedure()
          } else {
            this.$message({
              showClose: true,
              message: res.message,
              type: 'error'
            })
          }
        })
        .catch((err) => console.error(err))
        .finally(() => {})
    },
    /**
     * 获取工序
     */
    getWorkingProcedure() {
      const that = this
      that.workingProcedureLoading = true
      const params = {
        'searchItems': {
          'children': [
            {
              'items': [
                {
旭艳's avatar
旭艳 committed
790
                  'fieldName': 'targetExtProcessUsageLink.sourceId',
旭艳's avatar
旭艳 committed
791
                  'operator': 'EQ',
旭艳's avatar
旭艳 committed
792
                  'value': that.headerData.aoId
旭艳's avatar
旭艳 committed
793 794 795 796 797 798 799 800 801 802
                }
              ],
              'operator': 'AND'
            }
          ],
          'items': [],
          'operator': 'AND'
        },
        'openProps': [
          {
旭艳's avatar
旭艳 committed
803
            'name': 'objFileLinks',
旭艳's avatar
旭艳 committed
804 805
            'openProps': [
              {
旭艳's avatar
旭艳 committed
806
                'name': 'target'
旭艳's avatar
旭艳 committed
807 808 809 810
              }
            ]
          },
          {
旭艳's avatar
旭艳 committed
811 812 813 814 815 816
            'name': 'joExecuteOpPlan',
            'openProps': [
              {
                'name': 'jrExecuteOpPlans'
              }
            ]
旭艳's avatar
旭艳 committed
817 818 819 820
          }
        ],
        'sortItem': [
          {
旭艳's avatar
旭艳 committed
821 822
            'fieldName': 'code',
            'sortOrder': 'asc'
旭艳's avatar
旭艳 committed
823 824 825 826 827 828 829 830 831
          }
        ],
        'toValidateKeys': ''
      }
      post(`/JoExecuteOpPlan/getJoExecuteOpPlanAll`, params)
        .then((res) => {
          if (res && res.items) {
            that.workingProcedure = (res.items || []).map((p) => {
              return {
832
                id: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].id,
旭艳's avatar
旭艳 committed
833 834 835
                tableId: p.id,
                serialNumber: p.code,
                title: p.name,
836
                html: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].longdescription,
旭艳's avatar
旭艳 committed
837 838 839 840
                keyOperation: p.keyOperation,
                checkFlag: p.checkFlag === 'true',
                airFlag: p.airFlag === 'AAD' || p.airFlag === '目击',
                versionKey: p.gaceVersion,
841 842 843 844
                statusCode: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].status,
                isQualified: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].isQualified,
                countOBJReject: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].countOBJReject,
                countRecord: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].countRecord,
“lixuyan”'s avatar
“lixuyan” committed
845
                countProblem: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].spotCount,
846 847 848
                countDebugging: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].countDebugging,
                countQuality: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].countQuality,
                revoke: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].revoke,
旭艳's avatar
旭艳 committed
849
                // 工装
850 851 852 853
                isOKClothesLink: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].isOKClothesLink,
                isOKToolLink: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].isOKToolLink,
                deviceLink: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].deviceLink,
                operator: p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].jrExecuteOpPlans &&
旭艳's avatar
旭艳 committed
854 855
                  p.joExecuteOpPlan[0].jrExecuteOpPlans.length && p.joExecuteOpPlan[0].jrExecuteOpPlans[0].operatorUser
                  ? p.joExecuteOpPlan[0].jrExecuteOpPlans[0].operatorUser.userName +
旭艳's avatar
旭艳 committed
856
                    ' ' +
旭艳's avatar
旭艳 committed
857
                    p.joExecuteOpPlan[0].jrExecuteOpPlans[0].operatorTime
旭艳's avatar
旭艳 committed
858 859
                  : '',
                testor:
860
                  p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].jrExecuteOpPlans &&
旭艳's avatar
旭艳 committed
861
                  p.joExecuteOpPlan[0].jrExecuteOpPlans.length && p.joExecuteOpPlan[0].jrExecuteOpPlans[0].testor ? p.joExecuteOpPlan[0].jrExecuteOpPlans[0].testor.userName +
旭艳's avatar
旭艳 committed
862
                    ' ' +
旭艳's avatar
旭艳 committed
863
                    p.joExecuteOpPlan[0].jrExecuteOpPlans[0].testorTime : '',
旭艳's avatar
旭艳 committed
864 865
                dmir: {
                  dmriImg:
866
                    p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].jrExecuteOpPlans && p.joExecuteOpPlan[0].jrExecuteOpPlans.length &&
旭艳's avatar
旭艳 committed
867
                    p.joExecuteOpPlan[0].jrExecuteOpPlans[0].dmriImg,
旭艳's avatar
旭艳 committed
868
                  dmirTime:
869
                    p.joExecuteOpPlan && p.joExecuteOpPlan.length && p.joExecuteOpPlan[0].jrExecuteOpPlans && p.joExecuteOpPlan[0].jrExecuteOpPlans.length &&
旭艳's avatar
旭艳 committed
870
                    p.joExecuteOpPlan[0].jrExecuteOpPlans[0].dmirTime
旭艳's avatar
旭艳 committed
871
                },
旭艳's avatar
旭艳 committed
872
                fileList: p.objFileLinks ? p.objFileLinks : []
旭艳's avatar
旭艳 committed
873 874 875 876 877 878 879 880
              }
            })
            var status = that.workingProcedure.every(
              (p) => p.statusCode === 'Not'
            )
            if (this.headerData.planStateCode === 'Delivery' || status) {
              this.headerData.disabled = false
            }
881 882 883 884 885
            let curRow
            if (this.$route.query.title === '适航任务执行') {
              curRow = that.workingProcedure.find(
                (p) => p.statusCode === 'UnderTest'
              )
886 887 888 889
            } else if (this.$route.query.title === '检验任务执行') {
              curRow = that.workingProcedure.find(
                (p) => p.statusCode === 'Yes'
              )
890 891 892 893 894 895 896 897
            } else {
              curRow = that.workingProcedure.find(
                (p) => p.statusCode === 'Not'
              )
            }
            // var curRow = that.workingProcedure.find(
            //   (p) => p.statusCode === 'Not'
            // )
旭艳's avatar
旭艳 committed
898 899 900
            if (curRow) {
              that.selectOptions(curRow.id)
            } else {
“lixuyan”'s avatar
“lixuyan” committed
901 902 903
              if (that.procedureId) {
                that.selectOptions(that.procedureId)
              } else {
旭艳's avatar
旭艳 committed
904
                that.selectOptions(that.workingProcedure[0].id)
“lixuyan”'s avatar
“lixuyan” committed
905
              }
旭艳's avatar
旭艳 committed
906 907 908 909 910 911 912 913 914 915 916 917 918 919
            }
          }
        })
        .catch((err) => console.error(err))
        .finally(() => {
          that.workingProcedureLoading = false
        })
    },
    selectOptions(id) {
      var that = this
      this.procedureId = id
      var row = this.workingProcedure.filter(
        (p) => p.id === this.procedureId
      )[0]
920 921 922 923 924 925 926
      let jurisdiction
      if (this.$route.query.title === '适航任务执行') {
        jurisdiction = row.statusCode === 'UnderTest'
      } else {
        jurisdiction = row.statusCode === 'Yes'
      }
      // var jurisdiction = row.statusCode === 'Yes'
旭艳's avatar
旭艳 committed
927
      this.editor = {
928
        id: row.id,
旭艳's avatar
旭艳 committed
929 930 931 932 933 934 935 936 937 938 939 940 941
        title: row.title,
        html: this.formatHTML(row.statusCode, row.html),
        tableId: row.tableId,
        keyOperation: row.keyOperation,
        checkFlag: row.checkFlag,
        airFlag: row.airFlag,
        statusCode: row.statusCode,
        isOKClothesLink: row.isOKClothesLink,
        isOKToolLink: row.isOKToolLink,
        deviceLink: row.deviceLink,
        operator: row.operator,
        testor: row.testor,
        dmir: row.dmir,
942 943
        jurisdiction: jurisdiction,
        revoke: row.revoke,
旭艳's avatar
旭艳 committed
944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992
        versionKey: row.versionKey,
        serialNumber: row.serialNumber,
        countOBJReject: row.countOBJReject,
        countRecord: row.countRecord,
        countProblem: row.countProblem,
        countDebugging: row.countDebugging,
        countQuality: row.countQuality,
        isQualified: row.isQualified,
        fileList: row.fileList
      }
      this.$nextTick(() => {
        that.editShow = false
        var inputValue = null
        $('.editHtml input')
          .focus(function() {
            inputValue = $(this)[0].value
          })
          .blur(function() {
            if (inputValue !== $(this)[0].value) {
              $(this).attr('value', $(this)[0].value)
              that.setEditor()
            }
          })
        $('.editHtml textarea')
          .focus(function() {
            inputValue = $(this)[0].value
          })
          .blur(function() {
            if (inputValue !== $(this)[0].value) {
              $(this).html($(this)[0].value)
              that.setEditor()
            }
          })
        $('.editHtml .saoma').click(function() {
          $('.qrcode').click()
          that.qrcodeDOM = $(this)
        })
        $('.editHtml img').click(function() {
          var src = this.src
          previewIMG(src)
        })
        if ($('#gooey-v.show .open-button')) {
          $('#gooey-v.show .open-button').click()
        }
      })
    },
    formatHTML(statusCode, html) {
      if (statusCode === 'Not') {
        // 扫码录入
993 994 995 996 997 998 999
        if (html) {
          return (
            html
              .replaceAll(
                '##',
                "<div class='scan-code'><textarea type='text'placeholder='请填写内容'></textarea><span class='saoma'></span></div>"
              )
旭艳's avatar
旭艳 committed
1000
            // 手工录入
1001 1002 1003 1004
              .replaceAll(
                '@@',
                "<textarea type='text' placeholder='请填写内容'></textarea>"
              )
旭艳's avatar
旭艳 committed
1005
            // 日期框
1006 1007 1008 1009 1010 1011
              .replaceAll(
                '$$',
                "<input type='datetime-local' placeholder='请填写日期'>"
              )
          )
        }
旭艳's avatar
旭艳 committed
1012
      } else {
1013 1014 1015 1016 1017 1018 1019
        if (html) {
          return (
            html
              .replaceAll(
                '##',
                "<div class='scan-code'><textarea disabled type='text'placeholder='请填写内容'></textarea><span class='saoma'></span></div>"
              )
旭艳's avatar
旭艳 committed
1020
            // 手工录入
1021 1022 1023 1024
              .replaceAll(
                '@@',
                "<textarea type='text' disabled placeholder='请填写内容'></textarea>"
              )
旭艳's avatar
旭艳 committed
1025
            // 日期框
1026 1027 1028 1029 1030 1031 1032 1033 1034
              .replaceAll(
                '$$',
                "<input type='datetime-local' disabled placeholder='请填写日期'>"
              )
              .replaceAll('saoma', '')
              .replaceAll('<input', '<input disabled ')
              .replaceAll('<textarea', '<textarea disabled ')
          )
        }
旭艳's avatar
旭艳 committed
1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156
      }
    },
    /**
     * 开工
     */
    start($event) {
      const that = this
      that.startLoading = true
      var param = {
        operator: 'MODIFY',
        id: that.headerData.id,
        planState: $event ? 'Run' : 'Delivery'
      }
      post('/JoExecutePlan/startWorkIng', param, 'post')
        .then((res) => {
          if (res && res.message.includes('成功')) {
            // 已完工
            this.headerData.planStateCode = $event ? 'Run' : 'Delivery'
            this.$message({
              showClose: true,
              message: res.message,
              type: 'success'
            })
          } else {
            this.$message({
              showClose: true,
              message: res.message,
              type: 'error'
            })
          }
        })
        .catch((err) => console.error(err))
        .finally(() => {
          that.startLoading = false
        })
    },
    /*
     *配套表
     */
    // getMatchData() {
    //   this.showDrawerTable = true
    //   this.$nextTick(() => {
    //     this.$refs.matching.getMatchData()
    //   })
    // },
    completeDioge() {
      var that = this
      this.$confirm('确定是完工吗', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      })
        .then(() => {
          that.complete()
        })
        .catch(() => {})
    },
    /**
     * 完工
     */
    complete() {
      const that = this
      if (that.editor.statusCode !== 'Not') return

      var inputNode = $('.assemblyPerform .editHtml').find('input')
      var textareaNode = $('.assemblyPerform .editHtml').find('textarea')
      let finished = false
      for (let i = 0; i < inputNode.length; i++) {
        if (!inputNode[0].value) {
          finished = true
          break
        }
      }
      for (let i = 0; i < textareaNode.length; i++) {
        if (!textareaNode[0].value) {
          finished = true
          break
        }
      }
      if (finished) {
        this.$message({
          showClose: true,
          message: '提交内容信息不完善!',
          type: 'warning'
        })
        return
      }
      get(
        `/JoExecuteOpPlan/completeOp?joOpId=${that.procedureId}&joAoId=${that.headerData.id}`,
        {}
      )
        .then((res) => {
          if (res && res.message.includes('成功')) {
            this.getWorkingProcedure()
            this.$message({
              showClose: true,
              message: res.message,
              type: 'success'
            })
          } else {
            this.$message({
              showClose: true,
              message: res.message,
              type: 'error'
            })
          }
        })
        .catch((err) => console.error(err))
        .finally(() => {})
    },
    /**
     * 保存编辑器内容
     */
    setEditor() {
      // var that = this
      // that.editShow = true
      var editHTML = $('.assemblyPerform .editHtml').html()
      var item = this.workingProcedure.filter(
        (p) => p.id === this.procedureId
      )[0]
      item.html = editHTML
      // var tableId = item.tableId
1157
      post('/JoExecuteOpPlan/recursion',
旭艳's avatar
旭艳 committed
1158 1159 1160 1161
        {
          operator: 'MODIFY',
          id: this.procedureId,
          longdescription: editHTML
1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176
        }).then((res) => {
        if (res && res.message.includes('成功')) {
          this.$message({
            showClose: true,
            message: res.message,
            type: 'success'
          })
        } else {
          this.$message({
            showClose: true,
            message: res.message,
            type: 'error'
          })
        }
      })
旭艳's avatar
旭艳 committed
1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206
        .catch((err) => console.error(err))
        .finally(() => {
          // that.editShow = false
        })
    },
    electronicSignatureVersion() {
      this.signatureShow = true
      $('html').addClass('hide')
      this.$nextTick(() => {
        if ($('.js-signature').length) {
          $('.js-signature').jqSignature()
        }
      })
    },
    clearCanvas() {
      $('html').removeClass('hide')
      this.signatureShow = false
      $('.js-signature')
        .eq(0)
        .jqSignature('clearCanvas')
      $('#saveBtn').attr('disabled', true)
    },
    saveSignature() {
      $('html').removeClass('hide')
      $('#signature').empty()
      var dataUrl = $('.js-signature')
        .eq(0)
        .jqSignature('getDataURL')
      var img = $('<img>').attr('src', dataUrl)
      $('.js-signature').append(img)
1207
      this.inspectionCompleted(dataUrl)
1208
      this.signatureShow = false
旭艳's avatar
旭艳 committed
1209 1210 1211 1212 1213
    },
    /** *
     * 试验申请
     */
    testApplication() {
1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225
      const params = {
        'operator': 'ADD',
        'status': 'Apply',
        'extProcessPlanId': this.headerData.aoId,
        'extProcessPlanIdType': 'ExtProcessPlan',
        'extProcessOperationId': this.editor.tableId,
        'extProcessOperationIdType': 'ExtProcessOperation',
        'appTime': this.formatTime()
      }
      post(
        `ExperimentRecord/recursion`,
        params
旭艳's avatar
旭艳 committed
1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266
      )
        .then((res) => {
          if (res && res.message.includes('成功')) {
            this.getWorkingProcedure()
            this.$message({
              showClose: true,
              message: res.message,
              type: 'success'
            })
          } else {
            this.$message({
              showClose: true,
              message: res.message,
              type: 'error'
            })
          }
        })
        .catch((err) => console.error(err))
        .finally(() => {})
    },
    testDioge() {
      if (this.editor.countRecord) {
        this.$refs.RecordMaintenance.open()
      } else {
        var that = this
        this.$confirm('确定要试验申请吗', '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        })
          .then(() => {
            that.testApplication()
          })
          .catch(() => {
            this.$message({
              type: 'info',
              message: '已取消'
            })
          })
      }
    },
1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281
    getHandledValue(num) {
      return num < 10 ? '0' + num : num
    },
    formatTime() {
      const d = new Date()
      const year = d.getFullYear()
      const month = this.getHandledValue(d.getMonth() + 1)
      const date = this.getHandledValue(d.getDate())
      const hours = this.getHandledValue(d.getHours())
      const minutes = this.getHandledValue(d.getMinutes())
      const second = this.getHandledValue(d.getSeconds())
      let resStr = ''
      resStr = year + '-' + month + '-' + date + ' ' + hours + ':' + minutes + ':' + second
      return resStr
    },
1282 1283 1284 1285 1286 1287 1288 1289
    inspectionDioge() {
      var that = this
      this.$confirm('确定检验完成吗', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      })
        .then(() => {
1290 1291 1292 1293 1294
          if (this.$route.query.title === '适航任务执行') {
            that.electronicSignatureVersion()
          } else {
            that.inspectionCompleted()
          }
1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305
        })
        .catch(() => {
          this.$message({
            type: 'info',
            message: '已取消'
          })
        })
    },
    /**
     *检验完成
     */
1306
    inspectionCompleted(dataUrl) {
1307
      var that = this
1308
      if (this.$route.query.title === '适航任务执行') {
旭艳's avatar
旭艳 committed
1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332
        post(
          `/JoExecuteOpPlan/inspection?joOpId=${that.procedureId}&joAoId=${that.headerData.id}`,
          { dmriImg: dataUrl }
        )
          .then((res) => {
            if (res && res.message.includes('成功')) {
              that.getWorkingProcedure()
              this.$message({
                showClose: true,
                message: res.message,
                type: 'success'
              })
            } else {
              this.$message({
                showClose: true,
                message: res.message,
                type: 'error'
              })
            }
          })
          .catch((err) => console.error(err))
          .finally(() => {
            // that.editShow = false
          })
1333
      } else {
旭艳's avatar
旭艳 committed
1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357
        get(
          `/JoExecuteOpPlan/completeOp?joOpId=${that.procedureId}&joAoId=${that.headerData.id}`,
          {}
        )
          .then((res) => {
            if (res && res.message.includes('成功')) {
              that.getWorkingProcedure()
              this.$message({
                showClose: true,
                message: res.message,
                type: 'success'
              })
            } else {
              this.$message({
                showClose: true,
                message: res.message,
                type: 'error'
              })
            }
          })
          .catch((err) => console.error(err))
          .finally(() => {
            // that.editShow = false
          })
1358
      }
1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399
    },
    setRejected() {
      var that = this
      this.$confirm('确定检验撤销吗', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      })
        .then(() => {
          post(
            `/JoExecuteOpPlan/checked/rejected?joOpId=${that.procedureId}&joAoId=${that.headerData.id}`,
            {}
          )
            .then((res) => {
              if (res && res.message.includes('成功')) {
                that.getWorkingProcedure()
                this.$message({
                  showClose: true,
                  message: res.message,
                  type: 'success'
                })
              } else {
                this.$message({
                  showClose: true,
                  message: res.message,
                  type: 'error'
                })
              }
            })
            .catch((err) => console.error(err))
            .finally(() => {
              // that.editShow = false
            })
        })
        .catch(() => {
          this.$message({
            type: 'info',
            message: '已取消'
          })
        })
    },
旭艳's avatar
旭艳 committed
1400 1401 1402 1403 1404 1405 1406 1407 1408 1409
    routerNnonConformingProductReviewList() {
      this.$router.push({
        name: 'nonConformingProductReviewList'
        // query: {
        //   id: item.id,
        //   materNo: item.materNo,
        //   airModelId: item.airModelId,
        //   sortiesId: item.sortiesId
        // }
      })
1410 1411 1412
    },
    refreshPage() {
      this.getWorkingProcedure()
旭艳's avatar
旭艳 committed
1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355
    }
  }
}
</script>
<style lang="scss">
// @import "../../icons/app/iconfont.css";
.assemblyPerform {
  height: 100%;
  width: 100%;
  z-index: 1002;
  background-color: #fff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  .fitting-page {
    display: flex;
    flex-direction: column;
    height: 20px;
    flex-grow: 1;
    position: relative;
    .dailiao {
      background: #b2e5b0;
    }
    .chuanhuan {
      background: #28c29a;
    }
    .c-header {
      padding: 15px 0 0 20px;
      background: #fff;
      box-sizing: border-box;
      position: relative;
      > .el-row {
        .el-col:last-child > div {
          margin-top: 23px;
        }
        .fai.el-col > span {
          font-weight: bold;
          color: red;
        }
      }
      .el-row {
        .el-col {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          margin-bottom: 10px;
          .label {
            display: inline-block;
            // width: 120px;
            text-align: right;
          }
        }
      }
      .iconfont {
        position: absolute;
        top: 14px;
        left: 0;
        font-size: 22px;
        cursor: pointer;
        &:hover {
          color: #409eff;
        }
      }
    }
    .c-body {
      background-color: #f2f6f7;
      display: flex;
      width: 100%;
      height: 20px;
      flex-grow: 1;
      .step-sel-item {
        // width: 200px;
        height: 100px;
        background: #fff;
        margin-top: 10px;
        line-height: 100px;
        text-align: center;
        color: #7a7d82;
        cursor: pointer;
        border: 1px solid transparent;
        &:first-child {
          margin-top: 0;
        }
        &.cur,
        &:hover {
          border: 1px solid #409eff;
          box-shadow: 3px 3px 18px #c1e8f1;
          // color: #fff;
        }
        &.Not {
          &::after {
            position: absolute;
            content: "";
            left: 0;
            top: -8px;
            width: 0px;
            border-top: 5px solid #fff;
            border-right: 5px solid #c9c9c9;
            border-bottom: 5px solid #c9c9c9;
            border-left: 5px solid #c9c9c9;
          }
          &::before {
            position: absolute;
            content: "";
            width: 0px;
            background: #c9c9c9;
            left: 0;
            bottom: -8px;
            border-top: 5px solid #c9c9c9;
            border-right: 5px solid #fff;
            border-bottom: 5px solid #fff;
            border-left: 5px solid #fff;
          }
          .step-sel-item-content::after {
            position: absolute;
            content: "";
            width: 10px;
            background: #c9c9c9;
            left: 0;
            top: 0;
            bottom: 2px;
          }
        }
        &.Pause {
          &::after {
            position: absolute;
            content: "";
            left: 0;
            top: -8px;
            width: 0px;
            border-top: 5px solid #fff;
            border-right: 5px solid #f3f72b;
            border-bottom: 5px solid #f3f72b;
            border-left: 5px solid #f3f72b;
          }
          &::before {
            position: absolute;
            content: "";
            width: 0px;
            background: #f3f72b;
            left: 0;
            bottom: -8px;
            border-top: 5px solid #f3f72b;
            border-right: 5px solid #fff;
            border-bottom: 5px solid #fff;
            border-left: 5px solid #fff;
          }
          .step-sel-item-content::after {
            position: absolute;
            content: "";
            width: 10px;
            background: #f3f72b;
            left: 0;
            top: 0;
            bottom: 2px;
          }
        }
        &.Checked {
          &::after {
            position: absolute;
            content: "";
            left: 0;
            top: -8px;
            width: 0px;
            border-top: 5px solid #fff;
            border-right: 5px solid #65b46d;
            border-bottom: 5px solid #65b46d;
            border-left: 5px solid #65b46d;
          }
          &::before {
            position: absolute;
            content: "";
            width: 0px;
            background: #65b46d;
            left: 0;
            bottom: -8px;
            border-top: 5px solid #65b46d;
            border-right: 5px solid #fff;
            border-bottom: 5px solid #fff;
            border-left: 5px solid #fff;
          }
          .step-sel-item-content::after {
            position: absolute;
            content: "";
            width: 10px;
            background: #65b46d;
            left: 0;
            top: 0;
            bottom: 2px;
          }
        }
        &.Yes {
          &::after {
            position: absolute;
            content: "";
            left: 0;
            top: -8px;
            width: 0px;
            border-top: 5px solid #fff;
            border-right: 5px solid #f8c313;
            border-bottom: 5px solid #f8c313;
            border-left: 5px solid #f8c313;
          }
          &::before {
            position: absolute;
            content: "";
            width: 0px;
            background: #f8c313;
            left: 0;
            bottom: -8px;
            border-top: 5px solid #f8c313;
            border-right: 5px solid #fff;
            border-bottom: 5px solid #fff;
            border-left: 5px solid #fff;
          }
          .step-sel-item-content::after {
            position: absolute;
            content: "";
            width: 10px;
            background: #f8c313;
            left: 0;
            top: 0;
            bottom: 2px;
          }
        }
        &.Reserved {
          &::after {
            position: absolute;
            content: "";
            left: 0;
            top: -8px;
            width: 0px;
            border-top: 5px solid #fff;
            border-right: 5px solid #fd76dc;
            border-bottom: 5px solid #fd76dc;
            border-left: 5px solid #fd76dc;
          }
          &::before {
            position: absolute;
            content: "";
            width: 0px;
            background: #fd76dc;
            left: 0;
            bottom: -8px;
            border-top: 5px solid #fd76dc;
            border-right: 5px solid #fff;
            border-bottom: 5px solid #fff;
            border-left: 5px solid #fff;
          }
          .step-sel-item-content::after {
            position: absolute;
            content: "";
            width: 10px;
            background: #fd76dc;
            left: 0;
            top: 0;
            bottom: 2px;
          }
        }
        &.UnderTest {
          &::after {
            position: absolute;
            content: "";
            left: 0;
            top: -8px;
            width: 0px;
            border-top: 5px solid #fff;
            border-right: 5px solid #3dbcf7;
            border-bottom: 5px solid #3dbcf7;
            border-left: 5px solid #3dbcf7;
          }
          &::before {
            position: absolute;
            content: "";
            width: 0px;
            background: #3dbcf7;
            left: 0;
            bottom: -8px;
            border-top: 5px solid #3dbcf7;
            border-right: 5px solid #fff;
            border-bottom: 5px solid #fff;
            border-left: 5px solid #fff;
          }
          .step-sel-item-content::after {
            position: absolute;
            content: "";
            width: 10px;
            background: #3dbcf7;
            left: 0;
            top: 0;
            bottom: 2px;
          }
        }
        .step-sel-item-content {
          height: 100%;
          display: flex;
          align-items: center;
          > div:first-child {
            position: absolute;
            left: 10px;
            height: 120px;
            font-size: 10px;
            margin: 0 10px;
            color: red;
            font-weight: bold;
            > p {
              height: 13px;
            }
          }
          //已下达
          // &::after {
          //   position: absolute;
          //   content: "";
          //   width: 10px;
          //   background: #65b46d;
          //   left: 0;
          //   top: 0;
          //   bottom: 2px;
          // }
          .help-say {
            position: absolute;
            right: 10px;
            font-size: 12px;
            top: 8px;
            height: 20px;
            line-height: 20px;
            color: #6482dc;
            .g-icon {
              font-size: 16px;
            }
          }
        }
        .g-icon {
          width: 40px;
          height: 40px;
          margin: 0 20px 0 40px;
        }
        .text {
          > span:first-child {
            font-size: 18px;
            overflow: hidden; //超出的文本隐藏
            text-overflow: ellipsis; //溢出用省略号显示
            white-space: nowrap; //溢出不换行
          }
          > span:last-child {
            position: absolute;
            left: 100px;
            top: 20px;
            color: red;
            font-size: 12px;
          }
        }
        position: relative;
        // //已下达
        // &::after {
        //   position: absolute;
        //   content: "";
        //   left: 0;
        //   top: -8px;
        //   width: 0px;
        //   border-top: 5px solid #fff;
        //   border-right: 5px solid #d0d0d0;
        //   border-bottom: 5px solid #d0d0d0;
        //   border-left: 5px solid #d0d0d0;
        // }
        &:first-child {
          &::after {
            position: absolute;
            content: "";
            left: 0;
            top: -8px;
            width: 10px;
            border-width: 0;
          }
        }
        // &::before {
        //   position: absolute;
        //   content: "";
        //   width: 0px;
        //   background: #65b46d;
        //   left: 0;
        //   bottom: -8px;
        //   border-top: 5px solid #d0d0d0;
        //   border-right: 5px solid #fff;
        //   border-bottom: 5px solid #fff;
        //   border-left: 5px solid #fff;
        // }
      }
      .do-ing-step {
        .step-sel-item-content {
          color: #323335;
          &::after {
            background: #dcb168;
          }
        }
        &::after {
          border-top: 5px solid #fff;
          border-right: 5px solid #dcb168;
          border-bottom: 5px solid #dcb168;
          border-left: 5px solid #dcb168;
        }
        &::before {
          border-top: 5px solid #dcb168;
          border-right: 5px solid #fff;
          border-bottom: 5px solid #fff;
          border-left: 5px solid #fff;
        }
      }
      .to-do-step {
        .step-sel-item-content {
          &::after {
            background: #b5b6b9;
          }
        }
        &::after {
          border-top: 5px solid #fff;
          border-right: 5px solid #b5b6b9;
          border-bottom: 5px solid #b5b6b9;
          border-left: 5px solid #b5b6b9;
        }
        &::before {
          border-top: 5px solid #b5b6b9;
          border-right: 5px solid #fff;
          border-bottom: 5px solid #fff;
          border-left: 5px solid #fff;
        }
      }
      .c-step-sel {
        width: 200px;
        min-width: 200px;
        height: 100%;
        margin: 10px 0;
        overflow: auto;
        > .not-content {
          display: flex;
          align-items: center;
          justify-content: center;
          height: 98%;
          border: 1px solid #ddd;
        }
      }
      .right-content {
        position: relative;
        width: 20px;
        flex-grow: 1;
        margin: 10px 10px 10px 10px;
        padding-left: 20px;
        background-color: #fff;
        .header {
          width: 100%;
          display: flex;
          white-space: nowrap;
          overflow: hidden;
          justify-content: space-between;
          height: 60px;
          line-height: 60px;
          padding-right: 20px;
          box-sizing: border-box;
          border-bottom: 1px solid #ccc;
          > div:first-child {
            > span:first-child {
              line-height: 52px;
              display: inline-block;
              margin-right: 20px;
              border-bottom: 3px solid #2292e8;
            }
            .iden {
              border-radius: 3px;
              margin-left: 15px;
              padding: 3px 10px;
              background-color: #ffb74c;
            }
          }
          .description {
            display: flex;
            > span {
              display: flex;
              align-items: center;
              margin-left: 20px;
              > span {
                display: inline-block;
                width: 20px;
                height: 20px;
                background-color: #ef4848;
                border-radius: 50%;
                &.satisfy {
                  background-color: #15a515;
                }
              }
              &:first-child {
                white-space: nowrap;
                background-color: #fff;
                border: 3px solid red;
                color: red;
                font-weight: bold;
                padding: 3px 6px;
                height: 20px;
                margin-top: 13px;
                font-size: 12px;
                cursor: pointer;
              }
            }
          }
        }
        .content {
          height: calc(100% - 70px);
          box-sizing: border-box;
          // padding: 20px 0;
          overflow: auto;
          background: transparent;
          .editer-title {
            white-space: nowrap;
            margin: 20px 20px 40px;
          }
          > .el-loading-mask {
            background-color: transparent;
          }
          > p > span {
            > span {
              border-bottom: 1px solid rgb(0, 0, 0);
              min-width: 100px;
              display: inline-block;
              margin: 0 10px;
              cursor: no-drop;
              padding: 0 10px;
              height: 26px;
              &.not {
                color: transparent;
              }
            }
            &:last-child > span {
              &.img {
                background-repeat: no-repeat;
                background-repeat: no-repeat; //不重复
                background-size: 100% 100%; // 满屏
                // cursor: pointer;
                color: transparent;
                margin-right: 0px;
              }
              &.time {
                margin-left: 0;
                padding-left: 15px;
              }
            }
          }
          > .editHtml {
            p + p,
            p + table {
              margin-top: 15px;
            }
            td {
              white-space: nowrap;
            }
            textarea {
              background-color: #ffcbf7;
              height: 23px;
              width: 60%;
              min-width: 200px;
              border: 0;
              padding-left: 15px;
              outline: 0px;
            }
            input {
              border: 0;
              padding-left: 15px;
              width: 60%;
              min-width: 200px;
              outline: 0px;
              background-color: #ffcbf7;
            }
            .scan-code {
              width: 60%;
              min-width: 200px;
              background-color: #ffcbf7;
              padding-left: 15px;
              display: inline-block;
              position: relative;
              .saoma {
                cursor: pointer;
                position: absolute;
                display: block;
                width: 17px;
                height: 16px;
                right: 3px;
                top: 3px;
                background-image: url("../../assets/saoma.jpeg");
                background-repeat: no-repeat; //不重复
                background-size: 100% 100%;
              }
              textarea {
                width: 100%;
                min-width: 200px;
                padding-left: 0px;
              }
            }
          }
          .el-table.enclosure thead th {
            color: #2e2e2e;
            font-weight: 700;
            font-size: 14px;
            padding: 0;
            background-color: #f3f6f7;
            line-height: 46px !important;
          }
        }
      }
      .c-step-info {
        position: absolute;
        left: 200px;
        top: 0;
        right: 0;
        bottom: 0;
      }
      .step-info-header {
        height: 80px;
        line-height: 80px;
        padding: 0 30px;
        font-size: 16px;
        position: relative;
        .main-info {
          display: flex;
          justify-content: space-between;
          max-width: 1000px;
        }
        &::after {
          position: absolute;
          content: "";
          height: 1px;
          bottom: 10px;
          left: 0px;
          right: 0px;
          background: #e2e2e2;
        }
      }
      .step-info-body {
        padding-right: 150px;
        display: flex;
        height: calc(100% - 80px);
        justify-content: center;
        align-items: center;
        .step-info-body-left {
          width: 400px;
          height: 400px;
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
        }
        .step-info-body-right {
          flex: 1;
        }
        .check-item {
          padding: 10px 30px;
          line-height: 30px;
          max-width: 1000px;
          .value-content {
            height: 30px;
            background: rgba(255, 255, 255, 1);
            border: 1px solid rgba(199, 199, 199, 1);
          }
          .passed-icon {
            font-size: 26px;
            color: #39b33e;
          }
        }
      }
    }

    .step-header {
      height: 10%;
      text-align: center;
      display: flex;
      justify-content: center;
      align-items: flex-end;
      font-size: 20px;
      font-weight: bold;
    }
  }
  .ipad-footer {
    position: fixed;
    height: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: #fff;
    border-top: 1px solid #dadada;
    display: flex;
    justify-content: center;
    .btn-box {
      position: relative;
      .btn-box-content {
        background-image: url(/images/footline.png);
        background-repeat: no-repeat;
        position: absolute;
        height: 92px;
        background-size: contain;
        width: 140px;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10;
        left: -70px;
        bottom: 0;
        .scan-btn {
          width: 70px;
          height: 70px;
          background: linear-gradient(
            192deg,
            rgba(52, 159, 49, 1) 0%,
            rgba(79, 108, 187, 1) 100%
          );
          border-radius: 35px;
          display: flex;
          justify-content: center;
          align-items: center;
          img {
            width: 40px;
            height: 40px;
          }
        }
      }
    }
  }
  .d-content-box {
    padding: 20px;
  }
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  ::-webkit-scrollbar-thumb {
    border-radius: 100px;
    background: #dcdfe6;
  }
  .toleft {
    display: inline-block;
    position: absolute;
    top: 80px;
    right: 25px;
    cursor: pointer;
  }
  .right-side {
    position: fixed;
    right: 0px;
    bottom: 0px;
    background-color: #fff;
    text-align: center;
    line-height: 29px;
    z-index: 10;
    max-height: calc(100% - 350px);
    overflow: auto;
    // &:hover {
    //   overflow: auto;
    //   right: 6px;
    // }
    > dd {
      padding: 10px;
      display: inherit;
      cursor: pointer;
      color: #666;
      font-size: 14px;
      &[disabled] {
        cursor: no-drop;
        svg {
          cursor: no-drop;
        }
        &:hover {
          background-color: #e2e2e2;
        }
      }
      p {
        white-space: nowrap;
        display: flow-root;
        text-align: center;
      }
      .icon {
        width: 1em;
        height: 1em;
        vertical-align: -0.15em;
        fill: currentColor;
        overflow: hidden;
        font-size: 30px;
        color: #409eff;
      }
      &:hover {
        color: #fff;
        background-color: #409eff;
      }

      &:hover .icon {
        color: #fff;
      }
    }
  }
  #gooey-v {
    height: 0px;
    width: 0px;
    padding: 0px;
    margin: 0px;
    .icon,
    i {
      font-size: 25px;
      // color: #409eff;
      margin-top: 7px;
    }
  }
  .navimenu .gooey-menu-item,
  .navimenu .open-button {
    bottom: 15px;
    right: 15px;
    bottom: 15px;
    right: 15px;
    border-radius: 100%;
    position: absolute;
    color: #716d6d;
    text-align: center;
    font-size: 0.9em;
    transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    transition: transform ease-out 200ms;
    -ms-transition: transform ease-out 200ms;
    -o-transition: transform ease-out 200ms;
    -moz-transition: transform ease-out 200ms;
    -webkit-transition: transform ease-out 200ms;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    outline: transparent solid 5px;
    transform-style: preserve-3d;
  }

  .menu-open,
  .navimenu .menu-open {
    display: none;
  }

  .navimenu .gooey-menu-item {
    transition-duration: 180ms;
    -moz-transition-duration: 180ms;
    -webkit-transition-duration: 180ms;
    -o-transition-duration: 180ms;
    &[disabled] {
      cursor: no-drop;
      svg {
        cursor: no-drop;
      }
      &:hover {
        background-color: #d3d3d3 !important;
      }
    }
    &.show {
      &:before {
        content: attr(content);
        color: #ffffff;
        margin-right: 4px;
        position: absolute;
        left: -80px;
        background-color: #484848;
        line-height: 20px;
        margin-top: 5px;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 12px;
      }
    }
  }

  .navimenu .open-button {
    z-index: 2;
    cursor: pointer;
  }

  .navimenu .open-button:hover {
    transform: scale(1.2, 1.2) translate3d(0, 0, 0);
    -ms-transform: scale(1.2, 1.2) translate3d(0, 0, 0);
    -moz-transform: scale(1.2, 1.2) translate3d(0, 0, 0);
    -o-transform: scale(1.2, 1.2) translate3d(0, 0, 0);
    -webkit-transform: scale(1.2, 1.2) translate3d(0, 0, 0);
  }

  .navimenu .menu-open:checked + .open-button {
    transition: 200ms linear;
    -ms-transition: 200ms linear;
    -webkit-transition: 200ms linear;
    -moz-transition: 200ms linear;
    -o-transition: 200ms linear;
    transform: scale(0.9, 0.9) translate3d(0, 0, 0);
    -ms-transform: scale(0.9, 0.9) translate3d(0, 0, 0);
    -o-transform: scale(0.9, 0.9) translate3d(0, 0, 0);
    -webkit-transform: scale(0.9, 0.9) translate3d(0, 0, 0);
    -moz-transform: scale(0.9, 0.9) translate3d(0, 0, 0);
  }

  .electronic-signature-version {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #818182cc;
    z-index: 9999999;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    > div:first-child {
      width: 70%;
      height: 70%;
      border: 1px solid red;
      position: relative;
      > p:first-child {
        position: absolute;
        margin: 10px;
        color: red;
        font-size: 12px;
      }
      > p.button {
        position: absolute;
        bottom: 0;
        right: 0;
        margin: 10px;
      }
    }
  }
  .icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
  }
}
</style>
<style>
html.hide {
  height: 100%;
  width: 100%;
  overflow: hidden;
}
</style>