|
@@ -78,7 +78,8 @@ export class ConfigurationDrugComponent implements OnInit {
|
78
|
78
|
drugsResidueCreateOrder: [{ label:'是否开启', value: 0 }],//交接后,剩余药包是否建单
|
79
|
79
|
urgentCreateOrder: [{ label:'是否开启', value: 0 }],//是否开启紧急配送建单
|
80
|
80
|
autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
|
81
|
|
- autoCreateState: undefined // 药品自动建单状态
|
|
81
|
+ autoCreateState: undefined, // 药品自动建单状态
|
|
82
|
+ drugsCreateLimitMarkType: [], // 限制药单类型建单
|
82
|
83
|
}
|
83
|
84
|
},
|
84
|
85
|
{
|
|
@@ -106,7 +107,8 @@ export class ConfigurationDrugComponent implements OnInit {
|
106
|
107
|
drugsResidueCreateOrder: [{ label:'是否开启', value: 0 }],//交接后,剩余药包是否建单
|
107
|
108
|
urgentCreateOrder: [{ label:'是否开启', value: 0 }],//是否开启紧急配送建单
|
108
|
109
|
autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
|
109
|
|
- autoCreateState: undefined // 药品自动建单状态
|
|
110
|
+ autoCreateState: undefined, // 药品自动建单状态
|
|
111
|
+ drugsCreateLimitMarkType: [], // 限制药单类型建单
|
110
|
112
|
}
|
111
|
113
|
},
|
112
|
114
|
{
|
|
@@ -134,7 +136,8 @@ export class ConfigurationDrugComponent implements OnInit {
|
134
|
136
|
drugsResidueCreateOrder: [{ label:'是否开启', value: 0 }],//交接后,剩余药包是否建单
|
135
|
137
|
urgentCreateOrder: [{ label:'是否开启', value: 0 }],//是否开启紧急配送建单
|
136
|
138
|
autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
|
137
|
|
- autoCreateState: undefined // 药品自动建单状态
|
|
139
|
+ autoCreateState: undefined, // 药品自动建单状态
|
|
140
|
+ drugsCreateLimitMarkType: [], // 限制药单类型建单
|
138
|
141
|
}
|
139
|
142
|
},
|
140
|
143
|
{
|
|
@@ -162,7 +165,8 @@ export class ConfigurationDrugComponent implements OnInit {
|
162
|
165
|
drugsResidueCreateOrder: [{ label:'是否开启', value: 0 }],//交接后,剩余药包是否建单
|
163
|
166
|
urgentCreateOrder: [{ label:'是否开启', value: 0 }],//是否开启紧急配送建单
|
164
|
167
|
autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
|
165
|
|
- autoCreateState: undefined // 药品自动建单状态
|
|
168
|
+ autoCreateState: undefined, // 药品自动建单状态
|
|
169
|
+ drugsCreateLimitMarkType: [], // 限制药单类型建单
|
166
|
170
|
}
|
167
|
171
|
},
|
168
|
172
|
{
|
|
@@ -190,7 +194,8 @@ export class ConfigurationDrugComponent implements OnInit {
|
190
|
194
|
drugsResidueCreateOrder: [{ label:'是否开启', value: 0 }],//交接后,剩余药包是否建单
|
191
|
195
|
urgentCreateOrder: [{ label:'是否开启', value: 0 }],//是否开启紧急配送建单
|
192
|
196
|
autoCreate: [{ label:'是否开启', value: 0 }], // 是否自动建单
|
193
|
|
- autoCreateState: undefined // 药品自动建单状态
|
|
197
|
+ autoCreateState: undefined, // 药品自动建单状态
|
|
198
|
+ drugsCreateLimitMarkType: [], // 限制药单类型建单
|
194
|
199
|
}
|
195
|
200
|
},
|
196
|
201
|
];
|
|
@@ -205,7 +210,6 @@ export class ConfigurationDrugComponent implements OnInit {
|
205
|
210
|
}
|
206
|
211
|
|
207
|
212
|
// 获取药单类型
|
208
|
|
- drugsCreateLimitMarkType:any[] = [];
|
209
|
213
|
markTypeList:any = []
|
210
|
214
|
getMarkTypeList(){
|
211
|
215
|
this.mainService.getDictionary("list", "drugsbag_mark_type").subscribe((data) => {
|
|
@@ -305,7 +309,7 @@ export class ConfigurationDrugComponent implements OnInit {
|
305
|
309
|
autoCreateState:{
|
306
|
310
|
id:this.activeDictionary.postData.autoCreateState || undefined
|
307
|
311
|
},
|
308
|
|
- drugsCreateLimitMarkType: this.drugsCreateLimitMarkType.length ? this.drugsCreateLimitMarkType.toString() : undefined,
|
|
312
|
+ drugsCreateLimitMarkType: this.activeDictionary.postData.drugsCreateLimitMarkType.length ? this.activeDictionary.postData.drugsCreateLimitMarkType.toString() : undefined,
|
309
|
313
|
};
|
310
|
314
|
this.btnLoading = true;
|
311
|
315
|
this.mainService
|
|
@@ -410,8 +414,14 @@ export class ConfigurationDrugComponent implements OnInit {
|
410
|
414
|
this.activeDictionary.postData.urgentCreateOrder[0].checked = this.configs.urgentCreateOrder == 1;
|
411
|
415
|
this.activeDictionary.postData.autoCreate[0].checked = this.configs.autoCreate == 1;
|
412
|
416
|
this.activeDictionary.postData.autoCreateState = this.configs.autoCreateState && this.configs.autoCreateState.id || undefined;
|
413
|
|
- this.drugsCreateLimitMarkType = this.configs.drugsCreateLimitMarkType ? this.configs.drugsCreateLimitMarkType.split(',').map(v => +v) : [];
|
|
417
|
+ this.activeDictionary.postData.drugsCreateLimitMarkType = this.configs.drugsCreateLimitMarkType ? this.configs.drugsCreateLimitMarkType.split(',').map(v => +v) : [];
|
414
|
418
|
}
|
415
|
419
|
});
|
416
|
420
|
}
|
|
421
|
+
|
|
422
|
+ // 是否自动建单
|
|
423
|
+ changeAutoCreate(e, item){
|
|
424
|
+ item.postData.autoCreateState = null;
|
|
425
|
+ item.postData.drugsCreateLimitMarkType = [];
|
|
426
|
+ }
|
417
|
427
|
}
|