|
@@ -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('提交成功,单据状态改为【已提交】')
|