Browse Source

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

see999 3 years ago
parent
commit
7ade09fd63

+ 17 - 13
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

294
 
294
 
295
                                                 <span>个人账户金额:<span style="color:red;">{{ items.curPrescriptions.order.account_price?items.curPrescriptions.order.account_price:''}}元</span></span>
295
                                                 <span>个人账户金额:<span style="color:red;">{{ items.curPrescriptions.order.account_price?items.curPrescriptions.order.account_price:''}}元</span></span>
296
 
296
 
297
-
298
                                                 <span v-if="items.curPrescriptions.order_status  == 1">待结算</span>
297
                                                 <span v-if="items.curPrescriptions.order_status  == 1">待结算</span>
299
                                                 <span v-if="items.curPrescriptions.order_status  == 2">已结算</span>
298
                                                 <span v-if="items.curPrescriptions.order_status  == 2">已结算</span>
300
                                                 <span v-if="items.curPrescriptions.order_status  == 3">已退费</span>
299
                                                 <span v-if="items.curPrescriptions.order_status  == 3">已退费</span>
302
                                         </div>
301
                                         </div>
303
                                     </div>
302
                                     </div>
304
 
303
 
305
-
306
                                 </div>
304
                                 </div>
307
                                 <div class="centerRight">
305
                                 <div class="centerRight">
308
                                     <p class="centerRightTitle" style="padding-top: 10px;"
306
                                     <p class="centerRightTitle" style="padding-top: 10px;"
621
                                         <!--<li style="width:100%;" v-if="activeName == 'second'">总费用:{{ getTotalTwo() }}-->
619
                                         <!--<li style="width:100%;" v-if="activeName == 'second'">总费用:{{ getTotalTwo() }}-->
622
                                         <!--</li>-->
620
                                         <!--</li>-->
623
 
621
 
624
-                                        <li style="width:100%;">判断结果:{{info.diagnosis}}</li>
622
+                                        <li style="width:100%;">判断结果:{{GetDiagnosisName(info.diagnosis)}}</li>
625
                                         <!--<li style="width:100%;">是否有传染病:</li>-->
623
                                         <!--<li style="width:100%;">是否有传染病:</li>-->
626
                                         <!--<li style="width:100%;">血压:</li>-->
624
                                         <!--<li style="width:100%;">血压:</li>-->
627
                                     </ul>
625
                                     </ul>
947
       changevalue(val) {
945
       changevalue(val) {
948
         this.$forceUpdate()
946
         this.$forceUpdate()
949
 
947
 
948
+      },  GetDiagnosisName(ids){
949
+
950
+
951
+
952
+
950
       },
953
       },
951
       query() {
954
       query() {
952
         if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
955
         if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
3703
                       }
3706
                       }
3704
                       this.all_table_data.push(obj)
3707
                       this.all_table_data.push(obj)
3705
 
3708
 
3709
+                      if(obj.name == "刘伟琼"){
3710
+                        console.log(obj)
3711
+
3712
+                      }
3713
+
3706
                     }
3714
                     }
3707
                   } else {
3715
                   } else {
3708
                     let obj = {
3716
                     let obj = {
3729
                         id: response.data.data.list[i].id,
3737
                         id: response.data.data.list[i].id,
3730
                         name: response.data.data.list[i].name,
3738
                         name: response.data.data.list[i].name,
3731
                         number: response.data.data.list[i].his_patient[b].number,
3739
                         number: response.data.data.list[i].his_patient[b].number,
3732
-                        order_status: 1,
3740
+                        order_status: 0,
3733
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
3741
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
3734
                         order_number: '',
3742
                         order_number: '',
3735
                         order_id: 0,
3743
                         order_id: 0,
3764
                 this.hisPatientDatas.push(this.all_table_data[i])
3772
                 this.hisPatientDatas.push(this.all_table_data[i])
3765
               }
3773
               }
3766
             }
3774
             }
3775
+
3767
             let unChargePatient = []
3776
             let unChargePatient = []
3768
             for (let i = 0; i < this.all_table_data.length; i++) {
3777
             for (let i = 0; i < this.all_table_data.length; i++) {
3769
               let isHasUnCharge = false
3778
               let isHasUnCharge = false
3807
             if (this.radio == 1) {
3816
             if (this.radio == 1) {
3808
               this.all_table_data = this.unique_four(this.all_table_data)
3817
               this.all_table_data = this.unique_four(this.all_table_data)
3809
             }
3818
             }
3810
-            console.log("~~~~~~~~~~")
3811
-
3812
-            console.log(this.all_table_data)
3813
 
3819
 
3814
             switch (this.radio) {
3820
             switch (this.radio) {
3815
               case 1:
3821
               case 1:
3816
-                console.log(this.all_table_data)
3817
                 this.patientTableData = []
3822
                 this.patientTableData = []
3818
                 for (let i = 0; i < this.all_table_data.length; i++) {
3823
                 for (let i = 0; i < this.all_table_data.length; i++) {
3819
                   let isHasUnCharge = false
3824
                   let isHasUnCharge = false
3837
                   if (isHasUnCharge) {
3842
                   if (isHasUnCharge) {
3838
                     this.patientTableData.push(this.all_table_data[i])
3843
                     this.patientTableData.push(this.all_table_data[i])
3839
                   }
3844
                   }
3840
-
3841
                 }
3845
                 }
3842
-
3843
                 this.all_patient = this.patientTableData
3846
                 this.all_patient = this.patientTableData
3844
-
3845
                 break
3847
                 break
3848
+
3846
               case 2:
3849
               case 2:
3847
                 this.patientTableData = []
3850
                 this.patientTableData = []
3848
                 for (let i = 0; i < this.all_table_data.length; i++) {
3851
                 for (let i = 0; i < this.all_table_data.length; i++) {
4673
               var that = this
4676
               var that = this
4674
               axios.get('http://127.0.0.1:9532/sz/api/detail/cancel', {
4677
               axios.get('http://127.0.0.1:9532/sz/api/detail/cancel', {
4675
                 params: {
4678
                 params: {
4676
-                  order_id: this.order.id,
4679
+                  order_id: order.id,
4677
                   record_time: this.record_date,
4680
                   record_time: this.record_date,
4678
                   admin_user_id: this.$store.getters.xt_user.user.id,
4681
                   admin_user_id: this.$store.getters.xt_user.user.id,
4679
-                  patient_id: this.patientInfo.id
4682
+                  patient_id: this.patientInfo.id,
4683
+                  his_patient_id:this.hisPatientInfo.id,
4680
 
4684
 
4681
                 }
4685
                 }
4682
               })
4686
               })

+ 10 - 0
src/xt_pages/outpatientCharges/summary.vue View File

89
                         <div>{{getMedType(scope.row.med_type)}}</div>
89
                         <div>{{getMedType(scope.row.med_type)}}</div>
90
                     </template>
90
                     </template>
91
                 </el-table-column>
91
                 </el-table-column>
92
+
93
+                <el-table-column align="center" width="90" prop="name" label="收费类型">
94
+                    <template slot-scope="scope">
95
+                        <div v-if="scope.row.his_patient.balance_accounts_type != 2">医保</div>
96
+                        <div v-if="scope.row.his_patient.balance_accounts_type == 2">自费</div>
97
+                    </template>
98
+                </el-table-column>
99
+
100
+
101
+
92
                 <el-table-column align="center" width="100" prop="name" label="收费日期">
102
                 <el-table-column align="center" width="100" prop="name" label="收费日期">
93
                     <template slot-scope="scope">
103
                     <template slot-scope="scope">
94
                         {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
104
                         {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}

+ 13 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

1910
           this.showTwo = true
1910
           this.showTwo = true
1911
         }
1911
         }
1912
 
1912
 
1913
-        this.state2 = info.sick_history
1914
-        if (this.state2 == 0) {
1915
-          this.state2 = ''
1916
-        }
1913
+
1917
 
1914
 
1918
         if (info.prescription_status == 0) {
1915
         if (info.prescription_status == 0) {
1919
           this.order_status = ''
1916
           this.order_status = ''
1991
 
1988
 
1992
                 }
1989
                 }
1993
               }
1990
               }
1991
+
1992
+              if(last_info.sick_history == 0){
1993
+                this.state2 = ''
1994
+              }else{
1995
+                this.state2 = last_info.sick_history
1996
+              }
1997
+
1998
+
1994
             }else{
1999
             }else{
2000
+              this.state2 = info.sick_history
2001
+              if (this.state2 == 0) {
2002
+                this.state2 = ''
2003
+              }
1995
               if(info.diagnosis.length == 0){
2004
               if(info.diagnosis.length == 0){
1996
                 this.diagnose = []
2005
                 this.diagnose = []
1997
               }else{
2006
               }else{