|
@@ -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
|
})
|
|
@@ -3383,8 +3387,22 @@
|
3383
|
3387
|
this.cal_three = three_count
|
3384
|
3388
|
|
3385
|
3389
|
this.current_index = 0
|
|
3390
|
+ let ids = []
|
|
3391
|
+ let temp_order_id = 0
|
3386
|
3392
|
for (let i = 0; i < this.patientTableData.length; i++) {
|
|
3393
|
+ // console.log(this.patientTableData[i])
|
|
3394
|
+
|
3387
|
3395
|
if (this.hisPatientInfo.id == this.patientTableData[i].his_patient_id) {
|
|
3396
|
+ ids.push(this.patientTableData[i].order_id)
|
|
3397
|
+ // this.$refs.tab.setCurrentRow(this.patientTableData[i])
|
|
3398
|
+ // this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number, this.patientTableData[i].his_patient.id, this.patientTableData[i].order.id)
|
|
3399
|
+ }
|
|
3400
|
+
|
|
3401
|
+ }
|
|
3402
|
+
|
|
3403
|
+ temp_order_id = ids[ids.length - 1]
|
|
3404
|
+ for (let i = 0; i < this.patientTableData.length; i++) {
|
|
3405
|
+ if (temp_order_id == this.patientTableData[i].order_id) {
|
3388
|
3406
|
this.$refs.tab.setCurrentRow(this.patientTableData[i])
|
3389
|
3407
|
this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number, this.patientTableData[i].his_patient.id, this.patientTableData[i].order.id)
|
3390
|
3408
|
}
|
|
@@ -4519,6 +4537,13 @@
|
4519
|
4537
|
this.currentOrder = order
|
4520
|
4538
|
this.current_med_type = med_type
|
4521
|
4539
|
|
|
4540
|
+ var ids = []
|
|
4541
|
+ for(let i = 0;i < prescriptions.length; i++){
|
|
4542
|
+ ids.push(prescriptions[i].id)
|
|
4543
|
+ }
|
|
4544
|
+ var ids_str = ids.join(",")
|
|
4545
|
+ this.temp_ids = ids_str
|
|
4546
|
+
|
4522
|
4547
|
if (this.activeName == 'first') {
|
4523
|
4548
|
|
4524
|
4549
|
this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
|
|
@@ -4604,7 +4629,7 @@
|
4604
|
4629
|
})
|
4605
|
4630
|
.then(function(response) {
|
4606
|
4631
|
if (response.data.state == 0) {
|
4607
|
|
- that.$message.error(response.data.msg)
|
|
4632
|
+ // that.$message.error(response.data.msg)
|
4608
|
4633
|
return false
|
4609
|
4634
|
} else {
|
4610
|
4635
|
if (response.data.data.failed_code == -10) {
|
|
@@ -4625,6 +4650,7 @@
|
4625
|
4650
|
})
|
4626
|
4651
|
break
|
4627
|
4652
|
case 7:
|
|
4653
|
+ if (this.hisPatientInfo.balance_accounts_type != 2) {
|
4628
|
4654
|
var that = this
|
4629
|
4655
|
axios.get('http://127.0.0.1:9532/sz/api/detail/cancel', {
|
4630
|
4656
|
params: {
|
|
@@ -4658,9 +4684,35 @@
|
4658
|
4684
|
})
|
4659
|
4685
|
.catch(function(error) {
|
4660
|
4686
|
})
|
|
4687
|
+ }else{
|
|
4688
|
+ let params = {
|
|
4689
|
+ order_id: this.order.id,
|
|
4690
|
+ record_time: this.record_date,
|
|
4691
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
|
4692
|
+ patient_id: this.patientInfo.id
|
|
4693
|
+ }
|
|
4694
|
+
|
|
4695
|
+ refunddetail(params).then(response => {
|
|
4696
|
+ if (response.data.state == 0) {
|
|
4697
|
+ this.$message.error(response.data.msg)
|
|
4698
|
+ this.loadingtwo = false
|
|
4699
|
+ return false
|
|
4700
|
+ } else {
|
|
4701
|
+ this.changeRadioAndPatient(1)
|
|
4702
|
+ this.$message({ message: '撤销明细成功', type: 'success' })
|
|
4703
|
+ }
|
|
4704
|
+ })
|
|
4705
|
+
|
|
4706
|
+ }
|
4661
|
4707
|
|
4662
|
4708
|
break
|
4663
|
4709
|
case 8:
|
|
4710
|
+ var ids = []
|
|
4711
|
+ for(let i = 0;i < prescriptions.length; i++){
|
|
4712
|
+ ids.push(prescriptions[i].id)
|
|
4713
|
+ }
|
|
4714
|
+ var ids_str = ids.join(",")
|
|
4715
|
+
|
4664
|
4716
|
if (this.hisPatientInfo.balance_accounts_type == 2) {
|
4665
|
4717
|
|
4666
|
4718
|
this.$confirm('是否进行预结算', '预结算', {
|
|
@@ -4674,7 +4726,7 @@
|
4674
|
4726
|
form['record_time'] = this.record_date
|
4675
|
4727
|
form['admin_user_id'] = this.$store.getters.xt_user.user.id
|
4676
|
4728
|
form['org_id'] = this.$store.getters.xt_user.org_id
|
4677
|
|
-
|
|
4729
|
+ form['ids'] = ids_str
|
4678
|
4730
|
form['p_type'] = med_type
|
4679
|
4731
|
form['diagnosis'] = this.form.diagnosis.join(",")
|
4680
|
4732
|
form['sick_type'] = this.form.sick_type
|
|
@@ -4701,6 +4753,8 @@
|
4701
|
4753
|
})
|
4702
|
4754
|
|
4703
|
4755
|
} else {
|
|
4756
|
+
|
|
4757
|
+
|
4704
|
4758
|
var that = this
|
4705
|
4759
|
let form = {}
|
4706
|
4760
|
form['id'] = this.patientInfo.id
|