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
74754b18
authored
May 13, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
8de6803d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
app/Http/Controllers/AjaxController.php
public/js/web/record.js
public/js/web/showPage.js
app/Http/Controllers/AjaxController.php
View file @
74754b18
...
...
@@ -71,6 +71,7 @@ Class AjaxController extends Controller
$arr
[
$k
][
"template_name"
]
=
$item
->
template
?
$item
->
template
->
template_name
:
''
;
$arr
[
$k
][
"sale_order_sn"
]
=
$item
->
saleOrder
?
$item
->
saleOrder
->
sale_order_sn
:
''
;
$arr
[
$k
][
"goods_type"
]
=
$item
->
saleOrder
?
$item
->
saleOrder
->
goods_type
:
''
;
$arr
[
$k
][
"createUser"
]
=
$item
->
saleOrder
?
$item
->
saleOrder
->
createUser
:
''
;
$arr
[
$k
][
"print_nums"
]
=
$item
->
print_nums
;
$arr
[
$k
][
"create_time"
]
=
date
(
"Y-m-d h:i:s"
,
$item
->
create_time
);
$arr
[
$k
][
"print_time"
]
=
date
(
"Y-m-d h:i:s"
,
$item
->
print_time
);
...
...
public/js/web/record.js
View file @
74754b18
...
...
@@ -29,7 +29,7 @@ layui.use(['form', 'table', 'laydate'], function(){
,{
field
:
'sale_order_sn'
,
title
:
'销售单号'
}
,{
field
:
'goods_type'
,
title
:
'型号'
}
,{
field
:
'print_nums'
,
title
:
'打印次数'
,
sort
:
true
}
,{
field
:
''
,
title
:
'销售员'
,
sort
:
true
}
,{
field
:
'
createUser
'
,
title
:
'销售员'
,
sort
:
true
}
,{
field
:
'create_time'
,
title
:
'使用时间'
,
sort
:
true
}
,{
field
:
'print_time'
,
title
:
'打印时间'
,
sort
:
true
}
,{
title
:
'操作'
,
width
:
250
,
fixed
:
'right'
,
toolbar
:
'#action'
}
...
...
@@ -117,7 +117,11 @@ layui.use(['form', 'table', 'laydate'], function(){
switch
(
obj
.
event
){
case
'getCheckData'
:
var
data
=
checkStatus
.
data
;
layer
.
alert
(
JSON
.
stringify
(
data
));
if
(
data
.
length
<=
0
){
layer
.
msg
(
"至少得选中一个打印标签"
,
{
time
:
2000
});
// 阻止重复提交
return
;
}
//layer.alert(JSON.stringify(data));
break
;
case
'getCheckLength'
:
var
data
=
checkStatus
.
data
;
...
...
public/js/web/showPage.js
0 → 100644
View file @
74754b18
File mode changed
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