Browse Source

生成数据添加接收人

maotao 4 weeks ago
parent
commit
6e1ac2de37

+ 47 - 19
src/app/components/configurationCenter/configuration-closedData/configuration-closedData.component.html

@@ -21,17 +21,17 @@
21
 									<div>查询范围</div>
21
 									<div>查询范围</div>
22
 								</div>
22
 								</div>
23
 								
23
 								
24
-								<!-- 同步开始时间 -->
24
+								<!-- 采集开始时间 -->
25
 								<div class="display_flex align-items_center mb8">
25
 								<div class="display_flex align-items_center mb8">
26
-								  <nz-form-label class="label" nzRequired>同步开始时间</nz-form-label>
26
+								  <nz-form-label class="label" nzRequired>采集开始时间</nz-form-label>
27
 								  <nz-range-picker nzShowTime (nzOnCalendarChange)="onCalendarChangeDate($event)" [(ngModel)]="dateRange" (ngModelChange)="changeDate($event)"></nz-range-picker>
27
 								  <nz-range-picker nzShowTime (nzOnCalendarChange)="onCalendarChangeDate($event)" [(ngModel)]="dateRange" (ngModelChange)="changeDate($event)"></nz-range-picker>
28
 								</div>
28
 								</div>
29
 								
29
 								
30
                 <!-- 标本状态 -->
30
                 <!-- 标本状态 -->
31
                 <div class="display_flex align-items_center mb8">
31
                 <div class="display_flex align-items_center mb8">
32
-                  <nz-form-label class="label">标本状态</nz-form-label>
32
+                  <nz-form-label class="label" nzRequired>标本状态</nz-form-label>
33
                   <nz-select class="w320px" [nzDropdownMatchSelectWidth]="false" nzAllowClear
33
                   <nz-select class="w320px" [nzDropdownMatchSelectWidth]="false" nzAllowClear
34
-										nzPlaceHolder="请选择标本状态" [(ngModel)]="transState" (nzOpenChange)="openDrugList($event)">
34
+										nzPlaceHolder="请选择标本状态" [(ngModel)]="transState">
35
                     <ng-container *ngFor="let option of drugStatusList">
35
                     <ng-container *ngFor="let option of drugStatusList">
36
                       <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
36
                       <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
37
                     </ng-container>
37
                     </ng-container>
@@ -48,7 +48,7 @@
48
 								
48
 								
49
 								<div class="display_flex align-items_center mb8">
49
 								<div class="display_flex align-items_center mb8">
50
 									<nz-form-label class="label">编码</nz-form-label>
50
 									<nz-form-label class="label">编码</nz-form-label>
51
-									<input nz-input [(ngModel)]="code" class="w320px"/>
51
+									<input nz-input [(ngModel)]="code" class="w350px"/>
52
 								</div>
52
 								</div>
53
 							<div class="interval"></div>
53
 							<div class="interval"></div>
54
 							<div class="top-style">
54
 							<div class="top-style">
@@ -86,7 +86,7 @@
86
 									nzPlaceHolder="请选择配送人员" [(ngModel)]="userIds" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
86
 									nzPlaceHolder="请选择配送人员" [(ngModel)]="userIds" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
87
 								  (nzOnSearch)="changeUser($event)" nzAllowClear>
87
 								  (nzOnSearch)="changeUser($event)" nzAllowClear>
88
 								  <ng-container *ngFor="let option of distributionList">
88
 								  <ng-container *ngFor="let option of distributionList">
89
-								    <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
89
+								    <nz-option *ngIf="!isLoading" [nzLabel]="option.name +' ('+ option.account +')'" [nzValue]="option.id"></nz-option>
90
 								  </ng-container>
90
 								  </ng-container>
91
 								  <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
91
 								  <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
92
 								    <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
92
 								    <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
@@ -99,7 +99,7 @@
99
 								<button class="login-form-button" nzType="default" [nzLoading]="btnLoading3" nz-button (click)="resetForm()">重置</button>
99
 								<button class="login-form-button" nzType="default" [nzLoading]="btnLoading3" nz-button (click)="resetForm()">重置</button>
100
               </div>
100
               </div>
