소스 검색

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

csx 3 년 전
부모
커밋
4e05df792d

+ 32 - 23
src/xt_pages/hospitalStation/components/deskPrescription.vue 파일 보기

@@ -225,7 +225,6 @@
225 225
             <span style="color:red;"
226 226
                   v-if="dayorMonth == 'month'">{{ getMonthTotal() ? getMonthTotal() : '' }}元</span>
227 227
 
228
-
229 228
           </div>
230 229
           <span :class="order_status == '未收费' ? 'statusRed' : ''">{{ order_status }}</span>
231 230
 
@@ -523,6 +522,7 @@ export default {
523 522
   },
524 523
   data() {
525 524
     return {
525
+      settle_total:0,
526 526
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
527 527
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
528 528
       register: [
@@ -1055,6 +1055,7 @@ export default {
1055 1055
       getDayOrMonthHisPrescription(params).then(response => {
1056 1056
         if (response.data.state == 1) {
1057 1057
           this.month_prescriptions = []
1058
+          this.settle_total = response.data.data.settle_total
1058 1059
 
1059 1060
           if (val == this.end_time) {
1060 1061
             var day_prescription = response.data.data.day_prescription
@@ -1178,6 +1179,8 @@ export default {
1178 1179
       getDayOrMonthHisPrescription(params).then(response => {
1179 1180
         if (response.data.state == 1) {
1180 1181
           this.month_prescriptions = []
1182
+          this.settle_total = response.data.data.settle_total
1183
+
1181 1184
           if (val == this.start_time) {
1182 1185
             var day_prescription = response.data.data.day_prescription
1183 1186
             // this.month_prescriptions = day_prescription
@@ -1545,6 +1548,8 @@ export default {
1545 1548
     }, searchProjectAction() {
1546 1549
       console.log('~~~~')
1547 1550
       console.log(this.allProject)
1551
+      console.log(this.allProject)
1552
+
1548 1553
 
1549 1554
       if (this.search_project_keyword.length == 0) {
1550 1555
         this.tabProject = this.allProject
@@ -1685,27 +1690,27 @@ export default {
1685 1690
 
1686 1691
       return total.toFixed(2)
1687 1692
     }, getMonthTotal() {
1688
-      var total = 0
1689
-      for (let i = 0; i < this.month_prescriptions.length; i++) {
1690
-        if (this.month_prescriptions[i].advices != null) {
1691
-          for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
1692
-            total = total + (this.month_prescriptions[i].advices[a].retail_price* this.month_prescriptions[i].advices[a].prescribing_number)
1693
-          }
1694
-        }
1695
-        if (this.month_prescriptions[i].project != null) {
1696
-          for (let b = 0; b < this.month_prescriptions[i].project.length; b++) {
1697
-            total = total+ (this.month_prescriptions[i].project[b].price * this.month_prescriptions[i].project[b].total)
1698
-          }
1699
-        }
1700
-
1701
-        if (this.month_prescriptions[i].addition != null) {
1702
-          for (let b = 0; b < this.month_prescriptions[i].addition.length; b++) {
1703
-            total = total + this.month_prescriptions[i].addition[b].price * this.month_prescriptions[i].addition[b].count
1704
-          }
1705
-        }
1706
-      }
1707
-
1708
-      return total.toFixed(2)
1693
+      // var total = 0
1694
+      // for (let i = 0; i < this.month_prescriptions.length; i++) {
1695
+      //   if (this.month_prescriptions[i].advices != null) {
1696
+      //     for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
1697
+      //       total = total + (this.month_prescriptions[i].advices[a].retail_price* this.month_prescriptions[i].advices[a].prescribing_number)
1698
+      //     }
1699
+      //   }
1700
+      //   if (this.month_prescriptions[i].project != null) {
1701
+      //     for (let b = 0; b < this.month_prescriptions[i].project.length; b++) {
1702
+      //       total = total+ (this.month_prescriptions[i].project[b].price * this.month_prescriptions[i].project[b].total)
1703
+      //     }
1704
+      //   }
1705
+      //
1706
+      //   if (this.month_prescriptions[i].addition != null) {
1707
+      //     for (let b = 0; b < this.month_prescriptions[i].addition.length; b++) {
1708
+      //       total = total + this.month_prescriptions[i].addition[b].price * this.month_prescriptions[i].addition[b].count
1709
+      //     }
1710
+      //   }
1711
+      // }
1712
+      console.log("~~~~~~"+this.settle_total)
1713
+      return this.settle_total
1709 1714
     },
1710 1715
     createFilter(queryString) {
1711 1716
       return (restaurant) => {
@@ -2022,7 +2027,9 @@ export default {
2022 2027
       }
2023 2028
 
2024 2029
     },
2025
-    setMonthData(info, admin_info, doctors, department, hisPatientInfo, month_data, last_info) {
2030
+    setMonthData(info, admin_info, doctors, department, hisPatientInfo, month_data, last_info,settle_total) {
2031
+
2032
+
2026 2033
       this.curMonthPrescriptions = {}
2027 2034
       this.curPrescriptions = {}
2028 2035
 
@@ -2126,6 +2133,8 @@ export default {
2126 2133
         this.curMonthPrescriptions = month_data[1]
2127 2134
       }
2128 2135
 
2136
+      this.settle_total = settle_total
2137
+
2129 2138
     },
2130 2139
 
2131 2140
     moreState(tab, event) {

+ 11 - 4
src/xt_pages/hospitalStation/doctorDesk.vue 파일 보기

@@ -321,6 +321,7 @@
321 321
     },
322 322
     data() {
323 323
       return {
324
+        settle_total:0,
324 325
         current_data:null,
325 326
         drugs: [],
326 327
         allDrugs: [],
@@ -821,7 +822,7 @@
821 822
         this.month_prescriptions.push(p2)
822 823
 
823 824
 
824
-        this.$refs.prescriptions.setMonthData(this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info)
825
+        this.$refs.prescriptions.setMonthData(this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info,this.settle_total)
825 826
 
826 827
       },
827 828
 
@@ -3286,6 +3287,8 @@
3286 3287
                   this.hisPatientInfo = response.data.data.his_info
3287 3288
                   this.case_history = response.data.data.case_history
3288 3289
                   var month_prescriptions = response.data.data.month_prescriptions
3290
+                  this.settle_total = response.data.data.settle_total
3291
+                  console.log(this.settle_total)
3289 3292
                   this.setMonthPrescription(month_prescriptions)
3290 3293
                   this.doctors = response.data.data.doctors
3291 3294
                   this.department = response.data.data.department
@@ -3341,7 +3344,7 @@
3341 3344
                   } else {
3342 3345
                     this.case_history.is_infect = false
3343 3346
                   }
3344
-                  this.$refs.prescriptions.setMonthData(this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info)
3347
+                  this.$refs.prescriptions.setMonthData(this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info,this.settle_total)
3345 3348
                 }
3346 3349
               })
3347 3350
             }
@@ -3709,6 +3712,8 @@
3709 3712
 
3710 3713
                   this.month_prescriptions = []
3711 3714
 
3715
+                  this.settle_total = response.data.data.settle_total
3716
+
3712 3717
                   var month_prescriptions = response.data.data.month_prescriptions
3713 3718
                   this.setMonthPrescription(month_prescriptions)
3714 3719
 
@@ -3767,7 +3772,7 @@
3767 3772
                   } else {
3768 3773
                     this.case_history.is_infect = false
3769 3774
                   }
3770
-                  this.$refs.prescriptions.setMonthData(this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info)
3775
+                  this.$refs.prescriptions.setMonthData(this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info,this.settle_total)
3771 3776
                 }
3772 3777
               })
3773 3778
 
@@ -4082,6 +4087,8 @@
4082 4087
 
4083 4088
             this.doctors = response.data.data.doctors
4084 4089
             this.department = response.data.data.department
4090
+            this.settle_total = response.data.data.settle_total
4091
+
4085 4092
 
4086 4093
             for (let i = 0; i < this.doctors.length; i++) {
4087 4094
               if (this.doctors[i].user_type == 1) {
@@ -4132,7 +4139,7 @@
4132 4139
               this.case_history.is_infect = false
4133 4140
             }
4134 4141
 
4135
-            this.$refs.prescriptions.setMonthData(this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info)
4142
+            this.$refs.prescriptions.setMonthData(this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info,this.settle_total)
4136 4143
           }
4137 4144
         })
4138 4145
 

+ 13 - 42
src/xt_pages/hospitalStation/outpatientChargesManagement.vue 파일 보기

@@ -175,7 +175,7 @@
175 175
                   <div class="costBox">
176 176
                     <span>当前处方总费用:<span style="color:red;">{{ settle_total }}元</span></span>
177 177
                     <span>医疗费总额:<span style="color:red;">{{
178
-                        order.medfee_sumamt ? order.medfee_sumamt.toFixed(2) : getSettleTotal() ? getSettleTotal() : ''
178
+                        order.medfee_sumamt ? order.medfee_sumamt.toFixed(2) : settle_total ? settle_total : ''
179 179
                       }}元</span></span>
180 180
                     <span>基金支付总额:<span
181 181
                         style="color:red;">{{
@@ -1105,20 +1105,6 @@ export default {
1105 1105
         }
1106 1106
       }
1107 1107
 
1108
-    },
1109
-    tabclickEventTwo(val) {
1110
-      for (let i = 0; i < this.month_prescriptions.length; i++) {
1111
-        if (this.month_prescriptions[i].name == val.name) {
1112
-
1113
-          this.curMonthPrescriptions = {}
1114
-          var temp = this.deepClone(this.month_prescriptions[i])
1115
-          this.curMonthPrescriptions = temp
1116
-        }
1117
-      }
1118
-      this.prescription_id = this.month_prescriptions.id
1119
-      this.month_total = 0
1120
-      this.month_total = this.getMonthTotalOne()
1121
-
1122 1108
     },
1123 1109
     tabclickEventThree(val) {
1124 1110
       for (let i = 0; i < this.settle_prescriptions.length; i++) {
@@ -1129,27 +1115,12 @@ export default {
1129 1115
           this.curSettlePrescriptions = temp
1130 1116
         }
1131 1117
       }
1132
-      this.prescription_id = this.settle_prescriptions.id
1133
-      this.settle_total = 0
1134
-      this.settle_total = this.getSettleTotalOne()
1118
+      // this.prescription_id = this.settle_prescriptions.id
1119
+      // this.settle_total = 0
1120
+      // this.settle_total = this.getSettleTotalOne()
1135 1121
 
1136 1122
     },
1137
-    tabclickEvent(val) {
1138
-      console.log('val', val.name)
1139
-      for (let i = 0; i < this.prescriptions.length; i++) {
1140
-        if (this.prescriptions[i].name == val.name) {
1141 1123
 
1142
-          this.curPrescriptions = {}
1143
-          var temp = this.deepClone(this.prescriptions[i])
1144
-          this.curPrescriptions = temp
1145
-        }
1146
-      }
1147
-      console.log('9999', this.curPrescriptions)
1148
-      this.prescription_id = this.curPrescriptions.id
1149
-      this.total = 0
1150
-      this.total = this.getTotalOne()
1151
-
1152
-    },
1153 1124
     deepClone(source) {
1154 1125
       if (!source && typeof source !== 'object') {
1155 1126
         throw new Error('error arguments', 'shallowClone')
@@ -1211,20 +1182,20 @@ export default {
1211 1182
       if (this.curSettlePrescriptions.type == 1) {
1212 1183
         if (this.curSettlePrescriptions.advices != null) {
1213 1184
           for (let a = 0; a < this.curSettlePrescriptions.advices.length; a++) {
1214
-            total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.advices[a].retail_price.toFixed(2)  * this.curSettlePrescriptions.advices[a].prescribing_number)
1185
+            total = parseFloat(total) + (this.curSettlePrescriptions.advices[a].retail_price * this.curSettlePrescriptions.advices[a].prescribing_number).toFixed(2)
1215 1186
 
1216 1187
           }
1217 1188
         }
1218 1189
       } else {
1219 1190
         if (this.curSettlePrescriptions.project != null) {
1220 1191
           for (let b = 0; b < this.curSettlePrescriptions.project.length; b++) {
1221
-            total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.project[b].price.toFixed(2)   * this.curSettlePrescriptions.project[b].total)
1192
+            total = parseFloat(total) + (this.curSettlePrescriptions.project[b].price   * this.curSettlePrescriptions.project[b].total).toFixed(2)
1222 1193
 
1223 1194
           }
1224 1195
         }
1225 1196
       }
1226 1197
 
1227
-      return total.toFixed(2)
1198
+      return total
1228 1199
 
1229 1200
     },
1230 1201
     getSettleTotal() {
@@ -1234,7 +1205,7 @@ export default {
1234 1205
           for (let a = 0; a < this.settle_prescriptions[i].advices.length; a++) {
1235 1206
             // console.log(parseFloat(this.settle_prescriptions[i].advices[a].retail_price.toFixed(2)))
1236 1207
             // console.log(this.settle_prescriptions[i].advices[a].prescribing_number)
1237
-            total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].advices[a].retail_price * this.settle_prescriptions[i].advices[a].prescribing_number)
1208
+            total = parseFloat(total) + (parseFloat(this.settle_prescriptions[i].advices[a].retail_price.toString()) * parseFloat(this.settle_prescriptions[i].advices[a].prescribing_number.toString())).toFixed(2)
1238 1209
 
1239 1210
             // console.log(parseFloat(this.settle_prescriptions[i].advices[a].retail_price.toFixed(2) * this.settle_prescriptions[i].advices[a].prescribing_number))
1240 1211
             // total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].advices[a].retail_price).toFixed(2) * this.settle_prescriptions[i].advices[a].prescribing_number
@@ -1242,14 +1213,14 @@ export default {
1242 1213
         }
1243 1214
         if (this.settle_prescriptions[i].project != null) {
1244 1215
           for (let b = 0; b < this.settle_prescriptions[i].project.length; b++) {
1245
-            total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].project[b].price  * this.settle_prescriptions[i].project[b].total)
1216
+            total = parseFloat(total) + (parseFloat(this.settle_prescriptions[i].project[b].price.toString())  * parseFloat(this.settle_prescriptions[i].project[b].total.toString())).toFixed(2)
1246 1217
 
1247 1218
             // total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].project[b].price.toFixed(2))* this.settle_prescriptions[i].project[b].total
1248 1219
           }
1249 1220
         }
1250 1221
 
1251 1222
       }
1252
-      return total.toFixed(2)
1223
+      return total
1253 1224
 
1254 1225
     },
1255 1226
     getTotal() {
@@ -3138,10 +3109,10 @@ export default {
3138 3109
           } else {
3139 3110
             this.curMonthPrescriptions = {}
3140 3111
           }
3141
-          this.total = 0
3112
+          // this.total = 0
3142 3113
           this.total = this.getTotalOne()
3143
-          this.month_total = this.getMonthTotalOne()
3144
-          this.settle_total = this.getSettleTotalOne()
3114
+          // this.month_total = this.getMonthTotalOne()
3115
+          this.settle_total = response.data.data.settle_total
3145 3116
 
3146 3117
         }
3147 3118
       })

+ 71 - 56
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 파일 보기

@@ -305,7 +305,6 @@
305 305
                         :editable="false"
306 306
                         style="width: 150px;"
307 307
                         type="date"
308
-                        :picker-options="pickerOptions"
309 308
                         placeholder="选择开始时间"
310 309
                         align="right"
311 310
                         format="yyyy-MM-dd"
@@ -328,9 +327,6 @@
328 327
                   <div>
329 328
                     <div class="tabsBox" v-for="(items, index) in big_month_prescriptions">
330 329
                       <div style="height: calc(100% - 60px);">
331
-
332
-
333
-                        <!-- <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button> -->
334 330
                         <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
335 331
                                  @tab-click="tabclickEventTwo">
336 332
 
@@ -344,7 +340,7 @@
344 340
                           <el-button
345 341
                               v-if="radio == 1"
346 342
                               size="small"
347
-                              @click="openMonthDialog(item)"
343
+                              @click="openMonthDialog(items)"
348 344
                               type="primary"
349 345
                           >修改医疗类型
350 346
                           </el-button>
@@ -354,19 +350,21 @@
354 350
                             <div>
355 351
 
356 352
                               <el-button
357
-                                  v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) "
353
+                                  v-if="(hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.curMonthPrescriptions.order.id == 0)"
358 354
                                   size="small"
