Procházet zdrojové kódy

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

csx před 6 roky
rodič
revize
299de7bd72

+ 19 - 22
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue Zobrazit soubor

@@ -255,7 +255,7 @@
255 255
                           <td>{{''}}</td>
256 256
                           <td>{{''}}</td>
257 257
                           <td>{{''}}</td>
258
-                          <td style="line-height:16px;padding:0px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> {{record.assessment_before_dislysis&&record.assessment_before_dislysis.remark.length>0?record.assessment_before_dislysis.remark:''}}</span></div></td>
258
+                          <td style="line-height:16px;padding:0px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> {{record.assessment_before_dislysis&&record.assessment_before_dislysis.remark.length>0?record.assessment_before_dislysis.remark:''}}</span></div></td>
259 259
                           <td>
260 260
                             <span v-if="setAdminUserES(record.assessment_before_dislysis.creater) == ''">{{getAdminUser(record.assessment_before_dislysis.creater)}}</span>
261 261
                             <img class="es-img" :src="setAdminUserES(record.assessment_before_dislysis.creater)"  alt="" srcset="" v-else>
@@ -270,7 +270,7 @@
270 270
                           <td>{{monitor_record.blood_flow_volume?monitor_record.blood_flow_volume:''}}</td>
271 271
                           <td>{{monitor_record.ultrafiltration_volume?monitor_record.ultrafiltration_volume:''}}</td>
272 272
                           <td>{{monitor_record.sodium_concentration?monitor_record.sodium_concentration:''}}</td>
273
-                          <td style="line-height:16px;padding:0px;"> <div style="height:48px;line-height:48px; overflow:hidden;"><span style="margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor_record.symptom}}&nbsp;{{monitor_record.dispose}}&nbsp;{{monitor_record.result}}</span></div></td>
273
+                          <td style="line-height:16px;padding:0px;"> <div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor_record.symptom}}&nbsp;{{monitor_record.dispose}}&nbsp;{{monitor_record.result}}</span></div></td>
274 274
                           <td><span v-if="setAdminUserES(monitor_record, 'monitoring_nurse') == ''">{{getAdminUser(monitor_record, 'monitoring_nurse')}}</span><img class="es-img" :src="setAdminUserES(monitor_record, 'monitoring_nurse')" alt="" srcset=""  v-else style="height: 20px;"></td>
275 275
                         </tr>
276 276
                       </tbody>
@@ -349,7 +349,7 @@
349 349
                           <td>{{monitor_record.blood_flow_volume?monitor_record.blood_flow_volume:''}}</td>
350 350
                           <td>{{monitor_record.ultrafiltration_volume?monitor_record.ultrafiltration_volume:''}}</td>
351 351
                           <td>{{monitor_record.sodium_concentration?monitor_record.sodium_concentration:''}}</td>
352
-                          <td style="line-height:16px;padding:0px;"> <div style="height:48px;line-height:48px; overflow:hidden;"><span style="margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> {{monitor_record.symptom}}&nbsp;{{monitor_record.dispose}}&nbsp;{{monitor_record.result}}</span></div></td>
352
+                          <td style="line-height:16px;padding:0px;"> <div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> {{monitor_record.symptom}}&nbsp;{{monitor_record.dispose}}&nbsp;{{monitor_record.result}}</span></div></td>
353 353
                           <td><span v-if="setAdminUserES(monitor_record, 'monitoring_nurse') == ''">{{getAdminUser(monitor_record, 'monitoring_nurse')}}</span><img class="es-img" :src="setAdminUserES(monitor_record, 'monitoring_nurse')" alt="" srcset=""  v-else style="height: 20px;"></td>
354 354
                         </tr>
355 355
                       </tbody>
@@ -982,8 +982,8 @@
982 982
             var dlegh = 0
983 983
             if (this.records[recordIndex].monitor_records && this.records[recordIndex].monitor_records.length < 8) {
984 984
               dlegh = 7 - this.records[recordIndex].monitor_records.length
985
-            } 
986
-            if(this.records[recordIndex].monitor_records.length <=0 ){
985
+            }
986
+            if (this.records[recordIndex].monitor_records.length <= 0) {
987 987
               dlegh = 7
988 988
             }
989 989
             if (dlegh > 0) {
@@ -996,19 +996,19 @@
996 996
             }
997 997
 
998 998
             this.records[recordIndex].monitor_records2 = []
