Browse Source

hah阿凡达

28169 6 days ago
parent
commit
74e501554b
2 changed files with 25 additions and 20 deletions
  1. 12 7
      src/xt_pages/user/courseOfDisease_new.vue
  2. 13 13
      src/xt_permission.js

+ 12 - 7
src/xt_pages/user/courseOfDisease_new.vue View File

584
               医嘱类型:
584
               医嘱类型:
585
               <el-select v-model="advice_type" @change="type_chang" placeholder="请选择" style="width: 120px;">
585
               <el-select v-model="advice_type" @change="type_chang" placeholder="请选择" style="width: 120px;">
586
                 <el-option
586
                 <el-option
587
+                
587
                   v-for="item in type_option"
588
                   v-for="item in type_option"
588
                   :key="item.value"
589
                   :key="item.value"
589
                   :label="item.label"
590
                   :label="item.label"
1409
         this.advice_dialog = false
1410
         this.advice_dialog = false
1410
       },
1411
       },
1411
       getCurrentChangeOne(val){
1412
       getCurrentChangeOne(val){
1412
-        console.log("val================",val)
1413
         this.$refs.editor.contents = val.content
1413
         this.$refs.editor.contents = val.content
1414
         this.record_date = this.getTime(val.record_time)
1414
         this.record_date = this.getTime(val.record_time)
1415
         this.admin_user_id = val.recorder
1415
         this.admin_user_id = val.recorder
1417
            this.admin_user_id = ""
1417
            this.admin_user_id = ""
1418
         }
1418
         }
1419
         this.id = val.id
1419
         this.id = val.id
1420
+        this.ids = val.id
1420
       },
1421
       },
1421
       getCurrentChangeTwo(val){
1422
       getCurrentChangeTwo(val){
1422
 
1423
 
1441
      rowclick(){
1442
      rowclick(){
1442
 
1443
 
1443
       },
1444
       },
1444
-      prints(){
1445
-
1446
-      },
1445
+     
1447
       saveTemplate(){
1446
       saveTemplate(){
1448
 
1447
 
1449
         var params = {
1448
         var params = {
2361
                 if(this.longAdvice[i].advice_type == 1){
2360
                 if(this.longAdvice[i].advice_type == 1){
2362
                   this.longAdvice[i].advice_type_name = "长期医嘱"
2361
                   this.longAdvice[i].advice_type_name = "长期医嘱"
2363
                 }
2362
                 }
2363
+                if(this.longAdvice[i].advice_type == 2){
2364
+                  this.longAdvice[i].advice_type_name = "长期医嘱"
2365
+                }
2364
                 if(this.longAdvice[i].stop_state == 1){
2366
                 if(this.longAdvice[i].stop_state == 1){
2365
                   this.longAdvice[i].stop_state_name = "停用"
2367
                   this.longAdvice[i].stop_state_name = "停用"
2366
                 }
2368
                 }
2858
                 newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
2860
                 newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
2859
                 newListItem1.textContent = this.longAdvice[i].advice_name;
2861
                 newListItem1.textContent = this.longAdvice[i].advice_name;
2860
                 newListItem2.textContent = this.longAdvice[i].advice_type_name;
2862
                 newListItem2.textContent = this.longAdvice[i].advice_type_name;
2861
-                newListItem3.textContent = this.getTime(this.longAdvice[i].start_time)
2863
+                newListItem3.textContent = this.getTime(this.longAdvice[i].created_time)
2862
                 newListItem4.textContent = this.longAdvice[i].single_dose +this.longAdvice[i].single_dose_unit ;
2864
                 newListItem4.textContent = this.longAdvice[i].single_dose +this.longAdvice[i].single_dose_unit ;
2863
                 newListItem5.textContent = this.longAdvice[i].execution_frequency;
2865
                 newListItem5.textContent = this.longAdvice[i].execution_frequency;
2864
                 newListItem6.textContent = this.longAdvice[i].stop_state_name;
2866
                 newListItem6.textContent = this.longAdvice[i].stop_state_name;
3315
       }, onRowClick(row, event, column) {
3317
       }, onRowClick(row, event, column) {
3316
         this.table_current_index = row.index
3318
         this.table_current_index = row.index
3317
       },
3319
       },
3318
-      print(){
3320
+      prints(){
3319
         if(this.ids.length == 0){
3321
         if(this.ids.length == 0){
3320
           this.$message.error('请选择要打印的病程')
3322
           this.$message.error('请选择要打印的病程')
3321
           return
3323
           return
3425
       },
3427
       },
3426
       type_chang(val){
3428
       type_chang(val){
3427
         this.advice_type = val
3429
         this.advice_type = val
3430
+        this.getPatientAdviceList()
3428
       },
3431
       },
3429
       status_chang(val){
3432
       status_chang(val){
3430
         this.advice_status = val
3433
         this.advice_status = val
3434
+        this.getPatientAdviceList()
3431
       },
3435
       },
3432
       selectionchange(val){
3436
       selectionchange(val){
3433
         this.bloodRows = val
3437
         this.bloodRows = val
3918
        
3922
        
3919
         this.$refs.editor.contents = this.$refs.editor.contents +this.option_context
3923
         this.$refs.editor.contents = this.$refs.editor.contents +this.option_context
3920
         this.option_dialog = false
3924
         this.option_dialog = false
3921
-      }
3925
+      },
3926
+    
3922
 
3927
 
3923
     },
3928
     },
3924
     beforeMount(){
3929
     beforeMount(){

+ 13 - 13
src/xt_permission.js View File

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28
  // 线上注释
28
  // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))