359 355
                                   @click="open(8,items.med_type,items.curMonthPrescriptions.order,items.month_prescriptions)"
360 356
                                   type="primary"
361 357
                               >预结算
362 358
                               </el-button>
363
-                              <!--<el-button-->
364
-                              <!--v-if="items.curMonthPrescriptions.order.order_status == 1"-->
365
-                              <!--size="small" @click="open(11)" type="primary"-->
366
-                              <!--&gt;撤销明细-->
367
-                              <!--</el-button>-->
359
+                              <el-button
360
+                                  v-if="items.curMonthPrescriptions.order.order_status == 1"
361
+                                  size="small"
362
+                                  @click="open(11,items.med_type,items.curMonthPrescriptions.order,items.month_prescriptions)"
363
+                                  type="primary"
364
+                              >撤销明细
365
+                              </el-button>
368 366
 
369
-                              <el-button v-loading="loadingtwo"
367
+                              <el-button
370 368
                                          v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) || items.curMonthPrescriptions.order.order_status == 1 ||  items.curMonthPrescriptions.order.order_status == 3"
371 369
                                          size="small"
372 370
                                          @click="open(4,items.med_type,items.curMonthPrescriptions.order,items.month_prescriptions)"
@@ -561,32 +559,32 @@
561 559
                                 type="primary"
