Sfoglia il codice sorgente

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 anni fa
parent
commit
e816afaaaa

+ 1 - 2
src/api/dialysis.js Vedi File

@@ -157,7 +157,7 @@ export function postPrescription(params) {
157 157
 }
158 158
 
159 159
 export function postSoulution(params) {
160
-  console.log("params",params)
160
+  console.log('params', params)
161 161
   return request({
162 162
     url: '/api/dialysis/soulution',
163 163
     method: 'Post',
@@ -242,7 +242,6 @@ export function postDelMonitorInfo(params) {
242 242
 }
243 243
 
244 244
 export function CreateGroupAdvice(id, groupno, advices) {
245
- 
246 245
   return request({
247 246
     url: '/api/advice_remind/create?id=' + id + '&groupno=' + groupno,
248 247
     method: 'post',

+ 5 - 2
src/xt_pages/dialysis/PatientBox.vue Vedi File

@@ -53,8 +53,11 @@
53 53
         </div>
54 54
       </div>
55 55
       <div class="dislysisInfo">
56
-        <p>体重(前/后kg):{{ schedule.assessment_before_dislysis ? schedule.assessment_before_dislysis.weight_before : '' }}/{{ schedule.assessment_after_dislysis ? schedule.assessment_after_dislysis.weight_after : '' }}</p>
57
-        <p>目标超滤量:{{ schedule.prescription ? schedule.prescription.target_ultrafiltration : '' }}
56
+        <p>体重(前/后kg):
57
+          {{ schedule.assessment_before_dislysis ? schedule.assessment_before_dislysis.weight_before : '' }}
58
+          <span v-if="schedule.assessment_after_dislysis>0">/{{ schedule.assessment_after_dislysis ? schedule.assessment_after_dislysis.weight_after : '' }}</span> </p>
59
+        <p>目标超滤量:
60
+          <span v-if="schedule.prescription>0">{{ schedule.prescription ? schedule.prescription.target_ultrafiltration : '' }}</span>
58 61
        
59 62
         </p>
60 63
         <p :title="schedule.prescription ? schedule.prescription.dialyzer_perfusion_apparatus : ''">

+ 12 - 12
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue Vedi File

@@ -318,19 +318,19 @@
318 318
                     <tbody>
319 319
                     <tr>
320 320
                         <td width="60">时间</td>
321
-                        <td width="80" style="height:20px;line-height:20px">血压</td>
322
-                        <td width="60" style="height:20px;line-height:20px">脉搏</td>
321
+                        <td width="80" style="height:20px;line-height:20px">血压<br />mmHg</td>
322
+                        <td width="60" style="height:20px;line-height:20px">脉搏<br />(次/分)</td>
323 323
                         <td width="60" style="height:20px;line-height:20px">KTV</td>
324
-                        <td width="60" style="height:20px;line-height:20px">血流量</td>
325
-                        <td width="60" style="height:20px;line-height:20px">静脉压</td>
326
-                        <td width="60" style="height:20px;line-height:20px">动脉压</td>
327
-                        <td width="60" style="height:20px;line-height:20px">跨膜压</td>
328
-                        <td width="60" style="height:20px;line-height:20px">温度</td>
329
-                        <td width="60" style="height:20px;line-height:20px">超滤率</td>
330
-                        <td width="60" style="height:20px;line-height:20px">超滤量</td>
331
-                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换率</td>
332
-                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换量</td>
333
-                        <td width="60" style="height:20px;line-height:20px">血容量</td>
324
+                        <td width="60" style="height:20px;line-height:20px">血流量<br />(ml/min)</td>
325
+                        <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
326
+                        <td width="60" style="height:20px;line-height:20px">动脉压<br />mmHg</td>
327
+                        <td width="60" style="height:20px;line-height:20px">跨膜压<br />mmHg</td>
328
+                        <td width="60" style="height:20px;line-height:20px">温度<br />°C</td>
329
+                        <td width="60" style="height:20px;line-height:20px">超滤率<br />ml/h</td>
330
+                        <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
331
+                        <td width="60" style="height:20px;line-height:20px" v-if="prescription.mode_id == 2">置换率<br /><br />ml/h</td>
332
+                        <td width="60" style="height:20px;line-height:20px" v-if="prescription.mode_id == 2">置换量<br /><br />ml</td>
333
+                        <td width="60" style="height:20px;line-height:20px">血容量<br />ml</td>
334 334
                         <td width="">病情变化及处理</td>
335 335
                     </tr>
336 336
 

+ 5 - 6
src/xt_pages/dialysis/details/DialysisPrescription.vue Vedi File

@@ -7,7 +7,7 @@
7 7
       <ul>
8 8
         <li v-if="isShow('透析模式')">
9 9
           <label>透析模式 : </label>
10
-          <span class="content">{{ dialysis_mode }}</span>
10
+          <span class="content">{{ dialysis_mode }} </span>
11 11
         </li>
12 12
 
13 13
         <li v-if="isShow('置换量') && (dialysis_mode == 'HDF' || dialysis_mode == 'HF' || dialysis_mode =='HDF+HP')">
@@ -444,6 +444,7 @@ export default {
444 444
     },
445 445
     dialysis_mode: function() {
446 446
       var mode = this.getValueStr('mode_id', 'mode_id')
447
+
447 448
       if (mode.length == 0) {
448 449
         return ''
449 450
       }
@@ -714,7 +715,7 @@ export default {
714 715
 
715 716
   },
716 717
   created() {
717
-
718
+    console.log("中国出口233232323233223",this.prescription)
718 719
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
719 720
     var map = {}
720 721
     for (let index = 0; index < perfusion_apparatus.length; index++) {
@@ -741,10 +742,8 @@ export default {
741 742
       ) {
742 743
         return ''
743 744
       } else if (this.prescription != null && this.prescription.id != '') {
744
-        if (
745
-          this.prescription[pkey] == null ||
746
-          this.prescription[pkey] == undefined
747
-        ) {
745
+     
746
+        if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
748 747
           return ''
749 748
         }
750 749
         return this.prescription[pkey] + ''

+ 5 - 0
src/xt_pages/dialysis/details/NavIgation.vue Vedi File

@@ -268,6 +268,9 @@ export default {
268 268
         return { id: 0 };
269 269
       }
270 270
     },
271
+    dialysis_prescription:{
272
+      type: Object,
273
+    },
271 274
     solution: {
272 275
       // 透析方案
273 276
       type: Object,
@@ -620,6 +623,7 @@ export default {
620 623
       this.$refs.finish_dialog.show(this.dialysis_order);
621 624
     },
622 625
     showPrescription: function() {
626
+      console.log("粗32323232",this.prescription)
623 627
       this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open);
624 628
     },
625 629
     showAccepts: function() {
@@ -631,6 +635,7 @@ export default {
631 635
       this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment);
632 636
     },
633 637
     showDoubleCheck: function() {
638
+       
634 639
       this.$refs.doubleCheck.show();
635 640
     },
636 641
     showrTeatmentSummary: function() {

+ 10 - 2
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Vedi File

@@ -297,6 +297,8 @@
297 297
           </template>
298 298
         </el-table-column>
299 299
       </el-table>
300
+
301
+
300 302
       <el-table
301 303
         v-else
302 304
         :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
@@ -1161,11 +1163,16 @@
1161 1163
         this.groupSelectRow = row
1162 1164
       }
1163 1165
       ,
1164
-      openDeleteGroupAdvice() {
1166
+      openDeleteGroupAdvice(val) {
1167
+        console.log("val2323233232",this.groupSelectRow)
1165 1168
         if (this.groupSelectRow === null) {
1166 1169
           this.$message.error('未选择要删除的医嘱内容')
1167 1170
           return
1168 1171
         }
1172
+        if(this.groupSelectRow.execution_state == 1){
1173
+           this.$message.error("已执行的医嘱无法删除!")
1174
+           return
1175
+        }
1169 1176
         this.DeleteGroupAdvice(this.groupSelectRow.groupno)
1170 1177
 
1171 1178
         // this.$confirm('确认删除些条医嘱内容?', '删除医嘱内容', {
@@ -1549,6 +1556,7 @@
1549 1556
       ,
1550 1557
 
1551 1558
       openEditGroupAdvice() {
1559
+        console.log("医嘱泪奔23332233223",this.groupSelectRow)
1552 1560
         if (this.groupSelectRow === null) {
1553 1561
           this.$message.error('未选择要修改的医嘱内容')
1554 1562
           return
@@ -2134,7 +2142,7 @@
2134 2142
       cellMouseEnter: function(row, column, event) {
2135 2143
         console.log("数据是",row)
2136 2144
         this.currentRow = row
2137
-        // this.groupSelectRow = row
2145
+        this.groupSelectRow = row
2138 2146
         // this.sameRowArr.forEach((arr, i) => {
2139 2147
         //   if (arr.indexOf(row.index) != -1) {
2140 2148
         //     this.hoverOrderArr = arr

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

@@ -882,7 +882,8 @@
882 882
           }
883 883
 
884 884
         } else {
885
-         
885
+          console.log("为首务2322323",this.assessmentBeforeDislysis.period)
886
+          this.assessmentBeforeDislysis.period = this.assessmentBeforeDislysis.period.toString()
886 887
      
887 888
           this.assessmentBeforeDislysis.dry_weight = this.predialysis_evaluation['dry_weight']
888 889
           this.weight_adjust.weight = this.predialysis_evaluation['dry_weight']

+ 35 - 15
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Vedi File

@@ -1328,7 +1328,8 @@
1328 1328
           max_ultrafiltration_rate:'',
1329 1329
           hemodialysisPipelinesOptions: [],
1330 1330
           punctureNeedleOptions: [],
1331
-          epoOptions: []
1331
+          epoOptions: [],
1332
+          impulse:0,
1332 1333
         },
1333 1334
 
1334 1335
         anticoagulant: {
@@ -1879,7 +1880,7 @@
1879 1880
               mode = 2
1880 1881
             }
1881 1882
             ParamsQuery['mode'] = mode
1882
-            //  console.log("paramsquery",ParamsQuery)
1883
+           console.log("paramsquery",ParamsQuery)
1883 1884
             postPrescription(ParamsQuery).then(response => {
1884 1885
               if (response.data.state == 0) {
1885 1886
                 this.$message.error(response.data.msg)
@@ -2299,7 +2300,7 @@
2299 2300
               ParamsQuery['patient'] = this.patient.id
2300 2301
               ParamsQuery['record_date'] = this.record_date
2301 2302
               ParamsQuery['mode'] = '1'
2302
-              console.log('第二')
2303
+               console.log('第二')
2303 2304
               postPrescription(ParamsQuery).then(response => {
2304 2305
                 if (response.data.state == 0) {
2305 2306
                   this.$message.error(response.data.msg)
@@ -2695,6 +2696,7 @@
2695 2696
         this.hide()
2696 2697
       },
2697 2698
       handleSolution: function() {
2699
+
2698 2700
         if (this.dialysisPrescription.anticoagulant == 1) {
2699 2701
           this.dialysisPrescription.anticoagulant_weichi = '0'
2700 2702
           this.dialysisPrescription.anticoagulant_shouji = '0'
@@ -2723,8 +2725,10 @@
2723 2725
               this.loading = false
2724 2726
               return
2725 2727
             }
2728
+             console.log("预充了2",this.dialysisPrescription.pre_impulse)
2729
+             this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
2726 2730
             var arr = this.dialysisPrescription
2727
-            // console.log('arr', arr)
2731
+             console.log('arr2', arr)
2728 2732
 
2729 2733
             const ParamsQuery = arr
2730 2734
             // console.log('长期处方1', ParamsQuery)
@@ -2770,8 +2774,10 @@
2770 2774
                 this.loading = false
2771 2775
                 return
2772 2776
               }
2777
+              console.log("预充了3",this.dialysisPrescription.pre_impulse)
2778
+               this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
2773 2779
               var arr = this.dialysisPrescription
2774
-              // console.log('arr', arr)
2780
+              console.log('arr3', arr)
2775 2781
 
2776 2782
               const ParamsQuery = arr
2777 2783
               // console.log('长期处方2', ParamsQuery)
@@ -2824,9 +2830,10 @@
2824 2830
                 this.loading = false
2825 2831
                 return
2826 2832
               }
2827
-
2833
+              console.log("预充了4",this.dialysisPrescription.pre_impulse)
2834
+             this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
2828 2835
               var arr = this.dialysisPrescription
2829
-              // console.log('arr', arr)
2836
+              console.log('arr4', arr)
2830 2837
 
2831 2838
               const ParamsQuery = arr
2832 2839
               // console.log('长期处方3', ParamsQuery)
@@ -2893,8 +2900,10 @@
2893 2900
                 this.loading = false
2894 2901
                 return
2895 2902
               }
2903
+              console.log("预充了5",this.dialysisPrescription.pre_impulse)
2904
+               this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
2896 2905
               var arr = this.dialysisPrescription
2897
-              // console.log('arr', arr)
2906
+             console.log('arr5', arr)
2898 2907
 
2899 2908
               const ParamsQuery = arr
2900 2909
               // console.log('长期处方5', ParamsQuery)
@@ -2940,8 +2949,10 @@
2940 2949
                 this.loading = false
2941 2950
                 return
2942 2951
               }
2952
+              console.log("预充了6",this.dialysisPrescription.pre_impulse)
2953
+              this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
2943 2954
               var arr = this.dialysisPrescription
2944
-              // console.log('arr', arr)
2955
+              console.log('arr', arr)
2945 2956
 
2946 2957
               const ParamsQuery = arr
2947 2958
               // console.log('长期处方6', ParamsQuery)
@@ -2987,11 +2998,13 @@
2987 2998
                   this.loading = false
2988 2999
                   return
2989 3000
                 }
3001
+                console.log("预充了7",this.dialysisPrescription.pre_impulse)
3002
+               this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
2990 3003
                 var arr = this.dialysisPrescription
2991 3004
                 // console.log('arr', arr)
2992 3005
 
2993 3006
                 const ParamsQuery = arr
2994
-                // console.log('长期处方7', ParamsQuery)
3007
+                console.log('长期处方7', ParamsQuery)
2995 3008
                 ParamsQuery['patient'] = this.patient.id
2996 3009
                 ParamsQuery['record_date'] = this.record_date
2997 3010
                 ParamsQuery['mode'] = '1'
@@ -3040,8 +3053,10 @@
3040 3053
                   this.loading = false
3041 3054
                   return
3042 3055
                 }
3056
+                console.log("预充了w233323223",this.dialysisPrescription.pre_impulse)
3057
+               this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
3043 3058
                 var arr = this.dialysisPrescription
3044
-                // console.log('arr', arr)
3059
+                console.log('arr', arr)
3045 3060
 
3046 3061
                 const ParamsQuery = arr
3047 3062
                 // console.log('长期处方8', ParamsQuery)
@@ -3114,8 +3129,11 @@
3114 3129
                   this.loading = false
3115 3130
                   return
3116 3131
                 }
3132
+
3133
+                console.log("预充了99999",this.dialysisPrescription.pre_impulse)
3134
+               this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
3117 3135
                 var arr = this.dialysisPrescription
3118
-                // console.log('arr', arr)
3136
+                console.log('arr', arr)
3119 3137
 
3120 3138
                 const ParamsQuery = arr
3121 3139
                 // console.log('长期处方9', ParamsQuery)
@@ -3158,16 +3176,18 @@
3158 3176
               this.loading = false
3159 3177
               return
3160 3178
             }
3179
+            console.log("预充了1",this.dialysisPrescription.pre_impulse)
3180
+           this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
3161 3181
             var arr = this.dialysisPrescription
3162
-            // console.log('arr', arr)
3182
+            console.log('arr12333223', arr)
3163 3183
 
3164 3184
             const ParamsQuery = arr
3165
-            // console.log('长期处方10', ParamsQuery)
3185
+
3166 3186
 
3167 3187
             ParamsQuery['patient'] = this.patient.id
3168 3188
             ParamsQuery['record_date'] = this.record_date
3169 3189
             ParamsQuery['mode'] = '1'
3170
-
3190
+            console.log('长期处方10', ParamsQuery)
3171 3191
             postSoulution(ParamsQuery).then(response => {
3172 3192
               if (response.data.state == 0) {
3173 3193
                 this.$message.error(response.data.msg)

+ 5 - 13
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue Vedi File

@@ -314,10 +314,8 @@
314 314
             })
315 315
 
316 316
             this.doubleReview.creater = response.data.data.doubleCheck.creater
317
-            this.doubleReview.check_time =
318
-              response.data.data.doubleCheck.check_time
319
-            this.doubleReview.first_check_time =
320
-              response.data.data.doubleCheck.first_check_time
317
+            this.doubleReview.check_time = response.data.data.doubleCheck.check_time
318
+            this.doubleReview.first_check_time = response.data.data.doubleCheck.first_check_time
321 319
             this.doubleReview.modifier = response.data.data.doubleCheck.modifier
322 320
 
323 321
             this.first_check_time = uParseTime(
@@ -325,18 +323,12 @@
325 323
               '{y}-{m}-{d}  {h}:{i}'
326 324
             ).split(' ')[1]
327 325
 
328
-            // if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
329
-            //   this.check_time = uParseTime(
330
-            //     this.doubleReview.check_time,
331
-            //     '{y}-{m}-{d}  {h}:{i}'
332
-            //   ).split(' ')[1]
333
-            // }
326
+           
334 327
 
335 328
             let doublecheck_resp = response.data.data.doubleCheck
336
-         
329
+            console.log("双核2332322323",doublecheck_resp)
337 330
             var doubleCheck = this.double_check
338
-            for (var index in doublecheck_resp) {
339
-              // doubleCheck[index] = doublecheck_resp[index];
331
+            for (var index in doublecheck_resp) {        
340 332
               this.$set(doubleCheck, index, doublecheck_resp[index])
341 333
             }
342 334
             this.hide()

+ 29 - 9
src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue Vedi File

@@ -301,9 +301,11 @@
301 301
                     <div class="inline_block" style="margin-left:10px;flex:1;">
302 302
                       置换量:
303 303
                       <div class="under_line" style="width: 70px;text-align: center">
304
-                        {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}
304
+                        <span v-if="org_id != 9956">{{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}</span>
305
+                        <span v-else>{{ prescription.replacement_total ? prescription.replacement_total : "/" }}</span>
305 306
                       </div>
306
-                      L
307
+                      <span v-if="org_id != 9956">L</span>
308
+                      <span v-else>ml</span>
307 309
                     </div>
308 310
                     <div class="inline_block" style="margin-left:10px;flex:1;">
309 311
                       血流量:
@@ -324,12 +326,16 @@
324 326
                     <div class="inline_block" style="flex:1;">
325 327
                       透析(滤)器:
326 328
                       <div class="under_line" style="width: 100px;text-align: center">
327
-                        {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }}
329
+                        <span v-if="org_id != 9956">{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }}</span>
330
+                        <span v-else>{{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : "/" }}</span>
328 331
                       </div>
329 332
                     </div>
330 333
                     <div class="inline_block" style="flex:1;">
331 334
                       灌流器:
332
-                      <div class="under_line" style="width: 70px;text-align: center">/</div>
335
+                      <div class="under_line" style="width: 70px;text-align: center">
336
+                        <span v-if="org_id != 9956">/</span>
337
+                        <span>{{ prescription.dialysis_irrigation ? prescription.dialysis_irrigation : "/" }}</span>
338
+                      </div>
333 339
                     </div>
334 340
                     <div class="inline_block" style="flex:1;">
335 341
                       干体重:
@@ -344,7 +350,10 @@
344 350
                     <div class="inline_block" style="flex:1;">
345 351
                       上次透后体重:
346 352
                       <div class="under_line" style="width: 100px;text-align: center">
347
-                        {{ predialysis.weight_after_last_transparency ? parseFloat(predialysis.weight_after_last_transparency - predialysis.additional_weight).toFixed(1) : "未称重" }}
353
+                        <span v-if="org_id != 9956">
354
+                          {{ predialysis.weight_after_last_transparency ? parseFloat(predialysis.weight_after_last_transparency - predialysis.additional_weight).toFixed(1) : "未称重" }}
355
+                        </span>
356
+                        <span v-else>{{ assessmentafter.weight_after ? assessmentafter.weight_after : "/" }}</span>
348 357
                       </div>
349 358
                       kg
350 359
                     </div>
@@ -413,10 +422,13 @@
413 422
                       <div class="under_line" style="width: 50px;text-align: center;">
414 423
                         {{ prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "/" }}
415 424
                       </div>
425
+                      <span v-if="prescription.anticoagulant == 5">mg</span>
416 426
                       <span v-if="prescription.anticoagulant == 4">mg</span>
417 427
                       <span v-if="prescription.anticoagulant == 3">iu</span>
418
-                      <span v-if="prescription.anticoagulant == 2">iu</span>
428
+                      <span v-if="prescription.anticoagulant == 2">mg</span>
419 429
                       <span v-if="prescription.anticoagulant == 1">mg</span>
430
+                      <span v-if="prescription.anticoagulant == 6">iu</span>
431
+                      <span v-if="prescription.anticoagulant == 7">iu</span>
420 432
                     </div>
421 433
                     <div class="inline_block" style="margin-left:20px;">
422 434
                       维持:
@@ -429,8 +441,10 @@
429 441
                       <span v-if="prescription.anticoagulant == 5">ml/h</span>
430 442
                       <span v-if="prescription.anticoagulant == 4">mg/h</span>
431 443
                       <span v-if="prescription.anticoagulant == 3">iu/h</span>
432
-                      <span v-if="prescription.anticoagulant == 2">iu/h</span>
444
+                      <span v-if="prescription.anticoagulant == 2">mg/h</span>
433 445
                       <span v-if="prescription.anticoagulant == 1">mg/h</span>
446
+                      <span v-if="prescription.anticoagulant == 6">iu/h</span>
447
+                      <span v-if="prescription.anticoagulant == 7">iu/h</span>
434 448
                     </div>
435 449
                     <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant == 5">
436 450
                       钙名称:
@@ -450,10 +464,13 @@
450 464
                       <div class="under_line" style="width: 50px;text-align: center;">
451 465
                         {{ prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "/" }}
452 466
                       </div>
467
+                      <span v-if="prescription.anticoagulant == 5">mg</span>
453 468
                       <span v-if="prescription.anticoagulant == 4">mg</span>
454 469
                       <span v-if="prescription.anticoagulant == 3">iu</span>
455
-                      <span v-if="prescription.anticoagulant == 2">iu</span>
470
+                      <span v-if="prescription.anticoagulant == 2">mg</span>
456 471
                       <span v-if="prescription.anticoagulant == 1">mg</span>
472
+                      <span v-if="prescription.anticoagulant == 6">iu</span>
473
+                      <span v-if="prescription.anticoagulant == 7">iu</span>
457 474
                     </div>
458 475
                     <div class="inline_block" style="margin-left:20px;">
459 476
                       透析机号:
@@ -1150,7 +1167,8 @@ export default {
1150 1167
         zongliang_unit: "mg",
1151 1168
         gaimingcheng_unit: "",
1152 1169
         gaijiliang_unit: ""
1153
-      }
1170
+      },
1171
+      assessmentafter:{}
1154 1172
     };
1155 1173
   },
1156 1174
   methods: {
@@ -1492,6 +1510,7 @@ export default {
1492 1510
           this.predialysis.blood_access_part_opera_id
1493 1511
         );
1494 1512
         this.afterdialysis = response.data.data.AssessmentAfterDislysis;
1513
+        this.assessmentafter = response.data.data.assessmentAfterDislysis;
1495 1514
         this.operators = response.data.data.operators;
1496 1515
         this.dialysisOrder =
1497 1516
           response.data.data.dialysisOrder === null
@@ -1920,6 +1939,7 @@ export default {
1920 1939
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1921 1940
 
1922 1941
     var xtuser = this.$store.getters.xt_user;
1942
+    this.org_id = xtuser.org.id
1923 1943
     this.orgname = xtuser.org.org_name;
1924 1944
     // this.orgname = "遂溪方济医院";
1925 1945
     this.modeOptions = this.$store.getters.treatment_mode;

+ 12 - 12
src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue Vedi File

@@ -294,19 +294,19 @@
294 294
               <tbody>
295 295
               <tr>
296 296
                   <td width="60">时间</td>
297
-                  <td width="80" style="height:20px;line-height:20px">血压</td>
298
-                  <td width="60" style="height:20px;line-height:20px">脉搏</td>
297
+                  <td width="80" style="height:20px;line-height:20px">血压<br />mmHg</td>
298
+                  <td width="60" style="height:20px;line-height:20px">脉搏<br />(次/分)</td>
299 299
                   <td width="60" style="height:20px;line-height:20px">KTV</td>
300
-                  <td width="60" style="height:20px;line-height:20px">血流量</td>
301
-                  <td width="60" style="height:20px;line-height:20px">静脉压</td>
302
-                  <td width="60" style="height:20px;line-height:20px">动脉压</td>
303
-                  <td width="60" style="height:20px;line-height:20px">跨膜压</td>
304
-                  <td width="60" style="height:20px;line-height:20px">温度</td>
305
-                  <td width="60" style="height:20px;line-height:20px">超滤率</td>
306
-                  <td width="60" style="height:20px;line-height:20px">超滤量</td>
307
-                  <td width="60" style="height:20px;line-height:20px" v-if="prescription.mode_id == 2">置换率</td>
308
-                  <td width="60" style="height:20px;line-height:20px" v-if="prescription.mode_id == 2">置换量</td>
309
-                  <td width="60" style="height:20px;line-height:20px">血容量</td>
300
+                  <td width="60" style="height:20px;line-height:20px">血流量<br />(ml/min)</td>
301
+                  <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
302
+                  <td width="60" style="height:20px;line-height:20px">动脉压<br />mmHg</td>
303
+                  <td width="60" style="height:20px;line-height:20px">跨膜压<br />mmHg</td>
304
+                  <td width="60" style="height:20px;line-height:20px">温度<br />°C</td>
305
+                  <td width="60" style="height:20px;line-height:20px">超滤率<br />ml/h</td>
306
+                  <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
307
+                  <td width="60" style="height:20px;line-height:20px" v-if="prescription.mode_id == 2">置换率<br /><br />ml/h</td>
308
+                  <td width="60" style="height:20px;line-height:20px" v-if="prescription.mode_id == 2">置换量<br /><br />ml</td>
309
+                  <td width="60" style="height:20px;line-height:20px">血容量<br />ml</td>
310 310
                   <td width="">病情变化及处理</td>
311 311
               </tr>
312 312
 

+ 7 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyEight.vue Vedi File

@@ -220,8 +220,8 @@
220 220
             <div style="width:16%;">医生:
221 221
               <span style="display: inline-block;text-align: left;">
222 222
                 &nbsp;
223
-                <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
224
-                <img style="height:20px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
223
+                <span v-if="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.creater?prescription.creater:'')) }} </span>
224
+                <img style="height:20px;" :src="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:''))" alt="" srcset="" v-else />
225 225
               </span>
226 226
             </div>
227 227
             <div style="width:16%;">透前评估护士:
@@ -397,8 +397,8 @@
397 397
             <div style="width:16%;">值班医生:
398 398
               <span style="display: inline-block;text-align: left;">
399 399
                 &nbsp;
400
-                <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
401
-                <img style="height:20px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
400
+                <span v-if="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.creater?prescription.creater:'')) }} </span>
401
+                <img style="height:20px;" :src="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:''))" alt="" srcset="" v-else />
402 402
               </span>
403 403
             </div>
404 404
             <div style="width:16%;">责任护士:
@@ -423,8 +423,8 @@
423 423
         <div style="text-align:right;line-height:30px;">签名医生:
424 424
           <span style="display: inline-block;text-align: left;">
425 425
             &nbsp;
426
-            <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
427
-            <img style="height:20px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
426
+            <span v-if="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.creater?prescription.creater:'')) }} </span>
427
+            <img style="height:20px;" :src="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:''))" alt="" srcset="" v-else />
428 428
           </span>
429 429
         </div>
430 430
       </div>
@@ -663,7 +663,7 @@ export default {
663 663
         this.$message.error('钠未填')
664 664
       }else if(this.prescription.amylaceum == ""){
665 665
         this.$message.error('葡萄糖未填')
666
-      }else if(this.prescription.prescription_doctor == 0){
666
+      }else if(this.prescription.creater == 0){
667 667
         this.$message.error('医生未填')
668 668
       }else if(this.predialysis.creater == 0){
669 669
         this.$message.error('透前评估护士未填')

+ 19 - 19
src/xt_pages/dialysis/template/DialysisPrintOrderThirtySix.vue Vedi File

@@ -174,18 +174,18 @@
174 174
               <table class="table-box">
175 175
                 <tbody>
176 176
                   <tr>
177
-                    <td width="190"></td>
177
+                    <!-- <td width="190"></td> -->
178 178
                     <td width='100'>穿刺针型号:</td>
179
-                    <td width="110">
180
-                      <div>
181
-                        <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('16G-动脉') > -1 ? true : predialysis.puncture_needle && predialysis.puncture_needle.indexOf('16G-静脉') > -1 ? true : false" showValue="16G"></label-box>
179
+                    <td>
180
+                      <div class="under-line" style="text-align:left;">{{ predialysis.puncture_needle ? predialysis.puncture_needle : '/' }}</div>
181
+                      <!-- <div>
182
+                        <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('16G') > -1 ? true : predialysis.puncture_needle && predialysis.puncture_needle.indexOf('16G-静脉') > -1 ? true : false" showValue="16G"></label-box>
182 183
                         &nbsp;
183
-                        <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('17G-动脉') > -1 ? true : predialysis.puncture_needle && predialysis.puncture_needle.indexOf('17G-静脉') > -1 ? true : false" showValue="17G"></label-box>
184
+                        <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('17G') > -1 ? true : predialysis.puncture_needle && predialysis.puncture_needle.indexOf('17G-静脉') > -1 ? true : false" showValue="17G"></label-box>
184 185
                         &nbsp;
185
-                      </div>
186
+                      </div> -->
186 187
                     </td>
187
-                    <td width="30"></td>
188
-                    <td width='80'>钝针穿刺:</td>
188
+                    <!-- <td width='80'>钝针穿刺:</td>
189 189
                     <td width="140">
190 190
                       <div>
191 191
                         <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('16G-动脉') > -1 ? true : predialysis.puncture_needle && predialysis.puncture_needle.indexOf('17G-动脉') > -1 ? true : false" showValue="动脉"></label-box>
@@ -193,7 +193,7 @@
193 193
                         <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('16G-静脉') > -1 ? true : predialysis.puncture_needle && predialysis.puncture_needle.indexOf('17G-静脉') > -1 ? true : false" showValue="静脉"></label-box>
194 194
                         &nbsp;)
195 195
                       </div>
196
-                    </td>
196
+                    </td> -->
197 197
                     <td></td>
198 198
                   </tr>
199 199
                 </tbody>
@@ -274,8 +274,8 @@
274 274
                     <td width='50'>打折:</td>
275 275
                     <td width="80">
276 276
                       <div>
277
-                        <label-box :isChecked="predialysis.catheter.indexOf('打折-无') > -1" showValue="无"></label-box>&nbsp;
278
-                        <label-box :isChecked="predialysis.catheter.indexOf('打折-有') > -1" showValue="有"></label-box>
277
+                        <label-box :isChecked="predialysis.catheter_bend == 2" showValue="无"></label-box>&nbsp;
278
+                        <label-box :isChecked="predialysis.catheter_bend == 1" showValue="有"></label-box>
279 279
                       </div>
280 280
                     </td>
281 281
                     <td width='30'></td>
@@ -558,9 +558,9 @@
558 558
       <table class="print-table" style="border-left:1px solid #000;border-right:1px solid #000;">
559 559
         <tbody>
560 560
           <tr>
561
-            <td width="120" style="height:40px;">主管医生:</td>
561
+            <td width="70" style="height:40px;">主管医生:</td>
562 562
             <td width="100">
563
-                <div>
563
+                <div style="text-align: left;">
564 564
                     <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
565 565
                     <img class="es-img" style="height:38px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
566 566
                 </div>
@@ -568,15 +568,15 @@
568 568
             <td width="70">预冲护士:</td>
569 569
             <td width="100">
570 570
 
571
-                <div>
571
+                <div style="text-align: left;">
572 572
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.washpipe_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)}}</span>
573 573
                     <img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)" alt="" srcset="" v-else>
574 574
                 </div>
575 575
             </td>
576
-            <td width="100">穿刺护士:</td>
576
+            <td width="100">穿刺/开管护士:</td>
577 577
             <td width="100">
578 578
 
579
-                <div>
579
+                <div style="text-align: left;">
580 580
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
581 581
                     <img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
582 582
                 </div>
@@ -584,7 +584,7 @@
584 584
             <td width="70">核对护士:</td>
585 585
             <td width="100">
586 586
 
587
-                <div>
587
+                <div style="text-align: left;">
588 588
                   <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
589 589
                   {{ getAdminUser(check == null ? 0 : check.modifier) }}
590 590
                   </span>
@@ -618,7 +618,7 @@
618 618
             <td width="60">动脉压<br />mmHg</td>
619 619
             <td width="60">静脉压<br />mmHg</td>
620 620
             <td width="60">跨膜压<br />mmHg</td>
621
-            <td width="60">超滤量<br />ml</td>
621
+            <td width="60">超滤量<br />L</td>
622 622
             <td width="60">钠浓度<br/>mmol/L</td>
623 623
             <td width="60">电导度<br/>ms/cm</td>
624 624
             <td width="40">液温<br/>℃</td>
@@ -719,7 +719,7 @@
719 719
                         &nbsp;{{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "" }}
720 720
                       </div>
721 721
                     </td>
722
-                    <td width="20">ml</td>
722
+                    <td width="20">L</td>
723 723
                     <td width="20"></td>
724 724
                     <td width="50">血流量</td>
725 725
                     <td width='140'>

+ 1 - 8
src/xt_pages/hospitalStation/components/dialysisIndex.vue Vedi File

@@ -574,15 +574,7 @@ export default {
574 574
       }
575 575
     },
576 576
     getScheduleDetail: function() {
577
-      
578 577
       this.loading = true
579
-    //   var dateStr = parseTime(this.date, '{y}-{m}-{d}')
580
-      // if(this.$route.query.showView == true){
581
-      //   this.loading = false
582
-      //   return
583
-      // }
584
-        console.log('this.patient_id',this.patient_id)
585
-        console.log('this.date',this.date)
586 578
       this.doctor_advices = []
587 579
       getDialysisScheduleDetail(this.patient_id, this.date).then(rs => {
588 580
 
@@ -592,6 +584,7 @@ export default {
592 584
           var schedual = resp.data.schedual // 患者排班信息
593 585
          
594 586
           var prescription = resp.data.prescription // 透析处方
587
+          console.log("投产出大发大发233232323232233232",prescription)
595 588
           if (prescription != null) {
596 589
             if (prescription.body_fluid == -2) {
597 590
               prescription.body_fluid = 0

+ 20 - 7
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Vedi File

@@ -442,14 +442,27 @@
442 442
         this.$refs.multipleTable3.toggleAllSelection()
443 443
       },
444 444
       printThisPage() {
445
-        const style =
445
+        if(this.org_id == 10138){
446
+          const style =
446 447
           '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 87%;}}}'
447
-        printJS({
448
-          printable: 'printMain',
449
-          type: 'html',
450
-          style: style,
451
-          scanStyles: false
452
-        })
448
+          printJS({
449
+            printable: 'printMain',
450
+            type: 'html',
451
+            style: style,
452
+            scanStyles: false
453
+          })
454
+        }else{
455
+          const style =
456
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}}'
457
+          printJS({
458
+            printable: 'printMain',
459
+            type: 'html',
460
+            style: style,
461
+            scanStyles: false
462
+          })
463
+        }
464
+        
465
+        
453 466
         this.innerVisible = false
454 467
         // this.$nextTick(() => {
455 468
         //   this.$refs.print.printThisPage()

+ 17 - 4
src/xt_pages/outpatientDoctorStation/template/printOne.vue Vedi File

@@ -18,7 +18,8 @@
18 18
               <div style="margin-bottom: 10px;">门诊号:{{hisPatient.number?hisPatient.number:""}}</div>
19 19
               <div style="margin-bottom: 10px;">科室:{{item.info?getDepart(item.info.departments):''}}</div>
20 20
               <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
21
-              <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
21
+              <div style="margin-bottom: 10px;" v-if="org_id != 10188">电话:{{item.patient.phone}}</div>
22
+              <div style="margin-bottom: 10px;" v-else>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</div>
22 23
               <div>地址:{{item.patient.home_address}}</div>
23 24
               <div style="display:flex;width:50%;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
24 25
           </div>
@@ -43,11 +44,15 @@
43 44
                <div style="text-align:center;" >(以下空白)</div>
44 45
 
45 46
           </div>
46
-          <div class="doctorBox">
47
+          <div class="doctorBox" v-if="org_id != 10188">
47 48
               <p>医师:{{item.doctor?item.doctor:""}}</p>
48 49
               <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
49 50
           </div>
50
-          <div class="actionBar">
51
+          <div class="doctorBox" v-else>
52
+            <p>药师:</p>
53
+            <p>医师:{{item.doctor?item.doctor:""}}</p>
54
+          </div>
55
+          <div class="actionBar" v-if="org_id != 10188">
51 56
                  <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
52 57
                  <p>配对:</p>
53 58
                  <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
@@ -60,6 +65,13 @@
60 65
                  <p>发药:</p>
61 66
                  <p>药费:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):0}}元</p>
62 67
           </div>
68
+          <div class="actionBar" v-else>
69
+            <p style="visibility: hidden;">审核:</p>
70
+            <p style="visibility: hidden;">配对:</p>
71
+            <p style="visibility: hidden;">核对:</p>
72
+            <p style="visibility: hidden;">发药:</p>
73
+            <p>药费:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):0}}元</p>
74
+          </div>
63 75
           <div style="page-break-after:always"></div>
64 76
       </div>
65 77
     </div>
@@ -92,6 +104,7 @@ export default {
92 104
         projectList:[],
93 105
         orgname:"",
94 106
         diagnoses:[],
107
+        org_id: 0
95 108
       }
96 109
     },
97 110
    methods:{
@@ -265,7 +278,7 @@ export default {
265 278
       this.getHisPatientDetail()
266 279
       var xtuser = this.$store.getters.xt_user;
267 280
       this.orgname = xtuser.org.org_name;
268
-
281
+      this.org_id = xtuser.org.id
269 282
    },
270 283
    watch:{
271 284
      ids:function(val){

+ 48 - 14
src/xt_pages/stock/drugs/components/drugOutDetail.vue Vedi File

@@ -212,6 +212,8 @@ export default {
212 212
   name: "stockOutDetail",
213 213
 
214 214
   created() {
215
+    this.org_id = this.$store.getters.xt_user.org.id
216
+    console.log("jj233223323223",this.org_id)
215 217
     var nowDate = new Date();
216 218
     var nowYear = nowDate.getFullYear();
217 219
     var nowMonth = nowDate.getMonth() + 1;
@@ -281,7 +283,8 @@ export default {
281 283
       tableData:[],
282 284
       tableList:[],
283 285
       drugList:[],
284
-      tablePrint:[]
286
+      tablePrint:[],
287
+      org_id:0,
285 288
     };
286 289
   },
287 290
   methods: {
@@ -452,7 +455,7 @@ export default {
452 455
                  count:0,
453 456
                  price:item.price,
454 457
                  remark:item.remark,
455
-                 total_price:0,
458
+                 total_price:0.0,
456 459
                  dose:item.dose,
457 460
                  dose_unit:item.dose_unit,
458 461
                  min_number:item.min_number,
@@ -504,26 +507,35 @@ export default {
504 507
     },
505 508
 
506 509
      exportList(){
507
-
510
+        console.log("hh23233223",this.tablePrint)
508 511
         for(let i=0;i<this.tablePrint.length;i++){
509 512
           this.tablePrint[i].index = i+1
510
-          
511 513
         }
512 514
         for(let i=0;i<this.tablePrint.length;i++){
513
-           this.tablePrint[i].count = this.getCount(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_unit,this.tablePrint[i].min_number)
514
-           this.tablePrint[i].total_price = this.getTotalPrice(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].price)
515
-           this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
516
-            this.tablePrint[i].total = this.getTotalPriceOne(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].price) 
515
+           if(this.org_id == 9671 || this.org_id == 9919 ){
516
+             this.tablePrint[i].count = this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child)
517
+             this.tablePrint[i].total_price = this.getCountSenven(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)
518
+             this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
519
+             this.tablePrint[i].total = this.getCountSenvenOne(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)
520
+           }else{
521
+              this.tablePrint[i].count = this.getCount(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_unit,this.tablePrint[i].min_number)
522
+              this.tablePrint[i].total_price = this.getTotalPrice(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].price)
523
+              this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
524
+              this.tablePrint[i].total = this.getTotalPriceOne(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].price) 
525
+           }
526
+         
527
+          
517 528
         }
518 529
        console.log("列表数据333333333",this.tablePrint)
519
-     
530
+    
520 531
        import('@/vendor/Export2Excel').then(excel => {
521 532
        const tHeader = ['序号','药品名称', '规格型号', '单位','数量','单价','总价','备注']
522 533
        const filterVal = ['index','drug_name', 'unit', 'min_unit','count','price','total_price','remark']
523
-       let obj = {'index':'合计','total_price':0}
534
+       let obj = {'index':'合计','total_price':0.00}
524 535
        for(let i=0;i<this.tablePrint.length;i++){
525
-         obj.total_price += this.tablePrint[i].total 
536
+         obj.total_price += this.tablePrint[i].total
526 537
        }
538
+       obj.total_price = obj.total_price.toFixed(2)
527 539
        this.tablePrint.push(obj)
528 540
        const data = this.formatJson(filterVal, this.tablePrint)
529 541
        console.log("data",data)
@@ -561,9 +573,9 @@ export default {
561 573
         this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
562 574
         this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)
563 575
        }
564
-       let obj = {'index':'合计','total_price':0}
576
+       let obj = {'index':'合计','total_price':0.00}
565 577
        for(let i=0;i<this.tableData.length;i++){
566
-         obj.total_price += this.tableData[i].total 
578
+         obj.total_price += this.tableData[i].total
567 579
        }
568 580
        
569 581
        this.tableData.push(obj)
@@ -709,7 +721,29 @@ export default {
709 721
         }
710 722
         console.log("total23232",total)
711 723
         return total*min_price
712
-      }
724
+      },
725
+      getCountSix(drug_id,val){
726
+        console.log("val233232",val)
727
+        var count = 0 
728
+        for(let i=0;i<val.length;i++){
729
+          count+= val[i].count
730
+        }
731
+        return count
732
+      },
733
+      getCountSenven(drug_id,val,price){
734
+        var count = 0 
735
+        for(let i=0;i<val.length;i++){
736
+          count+= val[i].count
737
+        }
738
+        return (count*price).toFixed(2)
739
+      },
740
+      getCountSenvenOne(drug_id,val,price){
741
+        var count = 0 
742
+        for(let i=0;i<val.length;i++){
743
+          count+= val[i].count
744
+        }
745
+        return (count*price)
746
+      },
713 747
   }
714 748
 };
715 749
 </script>

+ 27 - 75
src/xt_pages/stock/drugs/drugOutOrderPrint.vue Vedi File

@@ -37,23 +37,21 @@
37 37
                 <span>{{item.dose}}{{item.dose_unit}}*{{item.min_number}}{{item.min_unit}}/{{item.max_unit}}</span>
38 38
               </td>
39 39
               <td style="line-height: 50px">
40
-                <span>{{item.min_unit}}</span>
40
+                <span v-if="org_id == 9671 || org_id == 9919 ">{{item.max_unit}}</span>
41
+                <span v-else>{{item.min_unit}}</span>
41 42
               </td>
42 43
             
43 44
               <td style="line-height: 50px">
44
-                  <!-- {{item.count}} -->
45
-                  {{getCount(item.child,item.max_unit,item.min_unit,item.min_number)}}
45
+                <span v-if="org_id == 9671 || org_id == 9919">{{getCountSix(item.drug_id,item.child)}}</span>  
46
+                <span v-else>{{getCount(item.child,item.max_unit,item.min_unit,item.min_number)}}</span>
46 47
               </td>
47 48
               <td style="line-height:50px">
48
-                  {{item.min_price}}
49
-                  <!-- {{getPrice(item.drug_id)}} -->
49
+                  <span v-if="org_id ==9671 || org_id == 9919">{{item.price}}</span>
50
+                  <span v-else>{{item.min_price}}</span> 
50 51
               </td>
51 52
               <td style="line-height:50px">
52
-                  <!-- {{(item.count * getPrice(item.drug_id)).toFixed(2)}} -->
53
-                  <!-- {{item.count*item.price}} -->
54
-                <!-- <span>{{getTotalPrice(item.child,item.max_unit,item.min_number,item.min_price)}}</span> -->
55
-               
56
-                <span>{{(getCountOne(item.child,item.max_unit,item.min_unit,item.min_number)*item.min_price).toFixed(2)}}</span>
53
+                <span v-if="org_id ==9671 || org_id == 9919">{{(getCountSenven(item.drug_id,item.child,item.price))}}</span>
54
+                <span v-else>{{(getCountOne(item.child,item.max_unit,item.min_unit,item.min_number)*item.min_price).toFixed(2)}}</span>
57 55
               </td>
58 56
               <td style="line-height: 50px">
59 57
                  {{item.remark}}
@@ -121,8 +119,8 @@
121 119
         limit:this.$route.query.limit,
122 120
         page:this.$route.query.page,
123 121
         cancelStockDate:[],
124
-        drugList:[]
125
-       
122
+        drugList:[],
123
+        org_id:0
126 124
       }
