ysy 1 rok temu
rodzic
commit
b9be2c4f62

+ 4 - 1
src/views/material/BOMmanage/components/workingProcedure.vue

@@ -1390,11 +1390,14 @@
               max = new Array(4 - max.length).fill('0').join('') + max;
               max = new Array(4 - max.length).fill('0').join('') + max;
             }
             }
           }
           }
+       
+
+          console.log('item', this.isValueANumber(item.specification))
 
 
             
             
           if(item.categoryLevelPathIdParent == 8 && this.isValueANumber(this.baseCount) && this.isValueANumber(item.specification)  ) {
           if(item.categoryLevelPathIdParent == 8 && this.isValueANumber(this.baseCount) && this.isValueANumber(item.specification)  ) {
              let num = this.baseCount / item.specification;
              let num = this.baseCount / item.specification;
-             item.count = num.toFixed(3)
+             item.count = num == 'Infinity' ? '' :  num.toFixed(3)
           } 
           }