yq1 1 år sedan
förälder
incheckning
d9694e5e33
1 ändrade filer med 4 tillägg och 2 borttagningar
  1. 4 2
      src/xt_pages/Pharmacy/print/patientPrintTwo.vue

+ 4 - 2
src/xt_pages/Pharmacy/print/patientPrintTwo.vue Visa fil

@@ -161,9 +161,11 @@ export default {
161 161
       }
162 162
       var Price_zong2 =0
163 163
       for(let i in this.tableData){
164
-        
164
+        console.log();
165
+        const str = this.tableData[i].Total
166
+        const num = str.replace(/[^\d]/g,"")
165 167
         if(this.tableData[i].Price !=''){
166
-          Price_zong2 = Price_zong2 + this.tableData[i].Price
168
+          Price_zong2 = Price_zong2 + (this.tableData[i].Price * num)
167 169
         }
168 170
       }
169 171
       this.Price_zong = Price_zong2