|
@@ -22,6 +22,40 @@ export class OperationNoticeComponent implements OnInit {
|
22
|
22
|
variableNames = ['[$患者姓名$]', '[$主刀医生姓名$]', '[$麻醉医师姓名$]', '[$护士姓名$]', '[$助理医生姓名$]', '[$科室名称$]', '[$手术名称$]', '[$手术时间$]', '[$手术间名称$]'];
|
23
|
23
|
|
24
|
24
|
tabs:any[] = [];
|
|
25
|
+ tabsDefault:any[] = [
|
|
26
|
+ {
|
|
27
|
+ role: 'doctor',
|
|
28
|
+ phoneFlag: false,
|
|
29
|
+ phoneContent: '',
|
|
30
|
+ wechatFlag: false,
|
|
31
|
+ wechatContent: '',
|
|
32
|
+ orders: 1,
|
|
33
|
+ },
|
|
34
|
+ {
|
|
35
|
+ role: 'docAssistant',
|
|
36
|
+ phoneFlag: false,
|
|
37
|
+ phoneContent: '',
|
|
38
|
+ wechatFlag: false,
|
|
39
|
+ wechatContent: '',
|
|
40
|
+ orders: 2,
|
|
41
|
+ },
|
|
42
|
+ {
|
|
43
|
+ role: 'anesthetist',
|
|
44
|
+ phoneFlag: false,
|
|
45
|
+ phoneContent: '',
|
|
46
|
+ wechatFlag: false,
|
|
47
|
+ wechatContent: '',
|
|
48
|
+ orders: 3,
|
|
49
|
+ },
|
|
50
|
+ {
|
|
51
|
+ role: 'patient',
|
|
52
|
+ phoneFlag: false,
|
|
53
|
+ phoneContent: '',
|
|
54
|
+ wechatFlag: false,
|
|
55
|
+ wechatContent: '',
|
|
56
|
+ orders: 4,
|
|
57
|
+ },
|
|
58
|
+ ];
|
25
|
59
|
tabNames = {
|
26
|
60
|
doctor: '主刀医生',
|
27
|
61
|
docAssistant: '助理医生',
|
|
@@ -74,15 +108,20 @@ export class OperationNoticeComponent implements OnInit {
|
74
|
108
|
this.taskTypeLoading = true;
|
75
|
109
|
this.mainService
|
76
|
110
|
.getFetchDataList("simple/data", "transportMessage", postData)
|
77
|
|
- .subscribe((data) => {
|
|
111
|
+ .subscribe((result) => {
|
78
|
112
|
this.taskTypeLoading = false;
|
79
|
|
- if (data.status == 200) {
|
80
|
|
- data.list = data.list || [];
|
81
|
|
- data.list.forEach(v => {
|
|
113
|
+ if (result.status == 200) {
|
|
114
|
+ result.list = result.list || [];
|
|
115
|
+ result.list.forEach(v => {
|
82
|
116
|
v.phoneFlag = v.phoneFlag === 1;
|
83
|
117
|
v.wechatFlag = v.wechatFlag === 1;
|
84
|
118
|
})
|
85
|
|
- this.tabs = data.list || [];
|
|
119
|
+ let tabs = result.list || [];
|
|
120
|
+ if(tabs.length){
|
|
121
|
+ this.tabs = tabs;
|
|
122
|
+ }else{
|
|
123
|
+ this.tabs = this.tabsDefault.map(v => ({...v, code: data.code, hosId: this.hosId}));
|
|
124
|
+ }
|
86
|
125
|
// 没有选中则默认第一项
|
87
|
126
|
!this.tabModalName && this.tabModal(this.tabs[0].role);
|
88
|
127
|
}
|