From 3ee153c34cd734bdb5845b60e6a207884d3b0838 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 22 四月 2026 17:58:36 +0800
Subject: [PATCH] 报告编制:印章生成调整

---
 src/views/performance/rewardAndPunishment/index.vue |   45 
 src/views/structural/premises/index.vue             |  489 +++++---
 src/utils/excelFountion.js                          |    2 
 src/workers/InspectionWorker.worker.js              |   55 
 src/views/performance/class/index.vue               |  782 +++++++++----
 src/views/business/inspectionTask/inspection.vue    | 2075 +++++++++++++++++++++++-----------
 6 files changed, 2,298 insertions(+), 1,150 deletions(-)

diff --git a/src/utils/excelFountion.js b/src/utils/excelFountion.js
index 3cd11a9..4a2c516 100644
--- a/src/utils/excelFountion.js
+++ b/src/utils/excelFountion.js
@@ -246,7 +246,7 @@
 function getABCList(f) {
   try {
     let regex = /[=\+\-\*\%\(\)\/\^\s]/g;
-    let fouList = ["SUM", "MAX", "MIN", "AVERAGE", "ABS"];
+    let fouList = ["SUM", "MAX", "MIN", "AVERAGE", "ABS","SQRT"];
     f = f
       .replace(regex, ",")
       .replace(new RegExp('"&', "g"), "")
diff --git a/src/views/business/inspectionTask/inspection.vue b/src/views/business/inspectionTask/inspection.vue
index 977484e..5de1a13 100644
--- a/src/views/business/inspectionTask/inspection.vue
+++ b/src/views/business/inspectionTask/inspection.vue
@@ -1,203 +1,453 @@
 <template>
-  <div v-loading="loading" class="inspection" style="background-color: rgb(245, 247, 251);">
+  <div
+    v-loading="loading"
+    class="inspection"
+    style="background-color: rgb(245, 247, 251)"
+  >
     <el-row class="title">
-      <el-col v-if="insOrder.ifsOrderType!=='02wg'" :span="8" style="text-align: left;">
-        <el-form :inline="true" :model="otherForm" class="form-inline" label-width="50px"
-          style="text-align: right; padding-top: 0; display: inline">
+      <el-col
+        v-if="insOrder.ifsOrderType !== '02wg'"
+        :span="8"
+        style="text-align: left"
+      >
+        <el-form
+          :inline="true"
+          :model="otherForm"
+          class="form-inline"
+          label-width="50px"
+          style="text-align: right; padding-top: 0; display: inline"
+        >
           <el-form-item label="娓╁害:" style="margin-bottom: 0">
-            <el-input v-model="otherForm.temperature" :disabled="state > 1" placeholder="" size="small"
-              style="width: 90px; line-height: 60px" @change="(m) => subOtherForm(m, 'temperature')"></el-input>
+            <el-input
+              v-model="otherForm.temperature"
+              :disabled="state > 1"
+              placeholder=""
+              size="small"
+              style="width: 90px; line-height: 60px"
+              @change="(m) => subOtherForm(m, 'temperature')"
+            ></el-input>
             <span style="margin-left: 4px">鈩�</span>
           </el-form-item>
           <el-form-item label="婀垮害:" style="margin-bottom: 0">
-            <el-input v-model="otherForm.humidity" :disabled="state > 1" placeholder="" size="small"
-              style="width: 90px; line-height: 60px" @change="(m) => subOtherForm(m, 'humidity')"></el-input>
+            <el-input
+              v-model="otherForm.humidity"
+              :disabled="state > 1"
+              placeholder=""
+              size="small"
+              style="width: 90px; line-height: 60px"
+              @change="(m) => subOtherForm(m, 'humidity')"
+            ></el-input>
             <span style="margin-left: 4px">%</span>
           </el-form-item>
         </el-form>
       </el-col>
-      <el-col :span="insOrder.ifsOrderType!=='02wg'?16:24" style="text-align: right">
-        <el-button v-if="insOrder.ifsOrderType && insOrder.ifsOrderType==='02wg'" size="small" type="primary" @click="showMaterialPropsDialog">IFS鐗╂枡灞炴�ф洿鏂�</el-button>
-        <el-button size="small" type="primary" @click="refreshView">鍒锋柊</el-button>
-        <el-button v-if="typeSource == 1" size="small" type="primary" @click="openPurchase">杩涜揣楠岃瘉</el-button>
-        <el-button v-if="state == 1 && [0,1].includes(Number(typeSource))" size="small" type="primary"
-          @click="openUnPassDialog('add')">涓嶅悎鏍煎鐞�</el-button>
-        <el-button size="small" type="primary" @click="sampleVisible = true; uploadSample();">鏍峰搧鍒囨崲</el-button>
+      <el-col
+        :span="insOrder.ifsOrderType !== '02wg' ? 16 : 24"
+        style="text-align: right"
+      >
+        <el-button
+          v-if="insOrder.ifsOrderType && insOrder.ifsOrderType === '02wg'"
+          size="small"
+          type="primary"
+          @click="showMaterialPropsDialog"
+          >IFS鐗╂枡灞炴�ф洿鏂�</el-button
+        >
+        <el-button size="small" type="primary" @click="refreshView"
+          >鍒锋柊</el-button
+        >
+        <el-button
+          v-if="typeSource == 1"
+          size="small"
+          type="primary"
+          @click="openPurchase"
+          >杩涜揣楠岃瘉</el-button
+        >
+        <el-button
+          v-if="state == 1 && [0, 1].includes(Number(typeSource))"
+          size="small"
+          type="primary"
+          @click="openUnPassDialog('add')"
+          >涓嶅悎鏍煎鐞�</el-button
+        >
+        <el-button
+          size="small"
+          type="primary"
+          @click="
+            sampleVisible = true;
+            uploadSample();
+          "
+          >鏍峰搧鍒囨崲</el-button
+        >
         <!--        <el-button v-if="state == 1" size="small" type="primary" @click="taskVisible = true">浠诲姟鍒囨崲</el-button>-->
-        <el-button v-if="state == 1" size="small" type="primary" @click="addVerifyDia = true">鎻愪氦</el-button>
+        <el-button
+          v-if="state == 1"
+          size="small"
+          type="primary"
+          @click="addVerifyDia = true"
+          >鎻愪氦</el-button
+        >
         <!-- 澶嶆牳 -->
-        <el-button v-if="state == 2" size="medium" type="primary" @click="openAddCheck">閫氳繃</el-button>
-        <el-button v-if="state == 2" size="medium" @click="upInsReview(0)">涓嶉�氳繃</el-button>
-        <el-button type="primary" size="small" @click="exportTable('myTable')">涓嬭浇鍘熷璁板綍</el-button>
+        <el-button
+          v-if="state == 2"
+          size="medium"
+          type="primary"
+          @click="openAddCheck"
+          >閫氳繃</el-button
+        >
+        <el-button v-if="state == 2" size="medium" @click="upInsReview(0)"
+          >涓嶉�氳繃</el-button
+        >
+        <el-button type="primary" size="small" @click="exportTable('myTable')"
+          >涓嬭浇鍘熷璁板綍</el-button
+        >
         <el-button size="small" @click="goback">杩斿洖</el-button>
       </el-col>
     </el-row>
     <div class="search">
-<!--      <el-form :inline="true" :model="searchForm" class="form-inline" label-position="right" label-width="100px">-->
-<!--        <el-form-item label="濮旀墭缂栧彿:">-->
-<!--          <el-input v-model="insOrder.entrustCode" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
-<!--        </el-form-item>-->
-<!--        <el-form-item label="鏍峰搧缂栧彿:">-->
-<!--          <el-tooltip :content="currentSample.sampleCode" :disabled="!currentSample.sampleCode">-->
-<!--            <el-input v-model="currentSample.sampleCode" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
-<!--          </el-tooltip>-->
-<!--        </el-form-item>-->
-<!--        <el-form-item label="鏍峰搧鍚嶇О:">-->
-<!--          <el-input v-model="currentSample.sample" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
-<!--        </el-form-item>-->
-<!--        <el-form-item label="鏍峰搧鏁伴噺:">-->
-<!--          <el-input v-model="sampleProduct.length" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
-<!--        </el-form-item>-->
-<!--        <el-form-item label="鏍峰搧鍨嬪彿:">-->
-<!--          <el-input v-model="currentSample.model" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
-<!--        </el-form-item>-->
-<!--        <el-form-item label="涓嬪彂鏃堕棿:">-->
-<!--          <el-input v-model="insOrder.sendTime" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
-<!--        </el-form-item>-->
-<!--        <el-form-item label="绱ф�ョ▼搴�:">-->
-<!--          <el-input v-model="insOrder.typeName" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
-<!--        </el-form-item>-->
-<!--        <el-form-item label="绾﹀畾鏃堕棿:">-->
-<!--          <el-input v-model="insOrder.appointed" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
-<!--        </el-form-item>-->
-<!--        <el-form-item v-if="typeSource === 1" label="鎶芥鏁伴噺:">-->
-<!--          <el-input v-model="insOrder.testQuantity" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
-<!--        </el-form-item>-->
-<!--        <el-form-item v-if="typeSource === 1" label="鍘傚瀵嗗害:">-->
-<!--          <el-input v-model="supplierDensity" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
-<!--        </el-form-item>-->
-<!--        <el-form-item label="褰撳墠鏍峰搧浣嶆暟:" label-width="120px">-->
-<!--          <el-tag v-if="currentKey">{{ `NO.${currentKey}` }}</el-tag>-->
-<!--        </el-form-item>-->
-<!--        <el-form-item label="澶囨敞:">-->
-<!--          &lt;!&ndash;          <span style="color:red">{{ insOrder.remark?insOrder.remark:'-' }}</span>&ndash;&gt;-->
-<!--          <el-input v-model="insOrder.remark" :disabled="state != 1" clearable placeholder="璇疯緭鍏�" size="small"-->
-<!--            @blur="subOtherForm(insOrder.remark, 'remark')"></el-input>-->
-<!--          &lt;!&ndash; <el-tag v-if="currentKey">{{ insOrder.remark }}</el-tag> &ndash;&gt;-->
-<!--        </el-form-item>-->
-<!--        <template v-if="insOrder.isSplitOrder && insOrder.isSplitOrder===1">-->
-<!--          <el-form-item label="澶栨姢棰滆壊:">-->
-<!--            <el-input v-model="insOrder.outerColor" clearable disabled placeholder="" size="small"></el-input>-->
-<!--          </el-form-item>-->
-<!--          <el-form-item label="缁濈紭棰滆壊:">-->
-<!--            <el-input v-model="insOrder.insulationColor" clearable disabled placeholder="" size="small"></el-input>-->
-<!--          </el-form-item>-->
-<!--          <el-form-item label="鐩樺彿:">-->
-<!--            <el-input v-model="insOrder.drumNo" clearable disabled placeholder="" size="small"></el-input>-->
-<!--          </el-form-item>-->
-<!--        </template>-->
-<!--      </el-form>-->
-<!--      -->
+      <!--      <el-form :inline="true" :model="searchForm" class="form-inline" label-position="right" label-width="100px">-->
+      <!--        <el-form-item label="濮旀墭缂栧彿:">-->
+      <!--          <el-input v-model="insOrder.entrustCode" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
+      <!--        </el-form-item>-->
+      <!--        <el-form-item label="鏍峰搧缂栧彿:">-->
+      <!--          <el-tooltip :content="currentSample.sampleCode" :disabled="!currentSample.sampleCode">-->
+      <!--            <el-input v-model="currentSample.sampleCode" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
+      <!--          </el-tooltip>-->
+      <!--        </el-form-item>-->
+      <!--        <el-form-item label="鏍峰搧鍚嶇О:">-->
+      <!--          <el-input v-model="currentSample.sample" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
+      <!--        </el-form-item>-->
+      <!--        <el-form-item label="鏍峰搧鏁伴噺:">-->
+      <!--          <el-input v-model="sampleProduct.length" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
+      <!--        </el-form-item>-->
+      <!--        <el-form-item label="鏍峰搧鍨嬪彿:">-->
+      <!--          <el-input v-model="currentSample.model" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
+      <!--        </el-form-item>-->
+      <!--        <el-form-item label="涓嬪彂鏃堕棿:">-->
+      <!--          <el-input v-model="insOrder.sendTime" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
+      <!--        </el-form-item>-->
+      <!--        <el-form-item label="绱ф�ョ▼搴�:">-->
+      <!--          <el-input v-model="insOrder.typeName" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
+      <!--        </el-form-item>-->
+      <!--        <el-form-item label="绾﹀畾鏃堕棿:">-->
+      <!--          <el-input v-model="insOrder.appointed" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
+      <!--        </el-form-item>-->
+      <!--        <el-form-item v-if="typeSource === 1" label="鎶芥鏁伴噺:">-->
+      <!--          <el-input v-model="insOrder.testQuantity" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
+      <!--        </el-form-item>-->
+      <!--        <el-form-item v-if="typeSource === 1" label="鍘傚瀵嗗害:">-->
+      <!--          <el-input v-model="supplierDensity" clearable disabled placeholder="璇疯緭鍏�" size="small"></el-input>-->
+      <!--        </el-form-item>-->
+      <!--        <el-form-item label="褰撳墠鏍峰搧浣嶆暟:" label-width="120px">-->
+      <!--          <el-tag v-if="currentKey">{{ `NO.${currentKey}` }}</el-tag>-->
+      <!--        </el-form-item>-->
+      <!--        <el-form-item label="澶囨敞:">-->
+      <!--          &lt;!&ndash;          <span style="color:red">{{ insOrder.remark?insOrder.remark:'-' }}</span>&ndash;&gt;-->
+      <!--          <el-input v-model="insOrder.remark" :disabled="state != 1" clearable placeholder="璇疯緭鍏�" size="small"-->
+      <!--            @blur="subOtherForm(insOrder.remark, 'remark')"></el-input>-->
+      <!--          &lt;!&ndash; <el-tag v-if="currentKey">{{ insOrder.remark }}</el-tag> &ndash;&gt;-->
+      <!--        </el-form-item>-->
+      <!--        <template v-if="insOrder.isSplitOrder && insOrder.isSplitOrder===1">-->
+      <!--          <el-form-item label="澶栨姢棰滆壊:">-->
+      <!--            <el-input v-model="insOrder.outerColor" clearable disabled placeholder="" size="small"></el-input>-->
+      <!--          </el-form-item>-->
+      <!--          <el-form-item label="缁濈紭棰滆壊:">-->
+      <!--            <el-input v-model="insOrder.insulationColor" clearable disabled placeholder="" size="small"></el-input>-->
+      <!--          </el-form-item>-->
+      <!--          <el-form-item label="鐩樺彿:">-->
+      <!--            <el-input v-model="insOrder.drumNo" clearable disabled placeholder="" size="small"></el-input>-->
+      <!--          </el-form-item>-->
+      <!--        </template>-->
+      <!--      </el-form>-->
+      <!--      -->
       <el-descriptions title="妫�楠屽崟姒傚喌" :column="4" border>
         <template v-if="insOrder.ifsOrderType">
-          <el-descriptions-item label="闆朵欢鍙�">{{insOrder.partNo}}</el-descriptions-item>
-          <el-descriptions-item label="闆朵欢鍚嶇О">{{insOrder.partDetail}}</el-descriptions-item>
-          <el-descriptions-item label="鎵规鍙�">{{ insOrder.lotBatchNo }}</el-descriptions-item>
-          <el-descriptions-item label="鏍峰搧鍨嬪彿" >{{currentSample.model}}</el-descriptions-item>
-          <el-descriptions-item label="鎶芥鏁伴噺">{{insOrder.testQuantity}}</el-descriptions-item>
-          <el-descriptions-item label="鍘傚瀵嗗害">{{supplierDensity}}</el-descriptions-item>
-          <template v-if="insOrder.ifsOrderType && insOrder.ifsOrderType==='02wg'">
-            <el-descriptions-item label="杞藉叿缂栧彿">{{insOrder.drumNo}}</el-descriptions-item>
-            <el-descriptions-item label="璧峰绫虫爣(km)">{{insOrder.startMeterMark}}</el-descriptions-item>
-            <el-descriptions-item label="鎴绫虫爣(km)">{{insOrder.endMeterMark}}</el-descriptions-item>
-            <el-descriptions-item label="鍏ュ簱闀垮害(km)">{{calcInbondLength(insOrder.startMeterMark,insOrder.endMeterMark)}}</el-descriptions-item>
-            <el-descriptions-item label="缁濈紭棰滆壊">{{insOrder.insulationColor}}</el-descriptions-item>
-            <el-descriptions-item label="澶栨姢棰滆壊">{{insOrder.outerColor}}</el-descriptions-item>
-            <el-descriptions-item label="鍗板瓧淇℃伅">{{insOrder.letteringInfo}}</el-descriptions-item>
+          <el-descriptions-item label="闆朵欢鍙�">{{
+            insOrder.partNo
+          }}</el-descriptions-item>
+          <el-descriptions-item label="闆朵欢鍚嶇О">{{
+            insOrder.partDetail
+          }}</el-descriptions-item>
+          <el-descriptions-item label="鎵规鍙�">{{
+            insOrder.lotBatchNo
+          }}</el-descriptions-item>
+          <el-descriptions-item label="鏍峰搧鍨嬪彿">{{
+            currentSample.model
+          }}</el-descriptions-item>
+          <el-descriptions-item label="鎶芥鏁伴噺">{{
+            insOrder.testQuantity
+          }}</el-descriptions-item>
+          <el-descriptions-item label="鍘傚瀵嗗害">{{
+            supplierDensity
+          }}</el-descriptions-item>
+          <template
+            v-if="insOrder.ifsOrderType && insOrder.ifsOrderType === '02wg'"
+          >
+            <el-descriptions-item label="杞藉叿缂栧彿">{{
+              insOrder.drumNo
+            }}</el-descriptions-item>
+            <el-descriptions-item label="璧峰绫虫爣(km)">{{
+              insOrder.startMeterMark
+            }}</el-descriptions-item>
+            <el-descriptions-item label="鎴绫虫爣(km)">{{
+              insOrder.endMeterMark
+            }}</el-descriptions-item>
+            <el-descriptions-item label="鍏ュ簱闀垮害(km)">{{
+              calcInbondLength(insOrder.startMeterMark, insOrder.endMeterMark)
+            }}</el-descriptions-item>
+            <el-descriptions-item label="缁濈紭棰滆壊">{{
+              insOrder.insulationColor
+            }}</el-descriptions-item>
+            <el-descriptions-item label="澶栨姢棰滆壊">{{
+              insOrder.outerColor
+            }}</el-descriptions-item>
+            <el-descriptions-item label="鍗板瓧淇℃伅">{{
+              insOrder.letteringInfo
+            }}</el-descriptions-item>
           </template>
         </template>
         <template v-else>
-          <el-descriptions-item label="濮旀墭缂栧彿">{{ insOrder.entrustCode }}</el-descriptions-item>
-          <el-descriptions-item label="鏍峰搧缂栧彿">{{ currentSample.sampleCode }}</el-descriptions-item>
-          <el-descriptions-item label="鏍峰搧鍚嶇О">{{ currentSample.sample }}</el-descriptions-item>
-          <el-descriptions-item label="鏍峰搧鏁伴噺">{{ sampleProduct.length }}</el-descriptions-item>
-          <el-descriptions-item label="鏍峰搧鍨嬪彿">{{ currentSample.model }}</el-descriptions-item>
-          <el-descriptions-item label="涓嬪彂鏃堕棿">{{ insOrder.sendTime }}</el-descriptions-item>
-          <el-descriptions-item label="绱ф�ョ▼搴�">{{ insOrder.typeName }}</el-descriptions-item>
-          <el-descriptions-item label="绾﹀畾鏃堕棿">{{ insOrder.appointed }}</el-descriptions-item>
+          <el-descriptions-item label="濮旀墭缂栧彿">{{
+            insOrder.entrustCode
+          }}</el-descriptions-item>
+          <el-descriptions-item label="鏍峰搧缂栧彿">{{
+            currentSample.sampleCode
+          }}</el-descriptions-item>
+          <el-descriptions-item label="鏍峰搧鍚嶇О">{{
+            currentSample.sample
+          }}</el-descriptions-item>
+          <el-descriptions-item label="鏍峰搧鏁伴噺">{{
+            sampleProduct.length
+          }}</el-descriptions-item>
+          <el-descriptions-item label="鏍峰搧鍨嬪彿">{{
+            currentSample.model
+          }}</el-descriptions-item>
+          <el-descriptions-item label="涓嬪彂鏃堕棿">{{
+            insOrder.sendTime
+          }}</el-descriptions-item>
+          <el-descriptions-item label="绱ф�ョ▼搴�">{{
+            insOrder.typeName
+          }}</el-descriptions-item>
+          <el-descriptions-item label="绾﹀畾鏃堕棿">{{
+            insOrder.appointed
+          }}</el-descriptions-item>
         </template>
-        <el-descriptions-item label="褰撳墠鏍峰搧浣嶆暟"><el-tag v-if="currentKey">{{ `NO.${currentKey}` }}</el-tag></el-descriptions-item>
+        <el-descriptions-item label="褰撳墠鏍峰搧浣嶆暟"
+          ><el-tag v-if="currentKey">{{
+            `NO.${currentKey}`
+          }}</el-tag></el-descriptions-item
+        >
         <el-descriptions-item label="澶囨敞">
-          <el-input v-model="insOrder.remark" :disabled="state != 1" clearable placeholder="璇疯緭鍏�" size="small"
-                    @blur="subOtherForm(insOrder.remark, 'remark')"></el-input>
+          <el-input
+            v-model="insOrder.remark"
+            :disabled="state != 1"
+            clearable
+            placeholder="璇疯緭鍏�"
+            size="small"
+            @blur="subOtherForm(insOrder.remark, 'remark')"
+          ></el-input>
         </el-descriptions-item>
       </el-descriptions>
     </div>
     <div class="center">
-      <div class="search" style="
+      <div
+        class="search"
+        style="
           text-align: left;
           display: flex;
           align-items: center;
           justify-content: space-between;
-        ">
+        "
+      >
         <div style="display: flex; align-items: center">
           <span v-if="tableList.length > 0">妫�楠屾ā鏉匡細</span>
           <el-radio-group v-model="currentTable" size="small">
-            <el-radio-button v-for="(item, index) in tableLists" :key="index" :label="item.templateId" size="small">{{
-              item.templateName }}</el-radio-button>
+            <el-radio-button
+              v-for="(item, index) in tableLists"
+              :key="index"
+              :label="item.templateId"
+              size="small"
+              >{{ item.templateName }}</el-radio-button
+            >
           </el-radio-group>
         </div>
         <div style="display: flex; align-items: center">
-          <el-button v-if="state == 1" size="small" type="primary" @click="openAddUnpass">鏂板涓嶅悎鏍煎娴�</el-button>
-          <el-button v-if="state == 1" size="small" type="primary" @click="unpassCheck">涓嶅悎鏍煎娴�</el-button>
-          <el-button v-if="state > 1" size="small" type="primary" @click="viewUnpassCheck">鏌ョ湅涓嶅悎鏍煎娴�</el-button>
+          <el-button
+            v-if="state == 1"
+            size="small"
+            type="primary"
+            @click="openAddUnpass"
+            >鏂板涓嶅悎鏍煎娴�</el-button
+          >
+          <el-button
+            v-if="state == 1"
+            size="small"
+            type="primary"
+            @click="unpassCheck"
+            >涓嶅悎鏍煎娴�</el-button
+          >
+          <el-button
+            v-if="state > 1"
+            size="small"
+            type="primary"
+            @click="viewUnpassCheck"
+            >鏌ョ湅涓嶅悎鏍煎娴�</el-button
+          >
           <span v-if="cableTagList.length > 0">&nbsp;&nbsp;鐢电紗閰嶇疆锛�</span>
-          <el-select v-if="cableTagList.length > 0" v-model="currentTab" clearable placeholder="璇烽�夋嫨" size="small"
-            @change="(m) => handleChangeCableTag(currentSample.id, 0, 'cableTag', m)
-              " @focus="getCableTag(currentSample.id)">
-            <el-option v-for="item in cableTagList" :key="item.cableTag" :label="item.cableTag" :value="item.cableTag">
+          <el-select
+            v-if="cableTagList.length > 0"
+            v-model="currentTab"
+            clearable
+            placeholder="璇烽�夋嫨"
+            size="small"
+            @change="
+              (m) => handleChangeCableTag(currentSample.id, 0, 'cableTag', m)
+            "
+            @focus="getCableTag(currentSample.id)"
+          >
+            <el-option
+              v-for="item in cableTagList"
+              :key="item.cableTag"
+              :label="item.cableTag"
+              :value="item.cableTag"
+            >
               <span style="float: left">{{ item.cableTag }}</span>
-              <el-tag v-if="item.status == 0" size="small" style="float: right; margin-top: 5px"
-                type="danger">鏈</el-tag>
-              <el-tag v-if="item.status == 1" size="small" style="float: right; margin-top: 5px"
-                type="warning">妫�楠屼腑</el-tag>
-              <el-tag v-if="item.status == 2" size="small" style="float: right; margin-top: 5px"
-                type="success">宸叉</el-tag>
+              <el-tag
+                v-if="item.status == 0"
+                size="small"
+                style="float: right; margin-top: 5px"
+                type="danger"
+                >鏈</el-tag
+              >
+              <el-tag
+                v-if="item.status == 1"
+                size="small"
+                style="float: right; margin-top: 5px"
+                type="warning"
+                >妫�楠屼腑</el-tag
+              >
+              <el-tag
+                v-if="item.status == 2"
+                size="small"
+                style="float: right; margin-top: 5px"
+                type="success"
+                >宸叉</el-tag
+              >
             </el-option>
           </el-select>
-          <span v-if="repetitionTagList.length > 0">&nbsp;&nbsp;閲嶅妫�楠岄」锛�</span>
-          <el-select v-if="repetitionTagList.length > 0" v-model="repetitionTag" clearable placeholder="璇烽�夋嫨"
-            size="small" @change="(m) =>
-              handleChangeCableTag(currentSample.id, 0, 'repetitionTag', m)
-              " @focus="getRepetitionTag(currentSample.id)">
-            <el-option v-for="item in repetitionTagList" :key="item.repetitionTag" :label="item.radius"
-              :value="item.repetitionTag">
+          <span v-if="repetitionTagList.length > 0"
+            >&nbsp;&nbsp;閲嶅妫�楠岄」锛�</span
+          >
+          <el-select
+            v-if="repetitionTagList.length > 0"
+            v-model="repetitionTag"
+            clearable
+            placeholder="璇烽�夋嫨"
+            size="small"
+            @change="
+              (m) =>
+                handleChangeCableTag(currentSample.id, 0, 'repetitionTag', m)
+            "
+            @focus="getRepetitionTag(currentSample.id)"
+          >
+            <el-option
+              v-for="item in repetitionTagList"
+              :key="item.repetitionTag"
+              :label="item.radius"
+              :value="item.repetitionTag"
+            >
               <span style="float: left">{{ item.radius }}</span>
-              <el-tag v-if="item.status == 0" size="small" style="float: right; margin-top: 5px"
-                type="danger">鏈</el-tag>
-              <el-tag v-if="item.status == 1" size="small" style="float: right; margin-top: 5px"
-                type="warning">妫�楠屼腑</el-tag>
-              <el-tag v-if="item.status == 2" size="small" style="float: right; margin-top: 5px"
-                type="success">宸叉</el-tag>
+              <el-tag
+                v-if="item.status == 0"
+                size="small"
+                style="float: right; margin-top: 5px"
+                type="danger"
+                >鏈</el-tag
+              >
+              <el-tag
+                v-if="item.status == 1"
+                size="small"
+                style="float: right; margin-top: 5px"
+                type="warning"
+                >妫�楠屼腑</el-tag
+              >
+              <el-tag
+                v-if="item.status == 2"
+                size="small"
+                style="float: right; margin-top: 5px"
+                type="success"
+                >宸叉</el-tag
+              >
             </el-option>
           </el-select>
           <span v-if="typeSource == '1'">&nbsp;&nbsp;寰呮楠屾暟閲忥細</span>
-          <el-select v-if="typeSource == '1'" v-model="rawMaterialTag" placeholder="璇烽�夋嫨" size="small" @change="(m) => handleChangeCableTag(currentSample.id, 4, 'cableTag', m)
-            " @focus="getRawMaterialTag(currentSample.id)">
-            <el-option v-for="item in rawMaterialTagList" :key="item.rawMaterialTag" :label="item.rawMaterialTag"
-              :value="item.rawMaterialTag">
+          <el-select
+            v-if="typeSource == '1'"
+            v-model="rawMaterialTag"
+            placeholder="璇烽�夋嫨"
+            size="small"
+            @change="
+              (m) => handleChangeCableTag(currentSample.id, 4, 'cableTag', m)
+            "
+            @focus="getRawMaterialTag(currentSample.id)"
+          >
+            <el-option
+              v-for="item in rawMaterialTagList"
+              :key="item.rawMaterialTag"
+              :label="item.rawMaterialTag"
+              :value="item.rawMaterialTag"
+            >
               <span style="float: left">{{ item.rawMaterialTag }}</span>
-              <el-tag v-if="item.status == 0" size="small" style="float: right; margin-top: 5px"
-                type="danger">鏈</el-tag>
-              <el-tag v-if="item.status == 1" size="small" style="float: right; margin-top: 5px"
-                type="warning">妫�楠屼腑</el-tag>
-              <el-tag v-if="item.status == 2" size="small" style="float: right; margin-top: 5px"
-                type="success">宸叉</el-tag>
+              <el-tag
+                v-if="item.status == 0"
+                size="small"
+                style="float: right; margin-top: 5px"
+                type="danger"
+                >鏈</el-tag
+              >
+              <el-tag
+                v-if="item.status == 1"
+                size="small"
+                style="float: right; margin-top: 5px"
+                type="warning"
+                >妫�楠屼腑</el-tag
+              >
+              <el-tag
+                v-if="item.status == 2"
+                size="small"
+                style="float: right; margin-top: 5px"
+                type="success"
+                >宸叉</el-tag
+              >
             </el-option>
           </el-select>
-          <el-button :loading="dataAcquisitionLoading" v-if="state == 1" size="small" type="primary"
-            @click="getDataAcquisitionDevice">鏁版嵁閲囬泦</el-button>
-          <el-button :type="dataAcquisitionEidtAble ? '' : 'primary'" v-if="state == 1" size="small"
-            @click="dataAcquisitionEidtAble = !dataAcquisitionEidtAble">{{ dataAcquisitionEidtAble ? "鍏抽棴缂栬緫" : "缂栬緫鏁伴噰"
-            }}</el-button>
+          <el-button
+            :loading="dataAcquisitionLoading"
+            v-if="state == 1"
+            size="small"
+            type="primary"
+            @click="getDataAcquisitionDevice"
+            >鏁版嵁閲囬泦</el-button
+          >
+          <el-button
+            :type="dataAcquisitionEidtAble ? '' : 'primary'"
+            v-if="state == 1"
+            size="small"
+            @click="dataAcquisitionEidtAble = !dataAcquisitionEidtAble"
+            >{{ dataAcquisitionEidtAble ? "鍏抽棴缂栬緫" : "缂栬緫鏁伴噰" }}</el-button
+          >
         </div>
       </div>
       <!-- 甯歌妫�楠屽師濮嬭褰� -->
       <div id="nav" v-loading="tableLoading" class="center-box">
-        <template v-if="
-          tableLists.find((m) => m.templateId == currentTable)">
-          <table v-for="(item, index) in tableList" :key="index + currentTable + currentSample.id" border="1"
-            cellpadding="10" class="tables" id="myTable">
+        <template v-if="tableLists.find((m) => m.templateId == currentTable)">
+          <table
+            v-for="(item, index) in tableList"
+            :key="index + currentTable + currentSample.id"
+            border="1"
+            cellpadding="10"
+            class="tables"
+            id="myTable"
+          >
             <tbody>
               <tr style="white-space: nowrap">
                 濮旀墭缂栧彿锛歿{
@@ -205,51 +455,86 @@
                 }}
               </tr>
               <tr v-for="(m, i) in item.arr" :key="i">
-                <td v-for="(n, j) in m" v-if="n.v.mc == undefined || Object.keys(n.v.mc).length === 4"
-                  :id="item.templateId + '-' + n.i + '-' + n.r + '-' + n.c" :key="j"
-                  :colspan="n.v.mc && n.v.mc.cs ? n.v.mc.cs : 1" :rowspan="n.v.mc && n.v.mc.rs ? n.v.mc.rs : 1" :style="`background:${n.v.bg ? n.v.bg : ''};color:${n.v.fc
-                    };font-size:${n.v.fs}px;width:${handleWidth(
-                      n
-                    )}px !important;height:${item.style.rowlen[n.r]}px;font-wight:${n.v.bl ? 'bold' : ''
-                    };`">
-                  <div :class="`content-h-${n.v.ht} content-v-${n.v.vt}`" :style="`width:${handleWidth(n)}px !important;min-height:${item.style.rowlen[n.r]
-                    }px;`" class="content">
-                    <template v-if="
-                      n.v.ps != undefined &&
-                      typeof n.v.ps.value === 'string' &&
-                      n.v.ps.value.includes('妫�楠屽��') &&
-                      state == 1
-                    ">
-                      <el-input v-if="getInspectionValueType(n.i) == 1"
-                        :key="'abc-' + '000' + index + '000' + i + '000' + j" v-model="n.v.v" :disabled="(getInspectionItemType(n.i) == 1 &&
-                          !dataAcquisitionEidtAble) ||
+                <td
+                  v-for="(n, j) in m"
+                  v-if="n.v.mc == undefined || Object.keys(n.v.mc).length === 4"
+                  :id="item.templateId + '-' + n.i + '-' + n.r + '-' + n.c"
+                  :key="j"
+                  :colspan="n.v.mc && n.v.mc.cs ? n.v.mc.cs : 1"
+                  :rowspan="n.v.mc && n.v.mc.rs ? n.v.mc.rs : 1"
+                  :style="`background:${n.v.bg ? n.v.bg : ''};color:${
+                    n.v.fc
+                  };font-size:${n.v.fs}px;width:${handleWidth(
+                    n
+                  )}px !important;height:${
+                    item.style.rowlen[n.r]
+                  }px;font-wight:${n.v.bl ? 'bold' : ''};`"
+                >
+                  <div
+                    :class="`content-h-${n.v.ht} content-v-${n.v.vt}`"
+                    :style="`width:${handleWidth(n)}px !important;min-height:${
+                      item.style.rowlen[n.r]
+                    }px;`"
+                    class="content"
+                  >
+                    <template
+                      v-if="
+                        n.v.ps != undefined &&
+                        typeof n.v.ps.value === 'string' &&
+                        n.v.ps.value.includes('妫�楠屽��') &&
+                        state == 1
+                      "
+                    >
+                      <el-input
+                        v-if="getInspectionValueType(n.i) == 1"
+                        :key="'abc-' + '000' + index + '000' + i + '000' + j"
+                        v-model="n.v.v"
+                        :disabled="
+                          (getInspectionItemType(n.i) == 1 &&
+                            !dataAcquisitionEidtAble) ||
                           (n.u != userId && n.u != undefined && n.u != '')
-                          " class="table_input" @change="(m) =>
+                        "
+                        class="table_input"
+                        @change="
+                          (m) =>
                             changeInput(
                               m,
                               `${item.templateId}-${n.r}-${n.c}-${n.i}`,
                               n,
                               'getDataType'
                             )
-                            " @input="handleInput(n)" @mousewheel.native.prevent @keydown.enter="
-                              changeInput(
-                                '',
-                                `${item.templateId}-${n.r}-${n.c}-${n.i}`,
-                                n,
-                                'getDataType'
-                              )
-                              ">
-                      </el-input>
-                      <el-input v-else-if="getInspectionValueType(n.i) == 2" v-model="n.v.v" :disabled="getInspectionItemType(n.i) == 1 ||
-                        (n.u != userId && n.u != undefined && n.u != '')
-                        " class="table_input" type="textarea" @change="(m) =>
+                        "
+                        @input="handleInput(n)"
+                        @mousewheel.native.prevent
+                        @keydown.enter="
                           changeInput(
-                            m,
+                            '',
                             `${item.templateId}-${n.r}-${n.c}-${n.i}`,
                             n,
                             'getDataType'
                           )
-                          " />
+                        "
+                      >
+                      </el-input>
+                      <el-input
+                        v-else-if="getInspectionValueType(n.i) == 2"
+                        v-model="n.v.v"
+                        :disabled="
+                          getInspectionItemType(n.i) == 1 ||
+                          (n.u != userId && n.u != undefined && n.u != '')
+                        "
+                        class="table_input"
+                        type="textarea"
+                        @change="
+                          (m) =>
+                            changeInput(
+                              m,
+                              `${item.templateId}-${n.r}-${n.c}-${n.i}`,
+                              n,
+                              'getDataType'
+                            )
+                        "
+                      />
                       <!-- <el-select v-else-if="getInspectionValueType(n.i) == 5" v-model="n.v.v" :disabled="state > 1 ||
                       getInspectionItemType(n.i) == 1 ||
                       (n.u != userId && n.u != undefined && n.u != '')
@@ -263,116 +548,204 @@
                         " @visible-change="(e) => getDic(e, n.i)">
                       <el-option v-for="(e, i) in enumList" :key="i" :label="e.label" :value="e.value"></el-option>
                     </el-select> -->
-                      <span v-else-if="getInspectionValueType(n.i) == 4"
-                        :style="`font-family:${n.v.ff} !important;`">/</span>
+                      <span
+                        v-else-if="getInspectionValueType(n.i) == 4"
+                        :style="`font-family:${n.v.ff} !important;`"
+                        >/</span
+                      >
                     </template>
-                    <template v-else-if="n.v.ps != undefined && n.v.ps.value === '缁撹'">
-                      <el-select v-if="
-                        (getInspectionValueType(n.i) == 2 ||
-                          getInspectionValueType(n.i) == 5) &&
-                        state == 1
-                      " v-model="n.v.v" class="table_input" @change="(m) =>
-                        changeInput(
-                          m,
-                          `${item.templateId}-${n.r}-${n.c}-${n.i}`,
-                          n,
-                          'getDataType',
-                          'changeSelect'
-                        )
-                        ">
+                    <template
+                      v-else-if="n.v.ps != undefined && n.v.ps.value === '缁撹'"
+                    >
+                      <el-select
+                        v-if="
+                          (getInspectionValueType(n.i) == 2 ||
+                            getInspectionValueType(n.i) == 5) &&
+                          state == 1
+                        "
+                        v-model="n.v.v"
+                        class="table_input"
+                        @change="
+                          (m) =>
+                            changeInput(
+                              m,
+                              `${item.templateId}-${n.r}-${n.c}-${n.i}`,
+                              n,
+                              'getDataType',
+                              'changeSelect'
+                            )
+                        "
+                      >
                         <el-option :value="1" label="鍚堟牸"></el-option>
                         <el-option :value="0" label="涓嶅悎鏍�"></el-option>
                         <el-option :value="3" label="涓嶅垽瀹�"></el-option>
                         <el-option :value="2" label="寰呭畾"></el-option>
                       </el-select>
                       <template v-if="state > 1">
-                        <span v-if="n.v.v === 1" :style="`font-family:${n.v.ff} !important;color: green;`">鍚堟牸</span>
-                        <span v-else-if="n.v.v === 0" :style="`font-family:${n.v.ff} !important;color: red;`">涓嶅悎鏍�</span>
-                        <span v-else-if="n.v.v === 3"
-                          :style="`font-family:${n.v.ff} !important;color: #3A7BFA;`">涓嶅垽瀹�</span>
-                        <span v-else :style="`font-family:${n.v.ff} !important;`">寰呭畾</span>
+                        <span
+                          v-if="n.v.v === 1"
+                          :style="`font-family:${n.v.ff} !important;color: green;`"
+                          >鍚堟牸</span
+                        >
+                        <span
+                          v-else-if="n.v.v === 0"
+                          :style="`font-family:${n.v.ff} !important;color: red;`"
+                          >涓嶅悎鏍�</span
+                        >
+                        <span
+                          v-else-if="n.v.v === 3"
+                          :style="`font-family:${n.v.ff} !important;color: #3A7BFA;`"
+                          >涓嶅垽瀹�</span
+                        >
+                        <span
+                          v-else
+                          :style="`font-family:${n.v.ff} !important;`"
+                          >寰呭畾</span
+                        >
                       </template>
