Browse Source

bug 更改

qinhb 2 months ago
parent
commit
3054178f79
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/views/plan/requisition/index.vue

+ 7 - 1
src/views/plan/requisition/index.vue

@@ -512,7 +512,13 @@ const { checkBtnPerm, downloadTemplate, exportData } = Utils; //按钮权限等
 const { username } = useUserStoreHook().user;
 const minusItem = (row) => {
   tableDataList.value = tableDataList.value.filter(
-    (item) => item.id !== row.id
+    (item) => {
+      if(row.id){
+       return item.id !== row.id
+      }else{
+        return item.materialCode !== row.materialCode
+      }
+    }
   );
 };
 const changeOrder = (val) => {