|
@@ -59,16 +59,24 @@
|
59
|
59
|
<div class="mainCell fixedCell" style="margin-bottom:10px;">
|
60
|
60
|
|
61
|
61
|
<div>
|
62
|
|
- <!--<el-button size="small" @click="open(1)" type="primary">打印</el-button>-->
|
|
62
|
+
|
|
63
|
+ <el-button v-loading="loadingtwo"
|
|
64
|
+ v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.id == 0)"
|
|
65
|
+ size="small"
|
|
66
|
+ @click="open(8)"
|
|
67
|
+ type="primary">上传费用明细
|
|
68
|
+ </el-button>
|
|
69
|
+
|
|
70
|
+ <!--<el-button size="small" @click="open(1)" type="primary">打印</el-button>-->
|
63
|
71
|
<el-button v-loading="loadingone" size="small"
|
64
|
|
- v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
|
|
72
|
+ v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0 && this.order.order_status == 1)"
|
65
|
73
|
|
66
|
74
|
@click="open(2)"
|
67
|
75
|
type="primary">出院
|
68
|
76
|
</el-button>
|
69
|
77
|
|
70
|
78
|
<el-button v-loading="loadingtwo"
|
71
|
|
- v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1 && this.order.id == 0) || (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)"
|
|
79
|
+ v-if="(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)"
|
72
|
80
|
size="small"
|
73
|
81
|
@click="open(3)"
|
74
|
82
|
type="primary">收费
|
|
@@ -82,6 +90,12 @@
|
82
|
90
|
>结算单
|
83
|
91
|
</el-button>
|
84
|
92
|
|
|
93
|
+ <el-button
|
|
94
|
+ v-if="(this.hisPatientInfo.id > 0 && this.order.order_status == 1) || (this.hisPatientInfo.id > 0 && this.order.order_status == 2) "
|
|
95
|
+ size="small" @click="open(9)" type="primary"
|
|
96
|
+ >撤销明细
|
|
97
|
+ </el-button>
|
|
98
|
+
|
85
|
99
|
<el-button
|
86
|
100
|
v-if="(this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 1)"
|
87
|
101
|
size="small" @click="open(6)" type="primary"
|
|
@@ -545,23 +559,10 @@
|
545
|
559
|
})
|
546
|
560
|
|
547
|
561
|
}, chargeConfirm(form) {
|
548
|
|
-
|
549
|
|
- form['id'] = this.patientInfo.id;
|
550
|
|
- form['record_time'] = this.record_date;
|
|
562
|
+ form['in_hospital_id'] = this.hisPatientInfo.id;
|
|
563
|
+ form['patient_id'] = this.patientInfo.id;
|
551
|
564
|
form['admin_user_id'] = this.$store.getters.xt_user.user.id;
|
552
|
565
|
form['order_id'] = this.order.id;
|
553
|
|
- form['org_id'] = this.$store.getters.xt_user.org_id;
|
554
|
|
-
|
555
|
|
- if (this.activeName == 'first') {
|
556
|
|
- form['settle_accounts_type'] = 1
|
557
|
|
-
|
558
|
|
- } else {
|
559
|
|
- form['start_time'] = this.other_start_time;
|
560
|
|
- form['end_time'] = this.other_end_time;
|
561
|
|
- form['settle_accounts_type'] = 2
|
562
|
|
-
|
563
|
|
- }
|
564
|
|
-
|
565
|
566
|
if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504) {
|
566
|
567
|
var that = this;
|
567
|
568
|
axios.get('http://127.0.0.1:9532/sz/api/settle/get', {
|
|
@@ -594,9 +595,9 @@
|
594
|
595
|
|
595
|
596
|
})
|
596
|
597
|
|
597
|
|
- } else if (this.$store.getters.xt_user.org_id == 9990 ) {
|
|
598
|
+ } else if (this.$store.getters.xt_user.org_id == 9990 ||this.$store.getters.xt_user.org_id == 4 ) {
|
598
|
599
|
var that = this;
|
599
|
|
- axios.get('http://127.0.0.1:9532/zh/api/uploadinfo/get', {
|
|
600
|
+ axios.get('http://127.0.0.1:9532/zh/api/settle/get', {
|
600
|
601
|
params: form,
|
601
|
602
|
headers: {
|
602
|
603
|
'Permission': 5
|
|
@@ -1399,8 +1400,8 @@
|
1399
|
1400
|
if (response.data.data.failed_code == -10) {
|
1400
|
1401
|
that.$message.error(response.data.data.msg)
|
1401
|
1402
|
} else {
|
1402
|
|
- this.changeRadio(1);
|
1403
|
|
- that.$message({ message: '出院成功', type: 'success', duration: 5000 })
|
|
1403
|
+ that.$message.success("出院成功");
|
|
1404
|
+ that.changeRadio(1);
|
1404
|
1405
|
}
|
1405
|
1406
|
|
1406
|
1407
|
}
|
|
@@ -1581,7 +1582,7 @@
|
1581
|
1582
|
if (response.data.data.failed_code == -10) {
|
1582
|
1583
|
that.$message.error(response.data.data.msg)
|
1583
|
1584
|
} else {
|
1584
|
|
- this.changeRadio(1);
|
|
1585
|
+ that.changeRadio(1);
|
1585
|
1586
|
|
1586
|
1587
|
that.$message({ message: '撤销出院成功', type: 'success', duration: 5000 })
|
1587
|
1588
|
}
|
|
@@ -1624,7 +1625,7 @@
|
1624
|
1625
|
if (response.data.data.failed_code == -10) {
|
1625
|
1626
|
that.$message.error(response.data.data.msg)
|
1626
|
1627
|
} else {
|
1627
|
|
- this.changeRadio(1);
|
|
1628
|
+ that.changeRadio(1);
|
1628
|
1629
|
|
1629
|
1630
|
that.$message({ message: '撤销入院成功', type: 'success', duration: 5000 })
|
1630
|
1631
|
}
|
|
@@ -1930,6 +1931,79 @@
|
1930
|
1931
|
} else {
|
1931
|
1932
|
this.$refs.charge.show(this.getTotalTwo())
|
1932
|
1933
|
}
|
|
1934
|
+ }else if(index == 8){
|
|
1935
|
+ var that = this;
|
|
1936
|
+ let params = {
|
|
1937
|
+ 'in_hospital_id': that.hisPatientInfo.id,
|
|
1938
|
+ 'id': that.patientInfo.id,
|
|
1939
|
+ 'admin_user_id': that.$store.getters.xt_user.user.id,
|
|
1940
|
+ 'record_time': that.record_date,
|
|
1941
|
+
|
|
1942
|
+ };
|
|
1943
|
+ if (this.activeName == 'first') {
|
|
1944
|
+ params['settle_accounts_type'] = 1
|
|
1945
|
+
|
|
1946
|
+ } else {
|
|
1947
|
+ params['start_time'] = that.other_start_time;
|
|
1948
|
+ params['end_time'] = that.other_end_time;
|
|
1949
|
+ params['settle_accounts_type'] = 2
|
|
1950
|
+
|
|
1951
|
+ }
|
|
1952
|
+ axios.get('http://127.0.0.1:9532/zh/api/uploadinfo/get', {
|
|
1953
|
+ params: params
|
|
1954
|
+ })
|
|
1955
|
+ .then(function(response) {
|
|
1956
|
+ if (response.data.state == 0) {
|
|
1957
|
+ that.$message.error(response.data.msg);
|
|
1958
|
+ return false
|
|
1959
|
+ } else {
|
|
1960
|
+ if (response.data.data.failed_code == -10) {
|
|
1961
|
+ that.$message.error(response.data.data.msg)
|
|
1962
|
+ } else {
|
|
1963
|
+ that.$message.success("上传明细成功");
|
|
1964
|
+ that.changeRadio(1);
|
|
1965
|
+ }
|
|
1966
|
+
|
|
1967
|
+ }
|
|
1968
|
+ })
|
|
1969
|
+ .catch(function(error) {
|
|
1970
|
+
|
|
1971
|
+ })
|
|
1972
|
+ }else if(index == 9){
|
|
1973
|
+ var that = this;
|
|
1974
|
+ this.$confirm('是否撤销明细', '撤销明细', {
|
|
1975
|
+ confirmButtonText: '确 定',
|
|
1976
|
+ cancelButtonText: '取 消',
|
|
1977
|
+ type: 'warning'
|
|
1978
|
+ }).then(() => {
|
|
1979
|
+ let params = {
|
|
1980
|
+ 'order_id': this.order.id,
|
|
1981
|
+ 'admin_user_id': this.$store.getters.xt_user.user.id,
|
|
1982
|
+ };
|
|
1983
|
+ axios.get('http://127.0.0.1:9532/zh/api/refunddetail', {
|
|
1984
|
+ params: params
|
|
1985
|
+ })
|
|
1986
|
+ .then(function(response) {
|
|
1987
|
+ if (response.data.state == 0) {
|
|
1988
|
+ that.$message.error(response.data.msg);
|
|
1989
|
+ that.loadingtwo = false;
|
|
1990
|
+ return false
|
|
1991
|
+ } else {
|
|
1992
|
+ if (response.data.data.failed_code == -10) {
|
|
1993
|
+ that.$message.error(response.data.data.msg)
|
|
1994
|
+ } else {
|
|
1995
|
+ that.$message.success("撤销明细成功");
|
|
1996
|
+
|
|
1997
|
+ that.changeRadio(1);
|
|
1998
|
+ }
|
|
1999
|
+
|
|
2000
|
+ }
|
|
2001
|
+ })
|
|
2002
|
+ .catch(function(error) {
|
|
2003
|
+ })
|
|
2004
|
+
|
|
2005
|
+ }).catch(() => {
|
|
2006
|
+ })
|
1933
|
2007
|
}
|
1934
|
2008
|
},
|
1935
|
2009
|
|