maotao vor 2 Wochen
Ursprung
Commit
99f3bdb50b

+ 50 - 2
src/app/components/configurationCenter/configuration-manHour/configuration-manHour.component.html

@@ -4,6 +4,8 @@
4 4
     <div class="address">
5 5
       <div class="contentHead">工时大类
6 6
 				<div>
7
+					<button nz-button class="mar-rig-10 btn" nzType="primary" nzSize="small" *ngIf="activeCategory1.id" (click)="operation(1)">{{activeCategory1.disable==1?'停用':'启用'}}</button>
8
+					<button nz-button class="mar-rig-10 btn" nzType="primary" nzSize="small" *ngIf="activeCategory1.id" (click)="addLogModal(1)">日志</button>
7 9
 					<button nz-button class="mar-rig-10 btn cancel" nzType="default" nzSize="small" *ngIf="activeCategory1.id && categoryList1.length" (click)="delCategoryModal(1)">删除</button>
8 10
           <button nz-button class="mar-rig-10 btn" nzType="primary" nzSize="small" *ngIf="activeCategory1.id && categoryList1.length" (click)="editCategoryModal(1)">编辑</button>
9 11
 					<button nz-button nzType="primary" nzSize="small" (click)="addCategoryModal(1)">新增</button>
@@ -11,12 +13,14 @@
11 13
 			</div>
12 14
       <overlay-scrollbars #osComponentRef1 class="contentBody">
13 15
         <nz-spin nzSimple [nzSpinning]="categoryLoading1" class="mt8 text_align_center"></nz-spin>
14
-        <div [hidden]="categoryLoading1" class="contentItem" [title]="item.workName" [ngClass]="{ active: item.id === activeCategory1.id }" (click)="clickCategory(item, 1)" *ngFor="let item of categoryList1">{{ item.workName }} - {{item.workUnit}} - {{item.wage}}元 - {{item.integral.value}}分</div>
16
+        <div [hidden]="categoryLoading1" class="contentItem" [title]="item.workName" [ngClass]="{ active: item.id === activeCategory1.id }" (click)="clickCategory(item, 1)" *ngFor="let item of categoryList1">{{ item.workName }} - {{item.workUnit}} - {{item.wage}}元 - {{item.integral.value}}分 - {{item.disable==0?'禁用':'启用'}}</div>
15 17
       </overlay-scrollbars>
16 18
     </div>
17 19
     <div class="address">
18 20
       <div class="contentHead">工时小类
19 21
 				<div>
22
+					<button nz-button class="mar-rig-10 btn" nzType="primary" nzSize="small" *ngIf="activeCategory2.id && activeCategory1.disable==1 && activeCategory1.id" (click)="operation(2)">{{activeCategory2.disable==1?'停用':'启用'}}</button>
23
+					<button nz-button class="mar-rig-10 btn" nzType="primary" nzSize="small" *ngIf="activeCategory2.id && activeCategory1.id" (click)="addLogModal(2)">日志</button>
20 24
 					<button nz-button class="mar-rig-10 btn cancel" *ngIf="activeCategory2.id && activeCategory1.id" nzType="default" nzSize="small" (click)="delCategoryModal(2)">删除</button>
21 25
           <button nz-button class="mar-rig-10 btn" *ngIf="activeCategory2.id && activeCategory1.id" nzType="primary" nzSize="small" (click)="editCategoryModal(2)">编辑</button>
22 26
 					<button nz-button nzType="primary" nzSize="small" *ngIf="activeCategory1.id" (click)="addCategoryModal(2)">新增</button>
@@ -24,7 +28,7 @@
24 28
 			</div>
25 29
       <overlay-scrollbars #osComponentRef2 class="contentBody">
26 30
         <nz-spin nzSimple [nzSpinning]="categoryLoading2" class="mt8 text_align_center"></nz-spin>
27
-        <div [hidden]="categoryLoading2" class="contentItem" [title]="item.workName" [ngClass]="{ active: item.id === activeCategory2.id }" (click)="clickCategory(item, 2)" *ngFor="let item of categoryList2">{{ item.workName }} - {{item.workUnit}} - {{item.wage}}元 - {{item.integral.value}}分</div>
31
+        <div [hidden]="categoryLoading2" class="contentItem" [title]="item.workName" [ngClass]="{ active: item.id === activeCategory2.id }" (click)="clickCategory(item, 2)" *ngFor="let item of categoryList2">{{ item.workName }} - {{item.workUnit}} - {{item.wage}}元 - {{item.integral.value}}分 - {{item.disable==0?'禁用':'启用'}}</div>
28 32
       </overlay-scrollbars>
29 33
     </div>
30 34
   </div>
