Browse Source

提交代码

陈少旭 1 year ago
parent
commit
7eb0232a45

+ 53 - 168
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -80,12 +80,16 @@
80 80
 
81 81
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
82 82
 
83
-          <div v-if="org_id == 10340">
83
+          <div v-if="org_id == 10454">
84 84
             <el-button  size="small"
85
-                        @click="openZb(4)"
85
+                        @click="openZb(1)"
86 86
                         v-if=" this.order.id == 0"
87 87
                         type="primary">记账
88 88
             </el-button>
89
+            <el-button   size="small"
90
+                         @click="openZb(2)"
91
+                         type="primary">撤销记账
92
+            </el-button>
89 93
           </div>
90 94
 
91 95
           <div  v-if="org_id != 10340">
@@ -99,10 +103,7 @@
99 103
             <!--                       type="primary">记账-->
100 104
             <!--            </el-button>-->
101 105
 
102
-            <!--            <el-button   size="small"-->
103
-            <!--                       @click="openZb(3)"-->
104
-            <!--                       type="primary">撤销记账-->
105
-            <!--            </el-button>-->
106
+
106 107
 
107 108
             <el-button v-loading="loadingone" size="small"
108 109
                        @click="open(40)"
@@ -966,7 +967,6 @@
966 967
     </el-dialog>
967 968
 
968 969
   </div>
969
-
970 970
 </template>
971 971
 
972 972
 
@@ -2889,179 +2889,29 @@ export default {
2889 2889
       }
