Explorar el Código

长沙南雅打印单问题修改

28169 hace 2 años
padre
commit
235a4b0abc

+ 2 - 2
config/dev.env.js Ver fichero

@@ -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 Ver fichero

@@ -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: 'localhost',
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,

+ 1 - 1
package.json Ver fichero

@@ -56,7 +56,7 @@
56 56
     "jszip": "3.1.5",
57 57
     "mockjs": "1.0.1-beta3",
58 58
     "moment": "^2.24.0",
59
-    "node-sass": "^7.0.1",
59
+    "node-sass": "^8.0.0",
60 60
     "normalize.css": "7.0.0",
61 61
     "nprogress": "0.2.0",
62 62
     "print-js": "^1.0.50",

+ 8 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue Ver fichero

@@ -3379,7 +3379,7 @@ export default {
3379 3379
         var leftAdvice = [];
3380 3380
         var rightAdvice = [];
3381 3381
         var adlen = advices.length;
3382
-
3382
+        console.log("adlen----------------------",adlen)
3383 3383
         var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
3384 3384
         for (var i = 0; i < halfLen; i++) {
3385 3385
           leftAdvice.push(advices[i]);
@@ -3404,8 +3404,8 @@ export default {
3404 3404
           this.advices.push(item);
3405 3405
         }
3406 3406
         this.loading = false;
3407
-        this.doctor_advices =
3408
-          response.data.data.advices == null ? [] : response.data.data.advices;
3407
+        this.doctor_advices =response.data.data.advices == null ? [] : response.data.data.advices;
3408
+        console.log("zhonguog---------------------------------",this.doctor_advices)
3409 3409
         for (let index = 0; index < this.doctor_advices.length; index++) {
3410 3410
           this.doctor_advices[index]["isShow"] = 2;
3411 3411
         }
@@ -3505,12 +3505,15 @@ export default {
3505 3505
         }
3506 3506
 
3507 3507
         this.totollength = this.doctor_advices.length + this.monitors.length;
3508
-        if (this.totollength > 18) {
3508
+        console.log("totalpath-------------------------------",this.totollength)
3509
+        if (this.totollength > 58) {
3509 3510
           var temp_advice_length = 17 - this.monitors.length;
3511
+          console.log("temp_advice_length-----------",temp_advice_length)
3510 3512
           var doctor_advices_1 = [];
3511 3513
           var doctor_advices_2 = [];
3512 3514
           for (let index = 0; index < this.doctor_advices.length; index++) {
3513 3515
             const element = this.doctor_advices[index];
3516
+
3514 3517
             if (temp_advice_length > index) {
3515 3518
               doctor_advices_1.push(element);
3516 3519
             } else {
@@ -3520,6 +3523,7 @@ export default {
3520 3523
           this.doctor_advices = doctor_advices_1;
3521 3524
           this.doctor_advices_2 = doctor_advices_2;
3522 3525
         }
3526
+        console.log("doctor_advice----------",this.doctor_advices)
3523 3527
 
3524 3528
         this.patientInfo.name = this.nameSplit(this.patientInfo.name);
3525 3529
       } else {

+ 13 - 13
src/xt_permission.js Ver fichero

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 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 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))