Przeglądaj źródła

Merge branch 'master' of http://git.dashitech.com/seimin/zy-wechat

maotao 1 miesiąc temu
rodzic
commit
36ac15d004

+ 10 - 1
components/showDepartmentQrcode/showDepartmentQrcode.vue

@@ -8,6 +8,7 @@
8 8
         <view class="showModel__content" v-if="userData.user.dutyDeptDTO">
9 9
           <image :src="qrCode" mode="widthFix" style="width: 100%;"></image>
10 10
           <view class="page_item_btn" @click="bindDept()"> 切换科室 </view>
11
+          <view class="page_item_btn mt8" @click="toStationaryPatient()"> 驻点患者 </view>
11 12
         </view>
12 13
         <view class="showModel__content" v-else>
13 14
           <view class="page_item_btn" @click="bindDept()"> 绑定科室 </view>
@@ -51,10 +52,18 @@
51 52
       },
52 53
       // 绑定科室
53 54
       bindDept(){
55
+        this.know();
54 56
         uni.navigateTo({
55 57
           url: `../search/search?type=showDepartmentQrcode`,
56 58
         });
57 59
       },
60
+      // 驻点患者
61
+      toStationaryPatient(){
62
+        this.know();
63
+        uni.navigateTo({
64
+          url: `/pages/stationaryPatient/stationaryPatient?dutyDeptId=${this.userData.user.dutyDeptDTO.id}`,
65
+        });
66
+      },
58 67
       // 获取我的二维码
59 68
       getQrCode(){
60 69
         uni.showLoading({
@@ -90,7 +99,7 @@
90 99
       console.log(this.userData.user, 'userData');
91 100
       // 有责任科室则查询动态二维码
92 101
       this.userData.user.dutyDeptDTO && this.getQrCode();
93
-    }
102
+    },
94 103
   };
95 104
 </script>
96 105
 

+ 10 - 1
pages.json

@@ -809,7 +809,16 @@
809 809
 		      "titleNView": false
810 810
 		    }
811 811
 		  }
812
-		}
812
+		},
813
+    {
814
+      "path": "pages/stationaryPatient/stationaryPatient", // 驻点患者-列表
815
+      "style": {
816
+        "h5": {
817
+          "titleNView": false
818
+        },
819
+        "enablePullDownRefresh": true
820
+      }
821
+    }
813 822
   ],
