Browse Source

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

28169 1 year ago
parent
commit
7dc989ea72

+ 42 - 31
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

685
                     that.$message.error(response.data.msg)
685
                     that.$message.error(response.data.msg)
686
                     return false
686
                     return false
687
                   } else {
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
                     } else {
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
                 .catch(function(error) {
734
                 .catch(function(error) {

+ 34 - 10
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

1511
           this.month_prescriptions = []
1511
           this.month_prescriptions = []
1512
           this.setMonthPrescription(response.data.data.month_prescriptions)
1512
           this.setMonthPrescription(response.data.data.month_prescriptions)
1513
           this.curMonthPrescriptions = this.month_prescriptions[0]
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
         } else {
1520
         } else {
1516
           this.$message.error(response.data.msg)
1521
           this.$message.error(response.data.msg)
1517
         }
1522
         }
1536
           this.month_prescriptions = []
1541
           this.month_prescriptions = []
1537
           this.setMonthPrescription(response.data.data.month_prescriptions)
1542
           this.setMonthPrescription(response.data.data.month_prescriptions)
1538
           this.curMonthPrescriptions = this.month_prescriptions[0]
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
         } else {
1550
         } else {
1541
           this.$message.error(response.data.msg)
1551
           this.$message.error(response.data.msg)
1542
         }
1552
         }
1668
           .then(function(response) {
1678
           .then(function(response) {
1669
             if (response.data.state == 0) {
1679
             if (response.data.state == 0) {
1670
               that.$message.error(response.data.msg)
1680
               that.$message.error(response.data.msg)
1681
+
1671
               that.loadingtwo = false
1682
               that.loadingtwo = false
1672
               that.$refs.charge.hide()
1683
               that.$refs.charge.hide()
1684
+
1673
               return false
1685
               return false
1674
             } else {
1686
             } else {
1675
               if (response.data.data.failed_code == -10) {
1687
               if (response.data.data.failed_code == -10) {
1688
+
1676
                 that.$confirm(response.data.data.msg, '医保错误信息', {
1689
                 that.$confirm(response.data.data.msg, '医保错误信息', {
1677
                   confirmButtonText: '确 定',
1690
                   confirmButtonText: '确 定',
1678
                   type: 'warning'
1691
                   type: 'warning'
1679
                 }).then(() => {
1692
                 }).then(() => {
1693
+                  that.$refs.charge.hide()
1694
+                  that.changeRadioAndPatient(1)
1680
                   that.newLoading = false
1695
                   that.newLoading = false
1681
                 }).catch(() => {
1696
                 }).catch(() => {
1697
+                  that.$refs.charge.hide()
1698
+                  that.changeRadioAndPatient(1)
1682
                   that.newLoading = false
1699
                   that.newLoading = false
1683
                 })
1700
                 })
1684
 
1701
 
2460
             this.setMonthPrescription(response.data.data.month_prescriptions)
2477
             this.setMonthPrescription(response.data.data.month_prescriptions)
2461
             this.curMonthPrescriptions = this.month_prescriptions[0]
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
           } else {
2487
           } else {
2464
             this.$message.error(response.data.msg)
2488
             this.$message.error(response.data.msg)
2465
           }
2489
           }
4938
 
4962
 
4939
                 this.all_table_data.push(obj)
4963
                 this.all_table_data.push(obj)
4940
             }else{
4964
             }else{
4941
-              console.log("count")
4942
-              console.log(response.data.data.list[i].his_patient.length)
4943
               if (response.data.data.list[i].his_patient.length > 0) {
4965
               if (response.data.data.list[i].his_patient.length > 0) {
4944
-
4945
                 for(let b = 0;b < response.data.data.list[i].his_patient.length; b++){
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
                   let obj = {
4967
                   let obj = {
4949
                     id: response.data.data.list[i].id,
4968
                     id: response.data.data.list[i].id,
4950
                     name: response.data.data.list[i].name,
4969
                     name: response.data.data.list[i].name,
4961
             }
4980
             }
4962
           }
4981
           }
4963
 
4982
 
4964
-          console.log("this.all_table_data")
4965
-          console.log(this.all_table_data)
4966
-
4967
           let unChargePatient = []
4983
           let unChargePatient = []
4968
           for (let i = 0; i < this.all_table_data.length; i++) {
4984
           for (let i = 0; i < this.all_table_data.length; i++) {
4969
             unChargePatient.push(this.all_table_data[i])
4985
             unChargePatient.push(this.all_table_data[i])
5702
             this.info = response.data.data.info
5718
             this.info = response.data.data.info
5703
             this.order = response.data.data.order
5719
             this.order = response.data.data.order
5704
             this.addtions_charge = response.data.data.addtions_charge
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
             this.setMonthPrescription(response.data.data.month_prescriptions)
5729
             this.setMonthPrescription(response.data.data.month_prescriptions)
5706
           }
5730
           }
5707
         })
5731
         })