Browse Source

关联质检资料修改

duy 1 year ago
parent
commit
29f8e7b49f

+ 4 - 9
src/views/debit-pay/admin/components/middlepay/addModal.vue

@@ -668,7 +668,7 @@ const closeQual = ()=>{
 }
 const finishModal = (rows)=>{
     console.log(rows, 'rows')
-    
+    console.log( baseForm.value.fileList, ' baseForm.value.fileList')
     // 使用reduce方法进行去重
     const uniqueArray = rows.reduce((acc, current) => {
     // 检查当前对象的某个字段是否已存在于累积数组中
@@ -697,18 +697,13 @@ const finishModal = (rows)=>{
 
 
     })
+    console.log( baseForm.value.fileList, 'baseForm.value.fileList')
+    console.log( fileList, 'fileList')
    fileList.forEach((ele)=>{
     baseForm.value.fileList.push(ele)
    })
 
-if (rows.length < baseForm.value.fileList.length) {
-    baseForm.value.fileList.forEach((ele)=>{
-        const isDel = isArrIndex( rows, 'selectId', ele.selectId)
-        if (!isDel && ele.selectId !== null) {
-            baseForm.value.fileList = arrDelKey( baseForm.value.fileList, 'selectId', ele.selectId) 
-        }
-    })
-}
+
 
    selectId.value = arrToKey( baseForm.value.fileList, 'selectId', ',')
 

+ 1 - 5
src/views/debit-pay/admin/components/middlepay/qualityRleation.vue

@@ -231,11 +231,7 @@ const saveQualModal = ()=>{
         alarr = uniqueArray
         emit('finish', alarr)
         setStoreValue('checkRows', alarr)
-    } else {
-        window.$message.warning('请先选择你要关联的质检资料')
-        emit('close')
-        emit('finish', tableKeys.value)
-    }
+    } 
     
 }
 </script>