gaoluyang
2025-02-20 f5ecc0ec0663cf26476c9ee37631539a96f9e6f5
src/views/business/materialOrder/customsInspection.vue
@@ -978,7 +978,6 @@
        item.insProduct = this.productList
      })
      this.getTotal(sampleList)
      const pairing = []
      let trees = this.selectTree.split(" - ")
      if (trees.length < 3) {
        this.$message.error('未选择对象')
@@ -997,7 +996,7 @@
      this.noNeedCheckLoad = true
      addExemptionOrder({
        insOrder: this.addObj,
        list: sampleList.map(a => {
        sampleList: sampleList.map(a => {
          if (a.modelNum) {
            // 根据x号判断型号参数与样品型号的拼接位置
            // 例如×4,就为500ML×4;4×,就为4×500ML
@@ -1015,7 +1014,6 @@
          a.insProduct = a.insProduct.filter(b=>b.state === 1)
          return a
        }),
        pairing: pairing
      }).then(res => {
        this.noNeedCheckLoad = false
        if (res.code == 201) return
@@ -1027,7 +1025,6 @@
      })
    },
    saveMethod(sampleList){
      const pairing = []
      let trees = this.selectTree.split(" - ")
      if (trees.length < 3) {
        this.$message.error('未选择对象')
@@ -1046,7 +1043,7 @@
      this.saveLoad = true
      addInsOrder({
        insOrder: this.addObj,
        list: sampleList.map(a => {
        sampleList: sampleList.map(a => {
          if (a.modelNum) {
            // 根据x号判断型号参数与样品型号的拼接位置
            // 例如×4,就为500ML×4;4×,就为4×500ML
@@ -1064,7 +1061,6 @@
          a.insProduct = a.insProduct.filter(b=>b.state === 1)
          return a
        }),
        pairing: pairing
      }).then(res => {
        this.saveLoad = false
        if (res.code == 201) return