소스 검색

大输液和统计分析优化

maotao 9 달 전
부모
커밋
3579f47578

+ 3 - 3
src/app/views/dept-statistics/dept-statistics.component.html

@@ -28,11 +28,11 @@
28 28
           <tr class="thead">
29 29
             <th nzWidth="5%">序号</th>
30 30
             <th nzWidth="10%" nzShowSort nzSortKey="bid" [(nzSort)]="sortCurrent.bid" (nzSortChange)="sort('bid',$event)">科室名称</th>
31
-            <th nzWidth="10%" nzShowSort nzSortKey="total" [(nzSort)]="sortCurrent.total" (nzSortChange)="sort('total',$event)">工单总量</th>
31
+            <th nzShowSort nzSortKey="total" [(nzSort)]="sortCurrent.total" (nzSortChange)="sort('total',$event)">工单总量</th>
32 32
             <th *ngFor="let item of listOfHeads; let index=index;" (nzSortChange)="sort(item.dataSort,$event)"
33 33
             	nzShowSort [(nzSort)]="item.sortName"
34 34
             	>{{item.name}}</th>
35
-            <th nzWidth="10%" nzShowSort nzSortKey="other" [(nzSort)]="sortCurrent.other" (nzSortChange)="sort('other',$event)">其他数量</th>
35
+            <th nzShowSort nzSortKey="other" [(nzSort)]="sortCurrent.other" (nzSortChange)="sort('other',$event)">其他数量</th>
36 36
           </tr>
37 37
         </thead>
38 38
         <tbody>
@@ -44,7 +44,7 @@
44 44
       </nz-table>
45 45
       <div class="list-template__pagination">
46 46
         <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
47
-          (nzPageIndexChange)="getList()" (nzPageSizeChange)="getList()">
47
+          (nzPageIndexChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue,'forbid')" (nzPageSizeChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue,'forbid')">
48 48
         </nz-pagination>
49 49
       </div>
50 50
     </div>

+ 0 - 4
src/app/views/dispensing-batch/dispensing-batch.component.html

@@ -220,7 +220,3 @@
220 220
  <!-- 模态框 -->
221 221
 <app-dialog-delete [delModal]="printModal" (hideDelModalEvent)="hidePrintModal()" [btnLoading]="btnLoading"
222 222
   (confirmDelEvent)="confirmPrintDel()" [content]="'您确认发药并打印吗?打印同时会更新云库存并建立配送工单?'"></app-dialog-delete>
223
-		
224
-<!-- 遮罩 -->
225
-<app-mask *ngIf="maskFlag"></app-mask>
226
-<app-excel-import [isShow]="isShow" (hideFormHand)="hideExcelImport($event)" *ngIf="isShow" (submitFormHand)="submitExcelImport($event)"></app-excel-import>

+ 9 - 8
src/app/views/dispensing-detail/dispensing-detail.component.html

@@ -37,8 +37,8 @@
37 37
 						<td>{{ data.addSub||'0' }}</td>
38 38
             <td>
39 39
               <div class="coop">
40
-                <span (click)="itemClick($event, data.id, 'add')">增加</span>
41
-								<span (click)="itemClick($event, data.id, 'del')">减少</span>
40
+                <span (click)="itemClick($event, data, 'add')">增发</span>
41
+								<!-- <span (click)="itemClick($event, data, 'del')">减少</span> -->
42 42
 								<span (click)="grantClick($event, data)">{{data.giveOutType.value=='2'?'单发':'箱发'}}</span>
43 43
 							</div>
44 44
             </td>
@@ -89,13 +89,13 @@
89 89
   <!-- 增加/减少 -->
90 90
   <div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="modal">
91 91
     <div class="modalBody">
92
-      <div class="title">{{add ? '增加' : '减少'}}<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
92
+      <div class="title">增发<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
93 93
       </div>
94 94
       <overlay-scrollbars #osComponentRef1 class="content">
95 95
        <form nz-form [formGroup]="validateForm" class="addForm" (ngSubmit)="submitForm()">
96 96
        	<nz-form-item *ngIf="add">
97
-       	  <nz-form-label nzRequired nzFor="addNum">增加数量</nz-form-label>
98
-       	  <nz-form-control nzErrorTip="请选择增数量!">
97
+       	  <nz-form-label nzRequired nzFor="addNum">增发数量<span class="color-stylr"> (支持负数)</span></nz-form-label>
98
+       	  <nz-form-control nzErrorTip="请选择增数量!">
99 99
        	    <nz-input-group>
100 100
        				<nz-input-number
101 101
 								nz-input
@@ -104,12 +104,13 @@
104 104
        					[nzPrecision]="0"
105 105
        					[nzMax]="999999"
106 106
        					[nzStep]="1"
107
-       					[nzPlaceHolder]="'请填写增数量'"
107
+       					[nzPlaceHolder]="'请填写增数量'"
108 108
        				 ></nz-input-number>
109 109
        			</nz-input-group>