101
 							<div class="tip" *ngIf="showNum">共查询数据 <span class="weight">{{queryNum}}</span> 条</div>
101
 							<div class="tip" *ngIf="showNum">共查询数据 <span class="weight">{{queryNum}}</span> 条</div>
102
-							<div class="tip" *ngIf="showGenerate">共修改数据 <span class="weight">{{generateObj.count}}</span> 条,生成日志 <span class="weight">{{generateObj.logCount}}</span> 条</div>
102
+							<div class="tip" *ngIf="showGenerate">共修改数据 <span class="weight">{{generateObj.count}}</span> 条,生成日志 <span class="weight">{{generateObj.logCount || 0}}</span> 条</div>
103
 						</div>
103
 						</div>
104
             <div class="list" *ngIf="loading">
104
             <div class="list" *ngIf="loading">
105
               <div class="loadingFull display_flex justify-content_flex-center align-items_center">
105
               <div class="loadingFull display_flex justify-content_flex-center align-items_center">
@@ -125,17 +125,17 @@
125
 									<div>查询范围</div>
125
 									<div>查询范围</div>
126
 								</div>
126
 								</div>
127
 								
127
 								
128
-								<!-- 同步开始时间 -->
128
+								<!-- 发血开始时间 -->
129
 								<div class="display_flex align-items_center mb8">
129
 								<div class="display_flex align-items_center mb8">
130
-								  <nz-form-label class="label" nzRequired>同步开始时间</nz-form-label>
130
+								  <nz-form-label class="label" nzRequired>发血开始时间</nz-form-label>
131
 								  <nz-range-picker nzShowTime (nzOnCalendarChange)="onCalendarChangeDate($event)" [(ngModel)]="dateRange" (ngModelChange)="changeDate($event)"></nz-range-picker>
131
 								  <nz-range-picker nzShowTime (nzOnCalendarChange)="onCalendarChangeDate($event)" [(ngModel)]="dateRange" (ngModelChange)="changeDate($event)"></nz-range-picker>
132
 								</div>
132
 								</div>
133
 								
133
 								
134
 					      <!-- 药品状态 -->
134
 					      <!-- 药品状态 -->
135
 					      <div class="display_flex align-items_center mb8">
135
 					      <div class="display_flex align-items_center mb8">
136
-					        <nz-form-label class="label">药品状态</nz-form-label>
136
+					        <nz-form-label class="label" nzRequired>药品状态</nz-form-label>
137
 					        <nz-select class="w320px" [nzDropdownMatchSelectWidth]="false" nzAllowClear
137
 					        <nz-select class="w320px" [nzDropdownMatchSelectWidth]="false" nzAllowClear
138
-										nzPlaceHolder="请选择药品状态" [(ngModel)]="transState" (nzOpenChange)="openDrugList($event)">
138
+										nzPlaceHolder="请选择药品状态" [(ngModel)]="transState">
139
 					          <ng-container *ngFor="let option of drugStatusList">
139
 					          <ng-container *ngFor="let option of drugStatusList">
140
 					            <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
140
 					            <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
141
 					          </ng-container>
141
 					          </ng-container>
@@ -152,7 +152,7 @@
152
 								
152
 								
153
 								<div class="display_flex align-items_center mb8">
153
 								<div class="display_flex align-items_center mb8">
154
 									<nz-form-label class="label">编码</nz-form-label>
154
 									<nz-form-label class="label">编码</nz-form-label>
155
-									<input nz-input [(ngModel)]="code" class="w320px"/>
155
+									<input nz-input [(ngModel)]="code" class="w350px"/>
156
 								</div>
156
 								</div>
157
 							<div class="interval"></div>
157
 							<div class="interval"></div>
158
 							<div class="top-style">
158
 							<div class="top-style">
@@ -190,7 +190,21 @@
190
 									nzPlaceHolder="请选择配送人员" [(ngModel)]="userIds" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
190
 									nzPlaceHolder="请选择配送人员" [(ngModel)]="userIds" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
191
 								  (nzOnSearch)="changeUser($event)" nzAllowClear>
191
 								  (nzOnSearch)="changeUser($event)" nzAllowClear>
192
 								  <ng-container *ngFor="let option of distributionList">
