|
@@ -881,13 +881,14 @@ export class HushijiandanComponent implements OnInit {
|
881
|
881
|
if (result.list && result.list.length > 0) {
|
882
|
882
|
this.appointmentBuildFlag =
|
883
|
883
|
result.list[0].appointmentSwitch + ""; //是否开启护士端预约建单
|
884
|
|
- this.leadTime = result.list[0].appointmentTime; //是否开启护士端预约建单
|
|
884
|
+ // this.leadTime = result.list[0].appointmentTime; //生效时长
|
|
885
|
+ this.leadTime = 0; //生效时长
|
885
|
886
|
this.followFlag = result.list[0].focusSwitch + ""; //是否开启护士端重点关注
|
886
|
887
|
this.allowUrgentFlag =
|
887
|
888
|
result.list[0].allowUrgent == 1 ? true : false; //是否允许加急(检查列表)
|
888
|
889
|
} else {
|
889
|
890
|
this.appointmentBuildFlag = "0"; //是否开启护士端预约建单
|
890
|
|
- this.leadTime = 0; //是否开启护士端预约建单
|
|
891
|
+ this.leadTime = 0; //生效时长
|
891
|
892
|
this.followFlag = "0"; //是否开启护士端重点关注
|
892
|
893
|
this.allowUrgentFlag = false; //是否允许加急(检查列表)
|
893
|
894
|
}
|
|
@@ -2423,24 +2424,24 @@ export class HushijiandanComponent implements OnInit {
|
2423
|
2424
|
|
2424
|
2425
|
// 页面中间部分tab切换
|
2425
|
2426
|
checkedTableType: string = "other";
|
|
2427
|
+ isShowBx = false;
|
2426
|
2428
|
checkTable(type) {
|
2427
|
2429
|
this.checkedTableType = type;
|
2428
|
2430
|
if (type === "historySpecimen") {
|
2429
|
2431
|
this.getHistorySpecimen();
|
2430
|
2432
|
} else if (type === "historyDrugsbag") {
|
2431
|
2433
|
this.getHistoryDrugsbag();
|
|
2434
|
+ }else if (type === "bxlb" && this.isShowBx) {
|
|
2435
|
+ this.getBxlb();
|
|
2436
|
+ } else if (type === "kjbx" && this.isShowBx) {
|
|
2437
|
+ this.getQuickBxlb();
|
|
2438
|
+ // 获取报修的区域(所属院区)
|
|
2439
|
+ this.getArea();
|
|
2440
|
+ this.bxForm.controls.name.setValue(this.loginUser.name);
|
|
2441
|
+ this.bxForm.controls.phone.setValue(this.loginUser.phone);
|
|
2442
|
+ this.bxForm.controls.address.setValue(null);
|
|
2443
|
+ this.bxForm.controls.content.setValue(null);
|
2432
|
2444
|
}
|
2433
|
|
- // else if (type === "bxlb") {
|
2434
|
|
- // this.getBxlb();
|
2435
|
|
- // } else if (type === "kjbx") {
|
2436
|
|
- // this.getQuickBxlb();
|
2437
|
|
- // // 获取报修的区域(所属院区)
|
2438
|
|
- // this.getArea();
|
2439
|
|
- // this.bxForm.controls.name.setValue(this.loginUser.name);
|
2440
|
|
- // this.bxForm.controls.phone.setValue(this.loginUser.phone);
|
2441
|
|
- // this.bxForm.controls.address.setValue(null);
|
2442
|
|
- // this.bxForm.controls.content.setValue(null);
|
2443
|
|
- // }
|
2444
|
2445
|
}
|
2445
|
2446
|
//提交报修
|
2446
|
2447
|
bxLoading = false;
|
|
@@ -2597,47 +2598,47 @@ export class HushijiandanComponent implements OnInit {
|
2597
|
2598
|
});
|
2598
|
2599
|
}
|
2599
|
2600
|
// 报修列表查询表格数据
|
2600
|
|
- // bxlbList: any = [];
|
2601
|
|
- // bxlbPageIndex: number = 1; //表格当前页码
|
2602
|
|
- // bxlbPageSize: number = 10; //表格每页展示条数
|
2603
|
|
- // bxlbListLength: number = 10; //表格总数据量
|
2604
|
|
- // bxlbCodeSearchInp: string = ""; //标本编码搜索
|
2605
|
|
- // bxlbParentSearchInp: string = ""; //患者信息搜索
|
2606
|
|
- // bxlbLoading = false;
|
2607
|
|
- // getBxlb(idx?) {
|
2608
|
|
- // if (idx) {
|
2609
|
|
- // this.bxlbPageIndex = 1;
|
2610
|
|
- // }
|
2611
|
|
- // let current = JSON.parse(localStorage.getItem("user"));
|
2612
|
|
- // this.bxlbLoading = true;
|
2613
|
|
- // this.mainService
|
2614
|
|
- // .listWxIncident({
|
2615
|
|
- // "assignee": current.user.account,
|
2616
|
|
- // "state": 0,
|
2617
|
|
- // "idx": this.bxlbPageIndex - 1,
|
2618
|
|
- // "sum": this.bxlbPageSize
|
2619
|
|
- // })
|
2620
|
|
- // .subscribe((data: any) => {
|
2621
|
|
- // this.bxlbLoading = false;
|
2622
|
|
- // this.bxlbList = data.data || [];
|
2623
|
|
- // this.bxlbListLength = data.resultCount || 0;
|
2624
|
|
- // });
|
2625
|
|
- // }
|
|
2601
|
+ bxlbList: any = [];
|
|
2602
|
+ bxlbPageIndex: number = 1; //表格当前页码
|
|
2603
|
+ bxlbPageSize: number = 10; //表格每页展示条数
|
|
2604
|
+ bxlbListLength: number = 10; //表格总数据量
|
|
2605
|
+ bxlbCodeSearchInp: string = ""; //标本编码搜索
|
|
2606
|
+ bxlbParentSearchInp: string = ""; //患者信息搜索
|
|
2607
|
+ bxlbLoading = false;
|
|
2608
|
+ getBxlb(idx?) {
|
|
2609
|
+ if (idx) {
|
|
2610
|
+ this.bxlbPageIndex = 1;
|
|
2611
|
+ }
|
|
2612
|
+ let current = JSON.parse(localStorage.getItem("user"));
|
|
2613
|
+ this.bxlbLoading = true;
|
|
2614
|
+ this.mainService
|
|
2615
|
+ .listWxIncident({
|
|
2616
|
+ "assignee": current.user.account,
|
|
2617
|
+ "state": 0,
|
|
2618
|
+ "idx": this.bxlbPageIndex - 1,
|
|
2619
|
+ "sum": this.bxlbPageSize
|
|
2620
|
+ })
|
|
2621
|
+ .subscribe((data: any) => {
|
|
2622
|
+ this.bxlbLoading = false;
|
|
2623
|
+ this.bxlbList = data.data || [];
|
|
2624
|
+ this.bxlbListLength = data.resultCount || 0;
|
|
2625
|
+ });
|
|
2626
|
+ }
|
2626
|
2627
|
|
2627
|
2628
|
//快速报修列表
|
2628
|
|
- // quickBxlbLoading = false;
|
2629
|
|
- // quickBxlbList = [];
|
2630
|
|
- // getQuickBxlb() {
|
2631
|
|
- // this.quickBxlbLoading = true;
|
2632
|
|
- // this.mainService
|
2633
|
|
- // .fetchListBx("incidentCategoryContent", { idx: 0, sum: 10 })
|
2634
|
|
- // .subscribe((data: any) => {
|
2635
|
|
- // this.quickBxlbLoading = false;
|
2636
|
|
- // if (data.status == 200) {
|
2637
|
|
- // this.quickBxlbList = data.list || [];
|
2638
|
|
- // }
|
2639
|
|
- // });
|
2640
|
|
- // }
|
|
2629
|
+ quickBxlbLoading = false;
|
|
2630
|
+ quickBxlbList = [];
|
|
2631
|
+ getQuickBxlb() {
|
|
2632
|
+ this.quickBxlbLoading = true;
|
|
2633
|
+ this.mainService
|
|
2634
|
+ .fetchListBx("incidentCategoryContent", { idx: 0, sum: 10 })
|
|
2635
|
+ .subscribe((data: any) => {
|
|
2636
|
+ this.quickBxlbLoading = false;
|
|
2637
|
+ if (data.status == 200) {
|
|
2638
|
+ this.quickBxlbList = data.list || [];
|
|
2639
|
+ }
|
|
2640
|
+ });
|
|
2641
|
+ }
|
2641
|
2642
|
|
2642
|
2643
|
// 意见箱-查看模态框
|
2643
|
2644
|
adviceModal: boolean = false;
|