@@ -121,3 +125,47 @@
121 125
 <app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="btnLoading"
122 126
   (confirmDelEvent)="confirmDel()" (cancelDelEvent)="cancelDel()" [content]="delContent" confirmTxt="是" cancelTxt="否">
123 127
 </app-dialog-delete>
128
+
129
+<!-- 启用/停用模态框 -->
130
+<app-dialog-delete [delModal]="operationModal" (hideDelModalEvent)="hideOperationModal()" [btnLoading]="btnLoading"
131
+  (confirmDelEvent)="confirmOperation()" (cancelDelEvent)="cancelOperation()" [content]="operationContent" confirmTxt="是" cancelTxt="否">
132
+</app-dialog-delete>
133
+
134
+<!-- 日志查看模态框 -->
135
+	<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="logModal">
136
+	  <div class="modalBody modalLogBody">
137
+	    <div class="title">日志查看<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
138
+	    </div>
139
+	    <div class="content">
140
+	      <div class="list-template__bottom">
141
+	        <nz-table class="list-template__nzTable" [nzData]="listLogOfData" nzSize="middle" [nzShowPagination]="false"
142
+	          [nzLoading]="loading2">
143
+	          <thead>
144
+	            <tr class="thead">
145
+								<th>动作</th>
146
+	              <th>操作时间</th>
147
+	              <th>操作人</th>
148
+	              <th>调整记录</th>
149
+	            </tr>
150
+	          </thead>
151
+	          <tbody>
152
+	            <tr *ngFor="let data of listLogOfData">
153
+	            	<td>{{ data.operationType ? data.operationType.name : '-' }}</td>
154
+	            	<td>{{ data.operationTime|date:'yyyy-MM-dd HH:mm'}}</td>
155
+	            	<td>{{ data.operationUserDTO ? data.operationUserDTO.name : '-' }}</td>
156
+	            	<td>{{ data.logRemark ? data.logRemark : '-' }}</td>
157
+	            </tr>
158
+	          </tbody>
159
+	        </nz-table>
160
+	      </div>
161
+				<div class="list-template__pagination">
162
+				  <nz-pagination [(nzPageIndex)]="pageLogIndex" [(nzTotal)]="listLogLength" nzShowSizeChanger [(nzPageSize)]="pageLogSize"
163
+				    (nzPageIndexChange)="getLogList()" (nzPageSizeChange)="getLogList()">
164
+				  </nz-pagination>
165
+				</div>
166
+	    </div>
167
+	    <div class="display_flex justify-content_flex-center">
168
+	      <button class="btn" nz-button nzType="primary" (click)="hideModal()">知道了</button>
169
+	    </div>
170
+	  </div>
171
+	</div>

+ 117 - 0
src/app/components/configurationCenter/configuration-manHour/configuration-manHour.component.less

@@ -298,6 +298,123 @@
298 298
           }
299 299
         }
300 300
       }
301
+			
302
+			.modalLogBody {
303
+			  width: 80%;
304
+			  height: auto;
305
+			
306
+			  .content {
307
+			    width: 100%;
308
+			    height: auto;
309
+			    padding: 19px 14px 0 14px;
310
+			    max-height: 500px;
311
+			    overflow-y: auto;
312
+					
313
+					.list-template__bottom {
314
+					  background: #f9fafb;
315
+					  border: 1px solid #e5e9ed;
316
+					  border-radius: 8px;
317
+					  // padding-bottom: 56px;
318
+					  position: relative;
319
+					  .list-template__nzTable {
320
+					    padding: 16px 16px 0;
321
+					
322
+					    .thead {
323
+					      background-image: linear-gradient(to right, @bg-start, @bg-end);
324
+					
325
+					      th {
326
+					        background: transparent;
327
+					        color: #fff;
328
+					        text-align: center;
329
+					      }
330
+					    }
331
+					
332
+					    .ant-table-body {
333
+					      border-bottom: 1px solid #e5e9ed;
334
+					    }
335
+					
336
+					    .ant-table-tbody {
337
+					      tr {
338
+					        text-align: center;
339
+					        color: #333;
340
+					
341
+					        td {
342
+					          border: none;
343
+					
344
+					          &.tab_hover:hover{
345
+					            text-decoration: underline;
346
+					            cursor: pointer;
347
+					          }
348
+					
349
+					          .coop {
350
+					            button{
351
+					              color: #333;
352
+					            }
353
+					            span,button {
354
+					              display: inline-block;
355
+					              padding: 0 8px;
356
+					              cursor: pointer;
357
+					              position: relative;
358
+					
359
+					              &::after {
360
+					                content: "|";
361
+					                position: absolute;
362
+					                top: 0;
363
+					                right: 0;
364
+					              }
365
+					
366
+					              &:hover,
367
+					              &:active {
368
+					                color: @primary-color;
369
+					              }
370
+					
371
+					              &:nth-last-child(1) {
372
+					                &::after {
373
+					                  content: "";
374
+					                }
375
+					              }
376
+					            }
377
+					          }
378
+					        }
379
+					      }
380
+					    }
381
+					  }
382
+					}
383
+										
384
+			    .addForm {
385
+			      .ant-form-item {
386
+			        margin-bottom: 14px;
387
+			
388
+			        .ant-form-item-label {
389
+			          line-height: 14px;
390
+			          text-align: left;
391
+			        }
392
+			      }
393
+			    }
394
+			
395
+			    .editForm {
396
+			      .ant-form-item {
397
+			        margin-bottom: 14px;
398
+			
399
+			        .ant-form-item-label {
400
+			          line-height: 0;
401
+			          text-align: left;
402
+			        }
403
+			      }
404
+			    }
405
+					.list-template__pagination {
406
+						text-align: right;
407
+						padding: 20px 0;
408
+					}
409
+			  }
410
+				
411
+				
412
+			  button {
413
+			    &:nth-child(1) {
414
+			      margin-right: 20px;
415
+			    }
416
+			  }
417
+			}
301 418
     }