192
 								  <ng-container *ngFor="let option of distributionList">
193
-								    <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
193
+								    <nz-option *ngIf="!isLoading" [nzLabel]="option.name +' ('+ option.account +')'" [nzValue]="option.id"></nz-option>
194
+								  </ng-container>
195
+								  <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
196
+								    <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
197
+								  </nz-option>
198
+								</nz-select>
199
+							</div>
200
+							<!-- 接收人员 -->
201
+							<div class="display_flex align-items_center mb8">
202
+							  <nz-form-label class="label max" nzRequired>接收人员</nz-form-label>
203
+								<nz-select nzMode="multiple" class="w320px" [nzDropdownMatchSelectWidth]="false" nzAllowClear
204
+									nzPlaceHolder="请选择接收人员" [(ngModel)]="receiverUserIds" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
205
+								  (nzOnSearch)="changeReceptionUser($event)" nzAllowClear>
206
+								  <ng-container *ngFor="let option of receptionList">
207
+								    <nz-option *ngIf="!isLoading" [nzLabel]="option.name +' ('+ option.account +')'" [nzValue]="option.id"></nz-option>
194
 								  </ng-container>
208
 								  </ng-container>
195
 								  <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
209
 								  <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
196
 								    <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
210
 								    <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
@@ -203,7 +217,7 @@
203
 								<button class="login-form-button" nzType="default" [nzLoading]="btnLoading3" nz-button (click)="resetForm()">重置</button>
217
 								<button class="login-form-button" nzType="default" [nzLoading]="btnLoading3" nz-button (click)="resetForm()">重置</button>
204
 					    </div>
218
 					    </div>
205
 							<div class="tip" *ngIf="showNum">共查询数据 <span class="weight">{{queryNum}}</span> 条</div>
219
 							<div class="tip" *ngIf="showNum">共查询数据 <span class="weight">{{queryNum}}</span> 条</div>
206
-							<div class="tip" *ngIf="showGenerate">共修改数据 <span class="weight">{{generateObj.count}}</span> 条,生成日志 <span class="weight">{{generateObj.logCount}}</span> 条</div>
220
+							<div class="tip" *ngIf="showGenerate">共修改数据 <span class="weight">{{generateObj.count}}</span> 条,生成日志 <span class="weight">{{generateObj.logCount || 0}}</span> 条</div>
207
 					  </div>
221
 					  </div>
208
 					  <div class="list" *ngIf="loading">
222
 					  <div class="list" *ngIf="loading">
209
 					    <div class="loadingFull display_flex justify-content_flex-center align-items_center">
223
 					    <div class="loadingFull display_flex justify-content_flex-center align-items_center">
@@ -237,9 +251,9 @@
237
 								
251
 								
238
 					      <!-- 血制品状态 -->
252
 					      <!-- 血制品状态 -->
239
 					      <div class="display_flex align-items_center mb8">
253
 					      <div class="display_flex align-items_center mb8">
240
-					        <nz-form-label class="label">血制品状态</nz-form-label>
254
+					        <nz-form-label class="label" nzRequired>血制品状态</nz-form-label>
241
 					        <nz-select class="w320px" [nzDropdownMatchSelectWidth]="false" nzAllowClear
255
 					        <nz-select class="w320px" [nzDropdownMatchSelectWidth]="false" nzAllowClear
242
-										nzPlaceHolder="请选择血制品状态" [(ngModel)]="transState" (nzOpenChange)="openDrugList($event)">
256
+										nzPlaceHolder="请选择血制品状态" [(ngModel)]="transState">
243
 					          <ng-container *ngFor="let option of drugStatusList">
257
 					          <ng-container *ngFor="let option of drugStatusList">
244
 					            <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
258
 					            <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
245
 					          </ng-container>
259
 					          </ng-container>
@@ -256,7 +270,7 @@
256
 								
270
 								
257
 								<div class="display_flex align-items_center mb8">
271
 								<div class="display_flex align-items_center mb8">
258
 									<nz-form-label class="label">编码</nz-form-label>
272
 									<nz-form-label class="label">编码</nz-form-label>
