From 2a1ea6a1c5b2210b3ac751e344517741cfbac2dd Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期五, 19 一月 2024 10:59:31 +0800 Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before --- src/views/quality/rawMaterial/rawMaterial-form.vue | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/views/quality/rawMaterial/rawMaterial-form.vue b/src/views/quality/rawMaterial/rawMaterial-form.vue index 2e84932..8594c4b 100644 --- a/src/views/quality/rawMaterial/rawMaterial-form.vue +++ b/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) + } } }, //娣诲姞瀛愰」鐩� -- Gitblit v1.9.3