562 560
                             >修改医疗类型
563 561
                             </el-button>
564
-                            <div style="margin-bottom:10px;float: right">
565
-                              <div>
566
-                                <el-button
567
-                                    v-if="(hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0)"
568
-                                    size="small"
569
-                                    @click="open(8,items.med_type,items.prescriptions[0].order,items.prescriptions)"
570
-                                    type="primary"
571
-                                >预结算
572
-                                </el-button>
573
-                                <el-button
574
-                                    v-if="items.curPrescriptions.order.order_status == 1 && hisPatientInfo.balance_accounts_type != 2"
575
-                                    size="small"
576
-                                    @click="open(11,items.med_type,items.prescriptions[0].order,items.prescriptions)"
577
-                                    type="primary"
578
-                                >撤销明细
579
-                                </el-button>
580
-
581
-
582
-                                <el-button v-loading="loadingtwo"
583
-                                           v-if="(hisPatientInfo.id > 0 && items.curPrescriptions.order.id == 0) || items.curPrescriptions.order.order_status == 1 ||  items.curPrescriptions.order.order_status == 3"
584
-                                           size="small"
585
-                                           @click="open(4,items.med_type,items.curPrescriptions.order,items.prescriptions)"
586
-                                           type="primary">收费
587
-                                </el-button>
588
-                              </div>
589
-                            </div>
562
+<!--                            <div style="margin-bottom:10px;float: right">-->
563
+<!--                              <div>-->
564
+<!--                                <el-button-->
565
+<!--                                    v-if="(hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0)"-->
566
+<!--                                    size="small"-->
567
+<!--                                    @click="open(8,items.med_type,items.prescriptions[0].order,items.prescriptions)"-->
568
+<!--                                    type="primary"-->
569
+<!--                                >预结算-->
570
+<!--                                </el-button>-->
571
+<!--                                <el-button-->
572
+<!--                                    v-if="items.curPrescriptions.order.order_status == 1 && hisPatientInfo.balance_accounts_type != 2"-->
573
+<!--                                    size="small"-->
574
+<!--                                    @click="open(11,items.med_type,items.prescriptions[0].order,items.prescriptions)"-->
575
+<!--                                    type="primary"-->
576
+<!--                                >撤销明细-->
577
+<!--                                </el-button>-->
578
+
579
+
580
+<!--                                <el-button v-loading="loadingtwo"-->
581
+<!--                                           v-if="(hisPatientInfo.id > 0 && items.curPrescriptions.order.id == 0) || items.curPrescriptions.order.order_status == 1 ||  items.curPrescriptions.order.order_status == 3"-->
582
+<!--                                           size="small"-->
583
+<!--                                           @click="open(4,items.med_type,items.curPrescriptions.order,items.prescriptions)"-->
584
+<!--                                           type="primary">收费-->
585
+<!--                                </el-button>-->
586
+<!--                              </div>-->
587
+<!--                            </div>-->
590 588
                           </el-tab-pane>
