浏览代码

Merge branch 'master' into develop

seimin 8 月之前
父节点
当前提交
66d08f81c6

+ 10 - 9
src/app/components/configurationCenter/configuration-category/configuration-category.component.ts

@@ -78,6 +78,7 @@ export class ConfigurationCategoryComponent implements OnInit {
78
     }
78
     }
79
     this.getCategoryList(1);
79
     this.getCategoryList(1);
80
     this.getHospitals(1);
80
     this.getHospitals(1);
81
+    this.getHospitals(2);
81
     this.getPrioritys();
82
     this.getPrioritys();
82
     this.getScores();
83
     this.getScores();
83
   }
84
   }
@@ -293,10 +294,10 @@ export class ConfigurationCategoryComponent implements OnInit {
293
     this.validateConfigForm.controls.userId.setValue(null);
294
     this.validateConfigForm.controls.userId.setValue(null);
294
     this.validateConfigForm.controls.groupId.setValue(null);
295
     this.validateConfigForm.controls.groupId.setValue(null);
295
 
296
 
296
-    this.dutyList = [];
297
+    // this.dutyList = [];
297
     this.userList = [];
298
     this.userList = [];
298
     this.groupList = [];
299
     this.groupList = [];
299
-    this.getHospitals(2, id);
300
+    // this.getHospitals(2, id);
300
   }
301
   }
301
 
302
 
302
   // 获取院区
303
   // 获取院区
@@ -308,14 +309,14 @@ export class ConfigurationCategoryComponent implements OnInit {
308
       this.hospitalList = this.tool.getHospitalList().filter(v => !v.parent);
309
       this.hospitalList = this.tool.getHospitalList().filter(v => !v.parent);
309
       return;
310
       return;
310
     }
311
     }
311
-    if(type === 2 && !parentId){
312
-      this.isLoading = false;
313
-      this.dutyList = [];
314
-      return;
315
-    }
312
+    // if(type === 2 && !parentId){
313
+    //   this.isLoading = false;
314
+    //   this.dutyList = [];
315
+    //   return;
316
+    // }
316
     let postData = {
317
     let postData = {
317
       hospital: {
318
       hospital: {
318
-        parent: { id: parentId },
319
+        // parent: { id: parentId },
319
         type: { key: 'hospital_type', value: '6' },
320
         type: { key: 'hospital_type', value: '6' },
320
       },
321
       },
321
       idx: 0,
322
       idx: 0,
@@ -616,7 +617,7 @@ export class ConfigurationCategoryComponent implements OnInit {
616
     }else if(data.userGroup === 2){
617
     }else if(data.userGroup === 2){
617
       this.requiredConfigChange('userId', false);
618
       this.requiredConfigChange('userId', false);
618
     }
619
     }
619
-    data.hosId && this.getHospitals(2, data.hosId);
620
+    // data.hosId && this.getHospitals(2, data.hosId);
620
     data.dutyId && this.getUsers('', true);
621
     data.dutyId && this.getUsers('', true);
621
     data.dutyId && this.getGroups('', true);
622
     data.dutyId && this.getGroups('', true);
622
   }
623
   }

+ 1 - 1
src/app/components/incidentManagement/incident-detail/incident-detail.component.html

@@ -21,7 +21,7 @@
21
               <div class="col">故障描述:{{incidentData.description}}</div>
21
               <div class="col">故障描述:{{incidentData.description}}</div>
22
             </div>
22
             </div>
23
             <div class="row">
23
             <div class="row">
24
-              <div class="col">详细地址:{{ incidentData.place?.building?.buildingName }}{{ incidentData.place?.floorName }}{{ incidentData.houseNumber }}</div>
24
+              <div class="col">详细地址:{{ incidentData.place?.building?.buildingName }}{{ incidentData.place ? incidentData.place.floorName + '层' : '' }}{{ incidentData.houseNumber }}</div>
25
             </div>
25
             </div>
26
             <div class="row">
26
             <div class="row">
27
               <div class="col thumbs">
27
               <div class="col thumbs">

+ 1 - 1
src/app/components/incidentManagement/incident-handle-repair/incident-handle-repair.component.html

@@ -16,7 +16,7 @@
16
 </div>
16
 </div>
17
 <div class="detailItem">
17
 <div class="detailItem">
18
   <div class="name">详细地址:</div>
18
   <div class="name">详细地址:</div>
