|
@@ -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
|
+
|
|
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
|
|
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
|
|
-
|
2434
|
|
-
|
2435
|
|
-
|
2436
|
|
-
|
2437
|
|
-
|
2438
|
|
-
|
2439
|
|
-
|
2440
|
|
-
|
2441
|
|
-
|
2442
|
|
-
|
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
|
|
-
|
2601
|
|
-
|
2602
|
|
-
|
2603
|
|
-
|
2604
|
|
-
|
2605
|
|
-
|
2606
|
|
-
|
2607
|
|
-
|
2608
|
|
-
|
2609
|
|
-
|
2610
|
|
-
|
2611
|
|
-
|
2612
|
|
-
|
2613
|
|
-
|
2614
|
|
-
|
2615
|
|
-
|
2616
|
|
-
|
2617
|
|
-
|
2618
|
|
-
|
2619
|
|
-
|
2620
|
|
-
|
2621
|
|
-
|
2622
|
|
-
|
2623
|
|
-
|
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
|
|
-
|
2629
|
|
-
|
2630
|
|
-
|
2631
|
|
-
|
2632
|
|
-
|
2633
|
|
-
|
2634
|
|
-
|
2635
|
|
-
|
2636
|
|
-
|
2637
|
|
-
|
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;
|