Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
note-library
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
404e6f9f
authored
Feb 20, 2023
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
打印
parent
1e758226
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletions
app/Http/Controllers/ApiController.php
app/Http/routes.php
app/Services/LabelService.php
app/Http/Controllers/ApiController.php
View file @
404e6f9f
...
@@ -29,5 +29,23 @@ Class ApiController extends Controller
...
@@ -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
app/Http/routes.php
View file @
404e6f9f
...
@@ -29,7 +29,9 @@ Route::pattern('roleId', '[0-9]+');
...
@@ -29,7 +29,9 @@ Route::pattern('roleId', '[0-9]+');
*/
*/
Route
::
group
([
'middleware'
=>
[
"cors"
]],
function
()
{
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
()
{
Route
::
group
([
'middleware'
=>
'web'
],
function
()
{
...
...
app/Services/LabelService.php
View file @
404e6f9f
...
@@ -176,4 +176,8 @@ class LabelService {
...
@@ -176,4 +176,8 @@ class LabelService {
return
$list
;
return
$list
;
}
}
public
static
function
tryPrintLabel
(
$data
){
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment