Browse Source

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

XMLWAN 3 years ago
parent
commit
aeae3c00b1

+ 27 - 24
src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue View File

@@ -34,7 +34,7 @@
34 34
           <td style="text-align:center;" colspan="2">
35 35
             透析年限:
36 36
             <span style="display:inline-block;margin-left:10px;">
37
-                {{ patientInfo.first_dialysis_date ? getMonths(patientInfo.first_dialysis_date) : '/' }}
37
+                {{ patientInfo.first_dialysis_date ? getMonths(patientInfo.first_dialysis_date) : '/' }}
38 38
             </span>
39 39
           </td>
40 40
         </tr>
@@ -53,16 +53,16 @@
53 53
         <tr>
54 54
           <td style="text-align:left;" colspan="5">
55 55
             <span style="display:inline-block;margin-left:15px;">血管通路类型:</span>
56
-            <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('自体内瘘')>-1?true:false"
56
+            <label-box :isChecked="prescription.blood_access_part_opera_name ? prescription.blood_access_part_opera_name.indexOf('自体内瘘')>-1?true:false : false"
57 57
                 showValue='自体内瘘'></label-box>
58 58
             &nbsp;
59
-            <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('移植物内瘘')>-1?true:false"
59
+            <label-box :isChecked="prescription.blood_access_part_opera_name ? prescription.blood_access_part_opera_name.indexOf('移植物内瘘')>-1?true:false : false"
60 60
                 showValue='移植物内瘘'></label-box>
61 61
             &nbsp;
62
-            <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('临时插管')>-1?true:false"
62
+            <label-box :isChecked="prescription.blood_access_part_opera_name ? prescription.blood_access_part_opera_name.indexOf('临时插管')>-1?true:false : false"
63 63
                 showValue='临时插管'></label-box>
64 64
             &nbsp;
65
-            <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期插管')>-1?true:false"
65
+            <label-box :isChecked="prescription.blood_access_part_opera_name ? prescription.blood_access_part_opera_name.indexOf('长期插管')>-1?true:false : false"
66 66
                 showValue='长期插管'></label-box>
67 67
             &nbsp;
68 68
           </td>
@@ -127,7 +127,7 @@
127 127
           <td style="text-align:left;" colspan="1">
128 128
             <span style="display:inline-block;margin-left:15px;">
129 129
               净脱水:
130
-              {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}kg
130
+              {{ afterdialysis.weight_loss ? afterdialysis.weight_loss : "/" }}kg
131 131
             </span>
132 132
           </td>
133 133
         </tr>
@@ -181,16 +181,16 @@
181 181
         <tr>
182 182
           <td style="text-align:left;" colspan="5">
183 183
             <span style="display:inline-block;margin-left:15px;">
184
-                总结:{{ summary.dialysis_summary ? summary.dialysis_summary : "/" }}
184
+                总结:{{ dialysis_summary ? dialysis_summary : "/" }}
185 185
             </span>
186 186
           </td>
187 187
           <td style="text-align:left;" colspan="1">
188 188
             <span style="display:inline-block;margin-left:15px;">
189 189
                 医生签名:
190
-                <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(prescription.prescription_doctor) == ''">
191
-                {{ getAdminUser(prescription.prescription_doctor) }}
190
+                <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(prescription.creater) == ''">
191
+                {{ getAdminUser(prescription.creater) }}
192 192
                 </span>
193
-                <img style="height:30px;" :src="setAdminUserES(prescription.prescription_doctor)" alt="" srcset="" v-else />
193
+                <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else />
194 194
             </span>
195 195
           </td>
196 196
         </tr>
@@ -246,7 +246,7 @@
246 246
             </span>
247 247
           </td>
248 248
           
249
-          <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
249
+          <td>{{ getTime(advice.execution_time, "{h}:{i}") }}</td>
250 250
           <td>
251 251
             <span v-if="setAdminUserES(advice.execution_staff) == ''">
252 252
               {{
@@ -365,15 +365,9 @@
365 365
             </td>
366 366
         </tr>
367 367
         <tr>
368
-            <td style="text-align:left;" colspan="4">
369
-                <span style="display:inline-block;margin-left:15px;">
370
-                    导管功能评估:
371
-                    {{ afterdialysis.catheter ? afterdialysis.catheter : "/" }}
372
-                </span>
373
-            </td>
374
-            <td style="text-align:left;" colspan="4">
368
+            <td style="text-align:left;" colspan="8">
375 369
                 <span style="display:inline-block;margin-left:15px;">
376
-                    导管隧道评估:
370
+                    导管评估:
377 371
                     {{ afterdialysis.catheter ? afterdialysis.catheter : "/" }}
378 372
                 </span>
379 373
             </td>
@@ -399,25 +393,25 @@
399 393
             <td style="text-align:left;" colspan="4">
400 394
                 <span style="margin-left:15px;align-items: center;display: flex;">
401 395
                     核对护士:
402
-                    <span style="width: 80px;text-align: center" v-if="dialysisOrder == null">
396
+                    <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder == null">
403 397
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
404 398
                         {{ getAdminUser(check == null ? 0 : check.creater) }}
405 399
                       </span>
406 400
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
407 401
                     </span>
408
-                    <span style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
402
+                    <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
409 403
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
410 404
                         {{ getAdminUser(check == null ? 0 : check.creater) }}
411 405
                       </span>
412 406
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
413 407
                     </span>
414
-                    <span style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
408
+                    <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
415 409
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
416 410
                         {{ getAdminUser(check == null ? 0 : check.modifier) }}
417 411
                       </span>
418 412
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt="" srcset="" v-else />
419 413
                     </span>
420
-                    <span style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater && dialysisOrder.start_nurse != check.modifier">
414
+                    <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater && dialysisOrder.start_nurse != check.modifier">
421 415
                       <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
422 416
                         {{ getAdminUser(check == null ? 0 : check.creater) }}
423 417
                       </span>
@@ -733,7 +727,12 @@ export default {
733 727
       var ty=tt.getFullYear(); //今天年
734 728
       var tm=tt.getMonth()+1; //今天月
735 729
       var gm=(ty-oy)*12+(tm-om); //距今月数
736
-      return gm
730
+      if(gm < 12){
731
+          return gm + '个月'
732
+      }else{
733
+          return parseInt(gm / 12) + '年' + gm % 12 + '个月'
734
+      }
735
+      
737 736
     },
738 737
     getCruor(cruor){
739 738
       if(cruor.indexOf(',') == -1){
@@ -923,6 +922,7 @@ export default {
923 922
           this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
924 923
             this.predialysis.blood_access_part_opera_id
925 924
           )
925
+          
926 926
           var afterdialysis = response.data.data.AssessmentAfterDislysis
927 927
           // eslint-disable-next-line no-undef
928 928
           console.log('透后评估', afterdialysis)
@@ -1192,6 +1192,9 @@ export default {
1192 1192
           this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
1193 1193
             this.prescription.dialysate_formulation
1194 1194
           )
1195
+          this.prescription.blood_access_part_opera_name = this.bloodAccessParOperaName(
1196
+            this.prescription.blood_access
1197
+          );
1195 1198
 
1196 1199
           var paLen = this.perfusionApparatus.length
1197 1200
           this.prescription.perfusion_apparatus_name = ''

+ 27 - 15
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -1,5 +1,8 @@
1 1
 <template>
2
-    <div class="main-contain outpatientChargesManagement">
2
+    <div class="main-contain outpatientChargesManagement" v-loading="newLoading"
3
+    element-loading-text="拼命加载中"
4
+    element-loading-spinner="el-icon-loading"
5
+    element-loading-background="rgba(0, 0, 0, 0.8)">
3 6
         <div class="position">
4 7
             <bread-crumb :crumbs='crumbs'></bread-crumb>
5 8
         </div>
@@ -120,9 +123,7 @@
120 123
                                                                 type="primary"
121 124
                                                         >修改医疗类型
122 125
                                                         </el-button>
123
-                                                    </el-tab-pane>
124
-
125
-                                                    <div style="margin-bottom:10px;float: right">
126
+                                                        <div style="margin-bottom:10px;float: right">
126 127
                                                         <div>
127 128
                                                             <el-button
128 129
                                                                     v-if="(hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0)"
@@ -148,6 +149,9 @@
148 149
                                                             </el-button>
149 150
                                                         </div>
150 151
                                                     </div>
152
+                                                    </el-tab-pane>
153
+
154
+                                                    
151 155
 
152 156
                                                     <prescription-table ref="prescription_tables"
153 157
                                                                         :prescription="items.curPrescriptions"></prescription-table>
@@ -690,7 +694,8 @@
690 694
 
691 695
         temp_ids: '',
692 696
 
693
-        other_prescriptions: []
697
+        other_prescriptions: [],
698
+        newLoading:false
694 699
 
695 700
       }
696 701
     },
@@ -857,7 +862,7 @@
857 862
         })
858 863
 
859 864
       }, chargeConfirm(form) {
860
-
865
+        this.newLoading = true
861 866
         form['id'] = this.patientInfo.id
862 867
         form['his_patient_id'] = this.hisPatientInfo.id
863 868
         form['record_time'] = this.record_date
@@ -884,6 +889,7 @@
884 889
             if (response.data.state == 0) {
885 890
               this.$message.error(response.data.msg)
886 891
               this.loadingtwo = false
892
+              this.newLoading = false
887 893
               this.$refs.charge.hide()
888 894
               return false
889 895
             } else {
@@ -896,6 +902,7 @@
896 902
               this.$message({ message: '收费成功', type: 'success' })
897 903
               this.$refs.charge.hide()
898 904
               this.loadingtwo = false
905
+              this.newLoading = false
899 906
             }
900 907
           })
901 908
 
@@ -919,8 +926,9 @@
919 926
                     confirmButtonText: '确 定',
920 927
                     type: 'warning'
