Browse Source

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

csx 4 years ago
parent
commit
cf54f51fc0

+ 17 - 0
src/xt_pages/data/prescription.vue View File

796
         })
796
         })
797
 
797
 
798
       }, selectnDialysisTime(val) {
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
         var valTime = val.split(':')
805
         var valTime = val.split(':')
800
         this.addPlan.dialysis_duration = parseFloat(valTime[0]) + parseFloat((valTime[1] / 60).toFixed(2))
806
         this.addPlan.dialysis_duration = parseFloat(valTime[0]) + parseFloat((valTime[1] / 60).toFixed(2))
801
         this.addPlan.dialysis_duration_hour = valTime[0]
807
         this.addPlan.dialysis_duration_hour = valTime[0]
802
         this.addPlan.dialysis_duration_minute = valTime[1]
808
         this.addPlan.dialysis_duration_minute = valTime[1]
809
+
803
       }, changeThisAnticoagulant() {
810
       }, changeThisAnticoagulant() {
804
         var thismode = parseInt(this.addPlan.anticoagulant)
811
         var thismode = parseInt(this.addPlan.anticoagulant)
805
         if (isNaN(thismode) || thismode <= 0) {
812
         if (isNaN(thismode) || thismode <= 0) {
871
 
878
 
872
     }, watch: {
879
     }, watch: {
873
       'addPlan.dialysis_duration': function() {
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
         this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
885
         this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
875
           this.addPlan.anticoagulant_shouji,
886
           this.addPlan.anticoagulant_shouji,
876
           this.addPlan.dialysis_duration,
887
           this.addPlan.dialysis_duration,
878
         )
889
         )
879
       },
890
       },
880
       'addPlan.anticoagulant_shouji': function() {
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
         this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
895
         this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
882
           this.addPlan.anticoagulant_shouji,
896
           this.addPlan.anticoagulant_shouji,
883
           this.addPlan.dialysis_duration,
897
           this.addPlan.dialysis_duration,
885
         )
899
         )
886
       },
900
       },
887
       'addPlan.anticoagulant_weichi': function() {
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
         this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
905
         this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
889
           this.addPlan.anticoagulant_shouji,
906
           this.addPlan.anticoagulant_shouji,
890
           this.addPlan.dialysis_duration,
907
           this.addPlan.dialysis_duration,

+ 15 - 8
src/xt_pages/dialysis/PatientBox.vue View File

1
 <template>
1
 <template>
2
 <div>
2
 <div>
3
   <!-- <router-link to="/dialysis/details"> -->
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
         <div class="kehu" >
5
         <div class="kehu" >
6
           <div class="tx">
6
           <div class="tx">
7
             <img :src="schedule.patient.avatar.length > 0 ? schedule.patient.avatar : '../../assets/home/analyze.png'" alt="">
7
             <img :src="schedule.patient.avatar.length > 0 ? schedule.patient.avatar : '../../assets/home/analyze.png'" alt="">
28
 
28
 
29
 <script>
29
 <script>
30
 import { parseTime } from "@/utils"
30
 import { parseTime } from "@/utils"
31
+import { jsGetAge } from '@/utils/tools'
31
 
32
 
32
 export default {
33
 export default {
33
   name: "PatientBox",
34
   name: "PatientBox",
125
         return 1
126
         return 1
126
       }
127
       }
127
     },
128
     },
128
-    
129
+
129
     orderState: function(schedual) {
130
     orderState: function(schedual) {
130
       if (schedual.dialysis_order == null) { // 未上机
131
       if (schedual.dialysis_order == null) { // 未上机
131
         return 4
132
         return 4
159
       }
160
       }
160
     },
161
     },