302 419
   }
303 420
 }

+ 104 - 1
src/app/components/configurationCenter/configuration-manHour/configuration-manHour.component.ts

@@ -161,7 +161,110 @@ export class ConfigurationManHourComponent implements OnInit {
161 161
 	hideDelModal() {
162 162
 	  this.delModal = false;
163 163
 	}
164
-
164
+	
165
+	// 日志列表
166
+	listLogOfData: any[] = []; //日志数据
167
+	pageLogIndex: number = 1; //日志当前页码
168
+	pageLogSize: number = 10; //日志每页展示条数
169
+	listLogLength: number = 10; //日志总数据量
170
+	loading2:boolean = false;
171
+	getLogList(type) {
172
+	  if (type == 1) {
173
+	    this.pageLogIndex = 1;
174
+	  }
175
+	  let postData = {
176
+	  	idx: 0,
177
+	  	sum: 99999,
178
+	  	workHourManagementLog: {
179
+	  		workHourId: this.itemData.id,
180
+	  	},
181
+	  };
182
+	  this.loading2 = true;
183
+	  this.mainService
184
+	    .getFetchDataList("simple/data", "workHourManagementLog", postData)
185
+	    .subscribe((data) => {
186
+	      this.loading2 = false;
187
+	      if (data.status == 200) {
188
+					this.logModal = true
189
+	        this.listLogOfData = data.list;
190
+	        this.listLogLength = data.totalNum;
191
+	      }else{
192
+	        this.message.error(data.msg || "请求数据失败");
193
+	      }
194
+	    });
195
+	}
196
+	
197
+	// 启用/停用工时
198
+	operationModal: boolean = false; 
199
+	operationContent: string = null; 
200
+	operation(type:number){
201
+		if(type==1){
202
+			let msg = this.activeCategory1.disable==1?'停用':'启用'
203
+			this.operationContent = `您确认${msg}大类工时吗?${msg}后所有小类同时${msg}`
204
+		}else{
205
+			let msg = this.activeCategory2.disable==1?'停用':'启用'
206
+			this.operationContent = `您确认${msg}小类工时吗?`
207
+		}
208
+		this.coopType = type;
209
+		this.operationModal = true
210
+	}
211
+	
212
+	hideOperationModal(){
213
+		this.operationModal = false
214
+	}
215
+	
216
+	// 取消启用/停用弹框
217
+	cancelOperation(){
218
+		this.hideOperationModal();
219
+	}
220
+	
221
+	// 确认启用/停用
222
+	confirmOperation() {
223
+	  let that = this;
224
+		let disable = null
225
+	  that.btnLoading = true;
226
+		if(this['activeCategory' + this.coopType].disable==1){
227
+			disable = 0
228
+		}else{
229
+			disable = 1
230
+		}
231
+		let postData = {
232
+		  workHourManagement: {
233
+				...this['activeCategory' + this.coopType],
234
+				disable:disable,
235
+				upType: 'disable'
236
+		  }
237
+		}
238
+	  that.mainService
239
+	    .coopData('updData', 'workHourManagement', postData)
240
+	    .subscribe((data) => {
241
+	      that.btnLoading = false;
242
+	      that.hideOperationModal();
243
+				if(this.coopType==1){
244
+					this.categoryList2 = []
245
+				}
246
+	      if (data["status"] == 200) {
247
+	        that.showPromptModal("操作", true, "");
248
+	      } else {
249
+	        that.showPromptModal("操作", false, data["msg"]);
250
+	      }
251
+	    });
252
+	}
253
+	
254
+	// 查看日志
255
+	itemData:any = {};
256
+	logModal:boolean = false;
257
+	addLogModal(type){
258
+		this.itemData = this['activeCategory' + type];
259
+		console.log(this['activeCategory' + type])
260
+		this.getLogList(1)
261
+	}
262
+	
263
+	// 关闭日志
264
+	hideModal() {
265
+	  this.logModal = false;
266
+	}
267
+	
165 268
   // 获取工时
166 269
   loading1:boolean = false;
167 270
   tableCategoryHeight:number = 0;

+ 45 - 2
src/app/components/incidentManagement/incident-handle-order/incident-handle-order.component.html

@@ -9,7 +9,8 @@
9 9
           <div class="value">
10 10
             <span class="unitPrice">单价:{{ item.consumableEndPrice }}元</span>
11 11
             <button nz-button class="btn default ml8" (click)="editConsumable(item)">编辑</button>
12
-          </div>
12
+						<button nz-button class="btn default ml8" (click)="logView(1,item)">日志</button>
13
+					</div>
13 14
         </div>
14 15
 
15 16
         <div class="row">
@@ -39,7 +40,8 @@
39 40
           <div class="value">
40 41
             <span class="unitPrice">单价:{{ item.wage }}元</span>
41 42
             <button nz-button class="btn default ml8" (click)="editWorkHourManagement(item)">编辑</button>
42
-          </div>
43
+						<button nz-button class="btn default ml8" (click)="logView(2,item)">日志</button>
44
+					</div>
43 45
         </div>
44 46
 
45 47
         <div class="row">
@@ -137,3 +139,44 @@
137 139
 <!-- 删除模态框 -->
138 140
 <app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="btnLoading"
139 141
 (confirmDelEvent)="confirmDel()" [content]="tipsMsg1"></app-dialog-delete>
142
+
143
+<!-- 日志查看模态框 -->
144
+	<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="logModal">
145
+	  <div class="modalBody modalLogBody">
146
+	    <div class="title">日志查看<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
147
+	    </div>
148
+	    <div class="content">
149
+	      <div class="list-template__bottom">
150
+	        <nz-table class="list-template__nzTable" [nzData]="listLogOfData" nzSize="middle" [nzShowPagination]="false"
151
+	          [nzLoading]="loading2">
152
+	          <thead>
153
+	            <tr class="thead">
154
+								<th>动作</th>
155
+	              <th>操作时间</th>
156
+	              <th>操作人</th>
157
+	              <th>调整记录</th>
158
+	            </tr>
159
+	          </thead>
160
+	          <tbody>
161
+	            <tr *ngFor="let data of listLogOfData">
162
+								<td>{{ data.operationType ? data.operationType.name : '-' }}</td>
163
+								<td *ngIf="operationType==1">{{ data.time|date:'yyyy-MM-dd HH:mm'}}</td>
164
+								<td *ngIf="operationType==2">{{ data.operationTime|date:'yyyy-MM-dd HH:mm'}}</td>
165
+								<td *ngIf="operationType==1">{{ data.operator ? data.operator.name : '-' }}</td>
166
+								<td *ngIf="operationType==2">{{ data.operationUserDTO ? data.operationUserDTO.name : '-' }}</td>
167
+								<td>{{ data.logRemark ? data.logRemark : '-' }}</td>
168
+	            </tr>
169
+	          </tbody>
170
+	        </nz-table>
171
+	      </div>
172
+			<!-- 	<div class="list-template__pagination">
173
+				  <nz-pagination [(nzPageIndex)]="pageLogIndex" [(nzTotal)]="listLogLength" nzShowSizeChanger [(nzPageSize)]="pageLogSize"
174
+				    (nzPageIndexChange)="getLogList()" (nzPageSizeChange)="getLogList()">
175
+				  </nz-pagination>
176
+				</div> -->
177
+	    </div>
178
+	    <div class="display_flex justify-content_flex-center">
179
+	      <button class="btn" nz-button nzType="primary" (click)="hideModal()">知道了</button>
180
+	    </div>
181
+	  </div>
182
+	</div>

+ 118 - 0
src/app/components/incidentManagement/incident-handle-order/incident-handle-order.component.less

@@ -333,6 +333,124 @@
333 333
           }