259
-									<input nz-input [(ngModel)]="code" class="w320px"/>
273
+									<input nz-input [(ngModel)]="code" class="w350px"/>
260
 								</div>
274
 								</div>
261
 							<div class="interval"></div>
275
 							<div class="interval"></div>
262
 							<div class="top-style">
276
 							<div class="top-style">
@@ -294,7 +308,21 @@
294
 									nzPlaceHolder="请选择配送人员" [(ngModel)]="userIds" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
308
 									nzPlaceHolder="请选择配送人员" [(ngModel)]="userIds" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
295
 								  (nzOnSearch)="changeUser($event)" nzAllowClear>
309
 								  (nzOnSearch)="changeUser($event)" nzAllowClear>
296
 								  <ng-container *ngFor="let option of distributionList">
310
 								  <ng-container *ngFor="let option of distributionList">
297
-								    <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
311
+								    <nz-option *ngIf="!isLoading" [nzLabel]="option.name +' ('+ option.account +')'" [nzValue]="option.id"></nz-option>
312
+								  </ng-container>
313
+								  <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
314
+								    <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
315
+								  </nz-option>
316
+								</nz-select>
317
+							</div>
318
+							<!-- 接收人员 -->
319
+							<div class="display_flex align-items_center mb8">
320
+							  <nz-form-label class="label max" nzRequired>接收人员</nz-form-label>
321
+								<nz-select nzMode="multiple" class="w320px" [nzDropdownMatchSelectWidth]="false" nzAllowClear
322
+									nzPlaceHolder="请选择接收人员" [(ngModel)]="receiverUserIds" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
323
+								  (nzOnSearch)="changeReceptionUser($event)" nzAllowClear>
324
+								  <ng-container *ngFor="let option of receptionList">
325
+								    <nz-option *ngIf="!isLoading" [nzLabel]="option.name +' ('+ option.account +')'" [nzValue]="option.id"></nz-option>
298
 								  </ng-container>
326
 								  </ng-container>
299
 								  <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
327
 								  <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
300
 								    <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
328
 								    <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
@@ -307,7 +335,7 @@
307
 								<button class="login-form-button" nzType="default" [nzLoading]="btnLoading3" nz-button (click)="resetForm()">重置</button>
335
 								<button class="login-form-button" nzType="default" [nzLoading]="btnLoading3" nz-button (click)="resetForm()">重置</button>
308
 					    </div>
336
 					    </div>
309
 							<div class="tip" *ngIf="showNum">共查询数据 <span class="weight">{{queryNum}}</span> 条</div>
337
 							<div class="tip" *ngIf="showNum">共查询数据 <span class="weight">{{queryNum}}</span> 条</div>
310
-							<div class="tip" *ngIf="showGenerate">共修改数据 <span class="weight">{{generateObj.count}}</span> 条,生成日志 <span class="weight">{{generateObj.logCount}}</span> 条</div>
338
+							<div class="tip" *ngIf="showGenerate">共修改数据 <span class="weight">{{generateObj.count}}</span> 条,生成日志 <span class="weight">{{generateObj.logCount || 0}}</span> 条</div>
311
 					  </div>
339
 					  </div>
312
 					  <div class="list" *ngIf="loading">
340
 					  <div class="list" *ngIf="loading">
313
 					    <div class="loadingFull display_flex justify-content_flex-center align-items_center">
341
 					    <div class="loadingFull display_flex justify-content_flex-center align-items_center">

+ 4 - 0
src/app/components/configurationCenter/configuration-closedData/configuration-closedData.component.less

@@ -353,6 +353,10 @@
353
 					text-align: left;
353
 					text-align: left;
354
         }
354
         }
355
 				
355
 				
356
+				.w350px{
357
+					width: 350px;
358
+				}
359
+				
356
 				.span{
360
 				.span{
357
 					margin: 0 5px;
361
 					margin: 0 5px;
358
 				}
362
 				}

+ 109 - 13
src/app/components/configurationCenter/configuration-closedData/configuration-closedData.component.ts

@@ -72,6 +72,7 @@ export class ConfigurationClosedDataComponent implements OnInit {
72
     });
72
     });
73
     this.getSpeDic();
73
     this.getSpeDic();