19
-  <div class="value">{{ incidentData.place ? incidentData.place.building.buildingName : '' }}{{ incidentData.place ? incidentData.place.floorName : '' }}{{ incidentData.houseNumber }}</div>
19
+  <div class="value">{{ incidentData.place ? incidentData.place.building.buildingName : '' }}{{ incidentData.place ? incidentData.place.floorName + '层' : '' }}{{ incidentData.houseNumber }}</div>
20
 </div>
20
 </div>
21
 <div class="detailItem">
21
 <div class="detailItem">
22
   <div class="name">报修图片:</div>
22
   <div class="name">报修图片:</div>

+ 1 - 1
src/app/components/incidentManagement/incident-ser-visit/incident-ser-visit.component.html

@@ -13,7 +13,7 @@
13
             <div class="col">故障描述:{{item.description}}</div>
13
             <div class="col">故障描述:{{item.description}}</div>
14
           </div>
14
           </div>
15
           <div class="row">
15
           <div class="row">
16
-            <div class="col">详细地址:{{ item.place ? item.place.building.buildingName : '' }}{{ item.place ? item.place.floorName : '' }}{{ item.houseNumber }} <span [innerHTML]="item.overtimeRemark"></span></div>
16
+            <div class="col">详细地址:{{ item.place ? item.place.building.buildingName : '' }}{{ item.place ? item.place.floorName + '层' : '' }}{{ item.houseNumber }} <span [innerHTML]="item.overtimeRemark"></span></div>
17
           </div>
17
           </div>
18
           <div class="row">
18
           <div class="row">
19
             <div class="col">申请时间:{{ item.startDate | date: 'yyyy-MM-dd HH:mm'}}</div>
19
             <div class="col">申请时间:{{ item.startDate | date: 'yyyy-MM-dd HH:mm'}}</div>

+ 1 - 0
src/app/views/clinical-users-management/clinical-users-management.component.ts

@@ -335,6 +335,7 @@ export class ClinicalUsersManagementComponent implements OnInit {
335
         phone: that.validateForm.value.deptPhone,
335
         phone: that.validateForm.value.deptPhone,
336
         hospital: { id: that.add ? that.tool.getCurrentHospital().id : that.hosId },
336
         hospital: { id: that.add ? that.tool.getCurrentHospital().id : that.hosId },
337
         weixin: that.validateForm.value.weixin,
337
         weixin: that.validateForm.value.weixin,
338
+        engineer: this.userTypes.find(v => v.id == that.validateForm.value.usertype).value == 4 ? 1 : 0,
338
       },
339
       },
339
     };
340
     };
