Commit 6a82971e authored by dcy's avatar dcy

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

parent 4eb51605
...@@ -68,8 +68,8 @@ ...@@ -68,8 +68,8 @@
}}</template> }}</template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
<template v-slot:default='scope'> <template v-slot='{row}'>
<el-button type="text" @click ="guanlianOrderByOrderId(scope.row.orderId)"> <el-button type="text" @click ="guanlianOrderByOrderId(row)">
移出 移出
</el-button> </el-button>
</template> </template>
...@@ -136,8 +136,8 @@ export default { ...@@ -136,8 +136,8 @@ export default {
} }
}) })
}, },
guanlianOrderByOrderId(id){ guanlianOrderByOrderId(row){
deleteGuanlianOrderByOrderId({orderId:this.orderId,mutualOrderId:id}).then(r =>{ deleteGuanlianOrderByOrderId({orderId:this.orderId,mutualOrderId:row.mutualOrderId}).then(r =>{
if(r.code === 0){ if(r.code === 0){
this.getList() this.getList()
this.$message.success('操作成功'); 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