Bläddra i källkod

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

csx 4 år sedan
förälder
incheckning
cf54f51fc0

+ 17 - 0
src/xt_pages/data/prescription.vue Visa fil

@@ -796,10 +796,17 @@
796 796
         })
797 797
 
798 798
       }, selectnDialysisTime(val) {
799
+        console.log(val)
800
+
801
+        console.log( this.addPlan.dialysis_duration)
802
+        console.log( this.addPlan.dialysis_duration_hour)
803
+        console.log( this.addPlan.dialysis_duration_minute)
804
+
799 805
         var valTime = val.split(':')
800 806
         this.addPlan.dialysis_duration = parseFloat(valTime[0]) + parseFloat((valTime[1] / 60).toFixed(2))
801 807
         this.addPlan.dialysis_duration_hour = valTime[0]
802 808
         this.addPlan.dialysis_duration_minute = valTime[1]
809
+
803 810
       }, changeThisAnticoagulant() {
804 811
         var thismode = parseInt(this.addPlan.anticoagulant)
805 812
         if (isNaN(thismode) || thismode <= 0) {
@@ -871,6 +878,10 @@
871 878
 
872 879
     }, watch: {
873 880
       'addPlan.dialysis_duration': function() {
881
+        console.log(this.addPlan.anticoagulant_shouji)
882
+        console.log(this.addPlan.dialysis_duration)
883
+        console.log(this.addPlan.anticoagulant_weichi)
884
+
874 885
         this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
875 886
           this.addPlan.anticoagulant_shouji,
876 887
           this.addPlan.dialysis_duration,
@@ -878,6 +889,9 @@
878 889
         )
879 890
       },
880 891
       'addPlan.anticoagulant_shouji': function() {
892
+        console.log(this.addPlan.anticoagulant_shouji)
893
+        console.log(this.addPlan.dialysis_duration)
894
+        console.log(this.addPlan.anticoagulant_weichi)
881 895
         this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
882 896
           this.addPlan.anticoagulant_shouji,
883 897
           this.addPlan.dialysis_duration,
@@ -885,6 +899,9 @@
885 899
         )
886 900
       },
887 901
       'addPlan.anticoagulant_weichi': function() {
902
+        console.log(this.addPlan.anticoagulant_shouji)
903
+        console.log(this.addPlan.dialysis_duration)
904
+        console.log(this.addPlan.anticoagulant_weichi)
888 905
         this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
889 906
           this.addPlan.anticoagulant_shouji,
890 907
           this.addPlan.dialysis_duration,

+ 15 - 8
src/xt_pages/dialysis/PatientBox.vue Visa fil

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
 <div>
3 3
   <!-- <router-link to="/dialysis/details"> -->
4
-    <div class="patient" v-for="schedule in schedules" v-if="schedule.patient" :class="borderColor(schedule)"  @click="detailAction(schedule)" :key="schedule.id"> 
4
+    <div class="patient" v-for="schedule in schedules" v-if="schedule.patient" :class="borderColor(schedule)"  @click="detailAction(schedule)" :key="schedule.id">
5 5
         <div class="kehu" >
6 6
           <div class="tx">
7 7
             <img :src="schedule.patient.avatar.length > 0 ? schedule.patient.avatar : '../../assets/home/analyze.png'" alt="">
@@ -28,6 +28,7 @@
28 28
 
29 29
 <script>
30 30
 import { parseTime } from "@/utils"
31
+import { jsGetAge } from '@/utils/tools'
31 32
 
32 33
 export default {
33 34
   name: "PatientBox",
@@ -125,7 +126,7 @@ export default {
125 126
         return 1
126 127
       }
127 128
     },
128
-    
129
+
129 130
     orderState: function(schedual) {
130 131
       if (schedual.dialysis_order == null) { // 未上机
131 132
         return 4
@@ -159,12 +160,18 @@ export default {
159 160
       }
160 161
     },
161 162
     age: function(schedual) {
162
-      var now = new Date()
163
-      var nowYear = parseTime(now, "{y}")
164
-      var birthdayYear = parseTime(schedual.patient.birthday, "{y}")
165
-      // console.log(nowYear)
166
-      // console.log(birthdayYear)
167
-      return nowYear - birthdayYear
163
+      if (schedual.patient.birthday == 0){
164
+        return ''
165
+      }else{
166
+        return jsGetAge(parseTime(schedual.patient.birthday, '{y}-{m}-{d}'), '-')
167
+      }
168
+
169
+      // var now = new Date()
170
+      // var nowYear = parseTime(now, "{y}")
171
+      // var birthdayYear = parseTime(schedual.patient.birthday, "{y}")
172
+      // // console.log(nowYear)
173
+      // // console.log(birthdayYear)
174
+      // return nowYear - birthdayYear
168 175
     },
169 176
     detailAction: function(schedual) {
170 177
       var patient_id = schedual.patient_id

+ 1 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_five.vue Visa fil

@@ -1706,14 +1706,11 @@
1706 1706
           return record[key] == target_value
1707 1707
         }
1708 1708
       }, getAge: function(val) {
1709
-        if (val.age == 0) {
1710 1709
           if (val.birthday == 0) {
1711 1710
             return ''
1712 1711
           }
1713 1712
           return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1714
-        } else {
1715
-          return val.age
1716
-        }
1713
+
1717 1714
       }, newAdviceGroupObject: function() {
1718 1715
         return Object.assign(
1719 1716
           {},

+ 0 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_five_one.vue Visa fil

@@ -1253,14 +1253,10 @@
1253 1253
           return record[key] == target_value
1254 1254
         }
1255 1255
       }, getAge: function(val) {
1256
-        if (val.age == 0) {
1257 1256
           if (val.birthday == 0) {
1258 1257
             return ''
1259 1258
           }
1260 1259
           return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1261
-        } else {
1262
-          return val.age
1263
-        }
1264 1260
       }, newAdviceGroupObject: function() {
1265 1261
         return Object.assign(
1266 1262
           {},

+ 195 - 149
src/xt_pages/dialysis/batch_print/batch_print_order_five_two.vue Visa fil

@@ -81,7 +81,8 @@
81 81
                   <!--</div>-->
82 82
                   <div class="inline_block" style="margin-left:20px;">
83 83
                     其它:
84
-                    <div class="under_line" style="width: 100px;text-align: left">{{ record.prescription&&record.prescription.mode_id>5?record.prescription.mode:''}}
84
+                    <div class="under_line" style="width: 100px;text-align: left">{{
85
+                      record.prescription&&record.prescription.mode_id>5?record.prescription.mode:''}}
85 86
                     </div>
86 87
                   </div>
87 88
                   <div class="inline_block" style="margin-left:20px;">
@@ -127,9 +128,12 @@
127 128
                   <div class="inline_block">
128 129
                     体液过多症状:
129 130
                     <check-box text="无" :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 1)"></check-box>
130
-                    <check-box text="下肢水肿+" :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 2)"></check-box>
131
-                    <check-box text="下肢水肿++" :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 4)"></check-box>
132
-                    <check-box text="下肢水肿+++" :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 4)"></check-box>
131
+                    <check-box text="下肢水肿+"
132
+                               :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 2)"></check-box>
133
+                    <check-box text="下肢水肿++"
134
+                               :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 4)"></check-box>
135
+                    <check-box text="下肢水肿+++"
136
+                               :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 4)"></check-box>
133 137
                   </div>
134 138
                   <div class="inline_block">
135 139
                     其它:
@@ -148,9 +152,12 @@
148 152
 
149 153
                   <div class="inline_block" style="margin-left:20px;">
150 154
                     透析前使用特殊药物:
151
-                    <check-box text="无" :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 1)"></check-box>
152
-                    <check-box text="降压药" :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 2)"></check-box>
153
-                    <check-box text="抗凝" :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 3)"></check-box>
155
+                    <check-box text="无"
156
+                               :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 1)"></check-box>
157
+                    <check-box text="降压药"
158
+                               :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 2)"></check-box>
159
+                    <check-box text="抗凝"
160
+                               :checked="isCheckBoxChecked(record.prescription, 'special_medicine', 3)"></check-box>
154 161
                   </div>
155 162
                   <div class="inline_block">
156 163
                     其它:
@@ -163,7 +170,8 @@
163 170
                   <div class="inline_block">
164 171
                     透析液(mmol/L):
165 172
                     &emsp;Ca<sup>2+</sup>:
166
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.prescription&&record.prescription.calcium">
173
+                    <div class="under_line" style="width: 60px;text-align: left"
174
+                         v-if="record.prescription&&record.prescription.calcium">
167 175
                       {{getFloat(record.prescription.calcium)}}
168 176
                     </div>
169 177
                     <div class="under_line" style="width: 60px;" v-else>
@@ -171,7 +179,8 @@
171 179
                     </div>
172 180
                     mmol/L
173 181
                     &emsp;Na<sup>+</sup>:
174
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.prescription&&record.prescription.sodium">
182
+                    <div class="under_line" style="width: 60px;text-align: left"
183
+                         v-if="record.prescription&&record.prescription.sodium">
175 184
                       {{getFloat(record.prescription.sodium)}}
176 185
                     </div>
177 186
                     <div class="under_line" style="width: 60px;" v-else>
@@ -179,7 +188,8 @@
179 188
                     </div>
180 189
                     mmol/L
181 190
                     &emsp;K<sup>+</sup>:
182
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.prescription&&record.prescription.kalium">
191
+                    <div class="under_line" style="width: 60px;text-align: left"
192
+                         v-if="record.prescription&&record.prescription.kalium">
183 193
                       {{getFloat(record.prescription.kalium)}}
184 194
                     </div>
185 195
                     <div class="under_line" style="width: 60px;" v-else>
@@ -191,7 +201,7 @@
191 201
                        v-if="record.prescription == null">
192 202
                     &emsp;置换液后/前稀释 总量:
193 203
 
194
-                    <div class="under_line" style="width: 60px;"  >
204
+                    <div class="under_line" style="width: 60px;">
195 205
                       {{'/'}}
196 206
                     </div>
197 207
                     L
@@ -199,17 +209,20 @@
199 209
                   <div class="inline_block"
200 210
                        v-if="record.prescription != null &&record.prescription.displace_liqui_part == 0">
201 211
                     &emsp;置换液后/前稀释 总量:
202
-                    <div class="under_line" style="width: 60px;text-align: left"  v-if="record.prescription&&record.prescription.displace_liqui_value">
212
+                    <div class="under_line" style="width: 60px;text-align: left"
213
+                         v-if="record.prescription&&record.prescription.displace_liqui_value">
203 214
                       {{record.prescription.displace_liqui_value}}
204 215
                     </div>
205
-                    <div class="under_line" style="width: 60px;"  v-else>
216
+                    <div class="under_line" style="width: 60px;" v-else>
206 217
                       {{'/'}}
207 218
                     </div>
208 219
                     L
209 220
                   </div>
210
-                  <div class="inline_block" v-if="record.prescription != null &&record.prescription.displace_liqui_part == 1">
221
+                  <div class="inline_block"
222
+                       v-if="record.prescription != null &&record.prescription.displace_liqui_part == 1">
211 223
                     &emsp;置换液前稀释 总量:
212
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.prescription&&record.prescription.displace_liqui_value">
224
+                    <div class="under_line" style="width: 60px;text-align: left"
225
+                         v-if="record.prescription&&record.prescription.displace_liqui_value">
213 226
                       {{record.prescription.displace_liqui_value}}
214 227
                     </div>
215 228
                     <div class="under_line" style="width: 60px;" v-else>
@@ -217,9 +230,11 @@
217 230
                     </div>
218 231
                     L
219 232
                   </div>
220
-                  <div class="inline_block" v-if="record.prescription != null &&record.prescription.displace_liqui_part == 2">
233
+                  <div class="inline_block"
234
+                       v-if="record.prescription != null &&record.prescription.displace_liqui_part == 2">
221 235
                     &emsp;置换液后稀释 总量:
222
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.prescription&&record.prescription.displace_liqui_value">
236
+                    <div class="under_line" style="width: 60px;text-align: left"
237
+                         v-if="record.prescription&&record.prescription.displace_liqui_value">
223 238
                       {{record.prescription.displace_liqui_value}}
224 239
                     </div>
225 240
                     <div class="under_line" style="width: 60px;" v-else>
@@ -231,9 +246,12 @@
231 246
                 <div class="row" style="padding: 2px 0;line-height:24px;">
232 247
                   <div class="inline_block">
233 248
                     血管通路:
234
-                    <check-box text="内瘘" :checked="isCheckBoxChecked(record.prescription, 'blood_access', 1)"></check-box>
235
-                    <check-box text="直穿" :checked="isCheckBoxChecked(record.prescription, 'blood_access', 2)"></check-box>
236
-                    <check-box text="导管" :checked="isCheckBoxChecked(record.prescription, 'blood_access', 3)"></check-box>
249
+                    <check-box text="内瘘"
250
+                               :checked="isCheckBoxChecked(record.prescription, 'blood_access', 1)"></check-box>
251
+                    <check-box text="直穿"
252
+                               :checked="isCheckBoxChecked(record.prescription, 'blood_access', 2)"></check-box>
253
+                    <check-box text="导管"
254
+                               :checked="isCheckBoxChecked(record.prescription, 'blood_access', 3)"></check-box>
237 255
                   </div>
238 256
                   <div class="inline_block">
239 257
                     &emsp;血流量:
@@ -259,7 +277,8 @@
259 277
                 <div class="row" style="padding: 2px 0;line-height:24px;">
260 278
                   <div class="inline_block">
261 279
                     透前体重:
262
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.assessment_before_dislysis">
280
+                    <div class="under_line" style="width: 60px;text-align: left"
281
+                         v-if="record.assessment_before_dislysis">
263 282
                       {{record.assessment_before_dislysis.weight_before}}
264 283
                     </div>
265 284
                     <div class="under_line" style="width: 60px;" v-else>
@@ -269,7 +288,8 @@
269 288
                   </div>
270 289
                   <div class="inline_block">
271 290
                     &emsp;设定超滤量:
272
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.prescription&&record.prescription.target_ultrafiltration">
291
+                    <div class="under_line" style="width: 60px;text-align: left"
292
+                         v-if="record.prescription&&record.prescription.target_ultrafiltration">
273 293
                       {{getFloat(record.prescription.target_ultrafiltration)}}
274 294
                     </div>
275 295
                     <div class="under_line" style="width: 60px;" v-else>
@@ -279,7 +299,8 @@
279 299
                   </div>
280 300
                   <div class="inline_block">
281 301
                     &emsp;实际超滤量:
282
-                    <div class="under_line" style="width:60px;text-align: left" v-if="record.assessment_after_dislysis&&record.assessment_after_dislysis.actual_ultrafiltration">
302
+                    <div class="under_line" style="width:60px;text-align: left"
303
+                         v-if="record.assessment_after_dislysis&&record.assessment_after_dislysis.actual_ultrafiltration">
283 304
                       {{getFloat(record.assessment_after_dislysis.actual_ultrafiltration)}}
284 305
                     </div>
285 306
                     <div class="under_line" style="width:60px;" v-else>
@@ -289,7 +310,8 @@
289 310
                   </div>
290 311
                   <div class="inline_block">
291 312
                     透后体重:
292
-                    <div class="under_line" style="width: 60px;text-align: left" v-if="record.assessment_after_dislysis&&record.assessment_after_dislysis.weight_after">
313
+                    <div class="under_line" style="width: 60px;text-align: left"
314
+                         v-if="record.assessment_after_dislysis&&record.assessment_after_dislysis.weight_after">
293 315
                       {{record.assessment_after_dislysis.weight_after}}
294 316
                     </div>
295 317
                     <div class="under_line" style="width: 60px" v-else>
@@ -302,61 +324,68 @@
302 324
             </tr>
303 325
             </tbody>
304 326
           </table>
305
-          <div :style="record.advices2&&record.advices2.length > 0 ? 'margin-bottom:350px;border-top:0;text-align:center;position: relative;border-top:0;':'border-top:0;text-align:center;position: relative;border-top:0;'">
327
+          <div
328
+            :style="record.advices2&&record.advices2.length > 0 ? 'margin-bottom:350px;border-top:0;text-align:center;position: relative;border-top:0;':'border-top:0;text-align:center;position: relative;border-top:0;'">
306 329
             <table class="print-table-no" border="1" style="border-top:0;" count="0">
307 330
               <tbody>
