zhangxc 5 tahun lalu
induk
melakukan
8017ad4377
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      src/components/recordInput/AddRecordItem.vue

+ 3 - 2
src/components/recordInput/AddRecordItem.vue

@@ -421,7 +421,7 @@
           for(let i = 0; i < this.multipleSelection.length; i++){
             const item = this.multipleSelection[i]
             console.log('item',item)
-            if(item.value ===''&&item.isUsed =="1"){
+            if((item.scoreRun === null || item.value ==='')&&item.isUsed =="1"){
               this.$message({
                 message:`请填写${item.hospitalName}终末扣分值`,
                 type:'warning',
@@ -430,7 +430,8 @@
               this.canSave = true
               return
             }
-            if(item.scoreRun ===''&&item.isUsedRun =="1"){
+            console.log('scoreRun.',item.scoreRun,'item.isUsedRun',item.isUsedRun)
+            if((item.scoreRun === null || item.scoreRun ==='')&&item.isUsedRun =="1"){
               this.$message({
                 message:`请填写请填写${item.hospitalName}运行扣分值`,
                 type:'warning',