127 125
     },
128 126
     methods: {
@@ -163,67 +161,6 @@
163 161
         }
164 162
         return name
165 163
       },
166
-      // getlist(){
167
-      //   var params = {
168
-      //   start_time:this.start_time,
169
-      //   end_time:this.end_time,
170
-      //   order_type:this.order_type,
171
-      //   manufacturer_id:this.manufacturer_id,
172
-      //   keyword:this.searchKey,
173
-      //   limit:this.limit,
174
-      //   page:this.page,
175
-      //  }
176
-      //  console.log("出库数据22222",params)
177
-      // getDrugOutDetail(params).then(response=>{
178
-      //   if(response.data.state == 1){
179
-      //     var drugInOrder = response.data.data.order
180
-      //     console.log("出库数据22",drugInOrder)
181
-      //     let objInfo = {}
182
-      //     drugInOrder.forEach((item,index)=>{
183
-      //        let { drug_id } = item
184
-      //        if(!objInfo[drug_id]){
185
-      //          objInfo[drug_id] = {
186
-      //            drug_id,
187
-      //            child:[],
188
-      //            drug_name:item.drug_name,
189
-      //            drug_spec:item.drug_spec,
190
-      //            min_unit:item.min_unit,
191
-      //            count:0,
192
-      //            last_price:item.XtBaseDrug.last_price,
193
-      //            remark:item.remark,
194
-      //            total_price:"",
195
-      //            dose:item.dose,
196
-      //            dose_unit:item.dose_unit,
197
-      //            min_number:item.min_number,
198
-      //            max_unit:item.max_unit,
199
-                
200
-      //          }
201
-      //        }
202
-      //     })
203
-      //     let list = Object.values(objInfo);
204
-      //     console.log("list2334444",list)
205
-      //     for(let i=0;i<drugInOrder.length;i++){
206
-      //       list.map(item=>{
207
-      //         if(drugInOrder[i].drug_id == item.drug_id){
208
-      //            item.child.push(drugInOrder[i])
209
-      //         }
210
-      //       })
211
-      //     }
212
-          
213
-      //     console.log("药品出库明细",list)
214
-      //     for(let i=0;i<list.length;i++){
215
-      //       for(let j=0;j<list[i].child.length;j++){
216
-      //         if(list[i].child[j].count!=null || list[i].child[j].count != "" || list[i].child[j].count!=0){
217
-      //           list[i].count += list[i].child[j].count
218
-      //         }
219
-      //       }
220
-      //     }
221
-      //     console.log("药品出库明细",list)
222
-      //     this.cancelStockDate = list
223
-        
224
-      //   }
225
-      // })  
226
-      // },
227 164
       getTotal(){
228 165
          var total = 0
229 166
          for(let i=0;i<this.cancelStockDate.length;i++){
@@ -312,7 +249,6 @@
312 249
         })
