|
@@ -92,7 +92,16 @@
|
92
|
92
|
<div>
|
93
|
93
|
|
94
|
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
|
105
|
size="small"
|
97
|
106
|
@click="open(8)"
|
98
|
107
|
type="primary">上传费用明细
|
|
@@ -100,14 +109,14 @@
|
100
|
109
|
|
101
|
110
|
<!--<el-button size="small" @click="open(1)" type="primary">打印</el-button>-->
|
102
|
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
|
114
|
@click="open(2)"
|
106
|
115
|
type="primary">出院
|
107
|
116
|
</el-button>
|
108
|
117
|
|
109
|
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
|
121
|
@click="open(2)"
|
113
|
122
|
type="primary">出院
|
|
@@ -115,42 +124,49 @@
|
115
|
124
|
|
116
|
125
|
|
117
|
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
|
128
|
size="small"
|
120
|
129
|
@click="open(3)"
|
121
|
130
|
type="primary">收费
|
122
|
131
|
</el-button>
|
123
|
132
|
|
124
|
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
|
135
|
size="small"
|
127
|
136
|
@click="open(3)"
|
128
|
137
|
type="primary">收费
|
129
|
138
|
</el-button>
|
130
|
139
|
|
131
|
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
|
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
|
146
|
</el-button>
|
138
|
147
|
|
139
|
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
|
158
|
size="small" @click="open(9)" type="primary"
|
143
|
159
|
>撤销明细
|
144
|
160
|
</el-button>
|
145
|
161
|
|
146
|
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
|
164
|
size="small" @click="open(6)" type="primary"
|
149
|
165
|
>撤销出院
|
150
|
166
|
</el-button>
|
151
|
167
|
|
152
|
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
|
170
|
size="small" @click="open(7)" type="primary"
|
155
|
171
|
>撤销入院
|
156
|
172
|
</el-button>
|
|
@@ -1989,13 +2005,27 @@
|
1989
|
2005
|
|
1990
|
2006
|
})
|
1991
|
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
|
2017
|
var that = this
|
1993
|
2018
|
this.$confirm('是否撤销明细', '撤销明细', {
|
1994
|
2019
|
confirmButtonText: '确 定',
|
1995
|
2020
|
cancelButtonText: '取 消',
|
1996
|
2021
|
type: 'warning'
|
1997
|
2022
|
}).then(() => {
|
|
2023
|
+
|
1998
|
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
|
2029
|
'order_id': this.order.id,
|
2000
|
2030
|
'admin_user_id': this.$store.getters.xt_user.user.id
|
2001
|
2031
|
}
|
|
@@ -2030,6 +2060,52 @@
|
2030
|
2060
|
|
2031
|
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
|
|