Commit 404e6f9f by 孙龙

打印

parent 1e758226
......@@ -29,5 +29,23 @@ Class ApiController extends Controller
}
/**
* Notes:erp发送数据 准备打印数据
* User: sl
* Date: 2023-02-20 15:35
* @param Request $request
*/
public function tryPrintLabel(Request $request){
$list = $request->input("list",0);
$data = json_encode($list);
$list = LabelService::tryPrintLabel($data);
}
public function printLabel(Request $request){
}
}
\ No newline at end of file
......@@ -29,7 +29,9 @@ Route::pattern('roleId', '[0-9]+');
*/
Route::group(['middleware' => ["cors"]], function () {
Route::get('/api/get_user_labels', 'ApiController@getUserLabels');
Route::match(['get', 'post'],'/api/get_user_labels', 'ApiController@getUserLabels');
Route::match(['get', 'post'],'/api/try_print_label', 'ApiController@tryPrintLabel');
Route::match(['get', 'post'],'/api/print_label', 'ApiController@printLabel');
});
Route::group(['middleware' => 'web'], function () {
......
......@@ -176,4 +176,8 @@ class LabelService {
return $list;
}
public static function tryPrintLabel($data){
}
}
\ No newline at end of file
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 sign in to comment