gaoluyang
2024-07-23 060f4d49e782f1d6f93d554d2825b8c70c8c7f11
装备-原材料下单前端页面
已修改1个文件
801 ■■■■ 文件已修改
src/components/do/b1-material-ins-order/customs-inspection.vue 801 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-material-ins-order/customs-inspection.vue
@@ -158,8 +158,10 @@
          </div>
        </div>
      </div>
      <el-table class="el-table sampleTable" ref="sampleTable" :data="sampleList" height="250px" tooltip-effect="dark"
                border @selection-change="selectSample" highlight-current-row @row-click="rowClick" style="margin-bottom: 10px;">
      <el-table class="el-table sampleTable" ref="sampleTable"
                :data="sampleList" height="250px" tooltip-effect="dark"
                border @selection-change="selectSample"
                highlight-current-row @row-click="rowClick" style="margin-bottom: 10px;">
        <el-table-column type="selection" width="60" :selectable="selectable" v-if="active==1"></el-table-column>
        <el-table-column type="index" label="序号" width="65" align="center"></el-table-column>
        <el-table-column prop="sample" label="样品名称" align="center" min-width="100">
@@ -219,9 +221,14 @@
        </el-table-column>
        <el-table-column prop="proNum" label="待检项数量" width="105" align="center"></el-table-column>
      </el-table>
      <el-table class="el-table" ref="productTable" :data="productList" height="380px" tooltip-effect="dark" border
                @selection-change="selectProduct" style="margin-bottom: 10px;" @select="upProductSelect"
                :row-class-name="tableRowClassName" v-loading="getProductLoad" @select-all="handleAll">
      <el-table class="el-table" ref="productTable" :data="productList"
                height="380px" tooltip-effect="dark" border
                style="margin-bottom: 10px;"
                @selection-change="selectProduct"
                @select="upProductSelect"
                :row-class-name="tableRowClassName"
                @select-all="handleAll"
                v-loading="getProductLoad">
        <el-table-column type="selection" width="65" :selectable="selectable" v-if="active==1"></el-table-column>
        <el-table-column prop="inspectionItem" label="检验项" min-width="140" show-overflow-tooltip>
          <template slot="header" slot-scope="scope">
@@ -382,251 +389,251 @@
    <equipConfig :currentId="currentId" v-if="equipConfigShow" :active="active" />
    <cableConfig v-if="cableConfigShow" :active="active" />
    <!--    单选特殊值处理框-->
    <el-dialog title="检测到特殊项,请作出以下选择" :visible.sync="bsm1Dia" width="500px" :show-close="false"
               :before-close="beforeClose">
      <div class="body" style="max-height: 60vh;">
        <el-row v-if="bsm1">
          <el-col class="search_thing" :span="22" style="height: initial;margin: 5px 0;">
            <div class="search_label"><span class="required-span">* </span>选项:</div>
            <div class="search_input">
              <el-radio-group v-model="bsm1Val" @input="upBsm1">
                <el-radio v-for="(a, ai) in JSON.parse(bsmRow.section)" :key="ai" :label="a" style="margin-bottom: 2px;margin-top: 2px;"></el-radio>
              </el-radio-group>
            </div>
          </el-col>
          <el-col class="search_thing" :span="22" style="height: initial;margin: 5px 0;">
            <div class="search_label">要求值:</div>
            <div class="search_input" v-show="bsm1Val!==null&&bsm1Val!==''">
              <el-radio-group v-model="bsm1Val" @input="upBsm1">
                <el-radio v-for="(a, ai) in JSON.parse(bsmRow.section)" :key="ai"
                          :label="a">{{JSON.parse(bsmRow.ask)[ai]}}</el-radio>
              </el-radio-group>
            </div>
          </el-col>
        </el-row>
        <el-row v-if="bsm2">
          <el-col class="search_thing" :span="22">
            <div class="search_label" style="width: 220px;"><span class="required-span">* </span>样品熔接配对数量:</div>
            <div class="search_input">
              <el-input-number size="medium" v-model="bsm2Val" :min="1" :max="bsm2Val3.length" :precision="0"
                               style="width: 70%;" :controls="false" @change="bsm2Up"></el-input-number>
              <span>MAX:{{bsm2Val3.length}}</span>
            </div>
          </el-col>
          <el-col style="margin-top: 6px;">
            <el-col v-for="(a,ai) in bsm2Val2" :key="ai">
              <el-col :span="10">
                <el-select v-model="a[0]" placeholder="请选择" size="small" style="width: 100%;">
                  <el-option v-for="(item,index) in sampleList" :key="index" :label="index+1" :value="index+1">
                  </el-option>
                </el-select>
              </el-col>
              <!-- <el-col :span="10" class="pairing">{{a[0]}}</el-col> -->
              <el-col :span="4" class="pairing" style="border: 0;color: rgba(0, 0, 0, 0.2);">——</el-col>
              <el-col :span="10">
                <el-select v-model="a[1]" placeholder="请选择" size="small" style="width: 100%;">
                  <el-option v-for="(item,index) in sampleList" :key="index" :label="index+1" :value="index+1">
                  </el-option>
                </el-select>
              </el-col>
            </el-col>
          </el-col>
        </el-row>
      </div>
    </el-dialog>
