Преглед на файлове

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

csx преди 3 години
родител
ревизия
7e12d0c507
променени са 1 файла, в които са добавени 81 реда и са изтрити 84 реда
  1. 81 84
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue

+ 81 - 84
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Целия файл

638
                 title="提示"
638
                 title="提示"
639
                 :visible.sync="dialogVisible"
639
                 :visible.sync="dialogVisible"
640
                 width="30%"
640
                 width="30%"
641
-                >
641
+        >
642
             <span>是否修改医疗类型</span>
642
             <span>是否修改医疗类型</span>
643
 
643
 
644
-            <el-select style="width:50%;" v-model="temp_med_type" placeholder="医疗类型"  v-if="($store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10138)" @change="changevalue" >
644
+            <el-select style="width:50%;" v-model="temp_med_type" placeholder="医疗类型"
645
+                       v-if="($store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10138)"
646
+                       @change="changevalue">
645
                 <el-option
647
                 <el-option
646
                         v-for="(item,index) in medical_care"
648
                         v-for="(item,index) in medical_care"
647
                         :key="index"
649
                         :key="index"
649
                         :value="item.value">
651
                         :value="item.value">
650
                 </el-option>
652
                 </el-option>
651
             </el-select>
653
             </el-select>
652
-            <el-select style="width:50%;" v-model="temp_med_type" placeholder="医疗类型"  v-else @change="changevalue" >
654
+            <el-select style="width:50%;" v-model="temp_med_type" placeholder="医疗类型" v-else @change="changevalue">
653
                 <el-option
655
                 <el-option
654
                         v-for="(item,index) in register"
656
                         v-for="(item,index) in register"
655
                         :key="index"
657
                         :key="index"
713
   import additionalCharges from './components/additionalCharges'
715
   import additionalCharges from './components/additionalCharges'
714
   import { getPatientInformation, getPatientList } from '@/api/project/project'
716
   import { getPatientInformation, getPatientList } from '@/api/project/project'
715
   import {
717
   import {
718
+    changeMedType,
716
     getChargeHisPatientInfo,
719
     getChargeHisPatientInfo,
717
     getChargeHisPatientList,
720
     getChargeHisPatientList,
718
     getDayOrMonthHisPrescription,
721
     getDayOrMonthHisPrescription,
720
     getSchedulePatientList,
723
     getSchedulePatientList,
721
     preSettle,
724
     preSettle,
722
     Refund,
725
     Refund,
726
+    refunddetail,
723
     refundNumber,
727
     refundNumber,
724
     register,
728
     register,
725
-    upload,
726
-    changeMedType,
727
-    refunddetail
729
+    upload
728
   } from '@/api/his/his'
730
   } from '@/api/his/his'
729
   import RegisterDialog from './components/registerDialog'
731
   import RegisterDialog from './components/registerDialog'
730
   import treatPrint from './treatPrint'
732
   import treatPrint from './treatPrint'
756
     },
758
     },
757
     data() {
759
     data() {
758
       return {
760
       return {
759
-        temp_med_type:"",
760
-        dialogVisible:false,
761
+        temp_med_type: '',
762
+        dialogVisible: false,
761
         form: {
763
         form: {
762
           p_type: '',
764
           p_type: '',
763
           sick_type: '',
765
           sick_type: '',
780
           { value: 18, label: '预防接种' },
782
           { value: 18, label: '预防接种' },
781
           { value: 19, label: '门诊输血' },
783
           { value: 19, label: '门诊输血' },
782
           { value: 91, label: '新冠肺炎门诊' },
784
           { value: 91, label: '新冠肺炎门诊' },
783
-          {value: 1111, label: "精一"},
784
-          {value: 1112, label: "精二"},
785
+          { value: 1111, label: '精一' },
786
+          { value: 1112, label: '精二' }
785
         ],
787
         ],
786
 
788
 
787
         medical_care_two: [
789
         medical_care_two: [
795
           { value: '18', label: '预防接种' },
797
           { value: '18', label: '预防接种' },
796
           { value: '19', label: '门诊输血' },
798
           { value: '19', label: '门诊输血' },
797
           { value: '91', label: '新冠肺炎门诊' },
799
           { value: '91', label: '新冠肺炎门诊' },
798
-          {value: '1111', label: "精一"},
799
-          {value: '1112', label: "精二"},
800
+          { value: '1111', label: '精一' },
801
+          { value: '1112', label: '精二' }
800
         ],
802
         ],
801
 
803
 
802
         register: [
804
         register: [
897
         department: [],
899
         department: [],
898
         all_patient: [],
900
         all_patient: [],
899
 
901
 
900
-        temp_prescriptions:null,
902
+        temp_prescriptions: null,
901
 
903
 
902
-        temp_ids:"",
904
+        temp_ids: ''
903
 
905
 
904
       }
906
       }
905
     },
907
     },
922
       this.getPatientList()
924
       this.getPatientList()
923
     },
925
     },
