Browse Source

龙岗二院bug修改

XMLWAN 4 years ago
parent
commit
bbce521cbf

+ 5 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue View File

57
                   </td>
57
                   </td>
58
                   <td style="text-align:center;">
58
                   <td style="text-align:center;">
59
                     住院号:<span style="display:inline-block;margin-left:10px;">
59
                     住院号:<span style="display:inline-block;margin-left:10px;">
60
-                       {{record.patient.admission_number?record.patient.admission_number:"/"}}
60
+                       {{record.receive_assessment.admission_number?record.receive_assessment.admission_number:"/"}}
61
                     </span>
61
                     </span>
62
                   </td>
62
                   </td>
63
                   <td style="text-align:center;">
63
                   <td style="text-align:center;">
148
                   </td>
148
                   </td>
149
                   <td style="text-align:left;" colspan="2">
149
                   <td style="text-align:left;" colspan="2">
150
                     <span style="display:inline-block;margin-left:15px;"
150
                     <span style="display:inline-block;margin-left:15px;"
151
-                      >电导率:{{record.assessment_before_dislysis.conductivity?record.assessment_before_dislysis:"0"}}mmol/L</span
151
+                      >电导率:{{record.prescription.conductivity?record.prescription.conductivity:"0"}}(mS/cm)</span
152
                     >
152
                     >
153
                   </td>
153
                   </td>
154
                   <td style="text-align:left;" colspan="2">
154
                   <td style="text-align:left;" colspan="2">
337
                   </td>
337
                   </td>
338
                 </tr>
338
                 </tr>
339
                 <tr>
339
                 <tr>
340
-                  <td style="text-align:left;" colspan="4">
341
-                    透前评估:
340
+                  <td style="text-align:left;" colspan="4"> 
342
                     <span style="display:inline-block;margin-left:15px;">
341
                     <span style="display:inline-block;margin-left:15px;">
342
+                      &nbsp;&nbsp; 透前评估:
343
                       入科方式:
343
                       入科方式:
344
                       <label-box
344
                       <label-box
345
                         :isChecked="
345
                         :isChecked="
415
                 </tr>
415
                 </tr>
416
                 <tr>
416
                 <tr>
417
                   <td colspan="2" style="text-align:left;">
417
                   <td colspan="2" style="text-align:left;">
418
-                    食欲:
418
+                    <span style="display:inline-block;margin-left:15px;">食欲:</span>
419
                        <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 1)"></check-box>
419
                        <check-box text="正常" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 1)"></check-box>
420
                        <check-box text="下降" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 2)"></check-box>
420
                        <check-box text="下降" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 2)"></check-box>
421
                        <check-box text="恶心" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 3)"></check-box>
421
                        <check-box text="恶心" :checked="isCheckBoxChecked(record.receive_assessment, 'appetite', 3)"></check-box>

+ 3 - 5
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

175
           </el-col>
175
           </el-col>
176
 
176
 
177
 
177
 
178
-          <el-col :span="8" v-if="isShows('电导')">
179
-            <el-form-item label="电导度(mS/m): ">
178
+          <el-col :span="8" v-if="isShows('电导')">
179
+            <el-form-item label="电导率(mS/cm): ">
180
               <el-input type="number" v-model="dialysisPrescription.conductivity"></el-input>
180
               <el-input type="number" v-model="dialysisPrescription.conductivity"></el-input>
181
             </el-form-item>
181
             </el-form-item>
182
           </el-col>
182
           </el-col>
909
           return true
909
           return true
910
         }
910
         }
911
       },
911
       },
912
-      setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis,system_prescribe) {
912
+      setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis, system_prescribe) {
913
         this.treatment_mode = this.$store.getters.treatment_mode
913
         this.treatment_mode = this.$store.getters.treatment_mode
914
         this.perfusion_apparatus = getDataConfig('hemodialysis', 'perfusion_apparatus')
914
         this.perfusion_apparatus = getDataConfig('hemodialysis', 'perfusion_apparatus')
915
         this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
915
         this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
938
         } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id !== 'undefined' && lastDialysisPrescribe.id > 0) {
938
         } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id !== 'undefined' && lastDialysisPrescribe.id > 0) {
939
           for (const key in lastDialysisPrescribe) {
939
           for (const key in lastDialysisPrescribe) {
940
             if (key != 'target_ultrafiltration') {
940
             if (key != 'target_ultrafiltration') {
941
-
942
               this.dialysisPrescription[key] = lastDialysisPrescribe[key]
941
               this.dialysisPrescription[key] = lastDialysisPrescribe[key]
943
             }
942
             }
944
           }
943
           }
952
           this.dialysisPrescription.mode_id = schedual.mode_id
951
           this.dialysisPrescription.mode_id = schedual.mode_id
953
         }
