|
@@ -17,9 +17,9 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
|
17
|
17
|
hosId = this.tool.getCurrentHospital().id; //当前院区
|
18
|
18
|
|
19
|
19
|
// 积分计算方式
|
20
|
|
- clothingDept:any = null;
|
|
20
|
+ // clothingDept:any = null;
|
21
|
21
|
// 批次号生成规则
|
22
|
|
- batchNoRule:any = null;
|
|
22
|
+ // batchNoRule:any = null;
|
23
|
23
|
// 配置
|
24
|
24
|
configs:any = {};
|
25
|
25
|
searchTimerSubject = new Subject();
|
|
@@ -32,8 +32,8 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
|
32
|
32
|
fun.call(this, v[1]);
|
33
|
33
|
});
|
34
|
34
|
this.getTaskTypes();
|
35
|
|
- this.getDepts();
|
36
|
|
- this.getClothingBatchnoRule();
|
|
35
|
+ // this.getDepts();
|
|
36
|
+ // this.getClothingBatchnoRule();
|
37
|
37
|
this.getConfig();
|
38
|
38
|
}
|
39
|
39
|
|
|
@@ -51,9 +51,9 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
|
51
|
51
|
this.searchTimer(this.getTaskTypes, e);
|
52
|
52
|
}
|
53
|
53
|
|
54
|
|
- changeDept(e) {
|
55
|
|
- this.searchTimer(this.getDepts, e);
|
56
|
|
- }
|
|
54
|
+ // changeDept(e) {
|
|
55
|
+ // this.searchTimer(this.getDepts, e);
|
|
56
|
+ // }
|
57
|
57
|
|
58
|
58
|
//获取任务类型
|
59
|
59
|
getTaskTypes(e:string = '') {
|
|
@@ -84,38 +84,38 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
|
84
|
84
|
}
|
85
|
85
|
|
86
|
86
|
//获取科室
|
87
|
|
- clothingDepts:any = [];
|
88
|
|
- getDepts(e:string = '') {
|
89
|
|
- this.isLoading = true;
|
90
|
|
- let postData = {
|
91
|
|
- idx: 0,
|
92
|
|
- sum: 9999,
|
93
|
|
- department: {
|
94
|
|
- searchType: 1,// 简单查询
|
95
|
|
- dept: e,
|
96
|
|
- cascadeHosId: this.hosId,
|
97
|
|
- }
|
98
|
|
- };
|
99
|
|
- this.otherPageControlService
|
100
|
|
- .getDepts(postData)
|
101
|
|
- .subscribe((result) => {
|
102
|
|
- this.isLoading = false;
|
103
|
|
- if (result.status == 200) {
|
104
|
|
- this.clothingDepts = result.list || [];
|
105
|
|
- }
|
106
|
|
- });
|
107
|
|
- }
|
|
87
|
+ // clothingDepts:any = [];
|
|
88
|
+ // getDepts(e:string = '') {
|
|
89
|
+ // this.isLoading = true;
|
|
90
|
+ // let postData = {
|
|
91
|
+ // idx: 0,
|
|
92
|
+ // sum: 9999,
|
|
93
|
+ // department: {
|
|
94
|
+ // searchType: 1,// 简单查询
|
|
95
|
+ // dept: e,
|
|
96
|
+ // cascadeHosId: this.hosId,
|
|
97
|
+ // }
|
|
98
|
+ // };
|
|
99
|
+ // this.otherPageControlService
|
|
100
|
+ // .getDepts(postData)
|
|
101
|
+ // .subscribe((result) => {
|
|
102
|
+ // this.isLoading = false;
|
|
103
|
+ // if (result.status == 200) {
|
|
104
|
+ // this.clothingDepts = result.list || [];
|
|
105
|
+ // }
|
|
106
|
+ // });
|
|
107
|
+ // }
|
108
|
108
|
//获取批次号生成规则
|
109
|
|
- clothing_batchno_rule:any = [];
|
110
|
|
- getClothingBatchnoRule() {
|
111
|
|
- this.isLoading = true;
|
112
|
|
- this.otherPageControlService
|
113
|
|
- .getDictionary("clothing_batchno_rule")
|
114
|
|
- .subscribe((data) => {
|
115
|
|
- this.isLoading = false;
|
116
|
|
- this.clothing_batchno_rule = data;
|
117
|
|
- });
|
118
|
|
- }
|
|
109
|
+ // clothing_batchno_rule:any = [];
|
|
110
|
+ // getClothingBatchnoRule() {
|
|
111
|
+ // this.isLoading = true;
|
|
112
|
+ // this.otherPageControlService
|
|
113
|
+ // .getDictionary("clothing_batchno_rule")
|
|
114
|
+ // .subscribe((data) => {
|
|
115
|
+ // this.isLoading = false;
|
|
116
|
+ // this.clothing_batchno_rule = data;
|
|
117
|
+ // });
|
|
118
|
+ // }
|
119
|
119
|
// 切换tab
|
120
|
120
|
tabModal(tabModalName:string){
|
121
|
121
|
this.tabModalName = tabModalName;
|
|
@@ -128,23 +128,23 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
|
128
|
128
|
return;
|
129
|
129
|
}
|
130
|
130
|
|
131
|
|
- if(!this.clothingDept){
|
132
|
|
- this.msg.create("warning", "请先配置被服洗涤科室!");
|
133
|
|
- return;
|
134
|
|
- }
|
|
131
|
+ // if(!this.clothingDept){
|
|
132
|
+ // this.msg.create("warning", "请先配置被服洗涤科室!");
|
|
133
|
+ // return;
|
|
134
|
+ // }
|
135
|
135
|
|
136
|
|
- if(!this.batchNoRule){
|
137
|
|
- this.msg.create("warning", "请先配置批次号生成规则!");
|
138
|
|
- return;
|
139
|
|
- }
|
|
136
|
+ // if(!this.batchNoRule){
|
|
137
|
+ // this.msg.create("warning", "请先配置批次号生成规则!");
|
|
138
|
+ // return;
|
|
139
|
+ // }
|
140
|
140
|
|
141
|
141
|
let postData:any = {
|
142
|
142
|
id: this.configs.id,
|
143
|
143
|
taskType: this.clothingSendTypeId,
|
144
|
144
|
clothingSendTypeId: this.clothingSendTypeId,
|
145
|
145
|
hosId: this.hosId,
|
146
|
|
- clothingDept: this.clothingDept,
|
147
|
|
- batchNoRule: { id: this.batchNoRule },
|
|
146
|
+ // clothingDept: this.clothingDept,
|
|
147
|
+ // batchNoRule: { id: this.batchNoRule },
|
148
|
148
|
};
|
149
|
149
|
this.btnLoading = true;
|
150
|
150
|
this.otherPageControlService
|
|
@@ -181,8 +181,8 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
|
181
|
181
|
this.loading = false;
|
182
|
182
|
if (result.status == 200) {
|
183
|
183
|
this.configs = result.list[0] || {};
|
184
|
|
- this.clothingDept = this.configs.clothingDept;
|
185
|
|
- this.batchNoRule = this.configs.batchNoRule ? this.configs.batchNoRule.id : null;
|
|
184
|
+ // this.clothingDept = this.configs.clothingDept;
|
|
185
|
+ // this.batchNoRule = this.configs.batchNoRule ? this.configs.batchNoRule.id : null;
|
186
|
186
|
this.clothingSendTypeId = this.configs.clothingSendTypeId || null;
|
187
|
187
|
}
|
188
|
188
|
});
|