|
@@ -737,7 +737,7 @@ export class HushijiandanComponent implements OnInit {
|
737
|
737
|
this.currentUser.typeValue == "outpatientDept" ||
|
738
|
738
|
this.currentUser.typeValue == "checkRoom"
|
739
|
739
|
) {
|
740
|
|
- delete postData["patient"]["department"];//搜索范围为全院在院患者
|
|
740
|
+ delete postData["patient"]["department"]; //搜索范围为全院在院患者
|
741
|
741
|
} else {
|
742
|
742
|
postData["patient"]["department"] = { id: this.loginUserDeptId };
|
743
|
743
|
}
|
|
@@ -1345,6 +1345,7 @@ export class HushijiandanComponent implements OnInit {
|
1345
|
1345
|
if (appointmentZyBuildFlag.length) {
|
1346
|
1346
|
this.appointmentZyBuildFlag =
|
1347
|
1347
|
appointmentZyBuildFlag[0].appointmentOtherSwitch == 1 ? "1" : "0";
|
|
1348
|
+ console.log(this.appointmentZyBuildFlag, "seimin");
|
1348
|
1349
|
this.yyDateZy = new Date();
|
1349
|
1350
|
this.yyTimeZy = new Date();
|
1350
|
1351
|
if (this.yyTimeZy.getMinutes() >= 0 && this.yyTimeZy.getMinutes() <= 30) {
|
|
@@ -1357,7 +1358,9 @@ export class HushijiandanComponent implements OnInit {
|
1357
|
1358
|
this.yyTimeZy.setHours(this.yyTimeZy.getHours() + 1);
|
1358
|
1359
|
}
|
1359
|
1360
|
} else {
|
1360
|
|
- this.appointmentZyBuildFlag = "0";
|
|
1361
|
+ this.appointmentBuildFlag =
|
|
1362
|
+ this.currentTasktype.appointmentSwitch == 1 ? "1" : "0";
|
|
1363
|
+ console.log(this.appointmentBuildFlag, "seimin");
|
1361
|
1364
|
}
|
1362
|
1365
|
console.log(this.patientForm.controls.checkedType.value, this.checkTypeLis);
|
1363
|
1366
|
this.current_allowUrgent =
|
|
@@ -1422,7 +1425,13 @@ export class HushijiandanComponent implements OnInit {
|
1422
|
1425
|
yyInspectChange(e) {
|
1423
|
1426
|
if (this.currentTasktype.associationType.value === "inspect") {
|
1424
|
1427
|
//陪检
|
1425
|
|
- if (this.filterLinkCheckLis.length) {
|
|
1428
|
+ let obj = this.filterLinkCheckLis.find((item) => {
|
|
1429
|
+ return (
|
|
1430
|
+ new Date(item.yyTime).getTime() - new Date().getTime() >
|
|
1431
|
+ this.leadTime * 60 * 1000
|
|
1432
|
+ );
|
|
1433
|
+ });
|
|
1434
|
+ if (obj) {
|
1426
|
1435
|
this.showDateTime();
|
1427
|
1436
|
} else {
|
1428
|
1437
|
this.yyTime = null;
|
|
@@ -1494,8 +1503,8 @@ export class HushijiandanComponent implements OnInit {
|
1494
|
1503
|
this.filterLinkCheckLis = this.linkCheckLis.filter(
|
1495
|
1504
|
(item) => Boolean(item.yyTime) && item.checked
|
1496
|
1505
|
);
|
1497
|
|
- //有预约时间并且选中的检查数组不为空
|
1498
|
|
- if (this.filterLinkCheckLis.length) {
|
|
1506
|
+ //有预约时间并且选中的检查数组不为空,并且预约建单的开关开启
|
|
1507
|
+ if (this.filterLinkCheckLis.length && this.appointmentBuildFlag == "1") {
|
1499
|
1508
|
//当前时间要大于生效时间
|
1500
|
1509
|
this.isYyInspect = this.filterLinkCheckLis.every((item) => {
|
1501
|
1510
|
return (
|