313 250
       },
314 251
       getCount(arr,max_unit,min_unit,min_number){
315
-        console.log("arr2332332233232",arr)
316 252
         var total = 0
317 253
         var str = ""
318 254
         var min_str = ""
@@ -328,7 +264,6 @@
328 264
         for(let i=0;i<arr.length;i++){
329 265
           total+= parseInt(arr[i].total_count)
330 266
         }
331
-       console.log("total233223232323",total,min_number)
332 267
        if(total<min_number){
333 268
            str = ""
334 269
            min_str = total + min_unit
@@ -379,9 +314,26 @@
379 314
         }
380 315
         console.log("totla",total)
381 316
         return (total*min_price).toFixed(2)
317
+      },
318
+      getCountSix(drug_id,val){
319
+        console.log("val233232",val)
320
+        var count = 0 
321
+        for(let i=0;i<val.length;i++){
322
+          count+= val[i].count
323
+        }
324
+        return count
325
+      },
326
+      getCountSenven(drug_id,val,price){
327
+        var count = 0 
328
+        for(let i=0;i<val.length;i++){
329
+          count+= val[i].count
330
+        }
331
+        return (count*price).toFixed(2)
382 332
       }
383 333
     },
384 334
     created() {
335
+      this.org_id = this.$store.getters.xt_user.org.id
336
+      console.log("jj233223323223",this.org_id)
385 337
       var xtuser = this.$store.getters.xt_user
386 338
       this.orgname = xtuser.org.org_name
387 339
       this.getDrugOutOrderPrint()

+ 3 - 1
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue Vedi File

@@ -441,6 +441,7 @@ export default {
441 441
       drugList:[],
442 442
       manufacturerList:[],
443 443
       dealerList:[],
444
+      org_id:0,
444 445
     };
445 446
   },
