spring
2025-02-20 10bd1c0bbba80d86313b86559546557b2bdbc920
src/views/business/materialOrder/customsInspection.vue
@@ -431,8 +431,8 @@
</template>
<script>
import ValueTable from "@/components/Table/value-table.vue";
import {
  addExemptionOrder,
  addInsOrder,
  addRawMaterOrderTemplate, delRawMaterOrderTemplate,
  getInsOrder,
@@ -444,9 +444,7 @@
export default {
  name: "CustomsInspection",
  dicts: ['check_type', 'urgency_level'],
  components: {
    ValueTable,
  },
  components: {},
  props: {
    currentId: {
      type: Number,
@@ -998,9 +996,8 @@
      this.addObj.ifsInventoryId = this.customsInspection.id
      this.noNeedCheckLoad = true
      addExemptionOrder({
        str: JSON.stringify({
          insOrder: this.addObj,
          list: JSON.stringify(sampleList.map(a => {
        list: sampleList.map(a => {
            if (a.modelNum) {
              // 根据x号判断型号参数与样品型号的拼接位置
              // 例如×4,就为500ML×4;4×,就为4×500ML
@@ -1017,9 +1014,8 @@
            }
            a.insProduct = a.insProduct.filter(b=>b.state === 1)
            return a
          })),
          pairing: JSON.stringify(pairing)
        })
        }),
        pairing: pairing
      }).then(res => {
        this.noNeedCheckLoad = false
        if (res.code == 201) return
@@ -1049,9 +1045,8 @@
      this.addObj.ifsInventoryId = this.customsInspection.id
      this.saveLoad = true
      addInsOrder({
        str: JSON.stringify({
          insOrder: this.addObj,
          list: JSON.stringify(sampleList.map(a => {
        list: sampleList.map(a => {
            if (a.modelNum) {
              // 根据x号判断型号参数与样品型号的拼接位置
              // 例如×4,就为500ML×4;4×,就为4×500ML
@@ -1068,9 +1063,8 @@
            }
            a.insProduct = a.insProduct.filter(b=>b.state === 1)
            return a
          })),
          pairing: JSON.stringify(pairing)
        })
        }),
        pairing: pairing
      }).then(res => {
        this.saveLoad = false
        if (res.code == 201) return