Browse Source

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

csx 3 years ago
parent
commit
4e42d84f18

+ 11 - 0
src/api/his/his_hospital.js View File

10
   });
10
   });
11
 }
11
 }
12
 
12
 
13
+
14
+export function refundDetail(params) {
15
+  return request({
16
+    url: "/api/hospital/refunddetail",
17
+    method: "get",
18
+    params:params
19
+  });
20
+}
21
+
22
+
23
+

+ 0 - 2
src/views/layout/Layout.vue View File

16
           <i class="iconfont icon-computer_fill navIcon"></i>
16
           <i class="iconfont icon-computer_fill navIcon"></i>
17
           <p>透析管理</p>
17
           <p>透析管理</p>
18
         </div>
18
         </div>
19
-
20
        <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
19
        <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
21
          <i class="iconfont icon-kccx navIcon"></i>
20
          <i class="iconfont icon-kccx navIcon"></i>
22
          <p>采购管理</p>
21
          <p>采购管理</p>
23
       </div>
22
       </div>
24
-
25
         <div v-if="kucunShow" :class="index == 3 ? 'navOne navActive' : 'navOne'" @click="clickActive(3,'库房管理')">
23
         <div v-if="kucunShow" :class="index == 3 ? 'navOne navActive' : 'navOne'" @click="clickActive(3,'库房管理')">
26
           <i class="iconfont icon-kccx navIcon"></i>
24
           <i class="iconfont icon-kccx navIcon"></i>
27
           <p>库房管理</p>
25
           <p>库房管理</p>

+ 66 - 37
src/xt_pages/hospitalStation/chargeDetailManagement.vue View File

95
             >撤销明细
95
             >撤销明细
96
             </el-button>
96
             </el-button>
97
 
97
 
98
+
99
+
100
+            <el-button
101
+                v-if="( this.radio == 2 &&this.hisPatientInfo.balance_accounts_type == 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
102
+                size="small" @click="open(2)" type="primary"
103
+            >撤销明细
104
+            </el-button>
105
+
106
+
98
           </div>
107
           </div>
99
           <div v-if="activeName == 'second'">
108
           <div v-if="activeName == 'second'">
100
 
109
 
331
 import medicalInsuranceRefund from './components/medicalInsuranceRefund'
340
 import medicalInsuranceRefund from './components/medicalInsuranceRefund'
332
 import additionalCharges from './components/additionalCharges'
341
 import additionalCharges from './components/additionalCharges'
333
 import { getHisHospitalDetailInfo, getHisHospitalDetailList, getMonthHisHospitalDetailInfo } from '@/api/his/his'
342
 import { getHisHospitalDetailInfo, getHisHospitalDetailList, getMonthHisHospitalDetailInfo } from '@/api/his/his'
334
-import { upLoadChargeInfo } from '@/api/his/his_hospital'
343
+import { upLoadChargeInfo,refundDetail } from '@/api/his/his_hospital'
335
 
344
 
336
 import { uParseTime } from '@/utils/tools'
345
 import { uParseTime } from '@/utils/tools'
337
 
346
 
762
             cancelButtonText: '取 消',
771
             cancelButtonText: '取 消',
763
             type: 'warning'
772
             type: 'warning'
