From 61116c35fda12264fda46211dcad45e27df8e2f8 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 20 二月 2025 17:03:15 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev

---
 src/views/business/materialOrder/customsInspection.vue |   82 ++++++++++++++++++-----------------------
 1 files changed, 36 insertions(+), 46 deletions(-)

diff --git a/src/views/business/materialOrder/customsInspection.vue b/src/views/business/materialOrder/customsInspection.vue
index 63eb53f..415f92c 100644
--- a/src/views/business/materialOrder/customsInspection.vue
+++ b/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,
@@ -980,7 +978,6 @@
         item.insProduct = this.productList
       })
       this.getTotal(sampleList)
-      const pairing = []
       let trees = this.selectTree.split(" - ")
       if (trees.length < 3) {
         this.$message.error('鏈�夋嫨瀵硅薄')
@@ -998,28 +995,25 @@
       this.addObj.ifsInventoryId = this.customsInspection.id
       this.noNeedCheckLoad = true
       addExemptionOrder({
-        str: JSON.stringify({
-          insOrder: this.addObj,
-          list: JSON.stringify(sampleList.map(a => {
-            if (a.modelNum) {
-              // 鏍规嵁x鍙峰垽鏂瀷鍙峰弬鏁颁笌鏍峰搧鍨嬪彿鐨勬嫾鎺ヤ綅缃�
-              // 渚嬪脳4锛屽氨涓�500ML脳4锛�4脳锛屽氨涓�4脳500ML
-              const index = a.modelNum.indexOf('脳')
-              if (index === 0) {
-                a.model = a.model + a.modelNum
-              } else if (index === -1) {
-                a.model = a.model + '-' + a.modelNum
-              } else {
-                a.model = a.modelNum + a.model
-              }
+        insOrder: this.addObj,
+        sampleList: sampleList.map(a => {
+          if (a.modelNum) {
+            // 鏍规嵁x鍙峰垽鏂瀷鍙峰弬鏁颁笌鏍峰搧鍨嬪彿鐨勬嫾鎺ヤ綅缃�
+            // 渚嬪脳4锛屽氨涓�500ML脳4锛�4脳锛屽氨涓�4脳500ML
+            const index = a.modelNum.indexOf('脳')
+            if (index === 0) {
+              a.model = a.model + a.modelNum
+            } else if (index === -1) {
+              a.model = a.model + '-' + a.modelNum
             } else {
-              a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum))
+              a.model = a.modelNum + a.model
             }
-            a.insProduct = a.insProduct.filter(b=>b.state === 1)
-            return a
-          })),
-          pairing: JSON.stringify(pairing)
-        })
+          } else {
+            a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum))
+          }
+          a.insProduct = a.insProduct.filter(b=>b.state === 1)
+          return a
+        }),
       }).then(res => {
         this.noNeedCheckLoad = false
         if (res.code == 201) return
@@ -1031,7 +1025,6 @@
       })
     },
     saveMethod(sampleList){
-      const pairing = []
       let trees = this.selectTree.split(" - ")
       if (trees.length < 3) {
         this.$message.error('鏈�夋嫨瀵硅薄')
@@ -1049,28 +1042,25 @@
       this.addObj.ifsInventoryId = this.customsInspection.id
       this.saveLoad = true
       addInsOrder({
-        str: JSON.stringify({
-          insOrder: this.addObj,
-          list: JSON.stringify(sampleList.map(a => {
-            if (a.modelNum) {
-              // 鏍规嵁x鍙峰垽鏂瀷鍙峰弬鏁颁笌鏍峰搧鍨嬪彿鐨勬嫾鎺ヤ綅缃�
-              // 渚嬪脳4锛屽氨涓�500ML脳4锛�4脳锛屽氨涓�4脳500ML
-              const index = a.modelNum.indexOf('脳')
-              if (index === 0) {
-                a.model = a.model + a.modelNum
-              } else if (index === -1) {
-                a.model = a.model + '-' + a.modelNum
-              } else {
-                a.model = a.modelNum + a.model
-              }
+        insOrder: this.addObj,
+        sampleList: sampleList.map(a => {
+          if (a.modelNum) {
+            // 鏍规嵁x鍙峰垽鏂瀷鍙峰弬鏁颁笌鏍峰搧鍨嬪彿鐨勬嫾鎺ヤ綅缃�
+            // 渚嬪脳4锛屽氨涓�500ML脳4锛�4脳锛屽氨涓�4脳500ML
+            const index = a.modelNum.indexOf('脳')
+            if (index === 0) {
+              a.model = a.model + a.modelNum
+            } else if (index === -1) {
+              a.model = a.model + '-' + a.modelNum
             } else {
-              a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum))
+              a.model = a.modelNum + a.model
             }
-            a.insProduct = a.insProduct.filter(b=>b.state === 1)
-            return a
-          })),
-          pairing: JSON.stringify(pairing)
-        })
+          } else {
+            a.model = a.model + ((a.modelNum == null || a.modelNum == '' || a.modelNum == 'null') ? '' : ('-' + a.modelNum))
+          }
+          a.insProduct = a.insProduct.filter(b=>b.state === 1)
+          return a
+        }),
       }).then(res => {
         this.saveLoad = false
         if (res.code == 201) return

--
Gitblit v1.9.3