Bläddra i källkod

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

csx 3 år sedan
förälder
incheckning
f0e288b517
1 ändrade filer med 86 tillägg och 10 borttagningar
  1. 86 10
      src/xt_pages/hospitalStation/outpatientChargesManagement.vue

+ 86 - 10
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Visa fil

92
                     <div>
92
                     <div>
93
 
93
 
94
                         <el-button v-loading="loadingtwo"
94
                         <el-button v-loading="loadingtwo"
95
-                                   v-if="(this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0)"
95
+                                   v-if="(this.activeName == 'first' && this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0)"
96
+                                   size="small"
97
+                                   @click="open(30)"
98
+                                   type="primary">上传费用明细
99
+                        </el-button>
100
+
101
+
102
+
103
+                        <el-button v-loading="loadingtwo"
104
+                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0)"
96
                                    size="small"
105
                                    size="small"
97
                                    @click="open(8)"
106
                                    @click="open(8)"
98
                                    type="primary">上传费用明细
107
                                    type="primary">上传费用明细
100
 
109
 
101
                         <!--<el-button size="small" @click="open(1)" type="primary">打印</el-button>-->
110
                         <!--<el-button size="small" @click="open(1)" type="primary">打印</el-button>-->
102
                         <el-button v-loading="loadingone" size="small"
111
                         <el-button v-loading="loadingone" size="small"
103
-                                   v-if="(this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.order_status == 1)"
112
+                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.order_status == 1)"
104
 
113
 
105
                                    @click="open(2)"
114
                                    @click="open(2)"
106
                                    type="primary">出院
115
                                    type="primary">出院
107
                         </el-button>
116
                         </el-button>
108
 
117
 
109
                         <el-button v-loading="loadingone" size="small"
118
                         <el-button v-loading="loadingone" size="small"
110
-                                   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
+                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type == 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
111
 
120
 
112
                                    @click="open(2)"
121
                                    @click="open(2)"
113
                                    type="primary">出院
122
                                    type="primary">出院
115
 
124
 
116
 
125
 
117
                         <el-button v-loading="loadingtwo"
126
                         <el-button v-loading="loadingtwo"
118
-                                   v-if="(this.hisPatientInfo.balance_accounts_type != 2 &&  this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 1)||   (this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 3)"
127
+                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type != 2 &&  this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 1)||   (this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.order_status == 3)"
119
                                    size="small"
128
                                    size="small"
120
                                    @click="open(3)"
129
                                    @click="open(3)"
121
                                    type="primary">收费
130
                                    type="primary">收费
122
                         </el-button>
131
                         </el-button>
123
 
132
 
124
                         <el-button v-loading="loadingtwo"
133
                         <el-button v-loading="loadingtwo"
125
-                                   v-if="(this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1  && this.order.order_status != 2)"
134
+                                   v-if="(this.activeName != 'first' &&this.hisPatientInfo.balance_accounts_type == 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1  && this.order.order_status != 2)"
126
                                    size="small"
135
                                    size="small"
127
                                    @click="open(3)"
136
                                    @click="open(3)"
128
                                    type="primary">收费
137
                                    type="primary">收费
129
                         </el-button>
138
                         </el-button>
130
 
139
 
131
                         <el-button size="small" @click="open(4)" type="primary"
140
                         <el-button size="small" @click="open(4)" type="primary"
132
-                                   v-if="this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
141
+                                   v-if="this.activeName != 'first' &&this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
133
                             退费
142
                             退费
134
                         </el-button>
143
                         </el-button>
135
-                        <el-button v-if="this.order.order_status == 2" size="small" @click="open(5)" type="primary"
144
+                        <el-button v-if="this.activeName != 'first' &&this.order.order_status == 2" size="small" @click="open(5)" type="primary"
136
                         >结算单
145
                         >结算单
137
                         </el-button>
146
                         </el-button>
138
 
147
 
139
                         <el-button
148
                         <el-button
140
-                                v-if="(this.hisPatientInfo.balance_accounts_type != 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
149
+                                v-if="(this.activeName == 'first' && this.hisPatientInfo.balance_accounts_type != 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
150
+
151
+                                size="small" @click="open(9)" type="primary"
152
+                        >撤销明细
153
+                        </el-button>
154
+
155
+                        <el-button
156
+                                v-if="(this.activeName != 'first' && this.hisPatientInfo.balance_accounts_type != 2  && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
141
 