<!--    <el-dialog title="检测到特殊项,请作出以下选择" :visible.sync="bsm1Dia" width="500px" :show-close="false"-->
<!--               :before-close="beforeClose">-->
<!--      <div class="body" style="max-height: 60vh;">-->
<!--        <el-row v-if="bsm1">-->
<!--          <el-col class="search_thing" :span="22" style="height: initial;margin: 5px 0;">-->
<!--            <div class="search_label"><span class="required-span">* </span>选项:</div>-->
<!--            <div class="search_input">-->
<!--              <el-radio-group v-model="bsm1Val" @input="upBsm1">-->
<!--                <el-radio v-for="(a, ai) in JSON.parse(bsmRow.section)" :key="ai" :label="a" style="margin-bottom: 2px;margin-top: 2px;"></el-radio>-->
<!--              </el-radio-group>-->
<!--            </div>-->
<!--          </el-col>-->
<!--          <el-col class="search_thing" :span="22" style="height: initial;margin: 5px 0;">-->
<!--            <div class="search_label">要求值:</div>-->
<!--            <div class="search_input" v-show="bsm1Val!==null&&bsm1Val!==''">-->
<!--              <el-radio-group v-model="bsm1Val" @input="upBsm1">-->
<!--                <el-radio v-for="(a, ai) in JSON.parse(bsmRow.section)" :key="ai"-->
<!--                          :label="a">{{JSON.parse(bsmRow.ask)[ai]}}</el-radio>-->
<!--              </el-radio-group>-->
<!--            </div>-->
<!--          </el-col>-->
<!--        </el-row>-->
<!--        <el-row v-if="bsm2">-->
<!--          <el-col class="search_thing" :span="22">-->
<!--            <div class="search_label" style="width: 220px;"><span class="required-span">* </span>样品熔接配对数量:</div>-->
<!--            <div class="search_input">-->
<!--              <el-input-number size="medium" v-model="bsm2Val" :min="1" :max="bsm2Val3.length" :precision="0"-->
<!--                               style="width: 70%;" :controls="false" @change="bsm2Up"></el-input-number>-->
<!--              <span>MAX:{{bsm2Val3.length}}</span>-->
<!--            </div>-->
<!--          </el-col>-->
<!--          <el-col style="margin-top: 6px;">-->
<!--            <el-col v-for="(a,ai) in bsm2Val2" :key="ai">-->
<!--              <el-col :span="10">-->
<!--                <el-select v-model="a[0]" placeholder="请选择" size="small" style="width: 100%;">-->
<!--                  <el-option v-for="(item,index) in sampleList" :key="index" :label="index+1" :value="index+1">-->
<!--                  </el-option>-->
<!--                </el-select>-->
<!--              </el-col>-->
<!--              &lt;!&ndash; <el-col :span="10" class="pairing">{{a[0]}}</el-col> &ndash;&gt;-->
<!--              <el-col :span="4" class="pairing" style="border: 0;color: rgba(0, 0, 0, 0.2);">——</el-col>-->
<!--              <el-col :span="10">-->
<!--                <el-select v-model="a[1]" placeholder="请选择" size="small" style="width: 100%;">-->
<!--                  <el-option v-for="(item,index) in sampleList" :key="index" :label="index+1" :value="index+1">-->
<!--                  </el-option>-->
<!--                </el-select>-->
<!--              </el-col>-->
<!--            </el-col>-->
<!--          </el-col>-->
<!--        </el-row>-->
<!--      </div>-->
<!--    </el-dialog>-->
    <!--    全选特殊值处理框-->
    <el-dialog title="检测到特殊项,请作出以下选择" :visible.sync="bsm1DiaAll" width="500px" :show-close="false"
               :before-close="beforeClose">
      <div class="body" style="max-height: 60vh;" v-for="(item, index) in bsm1DiaList" :key="index">
        <el-row v-if="item.bsm1">
          <el-col class="search_thing" :span="22" style="height: initial;margin: 5px 0;">
            <div class="search_label"><span class="required-span">* </span>选项:</div>
            <div class="search_input">
              <el-radio-group v-model="item.bsm1Val" @input="upBsmAll(item)">
                <el-radio v-for="(a, ai) in JSON.parse(item.bsmRow.section)" :key="ai" :label="a" style="margin-bottom: 2px;margin-top: 2px;"></el-radio>
              </el-radio-group>
            </div>
          </el-col>
          <el-col class="search_thing" :span="22" style="height: initial;margin: 5px 0;">
            <div class="search_label">要求值:</div>
            <div class="search_input" v-show="item.bsm1Val!==null&&item.bsm1Val!==''">
              <el-radio-group v-model="item.bsm1Val" @input="upBsmAll(item)">
                <el-radio v-for="(a, ai) in JSON.parse(item.bsmRow.section)" :key="ai"
                          :label="a">{{JSON.parse(item.bsmRow.ask)[ai]}}</el-radio>
              </el-radio-group>
            </div>
          </el-col>
        </el-row>
        <el-row v-if="item.bsm2">
          <el-col class="search_thing" :span="22">
            <div class="search_label" style="width: 220px;"><span class="required-span">* </span>样品熔接配对数量:</div>
            <div class="search_input">
              <el-input-number size="medium" v-model="item.bsm2Val" :min="1" :max="item.bsm2Val3.length" :precision="0"
                               style="width: 70%;" :controls="false" @change="bsm2Up"></el-input-number>
              <span>MAX:{{item.bsm2Val3.length}}</span>
            </div>
          </el-col>
          <el-col style="margin-top: 6px;">
            <el-col v-for="(a,ai) in item.bsm2Val2" :key="ai">
              <el-col :span="10">
                <el-select v-model="a[0]" placeholder="请选择" size="small" style="width: 100%;">
                  <el-option v-for="(item,index) in item.sampleList" :key="index" :label="index+1" :value="index+1">
                  </el-option>
                </el-select>
              </el-col>
              <!-- <el-col :span="10" class="pairing">{{a[0]}}</el-col> -->
              <el-col :span="4" class="pairing" style="border: 0;color: rgba(0, 0, 0, 0.2);">——</el-col>
              <el-col :span="10">
                <el-select v-model="a[1]" placeholder="请选择" size="small" style="width: 100%;">
                  <el-option v-for="(item,index) in item.sampleList" :key="index" :label="index+1" :value="index+1">
                  </el-option>
                </el-select>
              </el-col>
              <!-- <el-col :span="10" class="pairing">{{a[1]}}</el-col> -->
            </el-col>
          </el-col>
        </el-row>
      </div>
    </el-dialog>
    <el-dialog title="特殊值填写" :visible.sync="bsm3Dia" width="800px" :show-close="false">
      <el-table
        :data="editTable"
        style="width: 100%">
        <!-- inspectionItemList -->
        <el-table-column
          prop="inspectionItemList"
          label="检验项"
          width="180">
        </el-table-column>
        <el-table-column
          prop="sampleCode"
          label="样品编号"
          width="180">
        </el-table-column>
        <el-table-column
          prop="model"
          label="样品型号"
          width="180">
        </el-table-column>
        <el-table-column
          prop="symbolItem"
          label="识别符号">
        </el-table-column>
        <el-table-column
          prop="value"
          label="识别符值">
          <template slot-scope="scope">
            <el-input v-model="scope.row.value" placeholder="请输入" size="small"></el-input>
          </template>
        </el-table-column>
      </el-table>
      <span slot="footer" class="dialog-footer">
        <el-row>
          <el-button @click="bsm3Dia=false">取 消</el-button>
          <el-button type="primary" @click="save0" :loading="saveLoad">确 定</el-button>
        </el-row>
      </span>
    </el-dialog>
    <el-dialog title="温度循环要求填写" :visible.sync="circulateShow" width="900px" :before-close="beforeCirculateShowClose" :show-close="false">
      <div class="search" style="display: flex;background: transparent;">
        <div class="search_thing">
          <div class="search_label">保温时间:</div>
          <div class="search_input">
            <el-input v-model="circulateForm.entrustTime" size="small" placeholder="" type="number"></el-input>
          </div>
        </div>
        <div class="search_thing">
          <div class="search_label">循环次数:</div>
          <div class="search_input">
            <el-input v-model="circulateForm.entrustNum" size="small" placeholder="" type="number"></el-input>
          </div>
        </div>
        <div class="search_thing">
          <div class="search_label">温度点:</div>
          <div class="search_input">
            <el-input @blur="changeTemperatureData" v-model="circulateForm.entrustPoint" size="small" placeholder="" type="number"></el-input>
          </div>
        </div>
      </div>
      <div class="circulateTable">
        <div class="opticalProject">
          <div style="line-height: 30px;">光纤项目</div>
          <el-divider></el-divider>
          <div>
            <el-table
              ref="multipleTable"
              border
              :header-cell-style="{'text-align':'center'}"
              :cell-style="{'text-align':'center'}"
              :data="opticalProject"
              tooltip-effect="dark"
              style="width: 100%"
              @row-click="rowClickOptical"
              @select="selectOpticalProject"
              @select-all="selectAllOptical"
              @selection-change="handleSelectionChange">
              <el-table-column
                type="selection"
                width="55">
              </el-table-column>
              <el-table-column prop="value" label="光纤项目" show-overflow-tooltip></el-table-column>
            </el-table>
          </div>
        </div>
        <div class="temperatureList">
          <div class="temperatureListTitle">
            <span>温度点集合</span>
            <span>
              <el-button type="primary" size="mini" @click="addTemperatureData">新增</el-button>
              <el-button size="mini" @click="deleteTemperatureData">删除</el-button>
            </span>
          </div>
          <el-divider></el-divider>
          <el-table
            :data="temperatureData"
            border
            :header-cell-style="{'text-align':'center'}"
            :cell-style="{'text-align':'center'}"
            style="width: 100%">
            <el-table-column prop="date" label="温度点(℃)" width="120px">
              <template slot-scope="scope">
                <el-input size="small" v-model="scope.row.temperaturePoint" clearable placeholder="请输入" @change="changeTemperature"></el-input>
              </template>
            </el-table-column>
            <el-table-column prop="name" label="要求(dB/Km)">
              <template slot-scope="scope">
                <span>x</span>
                <el-select v-model="scope.row.askSymbol" placeholder="请选择" size="small" style="width: 120px" @change="changeTemperature">
                  <el-option v-for="item in temperatureDataList" :key="item.value" :label="item.label" :value="item.value">
                  </el-option>
                </el-select>
                <el-input size="small" v-model="scope.row.askNum" clearable placeholder="请输入" style="width: 120px" @change="changeTemperature"></el-input>
              </template>
            </el-table-column>
          </el-table>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="cleanSpliceData">取消</el-button>
        <el-button type="primary" @click="spliceData">保存</el-button>
      </span>
    </el-dialog>
    <el-dialog :title="temperatureTitle" :visible.sync="temperatureShow" width="260px" :before-close="temperatureShowClose" :show-close="false">
      <div>
        <div v-if="isShowInput" style="margin-bottom: 6px">
          <span>循环次数:</span>
          <!-- <el-input size="small" type="number" v-model="temperatureTestNum" style="width: 120px"></el-input> -->
          <el-input-number v-model="temperatureTestNum" :min="2" :max="1000000" size="small" label=""></el-input-number>
        </div>
        <el-checkbox-group v-model="temperatureTest" @change="handleTemperatureTestChange" style="display: flex;flex-direction: column;">
          <el-checkbox v-for="item in temperatureList" :label="item" :key="item" style="margin-bottom: 6px">{{item}}</el-checkbox>
        </el-checkbox-group>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="cleanTemperatureTest">取消</el-button>
        <el-button type="primary" @click="spliceTemperatureTest">保存</el-button>
      </span>
    </el-dialog>
