|
@@ -2221,6 +2221,7 @@ export class HushijiandanComponent implements OnInit {
|
2221
|
2221
|
this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.confirmPostData.workOrder.patient.patientCode}).subscribe((resultData) => {
|
2222
|
2222
|
this.showPromptModal("创建", true, "");
|
2223
|
2223
|
this.goodsLis = [];
|
|
2224
|
+ this.workOrderInspectScore = undefined;
|
2224
|
2225
|
this.getOrderList();
|
2225
|
2226
|
this.getDeptTaskType();
|
2226
|
2227
|
this.getTodayNum();
|
|
@@ -2228,6 +2229,7 @@ export class HushijiandanComponent implements OnInit {
|
2228
|
2229
|
}else{
|
2229
|
2230
|
this.showPromptModal("创建", true, "");
|
2230
|
2231
|
this.goodsLis = [];
|
|
2232
|
+ this.workOrderInspectScore = undefined;
|
2231
|
2233
|
this.getOrderList();
|
2232
|
2234
|
this.getDeptTaskType();
|
2233
|
2235
|
this.getTodayNum();
|
|
@@ -2261,7 +2263,6 @@ export class HushijiandanComponent implements OnInit {
|
2261
|
2263
|
checkTypeLis: any = [];
|
2262
|
2264
|
// 患者信息一键建单关联检查
|
2263
|
2265
|
linkCheckLis: any = [];
|
2264
|
|
- goodsLis: any = []; //携带设备
|
2265
|
2266
|
isRemarks: boolean = false; //是否开启备注信息
|
2266
|
2267
|
allowUrgent: any = "0"; //加急
|
2267
|
2268
|
urgentReason: any = ""; //加急原因
|
|
@@ -2272,6 +2273,7 @@ export class HushijiandanComponent implements OnInit {
|
2272
|
2273
|
this.patientForm = this.fb.group({
|
2273
|
2274
|
checkedType: [null, [Validators.required]],
|
2274
|
2275
|
goods: [null],
|
|
2276
|
+ inspectScore: [null],
|
2275
|
2277
|
workOrderRemark2: [null],
|
2276
|
2278
|
linkCheck: [null, []],
|
2277
|
2279
|
targetOffice: [null, [this.targetOfficeValidator]],
|
|
@@ -2776,6 +2778,11 @@ export class HushijiandanComponent implements OnInit {
|
2776
|
2778
|
goods = goods.slice(0, goods.length - 1);
|
2777
|
2779
|
}
|
2778
|
2780
|
postData.workOrder["goods"] = goods;
|
|
2781
|
+ // 陪检方式
|
|
2782
|
+ if (that.patientForm.value.inspectScore) {
|
|
2783
|
+ postData.workOrder["inspectScore"] = { id: that.patientForm.value.inspectScore };
|
|
2784
|
+ }
|
|
2785
|
+
|
2779
|
2786
|
// 工单备注
|
2780
|
2787
|
postData.workOrder["workOrderRemark"] = that.workOrderRemark2 || '';
|
2781
|
2788
|
if (!yuyue && that.current_allowUrgent && this.allowUrgent == 1) {
|
|
@@ -2864,6 +2871,7 @@ export class HushijiandanComponent implements OnInit {
|
2864
|
2871
|
this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: postData.workOrder.patient.patientCode}).subscribe((resultData) => {
|
2865
|
2872
|
this.showPromptModal("创建", true, "");
|
2866
|
2873
|
this.goodsLis = [];
|
|
2874
|
+ this.workOrderInspectScore = undefined;
|
2867
|
2875
|
this.getOrderList();
|
2868
|
2876
|
this.getDeptTaskType();
|
2869
|
2877
|
this.getTodayNum();
|
|
@@ -2871,6 +2879,7 @@ export class HushijiandanComponent implements OnInit {
|
2871
|
2879
|
}else{
|
2872
|
2880
|
this.showPromptModal("创建", true, "");
|
2873
|
2881
|
this.goodsLis = [];
|
|
2882
|
+ this.workOrderInspectScore = undefined;
|
2874
|
2883
|
this.getOrderList();
|
2875
|
2884
|
this.getDeptTaskType();
|
2876
|
2885
|
this.getTodayNum();
|
|
@@ -2928,6 +2937,7 @@ export class HushijiandanComponent implements OnInit {
|
2928
|
2937
|
this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.accompanyPostData.workOrder.patient.patientCode}).subscribe((resultData) => {
|
2929
|
2938
|
this.showPromptModal("创建", true, "");
|
2930
|
2939
|
this.goodsLis = [];
|
|
2940
|
+ this.workOrderInspectScore = undefined;
|
2931
|
2941
|
this.getOrderList();
|
2932
|
2942
|
this.getDeptTaskType();
|
2933
|
2943
|
this.getTodayNum();
|
|
@@ -2935,6 +2945,7 @@ export class HushijiandanComponent implements OnInit {
|
2935
|
2945
|
}else{
|
2936
|
2946
|
this.showPromptModal("创建", true, "");
|
2937
|
2947
|
this.goodsLis = [];
|
|
2948
|
+ this.workOrderInspectScore = undefined;
|
2938
|
2949
|
this.getOrderList();
|
2939
|
2950
|
this.getDeptTaskType();
|
2940
|
2951
|
this.getTodayNum();
|
|
@@ -2980,6 +2991,7 @@ export class HushijiandanComponent implements OnInit {
|
2980
|
2991
|
this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.accompanyPostData.workOrder.patient.patientCode}).subscribe((resultData) => {
|
2981
|
2992
|
this.showPromptModal("创建", true, "");
|
2982
|
2993
|
this.goodsLis = [];
|
|
2994
|
+ this.workOrderInspectScore = undefined;
|
2983
|
2995
|
this.getOrderList();
|
2984
|
2996
|
this.getDeptTaskType();
|
2985
|
2997
|
this.getTodayNum();
|
|
@@ -2987,6 +2999,7 @@ export class HushijiandanComponent implements OnInit {
|
2987
|
2999
|
}else{
|
2988
|
3000
|
this.showPromptModal("创建", true, "");
|
2989
|
3001
|
this.goodsLis = [];
|
|
3002
|
+ this.workOrderInspectScore = undefined;
|
2990
|
3003
|
this.getOrderList();
|
2991
|
3004
|
this.getDeptTaskType();
|
2992
|
3005
|
this.getTodayNum();
|
|
@@ -3042,6 +3055,7 @@ export class HushijiandanComponent implements OnInit {
|
3042
|
3055
|
this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.accompanyPostData.workOrder.patient.patientCode}).subscribe((resultData) => {
|
3043
|
3056
|
this.showPromptModal("创建", true, "");
|
3044
|
3057
|
this.goodsLis = [];
|
|
3058
|
+ this.workOrderInspectScore = undefined;
|
3045
|
3059
|
this.getOrderList();
|
3046
|
3060
|
this.getDeptTaskType();
|
3047
|
3061
|
this.getTodayNum();
|
|
@@ -3049,6 +3063,7 @@ export class HushijiandanComponent implements OnInit {
|
3049
|
3063
|
}else{
|
3050
|
3064
|
this.showPromptModal("创建", true, "");
|
3051
|
3065
|
this.goodsLis = [];
|
|
3066
|
+ this.workOrderInspectScore = undefined;
|
3052
|
3067
|
this.getOrderList();
|
3053
|
3068
|
this.getDeptTaskType();
|
3054
|
3069
|
this.getTodayNum();
|
|
@@ -3094,6 +3109,7 @@ export class HushijiandanComponent implements OnInit {
|
3094
|
3109
|
this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.accompanyPostData.workOrder.patient.patientCode}).subscribe((resultData) => {
|
3095
|
3110
|
this.showPromptModal("创建", true, "");
|
3096
|
3111
|
this.goodsLis = [];
|
|
3112
|
+ this.workOrderInspectScore = undefined;
|
3097
|
3113
|
this.getOrderList();
|
3098
|
3114
|
this.getDeptTaskType();
|
3099
|
3115
|
this.getTodayNum();
|
|
@@ -3101,6 +3117,7 @@ export class HushijiandanComponent implements OnInit {
|
3101
|
3117
|
}else{
|
3102
|
3118
|
this.showPromptModal("创建", true, "");
|
3103
|
3119
|
this.goodsLis = [];
|
|
3120
|
+ this.workOrderInspectScore = undefined;
|
3104
|
3121
|
this.getOrderList();
|
3105
|
3122
|
this.getDeptTaskType();
|
3106
|
3123
|
this.getTodayNum();
|
|
@@ -3124,6 +3141,37 @@ export class HushijiandanComponent implements OnInit {
|
3124
|
3141
|
}
|
3125
|
3142
|
}
|
3126
|
3143
|
|
|
3144
|
+ //获取携带设备
|
|
3145
|
+ goodsLis: any = []; //携带设备
|
|
3146
|
+ getAllGoods() {
|
|
3147
|
+ this.mainService.getDictionary("list", "goods").subscribe((data) => {
|
|
3148
|
+ let goodsLis = data || [];
|
|
3149
|
+ goodsLis.forEach((e) => {
|
|
3150
|
+ this.goodsLis.push({
|
|
3151
|
+ label: e.name,
|
|
3152
|
+ value: e.id,
|
|
3153
|
+ checked: false,
|
|
3154
|
+ });
|
|
3155
|
+ });
|
|
3156
|
+ });
|
|
3157
|
+ }
|
|
3158
|
+
|
|
3159
|
+ //获取陪检方式
|
|
3160
|
+ workOrderInspectScoreList:any[] = [];
|
|
3161
|
+ workOrderInspectScore:any;
|
|
3162
|
+ getWorkOrderInspectScore() {
|
|
3163
|
+ let postData = { idx: 0, sum: 9999, workOrderInspectScore: { } };
|
|
3164
|
+ this.mainService
|
|
3165
|
+ .getFetchDataList("simple/data", "workOrderInspectScore", postData)
|
|
3166
|
+ .subscribe((result) => {
|
|
3167
|
+ if (result.status == 200) {
|
|
3168
|
+ this.workOrderInspectScoreList = result.list || [];
|
|
3169
|
+ } else {
|
|
3170
|
+ this.message.error("请求数据失败");
|
|
3171
|
+ }
|
|
3172
|
+ });
|
|
3173
|
+ }
|
|
3174
|
+
|
3127
|
3175
|
// 切换患者送检检查项目
|
3128
|
3176
|
checkedShowMsg: any = {}; //患者送检检查项目对应展示信息
|
3129
|
3177
|
current_allowUrgent = false; //当前任务类型是否允许加急
|
|
@@ -3218,17 +3266,12 @@ export class HushijiandanComponent implements OnInit {
|
3218
|
3266
|
that.isRemand = data.isRemand == 1 ? true : false;
|
3219
|
3267
|
}
|
3220
|
3268
|
that.goodsLis = [];
|
|
3269
|
+ that.workOrderInspectScore = undefined;
|
3221
|
3270
|
that.allowUrgent = "0"; //加急
|
3222
|
3271
|
that.urgentReason = ""; //加急原因
|
3223
|
|
- if (data.goods && data.goods.length) {
|
3224
|
|
- data.goods.forEach((e) => {
|
3225
|
|
- that.goodsLis.push({
|
3226
|
|
- label: e.name,
|
3227
|
|
- value: e["id"],
|
3228
|
|
- checked: false,
|
3229
|
|
- });
|
3230
|
|
- });
|
3231
|
|
- }
|
|
3272
|
+
|
|
3273
|
+ that.getAllGoods();
|
|
3274
|
+ that.getWorkOrderInspectScore();
|
3232
|
3275
|
// 工单备注配置 start
|
3233
|
3276
|
that.isRemarks = data.remarksSwitch == 1;
|
3234
|
3277
|
if (data.remarksSwitch == 1) {
|
|
@@ -3949,6 +3992,7 @@ export class HushijiandanComponent implements OnInit {
|
3949
|
3992
|
if (data.status == 200) {
|
3950
|
3993
|
this.showPromptModal("创建", true, "");
|
3951
|
3994
|
this.goodsLis = [];
|
|
3995
|
+ this.workOrderInspectScore = undefined;
|
3952
|
3996
|
this.getOrderList();
|
3953
|
3997
|
this.getDeptTaskType();
|
3954
|
3998
|
this.getTodayNum();
|
|
@@ -3963,6 +4007,7 @@ export class HushijiandanComponent implements OnInit {
|
3963
|
4007
|
if (data.status == 200) {
|
3964
|
4008
|
this.showPromptModal("创建", true, "");
|
3965
|
4009
|
this.goodsLis = [];
|
|
4010
|
+ this.workOrderInspectScore = undefined;
|
3966
|
4011
|
this.getOrderList();
|
3967
|
4012
|
this.getDeptTaskType();
|
3968
|
4013
|
this.getTodayNum();
|
|
@@ -3977,6 +4022,7 @@ export class HushijiandanComponent implements OnInit {
|
3977
|
4022
|
if (data.status == 200) {
|
3978
|
4023
|
this.showPromptModal("创建", true, "");
|
3979
|
4024
|
this.goodsLis = [];
|
|
4025
|
+ this.workOrderInspectScore = undefined;
|
3980
|
4026
|
this.getOrderList();
|
3981
|
4027
|
this.getDeptTaskType();
|
3982
|
4028
|
this.getTodayNum();
|
|
@@ -3991,6 +4037,7 @@ export class HushijiandanComponent implements OnInit {
|
3991
|
4037
|
if (data.status == 200) {
|
3992
|
4038
|
this.showPromptModal("创建", true, "");
|
3993
|
4039
|
this.goodsLis = [];
|
|
4040
|
+ this.workOrderInspectScore = undefined;
|
3994
|
4041
|
this.getOrderList();
|
3995
|
4042
|
this.getDeptTaskType();
|
3996
|
4043
|
this.getTodayNum();
|
|
@@ -4005,6 +4052,7 @@ export class HushijiandanComponent implements OnInit {
|
4005
|
4052
|
if (data.status == 200) {
|
4006
|
4053
|
this.showPromptModal("创建", true, "");
|
4007
|
4054
|
this.goodsLis = [];
|
|
4055
|
+ this.workOrderInspectScore = undefined;
|
4008
|
4056
|
this.getOrderList();
|
4009
|
4057
|
this.getDeptTaskType();
|
4010
|
4058
|
this.getTodayNum();
|
|
@@ -4019,6 +4067,7 @@ export class HushijiandanComponent implements OnInit {
|
4019
|
4067
|
if (data.status == 200) {
|
4020
|
4068
|
this.showPromptModal("创建", true, "");
|
4021
|
4069
|
this.goodsLis = [];
|
|
4070
|
+ this.workOrderInspectScore = undefined;
|
4022
|
4071
|
this.getOrderList();
|
4023
|
4072
|
this.getDeptTaskType();
|
4024
|
4073
|
this.getTodayNum();
|