Bläddra i källkod

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

XMLWAN 3 år sedan
förälder
incheckning
c65cfb014f

+ 10 - 0
src/api/his/his.js Visa fil

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 Visa fil

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

+ 1 - 1
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Visa fil

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

+ 1 - 1
src/xt_pages/hospitalStation/treatTemplate/printOne.vue Visa fil

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

+ 13 - 13
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Visa fil

85
         if(this.$store.getters.xt_user.org_id == 10138){
85
         if(this.$store.getters.xt_user.org_id == 10138){
86
           setTimeout(() => {
86
           setTimeout(() => {
87
             const style =
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
             const style2 =
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
             const style3 =
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
             const style4 =
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
             const style5 =
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
             const style6 =
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
             const style7 =
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
             const style8 =
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
             const style9 =
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
             const style10 =
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
             const style11 =
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
             const style12 =
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
             if(this.num >= 13){
111
             if(this.num >= 13){
112
               printJS({
112
               printJS({
113
                 printable: "prescription-print",
113
                 printable: "prescription-print",
228
           }
228
           }
229
           getPrivateExpenses(params).then(response => {
229
           getPrivateExpenses(params).then(response => {
230
             if (response.data.state == 0) {
230
             if (response.data.state == 0) {
231
-              this.$message.error(response.data.msg)
231
+              // this.$message.error(response.data.msg)
232
 
232
 
233
               return false
233
               return false
234
             } else {
234
             } else {

+ 1 - 1
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue Visa fil

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

+ 61 - 7
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Visa fil

214
                                                     <div style="margin-bottom:10px;float: right">
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
                                                             <el-button
220
                                                             <el-button
221
                                                                     v-if="(hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0) || (hisPatientInfo.id > 0 &&  items.prescriptions[0].order.order_status == 3)"
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
                                                                     size="small"
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
                                                                     type="primary"
225
                                                                     type="primary"
226
                                                             >预结算
226
                                                             >预结算
227
                                                             </el-button>
227
                                                             </el-button>
458
 
458
 
459
                                                     </el-tab-pane>
459
                                                     </el-tab-pane>
460
                                                     <div style="margin-bottom:10px;float: right">
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
                                                             <el-button
463
                                                             <el-button
464
                                                                     v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) || (hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.order_status == 3)"
464
                                                                     v-if="(hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.id == 0) || (hisPatientInfo.id > 0 && items.curMonthPrescriptions.order.order_status == 3)"
723
     refundNumber,
723
     refundNumber,
724
     register,
724
     register,
725
     upload,
725
     upload,
726
-    changeMedType
726
+    changeMedType,
727
+    refunddetail
727
   } from '@/api/his/his'
728
   } from '@/api/his/his'
728
   import RegisterDialog from './components/registerDialog'
729
   import RegisterDialog from './components/registerDialog'
729
   import treatPrint from './treatPrint'
730
   import treatPrint from './treatPrint'
898
 
899
 
899
         temp_prescriptions:null,
900
         temp_prescriptions:null,
900
 
901
 
902
+        temp_ids:"",
903
+
901
       }
904
       }
902
     },
905
     },
903
     created() {
906
     created() {
1031
         form['p_type'] = this.current_med_type
1034
         form['p_type'] = this.current_med_type
1032
         form['diagnosis'] = this.form.diagnosis.join(",")
1035
         form['diagnosis'] = this.form.diagnosis.join(",")
1033
         form['sick_type'] = this.form.sick_type
1036
         form['sick_type'] = this.form.sick_type
1034
-
1037
+        form['ids'] = this.temp_ids
1035
         if (this.activeName == 'first') {
1038
         if (this.activeName == 'first') {
1036
           form['settle_accounts_type'] = 1
1039
           form['settle_accounts_type'] = 1
1037
 
1040
 
1066
 
1069
 
1067
           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) {
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
             var that = this
1071
             var that = this
1072
+
1069
             axios.get('http://127.0.0.1:9532/sz/api/settle/get', {
1073
             axios.get('http://127.0.0.1:9532/sz/api/settle/get', {
1070
               params: form
1074
               params: form
1071
             })
1075
             })
3383
             this.cal_three = three_count
3387
             this.cal_three = three_count
3384
 
3388
 
3385
             this.current_index = 0
3389
             this.current_index = 0
3390
+            let ids = []
3391
+            let temp_order_id = 0
3386
             for (let i = 0; i < this.patientTableData.length; i++) {
3392
             for (let i = 0; i < this.patientTableData.length; i++) {
3393
+              // console.log(this.patientTableData[i])
3394
+
3387
               if (this.hisPatientInfo.id == this.patientTableData[i].his_patient_id) {
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
                 this.$refs.tab.setCurrentRow(this.patientTableData[i])
3406
                 this.$refs.tab.setCurrentRow(this.patientTableData[i])
3389
                 this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number, this.patientTableData[i].his_patient.id, this.patientTableData[i].order.id)
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
             this.currentOrder = order
4537
             this.currentOrder = order
4520
             this.current_med_type = med_type
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
             if (this.activeName == 'first') {
4547
             if (this.activeName == 'first') {
4523
 
4548
 
4524
               this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
4549
               this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
4604
             })
4629
             })
4605
               .then(function(response) {
4630
               .then(function(response) {
4606
                 if (response.data.state == 0) {
4631
                 if (response.data.state == 0) {
4607
-                  that.$message.error(response.data.msg)
4632
+                  // that.$message.error(response.data.msg)
4608
                   return false
4633
                   return false
4609
                 } else {
4634
                 } else {
4610
                   if (response.data.data.failed_code == -10) {
4635
                   if (response.data.data.failed_code == -10) {
4625
               })
4650
               })
4626
             break
4651
             break
4627
           case 7:
4652
           case 7:
4653
+              if (this.hisPatientInfo.balance_accounts_type != 2) {
4628
             var that = this
4654
             var that = this
4629
             axios.get('http://127.0.0.1:9532/sz/api/detail/cancel', {
4655
             axios.get('http://127.0.0.1:9532/sz/api/detail/cancel', {
4630
               params: {
4656
               params: {
4658
               })
4684
               })
4659
               .catch(function(error) {
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
             break
4708
             break
4663
           case 8:
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
             if (this.hisPatientInfo.balance_accounts_type == 2) {
4716
             if (this.hisPatientInfo.balance_accounts_type == 2) {
4665
 
4717
 
4666
               this.$confirm('是否进行预结算', '预结算', {
4718
               this.$confirm('是否进行预结算', '预结算', {
4674
                 form['record_time'] = this.record_date
4726
                 form['record_time'] = this.record_date
4675
                 form['admin_user_id'] = this.$store.getters.xt_user.user.id
4727
                 form['admin_user_id'] = this.$store.getters.xt_user.user.id
4676
                 form['org_id'] = this.$store.getters.xt_user.org_id
4728
                 form['org_id'] = this.$store.getters.xt_user.org_id
4677
-
4729
+                form['ids'] = ids_str
4678
                 form['p_type'] = med_type
4730
                 form['p_type'] = med_type
4679
                 form['diagnosis'] = this.form.diagnosis.join(",")
4731
                 form['diagnosis'] = this.form.diagnosis.join(",")
4680
                 form['sick_type'] = this.form.sick_type
4732
                 form['sick_type'] = this.form.sick_type
4701
               })
4753
               })
4702
 
4754
 
4703
             } else {
4755
             } else {
4756
+
4757
+
4704
               var that = this
4758
               var that = this
4705
               let form = {}
4759
               let form = {}
4706
               form['id'] = this.patientInfo.id
4760
               form['id'] = this.patientInfo.id