|
@@ -207,8 +207,12 @@
|
207
|
207
|
let workAllocationQuickConfig = res.list[0] || {};
|
208
|
208
|
// 科室绑定人员
|
209
|
209
|
if(workAllocationQuickConfig.ruleType == 3){
|
210
|
|
- this.sysDeptType = -1;
|
211
|
|
- this.quickCombinationDeptType = workAllocationQuickConfig.deptTypeList.map(v => v.id).toString();
|
|
210
|
+ if(workAllocationQuickConfig.deptTypeList){
|
|
211
|
+ this.quickCombinationDeptType = workAllocationQuickConfig.deptTypeList.map(v => v.id).toString();
|
|
212
|
+ }else{
|
|
213
|
+ // 没有获取到配置,则获取之前的
|
|
214
|
+ this.getSysDeptType();
|
|
215
|
+ }
|
212
|
216
|
}else{
|
213
|
217
|
this.getSysDeptType();
|
214
|
218
|
}
|
|
@@ -248,10 +252,10 @@
|
248
|
252
|
}
|
249
|
253
|
//不是送回病房
|
250
|
254
|
if (this.type != "sendBack" && this.type != "sendBackPatientList" && this.type != "settingCode" && this.type != "bloodSelect" && this.type != "showDepartmentQrcode") {
|
251
|
|
- if (this.sysDeptType === 0) {
|
252
|
|
- return;
|
253
|
|
- } else if(this.quickCombinationDeptType){
|
|
255
|
+ if(this.quickCombinationDeptType){
|
254
|
256
|
postData.department.deptTypeIds = this.quickCombinationDeptType;
|
|
257
|
+ } else if (this.sysDeptType === 0) {
|
|
258
|
+ return;
|
255
|
259
|
} else {
|
256
|
260
|
postData.department.type = {
|
257
|
261
|
id: this.sysDeptType
|