764
           }).then(() => {
773
           }).then(() => {
765
-
766
-            let params = {
767
-              'settle_accounts_type': settle_accounts_type,
768
-              'patient_id': that.hisPatientInfo.patient_id,
769
-              'his_patient_id': that.hisPatientInfo.id,
770
-              'record_time': that.record_date,
771
-              'admin_user_id': that.$store.getters.xt_user.user.id
772
-            }
773
-            axios.get('http://127.0.0.1:9532/zh/api/refunddetail', {
774
-              params: params
775
-            })
776
-                .then(function(response) {
777
-                  if (response.data.state == 0) {
778
-                    that.$message.error(response.data.msg)
779
-                    that.loadingtwo = false
780
-                    return false
781
-                  } else {
782
-                    if (response.data.data.failed_code == -10) {
783
-                      // that.$message.error(response.data.data.msg)
784
-                      that.$confirm(response.data.data.msg, '医保错误信息', {
785
-                        confirmButtonText: '确 定',
786
-                        type: 'warning'
787
-                      }).then(() => {
788
-
789
-                      }).catch(() => {
790
-                      })
774
+            if (that.hisPatientInfo.balance_accounts_type != 2){
775
+              let params = {
776
+                'settle_accounts_type': settle_accounts_type,
777
+                'patient_id': that.hisPatientInfo.patient_id,
778
+                'his_patient_id': that.hisPatientInfo.id,
779
+                'record_time': that.record_date,
780
+                'admin_user_id': that.$store.getters.xt_user.user.id
781
+              }
782
+              axios.get('http://127.0.0.1:9532/zh/api/refunddetail', {
783
+                params: params
784
+              })
785
+                  .then(function(response) {
786
+                    if (response.data.state == 0) {
787
+                      that.$message.error(response.data.msg)
788
+                      that.loadingtwo = false
789
+                      return false
791
                     } else {
790
                     } else {
792
-                      that.$message.success('撤销明细成功')
793
-                      that.radio = 1
794
-                      that.getPatientList()
795
-                    }
791
+                      if (response.data.data.failed_code == -10) {
792
+                        // that.$message.error(response.data.data.msg)
793
+                        that.$confirm(response.data.data.msg, '医保错误信息', {
794
+                          confirmButtonText: '确 定',
795
+                          type: 'warning'
796
+                        }).then(() => {
797
+
798
+                        }).catch(() => {
799
+                        })
800
+                      } else {
801
+                        that.$message.success('撤销明细成功')
802
+                        that.radio = 1
803
+                        that.getPatientList()
804
+                      }
796
 
805
 
797
-                  }
798
-                })
799
-                .catch(function(error) {
800
-                })
806
+                    }
807
+                  })
808
+                  .catch(function(error) {
809
+                  })
810
+
811
+
812
+            }else{
813
+              let params = {
814
+                'settle_accounts_type': settle_accounts_type,
815
+                'patient_id': that.hisPatientInfo.patient_id,
816
+                'his_patient_id': that.hisPatientInfo.id,
817
+                'record_time': that.record_date,
818
+                'admin_user_id': that.$store.getters.xt_user.user.id
819
+              }
820
+              refundDetail(params).then(response => {
821
+                if (response.data.state == 0) {
822
+                  this.loading = false
823
+                  this.$message.error(response.data.msg)
824
+                  return false
825
+                } else {
826
+                  that.$message.success('撤销明细成功')
827
+                  that.radio = 1
828
+                  that.getPatientList()
829
+                }
830
+              })
801
 
831
 
832
+            }
802
           }).catch(() => {
833
           }).catch(() => {
803
           })
834
           })
804
         } else {
835
         } else {
927
               that.changePatientInfo()
958
               that.changePatientInfo()
928
             }
959
             }
929
           })
960
           })
930
-
931
-
932
         }
961
         }
933
       }
962
       }