2890 2890
     }, openZb(index) {
2891 2891
       switch (index) {
2892
-        // case 1:
2893
-        //   if(this.patientInfo.id == 0){
2894
-        //     this.$message.error("请需要选择挂号的患者")
2895
-        //     return
2896
-        //   }
2897
-        //   if(this.big_prescriptions.length == 0){
2898
-        //     this.$message.error("处方不能为空")
2899
-        //     return
2900
-        //   }
2901
-        //   if(this.form.diagnosis.length == 0){
2902
-        //     this.$message.error("诊断不能为空")
2903
-        //     return
2904
-        //   }
2905
-        //   var that = this
2906
-        //   let obj = {
2907
-        //     patient_id: this.patientInfo.id,
2908
-        //     diagnosis_time: this.form.diagnosis_time,
2909
-        //     record_date: this.record_date,
2910
-        //     admin_user_id: this.$store.getters.xt_user.user.id,
2911
-        //     org_id: this.$store.getters.xt_user.org_id
2912
-        //
2913
-        //   }
2914
-        //   axios.get(process.env.BASE_API +'/coordinate/register', {
2915
-        //     params: obj
2916
-        //   })
2917
-        //       .then(function(response) {
2918
-        //         if (response.data.state == 0) {
2919
-        //           that.$message.error(response.data.msg)
2920
-        //           that.loadingtwo = false
2921
-        //           return false
2922
-        //         } else {
2923
-        //           if (response.data.data.failed_code == -10) {
2924
-        //             that.$confirm(response.data.data.msg, '医保错误信息', {
2925
-        //               confirmButtonText: '确 定',
2926
-        //               type: 'warning'
2927
-        //             }).then(() => {
2928
-        //
2929
-        //             }).catch(() => {
2930
-        //             })
2931
-        //
2932
-        //           } else {
2933
-        //             that.radio = 1
2934
-        //             that.changeRadioAndPatient(1)
2935
-        //             that.$message({ message: '登记成功', type: 'success', duration: 5000 })
2936
-        //           }
2937
-        //
2938
-        //         }
2939
-        //       })
2940
-        //       .catch(function(error) {
2941
-        //
2942
-        //       })
2943
-        //
2944
-        //   break
2945
-        // case 2:
2946
-        //   var that = this
2947
-        //   var obj2 = {
2948
-        //     id: this.patientInfo.id,
2949
-        //     record_time: this.record_date,
2950
-        //     his_patient_id: this.hisPatientInfo.id,
2951
-        //     org_id: this.$store.getters.xt_user.org_id,
2952
-        //     p_type:14,
2953
-        //
2954
-        //   }
2955
-        //   obj2['diagnosis'] = this.form.diagnosis.join(',')
2956
-        //   obj2['sick_type'] = this.form.sick_type
2957
-        //   if (this.activeName == 'first') {
2958
-        //     obj2['settle_accounts_type'] = 1
2959
-        //   } else if (this.activeName == 'second') {
2960
-        //     obj2['start_time'] = this.other_start_time
2961
-        //     obj2['end_time'] = this.other_end_time
2962
-        //     obj2['settle_accounts_type'] = 2
2963
-        //   }
2964
-        //   axios.get(process.env.BASE_API  + '/coordinate/opKeepAccounts', {
2965
-        //     params: obj2
2966
-        //   })
2967
-        //       .then(function(response) {
2968
-        //         if (response.data.state == 0) {
2969
-        //           that.$message.error(response.data.msg)
2970
-        //           that.loadingtwo = false
2971
-        //           return false
2972
-        //         } else {
2973
-        //           if (response.data.data.failed_code == -10) {
2974
-        //             that.$confirm(response.data.data.msg, '医保错误信息', {
2975
-        //               confirmButtonText: '确 定',
2976
-        //               type: 'warning'
2977
-        //             }).then(() => {
2978
-        //
2979
-        //             }).catch(() => {
2980
-        //             })
2981
-        //
2982
-        //           } else {
2983
-        //             that.radio = 1
2984
-        //             that.changeRadioAndPatient(1)
2985
-        //             that.$message({ message: '记账成功', type: 'success', duration: 5000 })
2986
-        //           }
2987
-        //
2988
-        //         }
2989
-        //       })
2990
-        //       .catch(function(error) {
2991
-        //
2992
-        //       })
2993
-        //
2994
-        //   break
2995
-        // case 3:
2996
-        //   var that = this
2997
-        //   let obj3 = {
2998
-        //     order_id:this.order.id,
2999
-        //     admin_user_id: this.$store.getters.xt_user.user.id,
3000
-        //     org_id: this.$store.getters.xt_user.org_id
3001
-        //   }
3002
-        //   axios.get(process.env.BASE_API + '/coordinate/opCancelKeepAccounts', {
3003
-        //     params: obj3
3004
-        //   })
3005
-        //       .then(function(response) {
3006
-        //         if (response.data.state == 0) {
3007
-        //           that.$message.error(response.data.msg)
3008
-        //           that.loadingtwo = false
3009
-        //           return false
3010
-        //         } else {
3011
-        //           if (response.data.data.failed_code == -10) {
3012
-        //             that.$confirm(response.data.data.msg, '医保错误信息', {
3013
-        //               confirmButtonText: '确 定',
3014
-        //               type: 'warning'
3015
-        //             }).then(() => {
3016
-        //
3017
-        //             }).catch(() => {
3018
-        //             })
3019
-        //
3020
-        //           } else {
3021
-        //             that.radio = 1
3022
-        //             that.changeRadioAndPatient(1)
3023
-        //             that.$message({ message: '撤销记账成功', type: 'success', duration: 5000 })
3024
-        //           }
3025
-        //
3026
-        //         }
3027
-        //       })
3028
-        //       .catch(function(error) {
3029
-        //
3030
-        //       })
3031
-        //
3032
-        //   break
3033
-        case 4:
3034
-          if(this.patientInfo.id == 0){
3035
-            this.$message.error("请需要选择挂号的患者")
2892
+        case 1:
2893
+          if (this.patientInfo.id == 0) {
2894
+            this.$message.error("请选择需要记账的患者")
3036 2895
             return
3037 2896
           }
3038
-          if(this.big_prescriptions.length == 0){
2897
+          if (this.prescriptions.length == 0) {
3039 2898
             this.$message.error("处方不能为空")
3040 2899
             return
3041 2900
           }
3042
-          if(this.form.diagnosis.length == 0){
2901
+          if (this.form.diagnosis.length == 0) {
3043 2902
             this.$message.error("诊断不能为空")
3044 2903
             return
3045 2904
           }
2905
+          var that = this
3046 2906
           let obj = {
3047 2907
             patient_id: this.patientInfo.id,
3048 2908
             diagnosis_time: this.form.diagnosis_time,
3049 2909
             record_date: this.record_date,
3050 2910
             admin_user_id: this.$store.getters.xt_user.user.id,
3051
-            his_patient_id: this.hisPatientInfo.id,
3052
-            p_type:14
3053
-          }
3054
-          obj['diagnosis'] = this.form.diagnosis.join(',')
3055
-          obj['sick_type'] = this.form.sick_type
3056
-          if (this.activeName == 'first') {
3057
-            obj['settle_accounts_type'] = 1
3058
-          } else if (this.activeName == 'second') {
3059
-            obj['start_time'] = this.other_start_time
3060
-            obj['end_time'] = this.other_end_time
3061
-            obj['settle_accounts_type'] = 2
2911
+            org_id: this.$store.getters.xt_user.org_id
2912
+
3062 2913
           }
3063
-          var that = this
3064
-          axios.get("http://127.0.0.1:9532"  + '/coordinate/settleAccount', {
2914
+          axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/settleAccount', {
3065 2915
             params: obj
3066 2916
           })
3067 2917
             .then(function(response) {
@@ -3082,7 +2932,7 @@ export default {
3082 2932
                 } else {
3083 2933
                   that.radio = 1
3084 2934
                   that.changeRadioAndPatient(1)
3085
-                  that.$message({ message: '记成功', type: 'success', duration: 5000 })
2935
+                  that.$message({ message: '记成功', type: 'success', duration: 5000 })
3086 2936
                 }
3087 2937
 
3088 2938
               }
@@ -3090,9 +2940,44 @@ export default {
3090 2940
             .catch(function(error) {
3091 2941
 
3092 2942
             })
3093
-
3094 2943
           break
2944
+        case 2:
2945
+          var that = this
2946
+          let obj3 = {
2947
+            order_id:this.order.id,
2948
+            admin_user_id: this.$store.getters.xt_user.user.id,
2949
+          }
2950
+          axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/settleAccount/cancel', {
2951
+            params: obj3
2952
+          })
2953
+            .then(function(response) {
2954
+              if (response.data.state == 0) {
2955
+                that.$message.error(response.data.msg)
2956
+                that.loadingtwo = false
2957
+                return false
2958
+              } else {
2959
+                if (response.data.data.failed_code == -10) {
2960
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
2961
+                    confirmButtonText: '确 定',
2962
+                    type: 'warning'
2963
+                  }).then(() => {
2964
+
2965
+                  }).catch(() => {
2966
+                  })
3095 2967
 
2968
+                } else {
2969
+                  that.radio = 1
2970
+                  that.changeRadioAndPatient(1)
2971
+                  that.$message({ message: '撤销记账成功', type: 'success', duration: 5000 })
2972
+                }
2973
+
2974
+              }
2975
+            })
2976
+            .catch(function(error) {
2977
+
2978
+            })
2979
+
2980
+          break
3096 2981
       }
3097 2982
     },openZF(index){
3098 2983
 

+ 14 - 2
src/xt_pages/outpatientCharges/summary.vue View File

@@ -124,10 +124,10 @@
124 124
           <!--          </el-button-->
125 125
           <!--          >-->
126 126
 
127
-           <el-button size="small" type="primary" @click="export_detail_three">报表下载12</el-button>
127
+<!--           <el-button size="small" type="primary" @click="export_detail_three">报表下载12</el-button>-->
128 128
           <!-- <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
129 129
           <!-- <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
130
-           <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>
130
+<!--           <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
131 131
           <!-- <el-button size="small" type="primary" @click="export_detail_tenone">报表下载10</el-button>-->
132 132
           <!--  <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
133 133
 
@@ -2677,6 +2677,7 @@ export default {
2677 2677
               治疗费:0,
2678 2678
               材料费:0,
2679 2679
               中成药费:0,
2680
+              护理费:0,
2680 2681
               备注: "就诊日期:" + this.getTimes(order.settle_accounts_date) + " 医保报销: "+order.fund_pay_sumamt + " 现金:"+order.psn_cash_pay,
2681 2682
             }
2682 2683
             let xiyaoPrice = 0
@@ -2685,6 +2686,8 @@ export default {
2685 2686
             let zhiLiaoPrice = 0
2686 2687
             let cailiaoPrice = 0
2687 2688
             let zhongchengyaoPrice = 0
2689
+            let huliPrice = 0
2690
+
2688 2691
 
2689 2692
               for (let b = 0; b < order.info.length; b++) {
2690 2693
                 if(order.info[b].med_chrgitm_type ==  '09'){
@@ -2705,6 +2708,10 @@ export default {
2705 2708
                 if(order.info[b].med_chrgitm_type ==  '11'){
2706 2709
                   zhongchengyaoPrice = zhongchengyaoPrice + order.info[b].det_item_fee_sumamt
2707 2710
                 }
2711
+
2712
+                if(order.info[b].med_chrgitm_type ==  '07'){
2713
+                  huliPrice = huliPrice + order.info[b].det_item_fee_sumamt
2714
+                }
2708 2715
               }
2709 2716
             obj.西药费 = xiyaoPrice
2710 2717
             obj.化验费 = huaYanPrice
@@ -2712,6 +2719,8 @@ export default {
2712 2719
             obj.治疗费 = zhiLiaoPrice
2713 2720
             obj.材料费 = cailiaoPrice
2714 2721
             obj.中成药费 = zhongchengyaoPrice
2722
+            obj.护理费 = huliPrice
2723
+
2715 2724
 
2716 2725
 
2717 2726
             list.push(obj)
@@ -2727,6 +2736,8 @@ export default {
2727 2736
               "治疗费",
2728 2737
               "材料费",
2729 2738
               "中成药费",
2739
+              "护理费",
2740
+
2730 2741
               "备注",
2731 2742
             ];
2732 2743
             const filterVal = [
@@ -2738,6 +2749,7 @@ export default {
2738 2749
               "治疗费",
2739 2750
               "材料费",
2740 2751
               "中成药费",
2752
+              "护理费",
2741 2753
               "备注",
2742 2754
             ];
2743 2755
             const data = this.formatJson(filterVal, list);