74
 		this.getUsers();
74
 		this.getUsers();
75
+		this.getReceptionUsers();
75
   }
76
   }
76
 	
77
 	
77
 	// 点击数据字典key
78
 	// 点击数据字典key
@@ -114,10 +115,36 @@ export class ConfigurationClosedDataComponent implements OnInit {
114
 	queryNum:any;
115
 	queryNum:any;
115
 	generateModal:boolean = false;
116
 	generateModal:boolean = false;
116
 	generateForm(){
117
 	generateForm(){
117
-		if(!this.startDate || !this.endDate){
118
-			this.msg.error("同步开始时间不能为空");
119
-			return
118
+		if(this.activeDictionaryKey == 'specimen'){
119
+			if(!this.startDate || !this.endDate){
120
+				this.msg.error("采集开始时间不能为空");
121
+				return
122
+			}
123
+			if(!this.transState){
124
+				this.msg.error("标本状态不能为空");
125
+				return
126
+			}
127
+			
128
+		}else if (this.activeDictionaryKey == 'drugsBag'){
129
+			if(!this.startDate || !this.endDate){
130
+				this.msg.error("发血开始时间不能为空");
131
+				return
132
+			}
133
+			if(!this.transState){
134
+				this.msg.error("药品状态不能为空");
135
+				return
136
+			}
137
+		}else if (this.activeDictionaryKey == 'blood'){
138
+			if(!this.startDate || !this.endDate){
139
+				this.msg.error("同步开始时间不能为空");
140
+				return
141
+			}
142
+			if(!this.transState){
143
+				this.msg.error("血制品状态不能为空");
144
+				return
145
+			}
120
 		}
146
 		}
147
+
121
 		if(!this.arriveStartMinute || !this.arriveEndMinute){
148
 		if(!this.arriveStartMinute || !this.arriveEndMinute){
122
 			this.msg.error("收取时间间隔区间不能为空");
149
 			this.msg.error("收取时间间隔区间不能为空");
123
 			return
150
 			return
@@ -130,6 +157,12 @@ export class ConfigurationClosedDataComponent implements OnInit {
130
 			this.msg.error("配送人员不能为空");
157
 			this.msg.error("配送人员不能为空");
131
 			return
158
 			return
132
 		}
159
 		}
160
+		if (this.activeDictionaryKey != 'specimen'){
161
+			if(this.receiverUserIds.length==0){
162
+				this.msg.error("接收人员不能为空");
163
+				return
164
+			}
165
+		}
133
 		this.generateModal = true
166
 		this.generateModal = true
134
 	}
167
 	}
135
 	
168
 	
@@ -159,8 +192,9 @@ export class ConfigurationClosedDataComponent implements OnInit {
159
 	  		arriveEndMinute: this.arriveEndMinute || undefined,
192
 	  		arriveEndMinute: this.arriveEndMinute || undefined,
160
 	  		sendStartMinute: this.sendStartMinute || undefined,
193
 	  		sendStartMinute: this.sendStartMinute || undefined,
161
 	  		sendEndMinute: this.sendEndMinute || undefined,
194
 	  		sendEndMinute: this.sendEndMinute || undefined,
162
-	  		userIds: this.userIds.length>0 ? this.userIds.join(',') : undefined
163
-	  	}
195
+	  		userIds: this.userIds.length>0 ? this.userIds.join(',') : undefined,
196
+				receiverUserIds: this.receiverUserIds.length>0 ? this.receiverUserIds.join(',') : undefined
197
+			}
164
 	  };
198
 	  };
165
 	  this.btnLoading1 = true;
199
 	  this.btnLoading1 = true;
166
 	  this.mainService
200
 	  this.mainService
@@ -174,16 +208,44 @@ export class ConfigurationClosedDataComponent implements OnInit {
174
 					setTimeout(_=>{
208
 					setTimeout(_=>{
175
 						this.scrollContainer.nativeElement.scrollTop = this.scrollContainer.nativeElement.scrollHeight;
209
 						this.scrollContainer.nativeElement.scrollTop = this.scrollContainer.nativeElement.scrollHeight;
176
 					},100)
210
 					},100)
177
-	      }
211
+	      }else{
212
+					this.hideGenerateModal()
213
+					this.msg.error(result.msg);
214
+				}
178
 	    });