934
     }, changePatientInfo() {
963
     }, changePatientInfo() {

+ 2 - 2
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

1689
       for (let i = 0; i < this.month_prescriptions.length; i++) {
1689
       for (let i = 0; i < this.month_prescriptions.length; i++) {
1690
         if (this.month_prescriptions[i].advices != null) {
1690
         if (this.month_prescriptions[i].advices != null) {
1691
           for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
1691
           for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
1692
-            total = total.toFixed(2) + (this.month_prescriptions[i].advices[a].retail_price * this.month_prescriptions[i].advices[a].prescribing_number).toFixed(2)
1692
+            total = total + (this.month_prescriptions[i].advices[a].retail_price.toFixed(2) * this.month_prescriptions[i].advices[a].prescribing_number)
1693
           }
1693
           }
1694
         }
1694
         }
1695
         if (this.month_prescriptions[i].project != null) {
1695
         if (this.month_prescriptions[i].project != null) {
1696
           for (let b = 0; b < this.month_prescriptions[i].project.length; b++) {
1696
           for (let b = 0; b < this.month_prescriptions[i].project.length; b++) {
1697
-            total = total.toFixed(2) + (this.month_prescriptions[i].project[b].price * this.month_prescriptions[i].project[b].total).toFixed(2)
1697
+            total = total+ (this.month_prescriptions[i].project[b].price.toFixed(2) * this.month_prescriptions[i].project[b].total)
1698
           }
1698
           }
1699
         }
1699
         }
1700
 
1700
 

File diff suppressed because it is too large
+ 1110 - 0
src/xt_pages/hospitalStation/components/hospitalRegisterDialog.vue


+ 2 - 2
src/xt_pages/hospitalStation/components/settlePrescriptionTable.vue View File

18
         width="40"
18
         width="40"
19
         label="序号"
19
         label="序号"
20
       ></el-table-column>
20
       ></el-table-column>
21
-      <el-table-column align="center" prop="name" label="名称">
21
+      <el-table-column align="center" prop="name" width="100" label="名称">
22
         <template slot-scope="scope"
22
         <template slot-scope="scope"
23
           ><span :title="scope.row.drug_name">{{
23
           ><span :title="scope.row.drug_name">{{
24
             scope.row.drug_name
24
             scope.row.drug_name
144
         width="40"
144
         width="40"
145
         label="序号"
145
         label="序号"
146
       ></el-table-column>
146
       ></el-table-column>
147
-      <el-table-column align="center" prop="project_name" label="名称">
147
+      <el-table-column align="center" prop="project_name" width="100" label="名称">
148
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
148
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
149
       </el-table-column>
149
       </el-table-column>
150
       <el-table-column
150
       <el-table-column

+ 121 - 9
src/xt_pages/hospitalStation/outpatientChargesManagement.vue View File

1169
       if (this.curPrescriptions.type == 1) {
1169
       if (this.curPrescriptions.type == 1) {
1170
         if (this.curPrescriptions.advices != null) {
1170
         if (this.curPrescriptions.advices != null) {
1171
           for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
1171
           for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
1172
-            total = parseFloat(total) + parseFloat(this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number)
1172
+            total = parseFloat(total) + parseFloat(this.curPrescriptions.advices[a].retail_price  * this.curPrescriptions.advices[a].prescribing_number)
1173
 
1173
 
1174
           }
1174
           }
1175
         }
1175
         }
1190
       if (this.curMonthPrescriptions.type == 1) {
1190
       if (this.curMonthPrescriptions.type == 1) {
1191
         if (this.curMonthPrescriptions.advices != null) {
1191
         if (this.curMonthPrescriptions.advices != null) {
1192
           for (let a = 0; a < this.curMonthPrescriptions.advices.length; a++) {
1192
           for (let a = 0; a < this.curMonthPrescriptions.advices.length; a++) {
1193
-            total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.advices[a].retail_price * this.curMonthPrescriptions.advices[a].prescribing_number)
1193
+            total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.advices[a].retail_price* this.curMonthPrescriptions.advices[a].prescribing_number)
1194
 
1194
 
1195
           }
1195
           }
1196
         }
1196
         }
1197
       } else {
1197
       } else {
1198
         if (this.curMonthPrescriptions.project != null) {
1198
         if (this.curMonthPrescriptions.project != null) {
1199
           for (let b = 0; b < this.curMonthPrescriptions.project.length; b++) {
1199
           for (let b = 0; b < this.curMonthPrescriptions.project.length; b++) {
1200
-            total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.project[b].price * this.curMonthPrescriptions.project[b].total)
1200
+            total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.project[b].price  * this.curMonthPrescriptions.project[b].total)
1201
 
1201
 
1202
           }
1202
           }
1203
         }
1203
         }
1218
       } else {
1218
       } else {
1219
         if (this.curSettlePrescriptions.project != null) {
1219
         if (this.curSettlePrescriptions.project != null) {
1220
           for (let b = 0; b < this.curSettlePrescriptions.project.length; b++) {
1220
           for (let b = 0; b < this.curSettlePrescriptions.project.length; b++) {
1221
-            total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.project[b].price * this.curSettlePrescriptions.project[b].total)
1221
+            total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.project[b].price  * this.curSettlePrescriptions.project[b].total)
1222
 
1222
 
1223
           }
1223
           }
1224
         }
1224
         }
1228
 
1228
 
1229
     },
1229
     },
1230
     getSettleTotal() {
1230
     getSettleTotal() {
1231
-      var total = 0
1231
+      var total = 0.0
1232
       for (let i = 0; i < this.settle_prescriptions.length; i++) {
1232
       for (let i = 0; i < this.settle_prescriptions.length; i++) {
1233
         if (this.settle_prescriptions[i].advices != null) {
1233
         if (this.settle_prescriptions[i].advices != null) {
1234
           for (let a = 0; a < this.settle_prescriptions[i].advices.length; a++) {
1234
           for (let a = 0; a < this.settle_prescriptions[i].advices.length; a++) {
1235
+            // console.log(parseFloat(this.settle_prescriptions[i].advices[a].retail_price.toFixed(2)))
1236
+            // console.log(this.settle_prescriptions[i].advices[a].prescribing_number)
1235
             total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].advices[a].retail_price * 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)
1238
+
1239
+            // console.log(parseFloat(this.settle_prescriptions[i].advices[a].retail_price.toFixed(2) * this.settle_prescriptions[i].advices[a].prescribing_number))
1240
+            // total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].advices[a].retail_price).toFixed(2) * this.settle_prescriptions[i].advices[a].prescribing_number
1236
           }
1241
           }
1237
         }
1242
         }
1238
         if (this.settle_prescriptions[i].project != null) {
1243
         if (this.settle_prescriptions[i].project != null) {
1239
           for (let b = 0; b < this.settle_prescriptions[i].project.length; b++) {
1244
           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)
1240
 
1246
 
1241
-            total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].project[b].price * this.settle_prescriptions[i].project[b].total)
1247
+            // total = parseFloat(total) + parseFloat(this.settle_prescriptions[i].project[b].price.toFixed(2))* this.settle_prescriptions[i].project[b].total
1242
           }
1248
           }
