| | |
| | | } |
| | | if(this.getInspectionValueType(item.i)==1){ |
| | | if (!isNaN(parseFloat(c.v.v))) { |
| | | if(c.v.v.includes('^')){ |
| | | if(c.v.v.includes('^') || c.v.v.includes('/')){ |
| | | comValue[(tableCode + (c.r + 1))] = c.v.v |
| | | }else{ |
| | | comValue[(tableCode + (c.r + 1))] = parseFloat(c.v.v) |
| | |
| | | return sum |
| | | }, |
| | | handleInput (n) { |
| | | if (n.v.v > 10000) { |
| | | if (n.v.v > 10000 && this.PROJECT === '装备电缆') { |
| | | let num2 = new this.$Big(n.v.v) |
| | | n.v.v = num2.toExponential() |
| | | } |
| | | n.v.v = n.v.v.replace(/[^\d.^e]/g, ''); |
| | | n.v.v = n.v.v.replace(/[^\d.^e/]/g, ''); |
| | | }, |
| | | getInspectionItemType(id) { |
| | | for (var a in this.currentSample.insProduct) { |