|
@@ -392,4 +392,14 @@ class FinancialProducts extends Base
|
|
|
->paginate(['page' => $param['page'], 'list_rows' => $param['size']]);
|
|
|
return success("获取成功", ["list" => $list->items(), "count" => $list->total()]);
|
|
|
}
|
|
|
+
|
|
|
+ public function CheckInfo()
|
|
|
+ {
|
|
|
+ $id = $this->request->param('id', 0, 'intval');
|
|
|
+ if (empty($id)) return error('盘点单ID不能为空');
|
|
|
+ $info = ProductCheck::with(['product' => ['ProductStock']])
|
|
|
+ ->findOrEmpty($id);
|
|
|
+ if ($info->isEmpty()) return error('盘点单不存在');
|
|
|
+ return success("获取成功", $info);
|
|
|
+ }
|
|
|
}
|