952
         }
954
 
953
 
955
-
956
         var thismode = parseInt(this.dialysisPrescription.anticoagulant)
954
         var thismode = parseInt(this.dialysisPrescription.anticoagulant)
957
         if (isNaN(thismode) || thismode <= 0) {
955
         if (isNaN(thismode) || thismode <= 0) {
958
           return false
956
           return false

+ 10 - 22
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue View File

32
           </td>
32
           </td>
33
           <td style="text-align:center;">
33
           <td style="text-align:center;">
34
             住院号:<span style="display:inline-block;margin-left:10px;">
34
             住院号:<span style="display:inline-block;margin-left:10px;">
35
-            {{patientInfo.admission_number?patientInfo.admission_number:"/"}}</span>
35
+            {{receiverTreatmentAccess.admission_number?receiverTreatmentAccess.admission_number:"/"}}</span>
36
           </td>
36
           </td>
37
           <td style="text-align:center;">
37
           <td style="text-align:center;">
38
             机器号:<span style="display:inline-block;margin-left:10px;"
38
             机器号:<span style="display:inline-block;margin-left:10px;"
105
              }}kg</span>
105
              }}kg</span>
106
           </td>
106
           </td>
107
           <td style="text-align:left;" colspan="2">
107
           <td style="text-align:left;" colspan="2">
108
-            <span style="display:inline-block;margin-left:15px;">电导率:{{predialysis.conductivity?predialysis.conductivity:"0"}}mmol/L</span>
108
+            <span style="display:inline-block;margin-left:15px;">电导率:{{prescription.conductivity?prescription.conductivity:"0"}}(mS/cm)</span>
109
           </td>
109
           </td>
110
           <td style="text-align:left;" colspan="2">
110
           <td style="text-align:left;" colspan="2">
111
             <span style="display:inline-block;margin-left:15px;">钙:
111
             <span style="display:inline-block;margin-left:15px;">钙:
233
           </td>
233
           </td>
234
         </tr>
234
         </tr>
235
         <tr>
235
         <tr>
236
-          <td style="text-align:left;" colspan="4">
237
-            透前评估:
236
+          <td style="text-align:left;" colspan="4">   
238
             <span style="display:inline-block;margin-left:15px;">
237
             <span style="display:inline-block;margin-left:15px;">
238
+              透前评估:
239
               入科方式:
239
               入科方式:
240
               <label-box
240
               <label-box
241
                 :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
241
                 :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
287
         </tr>
287
         </tr>
288
         <tr>
288
         <tr>
289
           <td colspan="2" style="text-align:left;" >
289
           <td colspan="2" style="text-align:left;" >
290
-            食欲:
290
+            <span style="display:inline-block;margin-left:15px;">食欲:</span>
291
             <label-box
291
             <label-box
292
               :isChecked="receiverTreatmentAccess.appetite == 1 ? true : false"
292
               :isChecked="receiverTreatmentAccess.appetite == 1 ? true : false"
293
               showValue="正常"
293
               showValue="正常"
318
             <span>体温:{{predialysis.temperature?predialysis.temperature:'/'}} ℃</span>
318
             <span>体温:{{predialysis.temperature?predialysis.temperature:'/'}} ℃</span>
319
           </td>
319
           </td>
320
           <td colspan="3" style="text-align:left;">
320
           <td colspan="3" style="text-align:left;">
321
-            <span>体位:
321
+            <span style="display:inline-block;margin-left:15px;">体位:
322
               <label-box v-for="(item, index) in posture_arr" :key="index" :isChecked='receiverTreatmentAccess.posture==item.id?true:false' :showValue='item.name'></label-box>
