浏览代码

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

xmg123 4 天前
父节点
当前提交
d964d6bef2
共有 2 个文件被更改,包括 48 次插入11 次删除
  1. 45 8
      src/xt_pages/hospitalStation/chargeDetailManagement.vue
  2. 3 3
      src/xt_pages/outpatientTool/detailPrint.vue

+ 45 - 8
src/xt_pages/hospitalStation/chargeDetailManagement.vue 查看文件

@@ -76,6 +76,7 @@
76 76
             <el-button
77 77
                 v-if="(this.radio == 1 && this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 )"
78 78
                 size="small"
79
+                v-loading="isUpload"
79 80
                 @click="open(1)"
80 81
                 type="primary">上传费用明细
81 82
             </el-button>
@@ -85,6 +86,7 @@
85 86
                 v-if="(this.radio == 1 && this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 )"
86 87
                 size="small"
87 88
                 @click="open(1)"
89
+                v-loading="isUpload"
88 90
                 type="primary">上传费用明细
89 91
             </el-button>
90 92
 
@@ -92,6 +94,9 @@
92 94
             <el-button
93 95
                 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)"
94 96
                 size="small" @click="open(2)" type="primary"
97
+                v-loading="isUpload"
98
+
99
+
95 100
             >撤销明细
96 101
             </el-button>
97 102
 
@@ -100,6 +105,8 @@
100 105
             <el-button
101 106
                 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 107
                 size="small" @click="open(2)" type="primary"
108
+                v-loading="isUpload"
109
+
103 110
             >撤销明细
104 111
             </el-button>
105 112
 
@@ -111,12 +118,14 @@
111 118
                 v-if="( this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 )"
112 119
                 size="small"
113 120
                 @click="open(1)"
121
+                v-loading="isUpload"
114 122
                 type="primary">上传费用明细
115 123
             </el-button>
116 124
 
117 125
             <el-button
118 126
               v-if="( this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 )"
119 127
               size="small"
128
+              v-loading="isUpload"
120 129
               @click="open(1)"
121 130
               type="primary">上传费用明细
122 131
             </el-button>
@@ -124,6 +133,7 @@
124 133
 
125 134
             <el-button
126 135
                 v-if="( this.hisPatientInfo.balance_accounts_type != 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
136
+                v-loading="isUpload"
127 137
 
128 138
                 size="small" @click="open(2)" type="primary"
129 139
             >撤销明细
@@ -131,7 +141,7 @@
131 141
 
132 142
             <el-button
133 143
               v-if="( this.hisPatientInfo.balance_accounts_type == 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
134
-
144
+              v-loading="isUpload"
135 145
               size="small" @click="open(2)" type="primary"
136 146
             >撤销明细
137 147
             </el-button>
@@ -393,6 +403,7 @@ export default {
393 403
   },
