|
@@ -112,8 +112,7 @@
|
112
|
112
|
<view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'inspect'">
|
113
|
113
|
<view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
|
114
|
114
|
<view>
|
115
|
|
- 预约时间 : {{ item.yyTime | yyTimeFilter
|
116
|
|
- }}<text v-if="item.reservationNumber">({{ item.reservationNumber }})</text>
|
|
115
|
+ 预约时间 : {{ item.yyTime | yyTimeFilter}}<text v-if="item.reservationNumber">({{ item.reservationNumber }})</text>
|
117
|
116
|
</view>
|
118
|
117
|
<view style="font-weight: bold;">
|
119
|
118
|
患者信息 : {{ item.patient ? item.patient.patientName : "" }}({{ item.patient ? item.patient.bedNum : "" }})-{{ item.patient ? item.patient.residenceNo : "" }}
|
|
@@ -145,8 +144,7 @@
|
145
|
144
|
<view class="page_item_conts" v-else-if="item.taskType.associationType.value == 'patientTransport'">
|
146
|
145
|
<view v-if="item.overdueTime">{{ item.overdueTime }}前送达</view>
|
147
|
146
|
<view>
|
148
|
|
- 预约时间 : {{ item.yyjdTime | yyTimeFilter
|
149
|
|
- }}<text v-if="item.reservationNumber">({{ item.reservationNumber }})</text>
|
|
147
|
+ 预约时间 : {{ item.yyjdTime | yyTimeFilter }}<text v-if="item.reservationNumber">({{ item.reservationNumber }})</text>
|
150
|
148
|
</view>
|
151
|
149
|
<view style="font-weight: bold;">
|
152
|
150
|
患者信息 : {{ item.patient ? item.patient.patientName : "" }}({{ item.patient ? item.patient.bedNum : "" }})-{{ item.patient ? item.patient.residenceNo : "" }}
|
|
@@ -214,46 +212,53 @@
|
214
|
212
|
<text> <text class="End">终</text> 点科室 </text>
|
215
|
213
|
<text class="text_big" v-for="(dept, i) of item.endDepts" :key="i">{{ dept.dept }}</text>
|
216
|
214
|
</view>
|
217
|
|
- <view class="page_item_cont_title" v-if="item.middleDept&&item.middleDept.length==1 && item.taskType.associationType.value == 'inspect'">
|
218
|
|
- <text> <text class="End">检</text> 查科室 </text>
|
219
|
|
- <text class="text_big" v-for="(dept, i) of item.middleDept" :key="i">{{ dept.dept }}</text>
|
|
215
|
+ <view class="page_item_cont_title page_item_cont_title_display" v-if="item.middleDept&&item.middleDept.length==1 && item.taskType.associationType.value == 'inspect'">
|
|
216
|
+ <view>
|
|
217
|
+ <text> <text class="End">检</text> 查科室 </text>
|
|
218
|
+ <text class="text_big">{{ item.middleDept[0].dept }}</text>
|
|
219
|
+ </view>
|
|
220
|
+ <view style="text-align: right;">
|
|
221
|
+ {{ item.middleDept[0].yyTime | yyTimeFilter}}
|
|
222
|
+ </view>
|
220
|
223
|
</view>
|
221
|
224
|
<view class="page_item_cont_title" v-if="item.middleDept&&item.middleDept.length>1 && item.taskType.associationType.value == 'inspect'">
|
222
|
|
- <view v-for="(dept, i) of item.middleDept" :key="i">
|
223
|
|
- <text> <text class="End">检</text> 查科室 </text>
|
224
|
|
- <text class="text_big" :class="dept.signIn ? 'green': ''">{{ dept.dept }}</text>
|
|
225
|
+ <view class="page_item_cont_title_display" v-for="(dept, i) of item.middleDept" :key="i">
|
|
226
|
+ <view>
|
|
227
|
+ <text> <text class="End">检</text> 查科室 </text>
|
|
228
|
+ <text class="text_big" :class="dept.signIn ? 'green': ''">{{ dept.dept }}</text>
|
|
229
|
+ </view>
|
|
230
|
+ <view style="text-align: right;">
|
|
231
|
+ {{ dept.yyTime | yyTimeFilter}}
|
|
232
|
+ </view>
|
225
|
233
|
</view>
|
226
|
234
|
</view>
|
227
|
235
|
</view>
|
228
|
236
|
</view>
|
229
|
|
- <view v-if="
|
230
|
|
- item.taskType.associationType.value == 'inspect' ||
|
231
|
|
- item.taskType.associationType.value == 'patientTransport'
|
232
|
|
- ">
|
|
237
|
+ <!-- <view v-if="item.taskType.associationType.value == 'inspect' || item.taskType.associationType.value == 'patientTransport'"> -->
|
233
|
238
|
<!-- 待抢单 -->
|
234
|
|
- <text class="red" v-if="item.gdState.value == 2">请扫描患者腕带,或者请扫描科室码</text>
|
|
239
|
+ <!-- <text class="red" v-if="item.gdState.value == 2">请扫描患者腕带,或者请扫描科室码</text> -->
|
235
|
240
|
<!-- 待到达 -->
|
236
|
|
- <text class="red" v-if="item.gdState.value == 4">请扫描患者腕带</text>
|
|
241
|
+ <!-- <text class="red" v-if="item.gdState.value == 4">请扫描患者腕带</text> -->
|
237
|
242
|
<!-- 执行中 -->
|
238
|
|
- <text class="red" v-if="item.gdState.value == 8">请扫描检查科室码,并扫描患者腕带</text>
|
|
243
|
+ <!-- <text class="red" v-if="item.gdState.value == 8">请扫描检查科室码,并扫描患者腕带</text> -->
|
239
|
244
|
<!-- 待送达 -->
|
240
|
|
- <text class="red" v-if="item.gdState.value == 5">请扫描终点科室码,并扫描患者腕带</text>
|
241
|
|
- </view>
|
242
|
|
- <view v-if="item.taskType.associationType.value == 'ordinary' && item.taskType.ordinaryField.value == 'clothingGet'">
|
|
245
|
+ <!-- <text class="red" v-if="item.gdState.value == 5">请扫描终点科室码,并扫描患者腕带</text> -->
|
|
246
|
+ <!-- </view> -->
|
|
247
|
+ <!-- <view v-if="item.taskType.associationType.value == 'ordinary' && item.taskType.ordinaryField.value == 'clothingGet'"> -->
|
243
|
248
|
<!-- 待送达 -->
|
244
|
|
- <text class="red" v-if="item.gdState.value == 5">请扫描终点科室二维码</text>
|
245
|
|
- </view>
|
246
|
|
- <view v-if="item.taskType.associationType.value == 'ordinary' && item.taskType.ordinaryField.value == 'clothingSend'">
|
|
249
|
+ <!-- <text class="red" v-if="item.gdState.value == 5">请扫描终点科室二维码</text> -->
|
|
250
|
+ <!-- </view> -->
|
|
251
|
+ <!-- <view v-if="item.taskType.associationType.value == 'ordinary' && item.taskType.ordinaryField.value == 'clothingSend'"> -->
|
247
|
252
|
<!-- 待到达 -->
|
248
|
|
- <text class="red" v-if="item.gdState.value == 4">请扫描起点科室二维码</text>
|
|
253
|
+ <!-- <text class="red" v-if="item.gdState.value == 4">请扫描起点科室二维码</text> -->
|
249
|
254
|
<!-- 待送达 -->
|
250
|
|
- <text class="red" v-if="item.gdState.value == 5">请扫描终点科室二维码</text>
|
251
|
|
- </view>
|
252
|
|
- <view v-else-if="item.taskType.associationType.value == 'other'">
|
|
255
|
+ <!-- <text class="red" v-if="item.gdState.value == 5">请扫描终点科室二维码</text> -->
|
|
256
|
+ <!-- </view> -->
|
|
257
|
+ <!-- <view v-else-if="item.taskType.associationType.value == 'other'"> -->
|
253
|
258
|
<!-- 待到达 -->
|
254
|
|
- <text class="red" v-if="item.gdState.value == 4 && item.taskType.carryingCourses[0].checkoutMethod.value == 1">可通过扫描科室码或者拍照进行签到</text>
|
255
|
|
- <text class="red" v-if="item.gdState.value == 4 && item.taskType.carryingCourses[0].checkoutMethod.value == 2">扫描交接人员二维码进行交接</text>
|
256
|
|
- </view>
|
|
259
|
+ <!-- <text class="red" v-if="item.gdState.value == 4 && item.taskType.carryingCourses[0].checkoutMethod.value == 1">可通过扫描科室码或者拍照进行签到</text> -->
|
|
260
|
+ <!-- <text class="red" v-if="item.gdState.value == 4 && item.taskType.carryingCourses[0].checkoutMethod.value == 2">扫描交接人员二维码进行交接</text> -->
|
|
261
|
+ <!-- </view> -->
|
257
|
262
|
<!-- 如果不是患者陪检,患者转运,其他,万能交接,标本配送,标本轮巡 -->
|
258
|
263
|
<view class="page_item_btn" v-if="
|
259
|
264
|
selectedLabelSlots == '执行中' &&
|
|
@@ -413,6 +418,9 @@
|
413
|
418
|
|
414
|
419
|
<!-- 示闲弹窗 -->
|
415
|
420
|
<showModel :title="models4.title" icon="models4.icon" :disjunctor="models4.disjunctor" :content="models4.content" @know="know4" @ok="ok4" @cancel="cancel4" :operate="models4.operate"></showModel>
|
|
421
|
+
|
|
422
|
+ <!-- 是否覆盖弹窗 -->
|
|
423
|
+ <showModel :title="models5.title" icon="models5.icon" :disjunctor="models5.disjunctor" :content="models5.content" @know="know5" @ok="ok5" @cancel="cancel5" :operate="models5.operate"></showModel>
|
416
|
424
|
<scanner></scanner>
|
417
|
425
|
<!-- 动态密钥 -->
|
418
|
426
|
<numberKeyModel v-if="showKey" :keyArr="keyArr" @cancel="showKey = false" @confirm="confirmKey($event)"></numberKeyModel>
|
|
@@ -448,6 +456,7 @@
|
448
|
456
|
export default {
|
449
|
457
|
data() {
|
450
|
458
|
return {
|
|
459
|
+ dutyDept: {},
|
451
|
460
|
workStateList: [],
|
452
|
461
|
clothingType: '',//被服回收扫码的类型,dept|user
|
453
|
462
|
isShowExecFilter: false,
|
|
@@ -552,6 +561,10 @@
|
552
|
561
|
models4: {
|
553
|
562
|
disjunctor: false,
|
554
|
563
|
},
|
|
564
|
+ // 弹窗model
|
|
565
|
+ models5: {
|
|
566
|
+ disjunctor: false,
|
|
567
|
+ },
|
555
|
568
|
// 悬浮按钮样式
|
556
|
569
|
pattern: {
|
557
|
570
|
buttonColor: "#6cc076",
|
|
@@ -632,7 +645,7 @@
|
632
|
645
|
const minute = nDate.getMinutes().toString().padStart(2, 0);
|
633
|
646
|
return `${month}-${date} ${hour}:${minute}`;
|
634
|
647
|
} else {
|
635
|
|
- return "-";
|
|
648
|
+ return "";
|
636
|
649
|
}
|
637
|
650
|
}
|
638
|
651
|
},
|
|
@@ -656,7 +669,7 @@
|
656
|
669
|
simpleQuery: true
|
657
|
670
|
}
|
658
|
671
|
};
|
659
|
|
-
|
|
672
|
+
|
660
|
673
|
post("/configuration/fetchDataList/taskType",postData).then((res) => {
|
661
|
674
|
if (res.status == 200) {
|
662
|
675
|
this.taskTypeList = res.list
|
|
@@ -2782,7 +2795,7 @@
|
2782
|
2795
|
}
|
2783
|
2796
|
this.tabs[0].num = res.data.resultCount;
|
2784
|
2797
|
}
|
2785
|
|
-
|
|
2798
|
+
|
2786
|
2799
|
} else {
|
2787
|
2800
|
uni.showToast({
|
2788
|
2801
|
icon: "none",
|
|
@@ -2879,9 +2892,28 @@
|
2879
|
2892
|
},
|
2880
|
2893
|
// 更新用户所在科室
|
2881
|
2894
|
updateUser(dept) {
|
2882
|
|
- post("/user/data/bindDutyDept", {dutyDept: +dept.id}).then((res) => {
|
|
2895
|
+ let userData = uni.getStorageSync('userData');
|
|
2896
|
+ this.dutyDept = dept;
|
|
2897
|
+ post("/user/data/bindDutyDept", {dutyDept: +this.dutyDept.id}).then((res) => {
|
2883
|
2898
|
if (res.status == 200) {
|
2884
|
2899
|
this.getCurrentUserNow(true);
|
|
2900
|
+ }else if (res.status == 501) {
|
|
2901
|
+ if(this.dutyDept.id == userData.user.dutyDept){
|
|
2902
|
+ // 选择的科室与绑定科室一样
|
|
2903
|
+ this.getCurrentUserNow(true);
|
|
2904
|
+ }else{
|
|
2905
|
+ // 覆盖
|
|
2906
|
+ this.models5 = {
|
|
2907
|
+ disjunctor: true,
|
|
2908
|
+ title: "提示",
|
|
2909
|
+ content: res.msg,
|
|
2910
|
+ icon: "warn",
|
|
2911
|
+ operate: {
|
|
2912
|
+ ok: "确定",
|
|
2913
|
+ cancel: "取消",
|
|
2914
|
+ },
|
|
2915
|
+ };
|
|
2916
|
+ }
|
2885
|
2917
|
}else{
|
2886
|
2918
|
uni.showToast({
|
2887
|
2919
|
icon: "none",
|
|
@@ -2890,6 +2922,33 @@
|
2890
|
2922
|
}
|
2891
|
2923
|
})
|
2892
|
2924
|
},
|
|
2925
|
+ //确定
|
|
2926
|
+ ok5() {
|
|
2927
|
+ this.models5.disjunctor = false;
|
|
2928
|
+ uni.showLoading({
|
|
2929
|
+ title: "加载中",
|
|
2930
|
+ mask: true,
|
|
2931
|
+ });
|
|
2932
|
+ post("/user/data/bindDutyDept", {dutyDept: +this.dutyDept.id, confirm: 1}).then((res) => {
|
|
2933
|
+ uni.hideLoading();
|
|
2934
|
+ if (res.status == 200) {
|
|
2935
|
+ this.getCurrentUserNow(true);
|
|
2936
|
+ }else{
|
|
2937
|
+ uni.showToast({
|
|
2938
|
+ icon: "none",
|
|
2939
|
+ title: res.msg || "接口获取数据失败!",
|
|
2940
|
+ });
|
|
2941
|
+ }
|
|
2942
|
+ });
|
|
2943
|
+ },
|
|
2944
|
+ //取消
|
|
2945
|
+ cancel5() {
|
|
2946
|
+ this.models5.disjunctor = false;
|
|
2947
|
+ },
|
|
2948
|
+ //取消
|
|
2949
|
+ know5() {
|
|
2950
|
+ this.models5.disjunctor = false;
|
|
2951
|
+ },
|
2893
|
2952
|
// 重新获取用户信息
|
2894
|
2953
|
getCurrentUserNow(updateDept = false) {
|
2895
|
2954
|
get("/user/data/getCurrentUser").then((res) => {
|
|
@@ -3525,7 +3584,7 @@
|
3525
|
3584
|
|
3526
|
3585
|
.page_item_cont_title {
|
3527
|
3586
|
height: 100%;
|
3528
|
|
- float: left;
|
|
3587
|
+ // float: left;
|
3529
|
3588
|
}
|
3530
|
3589
|
}
|
3531
|
3590
|
}
|