Browse Source

陪检绩效

seimin 2 years ago
parent
commit
20828a321f
3 changed files with 25 additions and 13 deletions
  1. 3 2
      components/showModel/showModel.vue
  2. 21 10
      components/smallScreen/smallScreen.vue
  3. 1 1
      main.js

+ 3 - 2
components/showModel/showModel.vue

@@ -204,7 +204,7 @@ export default {
204
 };
204
 };
205
 </script>
205
 </script>
206
 
206
 
207
-<style lang="less">
207
+<style lang="less" scoped>
208
 .showModel {
208
 .showModel {
209
   position: fixed;
209
   position: fixed;
210
   left: 0;
210
   left: 0;
@@ -225,7 +225,7 @@ export default {
225
 
225
 
226
     .showModel__header {
226
     .showModel__header {
227
       font-size: 36rpx;
227
       font-size: 36rpx;
228
-      color: 000;
228
+      color: #000;
229
       height: 84rpx;
229
       height: 84rpx;
230
       display: flex;
230
       display: flex;
231
       justify-content: center;
231
       justify-content: center;
@@ -233,6 +233,7 @@ export default {
233
     }
233
     }
234
 
234
 
235
     .showModel__article {
235
     .showModel__article {
236
+      color: #000;
236
       margin: 40rpx auto 25rpx;
237
       margin: 40rpx auto 25rpx;
237
       width: 488rpx;
238
       width: 488rpx;
238
       padding: 60rpx 0;
239
       padding: 60rpx 0;

+ 21 - 10
components/smallScreen/smallScreen.vue

@@ -1,6 +1,6 @@
1
 <template>
1
 <template>
2
   <view class="smallScreen">
2
   <view class="smallScreen">
3
-    <view class="smallScreen_scan" @click="Scan_ss(sData,sType)">
3
+    <view class="smallScreen_scan" @click="getInspectAndPatientTransform(sData,sType)">
4
       <slot></slot>
4
       <slot></slot>
5
     </view>
5
     </view>
6
     <!-- 填写交接人账号弹窗 -->
6
     <!-- 填写交接人账号弹窗 -->
@@ -15,6 +15,7 @@
15
 </template>
15
 </template>
16
 
16
 
17
 <script>
17
 <script>
18
+  import showModel from "../../components/showModel/showModel.vue";
18
   import selectAccount from "../../components/selectAccount/selectAccount.vue";
19
   import selectAccount from "../../components/selectAccount/selectAccount.vue";
19
   import {
20
   import {
20
     post,
21
     post,
@@ -23,11 +24,12 @@
23
   export default {
24
   export default {
24
     data() {
25
     data() {
25
       return {
26
       return {
27
+        selectRadio: [], //单选框选中的数据,第一项是qrcode,第二项是名称
26
         // 单选框弹窗model1
28
         // 单选框弹窗model1
27
         models4: {
29
         models4: {
28
           disjunctor: false,
30
           disjunctor: false,
29
         },
31
         },
30
-        hosId: "",
32
+        hosId: uni.getStorageSync("userData").user.currentHospital.id,
31
         currentCode: '', //当前小扫描的科室二维码
33
         currentCode: '', //当前小扫描的科室二维码
32
         currentData: {}, //当前小扫描的工单对象
34
         currentData: {}, //当前小扫描的工单对象
33
         // 填写交接人账号弹窗model
35
         // 填写交接人账号弹窗model
@@ -47,8 +49,10 @@
47
     },
49
     },
48
     methods: {
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
           const postData = {
56
           const postData = {
53
             "idx":0,
57
             "idx":0,
54
             "sum":1,
58
             "sum":1,
@@ -70,8 +74,8 @@
70
             console.log(res)
74
             console.log(res)
71
             if (res.status == 200) {
75
             if (res.status == 200) {
72
               res.list = res.list || [];
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
                 const postData = {
79
                 const postData = {
76
                   "idx":0,
80
                   "idx":0,
77
                   "sum":9999,
81
                   "sum":9999,
@@ -85,6 +89,7 @@
85
                   if (res.status == 200) {
89
                   if (res.status == 200) {
86
                     res.list = res.list || [];
90
                     res.list = res.list || [];
87
                     let radioInspectionDistanceItem = res.list.map(v => ({id: v.id + "__" + v.inspectMode, inspectMode: v.inspectMode}));
91
                     let radioInspectionDistanceItem = res.list.map(v => ({id: v.id + "__" + v.inspectMode, inspectMode: v.inspectMode}));
92
+                    console.log(radioInspectionDistanceItem)
88
                     this.models4 = {
93
                     this.models4 = {
89
                       disjunctor: true,
94
                       disjunctor: true,
90
                       title: "请选择陪检方式",
95
                       title: "请选择陪检方式",
@@ -101,6 +106,8 @@
101
                     });
106
                     });
102
                   }
107
                   }
103
                 })
108
                 })
109
+              }else{
110
+                this.Scan_ss(sData,sType);
104
               }
111
               }
105
             } else {
112
             } else {
106
               uni.hideLoading();
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
           return;
133
           return;
125
         }
134
         }
126
         this.models4.disjunctor = false;
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
         if (this.currentCode) {
152
         if (this.currentCode) {
144
           let gdStateValue = data.gdState.value; //工单状态value
153
           let gdStateValue = data.gdState.value; //工单状态value
145
           let associationTypeValue = data.taskType.associationType.value; //关联类型value
154
           let associationTypeValue = data.taskType.associationType.value; //关联类型value
155
+          
146
           // 患者陪检,并且工单状态是待到达
156
           // 患者陪检,并且工单状态是待到达
147
           if (
157
           if (
148
             gdStateValue == "4" &&
158
             gdStateValue == "4" &&
@@ -203,6 +213,10 @@
203
             };
213
             };
204
             type = "handleTrans";
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
           post("/workerOrder/" + type, list).then((res) => {
220
           post("/workerOrder/" + type, list).then((res) => {
207
             uni.hideLoading();
221
             uni.hideLoading();
208
             if (res) {
222
             if (res) {
@@ -445,9 +459,6 @@
445
     onShow(){
459
     onShow(){
446
       this.SMFlag = true;
460
       this.SMFlag = true;
447
     },
461
     },
448
-    onLoad(){
449
-      this.hosId = uni.getStorageSync("userData").user.currentHospital.id;
450
-    }
451
   };
462
   };
452
 </script>
463
 </script>
453
 
464
 

+ 1 - 1
main.js

@@ -4,7 +4,7 @@ import App from './App'
4
 import wx from 'weixin-jsapi'
4
 import wx from 'weixin-jsapi'
5
 // import VConsole from 'vconsole';
5
 // import VConsole from 'vconsole';
6
 // new VConsole();
6
 // new VConsole();
7
-console.info('v2.4.17');
7
+console.info('v2.4.18');
8
 Vue.prototype.wx = wx //声明扫码
8
 Vue.prototype.wx = wx //声明扫码
9
 Vue.prototype.audios = [] //待播放的语音集合
9
 Vue.prototype.audios = [] //待播放的语音集合
10
 // #endif
10
 // #endif