110 110
        	  </nz-form-control>
111 111
        	</nz-form-item>
112
-				<nz-form-item *ngIf="!add">
112
+				<div style="text-align: left;" [ngClass]="{'red': isRight == false, 'green': isRight == true}">(消耗数+原库存数 + 增发数量) / 包装规格 = 1 (计算后数量必须是整数) </div>
113
+		<!-- 		<nz-form-item *ngIf="!add">
113 114
 				  <nz-form-label nzRequired nzFor="delNum">减少数量</nz-form-label>
114 115
 				  <nz-form-control nzErrorTip="请选择减少数量!">
115 116
 				    <nz-input-group>
@@ -124,7 +125,7 @@
124 125
 							 ></nz-input-number>
125 126
 						</nz-input-group>
126 127
 				  </nz-form-control>
127
-				</nz-form-item>
128
+				</nz-form-item> -->
128 129
        </form>
129 130
       </overlay-scrollbars>
130 131
       <div class="display_flex justify-content_flex-center">

+ 9 - 0
src/app/views/dispensing-detail/dispensing-detail.component.less

@@ -332,6 +332,9 @@ h3{
332 332
 				}
333 333
 				
334 334
         .addForm {
335
+					.color-stylr{
336
+						color:red;
337
+					}
335 338
           .ant-form-item {
336 339
             margin-bottom: 14px;
337 340
 
@@ -403,4 +406,10 @@ h3{
403 406
 	border-radius: 50%;
404 407
 	background: red;
405 408
 	display: inline-block;
409
+}
410
+.red{
411
+	color: red;
412
+}
413
+.green{
414
+	color: #34b349;
406 415
 }

+ 18 - 4
src/app/views/dispensing-detail/dispensing-detail.component.ts

@@ -354,9 +354,12 @@ export class DispensingDetailComponent implements OnInit {
354 354
 	}
355 355
 	
356 356
 	// 增加/减少
357
-	itemClick(e, id, type){
357
+	rowData = null;
358
+	itemClick(e, data, type){
359
+		this.isRight = null;
358 360
 		e.stopPropagation();
359
-		this.rowId = id
361
+		this.rowId = data.id
362
+		this.rowData = data
360 363
 		if(type=='add'){
361 364
 			this.add = true
362 365
 		}else{
@@ -367,6 +370,7 @@ export class DispensingDetailComponent implements OnInit {
367 370
 	}
368 371
 	
369 372
 	// 表单提交
373
+	isRight = null;
370 374
 	submitForm(): void {
371 375
 	  var that = this;
372 376
 		for (const i in that.validateForm.controls) {
@@ -375,12 +379,22 @@ export class DispensingDetailComponent implements OnInit {
375 379
 		}
376 380
 		if (that.validateForm.invalid) return;
377 381
 	  let data = {
378
-			addSub:this.add?this.validateForm.value.addNum:this.validateForm.value.delNum,
382
+			addSub:this.validateForm.value.addNum,
379 383
 			id:this.rowId,
380 384
 			hosId:this.hosId,
381 385
 			deptId:this.deptId,
382
-			upType:that.add ? 'add' : 'sub'
383 386
 	  };
387
+		if(this.rowData.giveOutType.value==2){
388
+			let num1 = Number(this.rowData.expendCount) + Number(this.rowData.formerInventory) + Number(data.addSub)
389
+			let num2 = num1 / this.rowData.drugsInfoDTO.packingSpecs
390
+			if(num2 % 1 === 0){
391
+				this.isRight = true
392
+			}else{
393
+				this.isRight = false
394
+				this.message.error('数量错误,请重新填写!')
395
+				return
396
+			}
397
+		}
384 398
 		that.btnLoading = true;
385 399
 	  that.mainService
386 400
 	    .simplePost("addData", "drugsConfigure", data)

+ 1 - 1
src/app/views/medical-waste-department-statistics/medical-waste-department-statistics.component.html

@@ -71,7 +71,7 @@
71 71
 		    <span class="rate"></span>
72 72
 		  </div>
73 73
 		  <div>
74
-		    <span>科室名称</span>
74
+		    <span>科室</span>
75 75
 		    <span>{{summary[0] || 0}}</span>
76 76
 		  </div>
77 77
 		  <div>

+ 6 - 1
src/app/views/medical-waste-personnel-statistics/medical-waste-personnel-statistics.component.ts

@@ -240,7 +240,12 @@ export class MedicalWastePersonnelStatisticsComponent implements OnInit {
240 240
 	
241 241
   // 表格数据
242 242
   loading1 = false;
243
-	summary = {};
243
+	summary = {
244
+		personalNum:null,
245
+		totalTrip:null,
246
+		totalOrder:null,
247
+		totalWeight:null,
248
+	};
244 249
   getList(num?: number, field?: string, sort?: string) {
245 250
     this.pageIndex = num;
246 251
     let postData: any = {

+ 1 - 1
src/app/views/office-detail/office-detail.component.ts

@@ -24,7 +24,7 @@ export class OfficeDetailComponent implements OnInit {
24 24
     this.getDetail();
25 25
   }
26 26
   hideModal() {
27
-    this.router.navigateByUrl("/main/dispensingBatch");
27
+    this.router.navigateByUrl("/main/officeManagement");
28 28
   }
29 29
 
30 30
   // 获取详情

+ 3 - 3
src/app/views/order-statistics/order-statistics.component.html

@@ -47,11 +47,11 @@
47 47
           <tr class="thead">
48 48
             <th nzWidth="5%">序号</th>
49 49
             <th nzWidth="10%" nzShowSort nzSortKey="date" [(nzSort)]="sortCurrent.date" (nzSortChange)="sort('date',$event)">时间</th>
50
-            <th nzWidth="10%" nzShowSort nzSortKey="total" [(nzSort)]="sortCurrent.total" (nzSortChange)="sort('total',$event)">工单总量</th>
50
+            <th nzShowSort nzSortKey="total" [(nzSort)]="sortCurrent.total" (nzSortChange)="sort('total',$event)">工单总量</th>
51 51
 						<th *ngFor="let item of listOfHeads; let index=index;" (nzSortChange)="sort(item.dataSort,$event)"
52 52
 							nzShowSort [(nzSort)]="item.sortName"
53 53
 							>{{item.name}}</th>
54
-            <th nzWidth="10%" nzShowSort nzSortKey="other" [(nzSort)]="sortCurrent.other" (nzSortChange)="sort('other',$event)">其他数量</th>
54
+            <th nzShowSort nzSortKey="other" [(nzSort)]="sortCurrent.other" (nzSortChange)="sort('other',$event)">其他数量</th>
55 55
           </tr>
56 56
         </thead>
57 57
         <tbody>
@@ -63,7 +63,7 @@
63 63
       </nz-table>
64 64
       <div class="list-template__pagination">
65 65
         <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
66
-          (nzPageIndexChange)="getList()" (nzPageSizeChange)="getList()">
66
+          (nzPageIndexChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue,'forbid')" (nzPageSizeChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue,'forbid')">
67 67
         </nz-pagination>
68 68
       </div>
69 69
     </div>

+ 8 - 1
src/app/views/quilt-washing-department-statistics/quilt-washing-department-statistics.component.ts

@@ -275,7 +275,14 @@ export class QuiltWashingDepartmentStatisticsComponent implements OnInit {
275 275
 	
276 276
   // 表格数据
277 277
   loading1 = false;
278
-	summary = {};
278
+	summary = {
279
+		deptNum:null,
280
+		clothesTypeTotalNum:null,
281
+		getOrderTotal:null,
282
+		sendOrderTotal:null,
283
+		sendClothesTotalNum:null,
284
+		totalPrice:null,
285
+	};
279 286
   getList(num?: number, field?: string, sort?: string) {
280 287
     this.mapOfCheckedId = {};
281 288
     this.checkedDepIds = [];

+ 8 - 1
src/app/views/quilt-washing-hospital-statistics/quilt-washing-hospital-statistics.component.ts

@@ -168,7 +168,14 @@ export class QuiltWashingHospitalStatisticsComponent implements OnInit {
168 168
   }
169 169
   // 表格数据
170 170
   loading1 = false;
171
-	summary = {};
171
+	summary = {
172
+		deptNum:null,
173
+		clothesTypeTotalNum:null,
174
+		getOrderTotal:null,
175
+		sendOrderTotal:null,
176
+		sendClothesTotalNum:null,
177
+		totalPrice:null,
178
+	};
172 179
   getList(num?: number, field?: string, sort?: string) {
173 180
     this.pageIndex = num;
174 181
     let postData: any = {

+ 1 - 1
src/app/views/quilt-washing-personnel-statistics/quilt-washing-personnel-statistics.component.html

@@ -89,7 +89,7 @@
89 89
 		  </div>
90 90
 		  <div>
91 91
 		    <span>送回工单数</span>
92
-		    <span>{{summary.sendorderTotal || 0}}</span>
92
+		    <span>{{summary.sendOrderTotal || 0}}</span>
93 93
 		  </div>
94 94
 		</div>
95 95
     <div class="list-template__bottom">

+ 9 - 1
src/app/views/quilt-washing-personnel-statistics/quilt-washing-personnel-statistics.component.ts

@@ -235,7 +235,15 @@ export class QuiltWashingPersonnelStatisticsComponent implements OnInit {
235 235
 	}
236 236
   // 表格数据
237 237
   loading1 = false;
238
-	summary = {};
238
+	summary = {
239
+		personTotal:null,
240
+		tripTotal:null,
241
+		orderTotal:null,
242
+		getTripTotal:null,
243
+		getOrderTotal:null,
244
+		sendTripTotal:null,
245
+		sendOrderTotal:null,
246
+	};
239 247
   getList(num?: number, field?: string, sort?: string) {
240 248
     this.pageIndex = num;
241 249
     let postData: any = {