|
@@ -1511,7 +1511,12 @@ export default {
|
1511
|
1511
|
this.month_prescriptions = []
|
1512
|
1512
|
this.setMonthPrescription(response.data.data.month_prescriptions)
|
1513
|
1513
|
this.curMonthPrescriptions = this.month_prescriptions[0]
|
1514
|
|
-
|
|
1514
|
+ this.form.diagnosis = []
|
|
1515
|
+ for(let i = 0; i < response.data.data.dia_arr.length;i++) {
|
|
1516
|
+ if (response.data.data.dia_arr[i] > 0 || response.data.data.dia_arr[i].length > 0) {
|
|
1517
|
+ this.form.diagnosis.push(parseInt(response.data.data.dia_arr[i]))
|
|
1518
|
+ }
|
|
1519
|
+ }
|
1515
|
1520
|
} else {
|
1516
|
1521
|
this.$message.error(response.data.msg)
|
1517
|
1522
|
}
|
|
@@ -1536,7 +1541,12 @@ export default {
|
1536
|
1541
|
this.month_prescriptions = []
|
1537
|
1542
|
this.setMonthPrescription(response.data.data.month_prescriptions)
|
1538
|
1543
|
this.curMonthPrescriptions = this.month_prescriptions[0]
|
1539
|
|
-
|
|
1544
|
+ this.form.diagnosis = []
|
|
1545
|
+ for(let i = 0; i < response.data.data.dia_arr.length;i++) {
|
|
1546
|
+ if (response.data.data.dia_arr[i] > 0 || response.data.data.dia_arr[i].length > 0) {
|
|
1547
|
+ this.form.diagnosis.push(parseInt(response.data.data.dia_arr[i]))
|
|
1548
|
+ }
|
|
1549
|
+ }
|
1540
|
1550
|
} else {
|
1541
|
1551
|
this.$message.error(response.data.msg)
|
1542
|
1552
|
}
|
|
@@ -1668,17 +1678,24 @@ export default {
|
1668
|
1678
|
.then(function(response) {
|
1669
|
1679
|
if (response.data.state == 0) {
|
1670
|
1680
|
that.$message.error(response.data.msg)
|
|
1681
|
+
|
1671
|
1682
|
that.loadingtwo = false
|
1672
|
1683
|
that.$refs.charge.hide()
|
|
1684
|
+
|
1673
|
1685
|
return false
|
1674
|
1686
|
} else {
|
1675
|
1687
|
if (response.data.data.failed_code == -10) {
|
|
1688
|
+
|
1676
|
1689
|
that.$confirm(response.data.data.msg, '医保错误信息', {
|
1677
|
1690
|
confirmButtonText: '确 定',
|
1678
|
1691
|
type: 'warning'
|
1679
|
1692
|
}).then(() => {
|
|
1693
|
+ that.$refs.charge.hide()
|
|
1694
|
+ that.changeRadioAndPatient(1)
|
1680
|
1695
|
that.newLoading = false
|
1681
|
1696
|
}).catch(() => {
|
|
1697
|
+ that.$refs.charge.hide()
|
|
1698
|
+ that.changeRadioAndPatient(1)
|
1682
|
1699
|
that.newLoading = false
|
1683
|
1700
|
})
|
1684
|
1701
|
|
|
@@ -2460,6 +2477,13 @@ export default {
|
2460
|
2477
|
this.setMonthPrescription(response.data.data.month_prescriptions)
|
2461
|
2478
|
this.curMonthPrescriptions = this.month_prescriptions[0]
|
2462
|
2479
|
|
|
2480
|
+ this.form.diagnosis = []
|
|
2481
|
+ for(let i = 0; i < response.data.data.dia_arr.length;i++) {
|
|
2482
|
+ if (response.data.data.dia_arr[i] > 0 || response.data.data.dia_arr[i].length > 0) {
|
|
2483
|
+ this.form.diagnosis.push(parseInt(response.data.data.dia_arr[i]))
|
|
2484
|
+ }
|
|
2485
|
+ }
|
|
2486
|
+
|
2463
|
2487
|
} else {
|
2464
|
2488
|
this.$message.error(response.data.msg)
|
2465
|
2489
|
}
|
|
@@ -4938,13 +4962,8 @@ export default {
|
4938
|
4962
|
|
4939
|
4963
|
this.all_table_data.push(obj)
|
4940
|
4964
|
}else{
|
4941
|
|
- console.log("count")
|
4942
|
|
- console.log(response.data.data.list[i].his_patient.length)
|
4943
|
4965
|
if (response.data.data.list[i].his_patient.length > 0) {
|
4944
|
|
-
|
4945
|
4966
|
for(let b = 0;b < response.data.data.list[i].his_patient.length; b++){
|
4946
|
|
- console.log("his_patient")
|
4947
|
|
- console.log(response.data.data.list[i].his_patient)
|
4948
|
4967
|
let obj = {
|
4949
|
4968
|
id: response.data.data.list[i].id,
|
4950
|
4969
|
name: response.data.data.list[i].name,
|
|
@@ -4961,9 +4980,6 @@ export default {
|
4961
|
4980
|
}
|
4962
|
4981
|
}
|
4963
|
4982
|
|
4964
|
|
- console.log("this.all_table_data")
|
4965
|
|
- console.log(this.all_table_data)
|
4966
|
|
-
|
4967
|
4983
|
let unChargePatient = []
|
4968
|
4984
|
for (let i = 0; i < this.all_table_data.length; i++) {
|
4969
|
4985
|
unChargePatient.push(this.all_table_data[i])
|
|
@@ -5702,6 +5718,14 @@ export default {
|
5702
|
5718
|
this.info = response.data.data.info
|
5703
|
5719
|
this.order = response.data.data.order
|
5704
|
5720
|
this.addtions_charge = response.data.data.addtions_charge
|
|
5721
|
+
|
|
5722
|
+ // response.data.data.dia_arr
|
|
5723
|
+ this.form.diagnosis = []
|
|
5724
|
+ for(let i = 0; i < response.data.data.dia_arr.length;i++) {
|
|
5725
|
+ if (response.data.data.dia_arr[i] > 0 || response.data.data.dia_arr[i].length > 0) {
|
|
5726
|
+ this.form.diagnosis.push(parseInt(response.data.data.dia_arr[i]))
|
|
5727
|
+ }
|
|
5728
|
+ }
|
5705
|
5729
|
this.setMonthPrescription(response.data.data.month_prescriptions)
|
5706
|
5730
|
}
|
5707
|
5731
|
})
|