seimin 6 ay önce
ebeveyn
işleme
08dda6af53

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

@@ -653,7 +653,7 @@ export class ConfigurationCategoryComponent implements OnInit {
653 653
           userGroup: this.validateConfigForm.value.userGroup,
654 654
           groupId: this.validateConfigForm.value.groupId || undefined,
655 655
           userId: this.validateConfigForm.value.userGroup === 1 ? this.validateConfigForm.value.userId : undefined,
656
-          hosId: this.currentHospital.id,
656
+          hosId: this.hospitalConfig === 1 ? this.currentHospital.id  : this.validateConfigForm.value.hosId,
657 657
         }
658 658
       };
659 659
     } else {

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

@@ -2244,7 +2244,7 @@
2244 2244
       </div>
2245 2245
       <div class="btns display_flex justify-content_flex-center align-items_center">
2246 2246
         <ng-container *ngIf="applyDept && currentTabIndex !== '99999'">
2247
-          <button nz-button class="btn" nzType="primary" (click)="newOrderOk('go')" [nzLoading]="isGoLoading">
2247
+          <button nz-button class="btn" nzType="primary" (click)="newOrderOk('&go&')" [nzLoading]="isGoLoading">
2248 2248
             继续建单
2249 2249
           </button>
2250 2250
           <button nz-button class="btn" nzType="primary" (click)="newOrderOk()" [nzLoading]="isOkLoading">

+ 1 - 1
src/app/views/fuwutai/fuwutai.component.less

@@ -6,7 +6,7 @@
6 6
   padding: 16px;
7 7
   display: flex;
8 8
   flex-direction: column;
9
-  ::ng-deep .yyTime .ant-form-item-label {
9
+  ::ng-deep .bottomWrap .bottom .ant-form-item-label {
10 10
     line-height: 24px;
11 11
   }
12 12
 }

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

@@ -438,6 +438,9 @@ export class FuwutaiComponent implements OnInit {
438 438
             this.incidentModel.incomingPhone = this.callNumber = data["phone"];
439 439
             this.showPromptModal("建单", true, "", "closeGo");
440 440
           } else {
441
+            if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
442
+              // this.jry_shixian();
443
+            }
441 444
             this.showPromptModal("建单", true, "", "close");
442 445
           }
443 446
         } else {
@@ -473,6 +476,9 @@ export class FuwutaiComponent implements OnInit {
473 476
           this.incidentModel.incomingPhone = this.callNumber = data["phone"];
474 477
           this.showPromptModal("建单", true, "", "closeGo");
475 478
         } else {
479
+          if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
480
+            // this.jry_shixian();
481
+          }
476 482
           this.showPromptModal("建单", true, "", "close");
477 483
         }
478 484
       } else {
@@ -532,6 +538,9 @@ export class FuwutaiComponent implements OnInit {
532 538
           this.incidentModel.incomingPhone = this.callNumber = data["phone"];
533 539
           this.showPromptModal("建单", true, "", "closeGo");
534 540
         } else {
541
+          if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
542
+            // this.jry_shixian();
543
+          }
535 544
           this.showPromptModal("建单", true, "", "close");
536 545
         }
537 546
       } else {
@@ -707,7 +716,6 @@ export class FuwutaiComponent implements OnInit {
707 716
     if(this.incomingService.getSign() === 'box'){
708 717
       this.getPhoneNum();
709 718
     }else if(this.incomingService.getSign() === 'callCenter'){
710
-      let _this = this;
711 719
       setTimeout(this.getPhoneNum.bind(this), 2000)
712 720
     }else{
713 721
       this.websocketLoading = false;
@@ -1250,12 +1258,12 @@ export class FuwutaiComponent implements OnInit {
1250 1258
   // 保存工单信息
1251 1259
   confirmOrderScope(data){
1252 1260
     if (data.status == 200) {
1253
-      this.websocketLoading = true;
1261
+      // this.websocketLoading = true;
1254 1262
       this.cancelOrderScope();
1255 1263
       this.showPromptModal("保存", true, "");
1256 1264
       // 关闭phone的websocket
1257
-      this.incomingService.closeWs(true);
1258
-      this.getPhoneNum(false);
1265
+      // this.incomingService.closeWs(true);
1266
+      // this.getPhoneNum(false);
1259 1267
       this.user.user.scope = data.data;
1260 1268
       localStorage.setItem("user", JSON.stringify(this.user));
1261 1269
       this.initOrderScope();
@@ -1338,7 +1346,7 @@ export class FuwutaiComponent implements OnInit {
1338 1346
           //没绑定科室
1339 1347
           if (!this.newOrderShow && !this.newOrderShowOpen) {
1340 1348
             this.applyDept = null;
1341
-            this.showNewOrder("no", data.phone, true);
1349
+            this.showNewOrder("no", data.phone, true, '来电弹屏');
1342 1350
           }
1343 1351
         }
1344 1352
       });
@@ -1370,15 +1378,28 @@ export class FuwutaiComponent implements OnInit {
1370 1378
           if (result.list.length > 0) {
1371 1379
             //绑定了科室
1372 1380
             if (!this.newOrderShow && !this.newOrderShowOpen) {
1381
+              let incidentModel:any = Object.assign({}, this.incidentModel);
1382
+              let incidentMsg:any = Object.assign({}, this.incidentMsg);
1383
+              incidentModel.department = result.list[0];
1384
+              incidentModel.department && incidentModel.department.hospital && (incidentModel.hosId = incidentModel.department.hospital.parent ? incidentModel.department.hospital.parent.id : incidentModel.department.hospital.id);
1385
+              incidentModel.department && incidentModel.department.building && (incidentModel.area = incidentModel.department.building.id);
1386
+              incidentModel.department && incidentModel.department.floor && (incidentModel.place = incidentModel.department.floor.id);
1387
+              incidentModel.department && incidentModel.department.address && (incidentModel.houseNumber = incidentModel.department.address);
1388
+              incidentModel.department && (incidentMsg.deptManyPhone = incidentModel.department.manyPhone);
1389
+              incidentModel.department && (incidentMsg.deptName = incidentModel.department.dept);
1390
+
1391
+              incidentModel.department && (incidentModel.department = incidentModel.department.id);
1392
+              this.incidentModel = incidentModel;
1393
+              this.incidentMsg = incidentMsg;
1373 1394
               this.applyDeptMiddle = result.list[0];
1374
-              this.showNewOrder("yes", this.incidentModel.incomingPhone, true);
1395
+              this.showNewOrder("yes", this.incidentModel.incomingPhone, true, '来电弹屏');
1375 1396
             }
1376 1397
           } else {
1377 1398
             //没绑定科室
1378 1399
             console.log(this.newOrderShow);
1379 1400
             if (!this.newOrderShow && !this.newOrderShowOpen) {
1380 1401
               this.applyDept = null;
1381
-              this.showNewOrder("no", this.incidentModel.incomingPhone, true);
1402
+              this.showNewOrder("no", this.incidentModel.incomingPhone, true, '来电弹屏');
1382 1403
             }
1383 1404
           }
1384 1405
         }
@@ -2230,11 +2251,18 @@ export class FuwutaiComponent implements OnInit {
2230 2251
   resetOrderData(){
2231 2252
     this.applicationRequesterList = [];
2232 2253
     this.fileList = [];
2254
+    this.repairImgs = [];
2233 2255
   }
2234 2256
   // 打开新建工单
2235 2257
   deathTasktypeId; //获取这个写死的任务类型的id,送病人回病房
2236 2258
   deathTasktypeIdPatient; //获取这个写死的任务类型的id,转出院记录
2237 2259
   async showNewOrder(des = '', phone = '', isInit = false, buildType = '') {
2260
+    if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
2261
+      //进入弹窗,强制示忙
2262
+      setTimeout(()=>{
2263
+        tlwsa.tlaAcw();
2264
+      },0)
2265
+    }
2238 2266
     this.buildType = buildType;
2239 2267
     if(this.itsmData.mdv2Switch){
2240 2268
       this.resetOrderData();
@@ -2323,11 +2351,12 @@ export class FuwutaiComponent implements OnInit {
2323 2351
         this.searchTaskList.forEach((item) => {
2324 2352
           item.sid = item.associationTypeId + "_" + item.id;
2325 2353
         });
2326
-        if(phone){
2327
-          this.getAutoWorkTypes(true, isInit);
2328
-        }else{
2329
-          this.getAutoWorkTypes(false, isInit);
2330
-        }
2354
+        // if(phone){
2355
+        //   this.getAutoWorkTypes(true, isInit);
2356
+        // }else{
2357
+        //   this.getAutoWorkTypes(false, isInit);
2358
+        // }
2359
+        this.getAutoWorkTypes(false, isInit);
2331 2360
       }
2332 2361
     });
2333 2362
   }
@@ -2389,16 +2418,10 @@ export class FuwutaiComponent implements OnInit {
2389 2418
 
2390 2419
       let deptObj = this.applicationDeptList.find(v => v.id == this.incidentModel.department);
2391 2420
 
2392
-      if(this.applyDept !== this.incidentModel.department){
2421
+      if(this.applyDept != this.incidentModel.department){
2393 2422
         this.applyDept = this.incidentModel.department;
2394 2423
         this.searchApplicationDepartment('hsms', deptObj ? deptObj.dept : '', undefined, this.incidentModel.department);
2395 2424
       }
2396
-
2397
-      // 回显事件来源
2398
-      let source = this.applicationSourceList.find(v => v.value === 'phone');
2399
-      if(!this.incidentModel.source && source){
2400
-        this.incidentModel.source = source.id;
2401
-      }
2402 2425
     }else if(this.currentTabIndex === '99999'){
2403 2426
       if(this.incidentModel.department){
2404 2427
         this.rightTitle_tab = [
@@ -2410,7 +2433,7 @@ export class FuwutaiComponent implements OnInit {
2410 2433
 
2411 2434
       let deptObj = this.applicationDepartmentList.find(v => v.id == this.applyDept);
2412 2435
 
2413
-      if(this.incidentModel.department !== this.applyDept && !isInit){
2436
+      if(this.incidentModel.department != this.applyDept && (!isInit || this.buildType !== '来电弹屏')){
2414 2437
         this.incidentModel.department = this.applyDept;
2415 2438
         this.searchApplicationDepartment('itsm', deptObj ? deptObj.dept : '', undefined, this.applyDept);
2416 2439
       }
@@ -2927,6 +2950,11 @@ export class FuwutaiComponent implements OnInit {
2927 2950
         this.isLoading = false;
2928 2951
         if (data.status == 200) {
2929 2952
           this.applicationPriorityList = data.list;
2953
+          // 回显事件来源
2954
+          let source = this.applicationSourceList.find(v => v.value === 'phone');
2955
+          if(!this.incidentModel.source && source){
2956
+            this.incidentModel.source = source.id;
2957
+          }
2930 2958
         }
2931 2959
       });
2932 2960
   }
@@ -3073,6 +3101,8 @@ export class FuwutaiComponent implements OnInit {
3073 3101
             let ids = this.applicationDeptList.map(v => v.id);
3074 3102
             isInit && !ids.includes(this.incidentModel.department) && (this.applicationDeptList.unshift({id: this.incidentModel.department, dept: this.incidentMsg.deptName}))
3075 3103
             console.log(this.applicationDeptList);
3104
+            console.log(this.incidentModel);
3105
+            console.log(this.incidentMsg);
3076 3106
             deptId && this.changeApplyDept(deptId);
3077 3107
           }
3078 3108
         }
@@ -3105,7 +3135,7 @@ export class FuwutaiComponent implements OnInit {
3105 3135
 
3106 3136
     let deptObj = this.applicationDepartmentList.find(v => v.id == e);
3107 3137
 
3108
-    if(this.incidentModel.department !== e){
3138
+    if(this.incidentModel.department != e){
3109 3139
       this.incidentModel.department = e;
3110 3140
       this.searchApplicationDepartment('itsm', deptObj ? deptObj.dept : '', undefined, e);
3111 3141
     }
@@ -3124,7 +3154,7 @@ export class FuwutaiComponent implements OnInit {
3124 3154
 
3125 3155
     let deptObj = this.applicationDeptList.find(v => v.id == e);
3126 3156
 
3127
-    if(this.applyDept !== e){
3157
+    if(this.applyDept != e){
3128 3158
       this.applyDept = e;
3129 3159
       this.searchApplicationDepartment('hsms', deptObj ? deptObj.dept : '', undefined, e);
3130 3160
     }
@@ -3483,6 +3513,9 @@ export class FuwutaiComponent implements OnInit {
3483 3513
       this.incidentModel.group = undefined;
3484 3514
       this.showPromptModal("操作", true, "", "");
3485 3515
     }else{
3516
+      if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
3517
+        // this.jry_shixian();
3518
+      }
3486 3519
       this.newOrderShow = false; //关闭弹窗
3487 3520
       this.newOrderShowOpen = false; //此时可出现新的弹窗
3488 3521
       this.showPromptModal("操作", true, "", "");
@@ -3992,7 +4025,11 @@ export class FuwutaiComponent implements OnInit {
3992 4025
     this.fixedTab = '';
3993 4026
   }
3994 4027
 
4028
+  // 取消
3995 4029
   newOrderCancel(): void {
4030
+    if(this.incomingService.getSign() === 'callCenter' && this.incomingService.getPhoneNumber()){
4031
+      // this.jry_shixian();
4032
+    }
3996 4033
     this.newOrderShow = false;
3997 4034
     this.newOrderShowOpen = false;
3998 4035
     this.currentTabIndex = "";

+ 1 - 1
src/app/views/hospital-config/hospital-config.component.ts

@@ -441,7 +441,7 @@ export class HospitalConfigComponent implements OnInit {
441 441
    * @returns
442 442
    */
443 443
   getGroupList(hosId) {
444
-    let postData = { idx: 0, sum: 100, group2: { hospitals: hosId, type: 1 } };
444
+    let postData = { idx: 0, sum: 100, group2: { hospitals: hosId, typeIds: '1,3' } };
445 445
     return this.mainService
446 446
       .getFetchDataList("data", "group2", postData)
447 447
       .toPromise();