Browse Source

Merge branch 'new_pad_branch' of http://git.shengws.com/zhangbj/xt_pad into new_pad_branch

csx 4 years ago
parent
commit
999dc5c2c0

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

1
 "use strict";
1
 "use strict";
2
 module.exports = {
2
 module.exports = {
3
   NODE_ENV: '"production"',
3
   NODE_ENV: '"production"',
4
-  BASE_API: '"https://api.xt.kuyicloud.com"'
4
+  // BASE_API: '"https://api.xt.kuyicloud.com"'
5
 
5
 
6
-   // BASE_API: '"http://api.xt.test.sgjyun.com"'
6
+   BASE_API: '"http://api.xt.test.sgjyun.com"'
7
   // http://api.xt.test.sgjyun.com
7
   // http://api.xt.test.sgjyun.com
8
   // '"http://api.xt.kuyicloud.com"', //'"http://api.xt.kuyicloud.com"','"http://api.xt.test.sgjyun.com"'
8
   // '"http://api.xt.kuyicloud.com"', //'"http://api.xt.kuyicloud.com"','"http://api.xt.test.sgjyun.com"'
9
 };
9
 };

+ 2 - 2
src/pages/main/PatientBox.vue View File

234
       }
234
       }
235
     },
235
     },
236
     age: function(schedual) {
236
     age: function(schedual) {
237
-      if (schedual.patient.age == 0) {
237
+      if (schedual.patient.birthday != 0) {
238
         return jsGetAge(
238
         return jsGetAge(
239
           parseTime(schedual.patient.birthday, "{y}-{m}-{d}"),
239
           parseTime(schedual.patient.birthday, "{y}-{m}-{d}"),
240
           "-"
240
           "-"
241
         );
241
         );
242
       } else {
242
       } else {
243
-        return schedual.patient.age;
243
+        return ''
244
       }
244
       }
245
 
245
 
246
       // var now = new Date();
246
       // var now = new Date();

+ 3 - 7
src/pages/main/template/DialysisPrintOrderFive.vue View File

1660
         }
1660
         }
1661
         return ''
1661
         return ''
1662
       }, getAge: function(val) {
1662
       }, getAge: function(val) {
1663
-        if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1664
-          if (val.age == 0) {
1665
-            return jsGetAge(val.birth, '-')
1666
-          } else {
1667
-            return val.age
1668
-          }
1669
-        } else {
1663
+        if (val.birthday != 0) {
1670
           return jsGetAge(val.birth, '-')
1664
           return jsGetAge(val.birth, '-')
1665
+        } else {
1666
+          return ''
1671
         }
1667
         }
1672
       }, newAdviceGroupObject: function() {
1668
       }, newAdviceGroupObject: function() {
1673
         return Object.assign(
1669
         return Object.assign(

+ 6 - 6
src/pages/main/template/DialysisPrintOrderOne.vue View File

1459
         }
1459
         }
1460
         return ''
1460
         return ''
1461
       }, getAge: function(val) {
1461
       }, getAge: function(val) {
1462
-        if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1463
-          if (val.age == 0) {
1462
+        // if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1463
+          if (val.birthday != 0) {
1464
             return jsGetAge(val.birth, '-')
1464
             return jsGetAge(val.birth, '-')
1465
           } else {
1465
           } else {
1466
-            return val.age
1466
+            return ''
1467
           }
1467
           }
1468
-        } else {
1469
-          return jsGetAge(val.birth, '-')
1470
-        }
1468
+        // } else {
1469
+        //   return jsGetAge(val.birth, '-')
1470
+        // }
1471
       }, newAdviceGroupObject: function() {
1471
       }, newAdviceGroupObject: function() {
1472
         return Object.assign(
1472
         return Object.assign(
1473
           {},
1473
           {},

+ 3 - 7
src/pages/main/template/DialysisPrintOrderSix.vue View File

1354
         }
1354
         }
1355
         return ''
1355
         return ''
1356
       }, getAge: function(val) {
1356
       }, getAge: function(val) {
1357
-        if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1358
-          if (val.age == 0) {
1359
-            return jsGetAge(val.birth, '-')
1360
-          } else {
1361
-            return val.age
1362
-          }
1363
-        } else {
1357
+        if (val.birthday != 0) {
1364
           return jsGetAge(val.birth, '-')
1358
           return jsGetAge(val.birth, '-')
1359
+        } else {
1360
+          return ''
1365
         }
1361
         }
1366
       }, newAdviceGroupObject: function() {
1362
       }, newAdviceGroupObject: function() {
1367
         return Object.assign(
1363
         return Object.assign(

+ 3 - 7
src/pages/main/template/DialysisPrintOrderTwo.vue View File

1579
         }
1579
         }
1580
         return ''
1580
         return ''
1581
       }, getAge: function(val) {
1581
       }, getAge: function(val) {
1582
-        if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1583
-          if (val.age == 0) {
1584
-            return jsGetAge(val.birth, '-')
1585
-          } else {
1586
-            return val.age
1587
-          }
1588
-        } else {
1582
+        if (val.birthday != 0) {
1589
           return jsGetAge(val.birth, '-')
1583
           return jsGetAge(val.birth, '-')
1584
+        } else {
1585
+          return ''
1590
         }
1586
         }
1591
       }, newAdviceGroupObject: function() {
1587
       }, newAdviceGroupObject: function() {
1592
         return Object.assign(
1588
         return Object.assign(

+ 4 - 3
src/pages/main/today/detailsInfo.vue View File

115
       return parseTime(this.$route.query.date, "{y}/{m}/{d}");
115
       return parseTime(this.$route.query.date, "{y}/{m}/{d}");
116
     },
116
     },
117
     age: function() {
117
     age: function() {
118
-      if (this.patient.age == 0) {
119
-        return jsGetAge(parseTime(this.patient.birthday, "{y}-{m}-{d}"), "-");
118
+      if (this.patient.birthday == 0) {
119
+        return ''
120
       } else {
120
       } else {
121
-        return this.patient.age;
121
+        return jsGetAge(parseTime(this.patient.birthday, "{y}-{m}-{d}"), "-");
122
+
122
       }
123
       }
123
     },
124
     },
124
     source: function() {
125
     source: function() {