|
@@ -188,8 +188,10 @@ export class TaskTypeManagementComponent implements OnInit {
|
188
|
188
|
depaShow = false; //固定科室选择字段
|
189
|
189
|
depaShow1 = false; //固定科室范围选择字段
|
190
|
190
|
depaShow2 = false; //自助填写选择字段
|
191
|
|
- depaShow3 = false;
|
|
191
|
+ depaShow3 = false; //标本自动建单
|
192
|
192
|
depaShow4 = false; //固定科室类型
|
|
193
|
+ depaShow5 = false; //静配自动建单
|
|
194
|
+ depaShow6 = false; //药品自动建单
|
193
|
195
|
scheduleClassChecked; //已选班次
|
194
|
196
|
ClassChecked = false; //班次选择模态框字段
|
195
|
197
|
classChecked; //班次选择
|
|
@@ -209,6 +211,8 @@ export class TaskTypeManagementComponent implements OnInit {
|
209
|
211
|
addEndDeptIds: any = []; //自动(手动)建单追加终点科室
|
210
|
212
|
autoAddDeptSwitch: any = false; //自动建单追加终点科室开关
|
211
|
213
|
handAddDeptSwitch: any = false; //手动建单追加终点科室开关
|
|
214
|
+ xxx: any = false; //根据对接数据自动建单(静配)
|
|
215
|
+ yyy: any = false; //根据对接数据自动建单(药品)
|
212
|
216
|
createRuleConfiguration = []; //自动建单字段
|
213
|
217
|
levelData; //护理级别字段
|
214
|
218
|
specimen_types = false; //标本选择显示隐藏字段
|
|
@@ -649,6 +653,16 @@ export class TaskTypeManagementComponent implements OnInit {
|
649
|
653
|
} else {
|
650
|
654
|
this.depaShow3 = false;
|
651
|
655
|
}
|
|
656
|
+ if (data.associationType.value == "jPBag" && this.indexs == 0) {
|
|
657
|
+ this.depaShow5 = true;
|
|
658
|
+ } else {
|
|
659
|
+ this.depaShow5 = false;
|
|
660
|
+ }
|
|
661
|
+ if (data.associationType.value == "drugsBag" && this.indexs == 0) {
|
|
662
|
+ this.depaShow6 = true;
|
|
663
|
+ } else {
|
|
664
|
+ this.depaShow6 = false;
|
|
665
|
+ }
|
652
|
666
|
}
|
653
|
667
|
if (this.tabModalName == "ktks") {
|
654
|
668
|
this.getCourseList(this.pageSize);
|
|
@@ -774,6 +788,8 @@ export class TaskTypeManagementComponent implements OnInit {
|
774
|
788
|
data.carryingCourses[0].autoAddDeptSwitch == 1 ? true : false; //自动建单追加终点科室开关
|
775
|
789
|
this.handAddDeptSwitch =
|
776
|
790
|
data.carryingCourses[0].handAddDeptSwitch == 1 ? true : false; //手动建单追加终点科室开关
|
|
791
|
+ this.xxx = data.carryingCourses[0].xxx == 1 ? true : false; //根据对接数据自动建单(静配)
|
|
792
|
+ this.yyy = data.carryingCourses[0].yyy == 1 ? true : false; //根据对接数据自动建单(药品)
|
777
|
793
|
if (data.carryingCourses) {
|
778
|
794
|
if (this.indexs == 2 && this.association.value != "inspect") {
|
779
|
795
|
this.indexs = 1;
|
|
@@ -1054,10 +1070,14 @@ export class TaskTypeManagementComponent implements OnInit {
|
1054
|
1070
|
.handAddDeptSwitch
|
1055
|
1071
|
? 1
|
1056
|
1072
|
: 0; //手动建单追加终点科室开关
|
|
1073
|
+ this.taskData.taskType.carryingCourses[0].xxx = this.xxx ? 1 : 0; //根据对接数据自动建单(静配)
|
|
1074
|
+ this.taskData.taskType.carryingCourses[0].yyy = this.yyy ? 1 : 0; //根据对接数据自动建单(药品)
|
1057
|
1075
|
} else {
|
1058
|
1076
|
this.taskData.taskType.carryingCourses[0].addEndDeptIds = ""; //自动(手动)建单追加终点科室
|
1059
|
1077
|
this.taskData.taskType.carryingCourses[0].autoAddDeptSwitch = 0; //自动建单追加终点科室开关
|
1060
|
1078
|
this.taskData.taskType.carryingCourses[0].handAddDeptSwitch = 0; //手动建单追加终点科室开关
|
|
1079
|
+ this.taskData.taskType.carryingCourses[0].xxx = 0; //根据对接数据自动建单(静配)
|
|
1080
|
+ this.taskData.taskType.carryingCourses[0].yyy = 0; //根据对接数据自动建单(药品)
|
1061
|
1081
|
}
|
1062
|
1082
|
console.log(this.taskData);
|
1063
|
1083
|
// return;
|
|
@@ -1143,6 +1163,8 @@ export class TaskTypeManagementComponent implements OnInit {
|
1143
|
1163
|
this.addEndDeptIds = []; //自动(手动)建单追加终点科室
|
1144
|
1164
|
this.autoAddDeptSwitch = false; //自动建单追加终点科室开关
|
1145
|
1165
|
this.handAddDeptSwitch = false; //手动建单追加终点科室开关
|
|
1166
|
+ this.xxx = false; //根据对接数据自动建单(静配)
|
|
1167
|
+ this.yyy = false; //根据对接数据自动建单(药品)
|
1146
|
1168
|
this.remarks = ""; //提前生效时间,默认20分钟
|
1147
|
1169
|
this.quickRemarks = ""; //备注快速输入
|
1148
|
1170
|
this.styleType = false;
|
|
@@ -1624,10 +1646,20 @@ export class TaskTypeManagementComponent implements OnInit {
|
1624
|
1646
|
//起终点科室流程选择
|
1625
|
1647
|
onIndexChange(index: number): void {
|
1626
|
1648
|
this.indexs = index;
|
1627
|
|
- if (index == 1) {
|
1628
|
|
- this.depaShow3 = false;
|
1629
|
|
- } else if (index == 0 && this.currentChoice.associationType.id == 256) {
|
|
1649
|
+ if (index == 0 && this.currentChoice.associationType.value == "specimen") {
|
1630
|
1650
|
this.depaShow3 = true;
|
|
1651
|
+ } else {
|
|
1652
|
+ this.depaShow3 = false;
|
|
1653
|
+ }
|
|
1654
|
+ if (index == 0 && this.currentChoice.associationType.value == "jPBag") {
|
|
1655
|
+ this.depaShow5 = true;
|
|
1656
|
+ } else {
|
|
1657
|
+ this.depaShow5 = false;
|
|
1658
|
+ }
|
|
1659
|
+ if (index == 0 && this.currentChoice.associationType.value == "drugsBag") {
|
|
1660
|
+ this.depaShow6 = true;
|
|
1661
|
+ } else {
|
|
1662
|
+ this.depaShow6 = false;
|
1631
|
1663
|
}
|
1632
|
1664
|
this.getDepartment();
|
1633
|
1665
|
this.getcheckout();
|