gaoluyang
2024-07-04 5f4156362b6e9d8998d984f0df75499f0a99beca
表格输入框分数计算
已修改1个文件
6 ■■■■ 文件已修改
src/components/do/b1-inspect-order-plan/Inspection.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -1678,7 +1678,7 @@
                      }
                      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)
@@ -1999,11 +1999,11 @@
        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) {