Sfoglia il codice sorgente

工单列表统计分类

seimin 1 anno fa
parent
commit
fec610a615

+ 1 - 1
proxy.conf.json

@@ -1,6 +1,6 @@
1
 {
1
 {
2
   "/service": {
2
   "/service": {
3
-    "target": "http://192.168.3.108",
3
+    "target": "http://192.168.4.223",
4
     "logLevel": "debug",
4
     "logLevel": "debug",
5
     "changeOrigin": true,
5
     "changeOrigin": true,
6
     "pathRewrite": {
6
     "pathRewrite": {

+ 5 - 5
src/app/views/order-management/order-management.component.html

@@ -7,10 +7,10 @@
7
           <input nz-input class="formItem" placeholder="请输入工单单号" [(ngModel)]="gdcode" />
7
           <input nz-input class="formItem" placeholder="请输入工单单号" [(ngModel)]="gdcode" />
8
         </div>
8
         </div>
9
         <div class="list-template__searchItem">
9
         <div class="list-template__searchItem">
10
-          <span class="label">工单类型</span>:
10
+          <span class="label">统计分类</span>:
11
           <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzAllowClear
11
           <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzAllowClear
12
-            nzPlaceHolder="请选择工单类型" [ngModel]="association" (ngModelChange)="selectAssociation($event)">
13
-            <nz-option *ngFor="let option of allAssociation" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
12
+            nzPlaceHolder="请选择统计分类" [ngModel]="statisticsDateType" (ngModelChange)="selectStatisticsDateType($event)">
13
+            <nz-option *ngFor="let option of statisticsDateTypeList" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
14
           </nz-select>
14
           </nz-select>
15
         </div>
15
         </div>
16
         <div class="list-template__searchItem">
16
         <div class="list-template__searchItem">
@@ -99,7 +99,7 @@
99
             <th nzWidth="5%">序号</th>
99
             <th nzWidth="5%">序号</th>
100
             <th nzWidth="9%">单号|申请科室</th>
100
             <th nzWidth="9%">单号|申请科室</th>
101
             <th nzWidth="18%">起点科室|终点科室</th>
101
             <th nzWidth="18%">起点科室|终点科室</th>
102
-            <th nzWidth="9%">工单类型|任务类型</th>
102
+            <th nzWidth="9%">统计分类|任务类型</th>
103
             <th nzWidth="27%">发起时间|备注</th>
103
             <th nzWidth="27%">发起时间|备注</th>
104
             <th nzWidth="8%">执行人员|总积分</th>
104
             <th nzWidth="8%">执行人员|总积分</th>
105
             <th nzWidth="8%">状态|执行时长</th>
105
             <th nzWidth="8%">状态|执行时长</th>
@@ -113,7 +113,7 @@
113
             <td>{{index+(pageIndex-1) * pageSize + 1}}</td>
113
             <td>{{index+(pageIndex-1) * pageSize + 1}}</td>
114
             <td>{{ data.gdcode }}<br>{{ data.createDeptDTO ? data.createDeptDTO.dept : '' }}</td>
114
             <td>{{ data.gdcode }}<br>{{ data.createDeptDTO ? data.createDeptDTO.dept : '' }}</td>
115
             <td>{{ data.startDept ? data.startDept.dept : '' }}<br>{{ data.endDeptsName || '' }}</td>
115
             <td>{{ data.startDept ? data.startDept.dept : '' }}<br>{{ data.endDeptsName || '' }}</td>
116
-            <td>{{ data.taskType.associationType.name}}<br>{{ data.taskType.taskName }}<ng-container *ngIf="data.goodsRemark">-{{data.goodsRemark}}</ng-container></td>
116
+            <td>{{ data.taskType.statisticsDateType.name}}<br>{{ data.taskType.taskName }}<ng-container *ngIf="data.goodsRemark">-{{data.goodsRemark}}</ng-container></td>
117
             <td>{{ data.startTime|date:'yyyy-MM-dd HH:mm'}}<br>{{ data.workOrderRemark }}</td>
117
             <td>{{ data.startTime|date:'yyyy-MM-dd HH:mm'}}<br>{{ data.workOrderRemark }}</td>
118
             <td>{{ data.worker?data.worker.name:'' }}<br>{{ data.grade ? data.grade.gradeTotal : '' }}</td>
118
             <td>{{ data.worker?data.worker.name:'' }}<br>{{ data.grade ? data.grade.gradeTotal : '' }}</td>
119
             <td>{{ data.gdState.name }}<br>{{data.showTimeNum}}</td>
119
             <td>{{ data.gdState.name }}<br>{{data.showTimeNum}}</td>

+ 15 - 16
src/app/views/order-management/order-management.component.ts

@@ -46,8 +46,8 @@ export class OrderManagementComponent implements OnInit {
46
   coopId: string; //表格中执行操作的id
46
   coopId: string; //表格中执行操作的id
47
   hospital: string; //选中院区
47
   hospital: string; //选中院区
48
   gdcode: string = ""; //工单单号
48
   gdcode: string = ""; //工单单号
49
-  association: number; //工单类型
50
-  allAssociation: any = []; //当前院区所有工单类型
49
+  statisticsDateType: number; //统计分类
50
+  statisticsDateTypeList: any = []; //统计分类
51
   department: any; //所属科室
51
   department: any; //所属科室
52
   alldepart: any = []; //当前院区所属科室
52
   alldepart: any = []; //当前院区所属科室
53
   worker: number; //选择执行配送人员
53
   worker: number; //选择执行配送人员
@@ -95,7 +95,7 @@ export class OrderManagementComponent implements OnInit {
95
   // 重置
95
   // 重置
96
   reset() {
96
   reset() {
97
     this.pageIndex = 1;
97
     this.pageIndex = 1;
98
-    this.association = null;
98
+    this.statisticsDateType = null;
99
     this.tasktype = null;
99
     this.tasktype = null;
100
     if (!(this.coopBtns.currentDept && !this.coopBtns.allOrders)) {
100
     if (!(this.coopBtns.currentDept && !this.coopBtns.allOrders)) {
101
       this.department = null;
101
       this.department = null;
@@ -122,7 +122,7 @@ export class OrderManagementComponent implements OnInit {
122
     this.department = null;
122
     this.department = null;
123
     this.worker = null;
123
     this.worker = null;
124
     this.tasktype = null;
124
     this.tasktype = null;
125
-    this.association = null;
125
+    this.statisticsDateType = null;
126
     this.getDeparts();
126
     this.getDeparts();
127
     this.getAssociation();
127
     this.getAssociation();
128
     this.getAllWorker();
128
     this.getAllWorker();
@@ -132,11 +132,10 @@ export class OrderManagementComponent implements OnInit {
132
   // 获取关联类型
132
   // 获取关联类型
133
   getAssociation() {
133
   getAssociation() {
134
     let that = this;
134
     let that = this;
135
-    console.log(that.mainService.getDictionary("list", "association_types"));
136
     that.mainService
135
     that.mainService
137
-      .getDictionary("list", "association_types")
136
+      .getDictionary("list", "statistics_date_type")
138
       .subscribe((data) => {
137
       .subscribe((data) => {
139
-        that.allAssociation = data;
138
+        that.statisticsDateTypeList = data;
140
       });
139
       });
141
   }
140
   }
142
 
141
 
@@ -172,8 +171,8 @@ export class OrderManagementComponent implements OnInit {
172
         simpleQuery: true,
171
         simpleQuery: true,
173
       },
172
       },
174
     };
173
     };
175
-    if (that.association) {
176
-      postData.taskType.associationType = { id: that.association };
174
+    if (that.statisticsDateType) {
175
+      postData.taskType.statisticsDateType = { id: that.statisticsDateType };
177
     }
176
     }
178
     that.isLoading = true;
177
     that.isLoading = true;
179
     that.mainService
178
     that.mainService
@@ -183,9 +182,9 @@ export class OrderManagementComponent implements OnInit {
183
         that.isLoading = false;
182
         that.isLoading = false;
184
       });
183
       });
185
   }
184
   }
186
-  // 选择工单类型
187
-  selectAssociation(e) {
188
-    this.association = e;
185
+  // 选择统计分类
186
+  selectStatisticsDateType(e) {
187
+    this.statisticsDateType = e;
189
     this.changeTasktype("");
188
     this.changeTasktype("");
190
     this.tasktype = null;
189
     this.tasktype = null;
191
   }
190
   }
@@ -232,9 +231,9 @@ export class OrderManagementComponent implements OnInit {
232
         delete data.workOrder.deleteFlag;
231
         delete data.workOrder.deleteFlag;
233
       }
232
       }
234
     }
233
     }
235
-    if (that.association) {
234
+    if (that.statisticsDateType) {
236
       data.workOrder.taskType = {
235
       data.workOrder.taskType = {
237
-        associationType: { id: that.association },
236
+        statisticsDateType: { id: that.statisticsDateType },
238
       };
237
       };
239
     }
238
     }
240
     if (that.tasktype) {
239
     if (that.tasktype) {
@@ -438,9 +437,9 @@ export class OrderManagementComponent implements OnInit {
438
         delete postData.workOrder.deleteFlag;
437
         delete postData.workOrder.deleteFlag;
439
       }
438
       }
440
     }
439
     }
441
-    if (that.association) {
440
+    if (that.statisticsDateType) {
442
       postData.workOrder.taskType = {
441
       postData.workOrder.taskType = {
443
-        associationType: { id: that.association },
442
+        statisticsDateType: { id: that.statisticsDateType },
444
       };
443
       };
445
     }
444
     }
446
     if (that.tasktype) {
445
     if (that.tasktype) {

+ 1 - 1
src/main.ts

@@ -8,7 +8,7 @@ if (environment.production) {
8
   enableProdMode();
8
   enableProdMode();
9
   if (window) {
9
   if (window) {
10
     window.console.log = function () { };
10
     window.console.log = function () { };
11
-    console.info('v2.4.55');
11
+    console.info('v2.4.56');
12
   }
12
   }
13
 }
13
 }
14
 platformBrowserDynamic().bootstrapModule(AppModule)
14
 platformBrowserDynamic().bootstrapModule(AppModule)