zouyu
2024-01-19 2a1ea6a1c5b2210b3ac751e344517741cfbac2dd
src/views/quality/rawMaterial/rawMaterial-form.vue
@@ -189,6 +189,8 @@
                              :disabled="scope.row.deviceId == null ||  (dataForm.id!=null&&resultVal!=null)"
                              v-model="scope.row.testValueList[index]"
                              placeholder="请输入或选择检测值"
                              allow-create
                              default-first-option
                              @change="changeState(scope.row,scope.$index)"
                              @blur="selectBlur"
                              >
@@ -881,11 +883,10 @@
        }
      },
      selectBlur(e){
        console.log(e);
        console.log(e,e.target.tabIndex);
        console.log(e.target.value);
      },
      changeState(row, index) {
          console.log(row.testValueList);
          return
        this.$nextTick(()=>{
            if(row){
                let isTrue = true
@@ -907,16 +908,12 @@
            if (val === undefined || val === '' || val === null) {
                return
            }
            console.log(val);
            console.log(...row.testValueList);
            let obj = {
              deviceId: row.deviceId,
              rpId: row.rpId,
              testValue: val,
              note: row.note
            }
            console.log(obj);
            return
            updateRawInsProduct(obj).then(res => {
                if (res.data.code == 0) {
                    this.$message.success("更新成功")
@@ -942,7 +939,11 @@
          let childrenIndex = this.list[i].children.findIndex(el =>{
            return el.iid == row.iid
          })
          this.list[i].children.splice(childrenIndex,1)
          if(this.list[i].children.length<2){
            this.list.splice(i,1)
          }else{
              this.list[i].children.splice(childrenIndex,1)
          }
        }
      },
      //添加子项目