1243
         }
1249
         }
1244
 
1250
 
1245
       }
1251
       }
1246
-      return total.toFixed(2)
1252
+      return total
1247
 
1253
 
1248
     },
1254
     },
1249
     getTotal() {
1255
     getTotal() {
1257
         if (this.prescriptions[i].project != null) {
1263
         if (this.prescriptions[i].project != null) {
1258
           for (let b = 0; b < this.prescriptions[i].project.length; b++) {
1264
           for (let b = 0; b < this.prescriptions[i].project.length; b++) {
1259
 
1265
 
1260
-            total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total)
1266
+            total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].price  * this.prescriptions[i].project[b].total)
1261
           }
1267
           }
1262
         }
1268
         }
1263
 
1269
 
1276
         if (this.month_prescriptions[i].project != null) {
1282
         if (this.month_prescriptions[i].project != null) {
1277
           for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1283
           for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1278
 
1284
 
1279
-            total = parseFloat(total) + parseFloat(this.month_prescriptions[i].project[a].price * this.month_prescriptions[i].project[a].total)
1285
+            total = parseFloat(total) + parseFloat(this.month_prescriptions[i].project[a].price  * this.month_prescriptions[i].project[a].total)
1280
           }
1286
           }
1281
         }
1287
         }
1282
 
1288
 
2637
 
2643
 
2638
       this.curMonthPrescriptions = this.month_prescriptions[0]
2644
       this.curMonthPrescriptions = this.month_prescriptions[0]
2639
 
2645
 
