|
@@ -64,16 +64,16 @@
|
64
|
64
|
|
65
|
65
|
</el-button>
|
66
|
66
|
|
67
|
|
- <!--<el-button-->
|
68
|
|
- <!--size="small" @click="sz_open(8)" type="primary"-->
|
69
|
|
- <!-->预结算-->
|
70
|
|
- <!--</el-button>-->
|
|
67
|
+ <el-button
|
|
68
|
+ size="small" @click="sz_open(8)" type="primary"
|
|
69
|
+ >预结算
|
|
70
|
+ </el-button>
|
71
|
71
|
|
72
|
|
- <!--<el-button-->
|
73
|
|
- <!--v-if="this.order.order_status == 1"-->
|
74
|
|
- <!--size="small" @click="sz_open(7)" type="primary"-->
|
75
|
|
- <!-->撤销明细-->
|
76
|
|
- <!--</el-button>-->
|
|
72
|
+ <el-button
|
|
73
|
+ v-if="this.order.order_status == 1"
|
|
74
|
+ size="small" @click="sz_open(7)" type="primary"
|
|
75
|
+ >撤销明细
|
|
76
|
+ </el-button>
|
77
|
77
|
|
78
|
78
|
<el-button
|
79
|
79
|
v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1"
|
|
@@ -120,6 +120,11 @@
|
120
|
120
|
type="primary">挂号
|
121
|
121
|
</el-button>
|
122
|
122
|
|
|
123
|
+ <el-button
|
|
124
|
+ size="small" @click="open(8)" type="primary"
|
|
125
|
+ >预结算
|
|
126
|
+ </el-button>
|
|
127
|
+
|
123
|
128
|
|
124
|
129
|
<el-button v-loading="loadingtwo"
|
125
|
130
|
v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1 || this.order.order_status == 3"
|
|
@@ -1809,10 +1814,10 @@
|
1809
|
1814
|
|
1810
|
1815
|
if (this.activeName == 'first') {
|
1811
|
1816
|
|
1812
|
|
- this.$refs.charge.show(this.getTotal())
|
|
1817
|
+ this.$refs.charge.show(this.getTotal(),this.order)
|
1813
|
1818
|
|
1814
|
1819
|
} else {
|
1815
|
|
- this.$refs.charge.show(this.getTotalTwo())
|
|
1820
|
+ this.$refs.charge.show(this.getTotalTwo(),this.order)
|
1816
|
1821
|
|
1817
|
1822
|
}
|
1818
|
1823
|
|
|
@@ -1944,26 +1949,77 @@
|
1944
|
1949
|
}
|
1945
|
1950
|
|
1946
|
1951
|
} else if (index == 8) {
|
1947
|
|
- let params = {
|
1948
|
|
- start_time: '2020-12-28',
|
1949
|
|
- end_time: '2020-12-30'
|
1950
|
|
- }
|
1951
|
|
- var that = this
|
1952
|
|
- axios.get('http://127.0.0.1:9532/api/checkdetailaccount/get', {
|
1953
|
|
- params: params
|
1954
|
|
- })
|
1955
|
|
- .then(function(response) {
|
1956
|
|
- if (response.data.state == 0) {
|
1957
|
|
- that.$message.error(response.data.msg)
|
1958
|
|
- that.loadingtwo = false
|
1959
|
|
- return false
|
1960
|
|
- } else {
|
1961
|
1952
|
|
|
1953
|
+ var that = this
|
|
1954
|
+ let form = {}
|
|
1955
|
+ form['id'] = this.patientInfo.id
|
|
1956
|
+ form['his_patient_id'] = this.hisPatientInfo.id
|
|
1957
|
+ form['record_time'] = this.record_date
|
|
1958
|
+ form['admin_user_id'] = this.$store.getters.xt_user.user.id
|
|
1959
|
+ form['org_id'] = this.$store.getters.xt_user.org_id
|
|
1960
|
+ if (this.activeName == 'first') {
|
|
1961
|
+ form['settle_accounts_type'] = 1
|
|
1962
|
+ } else {
|
|
1963
|
+ form['start_time'] = this.other_start_time
|
|
1964
|
+ form['end_time'] = this.other_end_time
|
|
1965
|
+ form['settle_accounts_type'] = 2
|
|
1966
|
+ }
|
|
1967
|
+ this.$confirm('是否进行预结算', '预结算', {
|
|
1968
|
+ confirmButtonText: '确 定',
|
|
1969
|
+ cancelButtonText: '取 消',
|
|
1970
|
+ type: 'warning'
|
|
1971
|
+ }).then(() => {
|
|
1972
|
+ axios.get('http://127.0.0.1:9532/api/presettle/get', {
|
|
1973
|
+ params:form,
|
|
1974
|
+ headers: {
|
|
1975
|
+ 'Permission': 5
|
1962
|
1976
|
}
|
1963
|
1977
|
})
|
1964
|
|
- .catch(function(error) {
|
|
1978
|
+ .then(function(response) {
|
|
1979
|
+ if (response.data.state == 0) {
|
|
1980
|
+ that.$message.error(response.data.msg)
|
|
1981
|
+ return false
|
|
1982
|
+ } else {
|
|
1983
|
+ if (response.data.data.failed_code == -10) {
|
|
1984
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
1985
|
+ confirmButtonText: '确 定',
|
|
1986
|
+ type: 'warning'
|
|
1987
|
+ }).then(() => {
|
1965
|
1988
|
|
1966
|
|
- })
|
|
1989
|
+ }).catch(() => {
|
|
1990
|
+ })
|
|
1991
|
+ } else {
|
|
1992
|
+ that.changeRadioAndPatient(1)
|
|
1993
|
+ that.$message({ message: '预结算成功', type: 'success', duration: 5000 })
|
|
1994
|
+ }
|
|
1995
|
+ }
|
|
1996
|
+ })
|
|
1997
|
+ .catch(function(error) {
|
|
1998
|
+
|
|
1999
|
+ })
|
|
2000
|
+ }).catch(() => {
|
|
2001
|
+
|
|
2002
|
+ })
|
|
2003
|
+ // let params = {
|
|
2004
|
+ // start_time: '2020-12-28',
|
|
2005
|
+ // end_time: '2020-12-30'
|
|
2006
|
+ // }
|
|
2007
|
+ // var that = this
|
|
2008
|
+ // axios.get('http://127.0.0.1:9532/api/checkdetailaccount/get', {
|
|
2009
|
+ // params: params
|
|
2010
|
+ // })
|
|
2011
|
+ // .then(function(response) {
|
|
2012
|
+ // if (response.data.state == 0) {
|
|
2013
|
+ // that.$message.error(response.data.msg)
|
|
2014
|
+ // that.loadingtwo = false
|
|
2015
|
+ // return false
|
|
2016
|
+ // } else {
|
|
2017
|
+ //
|
|
2018
|
+ // }
|
|
2019
|
+ // })
|
|
2020
|
+ // .catch(function(error) {
|
|
2021
|
+ //
|
|
2022
|
+ // })
|
1967
|
2023
|
|
1968
|
2024
|
} else if (index == 9) {
|
1969
|
2025
|
this.statementVisible = true
|