|
...
|
...
|
@@ -34,4 +34,21 @@ class EnterpriseProductController extends BaseController |
|
|
|
$data = $enterpriseProduct->lists($this->map,$this->page,$this->row);
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :删除产品库产品
|
|
|
|
* @name :del
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/3/27 9:59
|
|
|
|
*/
|
|
|
|
public function del(EnterpriseProduct $enterpriseProduct){
|
|
|
|
$this->request->validate([
|
|
|
|
'ids'=>['required'],
|
|
|
|
],[
|
|
|
|
'ids.required' => 'id不能为空',
|
|
|
|
]);
|
|
|
|
$result = $enterpriseProduct->del(['id'=>['in',$this->param['ids']]]);
|
|
|
|
$this->response('success',Code::SUCCESS,$result);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|