Explorar el Código

fix: 修复金额不显示问题

liujt hace 3 meses
padre
commit
72992525db

+ 4 - 2
src/views/saleManage/saleOrder/invoice/components/print-template-jsyp.vue

@@ -131,7 +131,7 @@
             <td style="padding: 5px"> {{ item.measureQuantity }}</td>
 
             <td style="padding: 5px"> {{ item.singlePrice }}</td>
-            <td style="padding: 5px">{{ item.totalPrice }} </td>
+            <td style="padding: 5px">{{ item.totalMoney || item.totalPrice }} </td>
             <td style="padding: 5px"> {{ item.guaranteePeriodText }}</td>
             <td style="padding: 5px">{{ item.remark }} </td>
           </tr>
@@ -140,7 +140,7 @@
             <td style="padding: 5px" colspan="7"> 合计 </td>
             <td style="padding: 5px"> {{ getTotal('measureQuantity') }}</td>
             <td style="padding: 5px"> {{ getTotal('singlePrice') }}</td>
-            <td style="padding: 5px"> {{ getTotal('totalPrice') }} </td>
+            <td style="padding: 5px"> {{ getTotal('totalMoney') || getTotal('totalPrice') }} </td>
             <td style="padding: 5px"></td>
             <td style="padding: 5px"> </td>
           </tr>
@@ -245,6 +245,8 @@
             }
           });
         });
+
+        console.log('outBound~~~', this.outBound);
       },
       getTotal(key) {
         let val = 0;