157
 
142
                                 size="small" @click="open(9)" type="primary"
158
                                 size="small" @click="open(9)" type="primary"
143
                         >撤销明细
159
                         >撤销明细
144
                         </el-button>
160
                         </el-button>
145
 
161
 
146
                         <el-button
162
                         <el-button
147
-                                v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
163
+                                v-if="(this.activeName != 'first' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
148
                                 size="small" @click="open(6)" type="primary"
164
                                 size="small" @click="open(6)" type="primary"
149
                         >撤销出院
165
                         >撤销出院
150
                         </el-button>
166
                         </el-button>
151
 
167
 
152
                         <el-button
168
                         <el-button
153
-                                v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
169
+                                v-if="(this.activeName != 'first' &&this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
154
                                 size="small" @click="open(7)" type="primary"
170
                                 size="small" @click="open(7)" type="primary"
155
                         >撤销入院
171
                         >撤销入院
156
                         </el-button>
172
                         </el-button>
1989
 
2005
 
1990
             })
2006
             })
1991
         } else if (index == 9) {
2007
         } else if (index == 9) {
2008
+          let settle_accounts_type = ""
2009
+          if(this.activeName == 'first'){
2010
+
2011
+            settle_accounts_type = 1
2012
+          }else{
2013
+
2014
+            settle_accounts_type = 2
2015
+
2016
+          }
1992
           var that = this
2017
           var that = this
1993
           this.$confirm('是否撤销明细', '撤销明细', {
2018
           this.$confirm('是否撤销明细', '撤销明细', {
1994
             confirmButtonText: '确 定',
2019
             confirmButtonText: '确 定',
1995
             cancelButtonText: '取 消',
2020
             cancelButtonText: '取 消',
1996
             type: 'warning'
2021
             type: 'warning'
1997
           }).then(() => {
2022
           }).then(() => {
2023
+
1998
             let params = {
2024
             let params = {
2025
+              'settle_accounts_type':settle_accounts_type,
2026
+              'patient_id':this.patientInfo.id,
2027
+              'his_patient_id':this.hisPatientInfo.id,
2028
+              'record_time': this.record_time,
1999
               'order_id': this.order.id,
2029
               'order_id': this.order.id,
2000
               'admin_user_id': this.$store.getters.xt_user.user.id
2030
               'admin_user_id': this.$store.getters.xt_user.user.id
2001
             }
2031
             }
2030
 
2060
 
2031
           }).catch(() => {
2061
           }).catch(() => {
2032
           })
2062
           })
2063
+        } else if(index == 30){
2064
+          var that = this
2065
+          let params = {
2066
+            'in_hospital_id': that.hisPatientInfo.id,
2067
+            'id': that.patientInfo.id,
2068
+            'admin_user_id': that.$store.getters.xt_user.user.id,
2069
+            'record_time': that.record_date
2070
+
2071
+          }
2072
+          if (this.activeName == 'first') {
2073
+            params['settle_accounts_type'] = 1
2074
+
2075
+          } else {
2076
+            params['start_time'] = that.other_start_time
2077
+            params['end_time'] = that.other_end_time
2078
+            params['settle_accounts_type'] = 2
2079
+
2080
+          }
2081
+          axios.get('http://127.0.0.1:9532/zh/api/uploadinfo/get', {
2082
+            params: params
2083
+          })
2084
+            .then(function(response) {
2085
+              if (response.data.state == 0) {
2086
+                that.$message.error(response.data.msg)
2087
+                return false
2088
+              } else {
2089
+                if (response.data.data.failed_code == -10) {
2090
+                  // that.$message.error(response.data.data.msg)
2091
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
2092
+                    confirmButtonText: '确 定',
2093
+                    type: 'warning'
2094
+                  }).then(() => {
2095
+
2096
+                  }).catch(() => {
2097
+                  })
2098
+                } else {
2099
+                  that.$message.success('上传明细成功')
2100
+                  that.changeRadioAndPatient(1)
2101
+                }
2102
+
2103
+              }
2104
+            })
2105
+            .catch(function(error) {
2106
+
2107
+            })
2108
+
2033
         }
2109
         }
2034
       },
2110
       },
2035
 
2111