Ver código fonte

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 1 ano atrás
pai
commit
7dc989ea72

+ 42 - 31
src/xt_pages/outpatientCharges/components/registerDialog.vue Ver arquivo

@@ -685,39 +685,50 @@
685 685
                     that.$message.error(response.data.msg)
686 686
                     return false
687 687
                   } else {
688
-                    var patient = response.data.data.patient
689
-
690
-                    if (that.form.id_card_type == 1) {
691
-                      that.form.id = patient.id
692
-                      that.form.name = patient.name
693
-                      that.form.gender = patient.gender
694
-                      that.form.age = patient.age
695
-                      that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
696
-                      that.form.phone = patient.phone
697
-                      that.form.id_card = patient.id_card_no
698
-                      that.form.medical_insurance_card = response.data.data.number
699
-                      that.form.social_type = parseInt(response.data.data.insutype)
700
-
701
-
702
-                    } else if (that.form.id_card_type == 2) {
703
-                      that.form.id = patient.id
704
-                      that.form.name = patient.name
705
-                      that.form.gender = patient.gender
706
-                      that.form.age = patient.age
707
-                      that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
708
-                      that.form.phone = patient.phone
709
-                      that.form.id_card = patient.id_card_no
688
+
689
+                    if (response.data.data.failed_code == -10) {
690
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
691
+                        confirmButtonText: '确 定',
692
+                        type: 'warning'
693
+                      }).then(() => {
694
+
695
+                      }).catch(() => {
696
+                      })
710 697
                     } else {
711
-                      that.form.id = patient.id
712
-                      that.form.name = patient.name
713
-                      that.form.gender = patient.gender
714
-                      that.form.age = patient.age
715
-                      that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
716
-                      that.form.phone = patient.phone
717
-                      that.form.id_card = patient.id_card_no
718
-                      that.form.social_type = parseInt(response.data.data.insutype)
698
+
699
+                      var patient = response.data.data.patient
700
+
701
+                      if (that.form.id_card_type == 1) {
702
+                        that.form.id = patient.id
703
+                        that.form.name = patient.name
704
+                        that.form.gender = patient.gender
705
+                        that.form.age = patient.age
706
+                        that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
707
+                        that.form.phone = patient.phone
708
+                        that.form.id_card = patient.id_card_no
709
+                        that.form.medical_insurance_card = response.data.data.number
710
+                        that.form.social_type = parseInt(response.data.data.insutype)
711
+
712
+                      } else if (that.form.id_card_type == 2) {
713
+                        that.form.id = patient.id
714
+                        that.form.name = patient.name
715
+                        that.form.gender = patient.gender
716
+                        that.form.age = patient.age
717
+                        that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
718
+                        that.form.phone = patient.phone
719
+                        that.form.id_card = patient.id_card_no
720
+                      } else {
721
+                        that.form.id = patient.id
722
+                        that.form.name = patient.name
723
+                        that.form.gender = patient.gender
724
+                        that.form.age = patient.age
725
+                        that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
726
+                        that.form.phone = patient.phone
727
+                        that.form.id_card = patient.id_card_no
728
+                        that.form.social_type = parseInt(response.data.data.insutype)
729
+                      }
730
+                      that.$message({ message: '读卡成功', type: 'success' })
719 731
                     }
720
-                    that.$message({ message: '读卡成功', type: 'success' })
721 732
                   }
722 733
                 })
723 734
                 .catch(function(error) {

+ 34 - 10
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver arquivo

@@ -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
         })