yq1 1 年之前
父節點
當前提交
d9694e5e33
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/xt_pages/Pharmacy/print/patientPrintTwo.vue

+ 4 - 2
src/xt_pages/Pharmacy/print/patientPrintTwo.vue 查看文件

161
       }
161
       }
162
       var Price_zong2 =0
162
       var Price_zong2 =0
163
       for(let i in this.tableData){
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
         if(this.tableData[i].Price !=''){
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
       this.Price_zong = Price_zong2
171
       this.Price_zong = Price_zong2