-                      <template v-if="getInspectionValueType(n.i) != 2 &&
-                        state == 1">
-                        <span v-if="n.v.v === 1" :style="`font-family:${n.v.ff} !important;color: green;`">鍚堟牸</span>
-                        <span v-else-if="n.v.v === 0" :style="`font-family:${n.v.ff} !important;color: red;`">涓嶅悎鏍�</span>
-                        <span v-else-if="n.v.v === 3"
-                          :style="`font-family:${n.v.ff} !important;color: #3A7BFA;`">涓嶅垽瀹�</span>
-                        <span v-else :style="`font-family:${n.v.ff} !important;`">寰呭畾</span>
+                      <template
+                        v-if="getInspectionValueType(n.i) != 2 && state == 1"
+                      >
+                        <span
+                          v-if="n.v.v === 1"
+                          :style="`font-family:${n.v.ff} !important;color: green;`"
+                          >鍚堟牸</span
+                        >
+                        <span
+                          v-else-if="n.v.v === 0"
+                          :style="`font-family:${n.v.ff} !important;color: red;`"
+                          >涓嶅悎鏍�</span
+                        >
+                        <span
+                          v-else-if="n.v.v === 3"
+                          :style="`font-family:${n.v.ff} !important;color: #3A7BFA;`"
+                          >涓嶅垽瀹�</span
+                        >
+                        <span
+                          v-else
+                          :style="`font-family:${n.v.ff} !important;`"
+                          >寰呭畾</span
+                        >
                       </template>
                     </template>
-                    <template v-else-if="
-                      n.v.ps != undefined &&
-                      n.v.ps.value === '璁惧缂栫爜' &&
-                      state == 1
-                    ">
+                    <template
+                      v-else-if="
+                        n.v.ps != undefined &&
+                        n.v.ps.value === '璁惧缂栫爜' &&
+                        state == 1
+                      "
+                    >
                       <span>{{ n.v.v }}</span>
                     </template>
-                    <template v-else-if="
-                      n.v.ps != undefined && n.v.ps.value === '璁惧鍚嶇О'
-                    ">
-                      <el-select v-model="n.v.v" :disabled="state > 1" class="table_input" filterable multiple
-                        placeholder="璁惧" remote @change="(val) => changeEquip(val, n)"
-                        @visible-change="(e) => getEquipOptions(e, n.i)">
-                        <el-option v-for="item in equipOptions" :key="item.value" :label="item.label"
-                          :value="item.value">
+                    <template
+                      v-else-if="
+                        n.v.ps != undefined && n.v.ps.value === '璁惧鍚嶇О'
+                      "
+                    >
+                      <el-select
+                        v-model="n.v.v"
+                        :disabled="state > 1"
+                        class="table_input"
+                        filterable
+                        multiple
+                        placeholder="璁惧"
+                        remote
+                        @change="(val) => changeEquip(val, n)"
+                        @visible-change="(e) => getEquipOptions(e, n.i)"
+                      >
+                        <el-option
+                          v-for="item in equipOptions"
+                          :key="item.value"
+                          :label="item.label"
+                          :value="item.value"
+                        >
                           {{ item.label + "--" + item.value }}
                         </el-option>
                       </el-select>
                     </template>
-                    <template v-else-if="
-                      n.v.ps != undefined &&
-                      n.v.ps.value === '瑕佹眰鍊�' &&
-                      state == 1
-                    ">
+                    <template
+                      v-else-if="
+                        n.v.ps != undefined &&
+                        n.v.ps.value === '瑕佹眰鍊�' &&
+                        state == 1
+                      "
+                    >
                       <span :style="`font-family:${n.v.ff} !important;`">{{
                         getTell(n.i)
                       }}</span>
                     </template>
-                    <template v-else-if="
-                      n.v.ps != undefined &&
-                      n.v.ps.value === '璁$畻鍊�' &&
-                      state == 1
-                    "><span :style="`font-family:${n.v.ff} !important;`">{{
-                      toFixed(n.v.v, n.v.ct)
-                    }}</span></template>
-                    <template v-else-if="
-                      n.v.ps != undefined &&
-                      n.v.ps.value === '鏈�缁堝��' &&
-                      state == 1
-                    ">
+                    <template
+                      v-else-if="
+                        n.v.ps != undefined &&
+                        n.v.ps.value === '璁$畻鍊�' &&
+                        state == 1
+                      "
+                      ><span :style="`font-family:${n.v.ff} !important;`">{{
+                        toFixed(n.v.v, n.v.ct)
+                      }}</span></template
+                    >
+                    <template
+                      v-else-if="
+                        n.v.ps != undefined &&
+                        n.v.ps.value === '鏈�缁堝��' &&
+                        state == 1
+                      "
+                    >
                       <span :style="`font-family:${n.v.ff} !important;`">{{
                         toFixed(n.v.v, n.v.ct)
                       }}</span>
                     </template>
-                    <template v-else-if="
-                      n.v.ps != undefined && n.v.ps.value === '鏍峰搧缂栧彿'
-                    ">
-                      <div :title="currentSample.sampleCode" style="
-                        display: flex;
-                        flex-wrap: nowrap;
-                        align-items: center;
-                        width: 100%;
-                      ">
-                        <i class="el-icon-caret-left table_caret" style="width: 16px" @click="caretSample(-1)"></i>
+                    <template
+                      v-else-if="
+                        n.v.ps != undefined && n.v.ps.value === '鏍峰搧缂栧彿'
+                      "
+                    >
+                      <div
+                        :title="currentSample.sampleCode"
+                        style="
+                          display: flex;
+                          flex-wrap: nowrap;
+                          align-items: center;
+                          width: 100%;
+                        "
+                      >
+                        <i
+                          class="el-icon-caret-left table_caret"
+                          style="width: 16px"
+                          @click="caretSample(-1)"
+                        ></i>
                         <div
-                          :style="`font-family:${n.v.ff} !important;overflow: hidden;white-space: nowrap;width: calc(100% - 32px);`">
+                          :style="`font-family:${n.v.ff} !important;overflow: hidden;white-space: nowrap;width: calc(100% - 32px);`"
+                        >
                           {{ currentSample.sampleCode }}
                         </div>
