Browse Source

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

jingbb 4 weeks ago
parent
commit
c61b45eefc

+ 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);
           }