seimin 2 anni fa
parent
commit
fcff10f202

+ 2 - 2
src/app/views/blood-products-config/blood-products-config.component.ts

@@ -126,9 +126,9 @@ export class BloodProductsConfigComponent implements OnInit {
126 126
       .subscribe((result) => {
127 127
         this.loading = false;
128 128
         if (result.status == 200) {
129
-          this.configs = result.list[0];
129
+          this.configs = result.list[0] || {};
130 130
           this.handoverMode = this.configs.handoverType?this.configs.handoverType.id:undefined;
131
-          this.checkModes = this.configs.checkType?[{label:this.configs.checkType.name, value: this.configs.checkType.id, checked: true}]:[];
131
+          this.checkModes = this.configs.checkType?[{label:this.configs.checkType.name, value: this.configs.checkType.id, checked: true}]:[{label:this.checkModes[0].label, value: this.checkModes[0].value, checked: false}];
132 132
           this.autoCreateOrders[0].checked = this.configs.autoCreate == 1;
133 133
 
134 134
           if(this.configs.signTypeIds){

+ 3 - 1
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -3107,7 +3107,9 @@ export class HushijiandanComponent implements OnInit {
3107 3107
       .subscribe((data:any) => {
3108 3108
         this.hideAppraiseBx();
3109 3109
         if (data.state == 200) {
3110
-          this.getBxlb();
3110
+          if(this.isShowBx){
3111
+            this.getBxlb();
3112
+          }
3111 3113
           this.showPromptModal("评价", true, "");
3112 3114
         } else {
3113 3115
           this.showPromptModal("评价", false, "");