921 928
                   }).then(() => {
922
-
929
+                    that.newLoading = false
923 930
                   }).catch(() => {
931
+                    that.newLoading = false
924 932
                   })
925 933
 
926 934
                 } else {
@@ -934,12 +942,12 @@
934 942
                   that.cal_one = this.cal_one - 1
935 943
                   that.cal_two = this.cal_two + 1
936 944
                   that.patientTableData.splice(this.current_index, 1)
937
-
945
+                  that.newLoading = false
938 946
                 }
939 947
               }
940 948
             })
941 949
             .catch(function(error) {
942
-
950
+              that.newLoading = false
943 951
             })
944 952
         }
945 953
       }, chargeCancel() {
@@ -2113,7 +2121,7 @@
2113 2121
           }
2114 2122
           var ids_str = ids.join(',')
2115 2123
           this.temp_ids = ids_str
2116
-
2124
+          this.newLoading = true
2117 2125
           var that = this
2118 2126
           let form = {}
2119 2127
           form['id'] = this.patientInfo.id
@@ -2146,14 +2154,16 @@
2146 2154
                 if (response.data.state == 0) {
2147 2155
                   this.$message.error(response.data.msg)
2148 2156
                   this.loadingtwo = false
2157
+                  this.newLoading = false
2149 2158
                   return false
2150 2159
                 } else {
2151 2160
                   this.changeRadioAndPatient(1)
2152 2161
                   this.$message({ message: '预结算成功', type: 'success' })
2162
+                  this.newLoading = false
2153 2163
                 }
2154 2164
               })
2155 2165
             }).catch(() => {
2156
-
2166
+              this.newLoading = false
2157 2167
             })
2158 2168
 
2159 2169
           } else {
@@ -2178,20 +2188,22 @@
2178 2188
                         confirmButtonText: '确 定',
2179 2189
                         type: 'warning'
2180 2190
                       }).then(() => {
2181
-
2191
+                        that.newLoading = false
2182 2192
                       }).catch(() => {
2193
+                        that.newLoading = false
2183 2194
                       })
2184 2195
                     } else {
2185 2196
                       that.changeRadioAndPatient(1)
2186 2197
                       that.$message({ message: '预结算成功', type: 'success', duration: 5000 })
2198
+                      that.newLoading = false
2187 2199
                     }
2188 2200
                   }
2189 2201
                 })
2190 2202
                 .catch(function(error) {
2191
-
2203
+                  that.newLoading = false
2192 2204
                 })
2193 2205
             }).catch(() => {
2194
-
2206
+              that.newLoading = false
2195 2207
             })
2196 2208
           }
2197 2209
 
@@ -4103,7 +4115,7 @@
4103 4115
         position: relative;
4104 4116
 
4105 4117
         overflow-y: auto;
4106
-        height: 350px;
4118
+        height: 450px;
4107 4119
 
4108 4120
 
4109 4121
     .el-tabs__item {

+ 3 - 4
src/xt_pages/user/templateSummaryPrint.vue View File

@@ -47,10 +47,9 @@
47 47
         </div>
48 48
       </div> -->
49 49
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
50
-        <span style="font-weight:bold;">阶段小结总结:</span><div style="line-height:24px;">
50
+        <span style="font-weight:bold;">阶段小结总结:</span>
51 51
           <!-- {{patientList.template_summary_content}} -->
52
-          <div v-html="patientList.template_summary_content"></div>
53
-        </div>  
52
+          <div style="line-height:24px;" v-html="patientList.template_summary_content"></div>
54 53
       </div>
55 54
      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:250px;">
56 55
         <span style="font-weight:bold;">阶段小结化验结果:</span>
@@ -292,7 +291,7 @@ export default {
292 291
     printThisPage() {
293 292
         var ptime = Math.round(new Date().getTime() / 1000)
294 293
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
295
-        const style ='@media print {.dialysis-print-order{width:960px;margin:0 auto;letter-spacing:5px}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;font-weight: bold;margin: 10px 0;}'
294
+        const style ='@media print {.dialysis-print-order{width:960px;margin:0 auto;letter-spacing:5px} .dialysis-print-order p{margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;font-weight: bold;margin: 10px 0;}'
296 295
         printJS({
297 296
             printable: 'dialysis-print-box',
298 297
             type: 'html',

+ 2 - 2
src/xt_pages/workforce/remind_print_setting.vue View File

@@ -28,7 +28,7 @@
28 28
                 </div> 
29 29
                 <div>用量:  
30 30
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
31
-                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
31
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
32 32
                   <span v-if="main_collection.dialysissolution.anticoagulant == 3">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
33 33
                   <span v-if="main_collection.dialysissolution.anticoagulant == 4">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
34 34
                   <span v-if="main_collection.dialysissolution.anticoagulant == 5">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
@@ -209,7 +209,7 @@
209 209
 
210 210
       },
211 211
       printAction: function() {
212
-        const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
212
+        const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } @page {margin-top:10px;}}'
213 213
 
214 214
         printJS({
215 215
           printable: 'print_content',