|
@@ -1443,15 +1443,7 @@ export class HushijiandanComponent implements OnInit {
|
1443
|
1443
|
}
|
1444
|
1444
|
this.btnLoading3 = true;
|
1445
|
1445
|
this.confirmPostData.workOrder.isAccompany = 0; //是否需要医护陪同检查
|
1446
|
|
- if(this.currentDept.typeValue == 'recovery'){
|
1447
|
|
- this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.confirmPostData.workOrder.patient.patientCode}).subscribe((data) => {
|
1448
|
|
- confirmFun();
|
1449
|
|
- });
|
1450
|
|
- }else{
|
1451
|
|
- confirmFun();
|
1452
|
|
- }
|
1453
|
|
- function confirmFun(){
|
1454
|
|
- this.mainService
|
|
1446
|
+ this.mainService
|
1455
|
1447
|
.postCustom(
|
1456
|
1448
|
"api",
|
1457
|
1449
|
this.confirmYuyue ? "appointmentOrder" : "startOrder",
|
|
@@ -1461,11 +1453,21 @@ export class HushijiandanComponent implements OnInit {
|
1461
|
1453
|
this.btnLoading3 = false;
|
1462
|
1454
|
this.cancel();
|
1463
|
1455
|
if (data.status == 200) {
|
1464
|
|
- this.showPromptModal("创建", true, "");
|
1465
|
|
- this.goodsLis = [];
|
1466
|
|
- this.getOrderList();
|
1467
|
|
- this.getDeptTaskType();
|
1468
|
|
- this.getTodayNum();
|
|
1456
|
+ if(this.currentDept.typeValue == 'recovery'){
|
|
1457
|
+ this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.confirmPostData.workOrder.patient.patientCode}).subscribe((resultData) => {
|
|
1458
|
+ this.showPromptModal("创建", true, "");
|
|
1459
|
+ this.goodsLis = [];
|
|
1460
|
+ this.getOrderList();
|
|
1461
|
+ this.getDeptTaskType();
|
|
1462
|
+ this.getTodayNum();
|
|
1463
|
+ });
|
|
1464
|
+ }else{
|
|
1465
|
+ this.showPromptModal("创建", true, "");
|
|
1466
|
+ this.goodsLis = [];
|
|
1467
|
+ this.getOrderList();
|
|
1468
|
+ this.getDeptTaskType();
|
|
1469
|
+ this.getTodayNum();
|
|
1470
|
+ }
|
1469
|
1471
|
} else if (data.status == 100042) {
|
1470
|
1472
|
this.showPromptModal("创建", false, data.msg);
|
1471
|
1473
|
this.getPatient(this.tabSearchCont);
|
|
@@ -1481,7 +1483,6 @@ export class HushijiandanComponent implements OnInit {
|
1481
|
1483
|
this.showPromptModal("创建", false, data.msg);
|
1482
|
1484
|
}
|
1483
|
1485
|
});
|
1484
|
|
- }
|
1485
|
1486
|
}
|
1486
|
1487
|
cancel() {
|
1487
|
1488
|
this.confirmSub = false;
|
|
@@ -1980,38 +1981,39 @@ export class HushijiandanComponent implements OnInit {
|
1980
|
1981
|
}
|
1981
|
1982
|
}
|
1982
|
1983
|
postData.workOrder.isAccompany = 0; //是否需要医护陪同检查
|
1983
|
|
- if(this.currentDept.typeValue == 'recovery'){
|
1984
|
|
- this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: postData.workOrder.patient.patientCode}).subscribe((data) => {
|
1985
|
|
- this.confirmPatientFun(yuyue, postData);
|
1986
|
|
- });
|
1987
|
|
- }else{
|
1988
|
|
- this.confirmPatientFun(yuyue, postData);
|
1989
|
|
- }
|
|
1984
|
+ this.mainService
|
|
1985
|
+ .postCustom("api", yuyue ? "appointmentOrder" : "startOrder", postData)
|
|
1986
|
+ .subscribe((data) => {
|
|
1987
|
+ this.hidePatientOrder();
|
|
1988
|
+ if (data.status == 200) {
|
|
1989
|
+ if(this.currentDept.typeValue == 'recovery'){
|
|
1990
|
+ this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: postData.workOrder.patient.patientCode}).subscribe((resultData) => {
|
|
1991
|
+ this.showPromptModal("创建", true, "");
|
|
1992
|
+ this.goodsLis = [];
|
|
1993
|
+ this.getOrderList();
|
|
1994
|
+ this.getDeptTaskType();
|
|
1995
|
+ this.getTodayNum();
|
|
1996
|
+ });
|
|
1997
|
+ }else{
|
|
1998
|
+ this.showPromptModal("创建", true, "");
|
|
1999
|
+ this.goodsLis = [];
|
|
2000
|
+ this.getOrderList();
|
|
2001
|
+ this.getDeptTaskType();
|
|
2002
|
+ this.getTodayNum();
|
|
2003
|
+ }
|
|
2004
|
+ } else if (data.status == 100042) {
|
|
2005
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2006
|
+ this.getPatient(this.tabSearchCont);
|
|
2007
|
+ } else if (data.status == 1000033) {
|
|
2008
|
+ //重复建单那策略
|
|
2009
|
+ this.repeatMsg = data.msg;
|
|
2010
|
+ this.showDelModal(postData, "transport", yuyue);
|
|
2011
|
+ } else {
|
|
2012
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2013
|
+ }
|
|
2014
|
+ });
|
1990
|
2015
|
}
|
1991
|
2016
|
}
|
1992
|
|
- confirmPatientFun(yuyue, postData){
|
1993
|
|
- this.mainService
|
1994
|
|
- .postCustom("api", yuyue ? "appointmentOrder" : "startOrder", postData)
|
1995
|
|
- .subscribe((data) => {
|
1996
|
|
- this.hidePatientOrder();
|
1997
|
|
- if (data.status == 200) {
|
1998
|
|
- this.showPromptModal("创建", true, "");
|
1999
|
|
- this.goodsLis = [];
|
2000
|
|
- this.getOrderList();
|
2001
|
|
- this.getDeptTaskType();
|
2002
|
|
- this.getTodayNum();
|
2003
|
|
- } else if (data.status == 100042) {
|
2004
|
|
- this.showPromptModal("创建", false, data.msg);
|
2005
|
|
- this.getPatient(this.tabSearchCont);
|
2006
|
|
- } else if (data.status == 1000033) {
|
2007
|
|
- //重复建单那策略
|
2008
|
|
- this.repeatMsg = data.msg;
|
2009
|
|
- this.showDelModal(postData, "transport", yuyue);
|
2010
|
|
- } else {
|
2011
|
|
- this.showPromptModal("创建", false, data.msg);
|
2012
|
|
- }
|
2013
|
|
- });
|
2014
|
|
- }
|
2015
|
2017
|
// 是否需要护士医生陪同模态框
|
2016
|
2018
|
accompanyModal: boolean = false;
|
2017
|
2019
|
accompanyLoading: boolean = false;
|
|
@@ -2030,91 +2032,94 @@ export class HushijiandanComponent implements OnInit {
|
2030
|
2032
|
this.accompanyLoading = true;
|
2031
|
2033
|
if (this.accompanyType == "patient") {
|
2032
|
2034
|
//患者列表直接建单
|
2033
|
|
- if(this.currentDept.typeValue == 'recovery'){
|
2034
|
|
- this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.accompanyPostData.workOrder.patient.patientCode}).subscribe((data) => {
|
2035
|
|
- this.confirmAccompanyFun();
|
2036
|
|
- });
|
2037
|
|
- }else{
|
2038
|
|
- this.confirmAccompanyFun();
|
2039
|
|
- }
|
|
2035
|
+ this.mainService
|
|
2036
|
+ .postCustom(
|
|
2037
|
+ "api",
|
|
2038
|
+ this.accompanyYuyue ? "appointmentOrder" : "startOrder",
|
|
2039
|
+ this.accompanyPostData
|
|
2040
|
+ )
|
|
2041
|
+ .subscribe((data) => {
|
|
2042
|
+ this.hidePatientOrder();
|
|
2043
|
+ this.accompanyModal = false;
|
|
2044
|
+ this.accompanyLoading = false;
|
|
2045
|
+ if (data.status == 200) {
|
|
2046
|
+ if(this.currentDept.typeValue == 'recovery'){
|
|
2047
|
+ this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.accompanyPostData.workOrder.patient.patientCode}).subscribe((resultData) => {
|
|
2048
|
+ this.showPromptModal("创建", true, "");
|
|
2049
|
+ this.goodsLis = [];
|
|
2050
|
+ this.getOrderList();
|
|
2051
|
+ this.getDeptTaskType();
|
|
2052
|
+ this.getTodayNum();
|
|
2053
|
+ });
|
|
2054
|
+ }else{
|
|
2055
|
+ this.showPromptModal("创建", true, "");
|
|
2056
|
+ this.goodsLis = [];
|
|
2057
|
+ this.getOrderList();
|
|
2058
|
+ this.getDeptTaskType();
|
|
2059
|
+ this.getTodayNum();
|
|
2060
|
+ }
|
|
2061
|
+ } else if (data.status == 100042) {
|
|
2062
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2063
|
+ this.getPatient(this.tabSearchCont);
|
|
2064
|
+ } else if (data.status == 1000033) {
|
|
2065
|
+ //重复建单那策略
|
|
2066
|
+ this.repeatMsg = data.msg;
|
|
2067
|
+ this.showDelModal(
|
|
2068
|
+ this.accompanyPostData,
|
|
2069
|
+ "accompany1",
|
|
2070
|
+ this.accompanyYuyue
|
|
2071
|
+ );
|
|
2072
|
+ } else {
|
|
2073
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2074
|
+ }
|
|
2075
|
+ });
|
2040
|
2076
|
} else if (this.accompanyType == "patient-yy") {
|
2041
|
2077
|
//患者列表预约建单
|
2042
|
|
- if(this.currentDept.typeValue == 'recovery'){
|
2043
|
|
- this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.accompanyPostData.workOrder.patient.patientCode}).subscribe((data) => {
|
2044
|
|
- this.confirmAccompanyYYFun();
|
2045
|
|
- });
|
2046
|
|
- }else{
|
2047
|
|
- this.confirmAccompanyYYFun();
|
2048
|
|
- }
|
|
2078
|
+ this.mainService
|
|
2079
|
+ .postCustom(
|
|
2080
|
+ "api",
|
|
2081
|
+ this.accompanyYuyue ? "appointmentOrder" : "startOrder",
|
|
2082
|
+ this.accompanyPostData
|
|
2083
|
+ )
|
|
2084
|
+ .subscribe((data) => {
|
|
2085
|
+ this.btnLoading3 = false;
|
|
2086
|
+ this.accompanyModal = false;
|
|
2087
|
+ this.accompanyLoading = false;
|
|
2088
|
+ this.cancel();
|
|
2089
|
+ if (data.status == 200) {
|
|
2090
|
+ if(this.currentDept.typeValue == 'recovery'){
|
|
2091
|
+ this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.accompanyPostData.workOrder.patient.patientCode}).subscribe((resultData) => {
|
|
2092
|
+ this.showPromptModal("创建", true, "");
|
|
2093
|
+ this.goodsLis = [];
|
|
2094
|
+ this.getOrderList();
|
|
2095
|
+ this.getDeptTaskType();
|
|
2096
|
+ this.getTodayNum();
|
|
2097
|
+ });
|
|
2098
|
+ }else{
|
|
2099
|
+ this.showPromptModal("创建", true, "");
|
|
2100
|
+ this.goodsLis = [];
|
|
2101
|
+ this.getOrderList();
|
|
2102
|
+ this.getDeptTaskType();
|
|
2103
|
+ this.getTodayNum();
|
|
2104
|
+ }
|
|
2105
|
+ } else if (data.status == 100042) {
|
|
2106
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2107
|
+ this.getPatient(this.tabSearchCont);
|
|
2108
|
+ } else if (data.status == 1000033) {
|
|
2109
|
+ //重复建单那策略
|
|
2110
|
+ this.repeatMsg = data.msg;
|
|
2111
|
+ this.showDelModal(
|
|
2112
|
+ this.accompanyPostData,
|
|
2113
|
+ "accompany2",
|
|
2114
|
+ this.accompanyYuyue
|
|
2115
|
+ );
|
|
2116
|
+ } else {
|
|
2117
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2118
|
+ }
|
|
2119
|
+ });
|
2049
|
2120
|
}
|
2050
|
2121
|
}
|
2051
|
|
- confirmAccompanyFun(){
|
2052
|
|
- this.mainService
|
2053
|
|
- .postCustom(
|
2054
|
|
- "api",
|
2055
|
|
- this.accompanyYuyue ? "appointmentOrder" : "startOrder",
|
2056
|
|
- this.accompanyPostData
|
2057
|
|
- )
|
2058
|
|
- .subscribe((data) => {
|
2059
|
|
- this.hidePatientOrder();
|
2060
|
|
- this.accompanyModal = false;
|
2061
|
|
- this.accompanyLoading = false;
|
2062
|
|
- if (data.status == 200) {
|
2063
|
|
- this.showPromptModal("创建", true, "");
|
2064
|
|
- this.goodsLis = [];
|
2065
|
|
- this.getOrderList();
|
2066
|
|
- this.getDeptTaskType();
|
2067
|
|
- this.getTodayNum();
|
2068
|
|
- } else if (data.status == 100042) {
|
2069
|
|
- this.showPromptModal("创建", false, data.msg);
|
2070
|
|
- this.getPatient(this.tabSearchCont);
|
2071
|
|
- } else if (data.status == 1000033) {
|
2072
|
|
- //重复建单那策略
|
2073
|
|
- this.repeatMsg = data.msg;
|
2074
|
|
- this.showDelModal(
|
2075
|
|
- this.accompanyPostData,
|
2076
|
|
- "accompany1",
|
2077
|
|
- this.accompanyYuyue
|
2078
|
|
- );
|
2079
|
|
- } else {
|
2080
|
|
- this.showPromptModal("创建", false, data.msg);
|
2081
|
|
- }
|
2082
|
|
- });
|
2083
|
|
- }
|
2084
|
|
- confirmAccompanyYYFun(){
|
2085
|
|
- this.mainService
|
2086
|
|
- .postCustom(
|
2087
|
|
- "api",
|
2088
|
|
- this.accompanyYuyue ? "appointmentOrder" : "startOrder",
|
2089
|
|
- this.accompanyPostData
|
2090
|
|
- )
|
2091
|
|
- .subscribe((data) => {
|
2092
|
|
- this.btnLoading3 = false;
|
2093
|
|
- this.accompanyModal = false;
|
2094
|
|
- this.accompanyLoading = false;
|
2095
|
|
- this.cancel();
|
2096
|
|
- if (data.status == 200) {
|
2097
|
|
- this.showPromptModal("创建", true, "");
|
2098
|
|
- this.goodsLis = [];
|
2099
|
|
- this.getOrderList();
|
2100
|
|
- this.getDeptTaskType();
|
2101
|
|
- this.getTodayNum();
|
2102
|
|
- } else if (data.status == 100042) {
|
2103
|
|
- this.showPromptModal("创建", false, data.msg);
|
2104
|
|
- this.getPatient(this.tabSearchCont);
|
2105
|
|
- } else if (data.status == 1000033) {
|
2106
|
|
- //重复建单那策略
|
2107
|
|
- this.repeatMsg = data.msg;
|
2108
|
|
- this.showDelModal(
|
2109
|
|
- this.accompanyPostData,
|
2110
|
|
- "accompany2",
|
2111
|
|
- this.accompanyYuyue
|
2112
|
|
- );
|
2113
|
|
- } else {
|
2114
|
|
- this.showPromptModal("创建", false, data.msg);
|
2115
|
|
- }
|
2116
|
|
- });
|
2117
|
|
- }
|
|
2122
|
+
|
2118
|
2123
|
hideAccompanyModal(e) {
|
2119
|
2124
|
console.log(e);
|
2120
|
2125
|
if (e === "x") {
|
|
@@ -2126,91 +2131,94 @@ export class HushijiandanComponent implements OnInit {
|
2126
|
2131
|
this.cancenlLoading = true;
|
2127
|
2132
|
if (this.accompanyType == "patient") {
|
2128
|
2133
|
//患者列表直接建单
|
2129
|
|
- if(this.currentDept.typeValue == 'recovery'){
|
2130
|
|
- this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.accompanyPostData.workOrder.patient.patientCode}).subscribe((data) => {
|
2131
|
|
- this.hideAccompanyModalFun();
|
2132
|
|
- });
|
2133
|
|
- }else{
|
2134
|
|
- this.hideAccompanyModalFun();
|
2135
|
|
- }
|
|
2134
|
+ this.mainService
|
|
2135
|
+ .postCustom(
|
|
2136
|
+ "api",
|
|
2137
|
+ this.accompanyYuyue ? "appointmentOrder" : "startOrder",
|
|
2138
|
+ this.accompanyPostData
|
|
2139
|
+ )
|
|
2140
|
+ .subscribe((data) => {
|
|
2141
|
+ this.hidePatientOrder();
|
|
2142
|
+ this.accompanyModal = false;
|
|
2143
|
+ this.cancenlLoading = false;
|
|
2144
|
+ if (data.status == 200) {
|
|
2145
|
+ if(this.currentDept.typeValue == 'recovery'){
|
|
2146
|
+ this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.accompanyPostData.workOrder.patient.patientCode}).subscribe((resultData) => {
|
|
2147
|
+ this.showPromptModal("创建", true, "");
|
|
2148
|
+ this.goodsLis = [];
|
|
2149
|
+ this.getOrderList();
|
|
2150
|
+ this.getDeptTaskType();
|
|
2151
|
+ this.getTodayNum();
|
|
2152
|
+ });
|
|
2153
|
+ }else{
|
|
2154
|
+ this.showPromptModal("创建", true, "");
|
|
2155
|
+ this.goodsLis = [];
|
|
2156
|
+ this.getOrderList();
|
|
2157
|
+ this.getDeptTaskType();
|
|
2158
|
+ this.getTodayNum();
|
|
2159
|
+ }
|
|
2160
|
+ } else if (data.status == 100042) {
|
|
2161
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2162
|
+ this.getPatient(this.tabSearchCont);
|
|
2163
|
+ } else if (data.status == 1000033) {
|
|
2164
|
+ //重复建单那策略
|
|
2165
|
+ this.repeatMsg = data.msg;
|
|
2166
|
+ this.showDelModal(
|
|
2167
|
+ this.accompanyPostData,
|
|
2168
|
+ "accompany3",
|
|
2169
|
+ this.accompanyYuyue
|
|
2170
|
+ );
|
|
2171
|
+ } else {
|
|
2172
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2173
|
+ }
|
|
2174
|
+ });
|
2136
|
2175
|
} else if (this.accompanyType == "patient-yy") {
|
2137
|
2176
|
//患者列表预约建单
|
2138
|
|
- if(this.currentDept.typeValue == 'recovery'){
|
2139
|
|
- this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.accompanyPostData.workOrder.patient.patientCode}).subscribe((data) => {
|
2140
|
|
- this.hideAccompanyModalYYFun();
|
2141
|
|
- });
|
2142
|
|
- }else{
|
2143
|
|
- this.hideAccompanyModalYYFun();
|
2144
|
|
- }
|
|
2177
|
+ this.mainService
|
|
2178
|
+ .postCustom(
|
|
2179
|
+ "api",
|
|
2180
|
+ this.accompanyYuyue ? "appointmentOrder" : "startOrder",
|
|
2181
|
+ this.accompanyPostData
|
|
2182
|
+ )
|
|
2183
|
+ .subscribe((data) => {
|
|
2184
|
+ this.btnLoading3 = false;
|
|
2185
|
+ this.accompanyModal = false;
|
|
2186
|
+ this.cancenlLoading = false;
|
|
2187
|
+ this.cancel();
|
|
2188
|
+ if (data.status == 200) {
|
|
2189
|
+ if(this.currentDept.typeValue == 'recovery'){
|
|
2190
|
+ this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.accompanyPostData.workOrder.patient.patientCode}).subscribe((resultData) => {
|
|
2191
|
+ this.showPromptModal("创建", true, "");
|
|
2192
|
+ this.goodsLis = [];
|
|
2193
|
+ this.getOrderList();
|
|
2194
|
+ this.getDeptTaskType();
|
|
2195
|
+ this.getTodayNum();
|
|
2196
|
+ });
|
|
2197
|
+ }else{
|
|
2198
|
+ this.showPromptModal("创建", true, "");
|
|
2199
|
+ this.goodsLis = [];
|
|
2200
|
+ this.getOrderList();
|
|
2201
|
+ this.getDeptTaskType();
|
|
2202
|
+ this.getTodayNum();
|
|
2203
|
+ }
|
|
2204
|
+ } else if (data.status == 100042) {
|
|
2205
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2206
|
+ this.getPatient(this.tabSearchCont);
|
|
2207
|
+ } else if (data.status == 1000033) {
|
|
2208
|
+ //重复建单那策略
|
|
2209
|
+ this.repeatMsg = data.msg;
|
|
2210
|
+ this.showDelModal(
|
|
2211
|
+ this.accompanyPostData,
|
|
2212
|
+ "accompany4",
|
|
2213
|
+ this.accompanyYuyue
|
|
2214
|
+ );
|
|
2215
|
+ } else {
|
|
2216
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2217
|
+ }
|
|
2218
|
+ });
|
2145
|
2219
|
}
|
2146
|
2220
|
}
|
2147
|
|
- hideAccompanyModalFun(){
|
2148
|
|
- this.mainService
|
2149
|
|
- .postCustom(
|
2150
|
|
- "api",
|
2151
|
|
- this.accompanyYuyue ? "appointmentOrder" : "startOrder",
|
2152
|
|
- this.accompanyPostData
|
2153
|
|
- )
|
2154
|
|
- .subscribe((data) => {
|
2155
|
|
- this.hidePatientOrder();
|
2156
|
|
- this.accompanyModal = false;
|
2157
|
|
- this.cancenlLoading = false;
|
2158
|
|
- if (data.status == 200) {
|
2159
|
|
- this.showPromptModal("创建", true, "");
|
2160
|
|
- this.goodsLis = [];
|
2161
|
|
- this.getOrderList();
|
2162
|
|
- this.getDeptTaskType();
|
2163
|
|
- this.getTodayNum();
|
2164
|
|
- } else if (data.status == 100042) {
|
2165
|
|
- this.showPromptModal("创建", false, data.msg);
|
2166
|
|
- this.getPatient(this.tabSearchCont);
|
2167
|
|
- } else if (data.status == 1000033) {
|
2168
|
|
- //重复建单那策略
|
2169
|
|
- this.repeatMsg = data.msg;
|
2170
|
|
- this.showDelModal(
|
2171
|
|
- this.accompanyPostData,
|
2172
|
|
- "accompany3",
|
2173
|
|
- this.accompanyYuyue
|
2174
|
|
- );
|
2175
|
|
- } else {
|
2176
|
|
- this.showPromptModal("创建", false, data.msg);
|
2177
|
|
- }
|
2178
|
|
- });
|
2179
|
|
- }
|
2180
|
|
- hideAccompanyModalYYFun(){
|
2181
|
|
- this.mainService
|
2182
|
|
- .postCustom(
|
2183
|
|
- "api",
|
2184
|
|
- this.accompanyYuyue ? "appointmentOrder" : "startOrder",
|
2185
|
|
- this.accompanyPostData
|
2186
|
|
- )
|
2187
|
|
- .subscribe((data) => {
|
2188
|
|
- this.btnLoading3 = false;
|
2189
|
|
- this.accompanyModal = false;
|
2190
|
|
- this.cancenlLoading = false;
|
2191
|
|
- this.cancel();
|
2192
|
|
- if (data.status == 200) {
|
2193
|
|
- this.showPromptModal("创建", true, "");
|
2194
|
|
- this.goodsLis = [];
|
2195
|
|
- this.getOrderList();
|
2196
|
|
- this.getDeptTaskType();
|
2197
|
|
- this.getTodayNum();
|
2198
|
|
- } else if (data.status == 100042) {
|
2199
|
|
- this.showPromptModal("创建", false, data.msg);
|
2200
|
|
- this.getPatient(this.tabSearchCont);
|
2201
|
|
- } else if (data.status == 1000033) {
|
2202
|
|
- //重复建单那策略
|
2203
|
|
- this.repeatMsg = data.msg;
|
2204
|
|
- this.showDelModal(
|
2205
|
|
- this.accompanyPostData,
|
2206
|
|
- "accompany4",
|
2207
|
|
- this.accompanyYuyue
|
2208
|
|
- );
|
2209
|
|
- } else {
|
2210
|
|
- this.showPromptModal("创建", false, data.msg);
|
2211
|
|
- }
|
2212
|
|
- });
|
2213
|
|
- }
|
|
2221
|
+
|
2214
|
2222
|
// 切换患者送检检查项目
|
2215
|
2223
|
checkedShowMsg: any = {}; //患者送检检查项目对应展示信息
|
2216
|
2224
|
current_allowUrgent = false; //当前任务类型是否允许加急
|
|
@@ -2811,15 +2819,7 @@ export class HushijiandanComponent implements OnInit {
|
2811
|
2819
|
confirmRepeat() {
|
2812
|
2820
|
this.loadingRepeat = true;
|
2813
|
2821
|
this.repeatPostData.tipsCreateOder = 1;
|
2814
|
|
- if(this.currentDept.typeValue == 'recovery'){
|
2815
|
|
- this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.repeatPostData.workOrder.patient.patientCode}).subscribe((data) => {
|
2816
|
|
- confirmRepeatFun();
|
2817
|
|
- });
|
2818
|
|
- }else{
|
2819
|
|
- confirmRepeatFun();
|
2820
|
|
- }
|
2821
|
|
- function confirmRepeatFun(){
|
2822
|
|
- this.mainService
|
|
2822
|
+ this.mainService
|
2823
|
2823
|
.postCustom(
|
2824
|
2824
|
"api",
|
2825
|
2825
|
this.isYuyue ? "appointmentOrder" : "startOrder",
|
|
@@ -2828,122 +2828,130 @@ export class HushijiandanComponent implements OnInit {
|
2828
|
2828
|
.subscribe((data) => {
|
2829
|
2829
|
this.loadingRepeat = false;
|
2830
|
2830
|
this.repeatModal = false;
|
2831
|
|
- if (this.sourceType === "specimen") {
|
2832
|
|
- // 标本建单
|
2833
|
|
- if (data.status == 200 && this.buildType == "other") {
|
2834
|
|
- this.showPromptModal("创建", true, "", "other");
|
2835
|
|
- this.getTodayNum();
|
2836
|
|
- } else if (data.status == 200 && this.buildType == "bb") {
|
2837
|
|
- this.showPromptModal("创建", true, "", "bb");
|
2838
|
|
- this.getTodayNum();
|
2839
|
|
- } else if (this.buildType == "bb" && data.status == 100043) {
|
2840
|
|
- this.showPromptModal("创建", true, data.msg);
|
2841
|
|
- this.getOrderList();
|
2842
|
|
- this.getSpecimenWorkOrderMsg();
|
2843
|
|
- this.getTodayNum();
|
2844
|
|
- } else {
|
2845
|
|
- this.showPromptModal("创建", false, data.msg);
|
2846
|
|
- }
|
2847
|
|
- } else if (this.sourceType === "other") {
|
2848
|
|
- // 其他建单
|
2849
|
|
- if (data.status == 200 && this.buildType == "other") {
|
2850
|
|
- this.showPromptModal("创建", true, "", "other");
|
2851
|
|
- this.getTodayNum();
|
2852
|
|
- } else if (data.status == 200 && this.buildType == "bb") {
|
2853
|
|
- this.showPromptModal("创建", true, "", "bb");
|
2854
|
|
- this.getTodayNum();
|
2855
|
|
- } else if (this.buildType == "bb" && data.status == 100043) {
|
2856
|
|
- this.showPromptModal("创建", true, data.msg);
|
2857
|
|
- this.getTodayNum();
|
2858
|
|
- } else {
|
2859
|
|
- this.showPromptModal("创建", false, data.msg);
|
2860
|
|
- }
|
2861
|
|
- } else if (this.sourceType === "transport") {
|
2862
|
|
- // 转运
|
2863
|
|
- if (data.status == 200) {
|
2864
|
|
- this.showPromptModal("创建", true, "");
|
2865
|
|
- this.goodsLis = [];
|
2866
|
|
- this.getOrderList();
|
2867
|
|
- this.getDeptTaskType();
|
2868
|
|
- this.getTodayNum();
|
2869
|
|
- } else if (data.status == 100042) {
|
2870
|
|
- this.showPromptModal("创建", false, data.msg);
|
2871
|
|
- this.getPatient(this.tabSearchCont);
|
2872
|
|
- } else {
|
2873
|
|
- this.showPromptModal("创建", false, data.msg);
|
2874
|
|
- }
|
2875
|
|
- } else if (this.sourceType === "accompany1") {
|
2876
|
|
- // 陪检
|
2877
|
|
- if (data.status == 200) {
|
2878
|
|
- this.showPromptModal("创建", true, "");
|
2879
|
|
- this.goodsLis = [];
|
2880
|
|
- this.getOrderList();
|
2881
|
|
- this.getDeptTaskType();
|
2882
|
|
- this.getTodayNum();
|
2883
|
|
- } else if (data.status == 100042) {
|
2884
|
|
- this.showPromptModal("创建", false, data.msg);
|
2885
|
|
- this.getPatient(this.tabSearchCont);
|
2886
|
|
- } else {
|
2887
|
|
- this.showPromptModal("创建", false, data.msg);
|
2888
|
|
- }
|
2889
|
|
- } else if (this.sourceType === "accompany2") {
|
2890
|
|
- // 陪检
|
2891
|
|
- if (data.status == 200) {
|
2892
|
|
- this.showPromptModal("创建", true, "");
|
2893
|
|
- this.goodsLis = [];
|
2894
|
|
- this.getOrderList();
|
2895
|
|
- this.getDeptTaskType();
|
2896
|
|
- this.getTodayNum();
|
2897
|
|
- } else if (data.status == 100042) {
|
2898
|
|
- this.showPromptModal("创建", false, data.msg);
|
2899
|
|
- this.getPatient(this.tabSearchCont);
|
2900
|
|
- } else {
|
2901
|
|
- this.showPromptModal("创建", false, data.msg);
|
2902
|
|
- }
|
2903
|
|
- } else if (this.sourceType === "accompany3") {
|
2904
|
|
- // 陪检
|
2905
|
|
- if (data.status == 200) {
|
2906
|
|
- this.showPromptModal("创建", true, "");
|
2907
|
|
- this.goodsLis = [];
|
2908
|
|
- this.getOrderList();
|
2909
|
|
- this.getDeptTaskType();
|
2910
|
|
- this.getTodayNum();
|
2911
|
|
- } else if (data.status == 100042) {
|
2912
|
|
- this.showPromptModal("创建", false, data.msg);
|
2913
|
|
- this.getPatient(this.tabSearchCont);
|
2914
|
|
- } else {
|
2915
|
|
- this.showPromptModal("创建", false, data.msg);
|
2916
|
|
- }
|
2917
|
|
- } else if (this.sourceType === "accompany4") {
|
2918
|
|
- // 陪检
|
2919
|
|
- if (data.status == 200) {
|
2920
|
|
- this.showPromptModal("创建", true, "");
|
2921
|
|
- this.goodsLis = [];
|
2922
|
|
- this.getOrderList();
|
2923
|
|
- this.getDeptTaskType();
|
2924
|
|
- this.getTodayNum();
|
2925
|
|
- } else if (data.status == 100042) {
|
2926
|
|
- this.showPromptModal("创建", false, data.msg);
|
2927
|
|
- this.getPatient(this.tabSearchCont);
|
2928
|
|
- } else {
|
2929
|
|
- this.showPromptModal("创建", false, data.msg);
|
2930
|
|
- }
|
2931
|
|
- } else if (this.sourceType === "accompany5") {
|
2932
|
|
- // 陪检
|
2933
|
|
- if (data.status == 200) {
|
2934
|
|
- this.showPromptModal("创建", true, "");
|
2935
|
|
- this.goodsLis = [];
|
2936
|
|
- this.getOrderList();
|
2937
|
|
- this.getDeptTaskType();
|
2938
|
|
- this.getTodayNum();
|
2939
|
|
- } else if (data.status == 100042) {
|
2940
|
|
- this.showPromptModal("创建", false, data.msg);
|
2941
|
|
- this.getPatient(this.tabSearchCont);
|
2942
|
|
- } else {
|
2943
|
|
- this.showPromptModal("创建", false, data.msg);
|
2944
|
|
- }
|
|
2831
|
+ if(this.currentDept.typeValue == 'recovery'){
|
|
2832
|
+ this.mainService.postCustom("api", "clearPatientRecoveryDept", {patientCode: this.repeatPostData.workOrder.patient.patientCode}).subscribe((resultData) => {
|
|
2833
|
+ this.confirmRepeatFun(data);
|
|
2834
|
+ });
|
|
2835
|
+ }else{
|
|
2836
|
+ this.confirmRepeatFun(data);
|
2945
|
2837
|
}
|
2946
|
2838
|
});
|
|
2839
|
+ }
|
|
2840
|
+ confirmRepeatFun(data){
|
|
2841
|
+ if (this.sourceType === "specimen") {
|
|
2842
|
+ // 标本建单
|
|
2843
|
+ if (data.status == 200 && this.buildType == "other") {
|
|
2844
|
+ this.showPromptModal("创建", true, "", "other");
|
|
2845
|
+ this.getTodayNum();
|
|
2846
|
+ } else if (data.status == 200 && this.buildType == "bb") {
|
|
2847
|
+ this.showPromptModal("创建", true, "", "bb");
|
|
2848
|
+ this.getTodayNum();
|
|
2849
|
+ } else if (this.buildType == "bb" && data.status == 100043) {
|
|
2850
|
+ this.showPromptModal("创建", true, data.msg);
|
|
2851
|
+ this.getOrderList();
|
|
2852
|
+ this.getSpecimenWorkOrderMsg();
|
|
2853
|
+ this.getTodayNum();
|
|
2854
|
+ } else {
|
|
2855
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2856
|
+ }
|
|
2857
|
+ } else if (this.sourceType === "other") {
|
|
2858
|
+ // 其他建单
|
|
2859
|
+ if (data.status == 200 && this.buildType == "other") {
|
|
2860
|
+ this.showPromptModal("创建", true, "", "other");
|
|
2861
|
+ this.getTodayNum();
|
|
2862
|
+ } else if (data.status == 200 && this.buildType == "bb") {
|
|
2863
|
+ this.showPromptModal("创建", true, "", "bb");
|
|
2864
|
+ this.getTodayNum();
|
|
2865
|
+ } else if (this.buildType == "bb" && data.status == 100043) {
|
|
2866
|
+ this.showPromptModal("创建", true, data.msg);
|
|
2867
|
+ this.getTodayNum();
|
|
2868
|
+ } else {
|
|
2869
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2870
|
+ }
|
|
2871
|
+ } else if (this.sourceType === "transport") {
|
|
2872
|
+ // 转运
|
|
2873
|
+ if (data.status == 200) {
|
|
2874
|
+ this.showPromptModal("创建", true, "");
|
|
2875
|
+ this.goodsLis = [];
|
|
2876
|
+ this.getOrderList();
|
|
2877
|
+ this.getDeptTaskType();
|
|
2878
|
+ this.getTodayNum();
|
|
2879
|
+ } else if (data.status == 100042) {
|
|
2880
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2881
|
+ this.getPatient(this.tabSearchCont);
|
|
2882
|
+ } else {
|
|
2883
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2884
|
+ }
|
|
2885
|
+ } else if (this.sourceType === "accompany1") {
|
|
2886
|
+ // 陪检
|
|
2887
|
+ if (data.status == 200) {
|
|
2888
|
+ this.showPromptModal("创建", true, "");
|
|
2889
|
+ this.goodsLis = [];
|
|
2890
|
+ this.getOrderList();
|
|
2891
|
+ this.getDeptTaskType();
|
|
2892
|
+ this.getTodayNum();
|
|
2893
|
+ } else if (data.status == 100042) {
|
|
2894
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2895
|
+ this.getPatient(this.tabSearchCont);
|
|
2896
|
+ } else {
|
|
2897
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2898
|
+ }
|
|
2899
|
+ } else if (this.sourceType === "accompany2") {
|
|
2900
|
+ // 陪检
|
|
2901
|
+ if (data.status == 200) {
|
|
2902
|
+ this.showPromptModal("创建", true, "");
|
|
2903
|
+ this.goodsLis = [];
|
|
2904
|
+ this.getOrderList();
|
|
2905
|
+ this.getDeptTaskType();
|
|
2906
|
+ this.getTodayNum();
|
|
2907
|
+ } else if (data.status == 100042) {
|
|
2908
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2909
|
+ this.getPatient(this.tabSearchCont);
|
|
2910
|
+ } else {
|
|
2911
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2912
|
+ }
|
|
2913
|
+ } else if (this.sourceType === "accompany3") {
|
|
2914
|
+ // 陪检
|
|
2915
|
+ if (data.status == 200) {
|
|
2916
|
+ this.showPromptModal("创建", true, "");
|
|
2917
|
+ this.goodsLis = [];
|
|
2918
|
+ this.getOrderList();
|
|
2919
|
+ this.getDeptTaskType();
|
|
2920
|
+ this.getTodayNum();
|
|
2921
|
+ } else if (data.status == 100042) {
|
|
2922
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2923
|
+ this.getPatient(this.tabSearchCont);
|
|
2924
|
+ } else {
|
|
2925
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2926
|
+ }
|
|
2927
|
+ } else if (this.sourceType === "accompany4") {
|
|
2928
|
+ // 陪检
|
|
2929
|
+ if (data.status == 200) {
|
|
2930
|
+ this.showPromptModal("创建", true, "");
|
|
2931
|
+ this.goodsLis = [];
|
|
2932
|
+ this.getOrderList();
|
|
2933
|
+ this.getDeptTaskType();
|
|
2934
|
+ this.getTodayNum();
|
|
2935
|
+ } else if (data.status == 100042) {
|
|
2936
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2937
|
+ this.getPatient(this.tabSearchCont);
|
|
2938
|
+ } else {
|
|
2939
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2940
|
+ }
|
|
2941
|
+ } else if (this.sourceType === "accompany5") {
|
|
2942
|
+ // 陪检
|
|
2943
|
+ if (data.status == 200) {
|
|
2944
|
+ this.showPromptModal("创建", true, "");
|
|
2945
|
+ this.goodsLis = [];
|
|
2946
|
+ this.getOrderList();
|
|
2947
|
+ this.getDeptTaskType();
|
|
2948
|
+ this.getTodayNum();
|
|
2949
|
+ } else if (data.status == 100042) {
|
|
2950
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2951
|
+ this.getPatient(this.tabSearchCont);
|
|
2952
|
+ } else {
|
|
2953
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2954
|
+ }
|
2947
|
2955
|
}
|
2948
|
2956
|
}
|
2949
|
2957
|
// =======================end=================================
|