瀏覽代碼

发货通知单-子表计算问题

jingbb 1 月之前
父節點
當前提交
c61b45eefc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/saleCode/deliveryNotice/components/deliveryNoticeForm.vue

+ 2 - 2
src/views/saleCode/deliveryNotice/components/deliveryNoticeForm.vue

@@ -712,13 +712,13 @@
       }
       function changeValues(prop) {
         if (prop.col.key == 'quantity') {
-          if (prop.row.quantity) {
+          if (prop.row.quantity==0||prop.row.quantity) {
             var num = prop.row.quantity * Number(prop.row.taxPrice);
             prop.row.money = isNaN(num) ? '' : num.toFixed(2);
           }
         }
         if (prop.col.key == 'taxPrice') {
-          if (prop.row.taxPrice) {
+          if (prop.row.taxPrice==0||prop.row.taxPrice) {
             var num = prop.row.quantity * Number(prop.row.taxPrice);
             prop.row.money = isNaN(num) ? '' : num.toFixed(2);
           }