-                        <i class="el-icon-caret-right table_caret" style="width: 16px" @click="caretSample(1)"></i>
+                        <i
+                          class="el-icon-caret-right table_caret"
+                          style="width: 16px"
+                          @click="caretSample(1)"
+                        ></i>
                       </div>
                     </template>
-                    <template v-else-if="
-                      n.v.ps != undefined && n.v.ps.value === '鏍峰搧鍨嬪彿'
-                    ">
-                      <div v-if="
-                        currentSample.model !== undefined &&
-                        currentSample.model !== null
-                      " :style="`font-family:${n.v.ff} !important;`">
+                    <template
+                      v-else-if="
+                        n.v.ps != undefined && n.v.ps.value === '鏍峰搧鍨嬪彿'
+                      "
+                    >
+                      <div
+                        v-if="
+                          currentSample.model !== undefined &&
+                          currentSample.model !== null
+                        "
+                        :style="`font-family:${n.v.ff} !important;`"
+                      >
                         {{ currentSample.model }}
                       </div>
                     </template>
-                    <span v-else :style="`font-family:${n.v.ff} !important;`" v-html="getValue(n.v)"></span>
+                    <span
+                      v-else
+                      :style="`font-family:${n.v.ff} !important;`"
+                      v-html="getValue(n.v)"
+                    ></span>
                   </div>
                 </td>
               </tr>
@@ -380,54 +753,147 @@
           </table>
         </template>
       </div>
-      <el-upload v-if="state == 1" ref="upload" :action="action" :before-upload="beforeUpload" :data="{
-        orderId: id,
-      }" :headers="uploadHeader" :on-error="onError" :on-success="handleSuccessUp" :show-file-list="false"
+      <el-upload
+        v-if="state == 1"
+        ref="upload"
+        :action="action"
+        :before-upload="beforeUpload"
+        :data="{
+          orderId: id,
+        }"
+        :headers="uploadHeader"
+        :on-error="onError"
+        :on-success="handleSuccessUp"
+        :show-file-list="false"
         accept=".jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar"
-        style="width: 80px !important;margin-top: 10px;">
-        <el-button v-if="state == 1" size="small" type="primary">闄勪欢涓婁紶</el-button></el-upload>
-      <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading"
-        :height="'calc(100vh - 290px)'" @pagination="pagination" style="height: 100%; margin-top: 16px"></lims-table>
+        style="width: 80px !important; margin-top: 10px"
+      >
+        <el-button v-if="state == 1" size="small" type="primary"
+          >闄勪欢涓婁紶</el-button
+        ></el-upload
+      >
+      <lims-table
+        :tableData="tableData"
+        :column="column"
+        :page="page"
+        :tableLoading="tableLoading"
+        :height="'calc(100vh - 290px)'"
+        @pagination="pagination"
+        style="height: 100%; margin-top: 16px"
+      ></lims-table>
     </div>
     <el-drawer :size="550" :visible.sync="sampleVisible" title="鏍峰搧鍒囨崲">
-      <el-table v-if="sampleVisible" ref="productTable" :current-row-key="currentKey" :data="sampleProduct"
-                :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border
-        :row-class-name="tableRowClassName" :row-key="(record) => record.index" border class="el-table" height="100%"
-        highlight-current-row tooltip-effect="dark" @row-click="handleChangeSample">
-        <el-table-column :key="Math.random()" align="center" label="搴忓彿" type="index" width="70px">
+      <el-table
+        v-if="sampleVisible"
+        ref="productTable"
+        :current-row-key="currentKey"
+        :data="sampleProduct"
+        :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }"
+        border
+        :row-class-name="tableRowClassName"
+        :row-key="(record) => record.index"
+        border
+        class="el-table"
+        height="100%"
+        highlight-current-row
+        tooltip-effect="dark"
+        @row-click="handleChangeSample"
+      >
+        <el-table-column
+          :key="Math.random()"
+          align="center"
+          label="搴忓彿"
+          type="index"
+          width="70px"
+        >
         </el-table-column>
-        <el-table-column label="鏍峰搧缂栧彿" min-width="100px" prop="sampleCode" show-overflow-tooltip></el-table-column>
-        <el-table-column label="鏍峰搧鍨嬪彿" min-width="100px" prop="model" show-overflow-tooltip></el-table-column>
-        <el-table-column label="妫�娴嬬姸鎬�" prop="insState" show-overflow-tooltip width="100px">
+        <el-table-column
+          label="鏍峰搧缂栧彿"
+          min-width="100px"
+          prop="sampleCode"
+          show-overflow-tooltip
+        ></el-table-column>
+        <el-table-column
+          label="鏍峰搧鍨嬪彿"
+          min-width="100px"
+          prop="model"
+          show-overflow-tooltip
+        ></el-table-column>
+        <el-table-column
+          label="妫�娴嬬姸鎬�"
+          prop="insState"
+          show-overflow-tooltip
+          width="100px"
+        >
           <template slot-scope="scope">
-            <el-tag v-for="(item, i) in typeList" v-if="item.value == scope.row.insState" :key="i" :type="item.type"
-              size="medium" style="margin-right: 5px">{{ item.label }}</el-tag>
+            <el-tag
+              v-for="(item, i) in typeList"
+              v-if="item.value == scope.row.insState"
+              :key="i"
+              :type="item.type"
+              size="medium"
+              style="margin-right: 5px"
+              >{{ item.label }}</el-tag
+            >
           </template>
         </el-table-column>
-        <el-table-column align="center" label="鏄惁鐣欐牱" prop="isLeave" show-overflow-tooltip width="95px">
+        <el-table-column
+          align="center"
+          label="鏄惁鐣欐牱"
+          prop="isLeave"
+          show-overflow-tooltip
+          width="95px"
+        >
           <template slot-scope="scope">
             <span>{{ scope.row.isLeave == 0 ? "鍚�" : "鏄�" }}</span>
           </template>
         </el-table-column>
         <!-- 妫�楠屽崟浼氭湁涓�涓槸鍚︽湁閰嶅鏍峰搧瀛楁鎺у埗鏄剧ず -->
-        <el-table-column v-if="insOrder.mating > 0" label="閰嶅鏍峰搧鍨嬪彿" min-width="130px" prop="joinModel"
-          show-overflow-tooltip></el-table-column>
-        <el-table-column v-if="insOrder.mating > 0" label="閰嶅鏍峰搧鍚嶇О" min-width="130px" prop="joinName"
-          show-overflow-tooltip></el-table-column>
-        <el-table-column v-if="insOrder.mating > 0" label="閰嶅鏍峰搧鏁伴噺" min-width="130px" prop="joinNum"
-          show-overflow-tooltip></el-table-column>
+        <el-table-column
+          v-if="insOrder.mating > 0"
+          label="閰嶅鏍峰搧鍨嬪彿"
+          min-width="130px"
+          prop="joinModel"
+          show-overflow-tooltip
+        ></el-table-column>
+        <el-table-column
+          v-if="insOrder.mating > 0"
+          label="閰嶅鏍峰搧鍚嶇О"
+          min-width="130px"
+          prop="joinName"
+          show-overflow-tooltip
+        ></el-table-column>
+        <el-table-column
+          v-if="insOrder.mating > 0"
+          label="閰嶅鏍峰搧鏁伴噺"
+          min-width="130px"
+          prop="joinNum"
+          show-overflow-tooltip
+        ></el-table-column>
       </el-table>
     </el-drawer>
     <el-drawer :size="500" :visible.sync="taskVisible" title="浠诲姟鍒囨崲">
-      <lims-table :tableData="tableData0" :column="column0" :page="page0" :tableLoading="tableLoading0"
-        :height="'calc(100vh - 90px)'" :currentChange="handleChangeTask"></lims-table>
+      <lims-table
+        :tableData="tableData0"
+        :column="column0"
+        :page="page0"
+        :tableLoading="tableLoading0"
+        :height="'calc(100vh - 90px)'"
+        :currentChange="handleChangeTask"
+      ></lims-table>
     </el-drawer>
     <el-dialog
       title="鍝戦搩鐗囪澶囪瘯鏍风被鍨�"
       :visible.sync="dialogVisible"
       :before-close="handleDialogCancel"
-      width="30%">
-      <el-select v-model="deviceDbTableName" placeholder="璇烽�夋嫨璇曟牱绫诲瀷" style="width:100%" size="small">
+      width="30%"
+    >
+      <el-select
+        v-model="deviceDbTableName"
+        placeholder="璇烽�夋嫨璇曟牱绫诲瀷"
+        style="width: 100%"
+        size="small"
+      >
         <el-option label="鐗囩姸" value="TestData"></el-option>
         <el-option label="绠$姸" value="TestData2"></el-option>
       </el-select>
@@ -441,33 +907,67 @@
           <span class="required-span">* </span>涓嶉�氳繃鐨勭悊鐢憋細
         </div>
         <div class="search_input" style="width: 100%">
-          <el-input v-model="noReason" :autosize="{ minRows: 4 }" clearable size="small" type="textarea"></el-input>
+          <el-input
+            v-model="noReason"
+            :autosize="{ minRows: 4 }"
+            clearable
+            size="small"
+            type="textarea"
+          ></el-input>
         </div>
       </div>
       <span slot="footer" class="dialog-footer">
         <el-button @click="reviewDia = false">鍙� 娑�</el-button>
-        <el-button :loading="reviewLoading" type="primary" @click="handleReviewDia">纭� 瀹�</el-button>
+        <el-button
+          :loading="reviewLoading"
+          type="primary"
+          @click="handleReviewDia"
+          >纭� 瀹�</el-button
+        >
       </span>
     </el-dialog>
     <el-dialog :visible.sync="addVerifyDia" title="鎸囧畾澶嶆牳浜哄憳" width="400px">
-      <div class="body" style="display: flex; padding: 10px; align-items: center">
+      <div
+        class="body"
+        style="display: flex; padding: 10px; align-items: center"
+      >
         <div class="search_label" style="width: 150px">
           <span class="required-span">*</span>澶嶆牳浜�
         </div>
         <div class="search_input" style="width: 100%">
-          <el-select v-model="verifyUser" clearable filterable placeholder="璇烽�夋嫨" size="small" style="width: 100%">
-            <el-option v-for="(item, i) in personList" :key="i" :label="item.label" :value="item.value">
+          <el-select
+            v-model="verifyUser"
+            clearable
+            filterable
+            placeholder="璇烽�夋嫨"
+            size="small"
+            style="width: 100%"
+          >
+            <el-option
+              v-for="(item, i) in personList"
+              :key="i"
+              :label="item.label"
+              :value="item.value"
+            >
             </el-option>
           </el-select>
         </div>
       </div>
       <span slot="footer" class="dialog-footer">
         <el-button @click="addVerifyDia = false">鍙� 娑�</el-button>
-        <el-button :loading="submitLoading" type="primary" @click="submit()">纭� 瀹�</el-button>
+        <el-button :loading="submitLoading" type="primary" @click="submit()"
+          >纭� 瀹�</el-button
+        >
       </span>
     </el-dialog>
-    <el-dialog :close-on-click-modal="false" :close-on-press-escape="false" :show-close="false"
-      :visible.sync="dataGetDia" title="鏁版嵁閲囬泦" width="80%">
+    <el-dialog
+      :close-on-click-modal="false"
+      :close-on-press-escape="false"
+      :show-close="false"
+      :visible.sync="dataGetDia"
+      title="鏁版嵁閲囬泦"
+      width="80%"
+    >
       <div>
         <table border="1" cellpadding="10" class="thermal-table">
           <tr>
@@ -484,150 +984,296 @@
               <td style="text-align: left">
                 <!-- 娣诲姞瀹瑰櫒 div -->
                 <div class="data-collection-items">
-                <el-select v-if="item.child[0].isShowSelect" v-model="item.child[0].getDataIndex1"
-                  :multiple-limit="item.child[0].maxNum" clearable filterable multiple placeholder="璇烽�夋嫨"
-                  @change="setData(item)">
-                  <el-option v-for="(subItem, subIndex) in item.child[0].arr" :key="index + '-' + subIndex" :filter-method="filterMethod"
-                    :label="subIndex + 1 + '^' + subItem.result" :value="subIndex + '^' + subItem.result">
-                    <span>{{
-                      "搴忓彿锛�" +
-                      (subIndex + 1) +
-                      "锛�" +
-                      "缁撴灉锛�" +
-                      subItem.result +
-                      "锛�" +
-                      "鍘氬害锛�" +
-                      subItem.thickness +
-                      "锛�" +
-                      "鏃堕棿锛�" +
-                      subItem.mergedDateTime
-                    }}</span>
-                  </el-option>
-                </el-select>
-                <el-checkbox-group v-if="!item.child[0].isShowSelect" v-model="item.child[0].getDataIndex1"
-                  :max="item.child[0].maxNum">
-                  <el-checkbox v-for="(n, j) in item.child[0].arr" :key="index + '-' + j + 'aaaaaa'" :label="j + '^' + n"
-                  @change="handleGroupSelect(item.child[0], j, item.child[0].arr.length)" >{{ n }}</el-checkbox>
-                </el-checkbox-group>
-              </div>
-            </td>
-          </tr>
-          <tr v-for="(m, i) in item.child" v-show="i > 0" :key="index + '-' + i + 'bbbbbbbbbbbbbb'">
-            <td>{{ m.name }}</td>
-            <td style="text-align: left">
-              <!-- 娣诲姞瀹瑰櫒 div -->
-              <div class="data-collection-items">
-                <el-select v-if="m.isShowSelect" v-model="m.getDataIndex1" :multiple-limit="m.maxNum" clearable
-                  filterable multiple placeholder="璇烽�夋嫨">
-                  <el-option v-for="(subItem, index1) in m.arr" :key="index + '-' + index1 + 'cccccccc'"
-                    :label="index1 + 1 + '^' + subItem.result" :value="index1 + '^' + subItem.result">
-                    <span>{{
-                      "搴忓彿锛�" +
-                      (index1 + 1) +
-                      "锛�" +
-                      "缁撴灉锛�" +
-                      subItem.result +
-                      "锛�" +
-                      "鍘氬害锛�" +
-                      subItem.thickness +
-                      "锛�" +
-                      "鏃堕棿锛�" +
-                      subItem.mergedDateTime
-                    }}</span>
-                  </el-option>
-                </el-select>
-                <el-checkbox-group v-if="!m.isShowSelect" v-model="m.getDataIndex1" :max="m.maxNum">
-                  <el-checkbox v-for="(n, j) in m.arr" :key="index + '-' + j + 'dddddddd'" :label="j + '^' + n"
-                  @change="handleGroupSelect(m, j, m.arr.length)" >{{ n }}</el-checkbox>
-                </el-checkbox-group>
-              </div>
-            </td>
-          </tr>
-        </template>
-      </table>
-    </div>
-    <span slot="footer" class="dialog-footer">
-      <el-button @click="dataGetDia = false">鍙� 娑�</el-button>
-      <el-button :loading="getDataIndexLoading" type="primary" @click="submitDataGet()">纭� 瀹�</el-button>
-    </span>
-  </el-dialog>
+                  <el-select
+                    v-if="item.child[0].isShowSelect"
+                    v-model="item.child[0].getDataIndex1"
+                    :multiple-limit="item.child[0].maxNum"
+                    clearable
+                    filterable
+                    multiple
+                    placeholder="璇烽�夋嫨"
+                    @change="setData(item)"
+                  >
+                    <el-option
+                      v-for="(subItem, subIndex) in item.child[0].arr"
+                      :key="index + '-' + subIndex"
+                      :filter-method="filterMethod"
+                      :label="subIndex + 1 + '^' + subItem.result"
+                      :value="subIndex + '^' + subItem.result"
+                    >
+                      <span>{{
+                        "搴忓彿锛�" +
+                        (subIndex + 1) +
+                        "锛�" +
+                        "缁撴灉锛�" +
+                        subItem.result +
+                        "锛�" +
+                        "鍘氬害锛�" +
+                        subItem.thickness +
+                        "锛�" +
+                        "鏃堕棿锛�" +
+                        subItem.mergedDateTime
+                      }}</span>
+                    </el-option>
+                  </el-select>
+                  <el-checkbox-group
+                    v-if="!item.child[0].isShowSelect"
+                    v-model="item.child[0].getDataIndex1"
+                    :max="item.child[0].maxNum"
+                  >
+                    <el-checkbox
+                      v-for="(n, j) in item.child[0].arr"
+                      :key="index + '-' + j + 'aaaaaa'"
+                      :label="j + '^' + n"
+                      @change="
+                        handleGroupSelect(
+                          item.child[0],
+                          j,
+                          item.child[0].arr.length
+                        )
+                      "
+                      >{{ n }}</el-checkbox
+                    >
+                  </el-checkbox-group>
+                </div>
+              </td>
+            </tr>
+            <tr
+              v-for="(m, i) in item.child"
+              v-show="i > 0"
+              :key="index + '-' + i + 'bbbbbbbbbbbbbb'"
+            >
+              <td>{{ m.name }}</td>
+              <td style="text-align: left">
+                <!-- 娣诲姞瀹瑰櫒 div -->
+                <div class="data-collection-items">
+                  <el-select
+                    v-if="m.isShowSelect"
+                    v-model="m.getDataIndex1"
+                    :multiple-limit="m.maxNum"
+                    clearable
+                    filterable
+                    multiple
+                    placeholder="璇烽�夋嫨"
+                  >
+                    <el-option
+                      v-for="(subItem, index1) in m.arr"
+                      :key="index + '-' + index1 + 'cccccccc'"
+                      :label="index1 + 1 + '^' + subItem.result"
+                      :value="index1 + '^' + subItem.result"
+                    >
+                      <span>{{
+                        "搴忓彿锛�" +
+                        (index1 + 1) +
+                        "锛�" +
+                        "缁撴灉锛�" +
+                        subItem.result +
+                        "锛�" +
+                        "鍘氬害锛�" +
+                        subItem.thickness +
+                        "锛�" +
+                        "鏃堕棿锛�" +
+                        subItem.mergedDateTime
+                      }}</span>
+                    </el-option>
+                  </el-select>
+                  <el-checkbox-group
+                    v-if="!m.isShowSelect"
+                    v-model="m.getDataIndex1"
+                    :max="m.maxNum"
+                  >
+                    <el-checkbox
+                      v-for="(n, j) in m.arr"
+                      :key="index + '-' + j + 'dddddddd'"
+                      :label="j + '^' + n"
+                      @change="handleGroupSelect(m, j, m.arr.length)"
+                      >{{ n }}</el-checkbox
+                    >
+                  </el-checkbox-group>
+                </div>
+              </td>
+            </tr>
+          </template>
+        </table>
+      </div>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="dataGetDia = false">鍙� 娑�</el-button>
+        <el-button
+          :loading="getDataIndexLoading"
+          type="primary"
+          @click="submitDataGet()"
+          >纭� 瀹�</el-button
+        >
+      </span>
+    </el-dialog>
 
-    <el-dialog :close-on-click-modal="false" :visible.sync="addCheck" title="鎸囧畾鎶ュ憡瀹℃牳浜哄憳" width="400px"
-      @close="closeAddVerifyDia">
-      <div class="body" style="display: flex; padding: 10px; align-items: center">
+    <el-dialog
+      :close-on-click-modal="false"
+      :visible.sync="addCheck"
+      title="鎸囧畾鎶ュ憡瀹℃牳浜哄憳"
+      width="400px"
+      @close="closeAddVerifyDia"
+    >
+      <div
+        class="body"
+        style="display: flex; padding: 10px; align-items: center"
+      >
         <div class="search_label" style="width: 150px">
           <span class="required-span">*</span>瀹℃牳浜猴細
         </div>
         <div class="search_input" style="width: 100%">
-          <el-select v-model="checkUser" clearable filterable placeholder="璇烽�夋嫨" size="small" style="width: 100%">
-            <el-option v-for="(item, i) in personList" :key="i" :label="item.label" :value="item.value">
+          <el-select
+            v-model="checkUser"
+            clearable
+            filterable
+            placeholder="璇烽�夋嫨"
+            size="small"
+            style="width: 100%"
+          >
+            <el-option
+              v-for="(item, i) in personList"
+              :key="i"
+              :label="item.label"
+              :value="item.value"
+            >
             </el-option>
           </el-select>
         </div>
       </div>
       <span slot="footer" class="dialog-footer">
         <el-button @click="closeAddVerifyDia">鍙� 娑�</el-button>
-        <el-button :loading="reviewLoading" type="primary" @click="upInsReview(1)">纭� 瀹�</el-button>
+        <el-button
+          :loading="reviewLoading"
+          type="primary"
+          @click="upInsReview(1)"
+          >纭� 瀹�</el-button
+        >
       </span>
     </el-dialog>
     <!-- 娣诲姞涓嶅悎鏍煎娴嬪脊妗�-->
-    <add-un-pass v-if="addUnPassDialog" ref="addUnPassDialog" :addUnPassDialog="addUnPassDialog"
-      @resetAddUnPass="resetAddUnPass"></add-un-pass>
+    <add-un-pass
+      v-if="addUnPassDialog"
+      ref="addUnPassDialog"
+      :addUnPassDialog="addUnPassDialog"
+      @resetAddUnPass="resetAddUnPass"
+    ></add-un-pass>
     <!-- 涓嶅悎鏍煎鐞嗗脊妗�-->
-    <UnPassDialog v-if="unPassDialog" ref="unPassDialog" :orderId="orderId" :unPassDialog="unPassDialog"
-      @resetForm="resetForm"></UnPassDialog>
+    <UnPassDialog
+      v-if="unPassDialog"
+      ref="unPassDialog"
+      :orderId="orderId"
+      :unPassDialog="unPassDialog"
+      @resetForm="resetForm"
+    ></UnPassDialog>
     <!-- 涓嶅悎鏍煎娴嬪脊妗�-->
-    <InspectionWord v-if="unPassCheck" :inspectorList="inspectorList" :orderId="orderId"
-                    :cableTag="temCableTag" :repetitionTag="repetitionTag"
-      :rawMaterialTag="rawMaterialTag" :sonLaboratory="sonLaboratory" :state="state" :typeSource="typeSource"
-      :unPassCheck="unPassCheck" @closeUnPassCheckDialog="closeUnPassCheckDialog" @refreshView="refreshView" />
+    <InspectionWord
+      v-if="unPassCheck"
+      :inspectorList="inspectorList"
+      :orderId="orderId"
+      :cableTag="temCableTag"
+      :repetitionTag="repetitionTag"
+      :rawMaterialTag="rawMaterialTag"
+      :sonLaboratory="sonLaboratory"
+      :state="state"
+      :typeSource="typeSource"
+      :unPassCheck="unPassCheck"
+      @closeUnPassCheckDialog="closeUnPassCheckDialog"
+      @refreshView="refreshView"
+    />
     <!-- 杩涜揣楠岃瘉寮规-->
-    <purchase-verification v-if="purchaseDialog" ref="purchaseDialog" :orderId="orderId"
-      :purchaseDialog="purchaseDialog" @resetPurchaseDialog="resetPurchaseDialog"></purchase-verification>
+    <purchase-verification
+      v-if="purchaseDialog"
+      ref="purchaseDialog"
+      :orderId="orderId"
+      :purchaseDialog="purchaseDialog"
+      @resetPurchaseDialog="resetPurchaseDialog"
+    ></purchase-verification>
     <!--鏌ョ湅宸ユ椂寮规-->
