Parcourir la source

大输液和统计分析优化

maotao il y a 9 mois
Parent
commit
3579f47578

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

@@ -28,11 +28,11 @@
28
           <tr class="thead">
28
           <tr class="thead">
29
             <th nzWidth="5%">序号</th>
29
             <th nzWidth="5%">序号</th>
30
             <th nzWidth="10%" nzShowSort nzSortKey="bid" [(nzSort)]="sortCurrent.bid" (nzSortChange)="sort('bid',$event)">科室名称</th>
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
             <th *ngFor="let item of listOfHeads; let index=index;" (nzSortChange)="sort(item.dataSort,$event)"
32
             <th *ngFor="let item of listOfHeads; let index=index;" (nzSortChange)="sort(item.dataSort,$event)"
33
             	nzShowSort [(nzSort)]="item.sortName"
33
             	nzShowSort [(nzSort)]="item.sortName"
34
             	>{{item.name}}</th>
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
           </tr>
36
           </tr>
37
         </thead>
37
         </thead>
38
         <tbody>
38
         <tbody>
@@ -44,7 +44,7 @@
44
       </nz-table>
44
       </nz-table>
45
       <div class="list-template__pagination">
45
       <div class="list-template__pagination">
46
         <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
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
         </nz-pagination>
48
         </nz-pagination>
49
       </div>
49
       </div>
50
     </div>
50
     </div>

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

@@ -220,7 +220,3 @@
220
  <!-- 模态框 -->
220
  <!-- 模态框 -->
221
 <app-dialog-delete [delModal]="printModal" (hideDelModalEvent)="hidePrintModal()" [btnLoading]="btnLoading"
221
 <app-dialog-delete [delModal]="printModal" (hideDelModalEvent)="hidePrintModal()" [btnLoading]="btnLoading"
222
   (confirmDelEvent)="confirmPrintDel()" [content]="'您确认发药并打印吗?打印同时会更新云库存并建立配送工单?'"></app-dialog-delete>
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
 						<td>{{ data.addSub||'0' }}</td>
37
 						<td>{{ data.addSub||'0' }}</td>
38
             <td>
38
             <td>
39
               <div class="coop">
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
 								<span (click)="grantClick($event, data)">{{data.giveOutType.value=='2'?'单发':'箱发'}}</span>
42
 								<span (click)="grantClick($event, data)">{{data.giveOutType.value=='2'?'单发':'箱发'}}</span>
43
 							</div>
43
 							</div>
44
             </td>
44
             </td>
@@ -89,13 +89,13 @@
89
   <!-- 增加/减少 -->
89
   <!-- 增加/减少 -->
90
   <div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="modal">
90
   <div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="modal">
91
     <div class="modalBody">
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
       </div>
93
       </div>
94
       <overlay-scrollbars #osComponentRef1 class="content">
94
       <overlay-scrollbars #osComponentRef1 class="content">
95
        <form nz-form [formGroup]="validateForm" class="addForm" (ngSubmit)="submitForm()">
95
        <form nz-form [formGroup]="validateForm" class="addForm" (ngSubmit)="submitForm()">
96
        	<nz-form-item *ngIf="add">
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
        	    <nz-input-group>
99
        	    <nz-input-group>
100
        				<nz-input-number
100
        				<nz-input-number
101
 								nz-input
101
 								nz-input
@@ -104,12 +104,13 @@
104
        					[nzPrecision]="0"
104
        					[nzPrecision]="0"
105
        					[nzMax]="999999"
105
        					[nzMax]="999999"
106
        					[nzStep]="1"
106
        					[nzStep]="1"
107
-       					[nzPlaceHolder]="'请填写增数量'"
107
+       					[nzPlaceHolder]="'请填写增数量'"
108
        				 ></nz-input-number>
108
        				 ></nz-input-number>
109
        			</nz-input-group>
109
        			</nz-input-group>
110
        	  </nz-form-control>
110
        	  </nz-form-control>
111
        	</nz-form-item>
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
 				  <nz-form-label nzRequired nzFor="delNum">减少数量</nz-form-label>
114
 				  <nz-form-label nzRequired nzFor="delNum">减少数量</nz-form-label>
114
 				  <nz-form-control nzErrorTip="请选择减少数量!">
115
 				  <nz-form-control nzErrorTip="请选择减少数量!">
115
 				    <nz-input-group>
116
 				    <nz-input-group>
@@ -124,7 +125,7 @@
124
 							 ></nz-input-number>
125
 							 ></nz-input-number>
125
 						</nz-input-group>
126
 						</nz-input-group>
126
 				  </nz-form-control>
127
 				  </nz-form-control>
127
-				</nz-form-item>
128
+				</nz-form-item> -->
128
        </form>
129
        </form>
129
       </overlay-scrollbars>
130
       </overlay-scrollbars>
