Browse Source

出运明细-批量删除-参数修改

jbb 1 year ago
parent
commit
681b190e02
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/views/shipment-details/shipmentList.vue

+ 5 - 5
src/views/shipment-details/shipmentList.vue

@@ -1042,18 +1042,18 @@ export default {
     //批量删除
     batchDelete(){
       this.$nextTick(() => {
-        var grouyIdList = [],
-        itemId = []
+        var itemId = [],
+        ids = []
         this.loading = true
         this.shipmentListData.map(item =>{
           this.selectedRowKeys.map(e=>{
             if(item.itemIds == e){
-              grouyIdList.push(item.groupId)
-              itemId.push(item.id)
+              itemId.push(item.itemIds)
+              ids.push(item.id)
             }
           })
         })
-        deleteBatch({ itemId: itemId ,grouyIdList:grouyIdList}).then(res => {
+        deleteBatch({ ids: ids ,itemId:itemId}).then(res => {
         this.loading = false
           if (res.success) {
             // console.log('提交成功,单据状态改为【已提交】')