340
     if (!that.validateForm.value.userGroup) {
341
     if (!that.validateForm.value.userGroup) {

+ 3 - 3
src/app/views/fuwutai/fuwutai.component.html

@@ -220,7 +220,7 @@
220
 
220
 
221
                   <div class="didian">
221
                   <div class="didian">
222
                     <span class="left">
222
                     <span class="left">
223
-                      <span nz-tooltip [nzTooltipTitle]="(data.data.place ? data.data.place.building.buildingName : '') + (data.data.place ? data.data.place.floorName : '') + data.data.houseNumber">{{ data.data.place ? data.data.place.building.buildingName : '' }}{{ data.data.place ? data.data.place.floorName : '' }}{{ data.data.houseNumber }}</span>
223
+                      <span nz-tooltip [nzTooltipTitle]="(data.data.place ? data.data.place.building.buildingName : '') + (data.data.place ? data.data.place.floorName + '层' : '') + data.data.houseNumber">{{ data.data.place ? data.data.place.building.buildingName : '' }}{{ data.data.place ? data.data.place.floorName + '层' : '' }}{{ data.data.houseNumber }}</span>
224
                       <i class="icon_transport transport-a-11111 ml8" *ngIf="data.data.reqAttachment"></i>
224
                       <i class="icon_transport transport-a-11111 ml8" *ngIf="data.data.reqAttachment"></i>
225
                     </span>
225
                     </span>
226
                   </div>
226
                   </div>
@@ -431,7 +431,7 @@
431
 
431
 
432
                   <div class="didian">
432
                   <div class="didian">
433
                     <span class="left">
433
                     <span class="left">
434
-                      <span nz-tooltip [nzTooltipTitle]="(data.data.place ? data.data.place.building.buildingName : '') + (data.data.place ? data.data.place.floorName : '') + data.data.houseNumber">{{ data.data.place ? data.data.place.building.buildingName : '' }}{{ data.data.place ? data.data.place.floorName : '' }}{{ data.data.houseNumber }}</span>
434
+                      <span nz-tooltip [nzTooltipTitle]="(data.data.place ? data.data.place.building.buildingName : '') + (data.data.place ? data.data.place.floorName + '层' : '') + data.data.houseNumber">{{ data.data.place ? data.data.place.building.buildingName : '' }}{{ data.data.place ? data.data.place.floorName + '层' : '' }}{{ data.data.houseNumber }}</span>
435
                       <i class="icon_transport transport-a-11111 ml8" *ngIf="data.data.reqAttachment"></i>
435
                       <i class="icon_transport transport-a-11111 ml8" *ngIf="data.data.reqAttachment"></i>
436
                     </span>
436
                     </span>
437
                   </div>
437
                   </div>
@@ -635,7 +635,7 @@
635
 
635
 
636
                   <div class="didian">
636
                   <div class="didian">
637
                     <span class="left">
637
                     <span class="left">
638
-                      <span nz-tooltip [nzTooltipTitle]="(data.data.place ? data.data.place.building.buildingName : '') + (data.data.place ? data.data.place.floorName : '') + data.data.houseNumber">{{ data.data.place ? data.data.place.building.buildingName : '' }}{{ data.data.place ? data.data.place.floorName : '' }}{{ data.data.houseNumber }}</span>
638
+                      <span nz-tooltip [nzTooltipTitle]="(data.data.place ? data.data.place.building.buildingName : '') + (data.data.place ? data.data.place.floorName + '层' : '') + data.data.houseNumber">{{ data.data.place ? data.data.place.building.buildingName : '' }}{{ data.data.place ? data.data.place.floorName + '层' : '' }}{{ data.data.houseNumber }}</span>
639
                       <i class="icon_transport transport-a-11111 ml8" *ngIf="data.data.reqAttachment"></i>
639
                       <i class="icon_transport transport-a-11111 ml8" *ngIf="data.data.reqAttachment"></i>
640
                     </span>
640
                     </span>
641
                   </div>
641
                   </div>

+ 22 - 11
src/app/views/fuwutai/fuwutai.component.ts

@@ -435,7 +435,7 @@ export class FuwutaiComponent implements OnInit {
435
           if (go === "&go&") {
435
           if (go === "&go&") {
436
             this.applyDept = data["startDept"].id;
436
             this.applyDept = data["startDept"].id;
437
             this.applyStartDept = data["startDept"];
437
             this.applyStartDept = data["startDept"];
438
-            this.incidentModel.incomingPhone = this.callNumber = data["phone"];
438
+            this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
439
             this.showPromptModal("建单", true, "", "closeGo");
439
             this.showPromptModal("建单", true, "", "closeGo");
440
           } else {
440
           } else {
441
             if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
441
             if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
@@ -473,7 +473,7 @@ export class FuwutaiComponent implements OnInit {
473
         if (go === "&go&") {
473
         if (go === "&go&") {
474
           this.applyDept = data["startDept"].id;
474
           this.applyDept = data["startDept"].id;
475
           this.applyStartDept = data["startDept"];
475
           this.applyStartDept = data["startDept"];
476
-          this.incidentModel.incomingPhone = this.callNumber = data["phone"];
476
+          this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
477
           this.showPromptModal("建单", true, "", "closeGo");
477
           this.showPromptModal("建单", true, "", "closeGo");
478
         } else {
478
         } else {
479
           if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
479
           if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
@@ -535,7 +535,7 @@ export class FuwutaiComponent implements OnInit {
535
         if (go === "&go&") {
535
         if (go === "&go&") {
536
           this.applyDept = data["startDept"].id;
536
           this.applyDept = data["startDept"].id;
537
           this.applyStartDept = data["startDept"];
537
           this.applyStartDept = data["startDept"];
538
-          this.incidentModel.incomingPhone = this.callNumber = data["phone"];
538
+          this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
539
           this.showPromptModal("建单", true, "", "closeGo");
539
           this.showPromptModal("建单", true, "", "closeGo");
540
         } else {
540
         } else {
541
           if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
541
           if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
@@ -1338,21 +1338,32 @@ export class FuwutaiComponent implements OnInit {
1338
         console.log(data);
1338
         console.log(data);
1339
         console.log(this.incidentModel);
1339
         console.log(this.incidentModel);
1340
         this.websocketLoading = false;
1340
         this.websocketLoading = false;
1341
-        this.incidentModel = {};
1342
-        this.incidentMsg = {};
1343
-        this.incidentModel.callID = data.callId || undefined;
1341
+
1342
+        // 200签入 201摘机 202来电
1344
         if (data.status == 200 && data.phone) {
1343
         if (data.status == 200 && data.phone) {
1344
+          this.incidentModel = {};
1345
+          this.incidentMsg = {};
1346
+          this.incidentModel.callID = data.callId || undefined;
1345
           this.msg.info('签入成功');
1347
           this.msg.info('签入成功');
1346
           this.cancelBindExtensionNumber();
1348
           this.cancelBindExtensionNumber();
1347
         } else if (data.status == 201 && data.phone) {
1349
         } else if (data.status == 201 && data.phone) {
1348
-          this.incidentModel.incomingPhone = this.callNumber = data.phone;
1350
+          this.incidentModel = {};
1351
+          this.incidentMsg = {};
1352
+          this.incidentModel.callID = data.callId || undefined;
1353
+
1354
+          this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data.phone;
1349
           this.searchBxDept();
1355
           this.searchBxDept();
1350
         } else if (data.status == 201 && data.phone === "") {
1356
         } else if (data.status == 201 && data.phone === "") {
1357
+          this.incidentModel = {};
1358
+          this.incidentMsg = {};
1359
+          this.incidentModel.callID = data.callId || undefined;
1351
           //没绑定科室
1360
           //没绑定科室
1352
           if (!this.newOrderShow && !this.newOrderShowOpen) {
1361
           if (!this.newOrderShow && !this.newOrderShowOpen) {
1353
             this.applyDept = null;
1362
             this.applyDept = null;
1354
             this.showNewOrder("no", data.phone, true, '来电弹屏');
1363
             this.showNewOrder("no", data.phone, true, '来电弹屏');
1355
           }
1364
           }
1365
+        } else if (data.status == 202) {
1366
+          this.msg.warning(data.msg);
1356
         }
1367
         }
1357
       });
1368
       });
1358
     }else if(sign === 'callCenter'){
1369
     }else if(sign === 'callCenter'){
@@ -1382,7 +1393,7 @@ export class FuwutaiComponent implements OnInit {
1382
           console.log(result);
1393
           console.log(result);
1383
           if (result.list.length > 0) {
1394
           if (result.list.length > 0) {
1384
             //绑定了科室
1395
             //绑定了科室
1385
-            if (!this.newOrderShow && !this.newOrderShowOpen) {
1396
+            // if (!this.newOrderShow && !this.newOrderShowOpen) {
1386
               let incidentModel:any = Object.assign({}, this.incidentModel);
1397
               let incidentModel:any = Object.assign({}, this.incidentModel);
1387
               let incidentMsg:any = Object.assign({}, this.incidentMsg);
1398
               let incidentMsg:any = Object.assign({}, this.incidentMsg);
1388
               incidentModel.department = result.list[0];
1399
               incidentModel.department = result.list[0];
@@ -1400,7 +1411,7 @@ export class FuwutaiComponent implements OnInit {
1400
               this.searchApplicationRequester();
1411
               this.searchApplicationRequester();
1401
               this.applyDeptMiddle = result.list[0];
1412
               this.applyDeptMiddle = result.list[0];
1402
               this.showNewOrder("yes", this.incidentModel.incomingPhone, true, '来电弹屏');
1413
               this.showNewOrder("yes", this.incidentModel.incomingPhone, true, '来电弹屏');
1403
-            }
1414
+            // }
1404
           } else {
1415
           } else {
1405
             //没绑定科室
1416
             //没绑定科室
1406
             console.log(this.newOrderShow);
1417
             console.log(this.newOrderShow);
@@ -3294,7 +3305,7 @@ export class FuwutaiComponent implements OnInit {
3294
       phone !== "&ks&" &&
3305
       phone !== "&ks&" &&
3295
       phone !== "&go&"
3306
       phone !== "&go&"
3296
     ) {
3307
     ) {
3297
-      // this.incidentModel.incomingPhone = this.callNumber = phone;
3308
+      // this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = phone;
3298
       this.applyDept = null;
3309
       this.applyDept = null;
3299
       this.noArrives = []; //近期配送
3310
       this.noArrives = []; //近期配送
3300
     } else if (phone === "&ks&") {
3311
     } else if (phone === "&ks&") {
@@ -3302,7 +3313,7 @@ export class FuwutaiComponent implements OnInit {
3302
         (item) => item.id == this.applyDept
3313
         (item) => item.id == this.applyDept
3303
       );
3314
       );
3304
       console.log('filter', filter)
3315
       console.log('filter', filter)
3305
-      // this.incidentModel.incomingPhone = this.callNumber = filter[0].phone;
3316
+      // this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = filter[0].phone;
3306
       console.log(this.callNumber); //ceshi
3317
       console.log(this.callNumber); //ceshi
3307
       if (this.currentTabIndex == "255") {
3318
       if (this.currentTabIndex == "255") {
3308
         //患者转运
3319
         //患者转运

+ 1 - 1
src/app/views/incident-management/incident-management.component.html

@@ -79,7 +79,7 @@
79
             <td class="text_align_left">
79
             <td class="text_align_left">
80
               {{ data.hosName || '无' }}<br>
80
               {{ data.hosName || '无' }}<br>
81
               {{ data.department?.dept || '无' }}<br>
81
               {{ data.department?.dept || '无' }}<br>
82
-              {{ data.place ? data.place.building.buildingName : '' }}{{ data.place ? data.place.floorName : '' }}{{ data.houseNumber }}
82
+              {{ data.place ? data.place.building.buildingName : '' }}{{ data.place ? data.place.floorName + '层' : '' }}{{ data.houseNumber }}
83
             </td>
83
             </td>
84
             <td class="text_align_left">
84
             <td class="text_align_left">
85
               {{ data.requester?.name || '无' }}<br>
85
               {{ data.requester?.name || '无' }}<br>

+ 4 - 5
src/app/views/incident-management/incident-management.component.ts

@@ -301,7 +301,7 @@ export class IncidentManagementComponent implements OnInit {
301
       }
301
       }
302
     }else{
302
     }else{
303
         delete postData.incident.duty;
303
         delete postData.incident.duty;
304
-        delete postData.incident.branch;
304
+        delete postData.incident.hosId;
305
     }
305
     }
306
 
306
 
307
     postData.incident.queryTask = this.queryTask;
307
     postData.incident.queryTask = this.queryTask;
@@ -359,7 +359,7 @@ export class IncidentManagementComponent implements OnInit {
359
           }
359
           }
360
         }else{
360
         }else{
361
             delete incident.duty;
361
             delete incident.duty;
362
-            delete incident.branch;
362
+            delete incident.hosId;
363
         }
363
         }
364
 
364
 
365
         incident.assignee = this.tool.getCurrentUserId();
365
         incident.assignee = this.tool.getCurrentUserId();
@@ -558,10 +558,9 @@ export class IncidentManagementComponent implements OnInit {
558
   export() {
558
   export() {
559
     let postData: any = {
559
     let postData: any = {
560
       idx: 0,
560
       idx: 0,
561
-      sum: 9999,
561
+      sum: 99999,
562
       incident: {
562
       incident: {
563
         assignee: this.tool.getCurrentUserId(),
563
         assignee: this.tool.getCurrentUserId(),
564
-        duty: this.tool.getCurrentHospital(),
565
         acceptDate: this.searchDTO.dateRange ? format(this.searchDTO.dateRange[0], 'yyyy-MM-dd HH:mm:ss') : undefined,
564
         acceptDate: this.searchDTO.dateRange ? format(this.searchDTO.dateRange[0], 'yyyy-MM-dd HH:mm:ss') : undefined,
566
         acceptDateEnd: this.searchDTO.dateRange ? format(this.searchDTO.dateRange[1], 'yyyy-MM-dd HH:mm:ss') : undefined,
565
         acceptDateEnd: this.searchDTO.dateRange ? format(this.searchDTO.dateRange[1], 'yyyy-MM-dd HH:mm:ss') : undefined,
567
         incidentsign: this.searchDTO.incidentsign,
566
         incidentsign: this.searchDTO.incidentsign,
@@ -586,7 +585,7 @@ export class IncidentManagementComponent implements OnInit {
586
       }
585
       }
587
     }else{
586
     }else{
588
         delete postData.incident.duty;
587
         delete postData.incident.duty;
589
-        delete postData.incident.branch;
588
+        delete postData.incident.hosId;
590
     }
589
     }
591
 
590
 
592
     postData.incident.queryTask = this.queryTask;
591
     postData.incident.queryTask = this.queryTask;

+ 1 - 0
src/app/views/users-management/users-management.component.ts

@@ -418,6 +418,7 @@ export class UsersManagementComponent implements OnInit {
418
         hospital: { id: that.hosId },
418
         hospital: { id: that.hosId },
419
         weixin: that.validateForm.value.weixin,
419
         weixin: that.validateForm.value.weixin,
420
         companyId: that.validateForm.value.companyId || undefined,
420
         companyId: that.validateForm.value.companyId || undefined,
421
+        engineer: that.validateForm.value.usertype == 4 ? 1 : 0,
421
       },
422
       },
422
     };
423
     };
423
     if (!that.validateForm.value.userGroup) {
424
     if (!that.validateForm.value.userGroup) {