130
       <div class="display_flex justify-content_flex-center">
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
         .addForm {
334
         .addForm {
335
+					.color-stylr{
336
+						color:red;
337
+					}
335
           .ant-form-item {
338
           .ant-form-item {
336
             margin-bottom: 14px;
339
             margin-bottom: 14px;
337
 
340
 
@@ -403,4 +406,10 @@ h3{
403
 	border-radius: 50%;
406
 	border-radius: 50%;
404
 	background: red;
407
 	background: red;
405
 	display: inline-block;
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
 		e.stopPropagation();
360
 		e.stopPropagation();
359
-		this.rowId = id
361
+		this.rowId = data.id
362
+		this.rowData = data
360
 		if(type=='add'){
363
 		if(type=='add'){
361
 			this.add = true
364
 			this.add = true
362
 		}else{
365
 		}else{
@@ -367,6 +370,7 @@ export class DispensingDetailComponent implements OnInit {
367
 	}
370
 	}
368
 	
371
 	
369
 	// 表单提交
372
 	// 表单提交
373
+	isRight = null;
370
 	submitForm(): void {
374
 	submitForm(): void {
371
 	  var that = this;
375
 	  var that = this;
372
 		for (const i in that.validateForm.controls) {
376
 		for (const i in that.validateForm.controls) {
@@ -375,12 +379,22 @@ export class DispensingDetailComponent implements OnInit {
375
 		}
379
 		}
376
 		if (that.validateForm.invalid) return;
380
 		if (that.validateForm.invalid) return;
377
 	  let data = {
381
 	  let data = {
378
-			addSub:this.add?this.validateForm.value.addNum:this.validateForm.value.delNum,
382
+			addSub:this.validateForm.value.addNum,
379
 			id:this.rowId,
383
 			id:this.rowId,
380
 			hosId:this.hosId,
384
 			hosId:this.hosId,
381
 			deptId:this.deptId,
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
 		that.btnLoading = true;
398
 		that.btnLoading = true;
385
 	  that.mainService
399
 	  that.mainService
386
 	    .simplePost("addData", "drugsConfigure", data)
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
 		    <span class="rate"></span>
71
 		    <span class="rate"></span>
72
 		  </div>
72
 		  </div>
73
 		  <div>
73
 		  <div>
74
-		    <span>科室名称</span>
74
+		    <span>科室</span>
75
 		    <span>{{summary[0] || 0}}</span>
75
 		    <span>{{summary[0] || 0}}</span>
76
 		  </div>
76
 		  </div>
77
 		  <div>
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
   loading1 = false;
242
   loading1 = false;
243
-	summary = {};
243
+	summary = {
244
+		personalNum:null,
245
+		totalTrip:null,
246
+		totalOrder:null,
247
+		totalWeight:null,
248
+	};
244
   getList(num?: number, field?: string, sort?: string) {
249
   getList(num?: number, field?: string, sort?: string) {
245
     this.pageIndex = num;
250
     this.pageIndex = num;
246
     let postData: any = {
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
     this.getDetail();
24
     this.getDetail();
25
   }
25
   }
26
   hideModal() {
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
           <tr class="thead">
47
           <tr class="thead">
48
             <th nzWidth="5%">序号</th>
48
             <th nzWidth="5%">序号</th>
49
             <th nzWidth="10%" nzShowSort nzSortKey="date" [(nzSort)]="sortCurrent.date" (nzSortChange)="sort('date',$event)">时间</th>
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
 						<th *ngFor="let item of listOfHeads; let index=index;" (nzSortChange)="sort(item.dataSort,$event)"
51
 						<th *ngFor="let item of listOfHeads; let index=index;" (nzSortChange)="sort(item.dataSort,$event)"
52
 							nzShowSort [(nzSort)]="item.sortName"
52
 							nzShowSort [(nzSort)]="item.sortName"
53
 							>{{item.name}}</th>
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
           </tr>
55
           </tr>
56
         </thead>
56
         </thead>
57
         <tbody>
57
         <tbody>
@@ -63,7 +63,7 @@
63
       </nz-table>
63
       </nz-table>
64
       <div class="list-template__pagination">
64
       <div class="list-template__pagination">
65
         <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
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
         </nz-pagination>
67
         </nz-pagination>
68
       </div>
68
       </div>
69
     </div>
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
   loading1 = false;
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
   getList(num?: number, field?: string, sort?: string) {
286
   getList(num?: number, field?: string, sort?: string) {
280
     this.mapOfCheckedId = {};
287
     this.mapOfCheckedId = {};
281
     this.checkedDepIds = [];
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
   loading1 = false;
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
   getList(num?: number, field?: string, sort?: string) {
179
   getList(num?: number, field?: string, sort?: string) {
173
     this.pageIndex = num;
180
     this.pageIndex = num;
174
     let postData: any = {
181
     let postData: any = {

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

@@ -89,7 +89,7 @@
89
 		  </div>
89
 		  </div>
90
 		  <div>
90
 		  <div>
91
 		    <span>送回工单数</span>
91
 		    <span>送回工单数</span>
92
-		    <span>{{summary.sendorderTotal || 0}}</span>
92
+		    <span>{{summary.sendOrderTotal || 0}}</span>
93
 		  </div>
93
 		  </div>
94
 		</div>
94
 		</div>
95
     <div class="list-template__bottom">
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
   loading1 = false;
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
   getList(num?: number, field?: string, sort?: string) {
247
   getList(num?: number, field?: string, sort?: string) {
240
     this.pageIndex = num;
248
     this.pageIndex = num;
241
     let postData: any = {
249
     let postData: any = {