Sfoglia il codice sorgente

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

test_user 2 anni fa
parent
commit
c8af941201

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

7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
8
   ENV_CONFIG: '"dev"',
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"',
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
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js Vedi File

27
     // can be overwritten by process.env.HOST
27
     // can be overwritten by process.env.HOST
28
     // if you want dev by ip, please set host: '0.0.0.0'
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
     //  host: 'xt.kuyicloud.com',
31
     //  host: 'xt.kuyicloud.com',
32
    // host: 'xt.test.sgjyun.com',
32
    // host: 'xt.test.sgjyun.com',
33
-  //  host: 'localhost',
33
+    host: 'localhost',
34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35
     autoOpenBrowser: true,
35
     autoOpenBrowser: true,
36
     errorOverlay: true,
36
     errorOverlay: true,

+ 1 - 1
package.json Vedi File

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

+ 13 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyFour.vue Vedi File

837
             <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
837
             <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
838
             <td v-if="advice_index === 3">较干体重增加量:</td>
838
             <td v-if="advice_index === 3">较干体重增加量:</td>
839
             <td v-if="advice_index === 3">
839
             <td v-if="advice_index === 3">
840
-              {{
840
+              <span v-if="org_id==10345">
841
+                {{
842
+                predialysis.weight_before == 0
843
+                  ? 0
844
+                  : (
845
+                      predialysis.weight_before - predialysis.dry_weight
846
+                    ).toFixed(2)
847
+              }}kg
848
+              </span>
849
+              <span v-else>
850
+                {{
841
                 afterdialysis.weight_after == 0
851
                 afterdialysis.weight_after == 0
842
                   ? 0
852
                   ? 0
843
                   : (
853
                   : (
844
                       afterdialysis.weight_after - predialysis.dry_weight
854
                       afterdialysis.weight_after - predialysis.dry_weight
845
                     ).toFixed(2)
855
                     ).toFixed(2)
846
               }}kg
856
               }}kg
857
+              </span>
858
+              
847
             </td>
859
             </td>
848
             <td v-if="advice_index === 4">净脱水量:</td>
860
             <td v-if="advice_index === 4">净脱水量:</td>
849
             <td v-if="advice_index === 4">
861
             <td v-if="advice_index === 4">

+ 8 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue Vedi File

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