334 334
         }
335 335
       }
336
+			
337
+			
338
+			.modalLogBody {
339
+			  width: 80%;
340
+			  height: auto;
341
+			
342
+			  .content {
343
+			    width: 100%;
344
+			    height: auto;
345
+			    padding: 19px 14px 20px 14px;
346
+			    max-height: 500px;
347
+			    overflow-y: auto;
348
+					
349
+					.list-template__bottom {
350
+					  background: #f9fafb;
351
+					  border: 1px solid #e5e9ed;
352
+					  border-radius: 8px;
353
+					  // padding-bottom: 56px;
354
+					  position: relative;
355
+					  .list-template__nzTable {
356
+					    padding: 16px 16px 0;
357
+					
358
+					    .thead {
359
+					      background-image: linear-gradient(to right, @bg-start, @bg-end);
360
+					
361
+					      th {
362
+					        background: transparent;
363
+					        color: #fff;
364
+					        text-align: center;
365
+					      }
366
+					    }
367
+					
368
+					    .ant-table-body {
369
+					      border-bottom: 1px solid #e5e9ed;
370
+					    }
371
+					
372
+					    .ant-table-tbody {
373
+					      tr {
374
+					        text-align: center;
375
+					        color: #333;
376
+					
377
+					        td {
378
+					          border: none;
379
+					
380
+					          &.tab_hover:hover{
381
+					            text-decoration: underline;
382
+					            cursor: pointer;
383
+					          }
384
+					
385
+					          .coop {
386
+					            button{
387
+					              color: #333;
388
+					            }
389
+					            span,button {
390
+					              display: inline-block;
391
+					              padding: 0 8px;
392
+					              cursor: pointer;
393
+					              position: relative;
394
+					
395
+					              &::after {
396
+					                content: "|";
397
+					                position: absolute;
398
+					                top: 0;
399
+					                right: 0;
400
+					              }
401
+					
402
+					              &:hover,
403
+					              &:active {
404
+					                color: @primary-color;
405
+					              }
406
+					
407
+					              &:nth-last-child(1) {
408
+					                &::after {
409
+					                  content: "";
410
+					                }
411
+					              }
412
+					            }
413
+					          }
414
+					        }
415
+					      }
416
+					    }
417
+					  }
418
+					}
419
+										
420
+			    .addForm {
421
+			      .ant-form-item {
422
+			        margin-bottom: 14px;
423
+			
424
+			        .ant-form-item-label {
425
+			          line-height: 14px;
426
+			          text-align: left;
427
+			        }
428
+			      }
429
+			    }
430
+			
431
+			    .editForm {
432
+			      .ant-form-item {
433
+			        margin-bottom: 14px;
434
+			
435
+			        .ant-form-item-label {
436
+			          line-height: 0;
437
+			          text-align: left;
438
+			        }
439
+			      }
440
+			    }
441
+					.list-template__pagination {
442
+						text-align: right;
443
+						padding: 20px 0;
444
+					}
445
+			  }
446
+				
447
+				
448
+			  button {
449
+			    &:nth-child(1) {
450
+			      margin-right: 20px;
451
+			    }
452
+			  }
453
+			}
336 454
     }
