Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
takeaway
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shuai.liu
takeaway
Commits
2350a2dd
Commit
2350a2dd
authored
Apr 28, 2019
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印小票添加口袋信息
parent
93c73f04
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
fmTakeaway/printLib/printlib.cpp
+10
-0
No files found.
fmTakeaway/printLib/printlib.cpp
View file @
2350a2dd
...
...
@@ -269,7 +269,17 @@ void PrintLib::_PrintProcudt(const QList<LineNode*> &list,const QList<int>& prot
QList
<
int
>
productNodeList
=
protlist
;
int
firstIndex
=
productNodeList
.
first
();
int
lastIndex
=
productNodeList
.
last
();
QList
<
QString
>
bskList
;
//保存已经打印过的口袋号
foreach
(
DishObject
*
value
,
_order
->
products
)
{
if
(
!
bskList
.
contains
(
value
->
bsk_num
))
{
bskList
.
push_back
(
value
->
bsk_num
);
LineNode
tempNode
=
*
list
.
at
(
firstIndex
);
tempNode
.
text
=
QString
(
">>>口袋 %1"
).
arg
(
value
->
bsk_num
);
_PrintLine
(
tempNode
);
}
for
(
int
index
=
firstIndex
;
index
<=
lastIndex
;
index
++
)
{
_PrintLine
(
*
list
.
at
(
index
),
value
);
}
...
...
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