215
 	    });
179
 	}
216
 	}
180
 	
217
 	
181
   // 查询
218
   // 查询
182
 	showNum:boolean = false;
219
 	showNum:boolean = false;
183
   submitForm() {
220
   submitForm() {
184
-		if(!this.startDate || !this.endDate){
185
-			this.msg.error("同步开始时间不能为空");
186
-			return
221
+		if(this.activeDictionaryKey == 'specimen'){
222
+			if(!this.startDate || !this.endDate){
223
+				this.msg.error("采集开始时间不能为空");
224
+				return
225
+			}
226
+			if(!this.transState){
227
+				this.msg.error("标本状态不能为空");
228
+				return
229
+			}
230
+			
231
+		}else if (this.activeDictionaryKey == 'drugsBag'){
232
+			if(!this.startDate || !this.endDate){
233
+				this.msg.error("发血开始时间不能为空");
234
+				return
235
+			}
236
+			if(!this.transState){
237
+				this.msg.error("药品状态不能为空");
238
+				return
239
+			}
240
+		}else if (this.activeDictionaryKey == 'blood'){
241
+			if(!this.startDate || !this.endDate){
242
+				this.msg.error("同步开始时间不能为空");
243
+				return
244
+			}
245
+			if(!this.transState){
246
+				this.msg.error("血制品状态不能为空");
247
+				return
248
+			}
187
 		}
249
 		}
188
 		if(!this.arriveStartMinute || !this.arriveEndMinute){
250
 		if(!this.arriveStartMinute || !this.arriveEndMinute){
189
 			this.msg.error("收取时间间隔区间不能为空");
251
 			this.msg.error("收取时间间隔区间不能为空");
@@ -197,6 +259,12 @@ export class ConfigurationClosedDataComponent implements OnInit {
197
 			this.msg.error("配送人员不能为空");
259
 			this.msg.error("配送人员不能为空");
198
 			return
260
 			return
199
 		}
261
 		}
262
+		if (this.activeDictionaryKey != 'specimen'){
263
+			if(this.receiverUserIds.length==0){
264
+				this.msg.error("接收人员不能为空");
265
+				return
266
+			}
267
+		}
200
     let list = this.drugStatusList.find(i=> i.id == this.transState)
268
     let list = this.drugStatusList.find(i=> i.id == this.transState)
201
     let postData:any = {
269
     let postData:any = {
202
     	patchDataConfig:{
270
     	patchDataConfig:{
@@ -214,8 +282,9 @@ export class ConfigurationClosedDataComponent implements OnInit {
214
     		arriveEndMinute: this.arriveEndMinute || undefined,
282
     		arriveEndMinute: this.arriveEndMinute || undefined,
215
     		sendStartMinute: this.sendStartMinute || undefined,
283
     		sendStartMinute: this.sendStartMinute || undefined,
216
     		sendEndMinute: this.sendEndMinute || undefined,
284
     		sendEndMinute: this.sendEndMinute || undefined,
217
-    		userIds: this.userIds.length>0 ? this.userIds.join(',') : undefined
218
-    	}
285
+    		userIds: this.userIds.length>0 ? this.userIds.join(',') : undefined,
286
+				receiverUserIds: this.receiverUserIds.length>0 ? this.receiverUserIds.join(',') : undefined
287
+			}
219
     };
288
     };
220
     this.btnLoading2 = true;
289
     this.btnLoading2 = true;
221
     this.mainService
290
     this.mainService
@@ -228,7 +297,9 @@ export class ConfigurationClosedDataComponent implements OnInit {
228
 					setTimeout(_=>{
297
 					setTimeout(_=>{
229
 						this.scrollContainer.nativeElement.scrollTop = this.scrollContainer.nativeElement.scrollHeight;
298
 						this.scrollContainer.nativeElement.scrollTop = this.scrollContainer.nativeElement.scrollHeight;
230
 					},100)
299
 					},100)
231
-        }
300
+        }else{
301
+					this.msg.error(result.msg);
302
+				}
232
       });
303
       });
233
   }
