|
|
|
@ -465,6 +465,8 @@
|
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> --> |
|
|
|
|
<!-- 客户包件 --> |
|
|
|
|
<el-button @click="Batchsigning" style="margin-bottom: 4px;" type="primary">批量签收</el-button> |
|
|
|
|
<el-button @click="Batchcancellation" style="margin-bottom: 4px;" type="primary">批量计划取消</el-button> |
|
|
|
|
<tablecmt |
|
|
|
|
:columnList="wrapoption.column" |
|
|
|
|
:tableData="wrapdata" |
|
|
|
@ -3351,7 +3353,7 @@ export default {
|
|
|
|
|
deliveryId:this.deliveryId, |
|
|
|
|
reservationId:this.wid, |
|
|
|
|
type:1, |
|
|
|
|
packageId:row.id |
|
|
|
|
packageIds:row.id |
|
|
|
|
} |
|
|
|
|
cancelReservationPackage(data).then(res=>{ |
|
|
|
|
if (res.data.code === 200){ |
|
|
|
@ -3367,7 +3369,7 @@ export default {
|
|
|
|
|
let data = { |
|
|
|
|
deliveryId:this.deliveryId, |
|
|
|
|
reservationId:this.wid, |
|
|
|
|
barcode:row.orderPackageCode |
|
|
|
|
barcodes:row.orderPackageCode |
|
|
|
|
} |
|
|
|
|
//包件签收 |
|
|
|
|
deliverySign(data).then(res=>{ |
|
|
|
@ -3379,6 +3381,54 @@ export default {
|
|
|
|
|
}) |
|
|
|
|
// this.$message.warning('功能维护中...'); |
|
|
|
|
// return; |
|
|
|
|
}, |
|
|
|
|
// 批量签收 |
|
|
|
|
Batchsigning(){ |
|
|
|
|
console.log(this.selectionList,'this.selectionList'); |
|
|
|
|
|
|
|
|
|
let data = { |
|
|
|
|
deliveryId:this.deliveryId, |
|
|
|
|
reservationId:this.wid, |
|
|
|
|
barcodes:this.selectionList.map(item=>item.orderPackageCode).join(',') |
|
|
|
|
} |
|
|
|
|
this.loading=true, |
|
|
|
|
deliverySign(data).then(res=>{ |
|
|
|
|
console.log('res>>>>>>>>>>>>>>>>>>>>>>>',res); |
|
|
|
|
if (res.data.code === 200){ |
|
|
|
|
this.$message.success(res.data.msg); |
|
|
|
|
this.getWrapdetails(this.page); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
this.selectionList=[];//清空选择 |
|
|
|
|
this.loading=false; |
|
|
|
|
}).catch(res=>{ |
|
|
|
|
this.selectionList=[];//清空选择 |
|
|
|
|
this.loading=false; |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 批量计划取消 |
|
|
|
|
Batchcancellation(){ |
|
|
|
|
let data = { |
|
|
|
|
deliveryId:this.deliveryId, |
|
|
|
|
reservationId:this.wid, |
|
|
|
|
type:1, |
|
|
|
|
packageIds:this.selectionList.map(item=>item.id).join(',') |
|
|
|
|
} |
|
|
|
|
this.loading=true; |
|
|
|
|
cancelReservationPackage(data).then(res=>{ |
|
|
|
|
if (res.data.code === 200){ |
|
|
|
|
this.$message.success(res.data.msg); |
|
|
|
|
this.getWrapdetails(this.page); |
|
|
|
|
} |
|
|
|
|
this.selectionList=[];//清空选择 |
|
|
|
|
this.loading=false; |
|
|
|
|
|
|
|
|
|
}).catch(res=>{ |
|
|
|
|
this.selectionList=[];//清空选择 |
|
|
|
|
this.loading=false; |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
|
* 打印 |
|
|
|
@ -3643,6 +3693,8 @@ export default {
|
|
|
|
|
this.data = data.records; |
|
|
|
|
this.ordpage.total = data.total; |
|
|
|
|
} |
|
|
|
|
}).catch(res=>{ |
|
|
|
|
this.listloading=false |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
//订单列表 |
|
|
|
@ -3709,6 +3761,7 @@ export default {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
async handleView(row) { |
|
|
|
|
this.loading=true;//开启加载 |
|
|
|
|
console.log('查看>>>>>>>>>>', row); |
|
|
|
|
this.title = '客户包件'; |
|
|
|
|
this.view = true; |
|
|
|
@ -3716,6 +3769,7 @@ export default {
|
|
|
|
|
this.wid = row.id; |
|
|
|
|
this.getWrapdetails(this.wpage); |
|
|
|
|
await this.$nextTick(); |
|
|
|
|
|
|
|
|
|
setNodeHeight(this.$refs.wtableBox.$el, '600px'); |
|
|
|
|
}, |
|
|
|
|
/** 是否全屏 */ |
|
|
|
@ -3905,6 +3959,9 @@ export default {
|
|
|
|
|
const data = res.data.data; |
|
|
|
|
this.wrapdata = data.records; |
|
|
|
|
this.wpage.total = data.total; |
|
|
|
|
this.loading=false;//关闭加载 |
|
|
|
|
}).catch(res=>{ |
|
|
|
|
this.loading=false;//关闭加载 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|