Selaa lähdekoodia

fix: cargo修复子表有删除行时的必填项判断逻辑.

peter 3 viikkoa sitten
vanhempi
commit
02166f6327
1 muutettua tiedostoa jossa 5 lisäystä ja 6 poistoa
  1. 5 6
      src/pages/cargo-consolidation-request/index.vue

+ 5 - 6
src/pages/cargo-consolidation-request/index.vue

@@ -1096,11 +1096,6 @@ const commit = () => {
       }
     }) as any[]
 
-  result = result.concat(
-    temp
-      .filter((i) => i.deleteFlag)
-      .map((i) => ({ id: i.id, _delete: null, Material_of_Goods: null })),
-  )
   // const emptyBatchRecordList: number[] = []
   const emptyUserNotesList: number[] = []
   result.forEach((i, index) => {
@@ -1113,7 +1108,6 @@ const commit = () => {
       emptyUserNotesList.push(index)
     }
   })
-
   // if (emptyBatchRecordList.length) {
   //   ElNotification({
   //     title: '请检查表单',
@@ -1133,6 +1127,11 @@ const commit = () => {
     return
   }
 
+  result = result.concat(
+    temp
+      .filter((i) => i.deleteFlag)
+      .map((i) => ({ id: i.id, _delete: null, Material_of_Goods: null })),
+  )
   console.log(result, 'submit result')
   loading.value = true
   request