304
   }
234
 	
305
 	
@@ -248,6 +319,7 @@ export class ConfigurationClosedDataComponent implements OnInit {
248
 		this.sendStartMinute = undefined;
319
 		this.sendStartMinute = undefined;
249
 		this.sendEndMinute = undefined;
320
 		this.sendEndMinute = undefined;
250
 		this.userIds = [];
321
 		this.userIds = [];
322
+		this.receiverUserIds = [];
251
 	}
323
 	}
252
 	
324
 	
253
 	// 获取字典
325
 	// 获取字典
@@ -271,6 +343,10 @@ export class ConfigurationClosedDataComponent implements OnInit {
271
 	  this.searchTimer(this.getUsers, e);
343
 	  this.searchTimer(this.getUsers, e);
272
 	}
344
 	}
273
 	
345
 	
346
+	changeReceptionUser(e){
347
+		this.searchTimer(this.getReceptionUsers, e);
348
+	}
349
+	
274
 	// 边输入边搜索节流阀
350
 	// 边输入边搜索节流阀
275
 	searchTimer(fun, e) {
351
 	searchTimer(fun, e) {
276
 	  this.isLoading = true;
352
 	  this.isLoading = true;
@@ -286,7 +362,6 @@ export class ConfigurationClosedDataComponent implements OnInit {
286
 	    user: {
362
 	    user: {
287
 	      name: e,
363
 	      name: e,
288
 	      hospital: { id: this.hosId },
364
 	      hospital: { id: this.hosId },
289
-	      simpleQuery: true,
290
 	    },
365
 	    },
291
 	    idx: 0,
366
 	    idx: 0,
292
 	    sum: 20,
367
 	    sum: 20,
@@ -299,4 +374,25 @@ export class ConfigurationClosedDataComponent implements OnInit {
299
 	      this.distributionList = data.list;
374
 	      this.distributionList = data.list;
300
 	    });
375
 	    });
301
 	}
376
 	}
377
+	
378
+	// 接收人员
379
+	receiverUserIds:any = [];
380
+	receptionList:any;
381
+	getReceptionUsers(e?) {
382
+	  let postData = {
383
+	    user: {
384
+	      name: e,
385
+	      hospital: { id: this.hosId },
386
+	    },
387
+	    idx: 0,
388
+	    sum: 20,
389
+	  };
390
+	  this.isLoading = true;
391
+	  this.mainService
392
+	    .getFetchDataList("data", "user", postData)
393
+	    .subscribe((data) => {
394
+	      this.isLoading = false;
395
+	      this.receptionList = data.list;
396
+	    });
397
+	}
302
 }
398
 }

+ 26 - 3
src/assets/iconfont/demo_index.html

@@ -55,6 +55,12 @@
55
           <ul class="icon_lists dib-box">
55
           <ul class="icon_lists dib-box">
56
           
56
           
57
             <li class="dib">
57
             <li class="dib">
58
+              <span class="icon icon_transport">&#xe6e1;</span>
59
+                <div class="name">数据生成规则</div>
60
+                <div class="code-name">&amp;#xe6e1;</div>
61
+              </li>
62
+          
63
+            <li class="dib">
58
               <span class="icon icon_transport">&#xe67a;</span>
64
               <span class="icon icon_transport">&#xe67a;</span>
59
                 <div class="name">返回</div>
65
                 <div class="name">返回</div>
60
                 <div class="code-name">&amp;#xe67a;</div>
66
                 <div class="code-name">&amp;#xe67a;</div>
@@ -1062,9 +1068,9 @@
1062
 <pre><code class="language-css"
1068
 <pre><code class="language-css"
1063
 >@font-face {
1069
 >@font-face {
1064
   font-family: 'icon_transport';
1070
   font-family: 'icon_transport';
1065
-  src: url('iconfont.woff2?t=1741080510824') format('woff2'),
1066
-       url('iconfont.woff?t=1741080510824') format('woff'),
1067
-       url('iconfont.ttf?t=1741080510824') format('truetype');
1071
+  src: url('iconfont.woff2?t=1743147201353') format('woff2'),
1072
+       url('iconfont.woff?t=1743147201353') format('woff'),
1073
+       url('iconfont.ttf?t=1743147201353') format('truetype');
1068
 }
1074
 }