337 455
   }
338 456
 }

+ 76 - 1
src/app/components/incidentManagement/incident-handle-order/incident-handle-order.component.ts

@@ -38,7 +38,81 @@ export class IncidentHandleOrderComponent implements OnInit {
38 38
     this.getHospitalConfig();
39 39
     this.getWorkHourManagementList();
40 40
   }
41
-
41
+	
42
+	// 工时日志列表
43
+	listLogOfData: any[] = []; //日志数据
44
+	pageLogIndex: number = 1; //日志当前页码
45
+	pageLogSize: number = 10; //日志每页展示条数
46
+	listLogLength: number = 10; //日志总数据量
47
+	loading2:boolean = false;
48
+	getHourLogList() {
49
+	  let data = {
50
+	    idx: 0,
51
+	    sum: 99999,
52
+	    workHourManagementLog: {
53
+				workHourId: this.itemData.id,
54
+				repairSummaryId: this.summaryId
55
+	    },
56
+	  };
57
+	  this.loading2 = true;
58
+	  this.mainService
59
+	    .getFetchDataList("simple/data", "workHourManagementLog", data)
60
+	    .subscribe((data) => {
61
+	      this.loading2 = false;
62
+	      if (data.status == 200) {
63
+					this.logModal = true
64
+	        this.listLogOfData = data.list;
65
+	        // this.listLogLength = data.totalNum;
66
+	      }else{
67
+	        this.message.error(data.msg || "请求数据失败");
68
+	      }
69
+	    });
70
+	}
71
+	
72
+	// 耗材日志列表
73
+	getConsumableLogList() {
74
+	  let data = {
75
+	    idx: 0,
76
+	    sum: 99999,
77
+			assetConsumablesHistory: {
78
+			  assetConsumablesId: this.itemData.consumableId,
79
+				repairSummaryId: this.summaryId
80
+			},
81
+	  };
82
+	  this.loading2 = true;
83
+	  this.mainService
84
+	    .getFetchDataList("simple/data", "assetConsumablesHistory", data)
85
+	    .subscribe((data) => {
86
+	      this.loading2 = false;
87
+	      if (data.status == 200) {
88
+					this.logModal = true
89
+	        this.listLogOfData = data.list;
90
+	        // this.listLogLength = data.totalNum;
91
+	      }else{
92
+	        this.message.error(data.msg || "请求数据失败");
93
+	      }
94
+	    });
95
+	}
96
+	
97
+	// 查看日志
98
+	itemData:any = {};
99
+	logModal:boolean = false;
100
+	operationType:any;
101
+	logView(type, data){
102
+		this.operationType = type;
103
+		this.itemData = data;
104
+		if(type==1){ //耗材
105
+			this.getConsumableLogList()
106
+		}else{ //日志
107
+			this.getHourLogList()
108
+		}
109
+	}
110
+	
111
+	// 关闭日志
112
+	hideModal() {
113
+	  this.logModal = false;
114
+	}
115
+	
42 116
   // ============耗材start=================
