|
|
|
@ -397,6 +397,10 @@ class AgentProductController extends AdminController |
|
|
|
if (array_filter($form->model()->toArray(), fn($v) => $v['agent_id'] != Admin::user()->id)) { |
|
|
|
return $form->response()->error('数据不存在'); |
|
|
|
} |
|
|
|
|
|
|
|
//处理组合产品明细表
|
|
|
|
$ids = array_column($form->model()->toArray(),'id'); |
|
|
|
AgentProductItem::query()->whereIn('agent_product_id',$ids)->delete(); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |