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
14fa353bba
4 changed files with 45 additions and 46 deletions
  1. 2 2
      config/dev.env.js
  2. 2 2
      config/index.js
  3. 29 30
      src/xt_pages/outpatientCharges/newStatementPrintTwo.vue
  4. 12 12
      src/xt_permission.js

+ 2 - 2
config/dev.env.js View File

@@ -7,8 +7,8 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 9
   // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  // BASE_API: '"http://api.xt.test.sgjyun.com"',
11
-  BASE_API: '"http://localhost:9531"',
10
+  BASE_API: '"http://api.xt.test.sgjyun.com"',
11
+  // BASE_API: '"http://localhost:9531"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js View File

@@ -27,10 +27,10 @@ module.exports = {
27 27
     // can be overwritten by process.env.HOST
28 28
     // if you want dev by ip, please set host: '0.0.0.0'
29 29
 
30
-    // host: 'xt.test.sgjyun.com',
30
+    host: 'xt.test.sgjyun.com',
31 31
     //  host: 'xt.kuyicloud.com',
32 32
     // host: 'xt.test.sgjyun.com',
33
-    host: 'xt.test.sgjyun.com',
33
+    // host: 'localhost',
34 34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35 35
     autoOpenBrowser: true,
36 36
     errorOverlay: true,

+ 29 - 30
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue View File

@@ -15,9 +15,8 @@
15 15
         <div class='dialysisPage' style="padding-top:40px;">
16 16
             <!--<printOne :info="info"></printOne>-->
17 17
 
18
-            <!--<print-one v-if="org_id != 9504"  :info="info"></print-one>-->
19
-            <!--<print-two v-else  :info="info"></print-two>-->
20
-            <print-one :info="info"></print-one>
18
+            <print-one v-if="org_id != 10138" :info="info"></print-one>
19
+            <print-two v-else  :info="info"></print-two>
21 20
         </div>
22 21
     </div>
23 22
 </template>
@@ -69,34 +68,34 @@
69 68
         var ptime = Math.round(new Date().getTime() / 1000);
70 69
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
71 70
 
72
-        const style =
73
-          '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
74
-        printJS({
75
-          printable: "prescription-print",
76
-          type: "html",
77
-          style: style,
78
-          scanStyles: false
79
-        });
80
-
81
-        // if(this.org_id == 10138){
82
-        //   const style =
83
-        //   '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}}';
84
-        //   printJS({
85
-        //       printable: "prescription-print",
86
-        //       type: "html",
87
-        //       style: style,
88
-        //       scanStyles: false
89
-        //   });
90
-        // }else{
91
-        //   const style =
71
+        // const style =
92 72
         //   '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
93
-        //   printJS({
94
-        //       printable: "prescription-print",
95
-        //       type: "html",
96
-        //       style: style,
97
-        //       scanStyles: false
98
-        //   });
99
-        // }
73
+        // printJS({
74
+        //   printable: "prescription-print",
75
+        //   type: "html",
76
+        //   style: style,
77
+        //   scanStyles: false
78
+        // });
79
+
80
+        if(this.org_id == 10138){
81
+          const style =
82
+          '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}}';
83
+          printJS({
84
+              printable: "prescription-print",
85
+              type: "html",
86
+              style: style,
87
+              scanStyles: false
88
+          });
89
+        }else{
90
+          const style =
91
+          '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
92
+          printJS({
93
+              printable: "prescription-print",
94
+              type: "html",
95
+              style: style,
96
+              scanStyles: false
97
+          });
98
+        }
100 99
         // if (this.org_template_info.template_id == 1) {
101 100
         //   printJS({
102 101
         //     printable: "dialysis-print-box",

+ 12 - 12
src/xt_permission.js View File

@@ -13,18 +13,18 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15 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
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 29
 
30 30
   NProgress.start()