yyb
14 小时以前 39a59f4b31181904497ecc1db26d1f0183b81d77
字符串转换回数字进行比较,toFixed()方法返回字符串类型
已修改1个文件
4 ■■■■ 文件已修改
pages/wareHouse/nuclearScale/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/wareHouse/nuclearScale/index.vue
@@ -402,7 +402,7 @@
      this.form.forkliftWeight = this.modalList.forkliftWeight;
      switch (this.form.productType) {
        case "DT01":
          if (magnetic >= -3 && magnetic <= 3) {
          if (Number(magnetic) >= -3 && Number(magnetic) <= 3) {
            let that = this;
            uni.showModal({
              title: "提示",
@@ -416,7 +416,7 @@
          }
          break;
        case "DT02":
          if (magnetic >= -0.5 && magnetic <= 0.5) {
          if (Number(magnetic) >= -0.5 && Number(magnetic) <= 0.5) {
            // this.ScanCodeRecord.push(this.form);
            this.allSubmit();
          } else {