浏览代码

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

28169 1年前
父节点
当前提交
e8bb04e5e5
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/xt_pages/Pharmacy/print/patientPrintTwo.vue

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

@@ -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