|
@@ -5,10 +5,10 @@
|
5
|
5
|
:key="item.value" @click="clickHandler(item.label)">
|
6
|
6
|
{{ item.label }}
|
7
|
7
|
<text class="tab_num">( {{ item.num }} )</text>
|
8
|
|
- <view class="more" v-if="item.label==='执行中'"></view>
|
9
|
|
- <picker class="more_picker" v-if="item.label==='执行中'" @click.stop @change="execFilter($event)" :value="index"
|
|
8
|
+ <view class="more" v-if="item.label === '执行中'"></view>
|
|
9
|
+ <picker class="more_picker" v-if="item.label === '执行中'" @click.stop @change="execFilter($event)" :value="index"
|
10
|
10
|
:range="array" range-key="name">
|
11
|
|
- <view class="uni-input">{{array[index].name}}</view>
|
|
11
|
+ <view class="uni-input">{{ array[index].name }}</view>
|
12
|
12
|
</picker>
|
13
|
13
|
</view>
|
14
|
14
|
</view>
|
|
@@ -54,7 +54,9 @@
|
54
|
54
|
<!-- 待取货 -->
|
55
|
55
|
</view>
|
56
|
56
|
<view class="page_item_top_R type">
|
57
|
|
- {{item.isHalfInspect===1?'半程陪检':item.taskType.taskName}}
|
|
57
|
+ {{
|
|
58
|
+ item.isHalfInspect === 1 ? "半程陪检" : item.taskType.taskName
|
|
59
|
+ }}
|
58
|
60
|
</view>
|
59
|
61
|
</view>
|
60
|
62
|
<view class="page_item_cont" @click="itemInfo(item.id)">
|
|
@@ -95,17 +97,26 @@
|
95
|
97
|
</view>
|
96
|
98
|
<view v-if="item.patient.careLevel">
|
97
|
99
|
护理等级 :
|
98
|
|
- <text
|
99
|
|
- :class="[(item.patient.careLevel.value==0||item.patient.careLevel.value==1)?'red':'green']">{{ item.patient.careLevel.name}}</text>
|
|
100
|
+ <text :class="[
|
|
101
|
+ item.patient.careLevel.value == 0 ||
|
|
102
|
+ item.patient.careLevel.value == 1
|
|
103
|
+ ? 'red'
|
|
104
|
+ : 'green',
|
|
105
|
+ ]">{{ item.patient.careLevel.name }}</text>
|
100
|
106
|
</view>
|
101
|
107
|
<view v-if="item.patient.illnessState">
|
102
|
108
|
病情级别 :
|
103
|
|
- <text
|
104
|
|
- :class="{red:item.patient.illnessState.value==2||item.patient.illnessState.value==3}">{{ item.patient.illnessState.name}}</text>
|
|
109
|
+ <text :class="{
|
|
110
|
+ red:
|
|
111
|
+ item.patient.illnessState.value == 2 ||
|
|
112
|
+ item.patient.illnessState.value == 3,
|
|
113
|
+ }">{{ item.patient.illnessState.name }}</text>
|
105
|
114
|
</view>
|
106
|
|
- <view v-if="item.isAccompany===1||item.isAccompany===0">
|
|
115
|
+ <view v-if="item.isAccompany === 1 || item.isAccompany === 0">
|
107
|
116
|
陪同情况 :
|
108
|
|
- <text :class="{red:item.isAccompany===1}">{{ item.isAccompany===1?'需要医护陪同':'无需医护陪同'}}</text>
|
|
117
|
+ <text :class="{ red: item.isAccompany === 1 }">{{
|
|
118
|
+ item.isAccompany === 1 ? "需要医护陪同" : "无需医护陪同"
|
|
119
|
+ }}</text>
|
109
|
120
|
</view>
|
110
|
121
|
</view>
|
111
|
122
|
<view class="page_item_conts" v-if="item.taskType.associationType.value == 'patientTransport'">
|
|
@@ -120,27 +131,37 @@
|
120
|
131
|
</view>
|
121
|
132
|
<view v-if="item.patient.careLevel">
|
122
|
133
|
护理等级 :
|
123
|
|
- <text
|
124
|
|
- :class="[(item.patient.careLevel.value==0||item.patient.careLevel.value==1)?'red':'green']">{{ item.patient.careLevel.name}}</text>
|
|
134
|
+ <text :class="[
|
|
135
|
+ item.patient.careLevel.value == 0 ||
|
|
136
|
+ item.patient.careLevel.value == 1
|
|
137
|
+ ? 'red'
|
|
138
|
+ : 'green',
|
|
139
|
+ ]">{{ item.patient.careLevel.name }}</text>
|
125
|
140
|
</view>
|
126
|
141
|
<view v-if="item.patient.illnessState">
|
127
|
142
|
病情级别 :
|
128
|
|
- <text
|
129
|
|
- :class="{red:item.patient.illnessState.value==2||item.patient.illnessState.value==3}">{{ item.patient.illnessState.name}}</text>
|
|
143
|
+ <text :class="{
|
|
144
|
+ red:
|
|
145
|
+ item.patient.illnessState.value == 2 ||
|
|
146
|
+ item.patient.illnessState.value == 3,
|
|
147
|
+ }">{{ item.patient.illnessState.name }}</text>
|
130
|
148
|
</view>
|
131
|
|
- <view v-if="item.isAccompany===1||item.isAccompany===0">
|
|
149
|
+ <view v-if="item.isAccompany === 1 || item.isAccompany === 0">
|
132
|
150
|
陪同情况 :
|
133
|
|
- <text :class="{red:item.isAccompany===1}">{{ item.isAccompany===1?'需要医护陪同':'无需医护陪同'}}</text>
|
|
151
|
+ <text :class="{ red: item.isAccompany === 1 }">{{
|
|
152
|
+ item.isAccompany === 1 ? "需要医护陪同" : "无需医护陪同"
|
|
153
|
+ }}</text>
|
134
|
154
|
</view>
|
135
|
155
|
</view>
|
136
|
156
|
<view class="page_item_conts" v-if="item.taskType.associationType.value == 'drugsBag'">
|
137
|
157
|
<view>
|
138
|
|
- 药包编码 : {{ item.drugs?item.drugs.packid:'无'}}
|
|
158
|
+ 药包编码 : {{ item.drugs ? item.drugs.packid : "无" }}
|
139
|
159
|
</view>
|
140
|
160
|
</view>
|
141
|
161
|
<view class="page_item_conts" v-if="item.taskType.associationType.value == 'jPBag'">
|
142
|
162
|
<view>
|
143
|
|
- 药包编码 : {{ item.staticDistri?item.staticDistri.packid:'无'}}
|
|
163
|
+ 药包编码 :
|
|
164
|
+ {{ item.staticDistri ? item.staticDistri.packid : "无" }}
|
144
|
165
|
</view>
|
145
|
166
|
</view>
|
146
|
167
|
<view class="line"></view>
|
|
@@ -238,18 +259,22 @@
|
238
|
259
|
return {
|
239
|
260
|
// 筛选条件
|
240
|
261
|
array: [{
|
241
|
|
- id: 0,
|
242
|
|
- name: '全部'
|
243
|
|
- }, {
|
244
|
|
- id: 71,
|
245
|
|
- name: '待到达'
|
246
|
|
- }, {
|
247
|
|
- id: 72,
|
248
|
|
- name: '待送达'
|
249
|
|
- }, {
|
250
|
|
- id: 75,
|
251
|
|
- name: '执行中'
|
252
|
|
- }, ],
|
|
262
|
+ id: 0,
|
|
263
|
+ name: "全部",
|
|
264
|
+ },
|
|
265
|
+ {
|
|
266
|
+ id: 71,
|
|
267
|
+ name: "待到达",
|
|
268
|
+ },
|
|
269
|
+ {
|
|
270
|
+ id: 72,
|
|
271
|
+ name: "待送达",
|
|
272
|
+ },
|
|
273
|
+ {
|
|
274
|
+ id: 75,
|
|
275
|
+ name: "执行中",
|
|
276
|
+ },
|
|
277
|
+ ],
|
253
|
278
|
index: 0,
|
254
|
279
|
arrayKey: 0,
|
255
|
280
|
// 当前登录人是否是药房角色
|
|
@@ -336,39 +361,41 @@
|
336
|
361
|
this.zxzData = [];
|
337
|
362
|
this.totalNum = -1;
|
338
|
363
|
this.idx = 0;
|
339
|
|
- this.selectedLabelSlots = '执行中';
|
|
364
|
+ this.selectedLabelSlots = "执行中";
|
340
|
365
|
this.executingOrders(0);
|
341
|
366
|
},
|
342
|
367
|
// 获取科室二维码设置开关
|
343
|
368
|
getMenu() {
|
344
|
|
- let menu = uni.getStorageSync('userData').menu;
|
|
369
|
+ let menu = uni.getStorageSync("userData").menu;
|
345
|
370
|
//判断当前登陆人具体角色 start
|
346
|
371
|
let roles = uni.getStorageSync("userData").user.role;
|
347
|
|
- this.pharmacistFlag = roles.some(item => item.rolecode === "pharmacist");
|
|
372
|
+ this.pharmacistFlag = roles.some(
|
|
373
|
+ (item) => item.rolecode === "pharmacist"
|
|
374
|
+ );
|
348
|
375
|
//判断当前登陆人具体角色 end
|
349
|
376
|
console.log(menu);
|
350
|
|
- menu.forEach(item => {
|
351
|
|
- if (item.link === 'wxInspect') {
|
|
377
|
+ menu.forEach((item) => {
|
|
378
|
+ if (item.link === "wxInspect") {
|
352
|
379
|
this.content.push({
|
353
|
380
|
text: "检查信息",
|
354
|
381
|
});
|
355
|
|
- } else if (item.link === 'wxPatient') {
|
|
382
|
+ } else if (item.link === "wxPatient") {
|
356
|
383
|
this.content.push({
|
357
|
384
|
text: "患者信息",
|
358
|
385
|
});
|
359
|
|
- } else if (item.link === 'wxPharmacy') {
|
|
386
|
+ } else if (item.link === "wxPharmacy") {
|
360
|
387
|
// 如果是配药师人员,则增加药房
|
361
|
388
|
if (this.pharmacistFlag) {
|
362
|
389
|
this.content.push({
|
363
|
390
|
text: "药房",
|
364
|
391
|
});
|
365
|
392
|
}
|
366
|
|
- } else if (item.link === 'wxCode') {
|
|
393
|
+ } else if (item.link === "wxCode") {
|
367
|
394
|
this.content.push({
|
368
|
395
|
text: "二维码设置",
|
369
|
396
|
});
|
370
|
397
|
}
|
371
|
|
- })
|
|
398
|
+ });
|
372
|
399
|
},
|
373
|
400
|
// 拍照
|
374
|
401
|
photograph(data) {
|
|
@@ -521,7 +548,7 @@
|
521
|
548
|
},
|
522
|
549
|
//执行中列表数据获取
|
523
|
550
|
executingOrders(idx) {
|
524
|
|
- console.log(this.zxzData.length, this.totalNum)
|
|
551
|
+ console.log(this.zxzData.length, this.totalNum);
|
525
|
552
|
if (this.zxzData.length == this.totalNum) {
|
526
|
553
|
uni.showToast({
|
527
|
554
|
icon: "none",
|
|
@@ -692,16 +719,34 @@
|
692
|
719
|
onLoad() {
|
693
|
720
|
// 获取菜单权限
|
694
|
721
|
this.getMenu();
|
695
|
|
- let setDeptConfg = uni.getStorageSync("setDeptConfg");
|
696
|
|
- let manager = uni.getStorageSync("manager");
|
697
|
|
- let userId = uni.getStorageSync("userData").user.id;
|
698
|
|
- console.log(setDeptConfg,manager,userId)
|
699
|
|
- if (setDeptConfg.workSchemeType == 2 && (setDeptConfg.ruleType == 3 || (setDeptConfg.ruleType == 4 && userId == manager) )) {
|
700
|
|
- //自选排班,科室绑定人员 || 科室绑定分组 && 组长是当前登陆人
|
701
|
|
- this.content.unshift({
|
702
|
|
- text: "负责科室",
|
703
|
|
- });
|
704
|
|
- }
|
|
722
|
+ post("/auth/getUserWorkDept", {}).then((ress) => {
|
|
723
|
+ if (ress.status == 200) {
|
|
724
|
+ // let userId = uni.getStorageSync("userData").user.id;
|
|
725
|
+ let groupManager = ress.settings && ress.settings.groupManager; //当前工作组合选择的组
|
|
726
|
+ let workType = ress.settings ? ress.settings.workType : -1; //1是综合,2是自主
|
|
727
|
+ let ruleType = ress.settings ? ress.settings.ruleType : -1; //3是科室绑定人员,4是科室绑定分组,2是绑定分组
|
|
728
|
+ if (workType == 2 && (ruleType == 3 || (ruleType == 4 && groupManager))) {
|
|
729
|
+ //自选排班,科室绑定分组,当前登陆人是组长
|
|
730
|
+ this.content.unshift({
|
|
731
|
+ text: "负责科室",
|
|
732
|
+ });
|
|
733
|
+ }
|
|
734
|
+ }
|
|
735
|
+ });
|
|
736
|
+ // let setDeptConfg = uni.getStorageSync("setDeptConfg");
|
|
737
|
+ // let manager = uni.getStorageSync("manager");
|
|
738
|
+ // let userId = uni.getStorageSync("userData").user.id;
|
|
739
|
+ // console.log(setDeptConfg, manager, userId);
|
|
740
|
+ // if (
|
|
741
|
+ // setDeptConfg.workSchemeType == 2 &&
|
|
742
|
+ // (setDeptConfg.ruleType == 3 ||
|
|
743
|
+ // (setDeptConfg.ruleType == 4 && userId == manager))
|
|
744
|
+ // ) {
|
|
745
|
+ // //自选排班,科室绑定人员 || 科室绑定分组 && 组长是当前登陆人
|
|
746
|
+ // this.content.unshift({
|
|
747
|
+ // text: "负责科室",
|
|
748
|
+ // });
|
|
749
|
+ // }
|
705
|
750
|
// #ifdef APP-PLUS
|
706
|
751
|
// this.content.push({
|
707
|
752
|
// text: "退出登录",
|