Browse Source

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

jbb 1 year ago
parent
commit
db370f1083
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/shipment-details/shipmentList.vue

+ 4 - 2
src/views/shipment-details/shipmentList.vue

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