zouyu
2024-01-19 4e2b8719ff4296831a9ef05faa6e91ce6a7b0bc7
src/views/quality/rawMaterial/rawMaterial-form.vue
@@ -173,9 +173,9 @@
                        <template slot-scope="scope">
                          <div v-if="!scope.row.children">
                          <el-tooltip :disabled="scope.row.deviceId != null" class="item" effect="dark" content="请先选择设备!" placement="top-start">
                            <!-- <el-autocomplete clearable
                            <el-autocomplete clearable
                            :disabled="scope.row.deviceId == null ||  (dataForm.id!=null&&resultVal!=null)"
                            @blur="changeState(scope.row,scope.$index)"
                            @input="changeState(scope.row,scope.$index)"
                            v-model="scope.row.testValueList[index]"
                            :fetch-suggestions="querySearch"
                            placeholder="请输入或选择检测值" >
@@ -183,9 +183,9 @@
                            <template slot-scope="{ item }">
                                <div>{{ item.value }}</div>
                            </template>
                            </el-autocomplete> -->
                            </el-autocomplete>
                              <el-select style="width:100%" filterable
                              <!-- <el-select style="width:100%" filterable
                              :disabled="scope.row.deviceId == null ||  (dataForm.id!=null&&resultVal!=null)"
                              v-model="scope.row.testValueList[index]"
                              placeholder="请输入或选择检测值"
@@ -196,7 +196,7 @@
                              >
                                <el-option label="是" value="是"/>
                                <el-option label="否" value="否"/>
                              </el-select>
                              </el-select> -->
                            </el-tooltip>
                          </div>
                        </template>
@@ -887,7 +887,6 @@
        console.log(e.target.value);
      },
      changeState(row, index) {
        this.$nextTick(()=>{
            if(row){
                let isTrue = true
                for(var i=0;i<row.testValueList.length;i++){
@@ -895,7 +894,7 @@
                let reg = /(^-?[0-9]{1,6}$)|(^-?[0-9]{1,6}[\.]{1}[0-9]{1,3}$)/
                if(!reg.test(val) && !['是','否'].includes(val)){
                    row.testValueList[i] = null
                    this.$message.error("请输入数字或选择是否")
                  this.$message.error("请输入6位数字或选择是否")
                    isTrue = false
                }
                }
@@ -923,7 +922,6 @@
                this.init(this.dataForm.id)
            })
          }
        })
      },
      // 删除子项目
      delChildren(row,index,isParent) {