Commit 6a82971e authored by dcy's avatar dcy

订单互斥页面,存在多个互斥订单时,只有第一个能取消互斥,其他订单移出互斥失败(接口返回成功) bug修复

parent 4eb51605
......@@ -68,8 +68,8 @@
}}</template>
</el-table-column>
<el-table-column label="操作">
<template v-slot:default='scope'>
<el-button type="text" @click ="guanlianOrderByOrderId(scope.row.orderId)">
<template v-slot='{row}'>
<el-button type="text" @click ="guanlianOrderByOrderId(row)">
移出
</el-button>
</template>
......@@ -136,8 +136,8 @@ export default {
}
})
},
guanlianOrderByOrderId(id){
deleteGuanlianOrderByOrderId({orderId:this.orderId,mutualOrderId:id}).then(r =>{
guanlianOrderByOrderId(row){
deleteGuanlianOrderByOrderId({orderId:this.orderId,mutualOrderId:row.mutualOrderId}).then(r =>{
if(r.code === 0){
this.getList()
this.$message.success('操作成功');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment