|
@@ -214,14 +214,14 @@
|
214
|
214
|
<div style="margin-bottom:10px;float: right">
|
215
|
215
|
|
216
|
216
|
|
217
|
|
- <div v-if="org_id == 9504 || org_id == 10028 || org_id == 10138">
|
|
217
|
+ <div v-if="org_id == 9504 || org_id == 10028 || org_id == 10138 || org_id == 0">
|
218
|
218
|
|
219
|
219
|
|
220
|
220
|
<el-button
|
221
|
221
|
v-if="(hisPatientInfo.id > 0 && items.prescriptions[0].order.id == 0) || (hisPatientInfo.id > 0 && items.prescriptions[0].order.order_status == 3)"
|
222
|
222
|
|
223
|
223
|
size="small"
|
224
|
|
- @click="sz_open(8,items.med_type,items.prescriptions[0].order)"
|
|
224
|
+ @click="sz_open(8,items.med_type,items.prescriptions[0].order,items.prescriptions)"
|
225
|
225
|
type="primary"
|
226
|
226
|
>预结算
|
227
|
227
|
</el-button>
|
|
@@ -458,7 +458,7 @@
|
458
|
458
|
|
459
|
459
|
</el-tab-pane>
|
460
|
460
|
<div style="margin-bottom:10px;float: right">
|
461
|
|
- <div v-if="org_id == 9504 || org_id == 10028 || org_id == 10138">
|
|
461
|
+ <div v-if="org_id == 9504 || org_id == 10028 || org_id == 10138 || org_id == 0">
|
462
|
462
|
|
463
|
463
|
<el-button
|
464
|
464
|
v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) || (hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.order_status == 3)"
|
|
@@ -723,7 +723,8 @@
|
723
|
723
|
refundNumber,
|
724
|
724
|
register,
|
725
|
725
|
upload,
|
726
|
|
- changeMedType
|
|
726
|
+ changeMedType,
|
|
727
|
+ refunddetail
|
727
|
728
|
} from '@/api/his/his'
|
728
|
729
|
import RegisterDialog from './components/registerDialog'
|
729
|
730
|
import treatPrint from './treatPrint'
|
|
@@ -898,6 +899,8 @@
|
898
|
899
|
|
899
|
900
|
temp_prescriptions:null,
|
900
|
901
|
|
|
902
|
+ temp_ids:"",
|
|
903
|
+
|
901
|
904
|
}
|
902
|
905
|
},
|
903
|
906
|
created() {
|
|
@@ -1031,7 +1034,7 @@
|
1031
|
1034
|
form['p_type'] = this.current_med_type
|
1032
|
1035
|
form['diagnosis'] = this.form.diagnosis.join(",")
|
1033
|
1036
|
form['sick_type'] = this.form.sick_type
|
1034
|
|
-
|
|
1037
|
+ form['ids'] = this.temp_ids
|
1035
|
1038
|
if (this.activeName == 'first') {
|
1036
|
1039
|
form['settle_accounts_type'] = 1
|
1037
|
1040
|
|
|
@@ -1066,6 +1069,7 @@
|
1066
|
1069
|
|
1067
|
1070
|
if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 0) {
|
1068
|
1071
|
var that = this
|
|
1072
|
+
|
1069
|
1073
|
axios.get('http://127.0.0.1:9532/sz/api/settle/get', {
|
1070
|
1074
|
params: form
|
1071
|
1075
|
})
|
|
@@ -4519,6 +4523,13 @@
|
4519
|
4523
|
this.currentOrder = order
|
4520
|
4524
|
this.current_med_type = med_type
|
4521
|
4525
|
|
|
4526
|
+ var ids = []
|
|
4527
|
+ for(let i = 0;i < prescriptions.length; i++){
|
|
4528
|
+ ids.push(prescriptions[i].id)
|
|
4529
|
+ }
|
|
4530
|
+ var ids_str = ids.join(",")
|
|
4531
|
+ this.temp_ids = ids_str
|
|
4532
|
+
|
4522
|
4533
|
if (this.activeName == 'first') {
|
4523
|
4534
|
|
4524
|
4535
|
this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
|
|
@@ -4625,6 +4636,7 @@
|
4625
|
4636
|
})
|
4626
|
4637
|
break
|
4627
|
4638
|
case 7:
|
|
4639
|
+ if (this.hisPatientInfo.balance_accounts_type != 2) {
|
4628
|
4640
|
var that = this
|
4629
|
4641
|
axios.get('http://127.0.0.1:9532/sz/api/detail/cancel', {
|
4630
|
4642
|
params: {
|
|
@@ -4658,9 +4670,35 @@
|
4658
|
4670
|
})
|
4659
|
4671
|
.catch(function(error) {
|
4660
|
4672
|
})
|
|
4673
|
+ }else{
|
|
4674
|
+ let params = {
|
|
4675
|
+ order_id: this.order.id,
|
|
4676
|
+ record_time: this.record_date,
|
|
4677
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
|
4678
|
+ patient_id: this.patientInfo.id
|
|
4679
|
+ }
|
|
4680
|
+
|
|
4681
|
+ refunddetail(params).then(response => {
|
|
4682
|
+ if (response.data.state == 0) {
|
|
4683
|
+ this.$message.error(response.data.msg)
|
|
4684
|
+ this.loadingtwo = false
|
|
4685
|
+ return false
|
|
4686
|
+ } else {
|
|
4687
|
+ this.changeRadioAndPatient(1)
|
|
4688
|
+ this.$message({ message: '撤销明细成功', type: 'success' })
|
|
4689
|
+ }
|
|
4690
|
+ })
|
|
4691
|
+
|
|
4692
|
+ }
|
4661
|
4693
|
|
4662
|
4694
|
break
|
4663
|
4695
|
case 8:
|
|
4696
|
+ var ids = []
|
|
4697
|
+ for(let i = 0;i < prescriptions.length; i++){
|
|
4698
|
+ ids.push(prescriptions[i].id)
|
|
4699
|
+ }
|
|
4700
|
+ var ids_str = ids.join(",")
|
|
4701
|
+
|
4664
|
4702
|
if (this.hisPatientInfo.balance_accounts_type == 2) {
|
4665
|
4703
|
|
4666
|
4704
|
this.$confirm('是否进行预结算', '预结算', {
|
|
@@ -4674,7 +4712,7 @@
|
4674
|
4712
|
form['record_time'] = this.record_date
|
4675
|
4713
|
form['admin_user_id'] = this.$store.getters.xt_user.user.id
|
4676
|
4714
|
form['org_id'] = this.$store.getters.xt_user.org_id
|
4677
|
|
-
|
|
4715
|
+ form['ids'] = ids_str
|
4678
|
4716
|
form['p_type'] = med_type
|
4679
|
4717
|
form['diagnosis'] = this.form.diagnosis.join(",")
|
4680
|
4718
|
form['sick_type'] = this.form.sick_type
|
|
@@ -4701,6 +4739,8 @@
|
4701
|
4739
|
})
|
4702
|
4740
|
|
4703
|
4741
|
} else {
|
|
4742
|
+
|
|
4743
|
+
|
4704
|
4744
|
var that = this
|
4705
|
4745
|
let form = {}
|
4706
|
4746
|
form['id'] = this.patientInfo.id
|