|
@@ -1284,6 +1284,10 @@ export class HushijiandanComponent implements OnInit {
|
1284
|
1284
|
that.getDeptTaskType();
|
1285
|
1285
|
} else if (data.status == 100042) {
|
1286
|
1286
|
that.showPromptModal("创建", true, data.msg);
|
|
1287
|
+ } else if (data.status == 1000033) {
|
|
1288
|
+ //重复建单那策略
|
|
1289
|
+ this.repeatMsg = data.msg;
|
|
1290
|
+ this.showDelModal(postData, "transport", yuyue);
|
1287
|
1291
|
} else {
|
1288
|
1292
|
that.showPromptModal("创建", false, data.msg);
|
1289
|
1293
|
}
|
|
@@ -1325,6 +1329,14 @@ export class HushijiandanComponent implements OnInit {
|
1325
|
1329
|
this.getDeptTaskType();
|
1326
|
1330
|
} else if (data.status == 100042) {
|
1327
|
1331
|
this.showPromptModal("创建", true, data.msg);
|
|
1332
|
+ } else if (data.status == 1000033) {
|
|
1333
|
+ //重复建单那策略
|
|
1334
|
+ this.repeatMsg = data.msg;
|
|
1335
|
+ this.showDelModal(
|
|
1336
|
+ this.accompanyPostData,
|
|
1337
|
+ "accompany1",
|
|
1338
|
+ this.accompanyYuyue
|
|
1339
|
+ );
|
1328
|
1340
|
} else {
|
1329
|
1341
|
this.showPromptModal("创建", false, data.msg);
|
1330
|
1342
|
}
|
|
@@ -1347,6 +1359,14 @@ export class HushijiandanComponent implements OnInit {
|
1347
|
1359
|
this.goodsLis = [];
|
1348
|
1360
|
this.getOrderList();
|
1349
|
1361
|
this.getDeptTaskType();
|
|
1362
|
+ } else if (data.status == 1000033) {
|
|
1363
|
+ //重复建单那策略
|
|
1364
|
+ this.repeatMsg = data.msg;
|
|
1365
|
+ this.showDelModal(
|
|
1366
|
+ this.accompanyPostData,
|
|
1367
|
+ "accompany2",
|
|
1368
|
+ this.accompanyYuyue
|
|
1369
|
+ );
|
1350
|
1370
|
} else {
|
1351
|
1371
|
this.showPromptModal("创建", false, data.msg);
|
1352
|
1372
|
}
|
|
@@ -1381,6 +1401,14 @@ export class HushijiandanComponent implements OnInit {
|
1381
|
1401
|
this.getDeptTaskType();
|
1382
|
1402
|
} else if (data.status == 100042) {
|
1383
|
1403
|
this.showPromptModal("创建", true, data.msg);
|
|
1404
|
+ } else if (data.status == 1000033) {
|
|
1405
|
+ //重复建单那策略
|
|
1406
|
+ this.repeatMsg = data.msg;
|
|
1407
|
+ this.showDelModal(
|
|
1408
|
+ this.accompanyPostData,
|
|
1409
|
+ "accompany3",
|
|
1410
|
+ this.accompanyYuyue
|
|
1411
|
+ );
|
1384
|
1412
|
} else {
|
1385
|
1413
|
this.showPromptModal("创建", false, data.msg);
|
1386
|
1414
|
}
|
|
@@ -1403,6 +1431,14 @@ export class HushijiandanComponent implements OnInit {
|
1403
|
1431
|
this.goodsLis = [];
|
1404
|
1432
|
this.getOrderList();
|
1405
|
1433
|
this.getDeptTaskType();
|
|
1434
|
+ } else if (data.status == 1000033) {
|
|
1435
|
+ //重复建单那策略
|
|
1436
|
+ this.repeatMsg = data.msg;
|
|
1437
|
+ this.showDelModal(
|
|
1438
|
+ this.accompanyPostData,
|
|
1439
|
+ "accompany4",
|
|
1440
|
+ this.accompanyYuyue
|
|
1441
|
+ );
|
1406
|
1442
|
} else {
|
1407
|
1443
|
this.showPromptModal("创建", false, data.msg);
|
1408
|
1444
|
}
|
|
@@ -1799,6 +1835,10 @@ export class HushijiandanComponent implements OnInit {
|
1799
|
1835
|
that.showPromptModal("创建", true, "", "bb");
|
1800
|
1836
|
} else if (that.buildType == "bb" && data.status == 100043) {
|
1801
|
1837
|
that.showPromptModal("创建", true, data.msg);
|
|
1838
|
+ } else if (data.status == 1000033) {
|
|
1839
|
+ //重复建单那策略
|
|
1840
|
+ this.repeatMsg = data.msg;
|
|
1841
|
+ this.showDelModal(postData, "other");
|
1802
|
1842
|
} else {
|
1803
|
1843
|
that.showPromptModal("创建", false, data.msg);
|
1804
|
1844
|
}
|
|
@@ -1927,11 +1967,126 @@ export class HushijiandanComponent implements OnInit {
|
1927
|
1967
|
that.showPromptModal("创建", true, data.msg);
|
1928
|
1968
|
this.getOrderList();
|
1929
|
1969
|
this.getSpecimenWorkOrderMsg();
|
|
1970
|
+ } else if (data.status == 1000033) {
|
|
1971
|
+ //重复建单那策略
|
|
1972
|
+ this.repeatMsg = data.msg;
|
|
1973
|
+ this.showDelModal(postData, "specimen");
|
1930
|
1974
|
} else {
|
1931
|
1975
|
that.showPromptModal("创建", false, data.msg);
|
1932
|
1976
|
}
|
1933
|
1977
|
});
|
1934
|
1978
|
}
|
|
1979
|
+ repeatModal: boolean = false; //删除模态框
|
|
1980
|
+ repeatMsg = "";
|
|
1981
|
+ loadingRepeat = false;
|
|
1982
|
+ repeatPostData;
|
|
1983
|
+ sourceType;
|
|
1984
|
+ isYuyue;
|
|
1985
|
+ showDelModal(postData, sourceType, yuyue?) {
|
|
1986
|
+ this.repeatModal = true;
|
|
1987
|
+ this.repeatPostData = postData;
|
|
1988
|
+ this.sourceType = sourceType;
|
|
1989
|
+ this.isYuyue = yuyue ? yuyue : false;
|
|
1990
|
+ }
|
|
1991
|
+ hideRepeatModal() {
|
|
1992
|
+ this.repeatModal = false;
|
|
1993
|
+ this.btnLoading = false;
|
|
1994
|
+ }
|
|
1995
|
+ confirmRepeat() {
|
|
1996
|
+ this.loadingRepeat = true;
|
|
1997
|
+ this.repeatPostData.tipsCreateOder = 1;
|
|
1998
|
+ this.mainService
|
|
1999
|
+ .postCustom(
|
|
2000
|
+ "api",
|
|
2001
|
+ this.isYuyue ? "appointmentOrder" : "startOrder",
|
|
2002
|
+ this.repeatPostData
|
|
2003
|
+ )
|
|
2004
|
+ .subscribe((data) => {
|
|
2005
|
+ this.loadingRepeat = false;
|
|
2006
|
+ this.repeatModal = false;
|
|
2007
|
+ if (this.sourceType === "specimen") {
|
|
2008
|
+ // 标本建单
|
|
2009
|
+ if (data.status == 200 && this.buildType == "other") {
|
|
2010
|
+ this.showPromptModal("创建", true, "", "other");
|
|
2011
|
+ } else if (data.status == 200 && this.buildType == "bb") {
|
|
2012
|
+ this.showPromptModal("创建", true, "", "bb");
|
|
2013
|
+ } else if (this.buildType == "bb" && data.status == 100043) {
|
|
2014
|
+ this.showPromptModal("创建", true, data.msg);
|
|
2015
|
+ this.getOrderList();
|
|
2016
|
+ this.getSpecimenWorkOrderMsg();
|
|
2017
|
+ } else {
|
|
2018
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2019
|
+ }
|
|
2020
|
+ } else if (this.sourceType === "other") {
|
|
2021
|
+ // 其他建单
|
|
2022
|
+ if (data.status == 200 && this.buildType == "other") {
|
|
2023
|
+ this.showPromptModal("创建", true, "", "other");
|
|
2024
|
+ } else if (data.status == 200 && this.buildType == "bb") {
|
|
2025
|
+ this.showPromptModal("创建", true, "", "bb");
|
|
2026
|
+ } else if (this.buildType == "bb" && data.status == 100043) {
|
|
2027
|
+ this.showPromptModal("创建", true, data.msg);
|
|
2028
|
+ } else {
|
|
2029
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2030
|
+ }
|
|
2031
|
+ } else if (this.sourceType === "transport") {
|
|
2032
|
+ // 转运
|
|
2033
|
+ if (data.status == 200) {
|
|
2034
|
+ this.showPromptModal("创建", true, "");
|
|
2035
|
+ this.goodsLis = [];
|
|
2036
|
+ this.getOrderList();
|
|
2037
|
+ this.getDeptTaskType();
|
|
2038
|
+ } else if (data.status == 100042) {
|
|
2039
|
+ this.showPromptModal("创建", true, data.msg);
|
|
2040
|
+ } else {
|
|
2041
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2042
|
+ }
|
|
2043
|
+ } else if (this.sourceType === "accompany1") {
|
|
2044
|
+ // 陪检
|
|
2045
|
+ if (data.status == 200) {
|
|
2046
|
+ this.showPromptModal("创建", true, "");
|
|
2047
|
+ this.goodsLis = [];
|
|
2048
|
+ this.getOrderList();
|
|
2049
|
+ this.getDeptTaskType();
|
|
2050
|
+ } else if (data.status == 100042) {
|
|
2051
|
+ this.showPromptModal("创建", true, data.msg);
|
|
2052
|
+ } else {
|
|
2053
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2054
|
+ }
|
|
2055
|
+ } else if (this.sourceType === "accompany2") {
|
|
2056
|
+ // 陪检
|
|
2057
|
+ if (data.status == 200) {
|
|
2058
|
+ this.showPromptModal("创建", true, "");
|
|
2059
|
+ this.goodsLis = [];
|
|
2060
|
+ this.getOrderList();
|
|
2061
|
+ this.getDeptTaskType();
|
|
2062
|
+ } else {
|
|
2063
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2064
|
+ }
|
|
2065
|
+ } else if (this.sourceType === "accompany3") {
|
|
2066
|
+ // 陪检
|
|
2067
|
+ if (data.status == 200) {
|
|
2068
|
+ this.showPromptModal("创建", true, "");
|
|
2069
|
+ this.goodsLis = [];
|
|
2070
|
+ this.getOrderList();
|
|
2071
|
+ this.getDeptTaskType();
|
|
2072
|
+ } else if (data.status == 100042) {
|
|
2073
|
+ this.showPromptModal("创建", true, data.msg);
|
|
2074
|
+ } else {
|
|
2075
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2076
|
+ }
|
|
2077
|
+ } else if (this.sourceType === "accompany4") {
|
|
2078
|
+ // 陪检
|
|
2079
|
+ if (data.status == 200) {
|
|
2080
|
+ this.showPromptModal("创建", true, "");
|
|
2081
|
+ this.goodsLis = [];
|
|
2082
|
+ this.getOrderList();
|
|
2083
|
+ this.getDeptTaskType();
|
|
2084
|
+ } else {
|
|
2085
|
+ this.showPromptModal("创建", false, data.msg);
|
|
2086
|
+ }
|
|
2087
|
+ }
|
|
2088
|
+ });
|
|
2089
|
+ }
|
1935
|
2090
|
// =======================end=================================
|
1936
|
2091
|
|
1937
|
2092
|
// 页面中间部分tab切换
|