<!--    <el-dialog title="检测到特殊项,请作出以下选择" :visible.sync="bsm1DiaAll" width="500px" :show-close="false"-->
<!--               :before-close="beforeClose">-->
<!--      <div class="body" style="max-height: 60vh;" v-for="(item, index) in bsm1DiaList" :key="index">-->
<!--        <el-row v-if="item.bsm1">-->
<!--          <el-col class="search_thing" :span="22" style="height: initial;margin: 5px 0;">-->
<!--            <div class="search_label"><span class="required-span">* </span>选项:</div>-->
<!--            <div class="search_input">-->
<!--              <el-radio-group v-model="item.bsm1Val" @input="upBsmAll(item)">-->
<!--                <el-radio v-for="(a, ai) in JSON.parse(item.bsmRow.section)" :key="ai" :label="a" style="margin-bottom: 2px;margin-top: 2px;"></el-radio>-->
<!--              </el-radio-group>-->
<!--            </div>-->
<!--          </el-col>-->
<!--          <el-col class="search_thing" :span="22" style="height: initial;margin: 5px 0;">-->
<!--            <div class="search_label">要求值:</div>-->
<!--            <div class="search_input" v-show="item.bsm1Val!==null&&item.bsm1Val!==''">-->
<!--              <el-radio-group v-model="item.bsm1Val" @input="upBsmAll(item)">-->
<!--                <el-radio v-for="(a, ai) in JSON.parse(item.bsmRow.section)" :key="ai"-->
<!--                          :label="a">{{JSON.parse(item.bsmRow.ask)[ai]}}</el-radio>-->
<!--              </el-radio-group>-->
<!--            </div>-->
<!--          </el-col>-->
<!--        </el-row>-->
<!--        <el-row v-if="item.bsm2">-->
<!--          <el-col class="search_thing" :span="22">-->
<!--            <div class="search_label" style="width: 220px;"><span class="required-span">* </span>样品熔接配对数量:</div>-->
<!--            <div class="search_input">-->
<!--              <el-input-number size="medium" v-model="item.bsm2Val" :min="1" :max="item.bsm2Val3.length" :precision="0"-->
<!--                               style="width: 70%;" :controls="false" @change="bsm2Up"></el-input-number>-->
<!--              <span>MAX:{{item.bsm2Val3.length}}</span>-->
<!--            </div>-->
<!--          </el-col>-->
<!--          <el-col style="margin-top: 6px;">-->
<!--            <el-col v-for="(a,ai) in item.bsm2Val2" :key="ai">-->
<!--              <el-col :span="10">-->
<!--                <el-select v-model="a[0]" placeholder="请选择" size="small" style="width: 100%;">-->
<!--                  <el-option v-for="(item,index) in item.sampleList" :key="index" :label="index+1" :value="index+1">-->
<!--                  </el-option>-->
<!--                </el-select>-->
<!--              </el-col>-->
<!--              &lt;!&ndash; <el-col :span="10" class="pairing">{{a[0]}}</el-col> &ndash;&gt;-->
<!--              <el-col :span="4" class="pairing" style="border: 0;color: rgba(0, 0, 0, 0.2);">——</el-col>-->
<!--              <el-col :span="10">-->
<!--                <el-select v-model="a[1]" placeholder="请选择" size="small" style="width: 100%;">-->
<!--                  <el-option v-for="(item,index) in item.sampleList" :key="index" :label="index+1" :value="index+1">-->
<!--                  </el-option>-->
<!--                </el-select>-->
<!--              </el-col>-->
<!--              &lt;!&ndash; <el-col :span="10" class="pairing">{{a[1]}}</el-col> &ndash;&gt;-->
<!--            </el-col>-->
<!--          </el-col>-->
<!--        </el-row>-->
<!--      </div>-->
<!--    </el-dialog>-->
<!--    <el-dialog title="特殊值填写" :visible.sync="bsm3Dia" width="800px" :show-close="false">-->
<!--      <el-table-->
<!--        :data="editTable"-->
<!--        style="width: 100%">-->
<!--        &lt;!&ndash; inspectionItemList &ndash;&gt;-->
<!--        <el-table-column-->
<!--          prop="inspectionItemList"-->
<!--          label="检验项"-->
<!--          width="180">-->
<!--        </el-table-column>-->
<!--        <el-table-column-->
<!--          prop="sampleCode"-->
<!--          label="样品编号"-->
<!--          width="180">-->
<!--        </el-table-column>-->
<!--        <el-table-column-->
<!--          prop="model"-->
<!--          label="样品型号"-->
<!--          width="180">-->
<!--        </el-table-column>-->
<!--        <el-table-column-->
<!--          prop="symbolItem"-->
<!--          label="识别符号">-->
<!--        </el-table-column>-->
<!--        <el-table-column-->
<!--          prop="value"-->
<!--          label="识别符值">-->
<!--          <template slot-scope="scope">-->
<!--            <el-input v-model="scope.row.value" placeholder="请输入" size="small"></el-input>-->
<!--          </template>-->
<!--        </el-table-column>-->
<!--      </el-table>-->
<!--      <span slot="footer" class="dialog-footer">-->
<!--        <el-row>-->
<!--          <el-button @click="bsm3Dia=false">取 消</el-button>-->
<!--          <el-button type="primary" @click="save0" :loading="saveLoad">确 定</el-button>-->
<!--        </el-row>-->
<!--      </span>-->
<!--    </el-dialog>-->
<!--    <el-dialog title="温度循环要求填写" :visible.sync="circulateShow" width="900px" :before-close="beforeCirculateShowClose" :show-close="false">-->
<!--      <div class="search" style="display: flex;background: transparent;">-->
<!--        <div class="search_thing">-->
<!--          <div class="search_label">保温时间:</div>-->
<!--          <div class="search_input">-->
<!--            <el-input v-model="circulateForm.entrustTime" size="small" placeholder="" type="number"></el-input>-->
<!--          </div>-->
<!--        </div>-->
<!--        <div class="search_thing">-->
<!--          <div class="search_label">循环次数:</div>-->
<!--          <div class="search_input">-->
<!--            <el-input v-model="circulateForm.entrustNum" size="small" placeholder="" type="number"></el-input>-->
<!--          </div>-->
<!--        </div>-->
<!--        <div class="search_thing">-->
<!--          <div class="search_label">温度点:</div>-->
<!--          <div class="search_input">-->
<!--            <el-input @blur="changeTemperatureData" v-model="circulateForm.entrustPoint" size="small" placeholder="" type="number"></el-input>-->
<!--          </div>-->
<!--        </div>-->
<!--      </div>-->
<!--      <div class="circulateTable">-->
<!--        <div class="opticalProject">-->
<!--          <div style="line-height: 30px;">光纤项目</div>-->
<!--          <el-divider></el-divider>-->
<!--          <div>-->
<!--            <el-table-->
<!--              ref="multipleTable"-->
<!--              border-->
<!--              :header-cell-style="{'text-align':'center'}"-->
<!--              :cell-style="{'text-align':'center'}"-->
<!--              :data="opticalProject"-->
<!--              tooltip-effect="dark"-->
<!--              style="width: 100%"-->
<!--              @row-click="rowClickOptical"-->
<!--              @select="selectOpticalProject"-->
<!--              @select-all="selectAllOptical"-->
<!--              @selection-change="handleSelectionChange">-->
<!--              <el-table-column-->
<!--                type="selection"-->
<!--                width="55">-->
<!--              </el-table-column>-->
<!--              <el-table-column prop="value" label="光纤项目" show-overflow-tooltip></el-table-column>-->
<!--            </el-table>-->
<!--          </div>-->
<!--        </div>-->
<!--        <div class="temperatureList">-->
<!--          <div class="temperatureListTitle">-->
<!--            <span>温度点集合</span>-->
<!--            <span>-->
<!--              <el-button type="primary" size="mini" @click="addTemperatureData">新增</el-button>-->
<!--              <el-button size="mini" @click="deleteTemperatureData">删除</el-button>-->
<!--            </span>-->
<!--          </div>-->
<!--          <el-divider></el-divider>-->
<!--          <el-table-->
<!--            :data="temperatureData"-->
<!--            border-->
<!--            :header-cell-style="{'text-align':'center'}"-->
<!--            :cell-style="{'text-align':'center'}"-->
<!--            style="width: 100%">-->
<!--            <el-table-column prop="date" label="温度点(℃)" width="120px">-->
<!--              <template slot-scope="scope">-->
<!--                <el-input size="small" v-model="scope.row.temperaturePoint" clearable placeholder="请输入" @change="changeTemperature"></el-input>-->
<!--              </template>-->
<!--            </el-table-column>-->
<!--            <el-table-column prop="name" label="要求(dB/Km)">-->
<!--              <template slot-scope="scope">-->
<!--                <span>x</span>-->
<!--                <el-select v-model="scope.row.askSymbol" placeholder="请选择" size="small" style="width: 120px" @change="changeTemperature">-->
<!--                  <el-option v-for="item in temperatureDataList" :key="item.value" :label="item.label" :value="item.value">-->
<!--                  </el-option>-->
<!--                </el-select>-->
<!--                <el-input size="small" v-model="scope.row.askNum" clearable placeholder="请输入" style="width: 120px" @change="changeTemperature"></el-input>-->
<!--              </template>-->
<!--            </el-table-column>-->
<!--          </el-table>-->
<!--        </div>-->
<!--      </div>-->
<!--      <span slot="footer" class="dialog-footer">-->
<!--        <el-button @click="cleanSpliceData">取消</el-button>-->
<!--        <el-button type="primary" @click="spliceData">保存</el-button>-->
<!--      </span>-->
<!--    </el-dialog>-->
<!--    <el-dialog :title="temperatureTitle" :visible.sync="temperatureShow" width="260px" :before-close="temperatureShowClose" :show-close="false">-->
<!--      <div>-->
<!--        <div v-if="isShowInput" style="margin-bottom: 6px">-->
<!--          <span>循环次数:</span>-->
<!--          &lt;!&ndash; <el-input size="small" type="number" v-model="temperatureTestNum" style="width: 120px"></el-input> &ndash;&gt;-->
<!--          <el-input-number v-model="temperatureTestNum" :min="2" :max="1000000" size="small" label=""></el-input-number>-->
<!--        </div>-->
<!--        <el-checkbox-group v-model="temperatureTest" @change="handleTemperatureTestChange" style="display: flex;flex-direction: column;">-->
<!--          <el-checkbox v-for="item in temperatureList" :label="item" :key="item" style="margin-bottom: 6px">{{item}}</el-checkbox>-->
<!--        </el-checkbox-group>-->
<!--      </div>-->
<!--      <span slot="footer" class="dialog-footer">-->
<!--        <el-button @click="cleanTemperatureTest">取消</el-button>-->
<!--        <el-button type="primary" @click="spliceTemperatureTest">保存</el-button>-->
<!--      </span>-->
<!--    </el-dialog>-->
  </div>
