licp
2024-07-12 5d748fca0e3808a87a7707706bd948113d90152d
完成三级检验项
已修改3个文件
20 ■■■■■ 文件已修改
src/components/do/b1-inspect-order-plan/Inspection.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/worker.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -1478,8 +1478,7 @@
                      str += c.v.v
                      count4 += 1
                    }
                  }else if (c.v.ps != undefined && c.v.ps.value === '检验子子项') {
                    console.log('检验子子项',c)
                  }else if (c.v.ps != undefined && c.v.ps.value === '检验子子项'&&this.PROJECT=='装备电缆') {
                    if (count4 === 2) {
                      str += c.v.v
                      count4 += 1
@@ -1490,14 +1489,8 @@
              if (str != '') {
                let count2 = 0
                for (let i in this.currentSample.insProduct) {
                  console.log(this.currentSample
                  .insProduct[i].inspectionItem,'---',this.currentSample
                  .insProduct[i].inspectionItemSubclass,'---',this.currentSample.insProduct[i].inspectionItemClass,'===',str,this.currentSample
                  .insProduct[i])
                  if (this.currentSample.insProduct[i].templateId === a.templateId && this.currentSample
                    .insProduct[i].inspectionItem +
                    (this.currentSample.insProduct[i].inspectionItemSubclass == null ? '' : this.currentSample
                      .insProduct[i].inspectionItemSubclass+this.currentSample.insProduct[i].inspectionItemClass==null?'':this.currentSample.insProduct[i].inspectionItemClass) ===
                  .insProduct[i].inspectionItem +(this.currentSample.insProduct[i].inspectionItemSubclass == null ? '' : this.currentSample.insProduct[i].inspectionItemSubclass)+(this.currentSample.insProduct[i].inspectionItemClass==null||this.PROJECT!='装备电缆'?'':this.currentSample.insProduct[i].inspectionItemClass) ===
                    str) {
                    ids.push({
                      r: b.r,
src/main.js
@@ -32,7 +32,8 @@
//装备电缆测试库
Vue.prototype.LOCATIONVUE = "http://10.16.173.59";
const javaApi = 'http://10.16.173.59:8001';
// const javaApi = 'http://10.16.173.59:8001';
const javaApi = 'http://192.168.47.2:8001';
Vue.prototype.HaveJson = (val) => {
    return JSON.parse(JSON.stringify(val))
static/js/worker.js
@@ -272,7 +272,7 @@
        try {
          if(getInspectionValueType(item.i)==1){
            let tell = currentSample.insProduct.find(m => m.id == item.i).tell?currentSample.insProduct.find(m => m.id == item.i).tell.split('&'):null;
            isPoint = tell[0].includes('/') // 判断要求值是否为分数
            isPoint = this.PROJECT=='装备电缆'&&tell&&tell.length>0&&typeof tell[0] =='string'&&tell[0].includes('/') // 判断要求值是否为分数
            comResult = compute(item.v.f.replace(/=/g, ' '),comValue, isPoint)
            let list3 = list2.map(item=>item+'')
            isToExponential = list3.some(val => val.includes('e+'))
@@ -608,8 +608,6 @@
  }
}
/**
 * 根据坐标获取列名
 * @param {Object} cellId
@@ -818,9 +816,9 @@
    if(str.includes(',,')){
      str = str.replace(new RegExp(',,', 'g'),'')
    }
    // console.log('str', str)
    if(str.includes('&"/"&')){
      return str.replace(new RegExp('&"/"&', 'g'),'/').replace(new RegExp('//', 'g'),'')
      return str.replaceAll('&"/"&', '/').replaceAll('//','')
    } else if (isPoint) {
      return str.replace('ABS', '').replace(/\(|\)/g, '')
    }else {