308
-                <tr style="line-height:35px;padding:8px 5px;">
309
-                  <td colspan="7" style="font-size: 18px">医嘱</td>
310
-                </tr>
311
-                <tr style="line-height:35px;padding:8px 5px;">
312
-                  <td colspan="4" style="font-size: 16px">开医嘱</td>
313
-                  <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
314
-                </tr>
315
-                <tr style="line-height:35px;padding:8px 5px;">
316
-                  <td style="font-size: 16px" width="10%">时间</td>
317
-                  <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
318
-                  <td style="font-size: 16px" width="10%">医生签名</td>
319
-                  <td style="font-size: 16px" width="10%">核对人签名</td>
320
-                  <td style="font-size: 16px" width="10%">执行人签名</td>
321
-                  <td style="font-size: 16px" width="10%">时间</td>
331
+              <tr style="line-height:35px;padding:8px 5px;">
332
+                <td colspan="7" style="font-size: 18px">医嘱</td>
333
+              </tr>
334
+              <tr style="line-height:35px;padding:8px 5px;">
335
+                <td colspan="4" style="font-size: 16px">开医嘱</td>
336
+                <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
337
+              </tr>
338
+              <tr style="line-height:35px;padding:8px 5px;">
339
+                <td style="font-size: 16px" width="10%">时间</td>
340
+                <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
341
+                <td style="font-size: 16px" width="10%">医生签名</td>
342
+                <td style="font-size: 16px" width="10%">核对人签名</td>
343
+                <td style="font-size: 16px" width="10%">执行人签名</td>
344
+                <td style="font-size: 16px" width="10%">时间</td>
345
+              </tr>
346
+              <template v-for="(group, group_index) in record.advices">
347
+                <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
348
+                  <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
349
+                    <span v-if="advice.start_time">{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</span>
350
+                    <span v-else>&nbsp;<br/>&nbsp;</span>
351
+                  </td>
352
+                  <td height="60px" class="advice-name" style="padding-left:7px;"
353
+                      :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2"
354
+                      v-if="advice.isShow == 2">
355
+                    <span>{{advice.advice_name }}</span>
356
+                    <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
357
+                    <!--<span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
358
+                    <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
359
+                    <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
360
+                    <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
361
+                    <span v-if="advice.parent_id == 0  &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
362
+                    <span
363
+                      v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0">({{advice.remark}})</span>
364
+                  </td>
365
+                  <td colspan="2" height="60px" style="text-align: center" v-else>
366
+                    <span>{{advice.delivery_way}}</span>
367
+                    <span>{{advice.execution_frequency}}</span>
368
+                    <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
369
+                  </td>
370
+                  <td width="10%"
371
+                      v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2"></td>
372
+                  <td height="60px">
373
+                    <span
374
+                      v-if="setAdminUserES(advice, 'advice_doctor') == ''">{{getAdminUser(advice, 'advice_doctor')}}</span>
375
+                    <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')" alt="" srcset="" v-else>
376
+                  </td>
377
+                  <td height="60px">
378
+                    <span v-if="setAdminUserES(advice, 'checker') == ''">{{getAdminUser(advice, 'checker')}}</span>
379
+                    <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" v-else>
380
+                  </td>
381
+                  <td height="60px">
382
+                    <span v-if="setAdminUserES(advice, 'execution_staff') == ''">{{getAdminUser(advice, 'execution_staff')}}</span>
383
+                    <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')" alt="" srcset="" v-else>
384
+                  </td>
385
+                  <td height="60px"><span v-if="advice.execution_time"> {{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}} </span>
386
+                  </td>
322 387
                 </tr>
323
-                <template v-for="(group, group_index) in record.advices">
324
-                  <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
325
-                    <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
326
-                      <span v-if="advice.start_time">{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</span>
327
-                      <span v-else>&nbsp;<br/>&nbsp;</span>
328
-                    </td>
329
-                    <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
330
-                      <span>{{advice.advice_name }}</span>
331
-                      <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
332
-                       <!--<span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
333
-                      <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
334
-                      <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
335
-                      <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
336
-                      <span v-if="advice.parent_id == 0  &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
337
-                      <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
338
-                    </td>
339
-                    <td colspan="2"  height="60px" style="text-align: center" v-else >
340
-                      <span>{{advice.delivery_way}}</span>
341
-                      <span>{{advice.execution_frequency}}</span>
342
-                      <span v-if="advice.remark.length > 0" >({{advice.remark}})</span>
343
-                    </td>
344
-                    <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
345
-                    <td height="60px">
346
-                      <span v-if="setAdminUserES(advice, 'advice_doctor') == ''">{{getAdminUser(advice, 'advice_doctor')}}</span>
347
-                      <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')" alt="" srcset="" v-else >
348
-                    </td>
349
-                    <td height="60px">
350
-                      <span v-if="setAdminUserES(advice, 'checker') == ''">{{getAdminUser(advice, 'checker')}}</span>
351
-                      <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" v-else >
352
-                    </td>
353
-                    <td height="60px">
354
-                      <span v-if="setAdminUserES(advice, 'execution_staff') == ''">{{getAdminUser(advice, 'execution_staff')}}</span>
355
-                      <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')" alt="" srcset="" v-else >
356
-                    </td>
357
-                    <td height="60px"><span v-if="advice.execution_time"> {{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}} </span> </td>
358
-                  </tr>
359
-                </template>
388
+              </template>
360 389
               </tbody>
361 390
             </table>
362 391
             <div class="print-yema4">1</div>
@@ -407,58 +436,63 @@
407 436
               </div>
408 437
               <table class="print-table-no" border="1" count="0">
409 438
                 <tbody>
410
-                  <tr style="line-height:35px;padding:8px 5px;">
411
-                    <td colspan="7" style="font-size: 18px">医嘱</td>
412
-                  </tr>
413
-                  <tr style="line-height:35px;padding:8px 5px;">
414
-                    <td colspan="4" style="font-size: 16px">开医嘱</td>
415
-                    <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
416
-                  </tr>
417
-                  <tr style="line-height:35px;padding:8px 5px;">
418
-                    <td style="font-size: 16px" width="10%">时间</td>
419
-                    <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
420
-                    <td style="font-size: 16px" width="10%">医生签名</td>
421
-                    <td style="font-size: 16px" width="10%">核对人签名</td>
422
-                    <td style="font-size: 16px" width="10%">执行人签名</td>
423
-                    <td style="font-size: 16px" width="10%">时间</td>
439
+                <tr style="line-height:35px;padding:8px 5px;">
440
+                  <td colspan="7" style="font-size: 18px">医嘱</td>
441
+                </tr>
442
+                <tr style="line-height:35px;padding:8px 5px;">
443
+                  <td colspan="4" style="font-size: 16px">开医嘱</td>
444
+                  <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
445
+                </tr>
446
+                <tr style="line-height:35px;padding:8px 5px;">
447
+                  <td style="font-size: 16px" width="10%">时间</td>
448
+                  <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
449
+                  <td style="font-size: 16px" width="10%">医生签名</td>
450
+                  <td style="font-size: 16px" width="10%">核对人签名</td>
451
+                  <td style="font-size: 16px" width="10%">执行人签名</td>
452
+                  <td style="font-size: 16px" width="10%">时间</td>
453
+                </tr>
454
+                <template v-for="(group, group_index) in record.advices2">
455
+                  <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
456
+                    <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
457
+                      <span v-if="advice.start_time">{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</span>
458
+                      <span v-else>&nbsp;<br/>&nbsp;</span>
459
+                    </td>
460
+                    <td height="60px" class="advice-name" style="padding-left:7px;"
461
+                        :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2"
462
+                        v-if="advice.isShow == 2">
463
+                      <span>{{advice.advice_name }}</span>
464
+                      <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
465
+                      <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
466
+                      <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
467
+                      <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
468
+                      <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
469
+                      <span v-if="advice.parent_id == 0  &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
470
+                      <span
471
+                        v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0">({{advice.remark}})</span>
472
+                    </td>
473
+                    <td colspan="2" height="60px" style="text-align: center" v-else>
474
+                      <span>{{advice.delivery_way}}</span>
475
+                      <span>{{advice.execution_frequency}}</span>
476
+                      <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
477
+                    </td>
478
+                    <td width="10%"
479
+                        v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2"></td>
480
+                    <td height="60px">
481
+                      <span v-if="setAdminUserES(advice, 'advice_doctor') == ''">{{getAdminUser(advice, 'advice_doctor')}}</span>
482
+                      <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')" alt="" srcset="" v-else>
483
+                    </td>
484
+                    <td height="60px">
485
+                      <span v-if="setAdminUserES(advice, 'checker') == ''">{{getAdminUser(advice, 'checker')}}</span>
486
+                      <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" v-else>
487
+                    </td>
488
+                    <td height="60px">
489
+                      <span v-if="setAdminUserES(advice, 'execution_staff') == ''">{{getAdminUser(advice, 'execution_staff')}}</span>
490
+                      <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')" alt="" srcset="" v-else>
491
+                    </td>
492
+                    <td height="60px"><span v-if="advice.execution_time"> {{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}} </span>
493
+                    </td>
424 494
                   </tr>
425
-                  <template v-for="(group, group_index) in record.advices2">
426
-                    <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
427
-                      <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
428
-                        <span v-if="advice.start_time">{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</span>
429
-                        <span v-else>&nbsp;<br/>&nbsp;</span>
430
-                      </td>
431
-                      <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
432
-                        <span>{{advice.advice_name }}</span>
433
-                        <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
434
-                        <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
435
-                        <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
436
-                        <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
437
-                        <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
438
-                        <span v-if="advice.parent_id == 0  &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
439
-                        <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
440
-                      </td>
441
-                      <td colspan="2"  height="60px" style="text-align: center" v-else >
442
-                        <span>{{advice.delivery_way}}</span>
443
-                        <span>{{advice.execution_frequency}}</span>
444
-                        <span v-if="advice.remark.length > 0" >({{advice.remark}})</span>
445
-                      </td>
446
-                      <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
447
-                      <td height="60px">
448
-                        <span v-if="setAdminUserES(advice, 'advice_doctor') == ''">{{getAdminUser(advice, 'advice_doctor')}}</span>
449
-                        <img class="es-img" :src="setAdminUserES(advice, 'advice_doctor')" alt="" srcset="" v-else >
450
-                      </td>
451
-                      <td height="60px">
452
-                        <span v-if="setAdminUserES(advice, 'checker') == ''">{{getAdminUser(advice, 'checker')}}</span>
453
-                        <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" v-else >
454
-                      </td>
455
-                      <td height="60px">
456
-                        <span v-if="setAdminUserES(advice, 'execution_staff') == ''">{{getAdminUser(advice, 'execution_staff')}}</span>
457
-                        <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')" alt="" srcset="" v-else >
458
-                      </td>
459
-                      <td height="60px"><span v-if="advice.execution_time"> {{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}} </span> </td>
460
-                    </tr>
461
-                  </template>
495
+                </template>
462 496
                 </tbody>
463 497
               </table>
464 498
               <div class="print-yema5">2</div>
@@ -476,7 +510,7 @@
476 510
   import { jsGetAge, uParseTime } from '@/utils/tools'
477 511
   import { getDataConfig } from '@/utils/data'
478 512
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
479
-  import print from 'print-js'
513
+
480 514
   export default {
481 515
     name: 'BatchPrintOrder',
482 516
     components: {
@@ -532,7 +566,6 @@
532 566
       this.intake_arr = getDataConfig('hemodialysis', 'intake')
533 567
       this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
534 568
 
535
-
536 569
       var xtuser = this.$store.getters.xt_user
537 570
       this.orgname = xtuser.org.org_name
538 571
       //   this.orgname = "遂溪方济医院";
@@ -696,8 +729,8 @@
696 729
                   if (advice.parent_id > 0) {
697 730
                     if (this.advice_groups.length > 0) {
698 731
                       var parent_group = this.advice_groups[
699
-                        this.advice_groups.length - 1
700
-                      ]
732
+                      this.advice_groups.length - 1
733
+                        ]
701 734
                       if (parent_group.advices.length > 0) {
702 735
                         if (parent_group.advices[0].id == advice.parent_id) {
703 736
                           parent_group.advices.push(advice)
@@ -743,8 +776,8 @@
743 776
                     if (advice.parent_id > 0) {
744 777
                       if (this.advice_groups_2.length > 0) {
745 778
                         var parent_group = this.advice_groups_2[
746
-                          this.advice_groups_2.length - 1
747
-                        ]
779
+                        this.advice_groups_2.length - 1
780
+                          ]
748 781
                         if (parent_group.advices.length > 0) {
749 782
                           if (parent_group.advices[0].id == advice.parent_id) {
750 783
                             parent_group.advices.push(advice)
@@ -949,13 +982,11 @@
949 982
           return record[key] == target_value
950 983
         }
951 984
       }, getAge: function(val) {
952
-        if (val.age == 0) {
953
-          if (val.birthday == 0) {
954
-            return ''
955
-          }
956
-          return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
985
+        val.birth = uParseTime(val.birthday, '{y}-{m}-{d}')
986
+        if (val.birthday != 0) {
987
+          return jsGetAge(val.birth, '-')
957 988
         } else {
958
-          return val.age
989
+          return ''
959 990
         }
960 991
       }, newAdviceGroupObject: function() {
961 992
         return Object.assign(
@@ -1104,34 +1135,49 @@
1104 1135
   .advice-children {
1105 1136
     display: flex;
1106 1137
   }
1107
-   .margin-bottom-300 {
1108
-    margin-bottom:450px;
1138
+
1139
+  .margin-bottom-300 {
1140
+    margin-bottom: 450px;
1109 1141
   }
1142
+
1110 1143
   .margin-bottom-600 {
1111
-    margin-bottom:600px;
1144
+    margin-bottom: 600px;
1112 1145
   }
1146
+
1113 1147
   .margin-bottom-900 {
1114
-    margin-bottom:900px;
1148
+    margin-bottom: 900px;
1115 1149
   }
1116
-  .print-yema{
1150
+
1151
+  .print-yema {
1117 1152
     position: absolute;
1118 1153
     left: 50%;
1119 1154
   }
1120
-  .print-yema2{
1155
+
1156
+  .print-yema2 {
1121 1157
     position: absolute;
1122 1158
     left: 50%;
1123 1159
   }
1124
-  .print-yema3{
1160
+
1161
+  .print-yema3 {
1125 1162
     position: absolute;
1126 1163
     left: 50%;
1127 1164
   }
1128
-  .print-yema4{
1165
+
1166
+  .print-yema4 {
1129 1167
     position: absolute;
1130 1168
     left: 50%;
1131 1169
   }
1132
-  .print-yema5{
1170
+
1171
+  .print-yema5 {
1133 1172
     position: absolute;
1134 1173
     left: 50%;
1135 1174
   }
1136
-  .did_checke::after {content: "\221A";font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}
1175
+
1176
+  .did_checke::after {
1177
+    content: "\221A";
1178
+    font-size: 8px;
1179
+    margin-left: 2px;
1180
+    margin-top: 2px;
1181
+    position: absolute;
1182
+  }
1137 1183
 </style>

+ 0 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue Visa fil

@@ -1614,14 +1614,10 @@
1614 1614
           return record[key] == target_value
1615 1615
         }
1616 1616
       }, getAge: function(val) {
1617
-        if (val.age == 0) {
1618 1617
           if (val.birthday == 0) {
1619 1618
             return ''
1620 1619
           }
1621 1620
           return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1622
-        } else {
1623
-          return val.age
1624
-        }
1625 1621
       }, newAdviceGroupObject: function() {
1626 1622
         return Object.assign(
1627 1623
           {},

+ 0 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue Visa fil

@@ -1170,14 +1170,10 @@
1170 1170
           return record[key] == target_value
1171 1171
         }
1172 1172
       }, getAge: function(val) {
1173
-        if (val.age == 0) {
1174 1173
           if (val.birthday == 0) {
1175 1174
             return ''
1176 1175
           }
1177 1176
           return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1178
-        } else {
1179
-          return val.age
1180
-        }
1181 1177
       }, newAdviceGroupObject: function() {
1182 1178
         return Object.assign(
1183 1179
           {},

+ 4 - 7
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue Visa fil

@@ -937,14 +937,11 @@
937 937
           return record[key] == target_value
938 938
         }
939 939
       }, getAge: function(val) {
940
-        if (val.age == 0) {
941
-          if (val.birthday == 0) {
942
-            return ''
943
-          }
944
-          return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
945
-        } else {
946
-          return val.age
940
+        if (val.birthday == 0) {
941
+          return ''
947 942
         }
943
+        return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
944
+
948 945
       }, newAdviceGroupObject: function() {
949 946
         return Object.assign(
950 947
           {},

+ 7 - 7
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue Visa fil

@@ -322,13 +322,13 @@
322 322
                     <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
323 323
                     <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span></td>
324 324
                   <td>
325
-           
326
-           
327
-           
328
-           
329
-             
330
-             
331
-             
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332 332
                 <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getName(advice.advice_doctor) }}</span>
333 333
                     <img
334 334
                       style="height:20px;"

+ 0 - 4
src/xt_pages/dialysis/details/BasicInfor.vue Visa fil

@@ -103,14 +103,10 @@ export default {
103 103
   },
104 104
   methods: {
105 105
     getAge: function(val) {
106
-      if (val.age == 0) {
107 106
         if (val.birthday == 0) {
108 107
           return ''
109 108
         }
110 109
         return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
111
-      } else {
112
-        return val.age
113
-      }
114 110
     },
115 111
     stepState: function() {
116 112
       return parseInt((Math.random() * 1000) + '') % 2 == 1

+ 1 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Visa fil

@@ -165,7 +165,7 @@
165 165
               <el-select v-model="assessmentBeforeDislysis.blood_access_part_opera_id">
166 166
                 <el-option :key="0" label="请选择" :value="0"></el-option>
167 167
 
168
-                <el-option v-for="item in blood_access_part_opera" :label="item.name" :value="item.id"
168
+                <el-option v-for="item in 8" :label="item.name" :value="item.id"
169 169
                            :key="item.id"></el-option>
170 170
               </el-select>
171 171
             </el-form-item>

+ 4 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue Visa fil

@@ -1538,15 +1538,12 @@
1538 1538
         }
1539 1539
         return ''
1540 1540
       }, getAge: function(val) {
1541
-        if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1542
-          if (val.age == 0) {
1541
+          if(val.birthday != 0){
1543 1542
             return jsGetAge(val.birth, '-')
1544
-          } else {
1545
-            return val.age
1543
+          }else{
1544
+            return ''
1546 1545
           }
1547
-        } else {
1548
-          return jsGetAge(val.birth, '-')
1549
-        }
1546
+
1550 1547
       }, newAdviceGroupObject: function() {
1551 1548
         return Object.assign(
1552 1549
           {},

+ 3 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue Visa fil

@@ -1211,7 +1211,6 @@
1211 1211
         return name
1212 1212
       },
1213 1213
       setAdminUserES(id) {
1214
-        console.log(id)
1215 1214
         if (id == 0) {
1216 1215
           return ''
1217 1216
         }
@@ -1484,15 +1483,11 @@
1484 1483
         }
1485 1484
         return ''
1486 1485
       }, getAge: function(val) {
1487
-        if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1488
-          if (val.age == 0) {
1489
-            return jsGetAge(val.birth, '-')
1490
-          } else {
1491
-            return val.age
1492
-          }
1493
-        } else {
1486
+        if(val.birthday != 0){
1494 1487
           return jsGetAge(val.birth, '-')
1495 1488
         }
1489
+        return ''
1490
+
1496 1491
       }, newAdviceGroupObject: function() {
1497 1492
         return Object.assign(
1498 1493
           {},

+ 11 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue Visa fil

@@ -1176,17 +1176,20 @@
1176 1176
         return ''
1177 1177
       },
1178 1178
       getAge: function(val) {
1179
-        if (
1180
-          this.org_template_info.template_id == 2 ||
1181
-        this.org_template_info.template_id == 0
1182
-        ) {
1183
-          if (val.age == 0) {
1179
+        if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1180
+          if(val.birthday != 0){
1184 1181
             return jsGetAge(val.birth, '-')
1185
-          } else {
1186
-            return val.age
1182
+          }else{
1183
+
1184
+            return ''
1185
+
1187 1186
           }
1188 1187
         } else {
1189
-          return jsGetAge(val.birth, '-')
1188
+          if(val.birthday != 0){
1189
+            return jsGetAge(val.birth, '-')
1190
+          }else{
1191
+            return ''
1192
+          }
1190 1193
         }
1191 1194
       },
1192 1195
       newAdviceGroupObject: function() {

+ 19 - 18
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Visa fil

@@ -905,14 +905,14 @@
905 905
                           monitor.venous_pressure ? monitor.venous_pressure : ""
906 906
                         }}
907 907
                       </td>
908
-                      <td v-if="monitor.operate_time > dialysisOrder.end_time">
908
+                      <td v-if="dialysisOrder && (monitor.operate_time > dialysisOrder.end_time)">
909 909
                         {{
910 910
                           monitor.transmembrane_pressure
911 911
                             ? monitor.transmembrane_pressure
912 912
                             : ""
913 913
                         }}
914 914
                       </td>
915
-                      <td v-if="monitor.operate_time <= dialysisOrder.end_time">
915
+                      <td v-if="dialysisOrder && (monitor.operate_time <= dialysisOrder.end_time)">
916 916
                         {{
917 917
                           monitor.transmembrane_pressure
918 918
                             ? monitor.transmembrane_pressure
@@ -933,14 +933,14 @@
933 933
                             : ""
934 934
                         }}
935 935
                       </td>
936
-                      <td v-if="monitor.operate_time > dialysisOrder.end_time">
936
+                      <td v-if="dialysisOrder && (monitor.operate_time > dialysisOrder.end_time)">
937 937
                         {{
938 938
                           monitor.ultrafiltration_volume
939 939
                             ? monitor.ultrafiltration_volume
940 940
                             : ""
941 941
                         }}
942 942
                       </td>
943
-                      <td v-if="monitor.operate_time <= dialysisOrder.end_time">
943
+                      <td v-if="dialysisOrder && (monitor.operate_time <= dialysisOrder.end_time)">
944 944
                         {{
945 945
                           monitor.ultrafiltration_volume
946 946
                             ? monitor.ultrafiltration_volume
@@ -949,7 +949,7 @@
949 949
                       </td>
950 950
                       <td
951 951
                         v-if="
952
-                          (prescription.mode_id == 2 ||
952
+                          dialysisOrder && (prescription.mode_id == 2 ||
953 953
                             prescription.mode_id == 5) &&
954 954
                             monitor.operate_time > dialysisOrder.end_time
955 955
                         "
@@ -963,7 +963,7 @@
963 963
                       </td>
964 964
                       <td
965 965
                         v-if="
966
-                          (prescription.mode_id == 2 ||
966
+                         dialysisOrder && (prescription.mode_id == 2 ||
967 967
                             prescription.mode_id == 5) &&
968 968
                             monitor.operate_time <= dialysisOrder.end_time
969 969
                         "
@@ -983,9 +983,7 @@
983 983
                             style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"
984 984
                           >
985 985
                             <template
986
-                              v-if="
987
-                                monitor.operate_time == dialysisOrder.start_time
988
-                              "
986
+                              v-if="monitor.operate_time == dialysisOrder.start_time"
989 987
                               >【开始透析】</template
990 988
                             >
991 989
                             {{ monitor.end }}
@@ -2526,17 +2524,20 @@ export default {
2526 2524
       return "";
2527 2525
     },
2528 2526
     getAge: function(val) {
2529
-      if (
2530
-        this.org_template_info.template_id == 2 ||
2531
-        this.org_template_info.template_id == 0
2532
-      ) {
2533
-        if (val.age == 0) {
2534
-          return jsGetAge(val.birth, "-");
2535
-        } else {
2536
-          return val.age;
2527
+      if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
2528
+        if(val.birthday != 0){
2529
+          return jsGetAge(val.birth, '-')
2530
+        }else{
2531
+
2532
+          return ''
2533
+
2537 2534
         }
2538 2535
       } else {
2539
-        return jsGetAge(val.birth, "-");
2536
+        if(val.birthday != 0){
2537
+          return jsGetAge(val.birth, '-')
2538
+        }else{
2539
+          return ''
2540
+        }
2540 2541
       }
2541 2542
     },
2542 2543
     newAdviceGroupObject: function() {

+ 10 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue Visa fil

@@ -1525,13 +1525,19 @@
1525 1525
         return ''
1526 1526
       }, getAge: function(val) {
1527 1527
         if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1528
-          if (val.age == 0) {
1528
+          if(val.birthday != 0){
1529 1529
             return jsGetAge(val.birth, '-')
1530
-          } else {
1531
-            return val.age
1530
+          }else{
1531
+
1532
+            return ''
1533
+
1532 1534
           }
1533 1535
         } else {
1534
-          return jsGetAge(val.birth, '-')
1536
+          if(val.birthday != 0){
1537
+            return jsGetAge(val.birth, '-')
1538
+          }else{
1539
+            return ''
1540
+          }
1535 1541
         }
1536 1542
       }, newAdviceGroupObject: function() {
1537 1543
         return Object.assign(

Filskillnaden har hållits tillbaka eftersom den är för stor
+ 425 - 295
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue


+ 10 - 4
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Visa fil

@@ -1582,13 +1582,19 @@
1582 1582
         return ''
1583 1583
       }, getAge: function(val) {
1584 1584
         if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1585
-          if (val.age == 0) {
1585
+          if(val.birthday != 0){
1586 1586
             return jsGetAge(val.birth, '-')
1587
-          } else {
1588
-            return val.age
1587
+          }else{
1588
+
1589
+            return ''
1590
+
1589 1591
           }
1590 1592
         } else {
1591
-          return jsGetAge(val.birth, '-')
1593
+          if(val.birthday != 0){
1594
+            return jsGetAge(val.birth, '-')
1595
+          }else{
1596
+            return ''
1597
+          }
1592 1598
         }
1593 1599
       }, newAdviceGroupObject: function() {
1594 1600
         return Object.assign(

+ 1 - 5
src/xt_pages/upload/fast/One.vue Visa fil

@@ -475,7 +475,7 @@
475 475
 </template>
476 476
 <script>
477 477
 import { getDataConfig } from "@/utils/data";
478
-import { uParseTime } from "@/utils/tools";
478
+import { uParseTime,jsGetAge } from "@/utils/tools";
479 479
 import { fetchPatient } from "@/api/patient";
480 480
 import { fetchAllAdminUsers } from "@/api/doctor";
481 481
 const defaultForm = {
@@ -633,11 +633,7 @@ export default {
633 633
             this.form.work = patietInfo.work_unit;
634 634
             this.form.unit_address = patietInfo.unit_address;
635 635
 
636
-            if (patietInfo.age == 0) {
637 636
               this.form.age = jsGetAge(this.form.birth, "-");
638
-            } else {
639
-              this.form.age = patietInfo.age;
640
-            }
641 637
 
642 638
             if (patietInfo.profession > 0) {
643 639
               this.form.profession = patietInfo.profession;