licp
2024-06-12 c26e25fc5307d23fddcda5f6692ec62acbecc8f3
src/components/do/b1-ins-order/add.vue
@@ -1134,6 +1134,7 @@
      addStandardTree() {
        if (this.selectTree == null) return
        this.sampleList = []
        this.productList = []
        for (var i = 0; i < this.addObj.sampleNum; i++) {
          this.sample.joinName = null
          this.sample.joinModel = null
@@ -1216,8 +1217,13 @@
            this.computationalPairing(this.sampleList.length)
            this.bsm2Val2 = this.HaveJson(this.bsm2Val3)
          }
        } else if (row.bsm === '1' && row.inspectionItem === '熔接损耗' && row.state === 1) {
        } else if (row.bsm === '1' && row.inspectionItem === '熔接损耗' && row.state === 1 && this.sampleList.length > 1) {
          this.bsm2 = false
        } else if(row.bsm === '1' && row.inspectionItem === '熔接损耗' && this.sampleList.length < 2){
          this.$message.error('样品数量不足够进行配对操作')
          row.state = row.state == 1 ? 0 : 1
          this.$refs.productTable.toggleRowSelection(row, false)
          return
        }
        if (row.ask.includes('RTS')&&row.state === 1) {
          this.bsmRow3 = null;
@@ -1471,8 +1477,12 @@
              this.computationalPairing(this.sampleList.length)
              this.bsm2Val2 = this.HaveJson(this.bsm2Val3)
            }
          } else if (p.bsm === '1' && p.inspectionItem === '熔接损耗' && p.state === 1) {
          } else if (p.bsm === '1' && p.inspectionItem === '熔接损耗' && p.state === 1 && this.sampleList.length > 1) {
            this.bsm2 = false
          } else if(p.bsm === '1' && p.inspectionItem === '熔接损耗' && this.sampleList.length < 2){
            this.$message.error('样品数量不足够进行配对操作')
            this.$refs.productTable.clearSelection()
            return
          }
          if (p.ask.includes('RTS')&&p.state === 1) {
            p.rts = ''