43 117
 
44 118
   // 新增耗材/工时弹框
@@ -312,6 +386,7 @@ export class IncidentHandleOrderComponent implements OnInit {
312 386
       workHourManagement: {
313 387
         hosId: this.hosId,
314 388
         showSecond: 1,
389
+				disable:1
315 390
       },
316 391
       idx: 0,
317 392
       sum: 9999,

+ 3 - 0
src/app/services/tool.service.ts

@@ -312,6 +312,9 @@ export class ToolService {
312 312
 				case "callCenter":
313 313
 				  coopBtns.callCenter = true; //呼叫中心
314 314
 				  break;
315
+				case "log":
316
+				  coopBtns.log = true; //日志
317
+				  break;
315 318
       }
316 319
     });
317 320
     console.log(coopBtns);

+ 42 - 1
src/app/views/assets-consumable/assets-consumable.component.html

@@ -51,7 +51,8 @@
51 51
               <div class="coop">
52 52
                 <span *ngIf="coopBtns.edit" (click)="edit($event, data)">编辑</span>
53 53
                 <span *ngIf="coopBtns.del" (click)="showDelModal($event, data,'您确认要删除吗?','删除','del')">删除</span>
54
-              </div>
54
+								<span *ngIf="coopBtns.log" (click)="showLogModal($event, data)">日志</span>
55
+							</div>
55 56
             </td>
56 57
           </tr>
57 58
         </tbody>
@@ -134,6 +135,46 @@
134 135
       </div>
135 136
     </div>
136 137
   </div>
138
+	
139
+	<!-- 日志查看模态框 -->
140
+	<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="logModal">
141
+	  <div class="modalBody modalLogBody">
142
+	    <div class="title">日志查看<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
143
+	    </div>
144
+	    <div class="content">
145
+	      <div class="list-template__bottom">
146
+	        <nz-table class="list-template__nzTable" [nzData]="listLogOfData" nzSize="middle" [nzShowPagination]="false"
147
+	          [nzLoading]="loading2">
148
+	          <thead>
149
+	            <tr class="thead">
150
+								<th>动作</th>
151
+	              <th>操作时间</th>
152
+	              <th>操作人</th>
153
+	              <th>调整记录</th>
154
+	            </tr>
155
+	          </thead>
156
+	          <tbody>
157
+	            <tr *ngFor="let data of listLogOfData">
158
+								<td>{{ data.operationType ? data.operationType.name : '-' }}</td>
159
+	              <td>{{ data.time|date:'yyyy-MM-dd HH:mm'}}</td>
160
+	              <td>{{ data.operator ? data.operator.name : '-' }}</td>
161
+	              <td>{{ data.logRemark ? data.logRemark : '-' }}</td>
162
+	            </tr>
163
+	          </tbody>
164
+	        </nz-table>
165
+	      </div>
166
+				<div class="list-template__pagination">
167
+				  <nz-pagination [(nzPageIndex)]="pageLogIndex" [(nzTotal)]="listLogLength" nzShowSizeChanger [(nzPageSize)]="pageLogSize"
168
+				    (nzPageIndexChange)="getLogList()" (nzPageSizeChange)="getLogList()">
169
+				  </nz-pagination>
170
+				</div>
171
+	    </div>
172
+	    <div class="display_flex justify-content_flex-center">
173
+	      <button class="btn" nz-button nzType="primary" (click)="hideModal()">知道了</button>
174
+	    </div>
175
+	  </div>
176
+	</div>
177
+	
137 178
   <!-- 模态框 -->
