Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warehouse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡懿
warehouse
Commits
cd95ae43
Commit
cd95ae43
authored
Feb 28, 2023
by
yyq1988
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化打印功能
parent
2d5fecb3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
26 deletions
+31
-26
LodopFuncs.js
src/main/webapp/static/common/js/LodopFuncs.js
+1
-1
anihead.jsp
src/main/webapp/webpage/include/anihead.jsp
+5
-0
goodsList.jsp
...main/webapp/webpage/modules/warehouse/goods/goodsList.jsp
+0
-9
profitWarehousingList.js
...ules/warehouse/profitwarehousing/profitWarehousingList.js
+25
-9
profitWarehousingList.jsp
...les/warehouse/profitwarehousing/profitWarehousingList.jsp
+0
-7
No files found.
src/main/webapp/static/common/js/LodopFuncs.js
View file @
cd95ae43
...
@@ -98,7 +98,7 @@ function getLodop(oOBJECT, oEMBED) {
...
@@ -98,7 +98,7 @@ function getLodop(oOBJECT, oEMBED) {
var
strLodopUpdate
=
strFontTag
+
"需要升级!点击这里<a href='install_lodop32.zip' target='_self'>执行升级</a>"
;
var
strLodopUpdate
=
strFontTag
+
"需要升级!点击这里<a href='install_lodop32.zip' target='_self'>执行升级</a>"
;
var
strLodop64Install
=
strFontTag
+
"未安装!点击这里<a href='install_lodop64.zip' target='_self'>执行安装</a>"
;
var
strLodop64Install
=
strFontTag
+
"未安装!点击这里<a href='install_lodop64.zip' target='_self'>执行安装</a>"
;
var
strLodop64Update
=
strFontTag
+
"需要升级!点击这里<a href='install_lodop64.zip' target='_self'>执行升级</a>"
;
var
strLodop64Update
=
strFontTag
+
"需要升级!点击这里<a href='install_lodop64.zip' target='_self'>执行升级</a>"
;
var
strCLodopInstallA
=
"<br><font color='#FF00FF'>Web打印服务CLodop未安装启动,点击这里<a href='"
+
projectName
+
"/common/file/CLodop_Setup_for_Win64NT_6.571EN.zip' target='_self'>下载执行安装</a>"
;
var
strCLodopInstallA
=
"<br><font color='#FF00FF'>Web打印服务CLodop未安装启动,点击这里<a href='"
+
ctxStatic
+
"/common/file/CLodop_Setup_for_Win64NT_6.571EN.zip' target='_self'>下载执行安装</a>"
;
var
strCLodopInstallB
=
"<br>(若此前已安装过,可<a href='CLodop.protocol:setup' target='_self'>点这里直接再次启动</a>)"
;
var
strCLodopInstallB
=
"<br>(若此前已安装过,可<a href='CLodop.protocol:setup' target='_self'>点这里直接再次启动</a>)"
;
var
strCLodopUpdate
=
"<br><font color='#FF00FF'>Web打印服务CLodop需升级!点击这里<a href='CLodop_Setup_for_Win32NT.zip' target='_self'>执行升级</a>"
;
var
strCLodopUpdate
=
"<br><font color='#FF00FF'>Web打印服务CLodop需升级!点击这里<a href='CLodop_Setup_for_Win32NT.zip' target='_self'>执行升级</a>"
;
var
strLodop7FontTag
=
"<br><font color='#FF00FF'>Web打印服务Lodop7"
;
var
strLodop7FontTag
=
"<br><font color='#FF00FF'>Web打印服务Lodop7"
;
...
...
src/main/webapp/webpage/include/anihead.jsp
View file @
cd95ae43
...
@@ -61,3 +61,7 @@
...
@@ -61,3 +61,7 @@
<script type="text/javascript">var ctx = '${ctx}', ctxStatic='${ctxStatic}';</script>
<script type="text/javascript">var ctx = '${ctx}', ctxStatic='${ctxStatic}';</script>
<link rel="stylesheet" id="theme" href="${ctxStatic}/common/css/app-${cookie.theme.value==null?'blue':cookie.theme.value}.css" />
<link rel="stylesheet" id="theme" href="${ctxStatic}/common/css/app-${cookie.theme.value==null?'blue':cookie.theme.value}.css" />
<script src="${ctxStatic}/common/js/jeeplus.js"></script>
<script src="${ctxStatic}/common/js/jeeplus.js"></script>
<script src="${ctxStatic}/common/js/LodopFuncs.js"></script>
<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0 style="display: none;">
<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
</object>
\ No newline at end of file
src/main/webapp/webpage/modules/warehouse/goods/goodsList.jsp
View file @
cd95ae43
...
@@ -8,13 +8,6 @@
...
@@ -8,13 +8,6 @@
<
%@
include
file=
"/webpage/include/bootstraptable.jsp"
%
>
<
%@
include
file=
"/webpage/include/bootstraptable.jsp"
%
>
<
%@
include
file=
"/webpage/include/treeview.jsp"
%
>
<
%@
include
file=
"/webpage/include/treeview.jsp"
%
>
<
%@
include
file=
"goodsList.js"
%
>
<
%@
include
file=
"goodsList.js"
%
>
<script>
var
projectName
=
"${ctxStatic}"
;
</script>
<script
type=
"text/javascript"
src=
"${ctxStatic}/common/js/LodopFuncs.js"
></script>
<object
id=
"LODOP_OB"
classid=
"clsid:2105C259-1E0C-4534-8141-A753534CB4CA"
width=
0
height=
0
>
<embed
id=
"LODOP_EM"
type=
"application/x-print-lodop"
width=
0
height=
0
></embed>
</object>
</head>
</head>
<body>
<body>
<div
class=
"wrapper wrapper-content"
>
<div
class=
"wrapper wrapper-content"
>
...
@@ -127,6 +120,5 @@
...
@@ -127,6 +120,5 @@
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</body>
</html>
</html>
\ No newline at end of file
src/main/webapp/webpage/modules/warehouse/profitwarehousing/profitWarehousingList.js
View file @
cd95ae43
...
@@ -279,6 +279,7 @@ $(document).ready(function() {
...
@@ -279,6 +279,7 @@ $(document).ready(function() {
var
data1
=
profitWarehousing
.
profitWarehousingInfoList
;
var
data1
=
profitWarehousing
.
profitWarehousingInfoList
;
for
(
var
i
=
0
;
i
<
data1
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
data1
.
length
;
i
++
){
data1
[
i
].
dict
=
{};
data1
[
i
].
dict
=
{};
data1
[
i
].
qrCodeStr
=
data1
[
1
].
qrCode
&&
JSON
.
stringify
(
data1
[
1
].
qrCode
);
addRow
(
'#profitWarehousingChild-'
+
row
.
id
+
'-1-List'
,
profitWarehousingChild1RowIdx
,
profitWarehousingChild1Tpl
,
data1
[
i
]);
addRow
(
'#profitWarehousingChild-'
+
row
.
id
+
'-1-List'
,
profitWarehousingChild1RowIdx
,
profitWarehousingChild1Tpl
,
data1
[
i
]);
profitWarehousingChild1RowIdx
=
profitWarehousingChild1RowIdx
+
1
;
profitWarehousingChild1RowIdx
=
profitWarehousingChild1RowIdx
+
1
;
}
}
...
@@ -299,21 +300,24 @@ $(document).ready(function() {
...
@@ -299,21 +300,24 @@ $(document).ready(function() {
LODOP
=
getLodop
(
document
.
getElementById
(
'LODOP_OB'
),
document
.
getElementById
(
'LODOP_EM'
));
LODOP
=
getLodop
(
document
.
getElementById
(
'LODOP_OB'
),
document
.
getElementById
(
'LODOP_EM'
));
}
}
function
printQr
(
id
)
{
function
printQr
(
id
,
qrCodeStr
)
{
jp
.
loading
(
'loading...'
);
jp
.
loading
(
'loading...'
);
try
{
try
{
if
(
!
LODOP
){
if
(
!
LODOP
){
initLodop
();
initLodop
();
}
}
if
(
LODOP
){
if
(
LODOP
){
jp
.
get
(
"${ctx}/warehouse/profitwarehousing/profitWarehousing/printQr?profitWarehousingInfoId="
+
id
,
function
(
res
)
{
if
(
qrCodeStr
){
var
list
=
res
.
body
.
goodsInfo
.
qrCodeList
;
var
qrCode
=
JSON
.
parse
(
qrCodeStr
);
LODOP
.
PRINT_INIT
(
"打印货品"
);
preview_LODOP
(
qrCode
);
LODOP
.
SET_PRINT_PAGESIZE
(
1
,
400
,
600
,
0
)
createAllPage
(
list
);
LODOP
.
PREVIEW
();
jp
.
close
();
jp
.
close
();
})
}
else
{
jp
.
get
(
"${ctx}/warehouse/profitwarehousing/profitWarehousing/printQr?profitWarehousingInfoId="
+
id
,
function
(
res
)
{
var
profitWarehousingInfo
=
res
.
body
.
profitWarehousingInfo
;
preview_LODOP
(
profitWarehousingInfo
.
qrCode
);
jp
.
close
();
})
}
}
else
{
}
else
{
jp
.
close
();
jp
.
close
();
}
}
...
@@ -324,6 +328,18 @@ $(document).ready(function() {
...
@@ -324,6 +328,18 @@ $(document).ready(function() {
})
})
}
}
}
}
function
preview_LODOP
(
qrCode
){
if
(
qrCode
&&
qrCode
.
url
){
LODOP
.
PRINT_INIT
(
"打印货品"
);
LODOP
.
SET_PRINT_PAGESIZE
(
1
,
400
,
600
,
0
)
var
imgUrl
=
"${ctxPath}/"
+
qrCode
.
url
;
LODOP
.
ADD_PRINT_IMAGE
(
'0%'
,
"0%"
,
"100%"
,
"100%"
,
"<img width='150' border='0' src='"
+
imgUrl
+
"' />"
);
LODOP
.
PREVIEW
();
}
else
{
jp
.
error
(
'二维码不存在!'
)
}
}
<
/script
>
<
/script
>
<
script
type
=
"text/template"
id
=
"profitWarehousingChildrenTpl"
>
//<!--
<
script
type
=
"text/template"
id
=
"profitWarehousingChildrenTpl"
>
//<!--
...
@@ -376,7 +392,7 @@ $(document).ready(function() {
...
@@ -376,7 +392,7 @@ $(document).ready(function() {
{{
row
.
remarks
}}
{{
row
.
remarks
}}
<
/td
>
<
/td
>
<
td
>
<
td
>
<
button
class
=
"btn btn-primary btn-sm"
onclick
=
"printQr('{{row.id}}')"
>
<
button
class
=
"btn btn-primary btn-sm"
onclick
=
"printQr('{{row.id}}'
, '{{row.qrCodeStr}}'
)"
>
打印二维码
打印二维码
<
/button
>
<
/button
>
<
button
class
=
"btn btn-danger btn-sm"
onclick
=
"cleanQr('{{row.id}}')"
>
<
button
class
=
"btn btn-danger btn-sm"
onclick
=
"cleanQr('{{row.id}}')"
>
...
...
src/main/webapp/webpage/modules/warehouse/profitwarehousing/profitWarehousingList.jsp
View file @
cd95ae43
...
@@ -8,13 +8,6 @@
...
@@ -8,13 +8,6 @@
<
%@
include
file=
"/webpage/include/bootstraptable.jsp"
%
>
<
%@
include
file=
"/webpage/include/bootstraptable.jsp"
%
>
<
%@
include
file=
"/webpage/include/treeview.jsp"
%
>
<
%@
include
file=
"/webpage/include/treeview.jsp"
%
>
<
%@
include
file=
"profitWarehousingList.js"
%
>
<
%@
include
file=
"profitWarehousingList.js"
%
>
<script>
var
projectName
=
"${ctxStatic}"
;
</script>
<script
type=
"text/javascript"
src=
"${ctxStatic}/common/js/LodopFuncs.js"
></script>
<object
id=
"LODOP_OB"
classid=
"clsid:2105C259-1E0C-4534-8141-A753534CB4CA"
width=
0
height=
0
>
<embed
id=
"LODOP_EM"
type=
"application/x-print-lodop"
width=
0
height=
0
></embed>
</object>
</head>
</head>
<body>
<body>
<div
class=
"wrapper wrapper-content"
>
<div
class=
"wrapper wrapper-content"
>
...
...
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