924
     methods: {
926
     methods: {
925
-      openDialog(item){
927
+      openDialog(item) {
926
         this.dialogVisible = true
928
         this.dialogVisible = true
927
         this.temp_prescriptions = item
929
         this.temp_prescriptions = item
928
       },
930
       },
929
-      comfirmChangeMedType(){
931
+      comfirmChangeMedType() {
930
         let params = {
932
         let params = {
931
           id: this.temp_prescriptions.id,
933
           id: this.temp_prescriptions.id,
932
           med_type: this.temp_med_type.toString()
934
           med_type: this.temp_med_type.toString()
936
             this.changeRadioAndPatient(1)
938
             this.changeRadioAndPatient(1)
937
             this.dialogVisible = false
939
             this.dialogVisible = false
938
 
940
 
939
-
940
           } else {
941
           } else {
941
             this.$message.error(response.data.msg)
942
             this.$message.error(response.data.msg)
942
           }
943
           }
943
         })
944
         })
944
 
945
 
945
-
946
       },
946
       },
947
       changevalue(val) {
947
       changevalue(val) {
948
         this.$forceUpdate()
948
         this.$forceUpdate()
1032
         form['org_id'] = this.$store.getters.xt_user.org_id
1032
         form['org_id'] = this.$store.getters.xt_user.org_id
1033
 
1033
 
1034
         form['p_type'] = this.current_med_type
1034
         form['p_type'] = this.current_med_type
1035
-        form['diagnosis'] = this.form.diagnosis.join(",")
1035
+        form['diagnosis'] = this.form.diagnosis.join(',')
1036
         form['sick_type'] = this.form.sick_type
1036
         form['sick_type'] = this.form.sick_type
1037
         form['ids'] = this.temp_ids
1037
         form['ids'] = this.temp_ids
1038
         if (this.activeName == 'first') {
1038
         if (this.activeName == 'first') {
2719
 
2719
 
2720
         } else if (index == 8) {
2720
         } else if (index == 8) {
2721
           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) {
2721
           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) {
2722
-            if (this.form.diagnosis.length  == 0) {
2722
+            if (this.form.diagnosis.length == 0) {
2723
               that.$message.error('诊断不能为空,请选择诊断内容')
2723
               that.$message.error('诊断不能为空,请选择诊断内容')
2724
               return
2724
               return
2725
             }
2725
             }
2738
           form['record_time'] = this.record_date
2738
           form['record_time'] = this.record_date
2739
 
2739
 
2740
           form['p_type'] = med_type
2740
           form['p_type'] = med_type
2741
-          form['diagnosis'] = this.form.diagnosis.join(",")
2741
+          form['diagnosis'] = this.form.diagnosis.join(',')
2742
           form['sick_type'] = this.form.sick_type
2742
           form['sick_type'] = this.form.sick_type
2743
 
2743
 
2744
           form['admin_user_id'] = this.$store.getters.xt_user.user.id
2744
           form['admin_user_id'] = this.$store.getters.xt_user.user.id
4265
             if (this.info.id > 0) {
4265
             if (this.info.id > 0) {
4266
               this.form.p_type = response.data.data.info.register_type
4266
               this.form.p_type = response.data.data.info.register_type
4267
               this.form.sick_type = response.data.data.info.sick_type
4267
               this.form.sick_type = response.data.data.info.sick_type
4268
-              if(response.data.data.info.diagnosis.length == 0){
4268
+              if (response.data.data.info.diagnosis.length == 0) {
4269
 
4269
 
4270
                 this.form.diagnosis = []
4270
                 this.form.diagnosis = []
4271
 
4271
 
4272
-              }else{
4272
+              } else {
4273
 
4273
 
4274
-                for(let i = 0; i < response.data.data.info.diagnosis.split(",").length; i++){
4275
-                  this.form.diagnosis.push(parseInt(response.data.data.info.diagnosis.split(",")[i]))
4274
+                for (let i = 0; i < response.data.data.info.diagnosis.split(",").length; i++) {
4275
+                  this.form.diagnosis.push(parseInt(response.data.data.info.diagnosis.split(',')[i]))
4276
 
4276
 
4277
                 }
4277
                 }
4278
 
4278
 
4279
-
4280
-
4281
               }
4279
               }
4282
               this.sick_history = this.info.sick_history
4280
               this.sick_history = this.info.sick_history
4283
               if (this.info.register_type == 0) {
4281
               if (this.info.register_type == 0) {
4290
             } else {
4288
             } else {
4291
               this.form.p_type = 14
4289
               this.form.p_type = 14
4292
               this.form.sick_type = this.sick[0].id
4290
               this.form.sick_type = this.sick[0].id
4293
-              if(response.data.data.last_info.diagnoses.length == 0){
4294
-                this.form.diagnosis=[]
4291
+              if (response.data.data.last_info.diagnoses.length == 0) {
4292
+                this.form.diagnosis = []
4295
 
4293
 
4296
-              }else{
4297
-                for(let i = 0; i < response.data.data.last_info.diagnosis.split(",").length; i++){
4298
-                  this.form.diagnosis.push(parseInt(response.data.data.last_info.diagnosis.split(",")[i]))
4294
+              } else {
4295
+                for (let i = 0; i < response.data.data.last_info.diagnosis.split(",").length; i++) {
4296
+                  this.form.diagnosis.push(parseInt(response.data.data.last_info.diagnosis.split(',')[i]))
4299
                 }
4297
                 }
4300
               }
4298
               }
4301
 
4299
 
4506
             }
4504
             }
4507
 
4505
 
4508
             params['p_type'] = med_type
4506
             params['p_type'] = med_type
4509
-            params['diagnosis'] = this.form.diagnosis.join(",")
4507
+            params['diagnosis'] = this.form.diagnosis.join(',')
4510
 
4508
 
4511
             axios.get('http://127.0.0.1:9532/sz/api/upload/get', {
4509
             axios.get('http://127.0.0.1:9532/sz/api/upload/get', {
4512
               params: params,
4510
               params: params,
4537
             this.currentOrder = order
4535
             this.currentOrder = order
4538
             this.current_med_type = med_type
4536
             this.current_med_type = med_type
4539
 
4537
 
4540
-              var ids = []
4541
-            for(let i = 0;i < prescriptions.length; i++){
4542
-                ids.push(prescriptions[i].id)
4538
+            var ids = []
4539
+            for (let i = 0; i < prescriptions.length; i++) {
4540
+              ids.push(prescriptions[i].id)
4543
             }
4541
             }
4544
-            var ids_str = ids.join(",")
4542
+            var ids_str = ids.join(',')
4545
             this.temp_ids = ids_str
4543
             this.temp_ids = ids_str
4546
 
4544
 
4547
             if (this.activeName == 'first') {
4545
             if (this.activeName == 'first') {
4650
               })
4648
               })
4651
             break
4649
             break
4652
           case 7:
4650
           case 7:
4653
-              if (this.hisPatientInfo.balance_accounts_type != 2) {
4654
-            var that = this
4655
-            axios.get('http://127.0.0.1:9532/sz/api/detail/cancel', {
4656
-              params: {
4657
-                order_id: this.order.id,
4658
-                record_time: this.record_date,
4659
-                admin_user_id: this.$store.getters.xt_user.user.id,
4660
-                patient_id: this.patientInfo.id
4651
+            if (this.hisPatientInfo.balance_accounts_type != 2) {
4652
+              var that = this
4653
+              axios.get('http://127.0.0.1:9532/sz/api/detail/cancel', {
4654
+                params: {
4655
+                  order_id: this.order.id,
4656
+                  record_time: this.record_date,
4657
+                  admin_user_id: this.$store.getters.xt_user.user.id,
4658
+                  patient_id: this.patientInfo.id
4661
 
4659
 
4662
-              }
4663
-            })
4664
-              .then(function(response) {
4665
-                if (response.data.state == 0) {
4666
-                  that.$message.error(response.data.msg)
4667
-                  return false
4668
-                } else {
4669
-                  if (response.data.data.failed_code == -10) {
4660
+                }
4661
+              })
4662
+                .then(function(response) {
4663
+                  if (response.data.state == 0) {
4664
+                    that.$message.error(response.data.msg)
4665
+                    return false
4666
+                  } else {
4667
+                    if (response.data.data.failed_code == -10) {
4670
 
4668
 
4671
-                    that.$confirm(response.data.data.msg, '医保错误信息', {
4672
-                      confirmButtonText: '确 定',
4673
-                      type: 'warning'
4674
-                    }).then(() => {
4669
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
4670
+                        confirmButtonText: '确 定',
4671
+                        type: 'warning'
4672
+                      }).then(() => {
4675
 
4673
 
4676
-                    }).catch(() => {
4677
-                    })
4674
+                      }).catch(() => {
4675
+                      })
4678
 
4676
 
4679
-                  } else {
4680
-                    that.$message({ message: '明细撤销成功', type: 'success' })
4681
-                    that.changeRadioAndPatient(1)
4677
+                    } else {
4678
+                      that.$message({ message: '明细撤销成功', type: 'success' })
4679
+                      that.changeRadioAndPatient(1)
4680
+                    }
4682
                   }
4681
                   }
4683
-                }
4684
-              })
4685
-              .catch(function(error) {
4686
-              })
4687
-              }else{
4688
-              let  params = {
4682
+                })
4683
+                .catch(function(error) {
4684
+                })
4685
+            } else {
4686
+              let params = {
4689
                 order_id: this.order.id,
4687
                 order_id: this.order.id,
4690
                 record_time: this.record_date,
4688
                 record_time: this.record_date,
4691
                 admin_user_id: this.$store.getters.xt_user.user.id,
4689
                 admin_user_id: this.$store.getters.xt_user.user.id,
4693
               }
4691
               }
4694
 
4692
 
4695
               refunddetail(params).then(response => {
4693
               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
-                })
4694
+                if (response.data.state == 0) {
4695
+                  this.$message.error(response.data.msg)
4696
+                  this.loadingtwo = false
4697
+                  return false
4698
+                } else {
4699
+                  this.changeRadioAndPatient(1)
4700
+                  this.$message({ message: '撤销明细成功', type: 'success' })
4701
+                }
4702
+              })
4705
 
4703
 
4706
-              }
4704
+            }
4707
 
4705
 
4708
             break
4706
             break
4709
           case 8:
4707
           case 8:
4710
             var ids = []
4708
             var ids = []
4711
-            for(let i = 0;i < prescriptions.length; i++){
4712
-                ids.push(prescriptions[i].id)
4709
+            for (let i = 0; i < prescriptions.length; i++) {
4710
+              ids.push(prescriptions[i].id)
4713
             }
4711
             }
4714
-            var ids_str = ids.join(",")
4712
+            var ids_str = ids.join(',')
4715
 
4713
 
4716
             if (this.hisPatientInfo.balance_accounts_type == 2) {
4714
             if (this.hisPatientInfo.balance_accounts_type == 2) {
4717
 
4715
 
4728
                 form['org_id'] = this.$store.getters.xt_user.org_id
4726
                 form['org_id'] = this.$store.getters.xt_user.org_id
4729
                 form['ids'] = ids_str
4727
                 form['ids'] = ids_str
4730
                 form['p_type'] = med_type
4728
                 form['p_type'] = med_type
4731
-                form['diagnosis'] = this.form.diagnosis.join(",")
4729
+                form['diagnosis'] = this.form.diagnosis.join(',')
4732
                 form['sick_type'] = this.form.sick_type
4730
                 form['sick_type'] = this.form.sick_type
4733
 
4731
 
4734
                 if (this.activeName == 'first') {
4732
                 if (this.activeName == 'first') {
4754
 
4752
 
4755
             } else {
4753
             } else {
4756
 
4754
 
4757
-
4758
               var that = this
4755
               var that = this
4759
               let form = {}
4756
               let form = {}
4760
               form['id'] = this.patientInfo.id
4757
               form['id'] = this.patientInfo.id
4764
               form['org_id'] = this.$store.getters.xt_user.org_id
4761
               form['org_id'] = this.$store.getters.xt_user.org_id
4765
 
4762
 
4766
               form['p_type'] = med_type
4763
               form['p_type'] = med_type
4767
-              form['diagnosis'] = this.form.diagnosis.join(",")
4764
+              form['diagnosis'] = this.form.diagnosis.join(',')
4768
               form['sick_type'] = this.form.sick_type
4765
               form['sick_type'] = this.form.sick_type
4769
 
4766
 
4770
               if (this.activeName == 'first') {
4767
               if (this.activeName == 'first') {