138 179
   <app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="btnLoading"
139 180
     (confirmDelEvent)="confirmDel()" [content]="tipsMsg1"></app-dialog-delete>

+ 117 - 0
src/app/views/assets-consumable/assets-consumable.component.less

@@ -172,5 +172,122 @@
172 172
         }
173 173
       }
174 174
     }
175
+		
176
+		.modalLogBody {
177
+		  width: 80%;
178
+		  height: auto;
179
+		
180
+		  .content {
181
+		    width: 100%;
182
+		    height: auto;
183
+		    padding: 19px 14px 0 14px;
184
+		    max-height: 500px;
185
+		    overflow-y: auto;
186
+				
187
+				.list-template__bottom {
188
+				  background: #f9fafb;
189
+				  border: 1px solid #e5e9ed;
190
+				  border-radius: 8px;
191
+				  // padding-bottom: 56px;
192
+				  position: relative;
193
+				  .list-template__nzTable {
194
+				    padding: 16px 16px 0;
195
+				
196
+				    .thead {
197
+				      background-image: linear-gradient(to right, @bg-start, @bg-end);
198
+				
199
+				      th {
200
+				        background: transparent;
201
+				        color: #fff;
202
+				        text-align: center;
203
+				      }
204
+				    }
205
+				
206
+				    .ant-table-body {
207
+				      border-bottom: 1px solid #e5e9ed;
208
+				    }
209
+				
210
+				    .ant-table-tbody {
211
+				      tr {
212
+				        text-align: center;
213
+				        color: #333;
214
+				
215
+				        td {
216
+				          border: none;
217
+				
218
+				          &.tab_hover:hover{
219
+				            text-decoration: underline;
220
+				            cursor: pointer;
221
+				          }
222
+				
223
+				          .coop {
224
+				            button{
225
+				              color: #333;
226
+				            }
227
+				            span,button {
228
+				              display: inline-block;
229
+				              padding: 0 8px;
230
+				              cursor: pointer;
231
+				              position: relative;
232
+				
233
+				              &::after {
234
+				                content: "|";
235
+				                position: absolute;
236
+				                top: 0;
237
+				                right: 0;
238
+				              }
239
+				
240
+				              &:hover,
241
+				              &:active {
242
+				                color: @primary-color;
243
+				              }
244
+				
245
+				              &:nth-last-child(1) {
246
+				                &::after {
247
+				                  content: "";
248
+				                }
249
+				              }
250
+				            }
251
+				          }
252
+				        }
253
+				      }
254
+				    }
255
+				  }
256
+				}
257
+									
258
+		    .addForm {
259
+		      .ant-form-item {
260
+		        margin-bottom: 14px;
261
+		
262
+		        .ant-form-item-label {
263
+		          line-height: 14px;
264
+		          text-align: left;
265
+		        }
266
+		      }
267
+		    }
268
+		
269
+		    .editForm {
270
+		      .ant-form-item {
271
+		        margin-bottom: 14px;
272
+		
273
+		        .ant-form-item-label {
274
+		          line-height: 0;
275
+		          text-align: left;
276
+		        }
277
+		      }
278
+		    }
279
+				.list-template__pagination {
280
+					text-align: right;
281
+					padding: 20px 0;
282
+				}
283
+		  }
284
+			
285
+			
286
+		  button {
287
+		    &:nth-child(1) {
288
+		      margin-right: 20px;
289
+		    }
290
+		  }
291
+		}
175 292
   }
176 293
 }

+ 46 - 1
src/app/views/assets-consumable/assets-consumable.component.ts

@@ -167,7 +167,52 @@ export class AssetsConsumableComponent implements OnInit {
167 167
     this.isLoading = true;
168 168
     this.changeInpSubject.next([type, model, e]);
169 169
   }
170
-
170
+	
171
+	// 日志列表
172
+	listLogOfData: any[] = []; //日志数据
173
+	pageLogIndex: number = 1; //日志当前页码
174
+	pageLogSize: number = 10; //日志每页展示条数
175
+	listLogLength: number = 10; //日志总数据量
176
+	loading2:boolean = false;
177
+	getLogList(type) {
178
+	  if (type == 1) {
179
+	    this.pageLogIndex = 1;
180
+	  }
181
+	  let data = {
182
+	    idx: this.pageLogIndex - 1,
183
+	    sum: this.pageLogSize,
184
+	    assetConsumablesHistory: {
185
+	      assetConsumablesId: this.itemData.id,
186
+	    },
187
+	  };
188
+	  this.loading2 = true;
189
+	  this.mainService
190
+	    .getFetchDataList("simple/data", "assetConsumablesHistory", data)
191
+	    .subscribe((data) => {
192
+	      this.loading2 = false;
193
+	      if (data.status == 200) {
194
+					this.logModal = true
195
+	        this.listLogOfData = data.list;
196
+	        this.listLogLength = data.totalNum;
197
+	      }else{
198
+	        this.message.error(data.msg || "请求数据失败");
199
+	      }
200
+	    });
201
+	}
202
+	
203
+	// 查看日志
204
+	itemData:any = {};
205
+	logModal:boolean = false;
206
+	showLogModal(data, e){
207
+		this.itemData = data;
208
+		this.getLogList(1)
209
+	}
210
+	
211
+	// 关闭日志
212
+	hideModal() {
213
+	  this.logModal = false;
214
+	}
215
+	
171 216
   // 获取产品列表