161
     age: function(schedual) {
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
     detailAction: function(schedual) {
176
     detailAction: function(schedual) {
170
       var patient_id = schedual.patient_id
177
       var patient_id = schedual.patient_id

+ 1 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_five.vue View File

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

+ 0 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_five_one.vue View File

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

+ 195 - 149
src/xt_pages/dialysis/batch_print/batch_print_order_five_two.vue View File

81
                   <!--</div>-->
81
                   <!--</div>-->
82
                   <div class="inline_block" style="margin-left:20px;">
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
                     </div>
86
                     </div>
86
                   </div>
87
                   </div>
87
                   <div class="inline_block" style="margin-left:20px;">
88
                   <div class="inline_block" style="margin-left:20px;">
127
                   <div class="inline_block">
128
                   <div class="inline_block">
128
                     体液过多症状:
129
                     体液过多症状:
129
                     <check-box text="无" :checked="isCheckBoxChecked(record.prescription, 'body_fluid', 1)"></check-box>
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
                   </div>
137
                   </div>
134
                   <div class="inline_block">
138
                   <div class="inline_block">
135
                     其它:
139
                     其它:
148
 
152
 
149
                   <div class="inline_block" style="margin-left:20px;">
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
                   </div>
161
                   </div>
155
                   <div class="inline_block">
162
                   <div class="inline_block">
156
                     其它:
163
                     其它:
163
                   <div class="inline_block">
170
                   <div class="inline_block">
164
                     透析液(mmol/L):
171
                     透析液(mmol/L):
165
                     &emsp;Ca<sup>2+</sup>:
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
                       {{getFloat(record.prescription.calcium)}}
175
                       {{getFloat(record.prescription.calcium)}}
168
                     </div>
176
                     </div>
169
                     <div class="under_line" style="width: 60px;" v-else>
177
                     <div class="under_line" style="width: 60px;" v-else>
171
                     </div>
179
                     </div>
172
                     mmol/L
180
                     mmol/L
173
                     &emsp;Na<sup>+</sup>:
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
                       {{getFloat(record.prescription.sodium)}}
184
                       {{getFloat(record.prescription.sodium)}}
176
                     </div>
185
                     </div>
177
                     <div class="under_line" style="width: 60px;" v-else>
186
                     <div class="under_line" style="width: 60px;" v-else>
179
                     </div>
188
                     </div>
180
                     mmol/L
189
                     mmol/L
181
                     &emsp;K<sup>+</sup>:
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
                       {{getFloat(record.prescription.kalium)}}
193
                       {{getFloat(record.prescription.kalium)}}
184
                     </div>
194
                     </div>
185
                     <div class="under_line" style="width: 60px;" v-else>
195
                     <div class="under_line" style="width: 60px;" v-else>
191
                        v-if="record.prescription == null">
201
                        v-if="record.prescription == null">
192
                     &emsp;置换液后/前稀释 总量:
202
                     &emsp;置换液后/前稀释 总量:
193
 
203
 
194
-                    <div class="under_line" style="width: 60px;"  >
204
+                    <div class="under_line" style="width: 60px;">
195
                       {{'/'}}
205
                       {{'/'}}
196
                     </div>
206
                     </div>
197
                     L
207
                     L
199
                   <div class="inline_block"
209
                   <div class="inline_block"
200
                        v-if="record.prescription != null &&record.prescription.displace_liqui_part == 0">
210
                        v-if="record.prescription != null &&record.prescription.displace_liqui_part == 0">
201
                     &emsp;置换液后/前稀释 总量:
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
                       {{record.prescription.displace_liqui_value}}
214
                       {{record.prescription.displace_liqui_value}}
204
                     </div>
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
                     </div>
218
                     </div>
208
                     L
219
                     L
209
                   </div>
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
                     &emsp;置换液前稀释 总量:
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
                       {{record.prescription.displace_liqui_value}}
226
                       {{record.prescription.displace_liqui_value}}
214
                     </div>
227
                     </div>
215
                     <div class="under_line" style="width: 60px;" v-else>
228
                     <div class="under_line" style="width: 60px;" v-else>
217
                     </div>
230
                     </div>
218
                     L
231
                     L
219
                   </div>
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
                     &emsp;置换液后稀释 总量:
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
                       {{record.prescription.displace_liqui_value}}
238
                       {{record.prescription.displace_liqui_value}}
224
                     </div>
239
                     </div>
225
                     <div class="under_line" style="width: 60px;" v-else>
240
                     <div class="under_line" style="width: 60px;" v-else>
231
                 <div class="row" style="padding: 2px 0;line-height:24px;">
246
                 <div class="row" style="padding: 2px 0;line-height:24px;">
232
                   <div class="inline_block">
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
                   </div>
255
                   </div>
238
                   <div class="inline_block">
256
                   <div class="inline_block">
239
                     &emsp;血流量:
257
                     &emsp;血流量:
259
                 <div class="row" style="padding: 2px 0;line-height:24px;">
277
                 <div class="row" style="padding: 2px 0;line-height:24px;">
260
                   <div class="inline_block">
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
                       {{record.assessment_before_dislysis.weight_before}}
282
                       {{record.assessment_before_dislysis.weight_before}}
264
                     </div>
283
                     </div>
265
                     <div class="under_line" style="width: 60px;" v-else>
284
                     <div class="under_line" style="width: 60px;" v-else>
269
                   </div>
288
                   </div>
270
                   <div class="inline_block">
289
                   <div class="inline_block">
271
                     &emsp;设定超滤量:
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
                       {{getFloat(record.prescription.target_ultrafiltration)}}
293
                       {{getFloat(record.prescription.target_ultrafiltration)}}
274
                     </div>
294
                     </div>
275
                     <div class="under_line" style="width: 60px;" v-else>
295
                     <div class="under_line" style="width: 60px;" v-else>
279
                   </div>
299
                   </div>
280
                   <div class="inline_block">
300
                   <div class="inline_block">
281
                     &emsp;实际超滤量:
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
                       {{getFloat(record.assessment_after_dislysis.actual_ultrafiltration)}}
304
                       {{getFloat(record.assessment_after_dislysis.actual_ultrafiltration)}}
284
                     </div>
305
                     </div>
285
                     <div class="under_line" style="width:60px;" v-else>
306
                     <div class="under_line" style="width:60px;" v-else>
289
                   </div>
310
                   </div>
290
                   <div class="inline_block">
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
                       {{record.assessment_after_dislysis.weight_after}}
315
                       {{record.assessment_after_dislysis.weight_after}}
294
                     </div>
316
                     </div>
295
                     <div class="under_line" style="width: 60px" v-else>
317
                     <div class="under_line" style="width: 60px" v-else>
302
             </tr>
324
             </tr>
303
             </tbody>
325
             </tbody>
304
           </table>
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
             <table class="print-table-no" border="1" style="border-top:0;" count="0">
329
             <table class="print-table-no" border="1" style="border-top:0;" count="0">
307
               <tbody>
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
                 </tr>
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
               </tbody>
389
               </tbody>
361
             </table>
390
             </table>
362
             <div class="print-yema4">1</div>
391
             <div class="print-yema4">1</div>
407
               </div>
436
               </div>
408
               <table class="print-table-no" border="1" count="0">
437
               <table class="print-table-no" border="1" count="0">
409
                 <tbody>
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
                   </tr>
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
                 </tbody>
496
                 </tbody>
463
               </table>
497
               </table>
464
               <div class="print-yema5">2</div>
498
               <div class="print-yema5">2</div>
476
   import { jsGetAge, uParseTime } from '@/utils/tools'
510
   import { jsGetAge, uParseTime } from '@/utils/tools'
477
   import { getDataConfig } from '@/utils/data'
511
   import { getDataConfig } from '@/utils/data'
478
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
512
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
479
-  import print from 'print-js'
513
+
480
   export default {
514
   export default {
481
     name: 'BatchPrintOrder',
515
     name: 'BatchPrintOrder',
482
     components: {
516
     components: {
532
       this.intake_arr = getDataConfig('hemodialysis', 'intake')
566
       this.intake_arr = getDataConfig('hemodialysis', 'intake')
533
       this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
567
       this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
534
 
568
 
535
-
536
       var xtuser = this.$store.getters.xt_user
569
       var xtuser = this.$store.getters.xt_user
537
       this.orgname = xtuser.org.org_name
570
       this.orgname = xtuser.org.org_name
538
       //   this.orgname = "遂溪方济医院";
571
       //   this.orgname = "遂溪方济医院";
696
                   if (advice.parent_id > 0) {
729
                   if (advice.parent_id > 0) {
697
                     if (this.advice_groups.length > 0) {
730
                     if (this.advice_groups.length > 0) {
698
                       var parent_group = this.advice_groups[
731
                       var parent_group = this.advice_groups[
699
-                        this.advice_groups.length - 1
700
-                      ]
732
+                      this.advice_groups.length - 1
733
+                        ]
701
                       if (parent_group.advices.length > 0) {
734
                       if (parent_group.advices.length > 0) {
702
                         if (parent_group.advices[0].id == advice.parent_id) {
735
                         if (parent_group.advices[0].id == advice.parent_id) {
703
                           parent_group.advices.push(advice)
736
                           parent_group.advices.push(advice)
743
                     if (advice.parent_id > 0) {
776
                     if (advice.parent_id > 0) {
744
                       if (this.advice_groups_2.length > 0) {
777
                       if (this.advice_groups_2.length > 0) {
745
                         var parent_group = this.advice_groups_2[
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
                         if (parent_group.advices.length > 0) {
781
                         if (parent_group.advices.length > 0) {
749
                           if (parent_group.advices[0].id == advice.parent_id) {
782
                           if (parent_group.advices[0].id == advice.parent_id) {
750
                             parent_group.advices.push(advice)
783
                             parent_group.advices.push(advice)
949
           return record[key] == target_value
982
           return record[key] == target_value
950
         }
983
         }
951
       }, getAge: function(val) {
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
         } else {
988
         } else {
958
-          return val.age
989
+          return ''
959
         }
990
         }
960
       }, newAdviceGroupObject: function() {
991
       }, newAdviceGroupObject: function() {
961
         return Object.assign(
992
         return Object.assign(
1104
   .advice-children {
1135
   .advice-children {
1105
     display: flex;
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
   .margin-bottom-600 {
1143
   .margin-bottom-600 {
1111
-    margin-bottom:600px;
1144
+    margin-bottom: 600px;
1112
   }
1145
   }
1146
+
1113
   .margin-bottom-900 {
1147
   .margin-bottom-900 {
1114
-    margin-bottom:900px;
1148
+    margin-bottom: 900px;
1115
   }
1149
   }
1116
-  .print-yema{
1150
+
1151
+  .print-yema {
1117
     position: absolute;
1152
     position: absolute;
1118
     left: 50%;
1153
     left: 50%;
1119
   }
1154
   }
1120
-  .print-yema2{
1155
+
1156
+  .print-yema2 {
1121
     position: absolute;
1157
     position: absolute;
1122
     left: 50%;
1158
     left: 50%;
1123
   }
1159
   }
1124
-  .print-yema3{
1160
+
1161
+  .print-yema3 {
1125
     position: absolute;
1162
     position: absolute;
1126
     left: 50%;
1163
     left: 50%;
1127
   }
1164
   }
1128
-  .print-yema4{
1165
+
1166
+  .print-yema4 {
1129
     position: absolute;
1167
     position: absolute;
1130
     left: 50%;
1168
     left: 50%;
1131
   }
1169
   }
1132
-  .print-yema5{
1170
+
1171
+  .print-yema5 {
1133
     position: absolute;
1172
     position: absolute;
1134
     left: 50%;
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
 </style>
1183
 </style>

+ 0 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue View File

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

+ 0 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue View File

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

+ 4 - 7
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue View File

937
           return record[key] == target_value
937
           return record[key] == target_value
938
         }
938
         }
939
       }, getAge: function(val) {
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
       }, newAdviceGroupObject: function() {
945
       }, newAdviceGroupObject: function() {
949
         return Object.assign(
946
         return Object.assign(
950
           {},
947
           {},

+ 7 - 7
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue View File

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

+ 0 - 4
src/xt_pages/dialysis/details/BasicInfor.vue View File

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

+ 1 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

165
               <el-select v-model="assessmentBeforeDislysis.blood_access_part_opera_id">
165
               <el-select v-model="assessmentBeforeDislysis.blood_access_part_opera_id">
166
                 <el-option :key="0" label="请选择" :value="0"></el-option>
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
                            :key="item.id"></el-option>
169
                            :key="item.id"></el-option>
170
               </el-select>
170
               </el-select>
171
             </el-form-item>
171
             </el-form-item>

+ 4 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue View File

1538
         }
1538
         }
1539
         return ''
1539
         return ''
1540
       }, getAge: function(val) {
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
             return jsGetAge(val.birth, '-')
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
       }, newAdviceGroupObject: function() {
1547
       }, newAdviceGroupObject: function() {
1551
         return Object.assign(
1548
         return Object.assign(
1552
           {},
1549
           {},

+ 3 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue View File

1211
         return name
1211
         return name
1212
       },
1212
       },
1213
       setAdminUserES(id) {
1213
       setAdminUserES(id) {
1214
-        console.log(id)
1215
         if (id == 0) {
1214
         if (id == 0) {
1216
           return ''
1215
           return ''
1217
         }
1216
         }
1484
         }
1483
         }
1485
         return ''
1484
         return ''
1486
       }, getAge: function(val) {
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
           return jsGetAge(val.birth, '-')
1487
           return jsGetAge(val.birth, '-')
1495
         }
1488
         }
1489
+        return ''
1490
+
1496
       }, newAdviceGroupObject: function() {
1491
       }, newAdviceGroupObject: function() {
1497
         return Object.assign(
1492
         return Object.assign(
1498
           {},
1493
           {},

+ 11 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue View File

1176
         return ''
1176
         return ''
1177
       },
1177
       },
1178
       getAge: function(val) {
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
             return jsGetAge(val.birth, '-')
1181
             return jsGetAge(val.birth, '-')
1185
-          } else {
1186
-            return val.age
1182
+          }else{
1183
+
1184
+            return ''
1185
+
1187
           }
1186
           }
1188
         } else {
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
       newAdviceGroupObject: function() {
1195
       newAdviceGroupObject: function() {

+ 19 - 18
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

905
                           monitor.venous_pressure ? monitor.venous_pressure : ""
905
                           monitor.venous_pressure ? monitor.venous_pressure : ""
906
                         }}
906
                         }}
907
                       </td>
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
                           monitor.transmembrane_pressure
910
                           monitor.transmembrane_pressure
911
                             ? monitor.transmembrane_pressure
911
                             ? monitor.transmembrane_pressure
912
                             : ""
912
                             : ""
913
                         }}
913
                         }}
914
                       </td>
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
                           monitor.transmembrane_pressure
917
                           monitor.transmembrane_pressure
918
                             ? monitor.transmembrane_pressure
918
                             ? monitor.transmembrane_pressure
933
                             : ""
933
                             : ""
934
                         }}
934
                         }}
935
                       </td>
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
                           monitor.ultrafiltration_volume
938
                           monitor.ultrafiltration_volume
939
                             ? monitor.ultrafiltration_volume
939
                             ? monitor.ultrafiltration_volume
940
                             : ""
940
                             : ""
941
                         }}
941
                         }}
942
                       </td>
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
                           monitor.ultrafiltration_volume
945
                           monitor.ultrafiltration_volume
946
                             ? monitor.ultrafiltration_volume
946
                             ? monitor.ultrafiltration_volume
949
                       </td>
949
                       </td>
950
                       <td
950
                       <td
951
                         v-if="
951
                         v-if="
952
-                          (prescription.mode_id == 2 ||
952
+                          dialysisOrder && (prescription.mode_id == 2 ||
953
                             prescription.mode_id == 5) &&
953
                             prescription.mode_id == 5) &&
954
                             monitor.operate_time > dialysisOrder.end_time
954
                             monitor.operate_time > dialysisOrder.end_time
955
                         "
955
                         "
963
                       </td>
963
                       </td>
964
                       <td
964
                       <td
965
                         v-if="
965
                         v-if="
966
-                          (prescription.mode_id == 2 ||
966
+                         dialysisOrder && (prescription.mode_id == 2 ||
967
                             prescription.mode_id == 5) &&
967
                             prescription.mode_id == 5) &&
968
                             monitor.operate_time <= dialysisOrder.end_time
968
                             monitor.operate_time <= dialysisOrder.end_time
969
                         "
969
                         "
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;"
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
                             <template
985
                             <template
986
-                              v-if="
987
-                                monitor.operate_time == dialysisOrder.start_time
988
-                              "
986
+                              v-if="monitor.operate_time == dialysisOrder.start_time"
989
                               >【开始透析】</template
987
                               >【开始透析】</template
990
                             >
988
                             >
991
                             {{ monitor.end }}
989
                             {{ monitor.end }}
2526
       return "";
2524
       return "";
2527
     },
2525
     },
2528
     getAge: function(val) {
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
       } else {
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
     newAdviceGroupObject: function() {
2543
     newAdviceGroupObject: function() {

+ 10 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue View File

1525
         return ''
1525
         return ''
1526
       }, getAge: function(val) {
1526
       }, getAge: function(val) {
1527
         if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
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
             return jsGetAge(val.birth, '-')
1529
             return jsGetAge(val.birth, '-')
1530
-          } else {
1531
-            return val.age
1530
+          }else{
1531
+
1532
+            return ''
1533
+
1532
           }
1534
           }
1533
         } else {
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
       }, newAdviceGroupObject: function() {
1542
       }, newAdviceGroupObject: function() {
1537
         return Object.assign(
1543
         return Object.assign(

File diff suppressed because it is too large
+ 425 - 295
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue


+ 10 - 4
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue View File

1582
         return ''
1582
         return ''
1583
       }, getAge: function(val) {
1583
       }, getAge: function(val) {
1584
         if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
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
             return jsGetAge(val.birth, '-')
1586
             return jsGetAge(val.birth, '-')
1587
-          } else {
1588
-            return val.age
1587
+          }else{
1588
+
1589
+            return ''
1590
+
1589
           }
1591
           }
1590
         } else {
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
       }, newAdviceGroupObject: function() {
1599
       }, newAdviceGroupObject: function() {
1594
         return Object.assign(
1600
         return Object.assign(

+ 1 - 5
src/xt_pages/upload/fast/One.vue View File

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