Parcourir la source

feat: 出库管理新建物品清单增加删除功能

liujt il y a 9 mois
Parent
commit
d79b005b47
1 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. 5 3
      src/views/warehouseManagement/outgoingManagement/add.vue

+ 5 - 3
src/views/warehouseManagement/outgoingManagement/add.vue

@@ -348,7 +348,7 @@
                 min-width="200"
                 min-width="200"
                 :show-overflow-tooltip="true"
                 :show-overflow-tooltip="true"
               ></el-table-column>
               ></el-table-column>
-              <!-- <el-table-column
+              <el-table-column
                 fixed="right"
                 fixed="right"
                 label="操作"
                 label="操作"
                 align="center"
                 align="center"
@@ -363,7 +363,7 @@
                     </el-link>
                     </el-link>
                   </el-popconfirm>
                   </el-popconfirm>
                 </template>
                 </template>
-              </el-table-column> -->
+              </el-table-column>
             </el-table>
             </el-table>
           </div>
           </div>
           <header-title class="mt20" title="包装清单"></header-title>
           <header-title class="mt20" title="包装清单"></header-title>
@@ -1158,8 +1158,10 @@
       },
       },
       // 
       // 
       handleDeleteClick(row, index) {
       handleDeleteClick(row, index) {
-        console.log('删除', row);
+        console.log('删除', row.id);
         this.productList.splice(index, 1);
         this.productList.splice(index, 1);
+        console.log('删除后', this.packingList);
+        this.packingList = this.packingList.filter((item) => item.outInDetailId !== row.id);
         
         
       },
       },
       handleBizSceneChange() {
       handleBizSceneChange() {