</template>
@@ -771,21 +778,21 @@
      currentMethod: null,
      isAskOnlyRead: false,
      sampleId: null,
      bsmRow: null,
      bsm1: false,
      bsm1Val: null,
      bsm1Dia: false,
      bsm1DiaAll: false,
      // bsmRow: null,
      // bsm1: false,
      // bsm1Val: null,
      // bsm1Dia: false,
      // bsm1DiaAll: false,
      equipConfigShow: false,
      cableConfigShow: false,
      bsm2: false,
      bsm2Val: null,
      bsm2Dia: false,
      bsm2Val2: [],
      bsm2Val3: [],
      bsmRow3: null,
      bsm3Val: null,
      bsm3Dia: false,
      // bsm2: false,
      // bsm2Val: null,
      // bsm2Dia: false,
      // bsm2Val2: [],
      // bsm2Val3: [],
      // bsmRow3: null,
      // bsm3Val: null,
      // bsm3Dia: false,
      total: 0,
      RTS: '',
      totalArr: [],
@@ -796,30 +803,30 @@
      inspectionItem:null,
      inspectionItemSubclass:null,
      methodS:null,
      circulateShow:false,
      circulateForm:{
        entrustTime: '',
        entrustNum: '',
        entrustPoint: ''
      },
      isBsm2Val2:false,
      opticalProject: [], // 温度循环弹框光纤项目列表
      opticalProjectList: [], // 温度循环弹框光纤项目选中的数组
      temperatureData: [], // 温度循环弹框温度点集合列表
      temperatureDataList: [
        {label: '<', value: '<'},
        {label: '≤', value: '≤'},
        {label: '=', value: '='},
        {label: '≥', value: '≥'},
        {label: '>', value: '>'},
      ],
      temperatureShow: false, // 温升试验检验项弹框
      temperatureTest: [],
      temperatureList: [],
      temperatureEngList: [],
      temperatureTitle: '',
      temperatureTestNum: '',
      isShowInput: false,
      // circulateShow:false,
      // circulateForm:{
      //   entrustTime: '',
      //   entrustNum: '',
      //   entrustPoint: ''
      // },
      // isBsm2Val2:false,
      // opticalProject: [], // 温度循环弹框光纤项目列表
      // opticalProjectList: [], // 温度循环弹框光纤项目选中的数组
      // temperatureData: [], // 温度循环弹框温度点集合列表
      // temperatureDataList: [
      //   {label: '<', value: '<'},
      //   {label: '≤', value: '≤'},
      //   {label: '=', value: '='},
      //   {label: '≥', value: '≥'},
      //   {label: '>', value: '>'},
      // ],
      // temperatureShow: false, // 温升试验检验项弹框
      // temperatureTest: [],
      // temperatureList: [],
      // temperatureEngList: [],
      // temperatureTitle: '',
      // temperatureTestNum: '',
      // isShowInput: false,
      temId: ''
    }
  },
