Commit f84d2754 authored by 邓春圆's avatar 邓春圆

订单关联重新修改

parent d12eaaff
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{{$t('已加入关联订单列表')}} {{$t('已加入关联订单列表')}}
</h1> </h1>
<div style="flex: 1;margin-left: 20px;"> <div style="flex: 1;margin-left: 20px;">
<el-button :disabled="multipleSelection.length === 0" type="primary" @click="batchGuanlianOrderByOrderId(multipleSelection.map(e =>({orderId:orderId,relateOrderId:e.orderId})))" >{{$t('批量移出')}}</el-button> <el-button :disabled="multipleSelection.length === 0" type="primary" @click="batchGuanlianOrderByOrderId(multipleSelection.map(e =>({orderId:e.orderId,relateOrderId:e.relateOrderId})))" >{{$t('批量移出')}}</el-button>
</div> </div>
<div> <div>
<el-button type="primary" @click="$router.push(`/order/add-associated-order/${orderId}`)">{{$t('添加关联订单')}}</el-button> <el-button type="primary" @click="$router.push(`/order/add-associated-order/${orderId}`)">{{$t('添加关联订单')}}</el-button>
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')"> <el-table-column :label="$t('操作')">
<template v-slot:default='scope'> <template v-slot:default='scope'>
<el-button type="text" @click ="guanlianOrderByOrderId(scope.row.orderId)"> <el-button type="text" @click ="guanlianOrderByOrderId({orderId:scope.row.orderId,relateOrderId:scope.row.relateOrderId})">
{{$t('移出')}} {{$t('移出')}}
</el-button> </el-button>
</template> </template>
...@@ -147,8 +147,8 @@ export default { ...@@ -147,8 +147,8 @@ export default {
} }
}) })
}, },
guanlianOrderByOrderId(id){ guanlianOrderByOrderId(params){
deleteGuanlianOrderByOrderId({orderId:this.orderId,relateOrderId:id}).then(r =>{ deleteGuanlianOrderByOrderId(params).then(r =>{
if(r.code === 0){ if(r.code === 0){
this.getList() this.getList()
this.$message.success(this.$t('操作成功')); this.$message.success(this.$t('操作成功'));
......
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