Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
doublescreen-front
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pengguangpu
doublescreen-front
Commits
64e523c9
Commit
64e523c9
authored
Mar 02, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixed
parent
2b719c05
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
home.js
pages/home/home.js
+11
-8
No files found.
pages/home/home.js
View file @
64e523c9
...
...
@@ -375,16 +375,19 @@ Page({
printer
.
printText
(
"收银员账号:"
+
printLastOrder_paySuccessResp
.
operatorId
),
printer
.
printText
(
"订单号:"
+
printLastOrder_paySuccessResp
.
tradeNo
),
printer
.
printNowDate
(),
printer
.
printDivide
(
"-"
),
printer
.
printText
(
"活动商品"
),
printer
.
printText
(
"商品名称 "
+
" 编码 "
+
" 数量"
),
];
if
(
null
!=
this
.
data
.
goodsList
&&
this
.
data
.
goodsList
.
length
>
0
)
{
cmds
.
push
(
printer
.
printDivide
(
"-"
)),
cmds
.
push
(
printer
.
printText
(
"活动商品"
)),
cmds
.
push
(
printer
.
printText
(
"商品名称 "
+
" 编码 "
+
" 数量"
))
for
(
var
i
=
0
;
i
<
printLastOrder_goodsList
.
length
;
i
++
)
{
//循环取出商品数据
cmds
.
push
(
printer
.
setAlign
(
printer
.
ALIGN_LEFT
));
cmds
.
push
(
printer
.
printText
(
printLastOrder_goodsList
[
i
].
name
));
cmds
.
push
(
printer
.
printTwoText
(
printLastOrder_goodsList
[
i
].
barcode
,
printLastOrder_goodsList
[
i
].
quantity
+
""
));
}
}
cmds
.
push
(
printer
.
setAlign
(
printer
.
ALIGN_LEFT
));
cmds
.
push
(
printer
.
printDivide
(
"-"
));
cmds
.
push
(
printer
.
printText
(
"应收金额:"
+
printLastOrder_orderPriceYuan
));
...
...
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