licp
2024-05-28 df85764203947543c0ced0a0cdf8b7299f6b40ff
src/views/quality/rawMaterial/rawMaterial-form.vue
@@ -205,15 +205,16 @@
                            <el-tooltip :disabled="scope.row.deviceId != null" class="item" effect="dark" content="请先选择设备!" placement="top-start">
                                <el-autocomplete clearable
                                cache="false"
                                ref="testValueInput"
                                @blur="checkTestValues(scope.row,'blur',$event)"
                                @select="checkTestValues(scope.row,'select',$event)"
                                :disabled="scope.row.deviceId == null ||  (dataForm.id!=null&&(resultVal!=null && resultVal!=''))"
                                v-model="scope.row.testValueList[index]"
                                :fetch-suggestions="querySearch"
                                placeholder="请输入或选择检测值"
                                :ref="`detectionValue${index}`+scope.$index"
                                :id="`detectionValue${index}`+scope.$index"
                                @keyup.native="moveFocus($event, scope.$index, `detectionValue${index}`)">
                                @keyup.native="moveFocus($event, scope.$index, `detectionValue${index}`)"
                                popper-class="no-keyboard-events">
                                <template slot-scope="{ item }">
                                    <div>{{ item.value }}</div>
                                </template>
@@ -300,7 +301,7 @@
            </div>
            <el-table :data="processConfigFileTableData" height="260px">
              <el-table-column
                prop="rawInsNo"
                prop="no"
                align="center"
                width="120"
                label="原材料检验编号"
@@ -330,11 +331,12 @@
              ></el-table-column>
              <el-table-column align="center" label="操作">
                <template slot-scope="scope">
                    <!-- :disabled="(resultVal!=null && resultVal!='')" -->
                  <el-button
                    @click="delProcessConfigFile(scope.row)"
                    type="text"
                    size="small"
                    :disabled="(resultVal!=null && resultVal!='')"
                    >删除</el-button
                  >
                  <el-button
@@ -1095,6 +1097,9 @@
            return
            }
            document.getElementById(key + index).blur()
            if(key.includes('detectionValue')){
                this.$refs[key + index][0].activated = false;
            }
            let i = 0;
            while (true){
                let dom = document.getElementById(key + (index - 1-i))
@@ -1116,6 +1121,9 @@
            return
            }
            document.getElementById(key + index).blur()
            if(key.includes('detectionValue')){
                this.$refs[key + index][0].activated = false;
            }
            this.$nextTick(() => {
            let i = 0;
            while (true){
@@ -1184,6 +1192,9 @@
</script>
<style>
/* .no-keyboard-events * {
  pointer-events: none;
} */
.rawMaterial-detail {
  width: 100%;
  height: 530px;