See999 4 years ago
parent
commit
5a972f131e
1 changed files with 10 additions and 9 deletions
  1. 10 9
      src/xt_pages/outpatientDoctorStation/template/printOne.vue

+ 10 - 9
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

2
   <div id='prescriptionPrint'>
2
   <div id='prescriptionPrint'>
3
     <div v-for="(item,index) in advicePrint" :key="index">
3
     <div v-for="(item,index) in advicePrint" :key="index">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
-          <div class="printTitle">{{orgname}} &nbsp;&nbsp; 血液透析中心处方笺</div>
5
+          <div class="printTitle">血液透析中心处方笺</div>
6
           <div class="infoTitle">
6
           <div class="infoTitle">
7
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
7
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
8
               <p>性别:
8
               <p>性别:
69
         prescriptionInfo:[],
69
         prescriptionInfo:[],
70
         hisPatient:{},
70
         hisPatient:{},
71
         department:[],
71
         department:[],
72
-        prescriptions:[],
73
-        orgname:""
72
+        prescriptions:[]
73
+
74
       }
74
       }
75
     },
75
     },
76
    methods:{
76
    methods:{
150
        return name
150
        return name
151
      },
151
      },
152
      getTotalOne(id) {
152
      getTotalOne(id) {
153
+        console.log("处方数据",this.prescriptions)
153
         var total = 0
154
         var total = 0
154
         var addtotal = 0
155
         var addtotal = 0
155
         for (let i = 0; i < this.prescriptions.length; i++) {
156
         for (let i = 0; i < this.prescriptions.length; i++) {
161
             }
162
             }
162
           
163
           
163
             if (this.prescriptions[i].additionalcharge != null) {
164
             if (this.prescriptions[i].additionalcharge != null) {
164
-              for (let b = 0; b < this.prescriptions[i].additionalcharge.length; b++) {
165
-                addtotal = addtotal + this.prescriptions[i].additionalcharge[b].price * this.prescriptions[i].additionalcharge[b].count
165
+              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
166
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
166
               }
167
               }
167
             }
168
             }
168
               addtotal =  Math.floor(addtotal * 100) / 100
169
               addtotal =  Math.floor(addtotal * 100) / 100
169
         }
170
         }
171
+        
172
+        return total + addtotal
170
        }
173
        }
171
-       return total + addtotal
172
       }, 
174
       }, 
173
 
175
 
174
 
176
 
178
       this.getInitData()
180
       this.getInitData()
179
       this.getPrescriptionPrint()
181
       this.getPrescriptionPrint()
180
       this.getHisPatientDetail()
182
       this.getHisPatientDetail()
181
-      var xtuser = this.$store.getters.xt_user
182
-      this.orgname = xtuser.org.org_name
183
+
183
      
184
      
184
    },
185
    },
185
    watch:{
186
    watch:{
186
-    ids:function(val){
187
+     ids:function(val){
187
       this.ids = val
188
       this.ids = val
188
       this.getPrescriptionPrint()
189
       this.getPrescriptionPrint()
189
     }
190
     }