|
@@ -1346,7 +1346,7 @@ export class FuwutaiComponent implements OnInit {
|
1346
|
1346
|
"queryTask": "todoReassign",
|
1347
|
1347
|
}
|
1348
|
1348
|
}else if(stateId == 3){
|
1349
|
|
- return;
|
|
1349
|
+ delete postData.incidentQuery;
|
1350
|
1350
|
}
|
1351
|
1351
|
}
|
1352
|
1352
|
|
|
@@ -1834,6 +1834,7 @@ export class FuwutaiComponent implements OnInit {
|
1834
|
1834
|
}
|
1835
|
1835
|
// 点击tab切换
|
1836
|
1836
|
tabClick(key) {
|
|
1837
|
+ let preCurrentTabIndex = this.currentTabIndex;
|
1837
|
1838
|
this.currentTabIndex = key;
|
1838
|
1839
|
this.radioValueQt = null;
|
1839
|
1840
|
this.startDeptQt = null;
|
|
@@ -1853,7 +1854,7 @@ export class FuwutaiComponent implements OnInit {
|
1853
|
1854
|
this.deptQtList["startStatus"] = 0;
|
1854
|
1855
|
this.deptQtList["endStatus"] = 0;
|
1855
|
1856
|
|
1856
|
|
- if(this.currentTabIndex == '99999'){
|
|
1857
|
+ if(this.currentTabIndex === '99999'){
|
1857
|
1858
|
if(this.incidentModel.department){
|
1858
|
1859
|
this.rightTitle_tab = [
|
1859
|
1860
|
{ id: 2, name: '近期维修' },
|
|
@@ -1874,7 +1875,7 @@ export class FuwutaiComponent implements OnInit {
|
1874
|
1875
|
if(!this.incidentModel.source && source){
|
1875
|
1876
|
this.incidentModel.source = source.id;
|
1876
|
1877
|
}
|
1877
|
|
- }else{
|
|
1878
|
+ }else if(preCurrentTabIndex === '99999'){
|
1878
|
1879
|
if(this.applyDept){
|
1879
|
1880
|
this.rightTitle_tab = [
|
1880
|
1881
|
{ id: 0, name: '近期配送' },
|
|
@@ -3186,6 +3187,11 @@ export class FuwutaiComponent implements OnInit {
|
3186
|
3187
|
this.yyDateZy = addDays(this.yyDateZy, 1);
|
3187
|
3188
|
this.yyDateChange(this.yyDateZy);
|
3188
|
3189
|
}
|
|
3190
|
+ // 下一日(其他临床服务)
|
|
3191
|
+ nextDay() {
|
|
3192
|
+ this.yyDate = addDays(this.yyDate, 1);
|
|
3193
|
+ this.yyDateChange(this.yyDate);
|
|
3194
|
+ }
|
3189
|
3195
|
// 禁用日期(患者其他服务)
|
3190
|
3196
|
disabledyyDateZy = (current: Date): boolean => {
|
3191
|
3197
|
return differenceInCalendarDays(current, new Date()) < 0;
|
|
@@ -3718,6 +3724,7 @@ export class FuwutaiComponent implements OnInit {
|
3718
|
3724
|
this.back = back || "";
|
3719
|
3725
|
setTimeout(() => {
|
3720
|
3726
|
this.showPromptModalRefresh();
|
|
3727
|
+ this.promptModalShow = true;
|
3721
|
3728
|
}, 100);
|
3722
|
3729
|
}
|
3723
|
3730
|
|
|
@@ -3736,7 +3743,6 @@ export class FuwutaiComponent implements OnInit {
|
3736
|
3743
|
} else if (this.currentRTab === 3) {
|
3737
|
3744
|
this.getDictionaryList();
|
3738
|
3745
|
}
|
3739
|
|
- this.promptModalShow = true;
|
3740
|
3746
|
this.fixedTab = "";
|
3741
|
3747
|
this.fixedMenuShangla();
|
3742
|
3748
|
}
|
|
@@ -4034,4 +4040,58 @@ export class FuwutaiComponent implements OnInit {
|
4034
|
4040
|
computedSubstitution(data){
|
4035
|
4041
|
return (data.state.value === 'pending' || data.state.value === 'handler' || (data.state.value === 'reassign' && this.coopBtns.assign)) && data.deleteFlag !== 1;
|
4036
|
4042
|
}
|
|
4043
|
+
|
|
4044
|
+ delModal: boolean = false; //删除模态框
|
|
4045
|
+ tipsMsg1: string; //提示框信息
|
|
4046
|
+ tipsMsg2: string; //操作后信息
|
|
4047
|
+ confirmDelType: string; //确认的类型(启用/停用,删除)
|
|
4048
|
+ showDelModal(
|
|
4049
|
+ e,
|
|
4050
|
+ data,
|
|
4051
|
+ tipsMsg1: string,
|
|
4052
|
+ tipsMsg2: string,
|
|
4053
|
+ type: string,
|
|
4054
|
+ ) {
|
|
4055
|
+ e.stopPropagation();
|
|
4056
|
+ this.confirmDelType = type;
|
|
4057
|
+ this.delModal = true;
|
|
4058
|
+ this.coopData = data;
|
|
4059
|
+ this.tipsMsg1 = tipsMsg1;
|
|
4060
|
+ this.tipsMsg2 = tipsMsg2;
|
|
4061
|
+ }
|
|
4062
|
+ // 隐藏删除框
|
|
4063
|
+ hideDelModal() {
|
|
4064
|
+ this.delModal = false;
|
|
4065
|
+ }
|
|
4066
|
+ // 确认删除
|
|
4067
|
+ confirmDelFn() {
|
|
4068
|
+ this.btnLoading = true;
|
|
4069
|
+ if (this.confirmDelType === "del") {
|
|
4070
|
+ //删除
|
|
4071
|
+ this.mainService
|
|
4072
|
+ .simplePost("rmvData", "incident", [this.coopData.id])
|
|
4073
|
+ .subscribe((data) => {
|
|
4074
|
+ this.btnLoading = false;
|
|
4075
|
+ this.delModal = false;
|
|
4076
|
+ if (data.status == 200) {
|
|
4077
|
+ this.showPromptModal(this.tipsMsg2, true, "");
|
|
4078
|
+ } else {
|
|
4079
|
+ this.showPromptModal(this.tipsMsg2, false, data.msg);
|
|
4080
|
+ }
|
|
4081
|
+ });
|
|
4082
|
+ }else if (this.confirmDelType === "receive") {
|
|
4083
|
+ //接单
|
|
4084
|
+ this.mainService
|
|
4085
|
+ .flowPost("incident/task/receive", { incident: this.coopData })
|
|
4086
|
+ .subscribe((data) => {
|
|
4087
|
+ this.btnLoading = false;
|
|
4088
|
+ this.delModal = false;
|
|
4089
|
+ if (data.state == 200) {
|
|
4090
|
+ this.showPromptModal(this.tipsMsg2, true, "");
|
|
4091
|
+ } else {
|
|
4092
|
+ this.showPromptModal(this.tipsMsg2, false, data.msg);
|
|
4093
|
+ }
|
|
4094
|
+ });
|
|
4095
|
+ }
|
|
4096
|
+ }
|
4037
|
4097
|
}
|