-    <viewManHourDia ref="viewManHourDia" @submit="openAddVerifyDia"></viewManHourDia>
-<!--    IFS鐗╂枡灞炴�х紪杈戝脊妗�-->
+    <viewManHourDia
+      ref="viewManHourDia"
+      @submit="openAddVerifyDia"
+    ></viewManHourDia>
+    <!--    IFS鐗╂枡灞炴�х紪杈戝脊妗�-->
     <el-dialog
       title="鏇存柊IFS搴撳瓨鐗╂枡鎵规灞炴��"
       :visible.sync="ifsMaterialPropsVisible"
-      width="20%">
-      <el-form style="width:100%" :model="ifsMaterialPropsForm">
+      width="20%"
+    >
+      <el-form style="width: 100%" :model="ifsMaterialPropsForm">
         <el-form-item label="杞藉叿缂栧彿(Attr1):">
-          <el-input placeholder="杞藉叿缂栧彿" size="small" v-model="ifsMaterialPropsForm.drumNo"></el-input>
+          <el-input
+            placeholder="杞藉叿缂栧彿"
+            size="small"
+            v-model="ifsMaterialPropsForm.drumNo"
+          ></el-input>
         </el-form-item>
         <el-form-item label="璧峰绫虫爣(Attr2):">
-          <el-input @blur="validateQuality()" placeholder="璧峰绫虫爣" size="small" v-model="ifsMaterialPropsForm.startMeterMark">
+          <el-input
+            @blur="validateQuality()"
+            placeholder="璧峰绫虫爣"
+            size="small"
+            v-model="ifsMaterialPropsForm.startMeterMark"
+          >
             <span slot="suffix">km</span>
           </el-input>
         </el-form-item>
         <el-form-item label="鎴绫虫爣(Attr3):">
-          <el-input @blur="validateQuality()" placeholder="鎴绫虫爣" size="small" v-model="ifsMaterialPropsForm.endMeterMark">
+          <el-input
+            @blur="validateQuality()"
+            placeholder="鎴绫虫爣"
+            size="small"
+            v-model="ifsMaterialPropsForm.endMeterMark"
+          >
             <span slot="suffix">km</span>
           </el-input>
         </el-form-item>
-<!--        <el-form-item label="鍏ュ簱闀垮害">-->
-<!--          <el-input v-model="ifsMaterialPropsForm.inboundLength"></el-input>-->
-<!--        </el-form-item>-->
+        <!--        <el-form-item label="鍏ュ簱闀垮害">-->
+        <!--          <el-input v-model="ifsMaterialPropsForm.inboundLength"></el-input>-->
+        <!--        </el-form-item>-->
         <el-form-item label="澶栨姢棰滆壊(Attr4):">
           <el-select size="small" v-model="ifsMaterialPropsForm.outerColor">
-            <el-option v-for="(item,index) in outerColorList" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
+            <el-option
+              v-for="(item, index) in outerColorList"
+              :label="item.dictLabel"
+              :value="item.dictValue"
+              :key="index"
+            ></el-option>
           </el-select>
         </el-form-item>
         <el-form-item label="缁濈紭棰滆壊(Attr5):">
-          <el-select size="small" v-model="ifsMaterialPropsForm.insulationColor">
-            <el-option v-for="(item,index) in insulationColorList" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
+          <el-select
+            size="small"
+            v-model="ifsMaterialPropsForm.insulationColor"
+          >
+            <el-option
+              v-for="(item, index) in insulationColorList"
+              :label="item.dictLabel"
+              :value="item.dictValue"
+              :key="index"
+            ></el-option>
           </el-select>
         </el-form-item>
         <el-form-item label="鍗板瓧淇℃伅(Attr8):">
-          <el-select size="small" v-model="ifsMaterialPropsForm.letteringInfo" placeholder="璇烽�夋嫨">
-            <el-option v-for="(item,index) in letteringInfoList" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
+          <el-select
+            size="small"
+            v-model="ifsMaterialPropsForm.letteringInfo"
+            placeholder="璇烽�夋嫨"
+          >
+            <el-option
+              v-for="(item, index) in letteringInfoList"
+              :label="item.dictLabel"
+              :value="item.dictValue"
+              :key="index"
+            ></el-option>
           </el-select>
         </el-form-item>
       </el-form>
       <span slot="footer" class="dialog-footer">
-    <el-button @click="closePartPropDialog()">鍙� 娑�</el-button>
-    <el-button type="primary" @click="saveOrUpdatePartProp()">纭� 瀹�</el-button>
-  </span>
+        <el-button @click="closePartPropDialog()">鍙� 娑�</el-button>
+        <el-button type="primary" @click="saveOrUpdatePartProp()"
+          >纭� 瀹�</el-button
+        >
+      </span>
     </el-dialog>
   </div>
 </template>
@@ -656,17 +1302,20 @@
   downFile,
   getFileList,
   delfile,
-  inspectionOrderDetailsTaskSwitching
+  inspectionOrderDetailsTaskSwitching,
 } from "@/api/business/inspectionTask.js";
-import InspectionWorker from '@/workers/InspectionWorker.worker.js';
-import DataWorker from '@/workers/DataWorker.worker.js';
+import InspectionWorker from "@/workers/InspectionWorker.worker.js";
+import DataWorker from "@/workers/DataWorker.worker.js";
 import html2canvas from "html2canvas";
 import { mapGetters } from "vuex";
 import viewManHourDia from "@/views/business/inspectionTask/components/viewManHourDia.vue";