999
-            if (this.records[recordIndex].monitor_records.length > 15){
999
+            if (this.records[recordIndex].monitor_records.length > 12) {
1000 1000
               const tempMonitors = []
1001 1001
               const tempMonitors2 = []
1002 1002
 
1003 1003
               for (let index = 0; index < this.records[recordIndex].monitor_records.length; index++) {
1004
-                if (index < 15) {
1004
+                if (index < 12) {
1005 1005
                   tempMonitors.push(this.records[recordIndex].monitor_records[index])
1006 1006
                 } else {
1007 1007
                   tempMonitors2.push(this.records[recordIndex].monitor_records[index])
1008 1008
                 }
1009 1009
               }
1010
-            this.records[recordIndex].monitor_records = tempMonitors
1011
-            this.records[recordIndex].monitor_records2 = tempMonitors2
1010
+              this.records[recordIndex].monitor_records = tempMonitors
1011
+              this.records[recordIndex].monitor_records2 = tempMonitors2
1012 1012
             }
1013 1013
 
1014 1014
             var childMap = {}
@@ -1051,7 +1051,6 @@
1051 1051
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
1052 1052
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
1053 1053
 
1054
-
1055 1054
                   var doctor_advice = {
1056 1055
                     delivery_way: this.doctor_advices[index].delivery_way,
1057 1056
                     execution_frequency: this.doctor_advices[index].execution_frequency,
@@ -1063,8 +1062,7 @@
1063 1062
                     execution_staff: this.doctor_advices[index].execution_staff,
1064 1063
                     checker: this.doctor_advices[index].checker,
1065 1064
                     advice_doctor: this.doctor_advices[index].advice_doctor,
1066
-                    execution_time: this.doctor_advices[index].execution_time,
1067
-
1065
+                    execution_time: this.doctor_advices[index].execution_time
1068 1066
 
1069 1067
                   }
1070 1068
                   doctor_advice['isShow'] = 1
@@ -1292,23 +1290,22 @@
1292 1290
         } else {
1293 1291
           return ''
1294 1292
         }
1295
-      },getFloat: function(x) {
1293
+      }, getFloat: function(x) {
1296 1294
         if (x != '.') {
1297
-          var f = Math.round(x * 100) / 100;
1298
-          var s = f.toString();
1299
-          var rs = s.indexOf('.');
1295
+          var f = Math.round(x * 100) / 100
1296
+          var s = f.toString()
1297
+          var rs = s.indexOf('.')
1300 1298
           if (rs <= 0) {
1301
-            rs = s.length;
1302
-            s += '.';
1299
+            rs = s.length
1300
+            s += '.'
1303 1301
           }
1304 1302
           while (s.length <= rs + 1) {
1305
-            s += '0';
1303
+            s += '0'
1306 1304
           }
1307
-          return s;
1305
+          return s
1308 1306
         } else {
1309
-          return '0.0';
1307
+          return '0.0'
1310 1308
         }
1311
-
1312 1309
       },
1313 1310
       getAdminUser(key, id) {
1314 1311
         if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {

+ 3 - 3
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Zobrazit soubor

@@ -247,7 +247,7 @@
247 247
                       <td>{{''}}</td>
248 248
                       <td>{{''}}</td>
249 249
                       <td>{{''}}</td>
250
-                      <td style="line-height:16px;padding:0px;"> <div style="height:48px;line-height:48px; overflow:hidden;"><span style="margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> {{predialysis.remark}}</span></div></td>
250
+                      <td style="line-height:16px;padding:0px;"> <div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> {{predialysis.remark}}</span></div></td>
251 251
                       <td>
252 252
                         <span v-if="setAdminUserES(predialysis.creater) == ''">{{getAdminUser(predialysis.creater)}}</span>
253 253
                         <img class="es-img" :src="setAdminUserES(predialysis.creater)"  alt="" srcset="" v-else>
@@ -264,7 +264,7 @@
264 264
                       <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
265 265
                       <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
266 266
                       <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
267
-                      <td style="line-height:16px;padding:0px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}} </span> </div></td>
267
+                      <td style="line-height:16px;padding:0px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}} </span> </div></td>
268 268
                       <td>
269 269
                         <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">{{getAdminUser(monitor.monitoring_nurse)}}</span>
270 270
                         <img class="es-img" :src="setAdminUserES(monitor.monitoring_nurse)"  alt="" srcset="" v-else>
@@ -345,7 +345,7 @@
345 345
                       <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
346 346
                       <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
347 347
                       <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
348
-                      <td style="line-height:16px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}}</span></div>  </td>
348
+                      <td style="line-height:16px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}}</span></div>  </td>
349 349
                       <td>
350 350
                         <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">{{getAdminUser(monitor.monitoring_nurse)}}</span>
351 351
                         <img class="es-img" :src="setAdminUserES(monitor.monitoring_nurse)"  alt="" srcset="" v-else>