licp
2024-08-09 a6c14c75e5a5f677c2a3571cad426d50cb106e3d
src/components/do/b1-ins-order/fiberoptic-config.vue
@@ -476,7 +476,7 @@
              this.fiberList.push(b)
            })
            }
          }else{
            a.fiber.forEach(b=>{
              this.fiberList.push(b)
@@ -484,7 +484,7 @@
          }
        })
      }
      this.getTypeDicts1()
      this.getStandTreeBySampleType()
      this.getStandTreeBySampleType2()
@@ -577,7 +577,7 @@
        this.fiberList = []
        this.fibersList = []
        this.detectionItems = []
        // 页面是否含有光纤带
        if(this.packageInfo.ismiers) {
          // 全检
@@ -621,8 +621,8 @@
          }
        }
      },
      upNum() {
        this.fiberList = []
@@ -683,7 +683,7 @@
                }
                a.fibers.push(fibers)
                this.fibersList.push(fibers)
              }
              }
        })
      } else {
          this.bushing = []
@@ -757,7 +757,7 @@
        //     this.addFiber()
        //   }, 200)
        // })
          // 将下拉框值赋值给光纤  监听去除
          if(this.multiFiberList.length == 0) {
            this.$message.error('请选择数据')
@@ -794,7 +794,7 @@
          this.detectionType = 0
           this.$set(this.detectionItems,'type',0)
          }
        })
      },
      methodChange2(val) {
@@ -892,7 +892,7 @@
                fibersIdent: a.ident,
                productList: []
              }
              this.fiberList.push(fiber)
              this.fiberList.push(fiber)
            }
          })
        } else {
@@ -912,7 +912,7 @@
          })
        }
      }else {
        this.fiberList = []
        this.fiberList = []
        let flag = true
        // 按照顺序生成光纤色标
        let colors2 = []
@@ -954,7 +954,7 @@
        //   this.$message.error('未选择套管')
        //   return
        // }
        // this.fiberList = []
        // this.fiberList = []
        // let flag = true
        // // 按照顺序生成光纤色标
        // let colors2 = []
@@ -1158,16 +1158,16 @@
            this.detectionType = 1
            this.$set(this.detectionItems,'type',1)
            if (row.productList != null && row.productList.length > 0) {
            if (row.productList != null && row.productList.length > 0) {
              setTimeout(() => {
                row.productList.forEach(product => {
                let rowToSelect = this.detectionItems.find(item => item.id === product.id);
                if (rowToSelect) {
                  this.toggleSelection(rowToSelect);
                }
              });
                row.productList.forEach(product => {
                let rowToSelect = this.detectionItems.find(item => item.id === product.id);
                if (rowToSelect) {
                  this.toggleSelection(rowToSelect);
                }
              });
              },200)
            }
          }
        })
@@ -1183,7 +1183,7 @@
        }
        this.$axios.post(this.$api.standardTree.selectStandardProductList, {
          model: this.mireModel.split(' - ')[1],
          standardMethodListId: this.mireStandard,
          standardMethodListId: this.mireStandard,
          factory: ''
        }, {
          headers: {
@@ -1199,18 +1199,18 @@
          this.detectionType = 0
          this.$set(this.detectionItems,'type',0)
          if (row.productList != null && row.productList.length > 0) {
          if (row.productList != null && row.productList.length > 0) {
            setTimeout(() => {
              row.productList.forEach(product => {
                let rowToSelect = this.detectionItems.find(item => item.id === product.id);
                if (rowToSelect) {
                  this.toggleSelection(rowToSelect);
                }
              });
              row.productList.forEach(product => {
                let rowToSelect = this.detectionItems.find(item => item.id === product.id);
                if (rowToSelect) {
                  this.toggleSelection(rowToSelect);
                }
              });
            },200)
            }
          }
        })
        },1000);
      }