-import {getOneByIfsId,saveOrUpdateProps} from "@/api/business/ifsPartProps.js";
-import {getDicts} from "@/api/system/dict/data";
+import {
+  getOneByIfsId,
+  saveOrUpdateProps,
+} from "@/api/business/ifsPartProps.js";
+import { getDicts } from "@/api/system/dict/data";
 export default {
-  name: 'Inspection',
+  name: "Inspection",
   components: {
     viewManHourDia,
     PurchaseVerification,
@@ -681,22 +1330,22 @@
       dialogResolve: null,
       dialogReject: null,
       dialogVisible: false,
-      deviceDbTableName: '',
-      outerColorList:[],
-      insulationColorList:[],
+      deviceDbTableName: "",
+      outerColorList: [],
+      insulationColorList: [],
       letteringInfoList: [],
-      ifsMaterialPropsForm:{
-        id:null,
+      ifsMaterialPropsForm: {
+        id: null,
         ifsInventoryId: null,
-        drumNo: '', // 杞藉叿缂栧彿
-        startMeterMark: '', // 璧峰绫虫爣
-        endMeterMark: '', // 鎴绫虫爣
-        insulationColor: '', // 缁濈紭棰滆壊
-        outerColor: '', // 澶栨姢棰滆壊
-        inboundLength: '', // 鍏ュ簱闀垮害
-        letteringInfo: '', // 鍗板瓧淇℃伅
+        drumNo: "", // 杞藉叿缂栧彿
+        startMeterMark: "", // 璧峰绫虫爣
+        endMeterMark: "", // 鎴绫虫爣
+        insulationColor: "", // 缁濈紭棰滆壊
+        outerColor: "", // 澶栨姢棰滆壊
+        inboundLength: "", // 鍏ュ簱闀垮害
+        letteringInfo: "", // 鍗板瓧淇℃伅
       },
-      ifsMaterialPropsVisible:false,
+      ifsMaterialPropsVisible: false,
       sonLaboratory: null,
       orderId: null,
       state: null,
@@ -827,14 +1476,16 @@
       tableData: [],
       column: [
         {
-          label: "绫诲瀷", prop: "type", dataType: "tag",
+          label: "绫诲瀷",
+          prop: "type",
+          dataType: "tag",
           formatData: (params) => {
             if (params == 1) {
-              return '鍥剧墖'
+              return "鍥剧墖";
             } else {
-              return '鏂囦欢'
+              return "鏂囦欢";
             }
-          }
+          },
         },
         { label: "闄勪欢鍚嶇О", prop: "fileName" },
         { label: "涓婁紶浜�", prop: "name" },
@@ -873,28 +1524,32 @@
       // 浠诲姟鍒囨崲鍒楄〃--寮�濮�
       tableData0: [],
       column0: [
-        { label: "濮旀墭缂栧彿", prop: "entrustCode", width: '160px' },
-        { label: "妫�楠屽璞�", prop: "sampleType", width: '140px' },
+        { label: "濮旀墭缂栧彿", prop: "entrustCode", width: "160px" },
+        { label: "妫�楠屽璞�", prop: "sampleType", width: "140px" },
         {
-          label: "绱ф�ョ▼搴�", prop: "type", dataType: "tag",
+          label: "绱ф�ョ▼搴�",
+          prop: "type",
+          dataType: "tag",
           formatData: (params) => {
-            return this.urgentList.find(m => m.value == params).label
+            return this.urgentList.find((m) => m.value == params).label;
           },
           formatType: (params) => {
-            return this.urgentList.find(m => m.value == params).type
-          }
+            return this.urgentList.find((m) => m.value == params).type;
+          },
         },
         {
-          label: "鐘舵��", prop: "insState", dataType: "tag",
+          label: "鐘舵��",
+          prop: "insState",
+          dataType: "tag",
           formatData: (params) => {
-            return this.typeList.find(m => m.value == params).label
+            return this.typeList.find((m) => m.value == params).label;
           },
           formatType: (params) => {
-            return this.typeList.find(m => m.value == params).type
-          }
+            return this.typeList.find((m) => m.value == params).type;
+          },
         },
-        { label: "绾﹀畾鏃堕棿", prop: "appointed", width: '140px' },
-        { label: "涓嬪彂鏃堕棿", prop: "sendTime", width: '140px' },
+        { label: "绾﹀畾鏃堕棿", prop: "appointed", width: "140px" },
+        { label: "涓嬪彂鏃堕棿", prop: "sendTime", width: "140px" },
       ],
       page0: {
         total: 0,
@@ -914,7 +1569,7 @@
     },
   },
   created() {
-    let { sonLaboratory, orderId, state, inspectorList, typeSource,isSplit } =
+    let { sonLaboratory, orderId, state, inspectorList, typeSource, isSplit } =
       this.$route.query;
     this.sonLaboratory = sonLaboratory;
     this.orderId = orderId;
@@ -945,7 +1600,7 @@
   watch: {
     // 鐩戝惉浠诲姟id锛岃幏鍙栦换鍔′俊鎭�
     id(val) {
-      this.refreshView()
+      this.refreshView();
     },
     // 鐩戝惉褰撳墠妯℃澘鍙樺寲
     currentTable(val1, val0) {
@@ -1005,7 +1660,7 @@
     // 鐗规畩妫�楠岄」--鐩戝惉璁惧淇℃伅鏀瑰彉
     equipForm: {
       deep: true,
-      handler(val) { },
+      handler(val) {},
     },
   },
   beforeDestroy() {
@@ -1013,87 +1668,99 @@
     this.stopWorker();
   },
   methods: {
-    validateQuality(){
-      let inboundLength = Number(this.calcInbondLength(this.ifsMaterialPropsForm.startMeterMark,this.ifsMaterialPropsForm.endMeterMark));
+    validateQuality() {
+      let inboundLength = Number(
+        this.calcInbondLength(
+          this.ifsMaterialPropsForm.startMeterMark,
+          this.ifsMaterialPropsForm.endMeterMark
+        )
+      );
       let testQuantity = Number(this.insOrder.testQuantity);
-      if(inboundLength!=null && testQuantity!==inboundLength){
-        this.$message.warning(`鍏ュ簱闀垮害(${inboundLength}km)涓庢楠屾暟閲�(${testQuantity}km)涓嶇锛岃纭锛乣);
+      if (inboundLength != null && testQuantity !== inboundLength) {
+        this.$message.warning(
+          `鍏ュ簱闀垮害(${inboundLength}km)涓庢楠屾暟閲�(${testQuantity}km)涓嶇锛岃纭锛乣
+        );
       }
     },
-    calcInbondLength(startMeterMark,endMeterMark){
+    calcInbondLength(startMeterMark, endMeterMark) {
       let inboundLength = null;
-      if((startMeterMark!=null && startMeterMark!=='') && (endMeterMark!=null&&endMeterMark!=='')){
+      if (
+        startMeterMark != null &&
+        startMeterMark !== "" &&
+        endMeterMark != null &&
+        endMeterMark !== ""
+      ) {
         let minus = this.$Big(endMeterMark).minus(this.$Big(startMeterMark));
-        inboundLength = Math.abs(minus)
+        inboundLength = Math.abs(minus);
       }
       return inboundLength;
     },
-    getLetteringInfoDicts(){
-      getDicts("lettering_info_type").then(res=>{
-        if(res.code==200){
-          this.letteringInfoList = res.data
+    getLetteringInfoDicts() {
+      getDicts("lettering_info_type").then((res) => {
+        if (res.code == 200) {
+          this.letteringInfoList = res.data;
         }
-      })
+      });
     },
-    getInsulationColorDicts(){
-      getDicts("insulation_color_type").then(res=>{
-        if(res.code==200){
-          this.insulationColorList = res.data
+    getInsulationColorDicts() {
+      getDicts("insulation_color_type").then((res) => {
+        if (res.code == 200) {
+          this.insulationColorList = res.data;
         }
-      })
+      });
     },
-    getOuterColorDicts(){
-      getDicts("outer_color_type").then(res=>{
-        if(res.code==200){
-          this.outerColorList = res.data
+    getOuterColorDicts() {
+      getDicts("outer_color_type").then((res) => {
+        if (res.code == 200) {
+          this.outerColorList = res.data;
         }
-      })
+      });
     },
-    closePartPropDialog(){
+    closePartPropDialog() {
       this.ifsMaterialPropsForm = {
-        id:null,
+        id: null,
         ifsInventoryId: null,
-        drumNo: '', // 杞藉叿缂栧彿
-        startMeterMark: '', // 璧峰绫虫爣
-        endMeterMark: '', // 鎴绫虫爣
-        insulationColor: '', // 缁濈紭棰滆壊
-        outerColor: '', // 澶栨姢棰滆壊
-        inboundLength: '', // 鍏ュ簱闀垮害
-        letteringInfo: '', // 鍗板瓧淇℃伅
-      }
+        drumNo: "", // 杞藉叿缂栧彿
+        startMeterMark: "", // 璧峰绫虫爣
+        endMeterMark: "", // 鎴绫虫爣
+        insulationColor: "", // 缁濈紭棰滆壊
+        outerColor: "", // 澶栨姢棰滆壊
+        inboundLength: "", // 鍏ュ簱闀垮害
+        letteringInfo: "", // 鍗板瓧淇℃伅
+      };
       this.ifsMaterialPropsVisible = false;
     },
-    getPartProps(ifsId){
-      getOneByIfsId(ifsId).then((res)=>{
-        if(res.code==200 && res.data){
+    getPartProps(ifsId) {
+      getOneByIfsId(ifsId).then((res) => {
+        if (res.code == 200 && res.data) {
           this.ifsMaterialPropsForm = res.data;
         }
-      })
+      });
     },
-    saveOrUpdatePartProp(){
-      this.ifsMaterialPropsForm.ifsInventoryId = this.insOrder.ifsInventoryId
+    saveOrUpdatePartProp() {
+      this.ifsMaterialPropsForm.ifsInventoryId = this.insOrder.ifsInventoryId;
       saveOrUpdateProps({
         ...this.ifsMaterialPropsForm,
         partNo: this.insOrder.partNo,
         lotBatchNo: this.insOrder.lotBatchNo,
-        contract: this.insOrder.contract
-      }).then((res)=>{
-        if(res.code==200){
+        contract: this.insOrder.contract,
+      }).then((res) => {
+        if (res.code == 200) {
           this.$message.success("淇濆瓨鎴愬姛");
           this.ifsMaterialPropsVisible = false;
-          this.refreshView()
+          this.refreshView();
         }
-      })
+      });
     },
     //鎵撳紑IFS鐗╂枡灞炴�у脊妗�
-    showMaterialPropsDialog(){
-      this.getPartProps(this.insOrder.ifsInventoryId)
-      this.getOuterColorDicts()
-      this.getInsulationColorDicts()
-      this.getLetteringInfoDicts()
-      this.$nextTick(()=>{
+    showMaterialPropsDialog() {
+      this.getPartProps(this.insOrder.ifsInventoryId);
+      this.getOuterColorDicts();
+      this.getInsulationColorDicts();
+      this.getLetteringInfoDicts();
+      this.$nextTick(() => {
         this.ifsMaterialPropsVisible = true;
-      })
+      });
     },
     // 鏂囦欢绠$悊--寮�濮�
     getList() {
@@ -1122,19 +1789,21 @@
         confirmButtonText: "纭畾",
         cancelButtonText: "鍙栨秷",
         type: "warning",
-      }).then(() => {
-        delfile({ id: row.id }).then((res) => {
-          this.$message.success("鍒犻櫎鎴愬姛");
-          this.getList();
-        });
-      }).catch(() => { });
+      })
+        .then(() => {
+          delfile({ id: row.id }).then((res) => {
+            this.$message.success("鍒犻櫎鎴愬姛");
+            this.getList();
+          });
+        })
+        .catch(() => {});
     },
     // 鏂囦欢绠$悊--缁撴潫
     // 澶勭悊鏁寸粍鍕鹃�夐�昏緫鐨勬柟娉�
     handleGroupSelect(childItem, clickedIndex, groupSize = 5) {
-      if(groupSize == 6){
+      if (groupSize == 6) {
         groupSize = 6;
-      }else{
+      } else {
         groupSize = 5;
       }
       // 璁$畻鎵�鍦ㄧ粍鐨勮捣濮嬬储寮�
@@ -1142,15 +1811,23 @@
       // 娓呯┖褰撳墠宸查��
       childItem.getDataIndex1 = [];
       // 閬嶅巻褰撳墠缁勭殑 groupSize 涓厓绱狅紝娣诲姞鍒伴�変腑鍒楄〃
-      for (let i = groupStartIndex; i < groupStartIndex + groupSize && i < childItem.arr.length; i++) {
-        childItem.getDataIndex1.push(i + '^' + childItem.arr[i]);
+      for (
+        let i = groupStartIndex;
+        i < groupStartIndex + groupSize && i < childItem.arr.length;
+        i++
+      ) {
+        childItem.getDataIndex1.push(i + "^" + childItem.arr[i]);
       }
     },
 
     // 浠诲姟鍒囨崲--寮�濮�
     getList0() {
       this.tableLoading0 = true;
-      let param = { userId: this.userId, sonLaboratory: this.sonLaboratory, ...this.page0 };
+      let param = {
+        userId: this.userId,
+        sonLaboratory: this.sonLaboratory,
+        ...this.page0,
+      };
       delete param.total;
       inspectionOrderDetailsTaskSwitching({ ...param })
         .then((res) => {
@@ -1177,12 +1854,12 @@
         laboratory: this.sonLaboratory,
       }).then(async (res) => {
         this.insOrder = res.data.insOrder;
-        if(res.data.insOrder.ifsOrderType==='02wg'){
+        if (res.data.insOrder.ifsOrderType === "02wg") {
           //鏌ヨ闆朵欢灞炴��
-          this.getPartProps(res.data.insOrder.ifsInventoryId)
+          this.getPartProps(res.data.insOrder.ifsInventoryId);
         }
         this.supplierDensity = res.data.supplierDensity;
-        this.getList()
+        this.getList();
         this.urgentList.forEach((m) => {
           if (m.value == this.insOrder.type) {
             this.insOrder.typeName = m.label;
@@ -1333,7 +2010,7 @@
     },
     openDialog() {
       this.dialogVisible = true;
-      this.deviceDbTableName = ''; // 閲嶇疆琛ㄥ崟
+      this.deviceDbTableName = ""; // 閲嶇疆琛ㄥ崟
       // 杩斿洖 Promise锛岀瓑寰呯敤鎴锋搷浣�
       return new Promise((resolve, reject) => {
         this.dialogResolve = resolve;
@@ -1350,7 +2027,7 @@
 
     // 寮规鍙栨秷/鍏抽棴
     handleDialogCancel() {
-      console.log(111)
+      console.log(111);
       this.dialogVisible = false;
       // 璋冪敤 reject锛岀粓姝㈠悗缁唬鐮�
       this.dialogReject();
@@ -1358,56 +2035,58 @@
     // 鏁版嵁閲囬泦
     async getDataAcquisitionDevice() {
       //杩囨护閫変腑鐨勮澶囧垪琛�
-    let deviceList = []
-    for (let item in this.param){
-      let val1 = this.param[item]
-      for(let item2 in val1){
-        if(item2==='equipName'){
-          let equipName = val1[item2]
-          equipName.forEach(item=>{
-            if(item.v.v && Array.isArray(item.v.v)){
-              deviceList.push(...item.v.v)
+      let deviceList = [];
+      for (let item in this.param) {
+        let val1 = this.param[item];
+        for (let item2 in val1) {
+          if (item2 === "equipName") {
+            let equipName = val1[item2];
+            equipName.forEach((item) => {
+              if (item.v.v && Array.isArray(item.v.v)) {
+                deviceList.push(...item.v.v);
+              }
+            });
+          }
+        }
+      }
+      //鏁扮粍鍘婚噸
+      let deviceSetList = [...new Set(deviceList)];
+      try {
+        if (deviceSetList.includes("NS-YL3141") && !this.deviceDbTableName) {
+          await this.openDialog();
+        }
+        let itemIds = [];
+        this.currentSample.insProduct.forEach((item) => {
+          if (item.inspectionItemType === "1") {
+            itemIds.push(item.id);
+          }
+        });
+        const params = {
+          entrustCode: this.insOrder.entrustCode,
+          lotBatchNo: this.insOrder.lotBatchNo,
+          sampleCode: this.currentSample.sampleCode,
+          id: this.currentSample.id,
+          itemIds: itemIds,
+          dbTable: this.deviceDbTableName,
+        };
+        this.dataAcquisitionLoading = true;
+        dataCollection(params)
+          .then((res) => {
+            this.dataAcquisitionLoading = false;
+            if (res.code != 200) {
+              return;
             }
+            this.dataAcquisitionInfoNew = this.HaveJson(res.data);
+            // 瀵规暟閲囧洖鏉ョ殑鍊艰繘琛屽鐞�
+            this.handleDataAcquisition(res.data);
           })
-        }
+          .catch((err) => {
+            this.dataAcquisitionLoading = false;
+          });
+      } catch (error) {
+        console.error("鏁版嵁閲囬泦璁惧鍒楄〃澶勭悊澶辫触", error);
       }
-    }
-    //鏁扮粍鍘婚噸
-    let deviceSetList = [...new Set(deviceList)]
-    try{
-      if(deviceSetList.includes('NS-YL3141') && !this.deviceDbTableName){
-        await this.openDialog();
-      }
-      let itemIds = [];
-      this.currentSample.insProduct.forEach((item) => {
-        if (item.inspectionItemType === "1") {
-          itemIds.push(item.id);
-        }
-      });
-      const params = {
-        entrustCode: this.insOrder.entrustCode,
-        lotBatchNo: this.insOrder.lotBatchNo,
-        sampleCode: this.currentSample.sampleCode,
-        id: this.currentSample.id,
-        itemIds: itemIds,
-        dbTable: this.deviceDbTableName,
-      };
-      this.dataAcquisitionLoading = true;
-      dataCollection(params).then((res) => {
-        this.dataAcquisitionLoading = false;
-        if (res.code != 200) {
-          return;
-        }
-        this.dataAcquisitionInfoNew = this.HaveJson(res.data);
-        // 瀵规暟閲囧洖鏉ョ殑鍊艰繘琛屽鐞�
-        this.handleDataAcquisition(res.data);
-      }).catch(err => {
-        this.dataAcquisitionLoading = false;
-      });
-    }catch (error){
-      console.error('鏁版嵁閲囬泦璁惧鍒楄〃澶勭悊澶辫触',error)
-    }
-  },
+    },
     objectOrder(obj) {
       let newkey = Object.keys(obj).sort();
       let newObj = {};
@@ -1534,10 +2213,10 @@
               } else {
                 str0 = i + "," + j;
               }
-            };
+            }
             let list = this.tableList[0].arr;
             let maxNum = 0;
-            let itemNum = 0;//鍖呭惈妫�楠屽�兼壒娉ㄧ殑涓暟
+            let itemNum = 0; //鍖呭惈妫�楠屽�兼壒娉ㄧ殑涓暟
             list.forEach((item, index) => {
               let num0 = 0;
               let str = "";
@@ -1576,14 +2255,14 @@
                     ) {
                       num++;
                       const matchArray = n.v.ps.value.match(/\d+/g);
-                      if(matchArray){
+                      if (matchArray) {
                         const no = Number(matchArray[0]);
-                        itemNum = itemNum>= no ? itemNum : no;
+                        itemNum = itemNum >= no ? itemNum : no;
                       }
                     }
                   });
                   if (str0 == str) {
-                    maxNum = num===itemNum ? num : itemNum;
+                    maxNum = num === itemNum ? num : itemNum;
                   }
                 }
                 // 缁戝畾璁惧
@@ -1818,9 +2497,9 @@
         id: id,
         type: type,
         laboratory: this.sonLaboratory,
-        cableTag: (cableTag ? cableTag : this.temCableTag),
+        cableTag: cableTag ? cableTag : this.temCableTag,
         rawMaterialTag: this.rawMaterialTag,
-        repetitionTag: this.repetitionTag
+        repetitionTag: this.repetitionTag,
       });
       this.tableLoading = false;
       if (res.data.length > 0) {
@@ -2138,21 +2817,24 @@
                 let inspectionItemClass =
                   this.currentSample.insProduct[i].inspectionItemClass ==
                     null ||
-                    this.currentSample.insProduct[i].inspectionItemClass ==
+                  this.currentSample.insProduct[i].inspectionItemClass ==
                     undefined
                     ? ""
                     : this.currentSample.insProduct[i].inspectionItemClass;
-                inspectionItemClass = inspectionItemClass.replace(/[\n\r\s]*/g, "");
+                inspectionItemClass = inspectionItemClass.replace(
+                  /[\n\r\s]*/g,
+                  ""
+                );
                 let inspectionItem =
                   this.currentSample.insProduct[i].inspectionItem == null ||
-                    this.currentSample.insProduct[i].inspectionItem == undefined
+                  this.currentSample.insProduct[i].inspectionItem == undefined
                     ? ""
                     : this.currentSample.insProduct[i].inspectionItem;
                 inspectionItem = inspectionItem.replace(/[\n\r\s]*/g, "");
                 let inspectionItemSubclass =
                   this.currentSample.insProduct[i].inspectionItemSubclass ==
                     null ||
-                    this.currentSample.insProduct[i].inspectionItemSubclass ==
+                  this.currentSample.insProduct[i].inspectionItemSubclass ==
                     undefined
                     ? ""
                     : this.currentSample.insProduct[i].inspectionItemSubclass;
@@ -2167,17 +2849,17 @@
                     (this.currentSample.insProduct[i].templateId ===
                       a.templateId &&
                       inspectionItemClass +
-                      inspectionItem +
-                      inspectionItemSubclass +
-                      unit ===
-                      str2) ||
+                        inspectionItem +
+                        inspectionItemSubclass +
+                        unit ===
+                        str2) ||
                     (this.currentSample.insProduct[i].templateId ===
                       a.templateId &&
                       !unit2.includes("/") &&
                       inspectionItemClass +
-                      inspectionItem +
-                      inspectionItemSubclass ===
-                      str)
+                        inspectionItem +
+                        inspectionItemSubclass ===
+                        str)
                   ) {
                     ids.push({
                       r: b.r,
@@ -2188,16 +2870,17 @@
                   }
                 } else {
                   // 濡傛灉鐩哥瓑,閭d箞璇存槑鎵惧埌浜�,骞朵笖鎶奿d瀛樿捣鏉�,鍚庣画妫�楠岄」涔熶細鍦ㄩ〉闈腑鏄剧ず鍑烘潵
-                  let aa = inspectionItemClass +
+                  let aa =
+                    inspectionItemClass +
                     inspectionItem +
                     inspectionItemSubclass;
                   if (
                     this.currentSample.insProduct[i].templateId ===
-                    a.templateId &&
+                      a.templateId &&
                     inspectionItemClass +
-                    inspectionItem +
-                    inspectionItemSubclass ===
-                    str
+                      inspectionItem +
+                      inspectionItemSubclass ===
+                      str
                   ) {
                     ids.push({
                       r: b.r,
@@ -2340,9 +3023,10 @@
               this.param[b.i].insResult = b;
               conclusionList.forEach((n, i) => {
                 if (n.r == b.r && n.c == b.c) {
-                  b.v.f = `(${this.comparisonList.find((j) => j.value == finalList[i].c)
-                    .label
-                    }${finalList[i].r + 1})`;
+                  b.v.f = `(${
+                    this.comparisonList.find((j) => j.value == finalList[i].c)
+                      .label
+                  }${finalList[i].r + 1})`;
                 }
               });
             }
@@ -2354,7 +3038,7 @@
           }
         });
         // 浠ヤ笅鏄牱寮忓鐞嗛�昏緫
-        set = [...set]
+        set = [...set];
         // set = set.sort();
         set.forEach((b) => {
           let arr = [];
@@ -2398,7 +3082,7 @@
               );
             }
           }
-        } catch (e) { }
+        } catch (e) {}
         try {
           // 妫�楠屽�艰祴鍊�
           let insValue = JSON.parse(a.insProductResult.insValue);
@@ -2423,7 +3107,7 @@
               // this.param[a.id].insValue[i].u = insValue[i].u
             }
           }
-        } catch (e) { }
+        } catch (e) {}
         try {
           // 璁惧缂栧彿璧嬪��
           let equipValue = JSON.parse(a.insProductResult.equipValue);
@@ -2431,7 +3115,7 @@
             // 鏅�氳澶囪祴鍊�
             this.param[a.id].equipValue[i].v.v = equipValue[i].v;
           }
-        } catch (e) { }
+        } catch (e) {}
         try {
           // 璁惧鍚嶇О璧嬪��
           let equipName = JSON.parse(a.insProductResult.equipName);
@@ -2462,7 +3146,7 @@
           );
           // 缁撹璧嬪��
           this.param[a.id].insResult.v.v = a.insResult;
-        } catch (e) { }
+        } catch (e) {}
       });
       // 瀵筫xcel鍑芥暟杩涜澶勭悊
       this.handleExcelMethod();
@@ -2677,13 +3361,13 @@
       let str = v.v
         ? v.v
         : v.v === 0
-          ? v.v
-          : v.ct && v.ct.s
-            ? v.ct.s.length > 0 &&
-            v.ct.s[0].v
-              .replace(new RegExp("\n", "g"), "<br/>")
-              .replace(new RegExp("@", "g"), "<br/>")
-            : "";
+        ? v.v
+        : v.ct && v.ct.s
+        ? v.ct.s.length > 0 &&
+          v.ct.s[0].v
+            .replace(new RegExp("\n", "g"), "<br/>")
+            .replace(new RegExp("@", "g"), "<br/>")
+        : "";
       // 瀵规暟鎹繚鐣欏皬鏁扮偣杩涜澶勭悊
       if (v.ct && v.ct.fa && v.ct.fa.includes(".") && str) {
         let num = 0;
@@ -2764,15 +3448,16 @@
     getEquipOptions(e, id) {
       if (e) {
         this.equipOptions = [];
-        search({ status: 0 }).then((res) => {
-          if (res.code === 200 && res.data) {
-            this.equipOptions = res.data.map((m) => {
-              m.value = m.managementNumber;
-              m.label = m.deviceName;
-              return m;
-            });
-          }
-        })
+        search({ status: 0 })
+          .then((res) => {
+            if (res.code === 200 && res.data) {
+              this.equipOptions = res.data.map((m) => {
+                m.value = m.managementNumber;
+                m.label = m.deviceName;
+                return m;
+              });
+            }
+          })
           .catch((error) => {
             console.error(error);
           });
@@ -2803,14 +3488,15 @@
           laboratory: this.sonLaboratory,
           tell: null,
           userId: this.checkUser,
-        }).then((res) => {
-          if (res.code === 200) {
-            this.$message.success("鎿嶄綔鎴愬姛");
-            this.goback();
-            this.addCheck = false;
-          }
-          this.reviewLoading = false;
         })
+          .then((res) => {
+            if (res.code === 200) {
+              this.$message.success("鎿嶄綔鎴愬姛");
+              this.goback();
+              this.addCheck = false;
+            }
+            this.reviewLoading = false;
+          })
           .catch((error) => {
             console.error(error);
             this.reviewLoading = false;
@@ -2828,13 +3514,14 @@
           type: 0,
           laboratory: this.sonLaboratory,
           tell: this.noReason,
-        }).then((res) => {
-          if (res.code === 200) {
-            this.$message.success("鎿嶄綔鎴愬姛");
-            this.goback();
-          }
-          this.reviewLoading = false;
         })
+          .then((res) => {
+            if (res.code === 200) {
+              this.$message.success("鎿嶄綔鎴愬姛");
+              this.goback();
+            }
+            this.reviewLoading = false;
+          })
           .catch((error) => {
             console.error(error);
             this.reviewLoading = false;
@@ -2850,21 +3537,22 @@
     openAddVerifyDia() {
       this.addVerifyDia = true;
     },
-    confirmSubmit(registerInsResults){
+    confirmSubmit(registerInsResults) {
       submitPlan({
         orderId: this.orderId,
         laboratory: this.sonLaboratory,
         verifyUser: this.verifyUser,
         entrustCode: this.insOrder.entrustCode,
-        registerInsResults: registerInsResults
-      }).then((res) => {
-        if (res.code === 200) {
-          this.$message.success("鎿嶄綔鎴愬姛");
-          this.goback();
-          this.submitLoading = false;
-          this.addVerifyDia = false;
-        }
+        registerInsResults: registerInsResults,
       })
+        .then((res) => {
+          if (res.code === 200) {
+            this.$message.success("鎿嶄綔鎴愬姛");
+            this.goback();
+            this.submitLoading = false;
+            this.addVerifyDia = false;
+          }
+        })
         .catch((error) => {
           console.error(error);
           this.submitLoading = false;
@@ -2875,15 +3563,18 @@
         this.$message.error("璇锋寚瀹氬鏍镐汉鍛�");
         return;
       }
-      if (!this.otherForm.humidity && this.insOrder.ifsOrderType!=='02wg') {
+      if (!this.otherForm.humidity && this.insOrder.ifsOrderType !== "02wg") {
         this.$message.error("璇疯緭鍏ユ箍搴�");
         return;
       }
-      if (!this.otherForm.temperature && this.insOrder.ifsOrderType!=='02wg') {
+      if (
+        !this.otherForm.temperature &&
+        this.insOrder.ifsOrderType !== "02wg"
+      ) {
         this.$message.error("璇疯緭鍏ユ俯搴�");
         return;
       }
-      if (!this.insOrder.lotPartId && this.insOrder.ifsOrderType==='02wg') {
+      if (!this.insOrder.lotPartId && this.insOrder.ifsOrderType === "02wg") {
         this.$message.error("璇峰~鍐橧FS搴撳瓨鐗╂枡鎵规灞炴��");
         return;
       }
@@ -2891,67 +3582,75 @@
       checkSubmitPlan({
         orderId: this.orderId,
         laboratory: this.sonLaboratory,
-      }).then((res) => {
-        if (res.code === 200) {
-          if (!res.data || res.data.errorMsg.length == 0) {
-            this.submitLoading = true;
-            //妫�楠岀被鍨嬩负鍘熸潗鏂�
-            if(this.typeSource==1 && res.data.unInsOrderCount==0 && this.isSplit==1){
-              const htmlStr = "鏄惁鐧昏IFS閲囪喘妫�楠岀粨鏋滃苟绉诲簱锛熻鎿嶄綔浼氱櫥璁�<span style='color:#ff4949'>鍚屼竴闆朵欢鍚屼竴璁㈠崟鐨勬墍鏈夋媶鍒嗘壒娆�</span>锛岃璋ㄦ厧閫夋嫨銆�"
-              this.$confirm(htmlStr, '鎻愮ず', {
-                confirmButtonText: '鏄�',
-                cancelButtonText: '鍚�',
-                type: 'warning',
-                dangerouslyUseHTMLString: true
-              }).then(() => {
-                this.confirmSubmit(true)
-              }).catch(() => {
-                this.confirmSubmit(false)
-              });
-            }else{
-              this.confirmSubmit(true)
-            }
-          } else {
-            let newData = [];
-            const h = this.$createElement;
-            for (let i in res.data.errorMsg) {
-              const lastChar = res.data.errorMsg[i].slice(-1);
-              if (lastChar == "-") {
-                res.data.errorMsg[i] = res.data.errorMsg[i].slice(0, -1);
+      })
+        .then((res) => {
+          if (res.code === 200) {
+            if (!res.data || res.data.errorMsg.length == 0) {
+              this.submitLoading = true;
+              //妫�楠岀被鍨嬩负鍘熸潗鏂�
+              if (
+                this.typeSource == 1 &&
+                res.data.unInsOrderCount == 0 &&
+                this.isSplit == 1
+              ) {
+                const htmlStr =
+                  "鏄惁鐧昏IFS閲囪喘妫�楠岀粨鏋滃苟绉诲簱锛熻鎿嶄綔浼氱櫥璁�<span style='color:#ff4949'>鍚屼竴闆朵欢鍚屼竴璁㈠崟鐨勬墍鏈夋媶鍒嗘壒娆�</span>锛岃璋ㄦ厧閫夋嫨銆�";
+                this.$confirm(htmlStr, "鎻愮ず", {
+                  confirmButtonText: "鏄�",
+                  cancelButtonText: "鍚�",
+                  type: "warning",
+                  dangerouslyUseHTMLString: true,
+                })
+                  .then(() => {
+                    this.confirmSubmit(true);
+                  })
+                  .catch(() => {
+                    this.confirmSubmit(false);
+                  });
+              } else {
+                this.confirmSubmit(true);
+              }
+            } else {
+              let newData = [];
+              const h = this.$createElement;
+              for (let i in res.data.errorMsg) {
+                const lastChar = res.data.errorMsg[i].slice(-1);
+                if (lastChar == "-") {
+                  res.data.errorMsg[i] = res.data.errorMsg[i].slice(0, -1);
+                }
+                newData.push(
+                  h(
+                    "p",
+                    { style: "font-size: 14px;color: red;" },
+                    Number(i) + 1 + "銆�" + res.data.errorMsg[i]
+                  )
+                );
               }
               newData.push(
                 h(
                   "p",
-                  { style: "font-size: 14px;color: red;" },
-                  Number(i) + 1 + "銆�" + res.data.errorMsg[i]
+                  {
+                    style:
+                      "font-size: 16px;color:#000;margin-top:12px;overflow-y: auto;max-height:80vh",
+                  },
+                  "浠ヤ笂椤圭洰涓嶅悎鏍硷紝纭畾鎻愪氦锛�"
                 )
               );
-            }
-            newData.push(
-              h(
-                "p",
-                {
-                  style:
-                    "font-size: 16px;color:#000;margin-top:12px;overflow-y: auto;max-height:80vh",
-                },
-                "浠ヤ笂椤圭洰涓嶅悎鏍硷紝纭畾鎻愪氦锛�"
-              )
-            );
-            this.$confirm("鎻愮ず", {
-              title: "鎻愮ず",
-              message: h("div", null, newData),
-              confirmButtonText: "纭畾",
-              cancelButtonText: "鍙栨秷",
-              type: "",
-            })
-              .then(() => {
-                this.submitLoading = true;
-                this.confirmSubmit(false)
+              this.$confirm("鎻愮ず", {
+                title: "鎻愮ず",
+                message: h("div", null, newData),
+                confirmButtonText: "纭畾",
+                cancelButtonText: "鍙栨秷",
+                type: "",
               })
-              .catch(() => { });
+                .then(() => {
+                  this.submitLoading = true;
+                  this.confirmSubmit(false);
+                })
+                .catch(() => {});
+            }
           }
-        }
-      })
+        })
         .catch((error) => {
           console.error(error);
           this.submitLoading = false;
@@ -2968,13 +3667,13 @@
           } else {
             param = this.param;
           }
-          let isNoTestValue = ''
+          let isNoTestValue = "";
           for (let key in param) {
             if (param[key]) {
               if (param[key].insValue?.length === 0) {
-                isNoTestValue = 1
+                isNoTestValue = 1;
               } else {
-                isNoTestValue = ''
+                isNoTestValue = "";
               }
             }
           }
@@ -2984,7 +3683,7 @@
             sampleId: this.currentSample.id,
             orderId: this.orderId,
             sonLaboratory: this.sonLaboratory,
-            isNoTestValue: isNoTestValue
+            isNoTestValue: isNoTestValue,
           }).then((res) => {
             this.$message.success("宸蹭繚瀛�");
           });
@@ -3155,10 +3854,11 @@
       this.$refs.upload.clearFiles();
     },
     handleDown(row) {
-      downFile({ id: row.id }).then((res) => {
-        this.$download.saveAs(res.data.fileUrl, row.fileName)
-      })
-        .catch((error) => { });
+      downFile({ id: row.id })
+        .then((res) => {
+          this.$download.saveAs(res.data.fileUrl, row.fileName);
+        })
+        .catch((error) => {});
     },
     /**
      * 灏嗘暟鍊紇淇濈暀ct.fa涓�'##'鍚庣殑鎸囧畾灏忔暟浣嶆暟锛屽苟杩斿洖鏍煎紡鍖栧悗鐨勫瓧绗︿覆銆�
@@ -3181,8 +3881,8 @@
       }
     },
     goback() {
-      this.$router.go(-1)
-    }
+      this.$router.go(-1);
+    },
   },
 };
 </script>
@@ -3339,7 +4039,7 @@
   height: 100%;
 }
 
-.table_input>>>.el-input__inner {
+.table_input >>> .el-input__inner {
   border-color: rgba(0, 0, 0, 0.5) !important;
 }
 
@@ -3373,19 +4073,19 @@
   opacity: 0.8;
 }
 
->>>input::-webkit-inner-spin-button {
+>>> input::-webkit-inner-spin-button {
   -webkit-appearance: none !important;
   /* 闅愯棌寰皟鎸夐挳 */
   margin: 0 !important;
   /* 绉婚櫎寰皟鎸夐挳鐨勮竟璺� */
 }
 
->>>input[type="number"] {
+>>> input[type="number"] {
   -moz-appearance: textfield !important;
   /* 閽堝 Firefox */
 }
 
->>>.el-form-item__content {
+>>> .el-form-item__content {
   display: inline-flex;
   align-items: center;
 }
@@ -3458,14 +4158,13 @@
   /* 璁剧疆鏈�澶у搴� */
 }
 
-
 .data-collection-items {
   display: flex;
   flex-wrap: wrap;
 }
 .data-collection-items .el-select,
 .data-collection-items .el-checkbox {
-  flex-basis: 20% ;
+  flex-basis: 20%;
   box-sizing: border-box;
   padding: 5px 2%;
 }
diff --git a/src/views/performance/class/index.vue b/src/views/performance/class/index.vue
index c48d607..df08fa7 100644
--- a/src/views/performance/class/index.vue
+++ b/src/views/performance/class/index.vue
@@ -4,131 +4,311 @@
       <div class="search_thing">
         <div class="search_label">閫夋嫨鏃堕棿锛�</div>
         <div class="search_input">
-          <el-date-picker v-model="query.year" type="year" size="small" format="yyyy" placeholder="閫夋嫨骞�"
-            @change="refreshTable()" style="width: 140px" :clearable="false">
+          <el-date-picker
+            v-model="query.year"
+            type="year"
+            size="small"
+            format="yyyy"
+            placeholder="閫夋嫨骞�"
+            @change="refreshTable()"
+            style="width: 140px"
+            :clearable="false"
+          >
           </el-date-picker>
-          <el-select v-model="query.month" clearable placeholder="閫夋嫨鏈�" style="width: 140px; margin-left: 16px"
-            size="small" @change="refreshTable()">
-            <el-option v-for="item in monthOptions" :key="item.value" :label="item.label" :value="item.value">
+          <el-select
+            v-model="query.month"
+            clearable
+            placeholder="閫夋嫨鏈�"
+            style="width: 140px; margin-left: 16px"
+            size="small"
+            @change="refreshTable()"
+          >
+            <el-option
+              v-for="item in monthOptions"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+            >
             </el-option>
           </el-select>
-          <el-input v-model="query.userName" placeholder="璇疯緭鍏ヤ汉鍛樺悕绉�" size="small" style="width: 140px; margin: 0 16px"
-            clearable @keyup.enter.native="refreshTable()"></el-input>
-          <el-select v-model="query.laboratory" placeholder="璇烽�夋嫨瀹為獙瀹�" style="width: 140px" size="small" clearable
-            @change="refreshTable()">
-            <el-option v-for="item in laboratory" :key="item.value" :label="item.label" :value="item.value">
+          <el-input
+            v-model="query.userName"
+            placeholder="璇疯緭鍏ヤ汉鍛樺悕绉�"
+            size="small"
+            style="width: 140px; margin: 0 16px"
+            clearable
+            @keyup.enter.native="refreshTable()"
+          ></el-input>
+          <el-select
+            v-model="query.laboratory"
+            placeholder="璇烽�夋嫨瀹為獙瀹�"
+            style="width: 140px"
+            size="small"
+            clearable
+            @change="refreshTable()"
+          >
+            <el-option
+              v-for="item in laboratory"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+            >
             </el-option>
           </el-select>
         </div>
       </div>
       <div class="search_thing" style="padding-left: 30px">
-        <el-button size="mini" type="primary" @click="refreshTable()">鏌� 璇�</el-button>
+        <el-button size="mini" type="primary" @click="refreshTable()"
+          >鏌� 璇�</el-button
+        >
         <el-button size="mini" @click="refresh()">閲嶇疆</el-button>
       </div>
       <div class="search_thing btns" style="padding-left: 30px">
-        <el-button size="small" type="primary" v-if="checkPermi(['performance:class:time'])"
-          @click="configTime">鏃堕棿閰嶇疆</el-button>
-        <el-button size="small" type="primary" v-if="checkPermi(['performance:class:down'])" @click="handleDown"
-          :loading="downLoading">瀵� 鍑�</el-button>
-        <el-button size="small" type="primary" @click="schedulingVisible = true"
-          v-if="checkPermi(['performance:class:add'])">鎺� 鐝�</el-button>
+        <el-button
+          size="small"
+          type="primary"
+          v-if="checkPermi(['performance:class:time'])"
+          @click="configTime"
+          >鏃堕棿閰嶇疆</el-button
+        >
+        <el-button
+          size="small"
+          type="primary"
+          v-if="checkPermi(['performance:class:down'])"
+          @click="handleDown"
+          :loading="downLoading"
+          >瀵� 鍑�</el-button
+        >
+        <el-button
+          size="small"
+          type="primary"
+          @click="schedulingVisible = true"
+          v-if="checkPermi(['performance:class:add'])"
+          >鎺� 鐝�</el-button
+        >
       </div>
     </div>
     <div class="center" v-loading="pageLoading">
       <div class="clearfix" style="width: 100%" v-show="query.month">
         <div class="fixed-left">
-          <div class="content-title" style="padding-left: 16px; box-sizing: border-box;position: fixed;z-index: 1;background-color: #fff;width:220px">
+          <div
+            class="content-title"
+            style="
+              padding-left: 16px;
+              box-sizing: border-box;
+              position: fixed;
+              z-index: 1;
+              background-color: #fff;
+              width: 220px;
+            "
+          >
             浜哄憳鍚嶇О
-            <span style="color:#ff4949">(浜哄憳鏁伴噺:{{list.length}})</span>
+            <span style="color: #ff4949">(浜哄憳鏁伴噺:{{ list.length }})</span>
           </div>
           <div class="content-user" v-for="(item, index) in list">
             <div class="user-pic">
               {{ item.userName ? item.userName.charAt(0) : "" }}
             </div>
             <div class="user-info">
-              <p style="
+              <p
+                style="
                   font-size: 14px;
                   color: #3a7bfa;
                   line-height: 24px;
                   margin: 0;
-                ">
+                "
+              >
                 {{ item.userName }}
               </p>
-              <p style="color: #999999;font-size: 12px;transform: scale(0.8) translateX(-20px);white-space: nowrap;width: 150px;margin: 0;" v-text="item.monthlyAttendanceStr">
-              </p>
+              <p
+                style="
+                  color: #999999;
+                  font-size: 12px;
+                  transform: scale(0.8) translateX(-20px);
+                  white-space: nowrap;
+                  width: 150px;
+                  margin: 0;
+                "
+                v-text="item.monthlyAttendanceStr"
+              ></p>
               <p style="margin-top: 4px; margin: 0">
-                <span style="
+                <span
+                  style="
                     color: #999999;
                     font-size: 12px;
                     display: inline-block;
                     transform: scale(0.8) translateX(-10px);
-                  ">鍚堣鍑哄嫟: </span><span style="font-size: 16px; color: #ff4902">{{item.monthlyAttendance.totalCount}}澶�</span>
+                  "
+                  >鍚堣鍑哄嫟: </span
+                ><span style="font-size: 16px; color: #ff4902"
+                  >{{ item.monthlyAttendance.totalCount }}澶�</span
+                >
               </p>
             </div>
           </div>
         </div>
         <div class="scroll-right">
           <div class="content">
-            <div class="content-title content-title-right" style="border-bottom: 0;position: fixed;z-index: 1;background-color: #fff;">
-              <div class="content-title-item" v-for="(item, index) in weeks" :key="'b' + index">
-                <span class="month" style="position: absolute; top: 0px" v-if="item.week == '鍛ㄦ棩'">{{ item.weekNum
-                  }}鍛�</span>
+            <div
+              class="content-title content-title-right"
+              style="
+                border-bottom: 0;
+                position: fixed;
+                z-index: 1;
+                background-color: #fff;
+              "
+            >
+              <div
+                class="content-title-item"
+                v-for="(item, index) in weeks"
+                :key="'b' + index"
+              >
+                <span
+                  class="month"
+                  style="position: absolute; top: 0px"
+                  v-if="item.week == '鍛ㄦ棩'"
+                  >{{ item.weekNum }}鍛�</span
+                >
                 <p style="height: 26px; position: absolute; bottom: 12px">
                   <span class="day">{{ item.day }}</span>
                   <span class="week">{{ item.week.charAt(1) }}</span>
                 </p>
               </div>
             </div>
-            <div class="content-body" v-for="(item, index) in list" :key="'c' + index">
-              <div class="content-body-item" v-for="(m, i) in item.list" :key="'d' + i"
-                :class="{ hoverType: currentUserIndex == index }">
-                <el-dropdown trigger="click" placement="bottom" @command="(e) => handleCommand(e, m)"
+            <div
+              class="content-body"
+              v-for="(item, index) in list"
+              :key="'c' + index"
+            >
+              <div
+                class="content-body-item"
+                v-for="(m, i) in item.list"
+                :key="'d' + i"
+              >
+                <el-dropdown
+                  v-if="m"
+                  trigger="click"
+                  placement="bottom"
+                  @command="(e) => handleCommand(e, m)"
                   :disabled="!checkPermi(['performance:class:edit'])"
-                  style="width: 100%; height: 100%; cursor: pointer">
-                  <el-tooltip :disabled="!m.annotationText" :content="m.annotationText">
-                    <el-tag @contextmenu.prevent.native="handleContextMenu(m,$event)" class="work-box" :type="getDictTypeByShift(m.shift)">{{ getShiftByDic(m.shift) }}</el-tag>
+                  style="width: 100%; height: 100%; cursor: pointer"
+                >
+                  <el-tooltip
+                    :disabled="m && !m.annotationText"
+                    :content="m.annotationText"
+                  >
+                    <el-tag
+                      @contextmenu.prevent.native="handleContextMenu(m, $event)"
+                      class="work-box"
+                      :type="getDictTypeByShift(m.shift)"
+                      >{{ getShiftByDic(m.shift) }}</el-tag
+                    >
                   </el-tooltip>
-                  <i v-if="m.checkinResult==='success'" class="el-icon-success" style="position: relative;top:-20px;color:#67c23a;"></i>
-                  <i v-else-if="m.checkinResult==='fail'" class="el-icon-warning" style="position: relative;top:-20px;color:#f56c6c;"></i>
-                  <svg v-if="m.annotationText" style="position: relative;top:-62px;left:31px;" t="1772437700487" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6193" width="12" height="12"><path d="M751.228537 117.332567c-1.023063 7.672974-1.470653 15.601715-1.278829 23.466514l1.278829 41.434062-32.418317 25.768406L473.466862 402.639333l-34.656268 27.494825-42.137418-13.747412a332.495559 332.495559 0 0 0-270.280524 28.965478l193.742604 194.637785 49.107037 49.362802 14.51471 14.642593 193.99837 194.829609a331.21673 331.21673 0 0 0 29.732776-271.559353l-13.747413-42.137418 27.494825-34.656268 194.509902-245.535182 25.768406-32.354375 41.434062 1.278829 4.220136 0.127883c6.522028 0 13.044057-0.44759 19.438202-1.406712l-155.377732-155.24985zM734.539817 0c9.719101 0 19.566085 3.644663 27.111177 11.189754l251.034146 250.650499a38.236989 38.236989 0 0 1-5.946555 59.081903 219.255244 219.255244 0 0 1-119.570518 35.359623c-2.301892 0-4.539843 0-6.841736-0.127882L685.752488 601.689078a413.253615 413.253615 0 0 1-71.742311 388.764038 39.451877 39.451877 0 0 1-58.378547 2.941307l-235.752139-236.775202L64.497325 1012.193211a37.277867 37.277867 0 1 1-52.623816-52.7517l255.510048-255.57399L31.631418 467.092319a39.451877 39.451877 0 0 1 3.197072-58.378548 411.399313 411.399313 0 0 1 258.771063-91.244454c43.480188 0 86.832494 6.905677 128.586263 20.461265l245.407299-194.573843A218.871596 218.871596 0 0 1 702.56909 17.264192a37.981223 37.981223 0 0 1 31.970727-17.264192z" fill="#f56c6c" p-id="6194"></path></svg>
+                  <i
+                    v-if="m.checkinResult === 'success'"
+                    class="el-icon-success"
+                    style="position: relative; top: -20px; color: #67c23a"
+                  ></i>
+                  <i
+                    v-else-if="m.checkinResult === 'fail'"
+                    class="el-icon-warning"
+                    style="position: relative; top: -20px; color: #f56c6c"
+                  ></i>
+                  <svg
+                    v-if="m.annotationText"
+                    style="position: relative; top: -62px; left: 31px"
+                    t="1772437700487"
+                    class="icon"
+                    viewBox="0 0 1024 1024"
+                    version="1.1"
+                    xmlns="http://www.w3.org/2000/svg"
+                    p-id="6193"
+                    width="12"
+                    height="12"
+                  >
+                    <path
+                      d="M751.228537 117.332567c-1.023063 7.672974-1.470653 15.601715-1.278829 23.466514l1.278829 41.434062-32.418317 25.768406L473.466862 402.639333l-34.656268 27.494825-42.137418-13.747412a332.495559 332.495559 0 0 0-270.280524 28.965478l193.742604 194.637785 49.107037 49.362802 14.51471 14.642593 193.99837 194.829609a331.21673 331.21673 0 0 0 29.732776-271.559353l-13.747413-42.137418 27.494825-34.656268 194.509902-245.535182 25.768406-32.354375 41.434062 1.278829 4.220136 0.127883c6.522028 0 13.044057-0.44759 19.438202-1.406712l-155.377732-155.24985zM734.539817 0c9.719101 0 19.566085 3.644663 27.111177 11.189754l251.034146 250.650499a38.236989 38.236989 0 0 1-5.946555 59.081903 219.255244 219.255244 0 0 1-119.570518 35.359623c-2.301892 0-4.539843 0-6.841736-0.127882L685.752488 601.689078a413.253615 413.253615 0 0 1-71.742311 388.764038 39.451877 39.451877 0 0 1-58.378547 2.941307l-235.752139-236.775202L64.497325 1012.193211a37.277867 37.277867 0 1 1-52.623816-52.7517l255.510048-255.57399L31.631418 467.092319a39.451877 39.451877 0 0 1 3.197072-58.378548 411.399313 411.399313 0 0 1 258.771063-91.244454c43.480188 0 86.832494 6.905677 128.586263 20.461265l245.407299-194.573843A218.871596 218.871596 0 0 1 702.56909 17.264192a37.981223 37.981223 0 0 1 31.970727-17.264192z"
+                      fill="#f56c6c"
+                      p-id="6194"
+                    ></path>
+                  </svg>
                   <el-dropdown-menu slot="dropdown">
-                    <el-dropdown-item v-for="(n, j) in classType" :key="'h' + j" :command="n.dictValue">{{ n.dictLabel
-                      }}</el-dropdown-item>
+                    <el-dropdown-item
+                      v-for="(n, j) in classType"
+                      :key="'h' + j"
+                      :command="n.dictValue"
+                      >{{ n.dictLabel }}</el-dropdown-item
+                    >
                   </el-dropdown-menu>
                 </el-dropdown>
+                <div></div>
               </div>
             </div>
           </div>
         </div>
       </div>
-      <div class="clearfix year-table" style="width: 100%" v-show="!query.month">
+      <div
+        class="clearfix year-table"
+        style="width: 100%"
+        v-show="!query.month"
+      >
         <div class="fixed-left">
-          <div class="content-title" style="padding-left: 16px; box-sizing: border-box;position: fixed;z-index: 1;background-color: #fff;width:220px">
+          <div
+            class="content-title"
+            style="
+              padding-left: 16px;
+              box-sizing: border-box;
+              position: fixed;
+              z-index: 1;
+              background-color: #fff;
+              width: 220px;
+            "
+          >
             浜哄憳鍚嶇О
-            <span style="color:#ff4949">(浜哄憳鏁伴噺:{{yearList.length}})</span>
+            <span style="color: #ff4949">(浜哄憳鏁伴噺:{{ yearList.length }})</span>
           </div>
-          <div class="content-user" v-for="(item, index) in yearList"
-            :key="'e' + index">
+          <div
+            class="content-user"
+            v-for="(item, index) in yearList"
+            :key="'e' + index"
+          >
             <div class="user-pic">
               {{ item.userName ? item.userName.charAt(0) : "" }}
             </div>
             <div class="user-info">
-              <p style="
+              <p
+                style="
                   font-size: 14px;
                   color: #3a7bfa;
                   line-height: 24px;
                   margin: 0;
-                ">
+                "
+              >
                 {{ item.userName }}
               </p>
-              <p style="color: #999999;font-size: 12px;transform: scale(0.8) translateX(-20px);white-space: nowrap;width: 150px;margin: 0;" v-text="item.sidebarAnnualAttendanceStr"></p>
+              <p
+                style="
+                  color: #999999;
+                  font-size: 12px;
+                  transform: scale(0.8) translateX(-20px);
+                  white-space: nowrap;
+                  width: 150px;
+                  margin: 0;
+                "
+                v-text="item.sidebarAnnualAttendanceStr"
+              ></p>
               <p style="margin-top: 4px; margin: 0">
-                <span style="
+                <span
+                  style="
                     color: #999999;
                     font-size: 12px;
                     display: inline-block;
                     transform: scale(0.8) translateX(-10px);
-                  ">鍚堣鍑哄嫟: </span><span style="font-size: 16px; color: #ff4902">{{item.sidebarAnnualAttendance.totalCount}}澶�</span>
+                  "
+                  >鍚堣鍑哄嫟: </span
+                ><span style="font-size: 16px; color: #ff4902"
+                  >{{ item.sidebarAnnualAttendance.totalCount }}澶�</span
+                >
               </p>
             </div>
           </div>
@@ -136,22 +316,47 @@
         <div class="scroll-right">
           <div class="content">
             <div>
-              <div class="content-title content-title-right" style="border-bottom: 0; height: 63px;position: fixed;z-index: 1;background-color: #fff;width: calc( 100% - 448px );" :style="`display: grid;
-                grid-template-columns: repeat(${monthList.length}, 1fr);`">
-                <div class="content-title-item" v-for="(item, index) in monthList" :key="'b' + index"
-                  style="height: 52px;">
+              <div
+                class="content-title content-title-right"
+                style="
+                  border-bottom: 0;
+                  height: 63px;
+                  position: fixed;
+                  z-index: 1;
+                  background-color: #fff;
+                  width: calc(100% - 448px);
+                "
+                :style="`display: grid;
+                grid-template-columns: repeat(${monthList.length}, 1fr);`"
+              >
+                <div
+                  class="content-title-item"
+                  v-for="(item, index) in monthList"
+                  :key="'b' + index"
+                  style="height: 52px"
+                >
                   <span class="month">{{ item }}鏈�</span>
                 </div>
               </div>
-              <div class="content-body" v-for="(item, index) in yearList" :key="'c' + index" :style="`display: grid;
-              grid-template-columns: repeat(${monthList.length}, 1fr);`">
-                <div class="content-body-item" v-for="(m, i) in item.monthlyAttendances" :key="'d' + i"
-                  :class="{ hoverType: currentUserIndex == index }">
+              <div
+                class="content-body"
+                v-for="(item, index) in yearList"
+                :key="'c' + index"
+                :style="`display: grid;
+              grid-template-columns: repeat(${monthList.length}, 1fr);`"
+              >
+                <div
+                  class="content-body-item"
+                  v-for="(m, i) in item.monthlyAttendances"
+                  :key="'d' + i"
+                >
                   <p style="color: rgb(153, 153, 153); font-size: 12px">
-                    鍚堣鍑哄嫟锛�<span style="font-size: 14px; color: #000">{{m.monthlyAttendance.totalCount}}</span>
+                    鍚堣鍑哄嫟锛�<span style="font-size: 14px; color: #000">{{
+                      m.monthlyAttendance.totalCount
+                    }}</span>
                   </p>
                   <p style="color: rgb(153, 153, 153); font-size: 12px">
-                    <span>{{m.monthlyAttendanceStr}}</span>
+                    <span>{{ m.monthlyAttendanceStr }}</span>
                   </p>
                 </div>
               </div>
@@ -161,25 +366,43 @@
       </div>
     </div>
 
-    <ul v-show="showMenu"
-        class="contextmenu"
-        :style="{left:menuX+'px',top:menuY+'px'}"
-        @click.stop>
-      <li @click="updateAnnotation('edit')"><i class="el-icon-edit-outline"></i> 缂栬緫鎵规敞</li>
-      <li @click="updateAnnotation('delete')"><i class="el-icon-delete"></i> 鍒犻櫎鎵规敞</li>
+    <ul
+      v-show="showMenu"
+      class="contextmenu"
+      :style="{ left: menuX + 'px', top: menuY + 'px' }"
+      @click.stop
+    >
+      <li @click="updateAnnotation('edit')">
+        <i class="el-icon-edit-outline"></i> 缂栬緫鎵规敞
+      </li>
+      <li @click="updateAnnotation('delete')">
+        <i class="el-icon-delete"></i> 鍒犻櫎鎵规敞
+      </li>
     </ul>
     <el-dialog title="鏃堕棿閰嶇疆" :visible.sync="configTimeVisible" width="620px">
       <div v-loading="configTimeVisibleLoading" style="min-height: 200px">
         <div v-for="(item, index) in timeQuery">
-          <div class="form" style="display: flex; justify-content: space-between">
+          <div
+            class="form"
+            style="display: flex; justify-content: space-between"
+          >
             <div style="margin-bottom: 12px; width: 200px">
               <span class="form_label">鐝锛�</span>
               <span v-if="!item.isEdit"> {{ item.type }} </span>
               <span class="form_input" v-if="item.isEdit">
-                <el-select v-model="item.shift" placeholder="璇烽�夋嫨" style="width: 70%; margin-right: 8px" clearable
-                  size="small">
-                  <el-option v-for="obj in timeTypeList" :key="obj.dictValue" :label="obj.dictLabel"
-                    :value="obj.dictValue">
+                <el-select
+                  v-model="item.shift"
+                  placeholder="璇烽�夋嫨"
+                  style="width: 70%; margin-right: 8px"
+                  clearable
+                  size="small"
+                >
+                  <el-option
+                    v-for="obj in timeTypeList"
+                    :key="obj.dictValue"
+                    :label="obj.dictLabel"
+                    :value="obj.dictValue"
+                  >
                   </el-option>
                 </el-select>
               </span>
@@ -194,67 +417,114 @@
                 }}
               </span>
               <span class="form_input" v-if="item.isEdit">
-                <el-time-select placeholder="璧峰鏃堕棿" v-model="item.startTime" size="small" :picker-options="{
-                  start: '00:00',
-                  step: '00:15',
-                  end: '24:00',
-                }" style="width: 120px">
-                </el-time-select>
-                <el-time-select style="width: 120px" placeholder="缁撴潫鏃堕棿" v-model="item.endTime" size="small"
+                <el-time-select
+                  placeholder="璧峰鏃堕棿"
+                  v-model="item.startTime"
+                  size="small"
                   :picker-options="{
                     start: '00:00',
                     step: '00:15',
                     end: '24:00',
-                  }">
+                  }"
+                  style="width: 120px"
+                >
+                </el-time-select>
+                <el-time-select
+                  style="width: 120px"
+                  placeholder="缁撴潫鏃堕棿"
+                  v-model="item.endTime"
+                  size="small"
+                  :picker-options="{
+                    start: '00:00',
+                    step: '00:15',
+                    end: '24:00',
+                  }"
+                >
                 </el-time-select>
               </span>
             </div>
             <span>
-              <i class="el-icon-circle-check" v-if="item.isEdit"
-                style="margin-left: 10px; color: #4b79f2; cursor: pointer" @click="saveEdit(item, index)"></i>
-              <i class="el-icon-edit" v-if="!item.isEdit" style="margin-left: 10px; color: #4b79f2; cursor: pointer"
-                @click="item.isEdit = true"></i>
-              <i class="el-icon-delete" v-if="timeQuery.length > 1"
-                style="margin-left: 10px; color: #ff4902; cursor: pointer" @click="deleteTime(item, index)"></i>
+              <i
+                class="el-icon-circle-check"
+                v-if="item.isEdit"
+                style="margin-left: 10px; color: #4b79f2; cursor: pointer"
+                @click="saveEdit(item, index)"
+              ></i>
+              <i
+                class="el-icon-edit"
+                v-if="!item.isEdit"
+                style="margin-left: 10px; color: #4b79f2; cursor: pointer"
+                @click="item.isEdit = true"
+              ></i>
+              <i
+                class="el-icon-delete"
+                v-if="timeQuery.length > 1"
+                style="margin-left: 10px; color: #ff4902; cursor: pointer"
+                @click="deleteTime(item, index)"
+              ></i>
             </span>
           </div>
           <el-divider></el-divider>
-          <div @click="addTimeForm" style="color: #4b79f2; cursor: pointer" v-if="index === timeQuery.length - 1">
+          <div
+            @click="addTimeForm"
+            style="color: #4b79f2; cursor: pointer"
+            v-if="index === timeQuery.length - 1"
+          >
             娣诲姞鏃堕棿閰嶇疆
           </div>
         </div>
-        <div @click="addTimeForm" style="color: #4b79f2" v-if="timeQuery.length === 0">
+        <div
+          @click="addTimeForm"
+          style="color: #4b79f2"
+          v-if="timeQuery.length === 0"
+        >
           娣诲姞鏃堕棿閰嶇疆
         </div>
       </div>
     </el-dialog>
-    <el-dialog title="鎺掔彮" :visible.sync="schedulingVisible" width="400px">
-      <div class="search_thing">
-        <div class="search_label" style="width: 90px">
-          <span style="color: red; margin-right: 4px">*</span>鍛ㄦ锛�
-        </div>
-        <div class="search_input" style="width: calc(100% - 90px)">
-          <el-date-picker v-model="schedulingQuery.week" type="week" format="yyyy 绗� WW 鍛�" placeholder="閫夋嫨鍛ㄦ"
-            style="width: 100%">
+    <el-dialog
+      title="鎺掔彮"
+      :visible.sync="schedulingVisible"
+      width="20%"
+      @close="resetForm"
+    >
+      <el-form
+        ref="schedulingQueryRef"
+        :model="schedulingQuery"
+        :rules="schedulingQueryRules"
+      >
+        <el-form-item label="鎺掔彮鏃堕棿:" prop="dateRange">
+          <el-date-picker
+            v-model="schedulingQuery.dateRange"
+            type="datetimerange"
+            value-format="yyyy-MM-dd HH:mm:ss"
+            :default-time="['00:00:00', '23:59:59']"
+            start-placeholder="寮�濮嬫棩鏈�"
+            end-placeholder="缁撴潫鏃ユ湡"
+            style="width: 100%"
+          >
           </el-date-picker>
-        </div>
-      </div>
-      <div class="search_thing">
-        <div class="search_label" style="width: 90px">
-          <span style="color: red; margin-right: 4px">*</span>浜哄憳鍚嶇О锛�
-        </div>
-        <div class="search_input" style="width: calc(100% - 90px)">
-          <el-select v-model="schedulingQuery.userIdList" popper-class="select-with-all" placeholder="璇烽�夋嫨" style="width: 100%" multiple collapse-tags clearable>
+        </el-form-item>
+        <el-form-item label="浜哄憳鍚嶇О:" prop="userIdList">
+          <el-select
+            v-model="schedulingQuery.userIdList"
+            popper-class="select-with-all"
+            placeholder="璇烽�夋嫨"
+            style="width: 100%"
+            multiple
+            collapse-tags
+            clearable
+          >
             <template slot="prefix">
               <el-button
                 type="text"
                 size="mini"
                 @click="handleSelectAll"
-                style="margin: 4px 0;"
+                style="margin: 4px 0"
               >
-                {{ isAllSelected ? '鍙栨秷鍏ㄩ��' : '鍏ㄩ��' }}
+                {{ isAllSelected ? "鍙栨秷鍏ㄩ��" : "鍏ㄩ��" }}
               </el-button>
-              <el-divider style="margin: 5px 0;" />
+              <el-divider style="margin: 5px 0" />
             </template>
             <el-option
               v-for="item in personList"
@@ -263,32 +533,39 @@
               :value="item.id"
             >
               <span style="float: left">{{ item.name }}</span>
-              <span style="float: right; color: #8492a6; font-size: 13px">{{ item.account }}</span>
+              <span style="float: right; color: #8492a6; font-size: 13px">{{
+                item.account
+              }}</span>
             </el-option>
           </el-select>
-        </div>
-      </div>
-      <div class="search_thing">
-        <div class="search_label" style="width: 90px">
-          <span style="color: red; margin-right: 4px">*</span>鐝锛�
-        </div>
-        <div class="search_input" style="width: calc(100% - 90px)">
-          <el-select v-model="schedulingQuery.shift" placeholder="璇烽�夋嫨" style="width: 100%">
-            <el-option v-for="item in classType" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue">
+        </el-form-item>
+        <el-form-item label="鐝:" prop="shift">
+          <el-select
+            v-model="schedulingQuery.shift"
+            placeholder="璇烽�夋嫨"
+            style="width: 100%"
+          >
+            <el-option
+              v-for="item in classType"
+              :key="item.dictValue"
+              :label="item.dictLabel"
+              :value="item.dictValue"
+            >
             </el-option>
           </el-select>
-        </div>
-      </div>
+        </el-form-item>
+      </el-form>
       <span slot="footer" class="dialog-footer">
-        <el-button @click="schedulingVisible = false">鍙� 娑�</el-button>
-        <el-button type="primary" @click="confirmScheduling" :loading="loading">纭� 瀹�</el-button>
+        <el-button @click="resetForm">鍙� 娑�</el-button>
+        <el-button type="primary" @click="confirmScheduling" :loading="loading"
+          >纭� 瀹�</el-button
+        >
       </span>
     </el-dialog>
   </div>
 </template>
 
 <script>
-import { getYearAndMonthAndDays } from "@/utils/date";
 import {
   page,
   pageYear,
@@ -301,20 +578,20 @@
   obtainItemParameterList,
   update,
   editAnnotationText,
-  delAnnotationText
+  delAnnotationText,
 } from "@/api/performance/class";
-import {selectUserListByPerformance} from '@/api/system/user'
-import {getWorkMonth} from "@/utils/date";
-import {transformExcel} from '@/utils/file'
+import { selectUserListByPerformance } from "@/api/system/user";
+import { getWorkMonth } from "@/utils/date";
+import { transformExcel } from "@/utils/file";
 export default {
-  name: 'Class',
+  name: "Class",
   data() {
     return {
       query: {
         userName: "",
         laboratory: "",
         year: new Date(),
-        month: getWorkMonth().month()+1,
+        month: getWorkMonth().month() + 1,
       },
       monthOptions: [
         {
@@ -374,9 +651,22 @@
       personList: [],
       loading: false,
       schedulingQuery: {
-        week: "",
+        dateRange: [],
         userIdList: [],
         shift: "",
+      },
+      schedulingQueryRules: {
+        dateRange: {
+          required: true,
+          message: "璇烽�夋嫨鎺掔彮鏃ユ湡",
+          trigger: "change",
+        },
+        userIdList: {
+          required: true,
+          message: "璇烽�夋嫨浜哄憳鍚嶇О",
+          trigger: "change",
+        },
+        shift: { required: true, message: "璇烽�夋嫨鐝", trigger: "change" },
       },
       list: [],
       currentPage: 1, // 褰撳墠椤�
@@ -397,16 +687,17 @@
       selectedTarget: null,
     };
   },
-  computed:{
+  computed: {
     isAllSelected() {
-      return this.schedulingQuery.userIdList.length === this.personList.length && this.personList.length > 0;
+      return (
+        this.schedulingQuery.userIdList.length === this.personList.length &&
+        this.personList.length > 0
+      );
     },
   },
-  watch: {
-
-  },
+  watch: {},
   mounted() {
-    document.addEventListener('click', this.handleClickOutside)
+    document.addEventListener("click", this.handleClickOutside);
     this.selectEnumByCategory();
     this.obtainItemParameterList();
     this.getUsers();
@@ -422,78 +713,89 @@
     this.monthList.reverse();
   },
   destroyed() {
-    document.removeEventListener('click', this.handleClickOutside)
+    document.removeEventListener("click", this.handleClickOutside);
   },
   methods: {
+    resetForm() {
+      this.$refs.schedulingQueryRef.resetFields();
+      this.$nextTick(() => {
+        this.schedulingVisible = false;
+      });
+    },
     handleSelectAll() {
       if (this.isAllSelected) {
         this.schedulingQuery.userIdList = [];
       } else {
         // 鍙�変腑鍙敤閫夐」鐨剉alue
-        this.schedulingQuery.userIdList = this.personList.map(item => item.id);
+        this.schedulingQuery.userIdList = this.personList.map(
+          (item) => item.id
+        );
       }
     },
-    handleContextMenu(target,e) {
+    handleContextMenu(target, e) {
       // 闃绘娴忚鍣ㄩ粯璁ゅ彸閿彍鍗�
-      e.preventDefault()
+      e.preventDefault();
 
-      const menuMinWidth = 105
-      const offsetLeft = this.$el.getBoundingClientRect().left // container margin left
-      const offsetWidth = this.$el.offsetWidth // container width
-      const maxLeft = offsetWidth - menuMinWidth // left boundary
-      const left = e.clientX - offsetLeft + 15 // 15: margin right
+      const menuMinWidth = 105;
+      const offsetLeft = this.$el.getBoundingClientRect().left; // container margin left
+      const offsetWidth = this.$el.offsetWidth; // container width
+      const maxLeft = offsetWidth - menuMinWidth; // left boundary
+      const left = e.clientX - offsetLeft + 15; // 15: margin right
 
       if (left > maxLeft) {
-        this.menuX = maxLeft
+        this.menuX = maxLeft;
       } else {
-        this.menuX = left
+        this.menuX = left;
       }
-      this.menuY = e.clientY - 60
+      this.menuY = e.clientY - 60;
       // 鏄剧ず鑿滃崟
-      this.selectedTarget = target
-      this.showMenu = true
+      this.selectedTarget = target;
+      this.showMenu = true;
     },
     //缂栬緫鎵规敞
     updateAnnotation(operation) {
       // 鐐瑰嚮鑿滃崟鍚庡叧闂彍鍗�
-      this.showMenu = false
-      if(this.selectedTarget && !this.selectedTarget.shift){
-        this.$message.warning('璇峰厛閫夋嫨鐝')
-        return
+      this.showMenu = false;
+      if (this.selectedTarget && !this.selectedTarget.shift) {
+        this.$message.warning("璇峰厛閫夋嫨鐝");
+        return;
       }
-      if(operation && operation==='edit'){
-        this.$prompt('', '缂栬緫鎵规敞', {
-          confirmButtonText: '纭畾',
-          cancelButtonText: '鍙栨秷',
-          inputType:'textarea',
-          inputPlaceholder:'濉啓鎵规敞鍐呭',
+      if (operation && operation === "edit") {
+        this.$prompt("", "缂栬緫鎵规敞", {
+          confirmButtonText: "纭畾",
+          cancelButtonText: "鍙栨秷",
+          inputType: "textarea",
+          inputPlaceholder: "濉啓鎵规敞鍐呭",
           inputPattern: /^.{0,100}$/,
-          inputErrorMessage: '鏈�澶ц緭鍏�100涓瓧绗�'
-        }).then(({ value }) => {
-          editAnnotationText({
-            id:this.selectedTarget.id,
-            annotationText:value
-          }).then(res=>{
-            this.$message.success("鎻愪氦鎴愬姛")
-            this.refreshTable()
+          inputErrorMessage: "鏈�澶ц緭鍏�100涓瓧绗�",
+        })
+          .then(({ value }) => {
+            editAnnotationText({
+              id: this.selectedTarget.id,
+              annotationText: value,
+            }).then((res) => {
+              this.$message.success("鎻愪氦鎴愬姛");
+              this.refreshTable();
+            });
           })
-        }).catch(() => { });
-      }else if(operation && operation==='delete'){
-        this.$confirm('鏄惁鍒犻櫎鎵规敞鍐呭?', '鎻愮ず', {
-          confirmButtonText: '纭畾',
-          cancelButtonText: '鍙栨秷',
-          type: 'warning'
-        }).then(() => {
-          delAnnotationText(this.selectedTarget.id).then(res=>{
-            this.$message.success("鍒犻櫎鎴愬姛")
-            this.refreshTable()
+          .catch(() => {});
+      } else if (operation && operation === "delete") {
+        this.$confirm("鏄惁鍒犻櫎鎵规敞鍐呭?", "鎻愮ず", {
+          confirmButtonText: "纭畾",
+          cancelButtonText: "鍙栨秷",
+          type: "warning",
+        })
+          .then(() => {
+            delAnnotationText(this.selectedTarget.id).then((res) => {
+              this.$message.success("鍒犻櫎鎴愬姛");
+              this.refreshTable();
+            });
           })
-        }).catch(() => {});
+          .catch(() => {});
       }
-
     },
     handleClickOutside() {
-      this.showMenu = false
+      this.showMenu = false;
     },
     getDictTypeByShift(e) {
       let obj = this.classType.find((m) => m.dictValue == e);
@@ -547,22 +849,24 @@
         time: year + "-" + month + "-01 00:00:00",
         userName: this.query.userName,
         laboratory: this.query.laboratory,
-      }).then((res) => {
-        this.pageLoading = false;
-        this.list = res.data.page
-        let headerList = res.data.headerList;
-        this.weeks = [];
-        headerList.forEach((item) => {
-          let obj = {
-            weekNum: item.weekly,
-            week: item.headerTime.split(" ")[1],
-            day: item.headerTime.split(" ")[0],
-          };
-          this.weeks.push(obj);
-        });
-      }).catch(() => {
-        this.pageLoading = false;
       })
+        .then((res) => {
+          this.pageLoading = false;
+          this.list = res.data.page;
+          let headerList = res.data.headerList;
+          this.weeks = [];
+          headerList.forEach((item) => {
+            let obj = {
+              weekNum: item.weekly,
+              week: item.headerTime.split(" ")[1],
+              day: item.headerTime.split(" ")[0],
+            };
+            this.weeks.push(obj);
+          });
+        })
+        .catch(() => {
+          this.pageLoading = false;
+        });
     },
     initYear() {
       this.pageLoading = true;
@@ -573,53 +877,35 @@
         laboratory: this.query.laboratory,
       }).then((res) => {
         this.pageLoading = false;
-        this.yearList = res.data
+        this.yearList = res.data;
       });
     },
     confirmScheduling() {
-      if (!this.schedulingQuery.week) {
-        this.$message.error("璇烽�夋嫨鍛ㄦ");
-        return;
-      }
-      let time = this.schedulingQuery.week.getTime();
-      let startWeek =
-        getYearAndMonthAndDays(new Date(time - 24 * 60 * 60 * 1000)) +
-        " 00:00:00";
-      let endWeek =
-        getYearAndMonthAndDays(new Date(time + 24 * 60 * 60 * 1000 * 5)) +
-        " 00:00:00";
-      if (
-        !this.schedulingQuery.userIdList ||
-        this.schedulingQuery.userIdList.length == 0
-      ) {
-        this.$message.error("璇烽�夋嫨浜哄憳");
-        return;
-      }
-      if (!this.schedulingQuery.shift) {
-        this.$message.error("璇烽�夋嫨鐝");
-        return;
-      }
-      this.loading = true;
-      add({
-        startWeek,
-        endWeek,
-        userIdList: this.schedulingQuery.userIdList,
-        shift: this.schedulingQuery.shift,
-      })
-        .then((res) => {
-          this.loading = false;
-          this.$message.success("鎿嶄綔鎴愬姛");
-          this.schedulingVisible = false;
-          this.schedulingQuery = {
-            week: "",
-            userIdList: [],
-            shift: "",
-          };
-          this.refresh();
-        })
-        .catch((err) => {
-          this.loading = false;
-        });
+      this.$refs.schedulingQueryRef.validate((valid) => {
+        if (valid) {
+          this.loading = true;
+          add({
+            startTime: this.schedulingQuery.dateRange[0],
+            endTime: this.schedulingQuery.dateRange[1],
+            userIdList: this.schedulingQuery.userIdList,
+            shift: this.schedulingQuery.shift,
+          })
+            .then((res) => {
+              this.loading = false;
+              this.$message.success("鎿嶄綔鎴愬姛");
+              this.schedulingVisible = false;
+              this.schedulingQuery = {
+                week: "",
+                userIdList: [],
+                shift: "",
+              };
+              this.refresh();
+            })
+            .catch((err) => {
+              this.loading = false;
+            });
+        }
+      });
     },
     configTime() {
       this.getDicts("sys_class_type").then((response) => {
@@ -829,12 +1115,12 @@
   display: flex;
 }
 
->>>.scroll-pagination {
+>>> .scroll-pagination {
   overflow-y: scroll;
   scrollbar-width: none;
 }
 
->>>.scroll-pagination::-webkit-scrollbar {
+>>> .scroll-pagination::-webkit-scrollbar {
   display: none;
 }
 
@@ -918,8 +1204,8 @@
   align-items: center;
 }
 
-.content-body:nth-child(2){
-  padding-top:58px;
+.content-body:nth-child(2) {
+  padding-top: 58px;
 }
 
 .content-body-item {
@@ -950,8 +1236,8 @@
   display: flex;
   align-items: center;
 }
-.content-user:nth-child(2){
-  margin-top:58px;
+.content-user:nth-child(2) {
+  margin-top: 58px;
 }
 .user-pic {
   width: 50px;
@@ -968,10 +1254,6 @@
 .user-info {
   flex: 1;
   margin-left: 10px;
-}
-
-.hoverType {
-  background: rgba(58, 123, 250, 0.03);
 }
 
 .year-table {
@@ -1018,7 +1300,7 @@
   font-size: 12px;
   font-weight: 400;
   color: #333;
-  box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, .3);
+  box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);
   li {
     margin: 0;
     padding: 7px 16px;
diff --git a/src/views/performance/rewardAndPunishment/index.vue b/src/views/performance/rewardAndPunishment/index.vue
index ace57bc..2d61aaf 100644
--- a/src/views/performance/rewardAndPunishment/index.vue
+++ b/src/views/performance/rewardAndPunishment/index.vue
@@ -197,7 +197,12 @@
       :visible.sync="dialogVisible"
       title="濂栨儵璁板綍"
       width="50%"
-      @open="getUserList"
+      @open="
+        () => {
+          this.getUserList();
+          this.getRewardPunishNameList();
+        }
+      "
     >
       <div style="height: 40vh">
         <el-form ref="form" :model="form" :rules="rules" label-width="120px">
@@ -214,7 +219,7 @@
             <el-col :span="12">
               <el-form-item label="鍛樺伐濮撳悕" prop="userId">
                 <el-select
-                  :disabled="form.id"
+                  :disabled="form.id == null"
                   v-model="form.userId"
                   placeholder="璇烽�夋嫨鍛樺伐濮撳悕"
                   size="small"
@@ -235,25 +240,31 @@
           <el-row>
             <el-col :span="12">
               <el-form-item label="濂栨儵鍚嶇О" prop="rewardPunishName">
-                <el-input
-                  placeholder="璇疯緭鍏ュ鎯╁悕绉�"
-                  type="textarea"
-                  :rows="1"
-                  v-model="form.rewardPunishName"
+                <el-select
                   size="small"
-                ></el-input>
+                  placeholder="璇疯緭鍏ュ鎯╁悕绉�"
+                  v-model="form.rewardPunishName"
+                  style="width: 100%"
+                >
+                  <el-option
+                    :key="index"
+                    v-for="(item, index) in rewardPunishNameList"
+                    :label="item.dictLabel"
+                    :value="item.dictValue"
+                  />
+                </el-select>
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="濂栨儵鏃堕棿" prop="rewardPunishTime">
                 <el-date-picker
                   v-model="form.rewardPunishTime"
-                  format="yyyy-MM-dd"
+                  format="yyyy-MM-dd HH:mm:ss"
                   placeholder="閫夋嫨鏃ユ湡"
                   size="small"
                   style="width: 100%"
-                  type="date"
-                  value-format="yyyy-MM-dd"
+                  type="datetime"
+                  value-format="yyyy-MM-dd HH:mm:ss"
                 >
                 </el-date-picker>
               </el-form-item>
@@ -278,7 +289,6 @@
                   controls-position="right"
                   :precision="2"
                   style="width: 100%"
-                  :min="0"
                   v-model="form.rewardPunishSum"
                   size="small"
                   placeholder="璇疯緭鍏ュ鎯╅噾棰�"
@@ -318,6 +328,7 @@
 } from "@/api/cnas/personal/personRewardPunishmentRecord";
 import { selectUserListByPerformance } from "@/api/system/user";
 import { transformExcel } from "@/utils/file";
+import { getDicts } from "@/api/system/dict/data";
 
 export default {
   data() {
@@ -392,7 +403,7 @@
           {
             required: true,
             message: "璇疯緭鍏ュ鎯╁悕绉�",
-            trigger: "blur",
+            trigger: "change",
           },
         ],
         rewardPunishTime: [
@@ -411,13 +422,21 @@
         ],
       },
       responsibleOptions: [],
+      rewardPunishNameList: [],
     };
   },
   mounted() {
     this.getPersonnelTraining();
     this.getUserList();
+    this.getRewardPunishNameList();
   },
   methods: {
+    getRewardPunishNameList() {
+      this.rewardPunishNameList = [];
+      getDicts("sys_rewardandpunishment_type").then((res) => {
+        this.rewardPunishNameList = res.data;
+      });
+    },
     refreshTable() {
       this.search.userName = "";
       this.search.searchTimeList = [];
diff --git a/src/views/structural/premises/index.vue b/src/views/structural/premises/index.vue
index 2b9b750..be8d4c2 100644
--- a/src/views/structural/premises/index.vue
+++ b/src/views/structural/premises/index.vue
@@ -2,82 +2,190 @@
   <div class="capacity-scope">
     <div class="search">
       <div>
-        <el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
+        <el-form
+          :model="queryParams"
+          ref="queryForm"
+          size="small"
+          :inline="true"
+        >
           <el-form-item label="瀹為獙瀹ゅ悕绉�" prop="laboratoryName">
-            <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.laboratoryName"
-              @keyup.enter.native="refreshTable"></el-input>
+            <el-input
+              size="small"
+              placeholder="璇疯緭鍏�"
+              clearable
+              v-model="queryParams.laboratoryName"
+              @keyup.enter.native="refreshTable"
+            ></el-input>
           </el-form-item>
           <el-form-item label="瀹為獙瀹ょ紪鐮�" prop="laboratoryNumber">
-            <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.laboratoryNumber"
-              @keyup.enter.native="refreshTable"></el-input>
+            <el-input
+              size="small"
+              placeholder="璇疯緭鍏�"
+              clearable
+              v-model="queryParams.laboratoryNumber"
+              @keyup.enter.native="refreshTable"
+            ></el-input>
           </el-form-item>
           <el-form-item>
-            <el-button type="primary" size="mini" @click="refreshTable">鏌ヨ</el-button>
+            <el-button type="primary" size="mini" @click="refreshTable"
+              >鏌ヨ</el-button
+            >
             <el-button size="mini" @click="refresh">閲嶇疆</el-button>
           </el-form-item>
         </el-form>
       </div>
       <div>
-        <el-button size="small" type="primary" @click="openAdd('add')" icon="el-icon-plus">鏂板</el-button>
+        <el-button
+          size="small"
+          type="primary"
+          @click="openAdd('add')"
+          icon="el-icon-plus"
+          >鏂板</el-button
+        >
       </div>
     </div>
     <div class="table">
-      <lims-table :tableData="tableData" :column="column" :height="'calc(100vh - 250px)'" @pagination="pagination"
-        :page="page" :tableLoading="tableLoading"></lims-table>
+      <lims-table
+        :tableData="tableData"
+        :column="column"
+        :height="'calc(100vh - 250px)'"
+        @pagination="pagination"
+        :page="page"
+        :tableLoading="tableLoading"
+      ></lims-table>
     </div>
     <!--    鏂板瀹為獙瀹�-->
     <el-dialog :title="formTitle" :visible.sync="addDia" width="450px">
-      <el-form ref="laboratoryForm" :model="laboratoryForm" :rules="userRules" label-position="right"
-        label-width="100px">
+      <el-form
+        ref="laboratoryForm"
+        :model="laboratoryForm"
+        :rules="userRules"
+        label-position="right"
+        label-width="100px"
+      >
         <el-form-item label="瀹為獙瀹ゅ悕绉�" prop="laboratoryName">
-          <el-input v-model="laboratoryForm.laboratoryName" size="small" clearable></el-input>
+          <el-input
+            v-model="laboratoryForm.laboratoryName"
+            size="small"
+            clearable
+          ></el-input>
         </el-form-item>
         <el-form-item label="鍦烘墍缂栫爜" prop="laboratoryNumber">
-          <el-input v-model="laboratoryForm.laboratoryNumber" size="small" clearable></el-input>
+          <el-input
+            v-model="laboratoryForm.laboratoryNumber"
+            size="small"
+            clearable
+          ></el-input>
         </el-form-item>
         <el-form-item label="瀹為獙瀹や唬鍙�" prop="laboratoryCode">
-          <el-input v-model="laboratoryForm.laboratoryCode" size="small" clearable></el-input>
+          <el-input
+            v-model="laboratoryForm.laboratoryCode"
+            size="small"
+            clearable
+          ></el-input>
         </el-form-item>
         <el-form-item label="璐熻矗浜�" prop="head">
-          <el-input v-model="laboratoryForm.head" size="small" clearable></el-input>
+          <el-input
+            v-model="laboratoryForm.head"
+            size="small"
+            clearable
+          ></el-input>
         </el-form-item>
         <el-form-item label="璐熻矗浜虹數璇�" prop="phoneNumber">
-          <el-input v-model="laboratoryForm.phoneNumber" size="small" clearable></el-input>
+          <el-input
+            v-model="laboratoryForm.phoneNumber"
+            size="small"
+            clearable
+          ></el-input>
         </el-form-item>
         <el-form-item label="鍦板潃" prop="address">
-          <el-input v-model="laboratoryForm.address" size="small" clearable></el-input>
+          <el-input
+            v-model="laboratoryForm.address"
+            size="small"
+            clearable
+          ></el-input>
         </el-form-item>
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button @click="reset">鍙� 娑�</el-button>
-        <el-button type="primary" @click="customAdd" :loading="loading">纭� 瀹�</el-button>
+        <el-button type="primary" @click="customAdd" :loading="loading"
+          >纭� 瀹�</el-button
+        >
       </span>
     </el-dialog>
     <el-dialog title="鍗扮珷绠$悊" :visible.sync="fileVisible" width="60vw">
       <div class="btns">
-        <el-button size="medium" type="primary" @click="openUpload">鏇存柊鍗扮珷</el-button>
+        <el-button size="medium" type="primary" @click="openUpload"
+          >鏇存柊鍗扮珷</el-button
+        >
       </div>
-      <lims-table :tableData="fileComponentData" :column="fileComponentDataColumn" @pagination="fileComponentPagination"
-        height="500px" :page="fileComponentPage" :tableLoading="fileComponentTableLoading"></lims-table>
+      <lims-table
+        :tableData="fileComponentData"
+        :column="fileComponentDataColumn"
+        @pagination="fileComponentPagination"
+        height="500px"
+        :page="fileComponentPage"
+        :tableLoading="fileComponentTableLoading"
+      ></lims-table>
     </el-dialog>
     <el-dialog title="鏇存柊鍗扮珷" :visible.sync="upFileVisible" width="400px">
-      <el-form ref="dataForm" :model="dataForm" :rules="dataFormRules" label-position="right" label-width="80px">
+      <el-form
+        ref="dataForm"
+        :model="dataForm"
+        :rules="dataFormRules"
+        label-position="right"
+        label-width="80px"
+      >
+        <el-form-item label="鎵�灞炲煙" prop="contract">
+          <el-select
+            v-model="dataForm.contract"
+            placeholder="璇烽�夋嫨"
+            size="small"
+            style="width: 100%"
+          >
+            <el-option label="ZTNS" value="ZTNS" />
+            <el-option label="KJNS" value="KJNS" />
+          </el-select>
+        </el-form-item>
         <el-form-item label="鍗扮珷绫诲瀷" prop="type">
-          <el-cascader v-model="dataForm.type" :options="options" :show-all-levels="false" :props="props"
-            placeholder="璇烽�夋嫨" size="small" style="width:100%" collapse-tags clearable></el-cascader>
+          <el-cascader
+            v-model="dataForm.type"
+            :options="options"
+            :show-all-levels="false"
+            :props="props"
+            placeholder="璇烽�夋嫨"
+            size="small"
+            style="width: 100%"
+            collapse-tags
+            clearable
+          ></el-cascader>
         </el-form-item>
         <el-form-item label="鍗扮珷鍥剧墖" prop="address">
-          <el-upload class="avatar-uploader" :action="action" :headers="uploadHeader"
-            accept='image/jpg,image/jpeg,image/png' :show-file-list="false" :on-success="handleSuccess"
-            :on-change="beforeUpload" ref="upload" :on-error="onError">
-            <img v-if="dataForm.address" :src="javaApi + '/img/' + dataForm.address" class="avatar">
+          <el-upload
+            class="avatar-uploader"
+            :action="action"
+            :headers="uploadHeader"
+            accept="image/jpg,image/jpeg,image/png"
+            :show-file-list="false"
+            :on-success="handleSuccess"
+            :on-change="beforeUpload"
+            ref="upload"
+            :on-error="onError"
+          >
+            <img
+              v-if="dataForm.address"
+              :src="javaApi + '/img/' + dataForm.address"
+              class="avatar"
+            />
             <i v-else class="el-icon-plus avatar-uploader-icon"></i>
           </el-upload>
         </el-form-item>
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button @click="upFileVisible = false">鍙� 娑�</el-button>
-        <el-button type="primary" @click="confirmConnect" :loading="loading">纭� 瀹�</el-button>
+        <el-button type="primary" @click="confirmConnect" :loading="loading"
+          >纭� 瀹�</el-button
+        >
       </span>
     </el-dialog>
   </div>
@@ -91,282 +199,307 @@
   delParameter,
   selectItemParameter,
   selectSeal,
-  upParameter
+  upParameter,
 } from "@/api/structural/laboratoryScope";
 import { getCertificationDetail } from "@/api/structural/laboratory";
 export default {
   components: {
-    limsTable
-
+    limsTable,
   },
   computed: {
     action() {
-      return this.javaApi + '/deviceScope/uploadFile'
-    }
+      return this.javaApi + "/deviceScope/uploadFile";
+    },
   },
   data() {
     return {
       queryParams: {
-        laboratoryName: '',
-        laboratoryNumber: '',
+        laboratoryName: "",
+        laboratoryNumber: "",
       },
       tableData: [],
       tableLoading: false,
       column: [
-        { label: '瀹為獙瀹ゅ悕绉�', prop: 'laboratoryName' },
-        { label: '鍦烘墍缂栫爜', prop: 'laboratoryNumber' },
-        { label: '瀹為獙瀹や唬鍙�', prop: 'laboratoryCode' },
-        { label: '璐熻矗浜�', prop: 'head' },
-        { label: '璐熻矗浜虹數璇�', prop: 'phoneNumber' },
-        { label: '鍦板潃', prop: 'address' },
-        { label: '鍒涘缓浜�', prop: 'createUserName' },
-        { label: '鍒涘缓鏃堕棿', prop: 'createTime' },
+        { label: "瀹為獙瀹ゅ悕绉�", prop: "laboratoryName" },
+        { label: "鍦烘墍缂栫爜", prop: "laboratoryNumber" },
+        { label: "瀹為獙瀹や唬鍙�", prop: "laboratoryCode" },
+        { label: "璐熻矗浜�", prop: "head" },
+        { label: "璐熻矗浜虹數璇�", prop: "phoneNumber" },
+        { label: "鍦板潃", prop: "address" },
+        { label: "鍒涘缓浜�", prop: "createUserName" },
+        { label: "鍒涘缓鏃堕棿", prop: "createTime" },
         {
-          dataType: 'action',
-          label: '鎿嶄綔',
+          dataType: "action",
+          label: "鎿嶄綔",
           operation: [
             {
-              name: '缂栬緫',
-              type: 'text',
+              name: "缂栬緫",
+              type: "text",
               clickFun: (row) => {
-                this.openAdd('edit', row);
+                this.openAdd("edit", row);
               },
             },
             {
-              name: '鍒犻櫎',
-              type: 'text',
-              clickFun: (row) => {
-                this.delete(row);
-              },
-            },
-            {
-              name: '鍗扮珷绠$悊',
-              type: 'text',
+              name: "鍗扮珷绠$悊",
+              type: "text",
               clickFun: (row) => {
                 this.fileManagement(row);
               },
             },
-          ]
-        }
+            {
+              name: "鍒犻櫎",
+              type: "text",
+              clickFun: (row) => {
+                this.delete(row);
+              },
+            },
+          ],
+        },
       ],
       page: {
         total: 0,
         size: 10,
-        current: 1
+        current: 1,
       },
       addDia: false,
-      formTitle: '',
-      laboratoryForm: {
-
-      },
-      operationType: '',
+      formTitle: "",
+      laboratoryForm: {},
+      operationType: "",
       userRules: {
-        laboratoryName: [{ required: true, message: '璇疯緭鍏ュ疄楠屽鍚嶇О', trigger: 'blur' }],
-        laboratoryNumber: [{ required: true, message: '璇疯緭鍏ュ満鎵�缂栫爜', trigger: 'blur' }],
-        head: [{ required: true, message: '璇疯緭鍏ヨ礋璐d汉', trigger: 'blur' }],
-        phoneNumber: [{ required: true, message: '璇疯緭鍏ヨ礋璐d汉鐢佃瘽', trigger: 'blur' }],
+        laboratoryName: [
+          { required: true, message: "璇疯緭鍏ュ疄楠屽鍚嶇О", trigger: "blur" },
+        ],
+        laboratoryNumber: [
+          { required: true, message: "璇疯緭鍏ュ満鎵�缂栫爜", trigger: "blur" },
+        ],
+        head: [{ required: true, message: "璇疯緭鍏ヨ礋璐d汉", trigger: "blur" }],
+        phoneNumber: [
+          { required: true, message: "璇疯緭鍏ヨ礋璐d汉鐢佃瘽", trigger: "blur" },
+        ],
       },
       currentRow: {},
       fileComponentTableLoading: false,
       fileComponentData: [],
       fileComponentDataColumn: [
-        { label: '瀹為獙瀹ゅ悕绉�', prop: 'laboratoryName' },
-        { label: '鍗扮珷鍥剧墖', prop: 'address', dataType: 'image' },
-        { label: '鍗扮珷绫诲瀷', prop: 'type' },
+        { label: "瀹為獙瀹ゅ悕绉�", prop: "laboratoryName" },
+        { label: "鎵�灞炲煙", prop: "contract" },
+        { label: "鍗扮珷鍥剧墖", prop: "address", dataType: "image" },
+        { label: "鍗扮珷绫诲瀷", prop: "type" },
       ],
       fileComponentPage: {
         total: 0,
         size: 10,
         current: 1,
-        layout: 'total, prev, pager, next'
+        layout: "total, prev, pager, next",
       },
       fileVisible: false,
       upFileVisible: false,
       loading: false,
       dataForm: {
-        type: '',
-        address: '',
+        contract: "",
+        type: "",
+        address: "",
       },
       dataFormRules: {
-        type: [{ required: true, message: '璇烽�夋嫨鍗扮珷绫诲瀷', trigger: 'change' }],
-        address: [{ required: false, message: '璇蜂笂浼犲浘鐗�', trigger: 'change' }],
+        contract: [
+          { required: true, message: "璇烽�夋嫨鎵�灞炲煙", trigger: "change" },
+        ],
+        type: [
+          { required: true, message: "璇烽�夋嫨鍗扮珷绫诲瀷", trigger: "change" },
+        ],
+        address: [
+          { required: false, message: "璇蜂笂浼犲浘鐗�", trigger: "change" },
+        ],
       },
-      props: { multiple: false, emitPath: false, },
+      props: { multiple: false, emitPath: false },
       options: [
         {
-          value: '瀹為獙瀹よ祫璐�',
-          label: '瀹為獙瀹よ祫璐�',
-          children: []
+          value: "瀹為獙瀹よ祫璐�",
+          label: "瀹為獙瀹よ祫璐�",
+          children: [],
         },
         {
-          value: '濮旀墭鎶ュ憡',
-          label: '濮旀墭鎶ュ憡',
-          children: null
+          value: "濮旀墭鎶ュ憡",
+          label: "濮旀墭鎶ュ憡",
+          children: null,
         },
         {
-          value: '杩涘巶鎶ュ憡',
-          label: '杩涘巶鎶ュ憡',
-          children: null
+          value: "杩涘巶鎶ュ憡",
+          label: "杩涘巶鎶ュ憡",
+          children: null,
         },
       ],
-    }
+    };
   },
   mounted() {
-    this.refreshTable()
+    this.refreshTable();
   },
   methods: {
     refreshTable() {
-      this.tableLoading = true
-      selectItemParameter({ ...this.page, ...this.queryParams }).then(res => {
-        this.tableLoading = false
-        if (res.code === 200) {
-          this.tableData = res.data.records
-          this.page.total = res.data.total
-        }
-      }).catch(err => {
-        this.tableLoading = false
-      })
+      this.tableLoading = true;
+      selectItemParameter({ ...this.page, ...this.queryParams })
+        .then((res) => {
+          this.tableLoading = false;
+          if (res.code === 200) {
+            this.tableData = res.data.records;
+            this.page.total = res.data.total;
+          }
+        })
+        .catch((err) => {
+          this.tableLoading = false;
+        });
     },
     // 閲嶇疆
     refresh() {
-      this.resetForm('queryForm')
-      this.refreshTable()
+      this.resetForm("queryForm");
+      this.refreshTable();
     },
     // 鍒嗛〉鍒囨崲
     pagination(page) {
-      this.page.size = page.limit
-      this.refreshTable()
+      this.page.size = page.limit;
+      this.refreshTable();
     },
     openAdd(type, row) {
-      this.formTitle = type === 'add' ? '鏂板瀹為獙瀹�' : '缂栬緫瀹為獙瀹�'
-      this.operationType = type
-      if (type === 'edit') {
-        this.laboratoryForm = this.HaveJson(row)
+      this.formTitle = type === "add" ? "鏂板瀹為獙瀹�" : "缂栬緫瀹為獙瀹�";
+      this.operationType = type;
+      if (type === "edit") {
+        this.laboratoryForm = this.HaveJson(row);
       }
-      this.addDia = true
+      this.addDia = true;
     },
     // 鎻愪氦鏂板銆佺紪杈戝疄楠屽琛ㄥ崟
     customAdd() {
-      this.$refs['laboratoryForm'].validate((valid) => {
+      this.$refs["laboratoryForm"].validate((valid) => {
         if (valid) {
-          this.loading = true
-          if (this.operationType === 'add') {
-            addParameter(this.laboratoryForm).then(res => {
-              this.loading = false
-              if (res.code !== 200) return
-              this.$message.success('鏂板鎴愬姛')
-              this.refreshTable()
-              this.reset()
-            }).catch(err => {
-              this.loading = false
-            })
+          this.loading = true;
+          if (this.operationType === "add") {
+            addParameter(this.laboratoryForm)
+              .then((res) => {
+                this.loading = false;
+                if (res.code !== 200) return;
+                this.$message.success("鏂板鎴愬姛");
+                this.refreshTable();
+                this.reset();
+              })
+              .catch((err) => {
+                this.loading = false;
+              });
           } else {
-            upParameter(this.laboratoryForm).then(res => {
-              this.loading = false
-              if (res.code !== 200) return
-              this.$message.success('淇敼鎴愬姛')
-              this.refreshTable()
-              this.reset()
-            }).catch(err => {
-              this.loading = false
-            })
+            upParameter(this.laboratoryForm)
+              .then((res) => {
+                this.loading = false;
+                if (res.code !== 200) return;
+                this.$message.success("淇敼鎴愬姛");
+                this.refreshTable();
+                this.reset();
+              })
+              .catch((err) => {
+                this.loading = false;
+              });
           }
         }
-      })
+      });
     },
     reset() {
-      this.resetForm('laboratoryForm')
-      this.addDia = false
+      this.resetForm("laboratoryForm");
+      this.addDia = false;
     },
     // 鍒犻櫎瀹為獙瀹�
     delete(row) {
-      this.$confirm('鏄惁鍒犻櫎褰撳墠鏁版嵁?', "璀﹀憡", {
+      this.$confirm("鏄惁鍒犻櫎褰撳墠鏁版嵁?", "璀﹀憡", {
         confirmButtonText: "纭畾",
         cancelButtonText: "鍙栨秷",
-        type: "warning"
-      }).then(() => {
-        delParameter({ id: row.id }).then(res => {
-          this.$message.success('鍒犻櫎鎴愬姛')
-          this.refreshTable()
+        type: "warning",
+      })
+        .then(() => {
+          delParameter({ id: row.id }).then((res) => {
+            this.$message.success("鍒犻櫎鎴愬姛");
+            this.refreshTable();
+          });
         })
-      }).catch(() => { })
+        .catch(() => {});
     },
     // 鎵撳紑鍗扮珷绠$悊寮规
     fileManagement(row) {
       this.fileVisible = true;
-      this.fileComponentTableLoading = true
-      this.currentRow = row
-      this.getFileComponentList()
+      this.fileComponentTableLoading = true;
+      this.currentRow = row;
+      this.getFileComponentList();
     },
     getFileComponentList() {
-      selectSeal({ id: this.currentRow.id, ...this.fileComponentPage }).then(res => {
-        this.fileComponentTableLoading = false
-        if (res.code === 200) {
-          this.fileComponentData = res.data.records
-          this.fileComponentPage.total = res.data.total
-        }
-      }).catch(err => {
-        this.fileComponentTableLoading = false
-      })
+      selectSeal({ id: this.currentRow.id, ...this.fileComponentPage })
+        .then((res) => {
+          this.fileComponentTableLoading = false;
+          if (res.code === 200) {
+            this.fileComponentData = res.data.records;
+            this.fileComponentPage.total = res.data.total;
+          }
+        })
+        .catch((err) => {
+          this.fileComponentTableLoading = false;
+        });
     },
     fileComponentPagination(page) {
-      this.fileComponentPage.size = page.limit
-      this.getFileComponentList()
+      this.fileComponentPage.size = page.limit;
+      this.getFileComponentList();
     },
     // 鎵撳紑鏇存柊鍗扮珷寮规
     openUpload() {
-      this.dataForm.type = '';
-      this.dataForm.address = '';
+      this.dataForm.contract = "";
+      this.dataForm.type = "";
+      this.dataForm.address = "";
       this.upFileVisible = true;
-      this.getCertificationOperation()
+      this.getCertificationOperation();
     },
     // 鏌ヨ鍗扮珷绫诲瀷
     getCertificationOperation() {
       const params = {
         current: -1,
         size: -1,
-      }
-      getCertificationDetail(params).then(res => {
-        this.options[0].children = res.data.records.map(m => {
+      };
+      getCertificationDetail(params).then((res) => {
+        this.options[0].children = res.data.records.map((m) => {
           m.value = m.name;
           m.label = m.name;
-          return m
+          return m;
         });
-      })
+      });
     },
     // 鎻愪氦鏇存柊鍗扮珷
     confirmConnect() {
-      this.$refs['dataForm'].validate((valid) => {
+      this.$refs["dataForm"].validate((valid) => {
         if (valid) {
           this.loading = true;
-          addSeal({ labId: this.currentRow.id, ...this.dataForm }).then(res => {
-            this.loading = false;
-            this.getFileComponentList()
-            this.upFileVisible = false;
-          })
+          addSeal({ labId: this.currentRow.id, ...this.dataForm }).then(
+            (res) => {
+              this.loading = false;
+              this.getFileComponentList();
+              this.upFileVisible = false;
+            }
+          );
         }
-      })
+      });
     },
-    handleSuccess(response,) {
+    handleSuccess(response) {
       if (response.code === 200) {
-        this.dataForm.address = response.data.url
+        this.dataForm.address = response.data.url;
       }
     },
     beforeUpload(file, type) {
       if (file.size > 1024 * 1024 * 10) {
-        this.$message.error('涓婁紶鏂囦欢涓嶈秴杩�10M');
-        this.$refs.upload.clearFiles()
+        this.$message.error("涓婁紶鏂囦欢涓嶈秴杩�10M");
+        this.$refs.upload.clearFiles();
         return false;
       } else {
         return true;
       }
     },
     onError(err, file, fileList, type) {
-      this.$message.error('涓婁紶澶辫触')
-      this.$refs.upload.clearFiles()
+      this.$message.error("涓婁紶澶辫触");
+      this.$refs.upload.clearFiles();
     },
-  }
-}
+  },
+};
 </script>
 <style scoped>
 .search {
@@ -393,7 +526,7 @@
 }
 
 .avatar-uploader ::v-deep .el-upload:hover {
-  border-color: #409EFF;
+  border-color: #409eff;
 }
 
 .avatar-uploader-icon {
diff --git a/src/workers/InspectionWorker.worker.js b/src/workers/InspectionWorker.worker.js
index 5736162..06dd47e 100644
--- a/src/workers/InspectionWorker.worker.js
+++ b/src/workers/InspectionWorker.worker.js
@@ -177,8 +177,8 @@
             // 濡傛灉褰撳墠妫�楠岄」鏄骇鍝佹楠岄」锛屽垯鎵ц姝ゆ柟娉曪紝鎵惧埌姝ゆ楠岄」鐨勮姹傚��
             let ask = currentSample.insProduct.find((m) => m.id == item.i).ask
               ? currentSample.insProduct
-                  .find((m) => m.id == item.i)
-                  .ask.split("&")
+                .find((m) => m.id == item.i)
+                .ask.split("&")
               : null;
             // 鑾峰彇褰撳墠缁撹鐨勫弬鏁帮紝涔熷氨鏄綋鍓嶆楠岄」鐨勬渶缁堝��
             let res = Object.values(comValue)[0];
@@ -395,14 +395,14 @@
                           let k = m.split("卤");
                           return (
                             eval(res) >=
-                              eval(
-                                handleFraction(k[0]) - handleFraction(k[1])
-                              ) &&
+                            eval(
+                              handleFraction(k[0]) - handleFraction(k[1])
+                            ) &&
                             eval(res) <=
-                              eval(
-                                Number(handleFraction(k[0])) +
-                                  Number(handleFraction(k[1]))
-                              )
+                            eval(
+                              Number(handleFraction(k[0])) +
+                              Number(handleFraction(k[1]))
+                            )
                           );
                         } else {
                           return handleMoreParam(res, m, "卤");
@@ -411,12 +411,12 @@
                         let k = m.split("卤");
                         return (
                           eval(res) >=
-                            eval(handleFraction(k[0]) - handleFraction(k[1])) &&
+                          eval(handleFraction(k[0]) - handleFraction(k[1])) &&
                           eval(res) <=
-                            eval(
-                              Number(handleFraction(k[0])) +
-                                Number(handleFraction(k[1]))
-                            )
+                          eval(
+                            Number(handleFraction(k[0])) +
+                            Number(handleFraction(k[1]))
+                          )
                         );
                       }
                     } else if (m.includes("锛�")) {
@@ -506,8 +506,8 @@
             // 濡傛灉妫�楠屽�肩被鍨嬫槸鏁板瓧杈撳叆妗�
             let tell = currentSample.insProduct.find((m) => m.id == item.i).tell
               ? currentSample.insProduct
-                  .find((m) => m.id == item.i)
-                  .tell.split("&")
+                .find((m) => m.id == item.i)
+                .tell.split("&")
               : null;
             isPoint =
               tell &&
@@ -607,9 +607,8 @@
             // 澶勭悊excel鍑芥暟鍙傛暟鍒楄〃
             item.valueList.forEach((a) => {
               valueList.push({
-                name: `${comparisonList.find((e) => e.value == a.c).label}${
-                  a.r + 1
-                }`,
+                name: `${comparisonList.find((e) => e.value == a.c).label}${a.r + 1
+                  }`,
                 value: 0,
               });
             });
@@ -796,7 +795,7 @@
         return (
           item >= eval(handleFraction(k[0]) - handleFraction(k[1])) &&
           item <=
-            eval(Number(handleFraction(k[0])) + Number(handleFraction(k[1])))
+          eval(Number(handleFraction(k[0])) + Number(handleFraction(k[1])))
         );
       case "~":
         let j = str.split("~");
@@ -1249,6 +1248,21 @@
     console.log("error", error);
   }
 }
+
+/**
+ * 瀹炵幇骞虫柟鏍瑰嚱鏁� SQRT
+ * @param {number} num 瑕佸紑骞虫柟鐨勬暟瀛�
+ * @returns {number} 绠楁湳骞虫柟鏍癸紝璐熸暟杩斿洖 NaN
+ */
+function SQRT(num) {
+  // 瀹炴暟鑼冨洿鍐咃紝璐熸暟娌℃湁骞虫柟鏍癸紝杩斿洖 NaN
+  if (num < 0) {
+    return NaN;
+  }
+  // 璋冪敤 JS 鍘熺敓楂樼簿搴﹀钩鏂规牴鍑芥暟
+  return Math.sqrt(num);
+}
+
 /**
  * 鑾峰彇鍖呭惈 ABC 瀛楃鐨勫垪琛�
  *
@@ -1269,6 +1283,7 @@
       "INT",
       "IF",
       "LOG",
+      "SQRT"
     ];
     // 鏇挎崲鐗规畩瀛楃
     f = f

--
Gitblit v1.9.3