446 447
   methods: {
@@ -747,7 +748,7 @@ export default {
747 748
 
748 749
             response.data.data.info[i].drug_name = response.data.data.info[i].drug.drug_name
749 750
 
750
-            response.data.data.info[i].last_price = response.data.data.info[i].drug.last_price
751
+            response.data.data.info[i].last_price = response.data.data.info[i].price
751 752
 
752 753
             response.data.data.info[i].max_unit = response.data.data.info[i].drug.max_unit
753 754
             
@@ -869,6 +870,7 @@ export default {
869 870
 
870 871
   },
871 872
   created() {
873
+   
872 874
     this.drugTypeList = getDictionaryDataConfig('system','drug_type') 
873 875
     this.GetConfigInfo();
874 876
     this.propForm.goodUnit = this.$store.getters.good_unit;

+ 23 - 13
src/xt_pages/user/dialysisSolution.vue Vedi File

@@ -900,7 +900,7 @@ export default {
900 900
         epo:"",
901 901
         epo_count:"",
902 902
         max_ultrafiltration_rate:"",
903
-
903
+   
904 904
       },
905 905
       childPlan: {
906 906
         mode: '',
@@ -1586,6 +1586,14 @@ export default {
1586 1586
       this.addPlan.hemodialysis_machine = row.hemodialysis_machine + ''
1587 1587
       this.addPlan.perfusion_apparatus = row.perfusion_apparatus + ''
1588 1588
       this.addPlan.max_ultrafiltration_rate = row.max_ultrafiltration_rate
1589
+
1590
+      // this.addPlan.oxygen_uptake = row.oxygen_uptake
1591
+      // this.addPlan.hemodialysis_pipelines = row.hemodialysis_pipelines
1592
+      // this.addPlan.hemodialysis_pipelines_count = row.hemodialysis_pipelines_count
1593
+      // this.addPlan.puncture_needle = row.puncture_needle
1594
+      // this.addPlan.puncture_needle_count = row.puncture_needle_count
1595
+      // this.addPlan.epo = row.epo
1596
+      // this.addPlan.epo_count = row.epo_count
1589 1597
       if(row.blood_flow_volume!="" || row.blood_flow_volume!=undefined){
1590 1598
         this.addPlan.blood_flow_volume = row.blood_flow_volume.toString()
1591 1599
       }
@@ -1658,23 +1666,23 @@ export default {
1658 1666
     
1659 1667
       this.addPlan.remark = row.remark
1660 1668
 
1661
-      // this.addPlan.hemodialysis_pipelines  = row.hemodialysis_pipelines
1669
+      this.addPlan.hemodialysis_pipelines  = row.hemodialysis_pipelines
1662 1670
 
1663
-      // if(row.hemodialysis_pipelines_count!="" || row.hemodialysis_pipelines_count!=undefined){
1664
-      //   this.addPlan.hemodialysis_pipelines_count  = row.hemodialysis_pipelines_count.toString()
1665
-      // }
1671
+      if(row.hemodialysis_pipelines_count!="" || row.hemodialysis_pipelines_count!=undefined){
1672
+        this.addPlan.hemodialysis_pipelines_count  = row.hemodialysis_pipelines_count.toString()
1673
+      }
1666 1674
      
1667
-      // this.addPlan.puncture_needle  = row.puncture_needle
1675
+      this.addPlan.puncture_needle  = row.puncture_needle
1668 1676
 
1669
-      // if(row.puncture_needle_count!=null || row.puncture_needle_count!=undefined){
1670
-      //   this.addPlan.puncture_needle_count = row.puncture_needle_count.toString()
1671
-      // }
1677
+      if(row.puncture_needle_count!=null || row.puncture_needle_count!=undefined){
1678
+        this.addPlan.puncture_needle_count = row.puncture_needle_count.toString()
1679
+      }
1672 1680
      
1673
-      // this.addPlan.epo  = row.epo
1681
+      this.addPlan.epo  = row.epo
1674 1682
 
1675
-      // if(row.epo_count!="" || row.epo_count!=undefined){
1676
-      //   this.addPlan.epo_count  = row.epo_count.toString()
1677
-      // }
1683
+      if(row.epo_count!="" || row.epo_count!=undefined){
1684
+        this.addPlan.epo_count  = row.epo_count.toString()
1685
+      }
1678 1686
     
1679 1687
       if(row.dialyzer_perfusion_apparatus!="" ||  row.dialyzer_perfusion_apparatus!=undefined){
1680 1688
          this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
@@ -1693,6 +1701,8 @@ export default {
1693 1701
       this.dialysis_dialyszers = row.dialysis_dialyszers
1694 1702
       this.addPlan.oxygen_uptake = row.oxygen_uptake
1695 1703
       this.addPlan.max_ultrafiltration_rate = row.max_ultrafiltration_rate
1704
+      this.addPlan.oxygen_flow = row.oxygen_flow
1705
+      this.addPlan.oxygen_time = row.oxygen_time
1696 1706
       if(row.oxygen_uptake == 1){
1697 1707
         this.oxygenShow = true
1698 1708
       }