陈少旭 10 months ago
parent
commit
8d6c68c1fe
1 changed files with 23 additions and 5 deletions
  1. 23 5
      src/xt_pages/outpatientCharges/summary.vue

+ 23 - 5
src/xt_pages/outpatientCharges/summary.vue View File

@@ -646,9 +646,9 @@
646 646
     </el-dialog>
647 647
 
648 648
     <el-dialog title="修改发票号码" :visible.sync="dialogfapiaoVisible">
649
-      <el-input v-model="fapiao_code" type="text"></el-input>
649
+      <el-input v-model="fapiao_number" type="text"></el-input>
650 650
       <div slot="footer" class="dialog-footer">
651
-        <el-button @click="dialogfapiaoVisible = false">取 消</el-button>
651
+        <el-button @click="camcleModifyFaPiaoCode">取 消</el-button>
652 652
         <el-button type="primary" @click="modifyFaPiaoCode">确 定</el-button>
653 653
       </div>
654 654
     </el-dialog>
@@ -711,7 +711,7 @@ export default {
711 711
       admins:[],
712 712
       orderObj: {},
713 713
       batchOrderObj: {},
714
-      fapiao_code:"",
714
+      fapiao_number:"",
715 715
       med_options: [
716 716
         { id: 0, text: '全部' },
717 717
         { id: 11, text: '普通门诊' },
@@ -4015,10 +4015,27 @@ export default {
4015 4015
         }
4016 4016
       }
4017 4017
       return res
4018
+    },camcleModifyFaPiaoCode(){
4019
+      this.dialogfapiaoVisible = false
4020
+      this.invoiceVisible = true
4021
+      var obj = this.targeObj
4022
+      let paramsObj = {
4023
+        order_id: obj.id,
4024
+        patient_id: obj.patient_id,
4025
+        number: obj.mdtrt_id,
4026
+        name: obj.patient.name,
4027
+        age: obj.age,
4028
+        gend: obj.patient.gender,
4029
+        setl_time: obj.setl_time,
4030
+        chargeName: this.getName(obj.creator)
4031
+      }
4032
+      this.dialogfapiaoVisible = false
4033
+      this.invoiceParams = paramsObj
4034
+      this.invoiceVisible = true
4018 4035
     },modifyFaPiaoCode(){
4019 4036
       let params = {
4020 4037
           id:this.targeOrderId,
4021
-          fapiao_code: this.fapiao_code
4038
+          fapiao_number: this.fapiao_number
4022 4039
       }
4023 4040
       modifyFapiaoCodetwo(params).then((response) => {
4024 4041
         if (response.data.state == 0) {
@@ -4039,6 +4056,7 @@ export default {
4039 4056
           this.dialogfapiaoVisible = false
4040 4057
           this.invoiceParams = paramsObj
4041 4058
           this.invoiceVisible = true
4059
+          this.getHisOrderList()
4042 4060
         }
4043 4061
       })
4044 4062
 
@@ -4046,7 +4064,7 @@ export default {
4046 4064
 
4047 4065
     invoicePrint(obj) {
4048 4066
       if(this.$store.getters.xt_user.org_id == 10480){
4049
-        this.fapiao_code = obj.fa_piao_code
4067
+        this.fapiao_number  = obj.fa_piao_number
4050 4068
         this.dialogfapiaoVisible = true
4051 4069
         this.targeOrderId = obj.id
4052 4070
         this.targeObj = obj