瀏覽代碼

支助人员统计修改,微信配置优化

seimin 3 年之前
父節點
當前提交
2a0108a78f

+ 2 - 2
src/app/share/excel-export/excel-export.component.html

@@ -15,8 +15,8 @@
15 15
       </div>
16 16
       <div class="isNumOrIntegral">
17 17
         <nz-radio-group [(ngModel)]="isNumOrIntegral">
18
-          <label nz-radio nzValue="A">按工单数量排序</label>
19
-          <label nz-radio nzValue="B">按积分排序</label>
18
+          <label nz-radio nzValue="byOrderNum">按工单数量排序</label>
19
+          <label nz-radio nzValue="byIntegral">按积分排序</label>
20 20
         </nz-radio-group>
21 21
       </div>
22 22
     </div>

+ 1 - 2
src/app/share/excel-export/excel-export.component.ts

@@ -13,7 +13,7 @@ export class ExcelExportComponent implements OnInit {
13 13
   @Input() loading: boolean = false; //确定按钮的loading
14 14
   deptList = []; //护理单元科室列表
15 15
   isGroup = false; //是否按组导出
16
-  isNumOrIntegral = "A";
16
+  isNumOrIntegral = "byOrderNum";
17 17
   constructor() {}
18 18
 
19 19
   ngOnInit() {}
@@ -24,6 +24,5 @@ export class ExcelExportComponent implements OnInit {
24 24
   // 表单提交
25 25
   submitForm(): void {
26 26
     this.submitFormHand.emit({isGroup:this.isGroup,isNumOrIntegral:this.isNumOrIntegral});
27
-    this.hideModal();
28 27
   }
29 28
 }

+ 3 - 5
src/app/views/wechat-config/wechat-config.component.ts

@@ -132,12 +132,10 @@ export class WechatConfigComponent implements OnInit {
132 132
                   this.validateForm.controls.defaultHospital.setValue(
133 133
                     config.hospital
134 134
                   );
135
-                  this.getDeptList(this.hosId, '',999).subscribe((result) => {
135
+                  this.mainService.getFetchData("data", "department", config.defaultDept).subscribe((result) => {
136 136
                     if (result.status == 200) {
137
-                      let item1 = this.deptList.find(v=>v.id == config.defaultDept);
138
-                      if(!item1){
139
-                        let item2 = result.list.find(v=>v.id == config.defaultDept);
140
-                        this.deptList.unshift(item2);
137
+                      if(result.data){
138
+                        this.deptList.unshift(result.data);
141 139
                       }
142 140
                       this.validateForm.controls.defaultDept.setValue(
143 141
                         config.defaultDept

+ 12 - 1
src/app/views/worker-statistics/worker-statistics.component.ts

@@ -120,13 +120,24 @@ export class WorkerStatisticsComponent implements OnInit {
120 120
       groupId: this.group || "",
121 121
     };
122 122
     if (obj.isGroup) {
123
-      postData.byGroup = true;
123
+      postData.byGroup = "true";
124
+    }
125
+    switch (obj.isNumOrIntegral) {
126
+      case "byOrderNum":
127
+        //按工单数量排序
128
+        postData.byOrderNum = "true";
129
+        break;
130
+      case "byIntegral":
131
+        //按积分排序
132
+        postData.byIntegral = "true";
133
+        break;
124 134
     }
125 135
     this.loading2 = true;
126 136
     this.mainService.exportReport("user", postData).subscribe(
127 137
       (data) => {
128 138
         this.loading2 = false;
129 139
         this.showPromptModal("导出", true, "");
140
+        this.isShow = false;
130 141
         var file = new Blob([data], {
131 142
           type: "application/vnd.ms-excel",
132 143
         });