814 823
   "globalStyle": {
815 824
     "navigationBarTextStyle": "black",

+ 18 - 12
pages/mypage/mypage.vue

@@ -7,7 +7,7 @@
7 7
 						<view>
8 8
 							您好,{{ userData.name }}
9 9
 						</view>
10
-						<view>{{userData.currentHospital.hosName}}</view>
10
+						<view v-if="userData.currentHospital">{{userData.currentHospital.hosName}}</view>
11 11
 						</view>
12 12
 			  <!--  <button v-show="!userData.online" class="changeHospital" size="mini" type="default" @click="changeHospital">
13 13
 			      切换院区
@@ -284,7 +284,7 @@
284 284
           type: "off",
285 285
           customWorking: "off",
286 286
           classId: uni.getStorageSync("setDeptConfg").classesId,
287
-        }).then((res) => {
287
+        }).then(async (res) => {
288 288
           uni.hideLoading();
289 289
           if (res.status == 200) {
290 290
             let obj = uni.getStorageSync("userData");
@@ -299,7 +299,7 @@
299 299
               uni.removeStorageSync("manager"); //清空选择的分组组长,初始化
300 300
             }
301 301
             uni.setStorageSync("userData", obj);
302
-            this.getCurrentUser();
302
+            await this.getCurrentUser();
303 303
             this.getTabData();
304 304
           } else {
305 305
             uni.showToast({
@@ -333,7 +333,7 @@
333 333
                 post("/auth/onOrOffLine", {
334 334
                   type: "off",
335 335
                   classId: uni.getStorageSync("setDeptConfg").classesId,
336
-                }).then((res) => {
336
+                }).then(async (res) => {
337 337
                   uni.hideLoading();
338 338
                   if (res.status == 200) {
339 339
                     if (uni.getStorageSync("setDeptConfg")) {
@@ -348,7 +348,7 @@
348 348
                     let obj = uni.getStorageSync("userData");
349 349
                     obj.user.online = false;
350 350
                     uni.setStorageSync("userData", obj);
351
-                    this.getCurrentUser();
351
+                    await this.getCurrentUser();
352 352
                     this.getTabData();
353 353
                   } else {
354 354
                     uni.showToast({
@@ -504,16 +504,22 @@
504 504
         this.getTabData();
505 505
       },
506 506
       // 获取当前用户信息
507
-      getCurrentUser() {
508
-        if (uni.getStorageSync("userData")) {
509
-          this.userData = uni.getStorageSync("userData").user;
510
-        } else {
511
-          this.userData = {};
507
+      async getCurrentUser() {
508
+        let res = await get("/user/data/getCurrentUser");
509
+        if (res.status == 200) {
510
+          let obj = uni.getStorageSync("userData");
511
+          this.userData = obj.user = res.data || {};
512
+          uni.setStorageSync("userData", obj);
513
+        }else{
514
+          uni.showToast({
515
+            icon: "none",
516
+            title: res.msg || "接口获取数据失败!",
517
+          });
512 518
         }
513 519
       },
514 520
     },
515
-    onLoad(options) {
516
-      this.getCurrentUser();
521
+    async onLoad(options) {
522
+      await this.getCurrentUser();
517 523
       //#ifdef H5
518 524
       if (options.login == 1) {
519 525
         uni.redirectTo({

+ 11 - 3
pages/patientInspectLog/patientInspectLogDetail.vue

@@ -120,8 +120,8 @@
120 120
       </template>
121 121
     </scroll-view>
122 122
     <view class="foot_common_btns">
123
-      <button @click="toList()" type="default" class="primaryButton btn">返回</button>
124
-      <button v-if="dataInfo.patientInspectLogData.state && dataInfo.patientInspectLogData.state.value === '4'" @click="tagClick(dataInfo.patientInspectLogData)" type="default" class="primaryButton btn">标记回科</button>
123
+      <button @click="goBack()" type="default" class="primaryButton btn gray">返回</button>
124
+      <button v-if="dataInfo.from == 'patientInpectLogList' && dataInfo.patientInspectLogData.state && dataInfo.patientInspectLogData.state.value === '4'" @click="tagClick(dataInfo.patientInspectLogData)" type="default" class="primaryButton btn">标记回科</button>
125 125
     </view>
126 126
     <!-- 弹窗 -->
127 127
     <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content" @ok="ok" @cancel="cancel" @know="know" :operate="models.operate"></showModel>
@@ -149,6 +149,7 @@
149 149
           patientInspectLogData: {},//闭环对象
150 150
           valueList: [],//检查信息
151 151
           logList: [],//流程图
152
+          from: '',//跳转来源
152 153
          }
153 154
       }
154 155
     },
@@ -286,6 +287,10 @@
286 287
          }
287 288
        })
288 289
       },
290
+      // 返回
291
+      goBack() {
292
+        uni.navigateBack();
293
+      },
289 294
       // 返回列表
290 295
       toList(){
291 296
        uni.reLaunch({
@@ -294,6 +299,7 @@
294 299
       }
295 300
     },
296 301
     onLoad(options){
302
+      this.dataInfo.from = options.from;
297 303
       this.dataInfo.patientInspectLogId = options.patientInspectLogId;
298 304
       this.getDetail();
299 305
     }
@@ -304,12 +310,14 @@
304 310
 .popup-content{
305 311
 	padding: 40rpx;
306 312
 }
313
+.gray{
314
+  background-color: #8F939C!important;
315
+}
307 316
 .incidentDetail{
308 317
   height: 100vh;
309 318
   display: flex;
310 319
   flex-direction: column;
311 320
   justify-content: space-between;
312
-  background-color: #EBEBEB;
313 321
   .head{
314 322
     height: 88rpx;
315 323
     display: flex;

+ 2 - 2
pages/patientInspectLog/patientInspectLogList.vue

@@ -150,7 +150,7 @@
150 150
               let patientInspectLog = undefined;
151 151
               patientInspectLog = list[0];
152 152
               uni.navigateTo({
153
-                url: `/pages/patientInspectLog/patientInspectLogDetail?patientInspectLogId=${patientInspectLog.id}`
153
+                url: `/pages/patientInspectLog/patientInspectLogDetail?patientInspectLogId=${patientInspectLog.id}&from=patientInpectLogList`
154 154
               })
155 155
             }else{
156 156
               uni.showToast({
@@ -251,7 +251,7 @@
251 251
       // 详情
252 252
       toDetail(data){
253 253
         uni.navigateTo({
254
-          url: `/pages/patientInspectLog/patientInspectLogDetail?patientInspectLogId=${data.id}`
254
+          url: `/pages/patientInspectLog/patientInspectLogDetail?patientInspectLogId=${data.id}&from=patientInpectLogList`
255 255
         })
256 256
       },
257 257
       // 标记回科

+ 348 - 0
pages/stationaryPatient/stationaryPatient.vue

@@ -0,0 +1,348 @@
1
+<template>
2
+  <view class="incidentList">
3
+    <view class="head">
4
+      <mSearch class="search" :mode="2" button="inside" placeholder="请输入关键字" @input="changeInp" @search="doSearch()" v-model="keyword" searchButtonType="icon" searchButtonName="newicon-saoma"></mSearch>
5
+    </view>
6
+    <view class="body" v-if="dataInfo.list.length">
7
+      <view class="body_item" v-for="data in dataInfo.list" :key="data.id" @click="toDetail(data)">
8
+        <view class="body_item_head">
9
+          <text>
10
+            <text class="sign signRed">{{ data.careLevel ? data.careLevel.name : '' }}<template v-if="data.careLevel && data.illnessState">、</template>{{ data.illnessState ? data.illnessState.name : '' }}</text> {{ data.patientName }}<text v-if="data.bedNum">({{ data.bedNum }})</text>
11
+          </text>
12
+          <text>{{ data.state ? data.state.name : '' }}</text>
13
+        </view>
14
+
15
+        <view class="body_item_content">
16
+          <view class="body_item_content_p">
17
+            <text class="name ellipsis">住院号:{{data.patientCode}}</text>
18
+            <text>{{(data.patientDTO && data.patientDTO.gender) ? data.patientDTO.gender.name : ''}}<text v-if="data.age !== undefined" class="ml24">{{data.age}}<text v-if="data.age !== undefined">岁</text></text></text>
19
+          </view>
20
+          <view class="body_item_content_p">
21
+            <text class="name ellipsis">患者科室:{{ data.deptDTO ? data.deptDTO.dept : '' }}</text>
22
+            <text>{{data.tripTypeDTO ? data.tripTypeDTO.inspectMode : ''}}</text>
23
+          </view>
24
+          <view class="body_item_content_p">
25
+            <text class="name ellipsis">签到信息:{{data.signDeptDTO ? data.signDeptDTO.dept : ''}}</text>
26
+            <text>{{data.signTime | formatDate('MM-dd hh:mm')}}</text>
27
+          </view>
28
+        </view>
29
+
30
+        <view class="body_item_foot" v-if="stationaryTransfer || stationaryReturn">
31
+          <view class="btns pt0">
32
+            <button @click.stop="stationaryTransferFun(data)" type="default" class="primaryButton btn" v-if="stationaryTransfer && data.reAssign == 1">转派</button>
33
+            <button @click.stop="stationaryReturnFun(data)" type="default" class="primaryButton btn" v-if="stationaryReturn">发起回科</button>
34
+          </view>
35
+        </view>
36
+      </view>
37
+    </view>
38
+    <view class="zanwu" v-else>
39
+      <text class="newicon newicon-zanwu"></text>
40
+    </view>
41
+  </view>
42
+</template>
43
+
44
+<script>
45
+  import { get, post, SM, deleteIt, webHandle } from "../../http/http.js";
46
+  import debounce from 'lodash-es/debounce';
47
+  import mSearch from "@/components/mehaotian-search-revision/mehaotian-search-revision.vue";
48
+  export default {
49
+    onShow() {
50
+      this.SMFlag = true;
51
+    },
52
+    components: {
53
+      //引用mSearch组件,如不需要删除即可
54
+      mSearch,
55
+    },
56
+    data(){
57
+      return {
58
+        stationaryTransfer: false,//转派
59
+        stationaryReturn: false,//发起回科
60
+        options: {},
61
+        keyword: '',
62
+        SMFlag: true,
63
+        loginUser: uni.getStorageSync('userData').user,
64
+        menuList: uni.getStorageSync('userData').menu,
65
+        hosId: uni.getStorageSync('userData').user.currentHospital.id,
66
+        dataInfo: {
67
+          list: [],//工单列表
68
+          idx: 0,//页码
69
+          hasMore: true,//是否有更多数据
70
+        }
71
+      }
72
+    },
73
+    methods: {
74
+      handleSearch: debounce(function(keyword) {
75
+        this.getList(0);
76
+      }, 500),
77
+      //防抖搜索
78
+      changeInp(event) {
79
+        this.inputChange(event);
80
+      },
81
+      //监听输入
82
+      inputChange(event) {
83
+        let keyword = event.detail ? event.detail.value : event;
84
+        this.handleSearch(keyword);
85
+      },
86
+      doSearch(){
87
+        // 扫码
88
+        if (!this.SMFlag) {
89
+          return;
90
+        }
91
+        this.SMFlag = false;
92
+        SM().then((content) => {
93
+          this.keyword = content;
94
+          this.getList(0);
95
+        }).catch(err => {
96
+          this.SMFlag = true;
97
+        });
98
+      },
99
+      // 初始化
100
+      onLoadFn(){
101
+        this.getList(0);
102
+      },
103
+      // 获取列表信息
104
+      getList(idx){
105
+        uni.showLoading({
106
+          title: "加载中",
107
+          mask: true,
108
+        });
109
+        this.dataInfo.idx = idx === undefined ? this.dataInfo.idx : idx;
110
+        if(this.dataInfo.idx === 0){
111
+          this.dataInfo.list = [];
112
+        }
113
+        
114
+        let postData = {
115
+            "idx": this.dataInfo.idx,
116
+            "sum": 20,
117
+            "patientInspectLog": {
118
+              "hosId": this.hosId,
119
+              "cascadeSignDept": +this.options.dutyDeptId,
120
+              "patientKey": this.keyword || undefined,
121
+              "reAssign": 1, //是否可以转派
122
+            }
123
+        }
124
+        
125
+        post("/simple/data/fetchDataList/patientInspectLog", postData).then(res => {
126
+          uni.hideLoading();
127
+          uni.stopPullDownRefresh();
128
+          if(res.status == 200){
129
+            let list = res.list || [];
130
+            if(list.length){
131
+              this.dataInfo.hasMore = true;
132
+              this.dataInfo.list = this.dataInfo.idx === 0 ? list : this.dataInfo.list.concat(list);
133
+            }else{
134
+              this.dataInfo.hasMore = false;
135
+            }
136
+          }else{
137
+            uni.showToast({
138
+              icon: 'none',
139
+              title: res.msg || '请求数据失败!'
140
+            });
141
+          }
142
+        })
143
+      },
144
+      // 详情
145
+      toDetail(data){
146
+        uni.navigateTo({
147
+          url: `/pages/patientInspectLog/patientInspectLogDetail?patientInspectLogId=${data.id}`
148
+        })
149
+      },
150
+      // 转派
151
+      stationaryTransferFun(data){
152
+        uni.navigateTo({
153
+          url: `/pages/transferWorkOrder/transferWorkOrderUser?selectPatientId=${data.patientId}`,
154
+        });
155
+      },
156
+      // 发起回科
157
+      stationaryReturnFun(data){
158
+        uni.navigateTo({
159
+          url: `/pages/newSendBack/sendBackPatient/sendBackPatient?patientId=${data.patientId}&patientName=${data.patientName}&patientResidenceNo=${data.patientDTO ? data.patientDTO.residenceNo : ''}&patientCode=${data.patientCode}`,
160
+        });
161
+      },
162
+    },
163
+    onLoad(options){
164
+      console.log('options', options)
165
+      this.options = options || {};
166
+      this.stationaryTransfer = this.menuList.some(v => v.link == 'stationaryTransfer');
167
+      this.stationaryReturn = this.menuList.some(v => v.link == 'stationaryReturn');
168
+      this.onLoadFn();
169
+    },
170
+    onTabItemTap(){
171
+      this.onLoadFn();
172
+    },
173
+    onPullDownRefresh(){
174
+      this.getList(0);
175
+    },
176
+    onReachBottom(){
177
+      this.dataInfo.idx += 1;
178
+      if (this.dataInfo.hasMore) {
179
+        this.getList(); // 当触底时加载更多数据
180
+      }
181
+    },
182
+  };
183
+</script>
184
+
185
+<style lang="scss" scoped>
186
+.search{
187
+  padding: 10rpx 24rpx;
188
+}
189
+.toolbar {
190
+  position: fixed;
191
+  left: 0;
192
+  bottom: var(--window-bottom);
193
+  z-index: 99;
194
+  width: 100%;
195
+  height: 88rpx;
196
+  display: flex;
197
+  justify-content: center;
198
+  align-items: center;
199
+  box-sizing: border-box;
200
+  border-radius: 4rpx;
201
+  background-color: #E5E8ED;
202
+
203
+  .toolbar-icon {
204
+    font-size: 52rpx;
205
+    margin-right: 16rpx;
206
+    color: #49B856;
207
+  }
208
+
209
+  .toolbar-sao {
210
+    font-size: 36rpx;
211
+    color: #333;
212
+  }
213
+}
214
+page{
215
+  height: calc(100vh - var(--window-bottom));
216
+}
217
+.incidentList{
218
+  display: flex;
219
+  flex-direction: column;
220
+  justify-content: space-between;
221
+  .head{
222
+    height: 88rpx;
223
+    display: flex;
224
+    align-items: center;
225
+    position: fixed;
226
+    z-index: 99;
227
+    width: 100%;
228
+    background-color: #fff;
229
+    font-size: 30rpx;
230
+    .tab{
231
+      flex: 1;
232
+      display: flex;
233
+      justify-content: center;
234
+      align-items: center;
235
+      border-bottom: 4rpx solid transparent;
236
+      &.active{
237
+        color: #49b856;
238
+        border-color: #49b856;
239
+      }
240
+    }
241
+    .filter{
242
+      width: 84rpx;
243
+      display: flex;
244
+      justify-content: center;
245
+      align-items: center;
246
+      .newicon-shaixuan{
247
+        font-size: 36rpx;
248
+        color: #2C2C2C;
249
+      }
250
+    }
251
+  }
252
+  .body{
253
+    margin-bottom: calc(var(--window-bottom) + 88rpx);
254
+    margin-top: 88rpx;
255
+    border-top: 6rpx solid #EBEBEB;
256
+    .body_item{
257
+      border-bottom: 8rpx solid #EBEBEB;
258
+      .body_item_head{
259
+        word-break: break-all;
260
+        text-align: justify;
261
+        text-align: left;
262
+        margin: 24rpx;
263
+        font-size: 30rpx;
264
+        display: flex;
265
+        align-items: center;
266
+        justify-content: space-between;
267
+        .sign{
268
+          margin-right: 16rpx;
269
+          color: #49B856;
270
+          &.signRed{
271
+            color: #FF0000;
272
+          }
273
+        }
274
+      }
275
+      .body_item_content{
276
+        border-top: 1rpx solid #D8D8D8;
277
+        padding: 24rpx;
278
+        .body_item_content_p{
279
+          color: #6A6A6A;
280
+          font-size: 26rpx;
281
+          display: flex;
282
+          justify-content: space-between;
283
+          align-items: center;
284
+          margin-bottom: 24rpx;
285
+          &:last-of-type{
286
+            margin-bottom: 0;
287
+          }
288
+          .name{
289
+            flex: 1;
290
+          }
291
+          .status{
292
+            padding: 4rpx 10rpx;
293
+            border-radius: 20rpx;
294
+            background-color: #DBE8FE;
295
+            font-size: 22rpx;
296
+            color: #006CF9;
297
+          }
298
+          .icon_all{
299
+            .mic-filled,
300
+            .image-filled
301
+            {
302
+              margin-left: 16rpx;
303
+            }
304
+          }
305
+        }
306
+      }
307
+      .body_item_foot{
308
+        border-top: 1rpx solid #D8D8D8;
309
+        font-size: 26rpx;
310
+        padding: 24rpx;
311
+        .foot_info{
312
+          display: flex;
313
+          justify-content: space-between;
314
+          align-items: center;
315
+          .phone-filled{
316
+            margin-left: 5rpx;
317
+          }
318
+        }
319
+        .btns{
320
+          display: flex;
321
+          button{
322
+            flex: 1;
323
+            margin-right: 24rpx;
324
+            &:last-of-type{
325
+              margin-right: 0;
326
+            }
327
+          }
328
+        }
329
+      }
330
+    }
331
+  }
332
+  .zanwu{
333
+    box-sizing: border-box;
334
+    margin-bottom: calc(var(--window-bottom) + 88rpx);
335
+    margin-top: 88rpx;
336
+    border-top: 6rpx solid #EBEBEB;
337
+    height: calc(100vh - var(--window-bottom) - 176rpx);
338
+    display: flex;
339
+    justify-content: center;
340
+    background-color: #F7F7F7;
341
+    .newicon-zanwu{
342
+      font-size: 256rpx;
343
+      color: #D6D6D6;
344
+      margin-top: 140rpx;
345
+    }
346
+  }
347
+}
348
+</style>

+ 28 - 4
pages/transferWorkOrder/transferWorkOrderPatient.vue

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <view class="transferWorkOrder">
3
-    <mSearch class="search" :mode="2" button="inside" placeholder="请搜索患者名称、住院号" v-model="keyword"></mSearch>
3
+    <mSearch class="search" :mode="2" button="inside" placeholder="请搜索患者名称、住院号" @search="doSearch()" v-model="keyword" searchButtonType="icon" searchButtonName="newicon-saoma"></mSearch>
4 4
     <scroll-view scroll-y class="list">
5 5
       <view class="item tac"><text class="green">接收人:</text>{{userDTO.name}}({{userDTO.account}})</view>
6 6
       <view class="item" v-for="item in listComputed" :key="item.id" @click="selectItem(item)">
@@ -23,11 +23,14 @@
23 23
   import { get, post, SM, webHandle } from "../../http/http.js";
24 24
   import mSearch from "@/components/mehaotian-search-revision/mehaotian-search-revision.vue";
25 25
   export default {
26
+    onShow() {
27
+      this.SMFlag = true;
28
+    },
26 29
     onLoad(options) {
27 30
       console.log('options', options);
28 31
       this.options = options || {};
29 32
       this.userDTO = { id: +this.options.userId, name: this.options.userName, account: this.options.userAccount };
30
-      this.getList();
33
+      this.getList(undefined, true);
31 34
     },
32 35
     components: {
33 36
       //引用mSearch组件,如不需要删除即可
@@ -35,6 +38,7 @@
35 38
     },
36 39
     data() {
37 40
       return {
41
+        SMFlag: true,
38 42
         keyword: '',
39 43
         hosId: uni.getStorageSync('userData').user.currentHospital.id,
40 44
         list: [],
@@ -56,6 +60,18 @@
56 60
       }
57 61
     },
58 62
     methods:{
63
+      doSearch(){
64
+        // 扫码
65
+        if (!this.SMFlag) {
66
+          return;
67
+        }
68
+        this.SMFlag = false;
69
+        SM().then((content) => {
70
+          this.keyword = content;
71
+        }).catch(err => {
72
+          this.SMFlag = true;
73
+        });
74
+      },
59 75
       submit(){
60 76
         let patientList = this.listComputed.filter(v => v.checked);
61 77
         if(!patientList.length){
@@ -122,14 +138,22 @@
122 138
           }
123 139
         })
124 140
       },
125
-      getList(keyword){
141
+      getList(keyword, isInit = false){
126 142
         uni.showLoading({
127 143
           title: "加载中",
128 144
         });
129 145
         post("/nurse/patientInspect/getUserOrderPatient", {}).then((result) => {
130 146
           uni.hideLoading();
131 147
           if (result.status == 200) {
132
-            this.list = result.list || [];
148
+            let list = result.list || [];
149
+            if(isInit && this.options.selectPatientId){
150
+              list.forEach(v => {
151
+                if(v.id == this.options.selectPatientId){
152
+                  v.checked = true;
153
+                }
154
+              })
155
+            }
156
+            this.list = list;
133 157
           } else {
134 158
             uni.showToast({
135 159
               icon: "none",

+ 4 - 2
pages/transferWorkOrder/transferWorkOrderUser.vue

@@ -17,6 +17,7 @@
17 17
   export default {
18 18
     onLoad(options) {
19 19
       console.log('options', options);
20
+      this.options = options || {};
20 21
       this.getList();
21 22
     },
22 23
     onShow() {
@@ -28,6 +29,7 @@
28 29
     },
29 30
     data() {
30 31
       return {
32
+        options: {},
31 33
         keyword: '',
32 34
         hosId: uni.getStorageSync('userData').user.currentHospital.id,
33 35
         list: [],
@@ -83,7 +85,7 @@
83 85
             if (result.state == 200 || result.state == 201) {
84 86
               if(Object.prototype.toString.call(userHandoverCode) === '[object Object]' && userHandoverCode.name){
85 87
                 uni.redirectTo({
86
-                  url: `/pages/transferWorkOrder/transferWorkOrderPatient?userId=${userHandoverCode.id}&userName=${userHandoverCode.name}&userAccount=${userHandoverCode.account}`,
88
+                  url: `/pages/transferWorkOrder/transferWorkOrderPatient?userId=${userHandoverCode.id}&userName=${userHandoverCode.name}&userAccount=${userHandoverCode.account}&selectPatientId=${this.options.selectPatientId}`,
87 89
                 });
88 90
               }else{
89 91
                 uni.showToast({
@@ -110,7 +112,7 @@
110 112
         // uni.setStorageSync('transferWorkOrderUserList', userList);
111 113
         
112 114
         uni.redirectTo({
113
-          url: `/pages/transferWorkOrder/transferWorkOrderPatient?userId=${user.id}&userName=${user.name}&userAccount=${user.account}`,
115
+          url: `/pages/transferWorkOrder/transferWorkOrderPatient?userId=${user.id}&userName=${user.name}&userAccount=${user.account}&selectPatientId=${this.options.selectPatientId}`,
114 116
         });
115 117
       },
116 118
       handleSearch: debounce(function(keyword) {