gaoluyang
2024-07-04 7dba00a80cee072bc9e193d5d2a75c1f7cf72d28
表格输入框转换为科学计数法
已修改2个文件
9 ■■■■ 文件已修改
src/components/do/b1-inspect-order-plan/Inspection.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -1991,7 +1991,11 @@
        return sum
      },
      handleInput (n) {
        n.v.v = n.v.v.replace(/[^\d.^]/g, '');
        if (n.v.v > 10000) {
          let num2 = new this.$Big(n.v.v)
          n.v.v = num2.toExponential()
        }
        n.v.v = n.v.v.replace(/[^\d.^e]/g, '');
      },
      getInspectionItemType(id) {
        for (var a in this.currentSample.insProduct) {
src/main.js
@@ -10,6 +10,9 @@
import axios from 'axios'
import api from './assets/api/controller.js'
import swal from 'sweetalert'
import Big from 'big.js'
Vue.prototype.$Big = Big;
// 项目切换
Vue.prototype.PROJECT = '检测中心'