@@ -1011,7 +1018,7 @@
        this.$message.error('请选择')
        return
      }
      this.spliceTemperatureTest()
      // this.spliceTemperatureTest()
    },
    cleanTemperatureTest () {
      this.temperatureTest = []
@@ -1044,7 +1051,7 @@
          throw this.$message.error(`${o.value + '波长没有配置20℃温度点'}`)
        }
      })
      this.spliceData()
      // this.spliceData()
    },
    handleTemperatureTestChange (value) {
@@ -1236,24 +1243,24 @@
      } else if (!this.sampleList.every(m => m.standardMethodListId)) {
        this.$message.error('请选择检验标准')
      } else {
        const select = this.selectTree.split(' - ')
        const productListSelected = this.productListSelected.some(item => item.inspectionItem === '温度循环')
        let isHaveBushing = ''
        this.sampleList.forEach(item => {
          if (!item.bushing || item.bushing.length === 0) {
            isHaveBushing = false
          }
        })
        console.log('isHaveBushing===', isHaveBushing)
        if (productListSelected && select[2] === '光缆' && isHaveBushing === false) {
          this.$message.error('光缆温度循环项目必须进行光纤配置')
          this.$refs.sampleTable.setCurrentRow(this.currentMethod, true)
          this.rowClick(this.currentMethod)
          this.sampleIds = [this.currentMethod.id]
          this.openConfig()
          return
        }
        // const select = this.selectTree.split(' - ')
        // const productListSelected = this.productListSelected.some(item => item.inspectionItem === '温度循环')
        // let isHaveBushing = ''
        // this.sampleList.forEach(item => {
        //   if (!item.bushing || item.bushing.length === 0) {
        //     isHaveBushing = false
        //   }
        // })
        // console.log('isHaveBushing===', isHaveBushing)
        // if (productListSelected && select[2] === '光缆' && isHaveBushing === false) {
        //   this.$message.error('光缆温度循环项目必须进行光纤配置')
        //
        //   this.$refs.sampleTable.setCurrentRow(this.currentMethod, true)
        //   this.rowClick(this.currentMethod)
        //   this.sampleIds = [this.currentMethod.id]
        //   this.openConfig()
        //   return
        // }
        let sampleList = this.HaveJson(this.sampleList)
        let projectNum = this.totalArr.filter(a => a.state == 1).length
        if(projectNum==0){
@@ -1781,34 +1788,34 @@
      this.$refs.productTable.toggleRowSelection(row, true);
    },
    upProductSelect(selection, row) {
      this.bsm1DiaList = []
      row.state = row.state == 1 ? 0 : 1
      if (row.bsm === '1' && row.section !== '' && row.section !== null && row.state === 1) {
        if (row.section.indexOf('[') > -1) {
          row.bsmRow = this.HaveJson(row)
        }
        row.bsm1 = true
        this.bsm1DiaList.push(row)
        this.bsm1DiaAll = true
      } else if (row.bsm === '1' && row.section !== '' && row.section !== null && row.state === 0) {
        row.bsm1 = false
      }
      if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && row.state === 1&&!this.isBsm2Val2) {
        this.bsm2 = true
        this.bsm1Dia = true
        if (this.bsm2Val2.length === 0) {
          this.bsm2Val = (this.sampleList.length - 1) * this.sampleList.length / 2
          this.computationalPairing(this.sampleList.length)
          this.bsm2Val2 = this.HaveJson(this.bsm2Val3)
        }
      } else if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && row.state === 1 && this.sampleList.length > 1) {
        this.bsm2 = false
      } else if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && this.sampleList.length < 2) {
        this.$message.error('样品数量不足够进行配对操作')
        row.state = row.state == 1 ? 0 : 1
        this.$refs.productTable.toggleRowSelection(row, false)
        return
      }
      // this.bsm1DiaList = []
      // row.state = row.state == 1 ? 0 : 1
      // if (row.bsm === '1' && row.section !== '' && row.section !== null && row.state === 1) {
      //   if (row.section.indexOf('[') > -1) {
      //     row.bsmRow = this.HaveJson(row)
      //   }
      //   row.bsm1 = true
      //   this.bsm1DiaList.push(row)
      //   this.bsm1DiaAll = true
      // } else if (row.bsm === '1' && row.section !== '' && row.section !== null && row.state === 0) {
      //   row.bsm1 = false
      // }
      // if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && row.state === 1&&!this.isBsm2Val2) {
      //   this.bsm2 = true
      //   this.bsm1Dia = true
      //   if (this.bsm2Val2.length === 0) {
      //     this.bsm2Val = (this.sampleList.length - 1) * this.sampleList.length / 2
      //     this.computationalPairing(this.sampleList.length)
      //     this.bsm2Val2 = this.HaveJson(this.bsm2Val3)
      //   }
      // } else if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && row.state === 1 && this.sampleList.length > 1) {
      //   this.bsm2 = false
      // } else if (row.bsm === '1' && row.inspectionItem === '光纤接头损耗' && this.sampleList.length < 2) {
      //   this.$message.error('样品数量不足够进行配对操作')
      //   row.state = row.state == 1 ? 0 : 1
      //   this.$refs.productTable.toggleRowSelection(row, false)
      //   return
      // }
      this.sampleList.map(item => {
        if (this.sampleIds.indexOf(item.id) > -1) {
          item.insProduct.map(m => {
@@ -1820,23 +1827,23 @@
        }
        return item
      })
      const select = this.selectTree.split(' - ')
      if (row.inspectionItem === '温度循环' && select[2] === '光缆' && row.state === 1) {
        this.circulateShow = true;
        return
      } else if (row.inspectionItem === '温度循环' && select[2] === '光缆' && row.state === 0) {
        this.circulateShow = false;
      }
      if ((row.inspectionItem === '温升试验' || row.inspectionItem === '热循环') && row.state === 1) {
        console.log('row---', row)
        this.temperatureTitle = `${row.inspectionItem}要求填写`
        this.isShowInput = row.inspectionItem === '热循环'
        this.temId = row.id
        this.temperatureShow = true;
        return
      } else if ((row.inspectionItem === '温升试验' || row.inspectionItem === '热循环') && row.state === 0) {
        this.temperatureShow = false;
      }
      // const select = this.selectTree.split(' - ')
      // if (row.inspectionItem === '温度循环' && select[2] === '光缆' && row.state === 1) {
      //   this.circulateShow = true;
      //   return
      // } else if (row.inspectionItem === '温度循环' && select[2] === '光缆' && row.state === 0) {
      //   this.circulateShow = false;
      // }
      // if ((row.inspectionItem === '温升试验' || row.inspectionItem === '热循环') && row.state === 1) {
      //   console.log('row---', row)
      //   this.temperatureTitle = `${row.inspectionItem}要求填写`
      //   this.isShowInput = row.inspectionItem === '热循环'
      //   this.temId = row.id
      //   this.temperatureShow = true;
      //   return
      // } else if ((row.inspectionItem === '温升试验' || row.inspectionItem === '热循环') && row.state === 0) {
      //   this.temperatureShow = false;
      // }
      this.getProNum()
    },
    searchProject () {
@@ -2095,52 +2102,52 @@
          return m
        })
      }
      this.bsmRow3 = [];
      this.bsm1DiaList = []
      this.productList.forEach(p => {
        if (p.bsm === '1' && p.section !== '' && p.section !== null && p.state === 1) {
          if (p.section.indexOf('[') > -1) {
            p.bsmRow = this.HaveJson(p)
          }
          p.bsm1 = true
          this.bsm1DiaList.push(p)
          this.bsm1DiaAll = true
        } else if (p.bsm === '1' && p.section !== '' && p.section !== null && p.state === 0) {
          p.bsm1 = false
        }
        if (p.bsm === '1' && p.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && p.state === 1&&!this.isBsm2Val2) {
          this.bsm2 = true
          this.bsm1Dia = true
          if (this.bsm2Val2.length === 0) {
            this.bsm2Val = (this.sampleList.length - 1) * this.sampleList.length / 2
            this.computationalPairing(this.sampleList.length)
            this.bsm2Val2 = this.HaveJson(this.bsm2Val3)
          }
        } else if (p.bsm === '1' && p.inspectionItem === '光纤接头损耗' && p.state === 1 && this.sampleList.length > 1) {
          this.bsm2 = false
        } else if (p.bsm === '1' && p.inspectionItem === '光纤接头损耗' && this.sampleList.length < 2) {
          this.$message.error('样品数量不足够进行配对操作')
          this.$refs.productTable.clearSelection()
          return
        }
        const select = this.selectTree.split(' - ')
        if (p.inspectionItem === '温度循环' && select[2] === '光缆' && p.state === 1) {
          this.circulateShow = true;
          return
        } else if (p.inspectionItem === '温度循环' && select[2] === '光缆' && p.state === 0) {
          this.circulateShow = false;
        }
        if ((p.inspectionItem === '温升试验' || p.inspectionItem === '热循环') && p.state === 1) {
          console.log('p---', p)
          this.temperatureTitle = `${p.inspectionItem}要求填写`
          this.isShowInput = p.inspectionItem === '热循环'
          this.temId = p.id
          this.temperatureShow = true;
          return
        } else if ((p.inspectionItem === '温升试验' || p.inspectionItem === '热循环') && p.state === 0) {
          this.temperatureShow = false;
        }
      })
      // this.bsmRow3 = [];
      // this.bsm1DiaList = []
      // this.productList.forEach(p => {
      //   if (p.bsm === '1' && p.section !== '' && p.section !== null && p.state === 1) {
      //     if (p.section.indexOf('[') > -1) {
      //       p.bsmRow = this.HaveJson(p)
      //     }
      //     p.bsm1 = true
      //     this.bsm1DiaList.push(p)
      //     this.bsm1DiaAll = true
      //   } else if (p.bsm === '1' && p.section !== '' && p.section !== null && p.state === 0) {
      //     p.bsm1 = false
      //   }
      //   if (p.bsm === '1' && p.inspectionItem === '光纤接头损耗' && this.sampleList.length > 1 && p.state === 1&&!this.isBsm2Val2) {
      //     this.bsm2 = true
      //     this.bsm1Dia = true
      //     if (this.bsm2Val2.length === 0) {
      //       this.bsm2Val = (this.sampleList.length - 1) * this.sampleList.length / 2
      //       this.computationalPairing(this.sampleList.length)
      //       this.bsm2Val2 = this.HaveJson(this.bsm2Val3)
      //     }
      //   } else if (p.bsm === '1' && p.inspectionItem === '光纤接头损耗' && p.state === 1 && this.sampleList.length > 1) {
      //     this.bsm2 = false
      //   } else if (p.bsm === '1' && p.inspectionItem === '光纤接头损耗' && this.sampleList.length < 2) {
      //     this.$message.error('样品数量不足够进行配对操作')
      //     this.$refs.productTable.clearSelection()
      //     return
      //   }
      //   const select = this.selectTree.split(' - ')
      //   if (p.inspectionItem === '温度循环' && select[2] === '光缆' && p.state === 1) {
      //     this.circulateShow = true;
      //     return
      //   } else if (p.inspectionItem === '温度循环' && select[2] === '光缆' && p.state === 0) {
      //     this.circulateShow = false;
      //   }
      //   if ((p.inspectionItem === '温升试验' || p.inspectionItem === '热循环') && p.state === 1) {
      //     console.log('p---', p)
      //     this.temperatureTitle = `${p.inspectionItem}要求填写`
      //     this.isShowInput = p.inspectionItem === '热循环'
      //     this.temId = p.id
      //     this.temperatureShow = true;
      //     return
      //   } else if ((p.inspectionItem === '温升试验' || p.inspectionItem === '热循环') && p.state === 0) {
      //     this.temperatureShow = false;
      //   }
      // })
      if (e.length > 0) {
        this.sampleList.map(item => {
          if (this.sampleIds.indexOf(item.id) > -1) {