394 404
   data() {
395 405
     return {
406
+      isUpload:false,
396 407
       register: [
397 408
         { value: 11, label: '普通门诊' },
398 409
         // { value: 12, label: '门诊挂号' },
@@ -775,9 +786,11 @@ export default {
775 786
       return jsonData.map(v => filterVal.map(j => v[j]))
776 787
     },
777 788
     open(index) {
789
+
778 790
       if (index == 2) {
779 791
         let settle_accounts_type = ''
780 792
         if (this.activeName == 'first') {
793
+
781 794
           settle_accounts_type = 1
782 795
           var that = this
783 796
           this.$confirm('是否撤销明细', '撤销明细', {
@@ -786,6 +799,8 @@ export default {
786 799
             type: 'warning'
787 800
           }).then(() => {
788 801
             if (that.hisPatientInfo.balance_accounts_type != 2){
802
+              that.isUpload = true
803
+
789 804
               let params = {
790 805
                 'settle_accounts_type': settle_accounts_type,
791 806
                 'patient_id': that.hisPatientInfo.patient_id,
@@ -800,8 +815,12 @@ export default {
800 815
                     if (response.data.state == 0) {
801 816
                       that.$message.error(response.data.msg)
802 817
                       that.loadingtwo = false
818
+                      that.isUpload = false
819
+
803 820
                       return false
804 821
                     } else {
822
+                      that.isUpload = false
823
+
805 824
                       if (response.data.data.failed_code == -10) {
806 825
                         // that.$message.error(response.data.data.msg)
807 826
                         that.$confirm(response.data.data.msg, '医保错误信息', {
@@ -812,6 +831,7 @@ export default {
812 831
                         }).catch(() => {
813 832
                         })
814 833
                       } else {
834
+
815 835
                         that.$message.success('撤销明细成功')
816 836
                         that.radio = 1
817 837
                         that.getPatientList()
@@ -831,12 +851,18 @@ export default {
831 851
                 'record_time': that.record_date,
832 852
                 'admin_user_id': that.$store.getters.xt_user.user.id
833 853
               }
854
+              that.isUpload = true
855
+
834 856
               refundDetail(params).then(response => {
835 857
                 if (response.data.state == 0) {
858
+                  that.isUpload = false
859
+
836 860
                   this.loading = false
837 861
                   this.$message.error(response.data.msg)
838 862
                   return false
839 863
                 } else {
864
+                  that.isUpload = false
865
+
840 866
                   that.$message.success('撤销明细成功')
841 867
                   that.radio = 1
842 868
                   that.getPatientList()
@@ -847,7 +873,6 @@ export default {
847 873
           }).catch(() => {
848 874
           })
849 875
         } else {
850
-
851 876
           if (this.hisPatientInfo.balance_accounts_type != 2) {
852 877
             settle_accounts_type = 2
853 878
             var that = this
@@ -856,6 +881,7 @@ export default {
856 881
               cancelButtonText: '取 消',
857 882
               type: 'warning'
858 883
             }).then(() => {
884
+              that.isUpload = true
859 885
 
860 886
               let params = {
861 887
                 'settle_accounts_type': settle_accounts_type,
@@ -870,10 +896,13 @@ export default {
870 896
               })
871 897
                 .then(function(response) {
872 898
                   if (response.data.state == 0) {
899
+                    that.isUpload = false
900
+
873 901
                     that.$message.error(response.data.msg)
874 902
                     that.loadingtwo = false
875 903
                     return false
876 904
                   } else {
905
+                    that.isUpload = false
877 906
                     if (response.data.data.failed_code == -10) {
878 907
                       // that.$message.error(response.data.data.msg)
879 908
                       that.$confirm(response.data.data.msg, '医保错误信息', {
@@ -905,6 +934,8 @@ export default {
905 934
               cancelButtonText: '取 消',
906 935
               type: 'warning'
907 936
             }).then(() => {
937
+              that.isUpload = true
938
+
908 939
               let params = {
909 940
                 'settle_accounts_type': settle_accounts_type,
910 941
                 'patient_id': that.hisPatientInfo.patient_id,
@@ -914,26 +945,22 @@ export default {
914 945
               }
915 946
               refundDetail(params).then(response => {
916 947
                 if (response.data.state == 0) {
948
+                  that.isUpload = false
917 949
                   this.loading = false
918 950
                   this.$message.error(response.data.msg)
919 951
                   return false
920 952
                 } else {
953
+                  that.isUpload = false
921 954
                   that.$message.success('撤销明细成功')
922 955
                   that.radio = 1
923 956
                   that.getPatientList()
924 957
                 }
925 958
               })
926 959
 
927
-
928
-
929 960
             }).catch(() => {
930 961
             })
931 962
 
932
-
933 963
           }
934
-
935
-
936
-
937 964
         }
938 965
 
939 966
       } else if (index == 1) {
@@ -954,15 +981,20 @@ export default {
954 981
           params['settle_accounts_type'] = 2
955 982
 
956 983
         }
984
+        that.isUpload = true
985
+
957 986
         if (this.hisPatientInfo.balance_accounts_type != 2) {
958 987
           axios.get('http://127.0.0.1:9532/zh/api/uploadinfo/get', {
959 988
             params: params
960 989
           })
961 990
               .then(function(response) {
962 991
                 if (response.data.state == 0) {
992
+                  that.isUpload = false
993
+
963 994
                   that.$message.error(response.data.msg)
964 995
                   return false
965 996
                 } else {
997
+                  that.isUpload = false
966 998
                   if (response.data.data.failed_code == -10) {
967 999
                     // that.$message.error(response.data.data.msg)
968 1000
                     that.$confirm(response.data.data.msg, '医保错误信息', {
@@ -1000,12 +1032,17 @@ export default {
1000 1032
             params['settle_accounts_type'] = 2
1001 1033
 
1002 1034
           }
1035
+          that.isUpload = true
1036
+
1003 1037
           upLoadChargeInfo(params).then(response => {
1004 1038
             if (response.data.state == 0) {
1039
+              that.isUpload = false
1040
+
1005 1041
               this.loading = false
1006 1042
               this.$message.error(response.data.msg)
1007 1043
               return false
1008 1044
             } else {
1045
+              that.isUpload = false
1009 1046
               that.$message.success('上传明细成功')
1010 1047
               that.radio = 2
1011 1048
               that.changePatientInfo()

+ 3 - 3
src/xt_pages/outpatientTool/detailPrint.vue 查看文件

@@ -162,7 +162,7 @@
162 162
       <table class="listTable" border="1">
163 163
         <tr style="height:45px">
164 164
           <td width="50" style="text-align: center">序号</td>
165
-          <td width="50" style="text-align: center" v-if="$store.getters.xt_user.org_id == 10567 || $store.getters.xt_user.org_id == 10724 ">费用类型</td>
165
+          <td width="50" style="text-align: center" v-if="$store.getters.xt_user.org_id == 10567 || $store.getters.xt_user.org_id == 10724  || $store.getters.xt_user.org_id == 9478">费用类型</td>
166 166
 
167 167
           <td width="150" style="text-align: center">处方日期</td>
168 168
           <td width="230" style="text-align: center">费用编码</td>
@@ -179,8 +179,8 @@
179 179
             <span v-if="item.is_total == 2">合计</span>
180 180
           </td>
181 181
 
182
-          <td style="text-align: center" v-if="$store.getters.xt_user.org_id == 10567 || $store.getters.xt_user.org_id == 10724">
183
-            <span  v-if="($store.getters.xt_user.org_id == 10567 && item.is_total == 1) || ($store.getters.xt_user.org_id == 10724 && item.is_total == 1)">{{getTypeTwo(item.med_chrgitm_type)}}</span>
182
+          <td style="text-align: center" v-if="$store.getters.xt_user.org_id == 10567 || $store.getters.xt_user.org_id == 10724 || $store.getters.xt_user.org_id == 9478 ">
183
+            <span  v-if="($store.getters.xt_user.org_id == 10567 && item.is_total == 1) || ($store.getters.xt_user.org_id == 10724 && item.is_total == 1) || ($store.getters.xt_user.org_id == 9478 && item.is_total == 1)">{{getTypeTwo(item.med_chrgitm_type)}}</span>
184 184
           </td>
185 185
           <td style="text-align: center">
186 186
             <span v-if="item.is_total == 1">{{getTimes(item.record_date)}}</span>