|
@@ -40,6 +40,7 @@
|
40
|
40
|
//引用mSearch组件,如不需要删除即可
|
41
|
41
|
import mSearch from "@/components/mehaotian-search-revision/mehaotian-search-revision.vue";
|
42
|
42
|
import {
|
|
43
|
+ get,
|
43
|
44
|
post,
|
44
|
45
|
webHandle
|
45
|
46
|
} from "../../http/http.js";
|
|
@@ -84,6 +85,9 @@
|
84
|
85
|
searchData: [], //搜索结果
|
85
|
86
|
//系统设置的科室类型
|
86
|
87
|
sysDeptType: 0,
|
|
88
|
+ //自选排班-科室绑定人员-科室类型 start
|
|
89
|
+ quickCombinationDeptType: 0,
|
|
90
|
+ //自选排班-科室绑定人员-科室类型 end
|
87
|
91
|
};
|
88
|
92
|
},
|
89
|
93
|
onUnload() {
|
|
@@ -99,7 +103,9 @@
|
99
|
103
|
this.configName = options.configName;
|
100
|
104
|
this.id = options.id;
|
101
|
105
|
this.changedept = options.changedept;
|
102
|
|
- this.getSysDeptType();
|
|
106
|
+
|
|
107
|
+ options.quickCombinationId && this.getQuickCombinationDeptType(+options.quickCombinationId);
|
|
108
|
+
|
103
|
109
|
} else if (this.type == "sendBack") {
|
104
|
110
|
this.code = options.code;
|
105
|
111
|
this.infoDATA = options.infoDATA;
|
|
@@ -187,6 +193,28 @@
|
187
|
193
|
}
|
188
|
194
|
})
|
189
|
195
|
},
|
|
196
|
+ //获取系统设置的科室类型 quickCombinationDeptType
|
|
197
|
+ getQuickCombinationDeptType(quickCombinationId) {
|
|
198
|
+ let postData = {
|
|
199
|
+ "idx": 0,
|
|
200
|
+ "sum": 1,
|
|
201
|
+ workAllocationQuickConfig: {
|
|
202
|
+ id: quickCombinationId
|
|
203
|
+ }
|
|
204
|
+ }
|
|
205
|
+ post("/simple/data/fetchDataList/workAllocationQuickConfig", postData).then((res) => {
|
|
206
|
+ if (res.status == 200) {
|
|
207
|
+ let workAllocationQuickConfig = res.list[0] || {};
|
|
208
|
+ // 科室绑定人员
|
|
209
|
+ if(workAllocationQuickConfig.ruleType == 3){
|
|
210
|
+ this.sysDeptType = -1;
|
|
211
|
+ this.quickCombinationDeptType = workAllocationQuickConfig.deptTypeList.map(v => v.id).toString();
|
|
212
|
+ }else{
|
|
213
|
+ this.getSysDeptType();
|
|
214
|
+ }
|
|
215
|
+ }
|
|
216
|
+ })
|
|
217
|
+ },
|
190
|
218
|
//监听输入
|
191
|
219
|
inputChange(event) {
|
192
|
220
|
//兼容引入组件时传入参数情况
|
|
@@ -222,6 +250,8 @@
|
222
|
250
|
if (this.type != "sendBack" && this.type != "sendBackPatientList" && this.type != "settingCode" && this.type != "bloodSelect" && this.type != "showDepartmentQrcode") {
|
223
|
251
|
if (this.sysDeptType === 0) {
|
224
|
252
|
return;
|
|
253
|
+ } else if(this.quickCombinationDeptType){
|
|
254
|
+ postData.department.deptTypeIds = this.quickCombinationDeptType;
|
225
|
255
|
} else {
|
226
|
256
|
postData.department.type = {
|
227
|
257
|
id: this.sysDeptType
|