322
               <label-box v-for="(item, index) in posture_arr" :key="index" :isChecked='receiverTreatmentAccess.posture==item.id?true:false' :showValue='item.name'></label-box>
323
                     <label-box :isChecked='receiverTreatmentAccess.posture==1?true:false'
323
                     <label-box :isChecked='receiverTreatmentAccess.posture==1?true:false'
324
                               showValue='自动体位'></label-box>
324
                               showValue='自动体位'></label-box>
1004
           var afterdialysis = response.data.data.AssessmentAfterDislysis
1004
           var afterdialysis = response.data.data.AssessmentAfterDislysis
1005
           // eslint-disable-next-line no-undef
1005
           // eslint-disable-next-line no-undef
1006
           console.log('透后评估', afterdialysis)
1006
           console.log('透后评估', afterdialysis)
1007
-          this.weight_after = afterdialysis.weight_after
1008
-          this.weightloss_after = afterdialysis.weight_after
1009
           this.temperature = afterdialysis.temperature
1007
           this.temperature = afterdialysis.temperature
1010
           this.actual_ultrafiltration = afterdialysis.actual_ultrafiltration
1008
           this.actual_ultrafiltration = afterdialysis.actual_ultrafiltration
1011
           this.actual_treatment_hour = afterdialysis.actual_treatment_hour
1009
           this.actual_treatment_hour = afterdialysis.actual_treatment_hour
1192
           this.schedule = schedule
1190
           this.schedule = schedule
1193
           var receiverTreatmentAccess =
1191
           var receiverTreatmentAccess =
1194
             response.data.data.receiverTreatmentAccess
1192
             response.data.data.receiverTreatmentAccess
1195
-          // console.log('接诊评估', receiverTreatmentAccess)
1193
+          console.log('接诊评估', receiverTreatmentAccess)
1196
           this.receiverTreatmentAccess = receiverTreatmentAccess
1194
           this.receiverTreatmentAccess = receiverTreatmentAccess
1197
           var dialysisway = response.data.data.dialysisway
1195
           var dialysisway = response.data.data.dialysisway
1198
           console.log('透析处方', dialysisway)
1196
           console.log('透析处方', dialysisway)
1229
           this.sodium = dialysisway.sodium
1227
           this.sodium = dialysisway.sodium
1230
           this.calcium = dialysisway.calcium
1228
           this.calcium = dialysisway.calcium
1231
           this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
1229
           this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
1232
-          var afterWeightLast = response.data.data.assessmentAfterDislysis
1233
-          // console.log('上次透后体重', afterWeightLast.weight_after)
1234
-          this.afterWeightLast = afterWeightLast.weight_after
1230
+          // var afterWeightLast = response.data.data.assessmentAfterDislysis
1231
+          // this.afterWeightLast = afterWeightLast.weight_after
1235
           // eslint-disable-next-line no-undef
1232
           // eslint-disable-next-line no-undef
1236
           // console.log('透前体重', this.weight_before)
1233
           // console.log('透前体重', this.weight_before)
1237
           // console.log('干体中', this.dry_weight)
1234
           // console.log('干体中', this.dry_weight)
1238
           // console.log('什么体重', predialysis.additional_weight)
1235
           // console.log('什么体重', predialysis.additional_weight)
1239
-          var dryWeight_add =
1240
-            this.weight_before -
1241
-            this.dry_weight -
1242
-            predialysis.additional_weight
1243
-          if (this.afterWeightLast === 0) {
1244
-            this.dryWeight_add = 0
1245
-          } else {
1246
-            this.dryWeight_add = dryWeight_add
1247
-          }
1248
           // console.log('较干体中增加量', this.dryWeight_add)
1236
           // console.log('较干体中增加量', this.dryWeight_add)
1249
           // this.afterWeightLast = afterWeightLast.weight_after
1237
           // this.afterWeightLast = afterWeightLast.weight_after
1250
           this.prescription.mode = this.modeName(this.prescription.mode_id)
1238
           this.prescription.mode = this.modeName(this.prescription.mode_id)
1295
           this.advices = response.data.data.advices
1283
           this.advices = response.data.data.advices
1296
           // console.log('医嘱', this.advices)
