Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 years ago
parent
commit
4c9d570678

+ 1 - 1
src/xt_pages/hospitalStation/template/printThree.vue View File

31
               <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
31
               <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
32
               <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
32
               <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
33
               <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
33
               <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
34
-              <div style="margin-bottom: 10px;display:flex;">开具日期:<span class="under_line">{{getTime(item.pre_time) ? getTime(item.pre_time).split(' ')[0] : ''}}</span></div>
34
+              <div style="margin-bottom: 10px;display:flex;">开具日期:<span class="under_line">{{getTime(item.record_date) ? getTime(item.record_date).split(' ')[0] : ''}}</span></div>
35
               <!-- <div>地址:{{item.patient.home_address}}</div> -->
35
               <!-- <div>地址:{{item.patient.home_address}}</div> -->
36
               <!-- <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div> -->
36
               <!-- <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div> -->
37
           </div>
37
           </div>

+ 1 - 1
src/xt_pages/hospitalStation/treatTemplate/printTwo.vue View File

29
             <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
29
             <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
30
             <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
30
             <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
31
             <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
31
             <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
32
-            <div style="margin-bottom: 10px;display:flex;">开具日期:<span class="under_line">{{getTime(item.pre_time) ? getTime(item.pre_time).split(' ')[0] : ''}}</span></div>
32
+            <div style="margin-bottom: 10px;display:flex;">开具日期:<span class="under_line">{{getTime(item.record_date) ? getTime(item.record_date).split(' ')[0] : ''}}</span></div>
33
             <!-- <div>地址:{{item.patient.home_address}}</div> -->
33
             <!-- <div>地址:{{item.patient.home_address}}</div> -->
34
             <!-- <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div> -->
34
             <!-- <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div> -->
35
         </div>
35
         </div>

+ 13 - 14
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
-
30
   NProgress.start()
29
   NProgress.start()
31
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
32
   // alert('path:' + to.path)
31
   // alert('path:' + to.path)