Bläddra i källkod

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

xmg123 4 dagar sedan
förälder
incheckning
fd18dd657c
1 ändrade filer med 7 tillägg och 4 borttagningar
  1. 7 4
      src/xt_pages/outpatientTool/detailPrint.vue

+ 7 - 4
src/xt_pages/outpatientTool/detailPrint.vue Visa fil

@@ -372,13 +372,16 @@ export default {
372 372
             }
373 373
           }
374 374
           var obj = { index: "合计", total_price: 0, record_date: "0",is_total:2 };
375
+          console.log("this.tableData")
376
+
377
+          console.log( this.tableData)
378
+
375 379
           for (let i = 0; i < this.tableData.length; i++) {
376 380
             this.tableData[i].index = i + 1;
377 381
             this.tableData[i].total_price = 0;
378 382
             this.tableData[i].is_total = 1
379
-            this.tableData[i].total_price = (
380
-            this.tableData[i].cnt * this.tableData[i].pric).toFixed(2);
381
-            obj.total_price += this.tableData[i].cnt * this.tableData[i].pric;
383
+            this.tableData[i].total_price = (this.tableData[i].det_item_fee_sumamt).toFixed(2);
384
+            obj.total_price +=  this.tableData[i].det_item_fee_sumamt;
382 385
           }
383 386
           obj.total_price = obj.total_price.toFixed(2);
384 387
           this.tableData.push(obj);
@@ -646,7 +649,7 @@ export default {
646 649
     getPrice(val){
647 650
       var total_price = 0
648 651
       for(let i=0;i<val.length;i++){
649
-         total_price += val[i].cnt * val[i].pric
652
+         total_price += val[i].det_item_fee_sumamt
650 653
       }
651 654
       return total_price.toFixed(2)
652 655
     }