Browse Source

BUG修复

seimin 5 months ago
parent
commit
414a98b311

+ 2 - 2
src/app/components/configurationCenter/configuration-drug/configuration-drug.component.ts

@@ -175,12 +175,12 @@ export class ConfigurationDrugComponent implements OnInit {
175
       return;
175
       return;
176
     }
176
     }
177
 
177
 
178
-    if(this.activeDictionary.postData.drugsStartCheck[0].checked && !this.activeDictionary.postData.drugsStartCheckScanIds.length){
178
+    if(this.activeDictionary.postData.drugsStartCheck[0].checked && !this.activeDictionary.postData.drugsStartCheckScanIds.filter(v => v.checked).length){
179
       this.msg.create("warning", "请选择起点科室的核对方式!");
179
       this.msg.create("warning", "请选择起点科室的核对方式!");
180
       return;
180
       return;
181
     }
181
     }
182
 
182
 
183
-    if(this.activeDictionary.postData.drugsEndCheck[0].checked && !this.activeDictionary.postData.drugsEndCheckScanIds.length){
183
+    if(this.activeDictionary.postData.drugsEndCheck[0].checked && !this.activeDictionary.postData.drugsEndCheckScanIds.filter(v => v.checked).length){
184
       this.msg.create("warning", "请选择终点科室的核对方式!");
184
       this.msg.create("warning", "请选择终点科室的核对方式!");
185
       return;
185
       return;
186
     }
186
     }