2646
+
2647
+    },
2648
+    setSettlePrescriptionTwo(month_prescriptions) {
2649
+      this.settle_prescriptions = []
2650
+
2651
+      for (let i = 0; i < month_prescriptions.length; i++) {
2652
+        var prescription = month_prescriptions[i]
2653
+        let tempAdvice = []
2654
+        let tempProject = []
2655
+        let tempAddition = []
2656
+        for (let b = 0; b < prescription.advices.length; b++) {
2657
+          let spec = prescription.advices[b].drug.dose + prescription.advices[b].drug.dose_unit + '*' + prescription.advices[b].drug.min_number + prescription.advices[b].drug.min_unit + '/' + prescription.advices[b].drug.max_unit
2658
+
2659
+          let obj = {
2660
+            advice_id: prescription.advices[b].id,
2661
+            drug_name: prescription.advices[b].advice_name,
2662
+            single_dose: prescription.advices[b].single_dose,
2663
+            delivery_way: prescription.advices[b].delivery_way,
2664
+            execution_frequency: prescription.advices[b].execution_frequency,
2665
+            retail_price: prescription.advices[b].price.toString(),
2666
+            remark: prescription.advices[b].remark,
2667
+            day: prescription.advices[b].day,
2668
+            prescribing_number: prescription.advices[b].prescribing_number.toString(),
2669
+            single_dose_unit: prescription.advices[b].single_dose_unit,
2670
+            prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2671
+            medical_insurance_number: prescription.advices[b].med_list_codg,
2672
+
2673
+            code: prescription.advices[b].drug.medical_insurance_number,
2674
+            spec: spec,
2675
+            det_item_fee_sumamt: prescription.advices[b].order_info.det_item_fee_sumamt,
2676
+            name_id: prescription.advices[b].drug.manufacturer,
2677
+            fulamt_ownpay_amt: prescription.advices[b].order_info.fulamt_ownpay_amt,
2678
+            overlmt_amt: prescription.advices[b].order_info.overlmt_amt,
2679
+            preselfpay_amt: prescription.advices[b].order_info.preselfpay_amt,
2680
+            inscp_scp_amt: prescription.advices[b].order_info.inscp_scp_amt
2681
+
2682
+
2683
+
2684
+          }
2685
+          tempAdvice.push(obj)
2686
+        }
2687
+
2688
+        for (let b = 0; b < prescription.project.length; b++) {
2689
+          let obj = {
2690
+            id: prescription.project[b].id,
2691
+            project_id: prescription.project[b].project.id,
2692
+            // project_name: prescription.project[b].project.project_name,
2693
+            // statistical_classification: prescription.project[b].project.statistical_classification,
2694
+            single_dose: prescription.project[b].single_dose,
2695
+            delivery_way: prescription.project[b].delivery_way,
2696
+            execution_frequency: prescription.project[b].execution_frequency,
2697
+            number_days: prescription.project[b].day,
2698
+            total: prescription.project[b].count.toString(),
2699
+            price: prescription.project[b].price,
2700
+            remark: prescription.project[b].remark,
2701
+            // medical_code: prescription.project[b].project.medical_code,
2702
+            unit: prescription.project[b].project.unit,
2703
+            type: prescription.project[b].type,
2704
+            det_item_fee_sumamt: prescription.project[b].order_info.det_item_fee_sumamt,
2705
+            fulamt_ownpay_amt: prescription.project[b].order_info.fulamt_ownpay_amt,
2706
+            overlmt_amt: prescription.project[b].order_info.overlmt_amt,
2707
+            preselfpay_amt: prescription.project[b].order_info.preselfpay_amt,
2708
+            inscp_scp_amt: prescription.project[b].order_info.inscp_scp_amt
2709
+
2710
+          }
2711
+
2712
+          if (prescription.project[b].type == 2) {
2713
+            obj['statistical_classification'] = prescription.project[b].team.project_team
2714
+            obj['medical_code'] = prescription.project[b].project.medical_code
2715
+            obj['project_name'] = prescription.project[b].project.project_name
2716
+            obj['spec'] = ''
2717
+            obj['name_id'] = 0
2718
+
2719
+          } else if (prescription.project[b].type == 3) {
2720
+            obj['statistical_classification'] = prescription.project[b].team.project_team
2721
+            obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2722
+            obj['project_name'] = prescription.project[b].good_info.good_name
2723
+            obj['spec'] = prescription.project[b].good_info.specification_name
2724
+            obj['name_id'] = prescription.project[b].good_info.manufacturer
2725
+
2726
+          }
2727
+
2728
+          tempProject.push(obj)
2729
+        }
2730
+
2731
+        let index = i + 1
2732
+        let obj = {
2733
+          id: prescription.id,
2734
+          name: '处方' + index,
2735
+          advices: tempAdvice,
2736
+          project: tempProject,
2737
+          addition: tempAddition,
2738
+          order_status: prescription.order_status,
2739
+          type: prescription.type
2740
+        }
2741
+        this.settle_prescriptions.push(obj)
2742
+        this.curSettlePrescriptions = this.settle_prescriptions[0]
2743
+        for (let i = 0; i < this.settle_prescriptions.length; i++) {
2744
+          if (this.settle_prescriptions[i].order_status != 4) {
2745
+            this.isShowUpload = 2
2746
+          }
2747
+
2748
+        }
2749
+
2750
+      }
2640
     },
2751
     },