591 589
 
592 590
 
@@ -1138,7 +1136,9 @@ export default {
1138 1136
     },
1139 1137
     openMonthDialog(item) {
1140 1138
       this.dialogVisible = true
1139
+      console.log(item)
1141 1140
       this.temp_month_prescriptions = item
1141
+      console.log(this.temp_month_prescriptions)
1142 1142
     },
1143 1143
     openMonthDialogTwo(item) {
1144 1144
       this.dialogVisible = true
@@ -1266,18 +1266,23 @@ export default {
1266 1266
       cb(results)
1267 1267
     },
1268 1268
     changeTime(val) {
1269
-      let params = {
1270
-        patient_id: this.patientInfo.id,
1271
-        start_time: val,
1272
-        end_time: this.other_end_time,
1273
-        p_type: 2,
1274
-        type: this.radio
1269
+      const params = {
1270
+        'record_date': this.record_date,
1271
+        'patient_id': this.patientInfo.id,
1272
+        'his_patient_id': this.hisPatientInfo.id,
1273
+        'start_time': val,
1274
+        'end_time': this.other_end_time,
1275
+        'type': this.radio,
1276
+        'p_type': 2,
1277
+        'order_id': this.order.id
1275 1278
 
1276 1279
       }
1277
-      getDayOrMonthHisPrescription(params).then(response => {
1280
+      getMonthCharge(params).then(response => {
1278 1281
         if (response.data.state == 1) {
1282
+          this.loading = false
1283
+
1279 1284
           this.month_prescriptions = []
1280
-          this.setMonthPrescription(response.data.data.day_prescription)
1285
+          this.setMonthPrescription(response.data.data.month_prescriptions)
1281 1286
           this.curMonthPrescriptions = this.month_prescriptions[0]
1282 1287
 
1283 1288
         } else {
@@ -1285,19 +1290,26 @@ export default {
1285 1290
         }
1286 1291
       })
1287 1292
 
1293
+
1294
+
1288 1295
     },
1289 1296
     changeEndTime(val) {
1290
-      let params = {
1291
-        patient_id: this.patientInfo.id,
1292
-        start_time: this.other_start_time,
1293
-        end_time: val,
1294
-        p_type: 2
1297
+      const params = {
1298
+        'record_date': this.record_date,
1299
+        'patient_id': this.patientInfo.id,
1300
+        'his_patient_id': this.hisPatientInfo.id,
1301
+        'start_time': this.other_start_time,
1302
+        'end_time': val,
1303
+        'type': this.radio,
1304
+        'p_type': 2,
1305
+        'order_id': this.order.id
1295 1306
 
1296 1307
       }
1297
-      getDayOrMonthHisPrescription(params).then(response => {
1308
+      getMonthCharge(params).then(response => {
1298 1309
         if (response.data.state == 1) {
1310
+          this.loading = false
1299 1311
           this.month_prescriptions = []
1300
-          this.setMonthPrescription(response.data.data.day_prescription)
1312
+          this.setMonthPrescription(response.data.data.month_prescriptions)
1301 1313
           this.curMonthPrescriptions = this.month_prescriptions[0]
1302 1314
 
1303 1315
         } else {
@@ -2185,12 +2197,12 @@ export default {
2185 2197
           'order_id': this.order.id
2186 2198
 
2187 2199
         }
2188
-        getDayOrMonthHisPrescription(params).then(response => {
2200
+        getMonthCharge(params).then(response => {
2189 2201
           if (response.data.state == 1) {
2190 2202
             this.loading = false
2191 2203
 
2192 2204
             this.month_prescriptions = []
2193
-            this.setMonthPrescription(response.data.data.day_prescription)
2205
+            this.setMonthPrescription(response.data.data.month_prescriptions)
2194 2206
             this.curMonthPrescriptions = this.month_prescriptions[0]
2195 2207
 
2196 2208
           } else {
@@ -3542,7 +3554,7 @@ export default {
3542 3554
     getPatientList() {
3543 3555
       let params = {
3544 3556
         'record_date': this.record_date,
3545
-        'type': this.radio
3557
+        'type': this.radio,
3546 3558
       }
3547 3559
       getChargeHisPatientList(params).then(response => {
3548 3560
         if (response.data.state == 0) {
@@ -3948,6 +3960,7 @@ export default {
3948 3960
         big_prescriptions[y]['month_prescriptions'].push(p2)
3949 3961
       }
3950 3962
       this.big_month_prescriptions = big_prescriptions
3963
+      console.log(this.big_month_prescriptions)
3951 3964
 
3952 3965
       for (let i = 0; i < this.big_month_prescriptions.length; i++) {
3953 3966
         if (this.big_month_prescriptions[i].month_prescriptions.length > 0) {
@@ -4398,6 +4411,8 @@ export default {
4398 4411
             this.addtions_charge = response.data.data.addtions_charge
4399 4412
             this.setMonthPrescription(response.data.data.month_prescriptions)
4400 4413
 
4414
+
4415
+
4401 4416
           }
4402 4417
         })
4403 4418
 

+ 17 - 1
src/xt_pages/outpatientCharges/statementPrint.vue 파일 보기

@@ -12,7 +12,7 @@
12 12
         >
13 13
       </template>
14 14
 
15
-      <div class='dialysisPage' style="padding-top:40px;">
15
+      <div class='dialysisPage' style="padding-top:40px;" v-if="paramsObj.balance_accounts_type != 2">
16 16
         <div v-if="org_id == 9990 || org_id == 10138 || org_id == 9504 || org_id == 10028 || org_id == 0 || org_id == 4 || org_id == 10278">
17 17
           <printTwo :info="info" v-if="org_id == 9990"></printTwo>
18 18
           <printThree :info="info" :paramsObj="paramsObj" :balanceAccounts="balanceAccounts" v-if="org_id == 10138 || org_id == 0 || org_id == 4 || org_id == 10278"></printThree>
@@ -20,6 +20,10 @@
20 20
         </div>
21 21
         <printOne :info="info" v-else></printOne>
22 22
       </div>
23
+
24
+    <div class='dialysisPage' style="padding-top:40px;" v-else>
25
+      <print-six :info="info" ></print-six>
26
+    </div>
23 27
   </div>
24 28
 </template>
25 29
 
@@ -40,9 +44,11 @@ import printThree from "./statementTemplate/printThree"
40 44
 import printFour from "./statementTemplate/printFour"
41 45
 import { getAllDoctorList,getAllHisPatientList,getPrescriptionPrint } from "@/api/project/project"
42 46
 import { getPrivateExpenses } from '@/api/his/his'
47
+import PrintSix from '../outpatientDoctorStation/recordTemplate/printSix'
43 48
 export default {
44 49
   name: "dialysisPrintOrder",
45 50
   components: {
51
+    PrintSix,
46 52
     BreadCrumb,
47 53
     printOne,
48 54
     printTwo,
@@ -425,6 +431,16 @@ export default {
425 431
               this.balanceAccounts.new_detail_list.push(obj2)
426 432
               this.balanceAccounts.new_detail_list.push(obj3)
427 433
               console.log(111,this.balanceAccounts)
434
+            }
435
+          })
436
+        }else if(this.org_id == 10215){
437
+          getPrivateExpenses(params).then(response => {
438
+            if (response.data.state == 0) {
439
+              // this.$message.error(response.data.msg)
440
+              return false
441
+            } else {
442
+
443
+
428 444
             }
429 445
           })
430 446
         }

+ 3 - 3
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue 파일 보기

@@ -80,7 +80,7 @@
80 80
         <td>单位名称</td>
81 81
         <td colspan="5">{{info.emp_name}}</td>
82 82
         <td width="80">联系电话</td>
83
-        <td width="110"></td>
83
+        <td width="110">{{info.patient.phone}}</td>
84 84
         <td width="80">身份证号</td>
85 85
         <td colspan="3">{{info.certno}}</td>
86 86
       </tr>
@@ -111,9 +111,9 @@
111 111
 
112 112
 
113 113
         <td>入院第一诊断</td>
114
-        <td colspan="3"></td>
114
+        <td colspan="3">{{info.dise_name}}</td>
115 115
         <td>出院第一诊断</td>
116
-        <td colspan="4"></td>
116
+        <td colspan="4">{{info.dise_name}}</td>
117 117
       </tr>
118 118
       <tr>
119 119
         <td>业务类别</td>

+ 396 - 0
src/xt_pages/outpatientCharges/statementTemplate/printSix.vue 파일 보기

@@ -0,0 +1,396 @@
1
+<template>
2
+  <div id="statement-print" class="statement-print">
3
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10188 || this.$store.getters.xt_user.org_id == 10217">江苏省社会医疗保险医疗费用结算单</div>
4
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10088">广水源生堂社会医疗保险医疗费用结算单</div>
5
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 &&this.$store.getters.xt_user.org_id != 10088">广东省社会医疗保险医疗费用结算单</div>
6
+
7
+    <table class="statementTable" border="1">
8
+      <tr>
9
+        <td width="80">机构名称</td>
10
+        <td colspan="4">{{info.fixmedins_name}}</td>
11
+        <td width="80">机构编码</td>
12
+        <td colspan="4">{{info.fixmedins_code}}</td>
13
+        <td width="100">医保结算级别</td>
14
+        <td width="100" v-if="info.hosp_lv == '1'">三级特等</td>
15
+        <td width="100" v-if="info.hosp_lv == '2'">三级甲等</td>
16
+        <td width="100" v-if="info.hosp_lv == '3'">三级乙等</td>
17
+        <td width="100" v-if="info.hosp_lv == '4'">三级丙等</td>
18
+        <td width="100" v-if="info.hosp_lv == '5'">二级甲等</td>
19
+        <td width="100" v-if="info.hosp_lv == '6'">二级乙等</td>
20
+        <td width="100" v-if="info.hosp_lv == '7'">二级丙等</td>
21
+        <td width="100" v-if="info.hosp_lv == '8'">一级甲等</td>
22
+        <td width="100" v-if="info.hosp_lv == '9'">一级乙等</td>
23
+        <td width="100" v-if="info.hosp_lv == '10'">一级丙等</td>
24
+        <td width="100" v-if="info.hosp_lv == '11'">无等级</td>
25
+        <td width="100" v-else></td>
26
+
27
+      </tr>
28
+      <tr>
29
+        <td width="90">就医登记号</td>
30
+        <td colspan="11">{{info.psn_no}}</td>
31
+      </tr>
32
+      <tr>
33
+        <td width="80">姓名</td>
34
+        <td width="80">{{info.psn_name}}</td>
35
+        <td width="80">性别</td>
36
+        <td width="50" v-if="info.gend == '1'">男</td>
37
+        <td width="50" v-if="info.gend == '2'">女</td>
38
+
39
+        <td width="80">出生日期</td>
40
+        <td width="100">{{info.brdy}}</td>
41
+        <td width="90">个人电脑号</td>
42
+        <td width="110"></td>
43
+        <td width="80">人员类别</td>
44
+        <td colspan="3" v-if="info.psn_type == '11'">在职</td>
45
+        <td colspan="3" v-if="info.psn_type == '1101'">职工在职</td>
46
+        <td colspan="3" v-if="info.psn_type == '1102'">公务员在职</td>
47
+        <td colspan="3" v-if="info.psn_type == '1103'">灵活就业人员在职</td>
48
+        <td colspan="3" v-if="info.psn_type == '1160'">地方其他扩展人员</td>
49
+
50
+
51
+        <td colspan="3" v-if="info.psn_type == '12'">退休人员</td>
52
+        <td colspan="3" v-if="info.psn_type == '1201'">职工退休</td>
53
+        <td colspan="3" v-if="info.psn_type == '1202'">公务员退休</td>
54
+        <td colspan="3" v-if="info.psn_type == '1203'">灵活就业人员退休</td>
55
+        <td colspan="3" v-if="info.psn_type == '1260'">地方其他扩展人员</td>
56
+
57
+
58
+        <td colspan="3" v-if="info.psn_type == '13'">离休</td>
59
+        <td colspan="3" v-if="info.psn_type == '1300'">离休人员</td>
60
+        <td colspan="3" v-if="info.psn_type == '1360'">地方其他扩展人员</td>
61
+
62
+        <td colspan="3" v-if="info.psn_type == '14'">居民(未成年)</td>
63
+        <td colspan="3" v-if="info.psn_type == '1401'">新生儿</td>
64
+        <td colspan="3" v-if="info.psn_type == '1402'">学龄前儿童</td>
65
+        <td colspan="3" v-if="info.psn_type == '1403'">中小学生</td>
66
+        <td colspan="3" v-if="info.psn_type == '1404'">大学生</td>
67
+        <td colspan="3" v-if="info.psn_type == '1405'">未成年(未入学)</td>
68
+
69
+
70
+        <td colspan="3" v-if="info.psn_type == '15'">居民(成年)</td>
71
+        <td colspan="3" v-if="info.psn_type == '1501'">普通居民(成年)</td>
72
+        <td colspan="3" v-if="info.psn_type == '1560'">地方其他扩展身份</td>
73
+
74
+        <td colspan="3" v-if="info.psn_type == '16'">居民(老年)</td>
75
+
76
+
77
+
78
+      </tr>
79
+      <tr>
80
+        <td>单位名称</td>
81
+        <td colspan="5">{{info.emp_name}}</td>
82
+        <td width="80">联系电话</td>
83
+        <td width="110">{{info.patient.phone}}</td>
84
+        <td width="80">身份证号</td>
85
+        <td colspan="3">{{info.certno}}</td>
86
+      </tr>
87
+      <tr>
88
+        <td>住院号</td>
89
+        <td>{{info.number}}</td>
90
+        <td>科别</td>
91
+        <td width="100"></td>
92
+        <td>床号</td>
93
+        <td></td>
94
+        <td>入院日期</td>
95
+        <td>{{info.begndate ? info.begndate.split(' ')[0] : ''}}</td>
96
+        <td>出院日期</td>
97
+        <td width="100">{{info.enddate ? info.enddate.split(' ')[0] : ''}}</td>
98
+        <td>住院天数</td>
99
+        <td>{{getDay(info.begndate,info.enddate)}}</td>
100
+
101
+      </tr>
102
+      <tr>
103
+        <td>险种</td>
104
+        <td colspan="2" v-if="info.insutype == '310'">职工基本医疗保险</td>
105
+        <td colspan="2" v-if="info.insutype == '320'">公务员医疗补助</td>
106
+        <td colspan="2" v-if="info.insutype == '330'">大额医疗费用补助</td>
107
+        <td colspan="2" v-if="info.insutype == '340'">离休人员医疗保障</td>
108
+        <td colspan="2" v-if="info.insutype == '390'">城乡居民基本医疗保险</td>
109
+        <td colspan="2" v-if="info.insutype == '392'">城乡居民大病医疗保险</td>
110
+        <td colspan="2" v-if="info.insutype == '510'">生育保险</td>
111
+
112
+
113
+        <td>入院第一诊断</td>
114
+        <td colspan="3">{{info.dise_name}}</td>
115
+        <td>出院第一诊断</td>
116
+        <td colspan="4">{{info.dise_name}}</td>
117
+      </tr>
118
+      <tr>
119
+        <td>业务类别</td>
120
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '11'">普通门诊</td>
121
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '12'">门诊挂号</td>
122
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '13'">急诊</td>
123
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '14'">门诊特殊病</td>
124
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '15'">门诊统筹</td>
125
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '16'">门诊慢性病</td>
126
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '21'">普通住院</td>
127
+
128
+        <td>结算时间</td>
129
+        <td colspan="5" style="text-align:left;padding-left:10px;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</td>
130
+      </tr>
131
+      <tr>
132
+        <td colspan="12" style="text-align:left;padding-left:10px;">
133
+          本次就医:总费用{{info.medfee_sumamt}}元,基金支付{{info.fund_pay_sumamt}}元,个人支付{{info.psn_pay}}元。
134
+        </td>
135
+      </tr>
136
+      <tr>
137
+        <td>费用名称</td>
138
+        <td colspan="2">总费用</td>
139
+        <td>自费</td>
140
+        <td colspan="2">部分项目自付</td>
141
+        <td>费用名称</td>
142
+        <td colspan="2">总费用</td>
143
+        <td>自费</td>
144
+        <td colspan="2">部分项目自付</td>
145
+      </tr>
146
+      <tr>
147
+        <td>床位费</td>
148
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_total}}</td>
149
+        <td style="text-align:right;padding-right:10px;">{{info.bed_cost_self_total}}</td>
150
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_part_self_total}}</td>
151
+        <td>西成药</td>
152
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_total}}</td>
153
+        <td style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_self_total}}</td>
154
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_part_self_total}}</td>
155
+      </tr>
156
+      <tr>
157
+        <td>中药费</td>
158
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
159
+        <td style="text-align:right;padding-right:10px;">0</td>
160
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
161
+        <td>中成药</td>
162
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_total}}
163
+        </td>
164
+        <td style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_self_total}}</td>
165
+        <td colspan="2" style="text-align:right;padding-right:10px;">
166
+          {{info.chinese_traditional_medicine_cost_part_self_total}}
167
+        </td>
168
+      </tr>
169
+      <tr>
170
+        <td>中草药</td>
171
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
172
+        <td style="text-align:right;padding-right:10px;">0</td>
173
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
174
+        <td>检查费</td>
175
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_total}}</td>
176
+        <td style="text-align:right;padding-right:10px;">{{info.check_cost_self_total}}</td>
177
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_part_self_total}}</td>
178
+      </tr>
179
+      <tr>
180
+        <td>治疗费</td>
181
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_total}}</td>
182
+        <td style="text-align:right;padding-right:10px;">{{info.treat_cost_self_total}}</td>
183
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_part_self_total}}</td>
184
+        <td>放射费</td>
185
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
186
+        <td style="text-align:right;padding-right:10px;">0</td>
187
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
188
+      </tr>
189
+      <tr>
190
+        <td>手术费</td>
191
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_total}}</td>
192
+        <td style="text-align:right;padding-right:10px;">{{info.operation_cost_self_total}}</td>
193
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_part_self_total}}</td>
194
+        <td>化验费</td>
195
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_total}}</td>
196
+        <td style="text-align:right;padding-right:10px;">{{info.laboratory_cost_self_total}}</td>
197
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_part_self_total}}</td>
198
+      </tr>
199
+      <tr>
200
+        <td>输血费</td>
201
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
202
+        <td style="text-align:right;padding-right:10px;">0</td>
203
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
204
+        <td>输氧费</td>
205
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
206
+        <td style="text-align:right;padding-right:10px;">0</td>
207
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
208
+      </tr>
209
+      <tr>
210
+        <td>其他</td>
211
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_total}}</td>
212
+        <td style="text-align:right;padding-right:10px;">{{info.other_cost_self_total}}</td>
213
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_part_self_total}}</td>
214
+        <td>麻醉费</td>
215
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
216
+        <td style="text-align:right;padding-right:10px;">0</td>
217
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
218
+      </tr>
219
+      <tr>
220
+        <td>材料费</td>
221
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_total}}</td>
222
+        <td style="text-align:right;padding-right:10px;">{{info.material_cost_self_total}}</td>
223
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_part_self_total}}</td>
224
+        <td>特殊检查费</td>
225
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
226
+        <td style="text-align:right;padding-right:10px;">0</td>
227
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
228
+      </tr>
229
+      <tr>
230
+        <td>特殊治疗费</td>
231
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
232
+        <td style="text-align:right;padding-right:10px;">0</td>
233
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
234
+        <td style="text-align:right;padding-right:10px;"></td>
235
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
236
+        <td style="text-align:right;padding-right:10px;"></td>
237
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
238
+      </tr>
239
+      <tr>
240
+        <td>合计</td>
241
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_total) +
242
+            parseFloat(info.operation_cost_total) + parseFloat(info.other_cost_total) +
243
+            parseFloat(info.material_cost_total) + parseFloat(info.western_medicine_cost_total) +
244
+            parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
245
+            parseFloat(info.laboratory_cost_total) + parseFloat(info.treat_cost_total)).toFixed(2) }}
246
+        </td>
247
+        <td style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_self_total )+
248
+            parseFloat(info.operation_cost_self_total) + parseFloat(info.other_cost_self_total) +
249
+            parseFloat(info.material_cost_self_total) + parseFloat(info.western_medicine_cost_self_total) +
250
+            parseFloat(info.chinese_traditional_medicine_cost_self_total) + parseFloat(info.check_cost_self_total) +
251
+            parseFloat(info.laboratory_cost_self_total) + parseFloat(info.treat_cost_self_total)).toFixed(2)}}
252
+        </td>
253
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_part_self_total) +
254
+            parseFloat(info.operation_cost_part_self_total) + parseFloat(info.other_cost_part_self_total) +
255
+            parseFloat(info.material_cost_part_self_total) + parseFloat(info.western_medicine_cost_part_self_total) +
256
+            parseFloat(info.chinese_traditional_medicine_cost_part_self_total) +
257
+            parseFloat(info.check_cost_part_self_total) + parseFloat(info.laboratory_cost_part_self_total) +
258
+            parseFloat(info.treat_cost_part_self_total)).toFixed(2)}}
259
+        </td>
260
+        <td style="text-align:right;padding-right:10px;"></td>
261
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
262
+        <td style="text-align:right;padding-right:10px;"></td>
263
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
264
+      </tr>
265
+      <tr>
266
+        <td colspan="3" style="text-align:left;padding-left:10px;">基本医疗保险统筹基金支付</td>
267
+        <td colspan="3">{{info.hifp_pay}}</td>
268
+        <td colspan="3" style="text-align:left;padding-left:10px;">大额基金支付</td>
269
+        <td colspan="3">{{info.hifob_pay}}</td>
270
+      </tr>
271
+      <tr>
272
+        <td colspan="3" style="text-align:left;padding-left:10px;">大病基金支付</td>
273
+        <td colspan="3">{{info.hifmi_pay}}</td>
274
+        <td colspan="3" style="text-align:left;padding-left:10px;">补充保险基金支付</td>
275
+        <td colspan="3">{{info.hifes_pay}}</td>
276
+      </tr>
277
+      <tr>
278
+        <td colspan="3" style="text-align:left;padding-left:10px;">医疗救助基金支付</td>
279
+        <td colspan="3">{{info.maf_pay}}</td>
280
+        <td colspan="3" style="text-align:left;padding-left:10px;">公务员基金支付</td>
281
+        <td colspan="3">{{info.cvlserv_pay}}</td>
282
+      </tr>
283
+      <tr>
284
+        <td colspan="3" style="text-align:left;padding-left:10px;">其他基金支付</td>
285
+        <td colspan="3">{{info.oth_pay}}</td>
286
+        <td colspan="3" style="text-align:left;padding-left:10px;">个人账户支付</td>
287
+        <td colspan="3">{{info.acct_pay}}</td>
288
+      </tr>
289
+      <tr>
290
+        <td>收款人:</td>
291
+        <td colspan="2">{{info.charge_admin.user_name}}</td>
292
+        <td>审核人:</td>
293
+        <td colspan="2" v-if="this.$store.getters.xt_user.org_id == 10106">{{'梅晓辉'}}</td>
294
+        <td colspan="2" v-if="this.$store.getters.xt_user.org_id != 10106">{{info.p_admin.user_name}}</td>
295
+
296
+        <td>制单人:</td>
297
+        <td colspan="2">{{info.p_admin.user_name}}</td>
298
+        <td>打印日期</td>
299
+        <td colspan="2">{{getNowTime()}}</td>
300
+      </tr>
301
+      <tr>
302
+        <td colspan="12" style="text-align:left;padding-left:10px;line-height:20px;">
303
+          注: 1、部分项目自付金额是指基本医疗保险范围内的项目需参保人先按规定比例自付的金额。<br/>
304
+          &ensp;&ensp;&ensp;2、此表由医院打印。<br/>
305
+          &ensp;&ensp;&ensp;3、此表一式两份,医院、参保人各一份。
306
+        </td>
307
+      </tr>
308
+      <tr>
309
+        <td colspan="12" style="text-align:left;padding-left:10px;">
310
+          病人家属签字:
311
+        </td>
312
+      </tr>
313
+    </table>
314
+  </div>
315
+</template>
316
+<script>
317
+export default {
318
+  props: {
319
+    info: {
320
+      type: Object,
321
+      default: function() {
322
+        return {}
323
+      }
324
+    }, p_admin: {
325
+      type: Object,
326
+      default: function() {
327
+        return {}
328
+      }
329
+    }, charge_admin: {
330
+      type: Object,
331
+      default: function() {
332
+        return {}
333
+      }
334
+    }
335
+  },methods:{
336
+    getDay(dateString1,dateString2){
337
+      var  startDate = Date.parse(dateString1);
338
+      var  endDate = Date.parse(dateString2);
339
+      if (startDate>endDate){
340
+        return 0;
341
+      }
342
+      if (startDate==endDate){
343
+        return 1;
344
+      }
345
+      var days=(endDate - startDate)/(1*24*60*60*1000);
346
+      return  days;
347
+
348
+    },
349
+    getNowTime: function () {
350
+      let dateTime;
351
+      let yy = new Date().getFullYear();
352
+      let mm = new Date().getMonth() + 1;
353
+      let dd = new Date().getDate();
354
+      let hh = new Date().getHours();
355
+      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
356
+          :
357
+          new Date().getMinutes();
358
+      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
359
+          :
360
+          new Date().getSeconds();
361
+      dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss;
362
+      return dateTime
363
+    },
364
+
365
+  }
366
+}
367
+
368
+
369
+</script>
370
+
371
+
372
+<style lang="scss" scoped>
373
+.statement-print {
374
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
375
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
376
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
377
+  margin-bottom: 20px;
378
+  padding: 20px 10px;
379
+}
380
+
381
+.statementTitle {
382
+  font-size: 28px;
383
+  text-align: center;
384
+  font-weight: bold;
385
+  margin-bottom: 10px;
386
+}
387
+
388
+.statementTable {
389
+  width: 100%;
390
+  text-align: center;
391
+  border-collapse: collapse;
392
+  line-height: 40px;
393
+  font-size: 14px;
394
+  border-color: #000;
395
+}
396
+</style>