1284
           // console.log('医嘱', this.advices)
1297
           var monitor = response.data.data.monitor
1285
           var monitor = response.data.data.monitor
1298
-         // console.log('透析监测', monitor)
1286
+          // console.log('透析监测', monitor)
1299
           this.monitor = monitor
1287
           this.monitor = monitor
1300
           // console.log('monitor', monitor)
1288
           // console.log('monitor', monitor)
1301
           this.monitors = response.data.data.monitors
1289
           this.monitors = response.data.data.monitors

+ 21 - 23
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue View File

303
          <td>核对</td>
303
          <td>核对</td>
304
          <td>上次透后体重</td>
304
          <td>上次透后体重</td>
305
          <td> {{
305
          <td> {{
306
-               afterWeightLast
307
-                ? parseFloat(afterWeightLast).toFixed(1): "未称重"
306
+               afterWeightLastTwo.weight_after
307
+                ? parseFloat(afterWeightLastTwo.weight_after).toFixed(1): "未称重"
308
               }}kg</td>
308
               }}kg</td>
309
         </tr>
309
         </tr>
310
         <tr  v-for="(advice, advice_index) in tableAdvice"
310
         <tr  v-for="(advice, advice_index) in tableAdvice"
352
          <td v-if="advice_index==4">净脱水量</td>
352
          <td v-if="advice_index==4">净脱水量</td>
353
          <td v-if="advice_index==4">{{actual_ultrafiltration}}L</td>
353
          <td v-if="advice_index==4">{{actual_ultrafiltration}}L</td>
354
          <td v-if="advice_index==5">透后体重</td>
354
          <td v-if="advice_index==5">透后体重</td>
355
-         <td v-if="advice_index==5">{{weight_after}}kg</td>
355
+         <td v-if="advice_index==5">{{afterdialysis.weight_after}}kg</td>
356
          <td v-if="advice_index==6">本次透析体重下降量</td>
356
          <td v-if="advice_index==6">本次透析体重下降量</td>
357
-         <td v-if="advice_index==6">{{(weight_before-weightloss_after).toFixed(1)}}kg</td>
357
+         <td v-if="advice_index==6">{{(weight_before-afterdialysis.weightloss_after).toFixed(1)}}kg</td>
358
         </tr>
358
         </tr>
359
         <tr>
359
         <tr>
360
           <td colspan="6" style="text-align:left;min-height:20px">
360
           <td colspan="6" style="text-align:left;min-height:20px">
515
         nurse: '',
515
         nurse: '',
516
         doctorAdvice: [],
516
         doctorAdvice: [],
517
         total: '',
517
         total: '',
518
-        weight_before: '',
519
-        dry_weight: '',
520
-        weight_after: '',
521
-        weightloss_after: '',
522
-        actual_ultrafiltration: '',
523
-        temperature: '',
524
-        systolic_blood_pressure: '',
525
-        diastolic_blood_pressure: '',
518
+        weight_before: 0,
519
+        dry_weight: 0,
520
+        weight_after: 0,
521
+        weightloss_after: 0,
522
+        actual_ultrafiltration: 0,
523
+        temperature: '/',
524
+        systolic_blood_pressure: 0,
525
+        diastolic_blood_pressure: 0,
526
         mission: '',
526
         mission: '',
527
         dialysis_summary: '',
527
         dialysis_summary: '',
528
         orderForm: {
528
         orderForm: {
553
         PunctureNurse: {
553
         PunctureNurse: {
554
           user_name: '',
554
           user_name: '',
555
           url: ''
555
           url: ''
556
-        }
557
-
556
+        },
557
+        // eslint-disable-next-line no-dupe-keys
558
+        afterWeightLastTwo: {}
558
       }
559
       }
559
   },
560
   },
560
   methods: {
561
   methods: {
670
       },
671
       },
