|
@@ -185,7 +185,7 @@ export class FuwutaiComponent implements OnInit {
|
185
|
185
|
// 初始化增删改按钮
|
186
|
186
|
coopBtns: any = {};
|
187
|
187
|
validateZwForm: FormGroup; //新增政务值班表单
|
188
|
|
-
|
|
188
|
+
|
189
|
189
|
// 获取院区配置配置,是否核酸打印
|
190
|
190
|
isShowNucleicAcidPrinting = false;
|
191
|
191
|
getHospitalConfigList(key) {
|
|
@@ -473,7 +473,7 @@ export class FuwutaiComponent implements OnInit {
|
473
|
473
|
}
|
474
|
474
|
this.showPromptModal("建单", true, "", "close");
|
475
|
475
|
}
|
476
|
|
- }
|
|
476
|
+ }
|
477
|
477
|
else if(data["status"] == 1000033){
|
478
|
478
|
this.newOrderShow = false; //关闭弹窗
|
479
|
479
|
if (go === "&go&") {
|
|
@@ -591,7 +591,7 @@ export class FuwutaiComponent implements OnInit {
|
591
|
591
|
}else{
|
592
|
592
|
this.showPromptModal("建单", false, data["msg"]);
|
593
|
593
|
}
|
594
|
|
- }
|
|
594
|
+ }
|
595
|
595
|
else if(data["status"] == 1000033){
|
596
|
596
|
this.newOrderShow = false; //关闭弹窗
|
597
|
597
|
if (go === "&go&") {
|
|
@@ -604,7 +604,7 @@ export class FuwutaiComponent implements OnInit {
|
604
|
604
|
}
|
605
|
605
|
//重复建单那策略
|
606
|
606
|
this.repeatMsg = data["msg"];
|
607
|
|
- this.showRepeatModal(postData, "inspection", go);
|
|
607
|
+ this.showRepeatModal(postData, "inspection", go);
|
608
|
608
|
}else if (data["status"] == 100043){
|
609
|
609
|
this.showPromptModal("建单", true, data["msg"]);
|
610
|
610
|
}
|
|
@@ -733,7 +733,7 @@ export class FuwutaiComponent implements OnInit {
|
733
|
733
|
}
|
734
|
734
|
this.showPromptModal("建单", true, "", "close");
|
735
|
735
|
}
|
736
|
|
- }
|
|
736
|
+ }
|
737
|
737
|
else if(data["status"] == 1000033){
|
738
|
738
|
this.newOrderShow = false; //关闭弹窗
|
739
|
739
|
if (go === "&go&") {
|
|
@@ -747,7 +747,7 @@ export class FuwutaiComponent implements OnInit {
|
747
|
747
|
//重复建单那策略
|
748
|
748
|
this.repeatMsg = data["msg"];
|
749
|
749
|
this.showRepeatModal(postData, "other", go);
|
750
|
|
-
|
|
750
|
+
|
751
|
751
|
}else if (data["status"] == 100043){
|
752
|
752
|
this.showPromptModal("建单", true, data["msg"]);
|
753
|
753
|
}
|
|
@@ -809,7 +809,7 @@ export class FuwutaiComponent implements OnInit {
|
809
|
809
|
}
|
810
|
810
|
this.showPromptModal("建单", true, "", "close");
|
811
|
811
|
}
|
812
|
|
- }
|
|
812
|
+ }
|
813
|
813
|
else if(data["status"] == 1000033){
|
814
|
814
|
this.newOrderShow = false; //关闭弹窗
|
815
|
815
|
if (go === "&go&") {
|
|
@@ -2044,7 +2044,7 @@ export class FuwutaiComponent implements OnInit {
|
2044
|
2044
|
}
|
2045
|
2045
|
});
|
2046
|
2046
|
}
|
2047
|
|
-
|
|
2047
|
+
|
2048
|
2048
|
// 获取政务值班近期记录
|
2049
|
2049
|
itsmZwOrders:any=[];
|
2050
|
2050
|
getZwOrders(){
|
|
@@ -2416,8 +2416,8 @@ export class FuwutaiComponent implements OnInit {
|
2416
|
2416
|
keyWord: keyWords
|
2417
|
2417
|
}
|
2418
|
2418
|
postData.incidentQuery.incident.showReassign = this.user.user.scope.showReassign==0 || !this.user.user.scope.showReassign ? undefined : this.user.user.scope.showReassign
|
2419
|
|
- postData.incidentQuery.incident.showGovDuty =
|
2420
|
|
- this.user.user.scope.showGovDuty==0 ||
|
|
2419
|
+ postData.incidentQuery.incident.showGovDuty =
|
|
2420
|
+ this.user.user.scope.showGovDuty==0 ||
|
2421
|
2421
|
!this.user.user.scope.showGovDuty ? undefined : this.user.user.scope.showGovDuty
|
2422
|
2422
|
}else if(stateId == 2){
|
2423
|
2423
|
postData.incidentQuery.incident = {
|
|
@@ -2701,7 +2701,7 @@ export class FuwutaiComponent implements OnInit {
|
2701
|
2701
|
gzgd = true;
|
2702
|
2702
|
}
|
2703
|
2703
|
});
|
2704
|
|
-
|
|
2704
|
+
|
2705
|
2705
|
if(!gglb && !gzgd && !sy){
|
2706
|
2706
|
this.msg.error("暂无权限进入系统!", {
|
2707
|
2707
|
nzDuration: 2000,
|
|
@@ -2802,11 +2802,11 @@ export class FuwutaiComponent implements OnInit {
|
2802
|
2802
|
}
|
2803
|
2803
|
});
|
2804
|
2804
|
}
|
2805
|
|
-
|
|
2805
|
+
|
2806
|
2806
|
changeAsset(e){
|
2807
|
2807
|
this.changeAssetInpSubject.next(e);
|
2808
|
2808
|
}
|
2809
|
|
-
|
|
2809
|
+
|
2810
|
2810
|
// 获取资产列表
|
2811
|
2811
|
assetData:any = [];
|
2812
|
2812
|
getAssetData(name?){
|
|
@@ -2819,7 +2819,7 @@ export class FuwutaiComponent implements OnInit {
|
2819
|
2819
|
name: name
|
2820
|
2820
|
},
|
2821
|
2821
|
};
|
2822
|
|
-
|
|
2822
|
+
|
2823
|
2823
|
this.mainService
|
2824
|
2824
|
.getFetchDataList("simple/data", "asset", data)
|
2825
|
2825
|
.subscribe((data) => {
|
|
@@ -2828,7 +2828,7 @@ export class FuwutaiComponent implements OnInit {
|
2828
|
2828
|
}
|
2829
|
2829
|
});
|
2830
|
2830
|
}
|
2831
|
|
-
|
|
2831
|
+
|
2832
|
2832
|
// 重置新建工单数据
|
2833
|
2833
|
resetOrderData(){
|
2834
|
2834
|
this.applicationRequesterList = [];
|
|
@@ -2848,7 +2848,7 @@ export class FuwutaiComponent implements OnInit {
|
2848
|
2848
|
this.isRelatedDepartment = false;
|
2849
|
2849
|
}
|
2850
|
2850
|
}
|
2851
|
|
-
|
|
2851
|
+
|
2852
|
2852
|
// 获取系统配置
|
2853
|
2853
|
initConfig:any;
|
2854
|
2854
|
config:any;
|
|
@@ -2892,7 +2892,7 @@ export class FuwutaiComponent implements OnInit {
|
2892
|
2892
|
this.incidentModel.hosId = this.tool.getCurrentHospital().id
|
2893
|
2893
|
}
|
2894
|
2894
|
}
|
2895
|
|
- break;
|
|
2895
|
+ break;
|
2896
|
2896
|
case "applicantMustFillIn":
|
2897
|
2897
|
this.applicantMustFillIn = c[1]
|
2898
|
2898
|
break;
|
|
@@ -2902,7 +2902,7 @@ export class FuwutaiComponent implements OnInit {
|
2902
|
2902
|
}else{
|
2903
|
2903
|
this.cmdbRepair = false
|
2904
|
2904
|
}
|
2905
|
|
- break;
|
|
2905
|
+ break;
|
2906
|
2906
|
}
|
2907
|
2907
|
if(type==1){
|
2908
|
2908
|
if(this.publicRepair && !this.deptRepair){
|
|
@@ -2924,7 +2924,7 @@ export class FuwutaiComponent implements OnInit {
|
2924
|
2924
|
}
|
2925
|
2925
|
});
|
2926
|
2926
|
}
|
2927
|
|
-
|
|
2927
|
+
|
2928
|
2928
|
// 打开新建工单
|
2929
|
2929
|
deathTasktypeId; //获取这个写死的任务类型的id,送病人回病房
|
2930
|
2930
|
deathTasktypeIdPatient; //获取这个写死的任务类型的id,转出院记录
|
|
@@ -3141,7 +3141,7 @@ export class FuwutaiComponent implements OnInit {
|
3141
|
3141
|
// this.searchApplicationDepartment('hsms', deptObj ? deptObj.dept : '', undefined, this.incidentModel.department);
|
3142
|
3142
|
// }
|
3143
|
3143
|
// }else
|
3144
|
|
-
|
|
3144
|
+
|
3145
|
3145
|
if(this.currentTabIndex === '故障报修'){
|
3146
|
3146
|
// this.incidentModel.department = null;
|
3147
|
3147
|
this.rightTitle_tab = [
|
|
@@ -3149,7 +3149,7 @@ export class FuwutaiComponent implements OnInit {
|
3149
|
3149
|
{ id: 3, name: '知识库' },
|
3150
|
3150
|
]
|
3151
|
3151
|
this.rightTitleHandler(this.rightTitle_tab[0].id);
|
3152
|
|
-
|
|
3152
|
+
|
3153
|
3153
|
|
3154
|
3154
|
let deptObj = this.applicationDepartmentList.find(v => v.id == this.applyDept);
|
3155
|
3155
|
|
|
@@ -3171,7 +3171,7 @@ export class FuwutaiComponent implements OnInit {
|
3171
|
3171
|
this.rightTitleHandler(this.rightTitle_tab[0].id);
|
3172
|
3172
|
}
|
3173
|
3173
|
}
|
3174
|
|
-
|
|
3174
|
+
|
3175
|
3175
|
// 获取省市区
|
3176
|
3176
|
priorityData:any = [];
|
3177
|
3177
|
nzOptions:any = [];
|
|
@@ -3182,14 +3182,14 @@ export class FuwutaiComponent implements OnInit {
|
3182
|
3182
|
this.nzOptions = this.tool.tranListToTreeDataLeaf(list, undefined, "parentId");
|
3183
|
3183
|
});
|
3184
|
3184
|
}
|
3185
|
|
-
|
|
3185
|
+
|
3186
|
3186
|
// 选择省市区
|
3187
|
3187
|
selectProvince:boolean = false
|
3188
|
3188
|
onProvinceChanges (values: any): void {
|
3189
|
3189
|
this.selectProvince = true;
|
3190
|
3190
|
this.getZwOrders();
|
3191
|
3191
|
}
|
3192
|
|
-
|
|
3192
|
+
|
3193
|
3193
|
// 初始化政务值班form
|
3194
|
3194
|
sketch:any = null;
|
3195
|
3195
|
record:any = null;
|
|
@@ -3207,7 +3207,7 @@ export class FuwutaiComponent implements OnInit {
|
3207
|
3207
|
this.complainant = null;
|
3208
|
3208
|
this.detailedAddress = null;
|
3209
|
3209
|
}
|
3210
|
|
-
|
|
3210
|
+
|
3211
|
3211
|
// 保存政务值班
|
3212
|
3212
|
zwLoading:boolean = false;
|
3213
|
3213
|
saveZwOrder(): void{
|
|
@@ -3288,7 +3288,7 @@ export class FuwutaiComponent implements OnInit {
|
3288
|
3288
|
}
|
3289
|
3289
|
});
|
3290
|
3290
|
}
|
3291
|
|
-
|
|
3291
|
+
|
3292
|
3292
|
// 获取患者信息
|
3293
|
3293
|
searchPatientList(id, searchWords) {
|
3294
|
3294
|
this.patientObj = null;
|
|
@@ -3425,7 +3425,7 @@ export class FuwutaiComponent implements OnInit {
|
3425
|
3425
|
}
|
3426
|
3426
|
});
|
3427
|
3427
|
}
|
3428
|
|
-
|
|
3428
|
+
|
3429
|
3429
|
// 患者转运-任务类型-院区切换
|
3430
|
3430
|
changeTypeHospital(e, type){
|
3431
|
3431
|
console.log(111,e)
|
|
@@ -3436,7 +3436,7 @@ export class FuwutaiComponent implements OnInit {
|
3436
|
3436
|
}
|
3437
|
3437
|
this.getStartDept(type)
|
3438
|
3438
|
}
|
3439
|
|
-
|
|
3439
|
+
|
3440
|
3440
|
// 患者转运-任务类型-搜索起点科室
|
3441
|
3441
|
getStartDept(type){
|
3442
|
3442
|
let dataObj = {
|
|
@@ -3468,7 +3468,7 @@ export class FuwutaiComponent implements OnInit {
|
3468
|
3468
|
}
|
3469
|
3469
|
});
|
3470
|
3470
|
}
|
3471
|
|
-
|
|
3471
|
+
|
3472
|
3472
|
// 物品配送-任务类型-院区切换
|
3473
|
3473
|
changeTypeQtHospital(e, type){
|
3474
|
3474
|
if(type==1){
|
|
@@ -3478,7 +3478,7 @@ export class FuwutaiComponent implements OnInit {
|
3478
|
3478
|
}
|
3479
|
3479
|
this.getStartQtDept(type)
|
3480
|
3480
|
}
|
3481
|
|
-
|
|
3481
|
+
|
3482
|
3482
|
// 物品配送-任务类型-搜索起点科室
|
3483
|
3483
|
getStartQtDept(type){
|
3484
|
3484
|
let dataObj = {
|
|
@@ -3510,13 +3510,13 @@ export class FuwutaiComponent implements OnInit {
|
3510
|
3510
|
}
|
3511
|
3511
|
});
|
3512
|
3512
|
}
|
3513
|
|
-
|
|
3513
|
+
|
3514
|
3514
|
// 配送院区选择
|
3515
|
3515
|
changeInHospital(e){
|
3516
|
3516
|
this.applyDept = undefined;
|
3517
|
3517
|
this.searchApplicationDepartment('hsms');
|
3518
|
3518
|
}
|
3519
|
|
-
|
|
3519
|
+
|
3520
|
3520
|
// 选择院区
|
3521
|
3521
|
changeApplyHospital(e){
|
3522
|
3522
|
console.log(e);
|
|
@@ -3729,7 +3729,7 @@ export class FuwutaiComponent implements OnInit {
|
3729
|
3729
|
this.incidentModel.description = this.applicationCategoryList.find(v => v.id == e).mutiCategory;
|
3730
|
3730
|
}
|
3731
|
3731
|
}
|
3732
|
|
-
|
|
3732
|
+
|
3733
|
3733
|
// 根据院区和故障现象带出责任部门,优先级,维修人/组
|
3734
|
3734
|
if(this.incidentModel.hosId && e && this.buildType !== '编辑事件'){
|
3735
|
3735
|
let postData = {
|
|
@@ -5640,6 +5640,7 @@ export class FuwutaiComponent implements OnInit {
|
5640
|
5640
|
label: (e.yyTime || "") + " " + e.execDept.dept + " 进行 " + (e.inspectName || "检查"),
|
5641
|
5641
|
value: e["id"],
|
5642
|
5642
|
checked: false,
|
|
5643
|
+ remark: e.remark,
|
5643
|
5644
|
});
|
5644
|
5645
|
});
|
5645
|
5646
|
this.linkCheckLis = arr;
|
|
@@ -6062,7 +6063,7 @@ export class FuwutaiComponent implements OnInit {
|
6062
|
6063
|
closeDelOrderModal() {
|
6063
|
6064
|
this.delOrderShow = false;
|
6064
|
6065
|
}
|
6065
|
|
-
|
|
6066
|
+
|
6066
|
6067
|
// 打开删除模态框
|
6067
|
6068
|
delReason:any;
|
6068
|
6069
|
isDelVisible:boolean = false;
|
|
@@ -6090,13 +6091,13 @@ export class FuwutaiComponent implements OnInit {
|
6090
|
6091
|
}
|
6091
|
6092
|
});
|
6092
|
6093
|
}
|
6093
|
|
-
|
|
6094
|
+
|
6094
|
6095
|
// 关闭模态框
|
6095
|
6096
|
delOrderModal() {
|
6096
|
6097
|
this.isDelVisible = false;
|
6097
|
6098
|
this.delReason = null;
|
6098
|
6099
|
}
|
6099
|
|
-
|
|
6100
|
+
|
6100
|
6101
|
// 新建工单
|
6101
|
6102
|
// 提交选择转入科室的模态框
|
6102
|
6103
|
submitFormHand(id) {
|
|
@@ -6130,7 +6131,7 @@ export class FuwutaiComponent implements OnInit {
|
6130
|
6131
|
this.dataStatus = result["status"];
|
6131
|
6132
|
if (result["status"] == 200) {
|
6132
|
6133
|
this.showPromptModal("建单", true, "");
|
6133
|
|
- }
|
|
6134
|
+ }
|
6134
|
6135
|
else if(result["status"] == 1000033){
|
6135
|
6136
|
if (this.goType === "&go&") {
|
6136
|
6137
|
this.applyDept = result["createDept"].id;
|
|
@@ -6148,21 +6149,21 @@ export class FuwutaiComponent implements OnInit {
|
6148
|
6149
|
}
|
6149
|
6150
|
});
|
6150
|
6151
|
}
|
6151
|
|
-
|
|
6152
|
+
|
6152
|
6153
|
limitTimeModal: boolean = false; //模态框
|
6153
|
6154
|
limitTimeInfo:string = '';
|
6154
|
6155
|
limitTimeItem: any = {};
|
6155
|
6156
|
hideLimitTimeModal() {
|
6156
|
6157
|
this.limitTimeModal = false;
|
6157
|
6158
|
}
|
6158
|
|
-
|
|
6159
|
+
|
6159
|
6160
|
// 建单判断时间-护士端建单通用方法
|
6160
|
6161
|
isShowConfirm:boolean = true;
|
6161
|
6162
|
isShowConfirmInfo:string = '';
|
6162
|
6163
|
newOrderTimeFun(order, fun1, fun2){
|
6163
|
6164
|
fun2.call(this)
|
6164
|
6165
|
}
|
6165
|
|
-
|
|
6166
|
+
|
6166
|
6167
|
repeatModal: boolean = false; //删除模态框
|
6167
|
6168
|
repeatMsg = "";
|
6168
|
6169
|
loadingRepeat = false;
|
|
@@ -6191,7 +6192,7 @@ export class FuwutaiComponent implements OnInit {
|
6191
|
6192
|
// this.showRepetitionModal("建单", true, "", "closeGo");
|
6192
|
6193
|
}
|
6193
|
6194
|
}
|
6194
|
|
-
|
|
6195
|
+
|
6195
|
6196
|
confirmType:boolean = false;
|
6196
|
6197
|
confirmRepeat() {
|
6197
|
6198
|
this.confirmType = true;
|
|
@@ -6213,7 +6214,7 @@ export class FuwutaiComponent implements OnInit {
|
6213
|
6214
|
}else{
|
6214
|
6215
|
this.confirmRepeatFun(data);
|
6215
|
6216
|
}
|
6216
|
|
-
|
|
6217
|
+
|
6217
|
6218
|
});
|
6218
|
6219
|
}
|
6219
|
6220
|
confirmRepeatFun(data){
|
|
@@ -6324,7 +6325,7 @@ export class FuwutaiComponent implements OnInit {
|
6324
|
6325
|
}
|
6325
|
6326
|
}
|
6326
|
6327
|
}
|
6327
|
|
-
|
|
6328
|
+
|
6328
|
6329
|
// 隐藏选择转入科室的模态框
|
6329
|
6330
|
deptFlagHand(e) {
|
6330
|
6331
|
this.deptFlag = false;
|
|
@@ -6475,7 +6476,7 @@ export class FuwutaiComponent implements OnInit {
|
6475
|
6476
|
}
|
6476
|
6477
|
});
|
6477
|
6478
|
}
|
6478
|
|
-
|
|
6479
|
+
|
6479
|
6480
|
// 确认
|
6480
|
6481
|
jdFlagId;
|
6481
|
6482
|
limitTimeLoading:boolean = false;
|
|
@@ -6487,7 +6488,7 @@ export class FuwutaiComponent implements OnInit {
|
6487
|
6488
|
}).messageId;
|
6488
|
6489
|
this.limitTimeItem.fun2.call(this);
|
6489
|
6490
|
}
|
6490
|
|
-
|
|
6491
|
+
|
6491
|
6492
|
closeModel(e) {
|
6492
|
6493
|
console.log(99999,e)
|
6493
|
6494
|
if (e === "close") {
|
|
@@ -6502,7 +6503,7 @@ export class FuwutaiComponent implements OnInit {
|
6502
|
6503
|
this.showNewOrder(1, "&go&");
|
6503
|
6504
|
}
|
6504
|
6505
|
}
|
6505
|
|
-
|
|
6506
|
+
|
6506
|
6507
|
// 重复建单提示框
|
6507
|
6508
|
showRepetitionModal(con, success, promptInfo?, back?){
|
6508
|
6509
|
this.promptModalShow = false;
|
|
@@ -6517,7 +6518,7 @@ export class FuwutaiComponent implements OnInit {
|
6517
|
6518
|
}
|
6518
|
6519
|
}, 100);
|
6519
|
6520
|
}
|
6520
|
|
-
|
|
6521
|
+
|
6521
|
6522
|
// 展示信息提示框(con:提示信息,success:操作是否成功,promptInfo:操作结果提示信息)(con:提示信息,success:操作是否成功,promptInfo:操作结果提示信息)
|
6522
|
6523
|
showPromptModal(con, success, promptInfo?, back?) {
|
6523
|
6524
|
this.promptModalShow = false;
|
|
@@ -6630,7 +6631,7 @@ export class FuwutaiComponent implements OnInit {
|
6630
|
6631
|
_y = h - fixedMenu.clientHeight;
|
6631
|
6632
|
}
|
6632
|
6633
|
fixedMenu.style.top = _y + "px";
|
6633
|
|
-
|
|
6634
|
+
|
6634
|
6635
|
var _x = ev.clientX - x > 0 ? ev.clientX - x : 0;
|
6635
|
6636
|
var w = window.innerWidth;
|
6636
|
6637
|
if (_x > w - fixedMenu.clientWidth) {
|
|
@@ -7250,8 +7251,10 @@ export class FuwutaiComponent implements OnInit {
|
7250
|
7251
|
let patient = this.patientList.find(v => v.patientCode === e);
|
7251
|
7252
|
if(patient){
|
7252
|
7253
|
this.workOrderRemarkZy = patient.remark || '';
|
|
7254
|
+ this.workOrderInspectScore = patient.tripType;
|
7253
|
7255
|
}else{
|
7254
|
7256
|
this.workOrderRemarkZy = '';
|
|
7257
|
+ this.workOrderInspectScore = undefined;
|
7255
|
7258
|
}
|
7256
|
7259
|
|
7257
|
7260
|
if(this.tabIndex !== undefined && this.currentTasktype && this.currentTasktype.associationType.value === 'inspect'){
|