|
@@ -472,7 +472,7 @@ export class HushijiandanComponent implements OnInit {
|
472
|
472
|
];
|
473
|
473
|
this.smallTabId = 2;
|
474
|
474
|
this.getQuickBxlb();
|
475
|
|
- this.getBxlb();
|
|
475
|
+ this.getBxlb(this.bxlbPageIndex, true);
|
476
|
476
|
} else {
|
477
|
477
|
this.smallTabs = [{ id: 1, name: "综合日志" }];
|
478
|
478
|
this.smallTabId = 1;
|
|
@@ -3371,7 +3371,7 @@ export class HushijiandanComponent implements OnInit {
|
3371
|
3371
|
} else if (type === "historyDrugsbag") {
|
3372
|
3372
|
this.getHistoryDrugsbag();
|
3373
|
3373
|
} else if (type === "bxlb" && this.isShowBx && this.coopBtns.repairList) {
|
3374
|
|
- this.getBxlb();
|
|
3374
|
+ this.getBxlb(this.bxlbPageIndex);
|
3375
|
3375
|
// this.getIncidentState();
|
3376
|
3376
|
this.getDegrees();
|
3377
|
3377
|
} else if (type === "kjbx" && this.isShowBx && this.coopBtns.quickReportForRepair) {
|
|
@@ -3608,7 +3608,7 @@ export class HushijiandanComponent implements OnInit {
|
3608
|
3608
|
bxlbParentSearchInp: string = ""; //患者信息搜索
|
3609
|
3609
|
processing: number = 0; //处理中的数量
|
3610
|
3610
|
bxlbLoading = false;
|
3611
|
|
- getBxlb(idx?) {
|
|
3611
|
+ getBxlb(idx, isInitState = false) {
|
3612
|
3612
|
// 获取事件状态
|
3613
|
3613
|
let postData = { type: "list", key: "wxincident_state" };
|
3614
|
3614
|
this.iLoading = true;
|
|
@@ -3616,8 +3616,11 @@ export class HushijiandanComponent implements OnInit {
|
3616
|
3616
|
this.iLoading = false;
|
3617
|
3617
|
if (data.status == 200) {
|
3618
|
3618
|
this.incidentStateList = data.data || [];
|
3619
|
|
- let valueObj2 = this.incidentStateList.find(v => v.value == 2);
|
3620
|
|
- this.incidentStateId = valueObj2 ? valueObj2.id : undefined;
|
|
3619
|
+ if(isInitState){
|
|
3620
|
+ let valueObj2 = this.incidentStateList.find(v => v.value == 2);
|
|
3621
|
+ this.incidentStateId = valueObj2 ? valueObj2.id : undefined;
|
|
3622
|
+ }
|
|
3623
|
+
|
3621
|
3624
|
// 报修列表查询表格数据
|
3622
|
3625
|
if (idx) {
|
3623
|
3626
|
this.bxlbPageIndex = 1;
|
|
@@ -3988,7 +3991,7 @@ export class HushijiandanComponent implements OnInit {
|
3988
|
3991
|
.subscribe((data:any) => {
|
3989
|
3992
|
this.hideAppraiseBx();
|
3990
|
3993
|
if (data.state == 200) {
|
3991
|
|
- this.getBxlb();
|
|
3994
|
+ this.getBxlb(this.bxlbPageIndex);
|
3992
|
3995
|
this.showPromptModal("评价", true, "");
|
3993
|
3996
|
} else {
|
3994
|
3997
|
this.showPromptModal("评价", false, "");
|