671
       getDialysisRecord() {
672
       getDialysisRecord() {
672
         this.loading = true
673
         this.loading = true
673
-
674
         getDialysisRecord(this.queryParams).then(response => {
674
         getDialysisRecord(this.queryParams).then(response => {
675
           if (response.data.state === 1) {
675
           if (response.data.state === 1) {
676
             this.adminUser = response.data.data.users
676
             this.adminUser = response.data.data.users
732
             var afterdialysis = response.data.data.AssessmentAfterDislysis
732
             var afterdialysis = response.data.data.AssessmentAfterDislysis
733
             // eslint-disable-next-line no-undef
733
             // eslint-disable-next-line no-undef
734
             // console.log('透后评估', afterdialysis)
734
             // console.log('透后评估', afterdialysis)
735
-            this.weight_after = afterdialysis.weight_after
736
-            this.weightloss_after = afterdialysis.weight_after
735
+            // this.weight_after = afterdialysis.weight_after
736
+            // this.weightloss_after = afterdialysis.weight_after
737
             this.temperature = afterdialysis.temperature
737
             this.temperature = afterdialysis.temperature
738
             this.actual_ultrafiltration = afterdialysis.actual_ultrafiltration
738
             this.actual_ultrafiltration = afterdialysis.actual_ultrafiltration
739
             this.actual_treatment_hour = afterdialysis.actual_treatment_hour
739
             this.actual_treatment_hour = afterdialysis.actual_treatment_hour
789
               tableAdvice.push(obj3)
789
               tableAdvice.push(obj3)
790
               tableAdvice.push(obj4)
790
               tableAdvice.push(obj4)
791
               this.tableAdvice = tableAdvice
791
               this.tableAdvice = tableAdvice
792
-             
793
             }
792
             }
794
             if (tableAdvice.length === 3) {
793
             if (tableAdvice.length === 3) {
795
               var obj = { 'advice_name': '', start_time: '' }
794
               var obj = { 'advice_name': '', start_time: '' }
803
               tableAdvice.push(obj3)
802
               tableAdvice.push(obj3)
804
 
803
 
805
               this.tableAdvice = tableAdvice
804
               this.tableAdvice = tableAdvice
806
-              
807
             }
805
             }
808
             if (tableAdvice.length === 4) {
806
             if (tableAdvice.length === 4) {
809
               var obj = { 'advice_name': '', start_time: '' }
807
               var obj = { 'advice_name': '', start_time: '' }
814
               tableAdvice.push(obj1)
812
               tableAdvice.push(obj1)
815
               tableAdvice.push(obj2)
813
               tableAdvice.push(obj2)
816
               this.tableAdvice = tableAdvice
814
               this.tableAdvice = tableAdvice
817
-             
818
             }
815
             }
819
             if (tableAdvice.length === 5) {
816
             if (tableAdvice.length === 5) {
820
               var obj = { 'advice_name': '', start_time: '' }
817
               var obj = { 'advice_name': '', start_time: '' }
944
             this.calcium = dialysisway.calcium
941
             this.calcium = dialysisway.calcium
945
             this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
942
             this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
946
             var afterWeightLast = response.data.data.assessmentAfterDislysis
943
             var afterWeightLast = response.data.data.assessmentAfterDislysis
944
+            this.afterWeightLastTwo = afterWeightLast
945
+            // this.afterWeightLast = afterWeightLast.weight_after
947
             // console.log('上次透后体重', afterWeightLast.weight_after)
946
             // console.log('上次透后体重', afterWeightLast.weight_after)
948
-            this.afterWeightLast = afterWeightLast.weight_after
949
             // eslint-disable-next-line no-undef
947
             // eslint-disable-next-line no-undef
950
             console.log('透前体重', this.weight_before)
948
             console.log('透前体重', this.weight_before)
951
             console.log('干体中', this.dry_weight)
949
             console.log('干体中', this.dry_weight)
952
             console.log('衣物重', predialysis.additional_weight)
950
             console.log('衣物重', predialysis.additional_weight)
953
 
951
 
954
-            var dryWeight_add = this.weight_before - this.afterWeightLast
955
-            if (this.afterWeightLast === 0) {
952
+            var dryWeight_add = this.weight_before - this.afterWeightLastTwo.weight_after
953
+            if (this.afterWeightLastTwo.weight_after === 0) {
956
               this.dryWeight_add = 0
954
               this.dryWeight_add = 0
957
             } else {
955
             } else {
958
               this.dryWeight_add = dryWeight_add.toFixed(2)
956
               this.dryWeight_add = dryWeight_add.toFixed(2)