|
@@ -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){
|