2 Commits 9af145da67 ... ac7bc4d617

Autore SHA1 Messaggio Data
  28169 ac7bc4d617 Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch 3 giorni fa
  28169 c70d9e9062 hah阿凡达 3 giorni fa

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Vedi File

@@ -3261,7 +3261,7 @@ mu
3261 3261
           }
3262 3262
         }
3263 3263
 
3264
-        if(this.$store.getters.xt_user.template_info.org_id ==10635 || this.$store.getters.xt_user.template_info.org_id ==0 || this.$store.getters.xt_user.template_info.org_id ==10702 ||  this.$store.getters.xt_user.template_info.org_id == 10727 ||  this.$store.getters.xt_user.template_info.org_id == 10721){
3264
+        if(this.$store.getters.xt_user.template_info.org_id ==10635 || this.$store.getters.xt_user.template_info.org_id ==0 || this.$store.getters.xt_user.template_info.org_id ==10702  ||  this.$store.getters.xt_user.template_info.org_id == 10721){
3265 3265
 
3266 3266
           if(this.dialysisPrescription.target_ultrafiltration == 0 || this.dialysisPrescription.target_ultrafiltration=="" || this.dialysisPrescription.target_ultrafiltration == "undefined" || this.dialysisPrescription.target_ultrafiltration == undefined){
3267 3267
 

+ 1 - 1
src/xt_pages/stock/drugs/drugStockOutOrder.vue Vedi File

@@ -875,7 +875,7 @@ export default {
875 875
           for (let i = 0; i < response.data.data.houseList.length; i++) {
876 876
             this.houseList.push(response.data.data.houseList[i]);
877 877
           }
878
-          var objOne = {id:0,name:"系统"}
878
+          var objOne = {id:0,name:"血透室"}
879 879
           var objTwo = {id:-1,name:"血透室"}
880 880
           this.patients.push(objTwo)
881 881
           this.patients.push(objOne)

+ 3 - 3
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue Vedi File

@@ -575,10 +575,10 @@ export default {
575 575
             response.data.data.configlist.drug_storehouse_out;
576 576
           this.list = response.data.data.list;
577 577
           this.doctorList = response.data.data.doctorList;
578
-          var obj ={id:0,name:"系统"}
579
-          var objOne = {id:-1,name:"血透室"}
578
+          var obj ={id:0,name:"血透室"}
579
+          // var objOne = {id:-1,name:"血透室"}
580 580
           this.patients =[]
581
-          this.patients.push(objOne)
581
+          // this.patients.push(objOne)
582 582
           this.patients.push(obj)
583 583
           if(response.data.data.patients!=null){
584 584
             for(let i=0;i<response.data.data.patients.length;i++){

+ 3 - 3
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue Vedi File

@@ -1051,11 +1051,11 @@ export default {
1051 1051
           );
1052 1052
           this.houstList = response.data.data.houstList;
1053 1053
           this.doctorList = response.data.data.doctorList;
1054
-          var obj ={id:0,name:"系统"}
1055
-          var objOne ={id:-1,name:"血透室"}
1054
+          var obj ={id:0,name:"血透室"}
1055
+          // var objOne ={id:-1,name:"血透室"}
1056 1056
           this.patients =[]
1057 1057
           this.patients.push(obj)
1058
-          this.patients.push(objOne)
1058
+          // this.patients.push(objOne)
1059 1059
           if(response.data.data.patients!=null){
1060 1060
             for(let i=0;i<response.data.data.patients.length;i++){
1061 1061
               this.patients.push(response.data.data.patients[i])

+ 1 - 1
src/xt_pages/stock/stockOutOrder.vue Vedi File

@@ -1234,7 +1234,7 @@ export default {
1234 1234
           for (let i = 0; i < response.data.data.houselist.length; i++) {
1235 1235
             this.houselist.push(response.data.data.houselist[i]);
1236 1236
           }
1237
-          var objOne = {id:0,name:"系统"}
1237
+          var objOne = {id:0,name:"血透室"}
1238 1238
           var objTwo = {id:-1,name:"血透室"}
1239 1239
           this.patients.push(objTwo)
1240 1240
           this.patients.push(objOne)

+ 3 - 3
src/xt_pages/stock/stockOutOrderAdd.vue Vedi File

@@ -527,11 +527,11 @@ export default {
527 527
           this.list = response.data.data.list
528 528
           this.storehouse_id = response.data.data.configlist.storehouse_out_info
529 529
           this.doctorList =  response.data.data.doctorList
530
-          var obj ={id:0,name:"系统"}
531
-          var objOne ={id:-1,name:"血透室"}
530
+          var obj ={id:0,name:"血透室"}
531
+          // var objOne ={id:-1,name:"血透室"}
532 532
           this.patients =[]
533 533
           this.patients.push(obj)
534
-          this.patients.push(objOne)
534
+          // this.patients.push(objOne)
535 535
           if(response.data.data.patients!=null){
536 536
             for(let i=0;i<response.data.data.patients.length;i++){
537 537
               this.patients.push(response.data.data.patients[i])

+ 3 - 3
src/xt_pages/stock/stockOutOrderEdit.vue Vedi File

@@ -909,10 +909,10 @@ import patient from '../../router/modules/patient'
909 909
       getSingleOutOrderDetail(params).then(response=>{
910 910
         if(response.data.state == 1){
911 911
           this.patients =[]
912
-          var obj ={id:0,name:"系统"}
913
-          var objOne ={id:-1,name:"血透室"}
912
+          var obj ={id:0,name:"血透室"}
913
+          // var objOne ={id:-1,name:"血透室"}
914 914
           this.patients.push(obj)
915
-          this.patients.push(objOne)
915
+          // this.patients.push(objOne)
916 916
           if(response.data.data.patients!=null){
917 917
             for(let i=0;i<response.data.data.patients.length;i++){
918 918
               this.patients.push(response.data.data.patients[i])

+ 631 - 0
src/xt_pages/user/components/PatientSidebar_ord.vue Vedi File

@@ -0,0 +1,631 @@
1
+<template>
2
+    <div>
3
+      <div class="patient-menu">
4
+        <el-autocomplete
5
+          style="margin:16px 5px"
6
+          popper-class="my-autocomplete"
7
+          v-model.trim="value"
8
+          :fetch-suggestions="querySearchAsync"
9
+          :trigger-on-focus="false"
10
+          placeholder="病人名字或者透析号"
11
+          @select="handleSelect"
12
+        >
13
+          <i class="el-icon-search el-input__icon" slot="suffix"> </i>
14
+          <template slot-scope="{ item }">
15
+            <div class="name">{{ item.name }}</div>
16
+          </template>
17
+        </el-autocomplete>
18
+        <el-select
19
+          v-model="selectID"
20
+          style="margin:0 5px 0px 5px;text-align: center;"
21
+          @change="changePatient"
22
+          placeholder="请选择"
23
+        >
24
+          <el-option
25
+            v-for="item in patientsList"
26
+            :key="item.id"
27
+            :label="item.name"
28
+            :value="item.id"
29
+          >
30
+          </el-option>
31
+        </el-select>
32
+  
33
+        <el-tree
34
+          :data="treeData"
35
+          accordion
36
+          node-key="name"
37
+          :key="treeKey"
38
+          :current-node-key="treeKey"
39
+          :default-expanded-keys="[defaultActive]"
40
+          @node-click="handleNodeClick"
41
+        >
42
+        </el-tree>
43
+      </div>
44
+      <div class="patient-app-container ">
45
+        <span class="patient-name"
46
+          >姓名:{{ currentPatient.name }} &nbsp;&nbsp; 性别:{{
47
+            tranSex(currentPatient.gender)
48
+          }}
49
+          &nbsp;&nbsp; 年龄:{{ getAge(currentPatient) }} &nbsp;&nbsp; 透析号:{{
50
+            currentPatient.dialysis_no
51
+          }}
52
+        </span>
53
+      </div>
54
+    </div>
55
+  </template>
56
+  <script>
57
+  import { fetchAllList, PostSearch } from '@/api/patient'
58
+  import { jsGetAge, uParseTime } from '@/utils/tools'
59
+  
60
+  export default {
61
+    name: 'patientSidebar',
62
+    value: '',
63
+    searchArray: [],
64
+    props: {
65
+      id: 0,
66
+      defaultActive: {
67
+        type: String,
68
+        default: '1-1'
69
+      }
70
+    },
71
+    data() {
72
+      return {
73
+        thedefaultActive: 1,
74
+        patientsList: [],
75
+        currentPatient: {},
76
+        selectID: 0,
77
+        keyword: '',
78
+        value: '',
79
+        treeKey: '',
80
+        org_id:0,
81
+        treeData: [
82
+          {
83
+            name: '1',
84
+            label: '电子病历',
85
+            children: [
86
+              {
87
+                name: '1-1',
88
+                label: '基本信息'
89
+              },
90
+              {
91
+                name: '1-4',
92
+                label: '医嘱管理'
93
+              },
94
+              {
95
+                name: '1-6',
96
+                label: '干体重'
97
+              },
98
+              {
99
+                name:'1-7',
100
+                label:'血管通路'
101
+              },
102
+              // {
103
+              //   name: '1-2',
104
+              //   label: '病程管理'
105
+              // },
106
+              // {
107
+              //   name: '1-9',
108
+              //   label: '阶段小结'
109
+              // },
110
+              // {
111
+              //   name: '1-10',
112
+              //   label: '出院小结'
113
+              // },
114
+              // {
115
+              //   name: '1-3',
116
+              //   label: '检验检查'
117
+              // },
118
+              // {
119
+              //   name:'1-8',
120
+              //   label:'传染病管理'
121
+              // },
122
+              // {
123
+              //   name: '1-5',
124
+              //   label: '抢救记录'
125
+              // },
126
+              // {
127
+              //   name: '1-11',
128
+              //   label: '首次病程记录'
129
+              // }
130
+            ]
131
+          },
132
+          {
133
+            name: '2',
134
+            label: '透析管理',
135
+            children: [
136
+              {
137
+                name: '2-1',
138
+                label: '长期透析处方'
139
+              },
140
+              {
141
+                name: '2-2',
142
+                label: '透析记录'
143
+              },
144
+              {
145
+                name: '2-4',
146
+                label: '排班信息'
147
+              },
148
+              {
149
+                name: '2-5',
150
+                label: '宣教信息'
151
+              }
152
+            ]
153
+          },
154
+          {
155
+            name: '3',
156
+            label: '病情记录',
157
+            children: [
158
+              {
159
+                name: '3-1',
160
+                label: '病史'
161
+              },
162
+              {
163
+                name: '3-2',
164
+                label: '体格检查'
165
+              },
166
+              // {
167
+              //   name: '3-3',
168
+              //   label: '体格检查新'
169
+              // },
170
+            //   {
171
+            //     name: '1-11',
172
+            //     label: '首次病程记录'
173
+            //   },
174
+              {
175
+                name: '1-2',
176
+                label: '病程记录'
177
+              }, {
178
+                name: '1-5',
179
+                label: '抢救记录'
180
+              }, {
181
+                name: '1-9',
182
+                label: '阶段小结'
183
+              }, {
184
+                name: '1-10',
185
+                label: '出院小结'
186
+              },
187
+            ]
188
+          },
189
+          {
190
+            name: '4',
191
+            label: '检验检查',
192
+            children: [
193
+              {
194
+                name: '1-3',
195
+                label: '肾科检验'
196
+              },
197
+              // {
198
+              //   name: '4-12',
199
+              //   label: '新版肾科检验'
200
+              // },
201
+              {
202
+                name: '4-1',
203
+                label: '肾科检查'
204
+              },
205
+              {
206
+                name: '4-3',
207
+                label: 'KT/V'
208
+              },
209
+              {
210
+                name: '1-8',
211
+                label: '传染病管理'
212
+              },
213
+            ]
214
+          },
215
+           {
216
+            name: '5',
217
+            label: '评估工具',
218
+            children: [
219
+              {
220
+                name: '5-1',
221
+                label: '跌倒评估'
222
+              },
223
+              {
224
+                name: '5-2',
225
+                label: '小儿跌倒风险评估'
226
+              },
227
+              {
228
+                name: '5-3',
229
+                label: '压疮风险评估'
230
+              },
231
+              {
232
+                name: '5-4',
233
+                label: 'OH压疮评估'
234
+              },
235
+              {
236
+                name: '5-5',
237
+                label: '日常生活能力评估'
238
+              },
239
+              {
240
+                name: '5-6',
241
+                label: '导管脱落风险评估'
242
+              },
243
+              {
244
+                name: '5-7',
245
+                label: 'RASS及疼痛评估'
246
+              },
247
+              {
248
+                name: '5-8',
249
+                label: '营养状况评估'
250
+              },
251
+              // {
252
+              //   name: '5-9',
253
+              //   label: '约束告知单'
254
+              // },
255
+              {
256
+                name: '5-10',
257
+                label: '心理评估'
258
+              },
259
+              {
260
+                name: '5-11',
261
+                label: '瘙痒评估'
262
+              },
263
+              {
264
+                name: '5-12',
265
+                label: '血液透析患者评估'
266
+              },
267
+              {
268
+                name: '5-13',
269
+                label: 'Glasgow昏迷评分量表'
270
+              },
271
+              {
272
+                name: '5-14',
273
+                label: '肌力评估表'
274
+              },
275
+             ]
276
+           },
277
+          {
278
+            name: '6',
279
+            label: '文书管理',
280
+            children: [
281
+              {
282
+                name: '6-1',
283
+                label: '知情同意书'
284
+              },
285
+            ]
286
+          },
287
+          {
288
+            name: '7',
289
+            label: '转归记录',
290
+          },
291
+          {
292
+            name: '8',
293
+            label: '死亡记录',
294
+          },
295
+  
296
+        ],
297
+        name:""
298
+      }
299
+    },
300
+    methods: {
301
+      handleNodeClick(data) {
302
+  
303
+        var name = data.name
304
+        this.name = data.name
305
+        window.sessionStorage.setItem('patientKey',data.name)
306
+        if (name == '1-1') {
307
+          this.$router.push({ path: '/patients/patient/' + this.id })
308
+        } else if (name == '1-2') {
309
+          this.$router.push({ path: '/patients/course?id=' + this.id })
310
+        } else if (name == '1-3') {
311
+          this.$router.push({ path: '/patients/inspection?id=' + this.id })
312
+        } else if (name == '1-4') {
313
+          this.$router.push({
314
+            path: '/patients/patient/' + this.id + '/doctorAdvice'
315
+          })
316
+        } else if (name == '1-6') {
317
+          this.$router.push({
318
+            path: '/patients/patient/' + this.id + '/dryWeight'
319
+          })
320
+        } else if (name == '1-5') {
321
+          this.$router.push({ path: '/patients/rescue?id=' + this.id })
322
+        } else if (name == '2-1') {
323
+          this.$router.push({
324
+            path: '/patients/patient/' + this.id + '/dialysisSolution'
325
+          })
326
+        } else if (name == '2-2') {
327
+          this.$router.push({
328
+            path: '/patients/patient/' + this.id + '/dialysisRecord'
329
+          })
330
+        } else if (name == '2-4') {
331
+          this.$router.push({
332
+            path: '/patients/patient/' + this.id + '/scheduling'
333
+          })
334
+        } else if (name == '2-5') {
335
+          this.$router.push({
336
+            path: '/patients/patient/' + this.id + '/proeducation'
337
+          })
338
+        } else if (name == '1-7'){
339
+          this.$router.push({path:'/patients/patient/'+this.id+'/vascularAccess'})
340
+        } else if (name == '1-8'){
341
+          this.$router.push({path:'/patients/patients/'+this.id+'/inspectionInfectious'})
342
+        } else if (name == '1-9'){
343
+          this.$router.push({path:'/patient/patient/'+this.id+'/templateSummary'})
344
+        } else if(name == '1-10'){
345
+          this.$router.push({path:'/patient/patient/'+this.id+'/hospitalSummary'})
346
+        } else if(name == '1-11'){
347
+          this.$router.push({path:'/patient/patient/'+this.id+'/firstDisease'})
348
+        } else if(name == '3-1'){
349
+          this.$router.push({ path: '/patients/sickhistory?id=' + this.id })
350
+  
351
+        } else if(name == '3-2'){
352
+          this.$router.push({path:'/patients/physicalexamination?id='+this.id})
353
+  
354
+        } else if(name == '3-3'){
355
+          this.$router.push({path:'/patients/new_physicalexamination?id='+this.id})
356
+  
357
+        } else if(name == '4-1'){
358
+          this.$router.push({path:'/patients/inspection_check?id='+this.id})
359
+        } else if(name == '4-3'){
360
+          this.$router.push({path:'/patients/ktv?id='+this.id})
361
+        }else if(name == '4-12'){
362
+          this.$router.push({path:'/patients/newInspection?id='+this.id})
363
+        }
364
+        else if (name == '5-1') {
365
+          this.$router.push({
366
+            path: '/patients/patient/'+ this.id +'/Fallassessment'
367
+          })
368
+        } else if (name == '5-2') {
369
+          this.$router.push({
370
+            path: '/patients/patient/' + this.id + '/pediatricFallAssessment'
371
+          })
372
+        } else if (name == '5-3') {
373
+          this.$router.push({
374
+            path: '/patients/patient/' + this.id + '/pressuresore'
375
+          })
376
+        } else if (name == '5-4') {
377
+          this.$router.push({
378
+            path: '/patients/patient/' + this.id + '/OHpressuresore'
379
+          })
380
+        } else if (name == '5-5'){
381
+          this.$router.push({path:'/patients/patient/'+this.id+'/dailyLife'})
382
+        } else if (name == '5-6'){
383
+          this.$router.push({path:'/patients/patient/'+this.id+'/Cathetershedding'})
384
+        } else if (name == '5-7'){
385
+          this.$router.push({path:'/patients/patient/'+this.id+'/RassAssessment'})
386
+        } else if(name == '5-8'){
387
+          this.$router.push({path:'/patients/patient/'+this.id+'/nourishmentAssessment'})
388
+        } else if(name == '5-9'){
389
+          this.$router.push({path:'/patients/patient/'+this.id+'/Constraintnotification'})
390
+        } else if(name == '5-10'){
391
+          this.$router.push({ path: '/patients/patient/' + this.id+'/mindAssessment'})
392
+        } else if(name == '5-11'){
393
+          this.$router.push({path:'/patients/patient/' + this.id+'/pruritusAssessment'})
394
+  
395
+        } else if(name == '5-12'){
396
+          this.$router.push({path:'/patients/patient/' + this.id+'/hemodialysis'})
397
+        } else if(name == '5-13'){
398
+          this.$router.push({path:'/patients/patient/' + this.id+'/Glasgow'})
399
+        } else if(name == '5-14'){
400
+          this.$router.push({path:'/patients/patient/' + this.id+'/Muscleforce'})
401
+        }else if(name == '6-1'){
402
+          this.$router.push({path: '/patients/patient/' + this.id+ '/Informedconsent'})
403
+        }else if(name == '7'){
404
+          this.$router.push({path:'/patient/patient/'+this.id+'/lapsoSummary'})
405
+        }else if(name == '8'){
406
+          console.log("hhhhhhhhhhhhhhhhhhhhhhhhhhhhh")
407
+         this.$router.push({path:'/patient/patient/'+this.id+'/deathSummary'})
408
+        }
409
+  
410
+      },
411
+      changePatient(value) {
412
+        console.log(value)
413
+        if(this.$route.path.indexOf('edit') > -1){
414
+          this.$confirm('是否保存当前病历', '保存', {
415
+            confirmButtonText: '确 定',
416
+            cancelButtonText: '取 消',
417
+            type: 'warning'
418
+          }).then(() => {
419
+              this.$emit('updateInfo')
420
+              setTimeout(() => {
421
+                this.$router.push('/patients/patient/' + value)
422
+              },1000)
423
+          }).catch(() => {
424
+            this.$router.push('/patients/patient/' + value)
425
+          })
426
+        }else{
427
+          this.$router.push('/patients/patient/' + value)
428
+        }
429
+  
430
+  
431
+      },
432
+      getList() {
433
+        fetchAllList().then(response => {
434
+          if (response.data.state == 1) {
435
+            if(this.org_id ==10191){
436
+               var patients = response.data.data.patients
437
+              //  console.log("patients",patients)
438
+               for(let i=0;i<patients.length;i++){
439
+                 if(patients[i].lapseto ==1){
440
+                  this.patientsList.push(patients[i])
441
+                 }
442
+  
443
+               }
444
+            }else{
445
+              this.patientsList = response.data.data.patients
446
+              console.log("哈哈哈哈哈哈",this.patientsList)
447
+            }
448
+  
449
+  
450
+            var len = this.patientsList.length
451
+            if (len > 0) {
452
+              for (let index = 0; index < len; index++) {
453
+                if (this.patientsList[index].id == this.id) {
454
+                  this.currentPatient = this.patientsList[index]
455
+                  // console.log("curr", this.currentPatient);
456
+                  this.selectID = this.patientsList[index].id
457
+                  this.$emit('tran-patient', this.currentPatient)
458
+                  break
459
+                }
460
+              }
461
+            }
462
+          }
463
+        })
464
+      },
465
+      tranAge(birthday) {
466
+        var birth = uParseTime(birthday, '{y}-{m}-{d}')
467
+        return jsGetAge(birth, '-')
468
+      },
469
+      tranSex(gender) {
470
+        var sex = '未知'
471
+        switch (gender) {
472
+          case 1:
473
+            sex = '男'
474
+            break
475
+          case 2:
476
+            sex = '女'
477
+            break
478
+          default:
479
+            break
480
+        }
481
+        return sex
482
+      },
483
+      querySearchAsync(keyword, cb) {
484
+  
485
+        let key = ''
486
+        if (keyword != undefined) {
487
+          key = keyword
488
+        }
489
+        let searchArray = []
490
+        PostSearch(key).then(response => {
491
+          if (response.data.state == 1) {
492
+            searchArray = response.data.data.patient
493
+            cb(searchArray)
494
+          } else {
495
+            this.$message.error(response.data.msg)
496
+            cb([])
497
+          }
498
+        })
499
+      },
500
+      handleSelect(val) {
501
+        this.$router.push('/patients/patient/' + val.id)
502
+      },
503
+      getAge: function(val) {
504
+        if (val.id_card_no == undefined) {
505
+          return false
506
+        }
507
+        var thisLen = val.id_card_no.length
508
+        var birth = ''
509
+        if (thisLen == 15) {
510
+          birth = '19' + val.id_card_no.substr(6, 6)
511
+        } else {
512
+          birth = val.id_card_no.substr(6, 8)
513
+        }
514
+        var birthtwo =
515
+          birth.substr(0, 4) +
516
+          '-' +
517
+          birth.substr(4, 2) +
518
+          '-' +
519
+          birth.substr(6, 2)
520
+  
521
+        var age = jsGetAge(birthtwo, '-')
522
+        return age
523
+      }
524
+    },
525
+    created() {
526
+      var patientKey = window.sessionStorage.getItem('patientKey')
527
+      console.log("patient-----------------",patientKey)
528
+      this.org_id = this.$store.getters.xt_user.template_info.org_id
529
+      var query = this.$route.path
530
+      console.log("query",this.$route.path)
531
+      if(patientKey){
532
+       this.treeKey = patientKey
533
+       if(query.indexOf('edit') == -1){
534
+        if (patientKey == '1-1') {
535
+          this.$router.push({ path: '/patients/patient/' + this.id })
536
+        } else if (patientKey == '1-2') {
537
+          this.$router.push({ path: '/patients/course?id=' + this.id })
538
+        } else if (patientKey == '1-3') {
539
+          this.$router.push({ path: '/patients/inspection?id=' + this.id })
540
+        } else if (patientKey == '1-4') {
541
+          this.$router.push({
542
+            path: '/patients/patient/' + this.id + '/doctorAdvice'
543
+          })
544
+        } else if (patientKey == '1-6') {
545
+          this.$router.push({
546
+            path: '/patients/patient/' + this.id + '/dryWeight'
547
+          })
548
+        }else if(patientKey == '1-11'){
549
+         this.$router.push({path: '/patients/patient/' + this.id + '/firstDisease'})
550
+        }else if (patientKey == '1-5') {
551
+          this.$router.push({ path: '/patients/rescue?id=' + this.id })
552
+        } else if (patientKey == '2-1') {
553
+          this.$router.push({
554
+            path: '/patients/patient/' + this.id + '/dialysisSolution'
555
+          })
556
+        } else if (patientKey == '2-2') {
557
+          this.$router.push({
558
+            path: '/patients/patient/' + this.id + '/dialysisRecord'
559
+          })
560
+        } else if (patientKey == '2-4') {
561
+          this.$router.push({
562
+            path: '/patients/patient/' + this.id + '/scheduling'
563
+          })
564
+        } else if (patientKey == '2-5') {
565
+          this.$router.push({
566
+            path: '/patients/patient/' + this.id + '/proeducation'
567
+          })
568
+        } else if (patientKey == '3-1') {
569
+          this.$router.push({ path: '/patients/sickhistory?id=' + this.id })
570
+        }else if(patientKey == '7'){
571
+          this.$router.push({path:'/patient/patient/'+this.id+'/lapsoSummary'})
572
+        }else if(patientKey == '8'){
573
+         this.$router.push({path:'/patient/patient/'+this.id+'/deathSummary'})
574
+        }else if(patientKey == '4-12'){
575
+          this.$router.push({path:'/patients/newInspection?id='+this.id})
576
+        }
577
+  
578
+       }else{
579
+         this.treeKey = "1-1"
580
+  
581
+       }
582
+      }else{
583
+         this.treeKey = this.defaultActive
584
+  
585
+      }
586
+  
587
+  
588
+      this.getList()
589
+    },
590
+  
591
+  }
592
+  </script>
593
+  
594
+  <style>
595
+  .patient-menu .el-tree-node__content {
596
+    font-size: 14px;
597
+    height: 40px;
598
+    font-weight: 400;
599
+  }
600
+  .patient-menu .el-tree-node__label:hover {
601
+    color: #409eff;
602
+  }
603
+  .patient-menu .el-tree-node:focus > .el-tree-node__content {
604
+    color: #409eff;
605
+  }
606
+  .patient-menu .el-tree-node .el-tree-node.is-current > .el-tree-node__content {
607
+    color: #409eff;
608
+  }
609
+  .patient-menu .el-tree {
610
+    background: #f6f8f9;
611
+  }
612
+  .patient-menu {
613
+    -webkit-transition: width 0.28s;
614
+    transition: width 0.28s;
615
+    width: 180px !important;
616
+    height: 100%;
617
+    position: relative;
618
+    font-size: 0px;
619
+    top: 0;
620
+    float: left;
621
+    bottom: 0;
622
+    left: 0;
623
+    /* z-index: 99; */
624
+    overflow: hidden;
625
+  }
626
+  
627
+  .patient-center-menu .el-icon-arrow-down:before {
628
+    content: "";
629
+  }
630
+  </style>
631
+  

+ 9 - 3
src/xt_pages/user/patientInfo.vue Vedi File

@@ -1,8 +1,9 @@
1 1
 
2 2
 <template>
3 3
   <div class="patient-container">
4
-  <patient-sidebar :id="patientID"></patient-sidebar>
4
+  <patient-sidebar :id="patientID" v-if="org_id!=0&&org_id!=10702"></patient-sidebar>
5 5
    <!-- <PatientSidebar_new :id="patientID"></PatientSidebar_new> -->
6
+   <PatientSidebar_ord :id="patientID" v-if="org_id ==0 || org_id == 10702"></PatientSidebar_ord>
6 7
   <patient-detail :is-edit='true' :class='panelClass' v-on:tran-patient-info="patientInfo=$event"></patient-detail>
7 8
   </div>
8 9
 </template>
@@ -11,12 +12,14 @@
11 12
 import PatientDetail from './components/PatientDetail'
12 13
 import PatientSidebar from './components/PatientSidebar'
13 14
 import PatientSidebar_new from './components/PatientSidebar_new'
15
+import PatientSidebar_ord from './components/PatientSidebar_ord.vue';
14 16
 export default {
15 17
    name: 'editForm',
16 18
   components: {
17 19
     PatientDetail,
18 20
     PatientSidebar,
19
-    PatientSidebar_new
21
+    PatientSidebar_new,
22
+    PatientSidebar_ord
20 23
   },
21 24
   data() {
22 25
     return {
@@ -24,12 +27,15 @@ export default {
24 27
       panelClass: 'patient-app-container',
25 28
       patientInfo: {
26 29
         id: 0
27
-      }
30
+      },
31
+      org_id:0,
28 32
     }
29 33
   },
30 34
   created() {
31 35
     const id = this.$route.params && this.$route.params.id
32 36
     this.patientID = parseInt(id)
37
+    this.org_id = this.$store.getters.xt_user.template_info.org_id
38
+    console.log("总共============================",this.org_id)
33 39
     if (isNaN(this.patientID) || this.patientID <= 0) {
34 40
       console.log('patient info not had id')
35 41
       this.$notify.error({