소스 검색

工单列表统计分类

seimin 1 년 전
부모
커밋
fec610a615
4개의 변경된 파일22개의 추가작업 그리고 23개의 파일을 삭제
  1. 1 1
      proxy.conf.json
  2. 5 5
      src/app/views/order-management/order-management.component.html
  3. 15 16
      src/app/views/order-management/order-management.component.ts
  4. 1 1
      src/main.ts

+ 1 - 1
proxy.conf.json

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

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

@@ -7,10 +7,10 @@
7 7
           <input nz-input class="formItem" placeholder="请输入工单单号" [(ngModel)]="gdcode" />
8 8
         </div>
9 9
         <div class="list-template__searchItem">
10
-          <span class="label">工单类型</span>
10
+          <span class="label">统计分类</span>
11 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 14
           </nz-select>
15 15
         </div>
16 16
         <div class="list-template__searchItem">
@@ -99,7 +99,7 @@
99 99
             <th nzWidth="5%">序号</th>
100 100
             <th nzWidth="9%">单号|申请科室</th>
101 101
             <th nzWidth="18%">起点科室|终点科室</th>
102
-            <th nzWidth="9%">工单类型|任务类型</th>
102
+            <th nzWidth="9%">统计分类|任务类型</th>
103 103
             <th nzWidth="27%">发起时间|备注</th>
104 104
             <th nzWidth="8%">执行人员|总积分</th>
105 105
             <th nzWidth="8%">状态|执行时长</th>
@@ -113,7 +113,7 @@
113 113
             <td>{{index+(pageIndex-1) * pageSize + 1}}</td>
114 114
             <td>{{ data.gdcode }}<br>{{ data.createDeptDTO ? data.createDeptDTO.dept : '' }}</td>
115 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 117
             <td>{{ data.startTime|date:'yyyy-MM-dd HH:mm'}}<br>{{ data.workOrderRemark }}</td>
118 118
             <td>{{ data.worker?data.worker.name:'' }}<br>{{ data.grade ? data.grade.gradeTotal : '' }}</td>
119 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 46
   coopId: string; //表格中执行操作的id
47 47
   hospital: string; //选中院区
48 48
   gdcode: string = ""; //工单单号
49
-  association: number; //工单类型
50
-  allAssociation: any = []; //当前院区所有工单类型
49
+  statisticsDateType: number; //统计分类
50
+  statisticsDateTypeList: any = []; //统计分类
51 51
   department: any; //所属科室
52 52
   alldepart: any = []; //当前院区所属科室
53 53
   worker: number; //选择执行配送人员
@@ -95,7 +95,7 @@ export class OrderManagementComponent implements OnInit {
95 95
   // 重置
96 96
   reset() {
97 97
     this.pageIndex = 1;
98
-    this.association = null;
98
+    this.statisticsDateType = null;
99 99
     this.tasktype = null;
100 100
     if (!(this.coopBtns.currentDept && !this.coopBtns.allOrders)) {
101 101
       this.department = null;
@@ -122,7 +122,7 @@ export class OrderManagementComponent implements OnInit {
122 122
     this.department = null;
123 123
     this.worker = null;
124 124
     this.tasktype = null;
125
-    this.association = null;
125
+    this.statisticsDateType = null;
126 126
     this.getDeparts();
127 127
     this.getAssociation();
128 128
     this.getAllWorker();
@@ -132,11 +132,10 @@ export class OrderManagementComponent implements OnInit {
132 132
   // 获取关联类型
133 133
   getAssociation() {
134 134
     let that = this;
135
-    console.log(that.mainService.getDictionary("list", "association_types"));
136 135
     that.mainService
137
-      .getDictionary("list", "association_types")
136
+      .getDictionary("list", "statistics_date_type")
138 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 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 177
     that.isLoading = true;
179 178
     that.mainService
@@ -183,9 +182,9 @@ export class OrderManagementComponent implements OnInit {
183 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 188
     this.changeTasktype("");
190 189
     this.tasktype = null;
191 190
   }
@@ -232,9 +231,9 @@ export class OrderManagementComponent implements OnInit {
232 231
         delete data.workOrder.deleteFlag;
233 232
       }
234 233
     }
235
-    if (that.association) {
234
+    if (that.statisticsDateType) {
236 235
       data.workOrder.taskType = {
237
-        associationType: { id: that.association },
236
+        statisticsDateType: { id: that.statisticsDateType },
238 237
       };
239 238
     }
240 239
     if (that.tasktype) {
@@ -438,9 +437,9 @@ export class OrderManagementComponent implements OnInit {
438 437
         delete postData.workOrder.deleteFlag;
439 438
       }
440 439
     }
441
-    if (that.association) {
440
+    if (that.statisticsDateType) {
442 441
       postData.workOrder.taskType = {
443
-        associationType: { id: that.association },
442
+        statisticsDateType: { id: that.statisticsDateType },
444 443
       };
445 444
     }
446 445
     if (that.tasktype) {

+ 1 - 1
src/main.ts

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