1069
 </code></pre>
1075
 </code></pre>
1070
           <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
1076
           <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
@@ -1091,6 +1097,15 @@
1091
         <ul class="icon_lists dib-box">
1097
         <ul class="icon_lists dib-box">
1092
           
1098
           
1093
           <li class="dib">
1099
           <li class="dib">
1100
+            <span class="icon icon_transport transport-shujushengchengguize"></span>
1101
+            <div class="name">
1102
+              数据生成规则
1103
+            </div>
1104
+            <div class="code-name">.transport-shujushengchengguize
1105
+            </div>
1106
+          </li>
1107
+          
1108
+          <li class="dib">
1094
             <span class="icon icon_transport transport-fanhui"></span>
1109
             <span class="icon icon_transport transport-fanhui"></span>
1095
             <div class="name">
1110
             <div class="name">
1096
               返回
1111
               返回
@@ -2604,6 +2619,14 @@
2604
           
2619
           
2605
             <li class="dib">
2620
             <li class="dib">
2606
                 <svg class="icon svg-icon" aria-hidden="true">
2621
                 <svg class="icon svg-icon" aria-hidden="true">
2622
+                  <use xlink:href="#transport-shujushengchengguize"></use>
2623
+                </svg>
2624
+                <div class="name">数据生成规则</div>
2625
+                <div class="code-name">#transport-shujushengchengguize</div>
2626
+            </li>
2627
+          
2628
+            <li class="dib">
2629
+                <svg class="icon svg-icon" aria-hidden="true">
2607
                   <use xlink:href="#transport-fanhui"></use>
2630
                   <use xlink:href="#transport-fanhui"></use>
2608
                 </svg>
2631
                 </svg>
2609
                 <div class="name">返回</div>
2632
                 <div class="name">返回</div>

+ 7 - 3
src/assets/iconfont/iconfont.css

@@ -1,8 +1,8 @@
1
 @font-face {
1
 @font-face {
2
   font-family: "icon_transport"; /* Project id 4543613 */
2
   font-family: "icon_transport"; /* Project id 4543613 */
3
-  src: url('iconfont.woff2?t=1741080510824') format('woff2'),
4
-       url('iconfont.woff?t=1741080510824') format('woff'),
5
-       url('iconfont.ttf?t=1741080510824') format('truetype');
3
+  src: url('iconfont.woff2?t=1743147201353') format('woff2'),
4
+       url('iconfont.woff?t=1743147201353') format('woff'),
5
+       url('iconfont.ttf?t=1743147201353') format('truetype');
6
 }
6
 }
7
 
7
 
8
 .icon_transport {
8
 .icon_transport {
@@ -13,6 +13,10 @@
13
   -moz-osx-font-smoothing: grayscale;
13
   -moz-osx-font-smoothing: grayscale;
14
 }
14
 }
15
 
15
 
16
+.transport-shujushengchengguize:before {
17
+  content: "\e6e1";
18
+}
19
+
16
 .transport-fanhui:before {
20
 .transport-fanhui:before {
17
   content: "\e67a";
21
   content: "\e67a";
18
 }
22
 }

File diff suppressed because it is too large
+ 1 - 1
src/assets/iconfont/iconfont.js


+ 7 - 0
src/assets/iconfont/iconfont.json

@@ -6,6 +6,13 @@
6
   "description": "",
6
   "description": "",
7
   "glyphs": [
7
   "glyphs": [
8
     {
8
     {
9
+      "icon_id": "18532319",
10
+      "name": "数据生成规则",
11
+      "font_class": "shujushengchengguize",
12
+      "unicode": "e6e1",
13
+      "unicode_decimal": 59105
14
+    },
15
+    {
9
       "icon_id": "2569862",
16
       "icon_id": "2569862",
10
       "name": "返回",
17
       "name": "返回",
11
       "font_class": "fanhui",
18
       "font_class": "fanhui",

BIN
src/assets/iconfont/iconfont.ttf


BIN
src/assets/iconfont/iconfont.woff


BIN
src/assets/iconfont/iconfont.woff2