2752
+
2641
     setSettlePrescription(month_prescriptions) {
2753
     setSettlePrescription(month_prescriptions) {
2642
       this.settle_prescriptions = []
2754
       this.settle_prescriptions = []
2643
 
2755
 

+ 7 - 2
src/xt_pages/hospitalStation/summary.vue View File

159
                 width="1200px"
159
                 width="1200px"
160
                 title="打印"
160
                 title="打印"
161
                 :visible.sync="statementVisible">
161
                 :visible.sync="statementVisible">
162
-            <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
163
-            <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>
162
+            <statementPrint ref="print" :paramsObj='orderObj'></statementPrint>
163
+<!--            <new-statement-print ref="print" :paramsObj='orderObj'></new-statement-print>-->
164
+<!--          <state-->
164
         </el-dialog>
165
         </el-dialog>
165
         <el-dialog
166
         <el-dialog
166
                 class="centerDialog"
167
                 class="centerDialog"
182
                 width="1200px"
183
                 width="1200px"
183
                 title="打印"
184
                 title="打印"
184
                 :visible.sync="statementVisible9504">
185
                 :visible.sync="statementVisible9504">
186
+
185
             <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
187
             <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
186
             <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
188
             <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
187
             <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
189
             <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
218
   import { fetchAllAdminUsers } from '@/api/doctor'
220
   import { fetchAllAdminUsers } from '@/api/doctor'
219
   import axios from 'axios'
221
   import axios from 'axios'
220
   import invoicePrint from './invoicePrint'
222
   import invoicePrint from './invoicePrint'
223
+  import statementPrint from './statementPrint'
224
+
221
   // import settlementPrint from './settlementPrint'
225
   // import settlementPrint from './settlementPrint'
222
 
226
 
223
   export default {
227
   export default {
227
       BreadCrumb,
231
       BreadCrumb,
228
       listPrint,
232
       listPrint,
229
       allListPrint,
233
       allListPrint,
234
+      statementPrint,
230
       invoicePrint
235
       invoicePrint
231
       // settlementPrint
236
       // settlementPrint
232
     },
237
     },

+ 3 - 3
src/xt_pages/outpatientCharges/invoicePrint.vue View File

13
     </template>
13
     </template>
14
     <div class="app-container" style="padding-top:40px;">
14
     <div class="app-container" style="padding-top:40px;">
15
         <div class='dialysisPage'>
15
         <div class='dialysisPage'>
16
-          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 0" >
17
-            <printOne v-if="org_id != 10088" :paramsObj="invoiceParams"></printOne>
16
+          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217  && org_id != 0" >
17
+            <printOne v-if="org_id != 10088 " :paramsObj="invoiceParams"></printOne>
18
             <printThree v-if="org_id == 10088" :paramsObj="invoiceParams"></printThree>
18
             <printThree v-if="org_id == 10088" :paramsObj="invoiceParams"></printThree>
19
           </div>
19
           </div>
20
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
20
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
21
           <printFour v-if="org_id == 10215 || org_id == 4" :paramsObj="invoiceParams"></printFour>
21
           <printFour v-if="org_id == 10215 || org_id == 4" :paramsObj="invoiceParams"></printFour>
22
-          <printFive v-if="org_id == 10188 || org_id == 0" :paramsObj="invoiceParams"></printFive>
22
+          <printFive v-if="org_id == 10188 || org_id == 0 ||org_id == 10217" :paramsObj="invoiceParams"></printFive>
23
         </div>
23
         </div>
24
     </div>
24
     </div>
25
   </div>
25
   </div>

+ 4 - 0
src/xt_pages/outpatientCharges/invoiceTemplate/printFour.vue View File

181
                 this.list = res.data.data
181
                 this.list = res.data.data
182
                 this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
182
                 this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
183
                                     this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
183
                                     this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
184
+                if(this.totalPrice == 0){
185
+
186
+                  this.totalPrice = this.list.medfee_sumamt
187
+                }
184
                 this.smalltoBIG(this.totalPrice)
188
                 this.smalltoBIG(this.totalPrice)
185
                 var data = new Date(res.data.data.date * 1000);
189
                 var data = new Date(res.data.data.date * 1000);
186
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
190
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

2680
         }
2680
         }
2681
 
2681
 
2682
         if (this.hisPatientInfo.id_card_type == 1) {
2682
         if (this.hisPatientInfo.id_card_type == 1) {
2683
-          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188) {
2683
+          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217) {
2684
             this.pwdFormVisible = true
2684
             this.pwdFormVisible = true
2685
             this.pwd = ''
2685
             this.pwd = ''
2686
           } else {
2686
           } else {

+ 4 - 2
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue View File

2
   <div id="statement-print" class="statement-print">
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>
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>
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 != 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
 
6
 
7
     <table class="statementTable" border="1">
7
     <table class="statementTable" border="1">
8
       <tr>
8
       <tr>
290
         <td>收款人:</td>
290
         <td>收款人:</td>
291
         <td colspan="2">{{info.charge_admin.user_name}}</td>
291
         <td colspan="2">{{info.charge_admin.user_name}}</td>
292
         <td>审核人:</td>
292
         <td>审核人:</td>
293
-        <td colspan="2">{{info.p_admin.user_name}}</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
+
294
         <td>制单人:</td>
296
         <td>制单人:</td>
295
         <td colspan="2">{{info.p_admin.user_name}}</td>
297
         <td colspan="2">{{info.p_admin.user_name}}</td>
296
         <td>打印日期</td>
298
         <td>打印日期</td>