licp
2024-07-01 c6334d29171e1d3edf2d10a01ab2489fbdd310c8
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -1251,8 +1251,10 @@
              })
            })
            if (item.v.ps != undefined && item.v.ps.value == '结论') {
              try {
              if (this.currentSample.insProduct.find(m => m.id == item.i)) {
                let ask = this.currentSample.insProduct.find(m => m.id == item.i).ask?this.currentSample.insProduct.find(m => m.id == item.i).ask.split('&'):null;
                console.log(comValue)
                let res = Object.values(comValue)[0]
                let comp = []
                console.log(res, ask)
@@ -1303,6 +1305,10 @@
                }
                this.saveInsContext()
              }
              } catch (error) {
              }
            } else {
              let comResult = ''
              try {
@@ -1409,6 +1415,7 @@
              //     }
              //     break;
              // }
              try {
              list.forEach(a => {
                if (a[0].r == item.r && comResult !== '') {
                  for (var b in a) {
@@ -1425,10 +1432,17 @@
                }
              })
              this.changeInput(comResult, `${id}-${item.r}-${item.c}-${pId}`) //改变最终值
              } catch (error) {
              }
            }
          }
        })
        try {
        this.getCurrentInsProduct(pId)
        } catch (error) {
        }
      },
      getCurrentInsProduct(pId) {
        if (!this.tableList[0].insProductResult) {
@@ -1743,6 +1757,7 @@
        return
      },
      saveInsContext() {
        if(this.param){
        this.$axios.post(this.$api.insOrderPlan.saveInsContext, {
          param: JSON.stringify(this.param)
        }).then(res => {
@@ -1752,6 +1767,7 @@
          }
          this.$message.success('已保存')
        })
        }
      },
      changeEquip(val, n) {
        for (let i in this.equipOptions) {