|
@@ -115,7 +115,6 @@ export class HushijiandanComponent implements OnInit {
|
115
|
115
|
searchAccountSubject = new Subject(); //查工号防抖
|
116
|
116
|
searchTabInpSubject = new Subject(); //左侧查患者信息和检查信息防抖
|
117
|
117
|
otherSearchChangeSubject = new Subject(); //其他建单搜索防抖
|
118
|
|
- incidentSearchChangeSubject = new Subject(); //故障现象搜索防抖
|
119
|
118
|
isYyInspect = false; //需要预约检查
|
120
|
119
|
inspectAndPatientTransportConfig:any = {timeMod: 30};
|
121
|
120
|
constructor(
|
|
@@ -199,11 +198,6 @@ export class HushijiandanComponent implements OnInit {
|
199
|
198
|
this.otherSearchChangeSubject.pipe(debounceTime(500)).subscribe((v) => {
|
200
|
199
|
this.getDeptTaskType(v);
|
201
|
200
|
});
|
202
|
|
- this.incidentSearchChangeSubject
|
203
|
|
- .pipe(debounceTime(500))
|
204
|
|
- .subscribe((v: string) => {
|
205
|
|
- this.getIncidentcategory(v);
|
206
|
|
- });
|
207
|
201
|
|
208
|
202
|
this.getTodayNum();
|
209
|
203
|
this.initLogin();
|
|
@@ -297,9 +291,6 @@ export class HushijiandanComponent implements OnInit {
|
297
|
291
|
case "historicalMedicineListInquiry":
|
298
|
292
|
coopBtns.historicalMedicineListInquiry = true; //历史药单查询
|
299
|
293
|
break;
|
300
|
|
- case "quickReportForRepair":
|
301
|
|
- coopBtns.quickReportForRepair = true; //快捷报修
|
302
|
|
- break;
|
303
|
294
|
case "repairList":
|
304
|
295
|
coopBtns.repairList = true; //报修列表
|
305
|
296
|
break;
|
|
@@ -501,7 +492,7 @@ export class HushijiandanComponent implements OnInit {
|
501
|
492
|
if (result.status == 200) {
|
502
|
493
|
this.isShowBx = result.list.find(v => v.key == 'hos_itsmIncident').value == 1;
|
503
|
494
|
this.isAssign = result.list.find(v => v.key == 'nurseSendOrder').value == 1;
|
504
|
|
- if (this.isShowBx && (this.coopBtns.repairList || this.coopBtns.quickReportForRepair) && !this.checkedTableType) {
|
|
495
|
+ if (this.isShowBx && this.coopBtns.repairList && !this.checkedTableType) {
|
505
|
496
|
// 初始化默认显示第一个
|
506
|
497
|
if(this.tabPermission.length){
|
507
|
498
|
this.checkedTableType = (this.tabPermission[0] && this.tabPermission[0].system) ? 'other' : this.tabPermission[0].id;
|
|
@@ -520,9 +511,6 @@ export class HushijiandanComponent implements OnInit {
|
520
|
511
|
}else if(this.coopBtns.historicalMedicineListInquiry){
|
521
|
512
|
this.checkedTableType = 'historyDrugsbag';
|
522
|
513
|
this.checkTable(this.checkedTableType);
|
523
|
|
- }else if(this.coopBtns.quickReportForRepair && this.isShowBx){
|
524
|
|
- this.checkedTableType = 'kjbx';
|
525
|
|
- this.checkTable(this.checkedTableType);
|
526
|
514
|
}else if(this.coopBtns.repairList && this.isShowBx){
|
527
|
515
|
this.checkedTableType = 'bxlb';
|
528
|
516
|
this.checkTable(this.checkedTableType);
|
|
@@ -864,12 +852,6 @@ export class HushijiandanComponent implements OnInit {
|
864
|
852
|
otherSearchChange() {
|
865
|
853
|
this.otherSearchChangeSubject.next(this.otherSearch);
|
866
|
854
|
}
|
867
|
|
- //搜索
|
868
|
|
- incidentSearch = ""; //搜索的关键词
|
869
|
|
- incidentNum = 0;
|
870
|
|
- incidentSearchChange() {
|
871
|
|
- this.incidentSearchChangeSubject.next(this.incidentSearch);
|
872
|
|
- }
|
873
|
855
|
// 切换科室
|
874
|
856
|
changeKs() {
|
875
|
857
|
this.hsPromptModalShow = true;
|
|
@@ -1385,29 +1367,7 @@ export class HushijiandanComponent implements OnInit {
|
1385
|
1367
|
}
|
1386
|
1368
|
});
|
1387
|
1369
|
}
|
1388
|
|
- // 获取故障现象(三级)
|
1389
|
|
- incidentList = [];
|
1390
|
1370
|
iLoading = false;
|
1391
|
|
- getIncidentcategory(key = "") {
|
1392
|
|
- let postData = {
|
1393
|
|
- idx: 0,
|
1394
|
|
- sum: 9999,
|
1395
|
|
- incidentcategory: {
|
1396
|
|
- category: key,
|
1397
|
|
- selectType: "pinyin_qs",
|
1398
|
|
- hierarchyQuery: "three",
|
1399
|
|
- },
|
1400
|
|
- };
|
1401
|
|
- this.iLoading = true;
|
1402
|
|
- this.mainService
|
1403
|
|
- .fetchListBx("incidentcategory", postData)
|
1404
|
|
- .subscribe((data: any) => {
|
1405
|
|
- this.iLoading = false;
|
1406
|
|
- if (data.status == 200) {
|
1407
|
|
- this.incidentList = data.list || [];
|
1408
|
|
- }
|
1409
|
|
- });
|
1410
|
|
- }
|
1411
|
1371
|
// 获取当前登录人科室任务类型信息
|
1412
|
1372
|
othersList: any = []; // 其他一键建单列表
|
1413
|
1373
|
bbMsg: any = {}; //标本一键建单
|
|
@@ -1525,9 +1485,6 @@ export class HushijiandanComponent implements OnInit {
|
1525
|
1485
|
}else if(this.coopBtns.historicalMedicineListInquiry){
|
1526
|
1486
|
this.checkedTableType = 'historyDrugsbag';
|
1527
|
1487
|
this.checkTable(this.checkedTableType);
|
1528
|
|
- }else if(this.coopBtns.quickReportForRepair && this.isShowBx){
|
1529
|
|
- this.checkedTableType = 'kjbx';
|
1530
|
|
- this.checkTable(this.checkedTableType);
|
1531
|
1488
|
}else if(this.coopBtns.repairList && this.isShowBx){
|
1532
|
1489
|
this.checkedTableType = 'bxlb';
|
1533
|
1490
|
this.checkTable(this.checkedTableType);
|
|
@@ -3648,15 +3605,6 @@ export class HushijiandanComponent implements OnInit {
|
3648
|
3605
|
this.getBxlb(this.bxlbPageIndex);
|
3649
|
3606
|
// this.getIncidentState();
|
3650
|
3607
|
this.getDegrees();
|
3651
|
|
- } else if (type === "kjbx" && this.isShowBx && this.coopBtns.quickReportForRepair) {
|
3652
|
|
- // this.getQuickBxlb();
|
3653
|
|
- this.getIncidentcategory();
|
3654
|
|
- // 获取报修的区域(所属院区)
|
3655
|
|
- // this.getArea();
|
3656
|
|
- // this.bxForm.controls.name.setValue(this.loginUser.name);
|
3657
|
|
- // this.bxForm.controls.phone.setValue(this.loginUser.phone);
|
3658
|
|
- // this.bxForm.controls.address.setValue(null);
|
3659
|
|
- this.bxForm.controls.content.setValue(null);
|
3660
|
3608
|
}
|
3661
|
3609
|
}
|
3662
|
3610
|
//提交报修
|