|
@@ -1572,7 +1572,13 @@ export class FuwutaiComponent implements OnInit {
|
1572
|
1572
|
this.getPatientList(this.endDeptZy, "");
|
1573
|
1573
|
} else {
|
1574
|
1574
|
//获取患者信息
|
1575
|
|
- this.patientZy = null;
|
|
1575
|
+ console.log(this.deptZyList);
|
|
1576
|
+ if (
|
|
1577
|
+ this.deptZyList.startStatus != 206 &&
|
|
1578
|
+ this.deptZyList.endStatus != 206
|
|
1579
|
+ ) {
|
|
1580
|
+ this.patientZy = null;
|
|
1581
|
+ }
|
1576
|
1582
|
this.getPatientList(this.applyDept, "");
|
1577
|
1583
|
}
|
1578
|
1584
|
}
|
|
@@ -1693,10 +1699,12 @@ export class FuwutaiComponent implements OnInit {
|
1693
|
1699
|
// 返回值的status是203 则是固定科室,会返回单个科室
|
1694
|
1700
|
// 返回值的status是204 则让前端自己调用科室搜索接口
|
1695
|
1701
|
// 返回值的status是205 则是固定科室类型,会返回科室列表
|
|
1702
|
+ // 返回值的status是206 则是默认患者所在科室,把患者所在科室作为值
|
1696
|
1703
|
this.mainService.getdeptList(value).subscribe((data) => {
|
1697
|
1704
|
this.deptZyList = data;
|
|
1705
|
+ console.log(this.deptZyList);
|
1698
|
1706
|
// 起点科室
|
1699
|
|
- if (data["startStatus"] == 201) {
|
|
1707
|
+ if (data["startStatus"] == 201 || data["startStatus"] == 206) {
|
1700
|
1708
|
if (this.applyDept) {
|
1701
|
1709
|
//选择了申请科室,则起点科室就是申请科室
|
1702
|
1710
|
this.deptZyList["startDept"] = this.applicationDepartmentList.filter(
|
|
@@ -1710,7 +1718,7 @@ export class FuwutaiComponent implements OnInit {
|
1710
|
1718
|
this.getHosDepartment(this.checkedHos, "start", "");
|
1711
|
1719
|
}
|
1712
|
1720
|
// 终点科室
|
1713
|
|
- if (data["endStatus"] == 201) {
|
|
1721
|
+ if (data["endStatus"] == 201 || data["endStatus"] == 206) {
|
1714
|
1722
|
if (this.applyDept) {
|
1715
|
1723
|
//选择了申请科室,则终点科室就是申请科室
|
1716
|
1724
|
this.deptZyList["endDept"] = this.applicationDepartmentList.filter(
|
|
@@ -1723,7 +1731,7 @@ export class FuwutaiComponent implements OnInit {
|
1723
|
1731
|
} else if (data["endStatus"] == 204 || data["endStatus"] == 205) {
|
1724
|
1732
|
this.getHosDepartment(this.checkedHos, "end", "");
|
1725
|
1733
|
}
|
1726
|
|
- // 终点科室患者信息列表,id是送病人回病房的任务类型,写死了
|
|
1734
|
+ // 终点科室患者信息列表,id是送病人回病房的任务类型
|
1727
|
1735
|
if (
|
1728
|
1736
|
(data["endStatus"] == 201 || data["endStatus"] == 203) &&
|
1729
|
1737
|
this.radioValueZy == this.deathTasktypeId
|