Parcourir la source

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

XMLWAN il y a 3 ans
Parent
révision
c65cfb014f

+ 10 - 0
src/api/his/his.js Voir le fichier

@@ -508,6 +508,16 @@ export function changeMedType(params) {
508 508
 }
509 509
 
510 510
 
511
+export function refunddetail(params) {
512
+  return request({
513
+    url: "/api/refunddetail/post",
514
+    method: "post",
515
+    params:params,
516
+  });
517
+}
518
+
519
+
520
+
511 521
 
512 522
 
513 523
 

+ 1 - 1
src/xt_pages/hospitalStation/newStatementPrintTwo.vue Voir le fichier

@@ -93,7 +93,7 @@
93 93
           })
94 94
             .then(function (response) {
95 95
               if (response.data.state == 0) {
96
-                this.$message.error(response.data.msg);
96
+                // this.$message.error(response.data.msg);
97 97
                 return false
98 98
               } else {
99 99
                 if (response.data.data.failed_code == -10) {

+ 1 - 1
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Voir le fichier

@@ -3018,7 +3018,7 @@
3018 3018
             })
3019 3019
               .then(function(response) {
3020 3020
                 if (response.data.state == 0) {
3021
-                  that.$message.error(response.data.msg);
3021
+                  // that.$message.error(response.data.msg);
3022 3022
                   return false
3023 3023
                 } else {
3024 3024
                   if (response.data.data.failed_code == -10) {

+ 1 - 1
src/xt_pages/hospitalStation/treatTemplate/printOne.vue Voir le fichier

@@ -360,7 +360,7 @@
360 360
         })
361 361
           .then(function(response) {
362 362
             if (response.data.state == 0) {
363
-              that.$message.error(response.data.msg);
363
+              // that.$message.error(response.data.msg);
364 364
               return false
365 365
             } else {
366 366
               if (response.data.data.failed_code == -10) {

+ 13 - 13
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Voir le fichier

@@ -85,29 +85,29 @@
85 85
         if(this.$store.getters.xt_user.org_id == 10138){
86 86
           setTimeout(() => {
87 87
             const style =
88
-            '@media print {#prescription-print{font-size:16px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 49%;}}}';
88
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 49%;}}}';
89 89
             const style2 =
90
-            '@media print {#prescription-print{font-size:16px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 52%;}}}';
90
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 52%;}}}';
91 91
             const style3 =
92
-            '@media print {#prescription-print{font-size:16px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 55%;}}}';
92
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 55%;}}}';
93 93
             const style4 =
94
-            '@media print {#prescription-print{font-size:16px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 58%;}}}';
94
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 58%;}}}';
95 95
             const style5 =
96
-            '@media print {#prescription-print{font-size:16px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 61%;}}}';
96
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 61%;}}}';
97 97
             const style6 =
98
-            '@media print {#prescription-print{font-size:16px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 66%;}}}';
98
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 66%;}}}';
99 99
             const style7 =
100
-            '@media print {#prescription-print{font-size:16px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 71%;}}}';
100
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 71%;}}}';
101 101
             const style8 =
102
-            '@media print {#prescription-print{font-size:16px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 75%;}}}';
102
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 75%;}}}';
103 103
             const style9 =
104
-            '@media print {#prescription-print{font-size:16px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 80%;}}}';
104
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 80%;}}}';
105 105
             const style10 =
106
-            '@media print {#prescription-print{font-size:16px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 90%;}}}';
106
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 90%;}}}';
107 107
             const style11 =
108
-            '@media print {#prescription-print{font-size:16px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 91%;}}}';
108
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 91%;}}}';
109 109
             const style12 =
110
-            '@media print {#prescription-print{font-size:16px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 91%;}}}';
110
+            '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 91%;}}}';
111 111
             if(this.num >= 13){
112 112
               printJS({
113 113
                 printable: "prescription-print",
@@ -228,7 +228,7 @@
228 228
           }
229 229
           getPrivateExpenses(params).then(response => {
230 230
             if (response.data.state == 0) {
231
-              this.$message.error(response.data.msg)
231
+              // this.$message.error(response.data.msg)
232 232
 
233 233
               return false
234 234
             } else {

+ 1 - 1
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue Voir le fichier

@@ -449,7 +449,7 @@
449 449
         })
450 450
           .then(function(response) {
451 451
             if (response.data.state == 0) {
452
-              that.$message.error(response.data.msg)
452
+              // that.$message.error(response.data.msg)
453 453
               return false
454 454
             } else {
455 455
               if (response.data.data.failed_code == -10) {

+ 61 - 7
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Voir le fichier

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