|
@@ -1,6 +1,6 @@
|
1
|
1
|
<template>
|
2
|
2
|
<view class="smallScreen">
|
3
|
|
- <view class="smallScreen_scan" @click="Scan_ss(sData,sType)">
|
|
3
|
+ <view class="smallScreen_scan" @click="getInspectAndPatientTransform(sData,sType)">
|
4
|
4
|
<slot></slot>
|
5
|
5
|
</view>
|
6
|
6
|
<!-- 填写交接人账号弹窗 -->
|
|
@@ -15,6 +15,7 @@
|
15
|
15
|
</template>
|
16
|
16
|
|
17
|
17
|
<script>
|
|
18
|
+ import showModel from "../../components/showModel/showModel.vue";
|
18
|
19
|
import selectAccount from "../../components/selectAccount/selectAccount.vue";
|
19
|
20
|
import {
|
20
|
21
|
post,
|
|
@@ -23,11 +24,12 @@
|
23
|
24
|
export default {
|
24
|
25
|
data() {
|
25
|
26
|
return {
|
|
27
|
+ selectRadio: [], //单选框选中的数据,第一项是qrcode,第二项是名称
|
26
|
28
|
// 单选框弹窗model1
|
27
|
29
|
models4: {
|
28
|
30
|
disjunctor: false,
|
29
|
31
|
},
|
30
|
|
- hosId: "",
|
|
32
|
+ hosId: uni.getStorageSync("userData").user.currentHospital.id,
|
31
|
33
|
currentCode: '', //当前小扫描的科室二维码
|
32
|
34
|
currentData: {}, //当前小扫描的工单对象
|
33
|
35
|
// 填写交接人账号弹窗model
|
|
@@ -47,8 +49,10 @@
|
47
|
49
|
},
|
48
|
50
|
methods: {
|
49
|
51
|
// 获取是否需要选择陪检方式
|
50
|
|
- getInspectAndPatientTransform(){
|
51
|
|
- if(this.typeData){
|
|
52
|
+ getInspectAndPatientTransform(sData,sType){
|
|
53
|
+ console.log(this.sData,this.sType);
|
|
54
|
+ // 患者陪检,患者其他服务,工单状态是待到达
|
|
55
|
+ if((this.sData.taskType.associationType.value === 'inspect' || this.sData.taskType.associationType.value === 'patientTransport') && this.sData.gdState.value == 4){
|
52
|
56
|
const postData = {
|
53
|
57
|
"idx":0,
|
54
|
58
|
"sum":1,
|
|
@@ -70,8 +74,8 @@
|
70
|
74
|
console.log(res)
|
71
|
75
|
if (res.status == 200) {
|
72
|
76
|
res.list = res.list || [];
|
73
|
|
- if(res.list[0].signTypeIds && this.typeData.gdState.value == 4){
|
74
|
|
- // 如果开启并且工单状态是待到达
|
|
77
|
+ if(res.list[0].signTypeIds){
|
|
78
|
+ // 如果开启
|
75
|
79
|
const postData = {
|
76
|
80
|
"idx":0,
|
77
|
81
|
"sum":9999,
|
|
@@ -85,6 +89,7 @@
|
85
|
89
|
if (res.status == 200) {
|
86
|
90
|
res.list = res.list || [];
|
87
|
91
|
let radioInspectionDistanceItem = res.list.map(v => ({id: v.id + "__" + v.inspectMode, inspectMode: v.inspectMode}));
|
|
92
|
+ console.log(radioInspectionDistanceItem)
|
88
|
93
|
this.models4 = {
|
89
|
94
|
disjunctor: true,
|
90
|
95
|
title: "请选择陪检方式",
|
|
@@ -101,6 +106,8 @@
|
101
|
106
|
});
|
102
|
107
|
}
|
103
|
108
|
})
|
|
109
|
+ }else{
|
|
110
|
+ this.Scan_ss(sData,sType);
|
104
|
111
|
}
|
105
|
112
|
} else {
|
106
|
113
|
uni.hideLoading();
|
|
@@ -110,6 +117,8 @@
|
110
|
117
|
});
|
111
|
118
|
}
|
112
|
119
|
})
|
|
120
|
+ }else{
|
|
121
|
+ this.Scan_ss(sData,sType);
|
113
|
122
|
}
|
114
|
123
|
},
|
115
|
124
|
// 选中单选框
|
|
@@ -124,7 +133,7 @@
|
124
|
133
|
return;
|
125
|
134
|
}
|
126
|
135
|
this.models4.disjunctor = false;
|
127
|
|
- this.allStart(this.typeData);
|
|
136
|
+ this.Scan_ss(this.sData,this.sType);
|
128
|
137
|
},
|
129
|
138
|
// 如果不是静配,药配,标本配送,标本轮巡
|
130
|
139
|
// 科室签到(小扫描)
|
|
@@ -143,6 +152,7 @@
|
143
|
152
|
if (this.currentCode) {
|
144
|
153
|
let gdStateValue = data.gdState.value; //工单状态value
|
145
|
154
|
let associationTypeValue = data.taskType.associationType.value; //关联类型value
|
|
155
|
+
|
146
|
156
|
// 患者陪检,并且工单状态是待到达
|
147
|
157
|
if (
|
148
|
158
|
gdStateValue == "4" &&
|
|
@@ -203,6 +213,10 @@
|
203
|
213
|
};
|
204
|
214
|
type = "handleTrans";
|
205
|
215
|
}
|
|
216
|
+ if(gdStateValue == "4" && (associationTypeValue == "inspect" || associationTypeValue == "patientTransport")){
|
|
217
|
+ console.log(this.selectRadio)
|
|
218
|
+ list.inspectMode = this.selectRadio.length > 0 ? this.selectRadio[0] : undefined;
|
|
219
|
+ }
|
206
|
220
|
post("/workerOrder/" + type, list).then((res) => {
|
207
|
221
|
uni.hideLoading();
|
208
|
222
|
if (res) {
|
|
@@ -445,9 +459,6 @@
|
445
|
459
|
onShow(){
|
446
|
460
|
this.SMFlag = true;
|
447
|
461
|
},
|
448
|
|
- onLoad(){
|
449
|
|
- this.hosId = uni.getStorageSync("userData").user.currentHospital.id;
|
450
|
|
- }
|
451
|
462
|
};
|
452
|
463
|
</script>
|
453
|
464
|
|