172 217
   assetProductsearchList: any = [];
173 218
   assetProductaddList: any = [];

+ 1 - 1
src/app/views/hushijiandan/hushijiandan.component.html

@@ -2534,7 +2534,7 @@
2534 2534
 <!-- 在模态框所在的 div 添加属性 [appDrag] -->
2535 2535
 <div appDrag class="modal" [ngClass]="{'isKeyClass': iskeySwitch}" *ngIf="isShowNurseCode">
2536 2536
   <div class="header drag-title">
2537
-    <h2>签到二维码</h2>
2537
+    <h2>交接码</h2>
2538 2538
     <i
2539 2539
       class="icon-close icon_transport transport-guanbi1"
2540 2540
       (click)="closeNurseCode()"

+ 7 - 0
src/app/views/incident-management/incident-management.component.html

@@ -62,6 +62,13 @@
62 62
             </nz-option>
63 63
           </nz-select>
64 64
         </div>
65
+				<div class="list-template__searchItem">
66
+				  <span class="label">评分</span>:
67
+				  <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzAllowClear
68
+				    nzPlaceHolder="请选择评分" [(ngModel)]="searchDTO.score">
69
+				    <nz-option [nzLabel]="data.name" [nzValue]="data.id" *ngFor="let data of scoreData"></nz-option>
70
+				  </nz-select>
71
+				</div>
65 72
       </div>
66 73
       <div nz-col nzXl='6' class="list-template__btns">
67 74
         <button nz-button class="btn default ml8" (click)='search()'>搜索</button>

+ 11 - 0
src/app/views/incident-management/incident-management.component.ts

@@ -356,6 +356,9 @@ export class IncidentManagementComponent implements OnInit, OnDestroy {
356 356
         incidentsign: this.searchDTO.incidentsign,
357 357
         department: this.searchDTO.department ? { id: this.searchDTO.department } : undefined,
358 358
         statusId: this.searchDTO.statusId || undefined,
359
+				wxdegree:{
360
+					id:this.searchDTO.score || undefined,
361
+				},
359 362
         todoingUser: this.searchDTO.todoingUser ? { id: this.searchDTO.todoingUser } : undefined,
360 363
         levelCategory: this.validateSearchForm.value.levelCategory ? { id: this.validateSearchForm.value.levelCategory } : undefined,
361 364
         acceptUser: this.validateSearchForm.value.acceptUser ? { id: this.validateSearchForm.value.acceptUser } : undefined,
@@ -504,10 +507,15 @@ export class IncidentManagementComponent implements OnInit, OnDestroy {
504 507
   }
505 508
 
506 509
   // 获取工单状态
510
+	scoreData:any;
507 511
   getGdStates() {
508 512
     this.mainService.getDictionary("list", "incident_status").subscribe((data) => {
509 513
       this.gdStates = data || [];
510 514
     });
515
+		this.mainService.getDictionary("list", "incident_degree").subscribe((data) => {
516
+		  this.scoreData = data || [];
517
+		});
518
+		
511 519
   }
512 520
 
513 521
   // 获取逾期查询
@@ -700,6 +708,9 @@ export class IncidentManagementComponent implements OnInit, OnDestroy {
700 708
         incidentsign: this.searchDTO.incidentsign,
701 709
         department: this.searchDTO.department ? { id: this.searchDTO.department } : undefined,
702 710
         statusId: this.searchDTO.statusId || undefined,
711
+				wxdegree:{
712
+					id:this.searchDTO.score || undefined,
713
+				},
703 714
         todoingUser: this.searchDTO.todoingUser ? { id: this.searchDTO.todoingUser } : undefined,
704 715
         levelCategory: this.validateSearchForm.value.levelCategory ? { id: this.validateSearchForm.value.levelCategory } : undefined,
705 716
         acceptUser: this.validateSearchForm.value.acceptUser ? { id: this.validateSearchForm.value.acceptUser } : undefined,