Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MiYaFastCashier
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
1
Merge Requests
1
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
jiangjiantao
MiYaFastCashier
Commits
090e977c
Commit
090e977c
authored
Feb 24, 2023
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
79607129
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
16 deletions
+15
-16
MiyaApi.kt
app/src/main/java/com/miya/fastcashier/net/MiyaApi.kt
+0
-1
PrintService.kt
...com/fastcashier/lib_common/function/print/PrintService.kt
+15
-15
No files found.
app/src/main/java/com/miya/fastcashier/net/MiyaApi.kt
View file @
090e977c
package
com.miya.fastcashier.net
import
com.fastcashier.lib_common.function.account.SelfCashierAccountInfo
import
com.fastcashier.lib_common.net.ApiConfig
import
com.fastcashier.lib_common.net.BaseApi
import
com.fastcashier.lib_common.net.BaseResponse
import
com.miya.fastcashier.net.param.LoginParams
...
...
lib_common/src/main/java/com/fastcashier/lib_common/function/print/PrintService.kt
View file @
090e977c
...
...
@@ -92,10 +92,10 @@ object PrintService {
serialNumber
:
String
)
{
val
shopInfo
=
selfCashierAccountInfo
.
shopInfo
printer
.
printText
(
IPrinter
.
ALIGN_CENTER
,
3
,
shopInfo
.
storeName
,
true
)
printer
.
printText
(
IPrinter
.
ALIGN_CENTER
,
3
,
shopInfo
?
.
storeName
,
true
)
printer
.
setAlign
(
IPrinter
.
ALIGN_LEFT
)
printer
.
printText
(
"商户编号:${shopInfo.saasid}"
)
printer
.
printText
(
"终端编号:${shopInfo.posId}"
)
printer
.
printText
(
"商户编号:${shopInfo
?
.saasid}"
)
printer
.
printText
(
"终端编号:${shopInfo
?
.posId}"
)
printer
.
printText
(
"商户名称:converse"
)
printer
.
printText
(
Page58MmPrintUtils
.
printDivideLineString
())
printer
.
printText
(
"交易类型:"
)
...
...
@@ -174,12 +174,12 @@ object PrintService {
serialNumber
:
String
)
{
val
shopInfo
=
selfCashierAccountInfo
.
shopInfo
printer
.
printText
(
IPrinter
.
ALIGN_CENTER
,
3
,
shopInfo
.
storeName
,
true
)
printer
.
printText
(
IPrinter
.
ALIGN_CENTER
,
3
,
shopInfo
?
.
storeName
,
true
)
printer
.
setAlign
(
IPrinter
.
ALIGN_LEFT
)
printer
.
printText
(
"持卡人存根"
)
printer
.
printText
(
Page58MmPrintUtils
.
printDivideLineString
())
printer
.
printText
(
"商户编号:${shopInfo.saasid}"
)
printer
.
printText
(
"终端编号:${shopInfo.posId}"
)
printer
.
printText
(
"商户编号:${shopInfo
?
.saasid}"
)
printer
.
printText
(
"终端编号:${shopInfo
?
.posId}"
)
printer
.
printText
(
"商户名称:converse"
)
printer
.
printText
(
Page58MmPrintUtils
.
printDivideLineString
())
printer
.
printText
(
"交易类型:"
)
...
...
@@ -326,10 +326,10 @@ object PrintService {
selfCashierAccountInfo
:
SelfCashierAccountInfo
)
{
val
shopInfo
=
selfCashierAccountInfo
.
shopInfo
printer
.
printText
(
IPrinter
.
ALIGN_CENTER
,
3
,
shopInfo
.
storeName
,
true
)
printer
.
printText
(
IPrinter
.
ALIGN_CENTER
,
3
,
shopInfo
?
.
storeName
,
true
)
printer
.
setAlign
(
IPrinter
.
ALIGN_LEFT
)
printer
.
printText
(
"商户编号:${shopInfo.saasid}"
)
printer
.
printText
(
"终端编号:${shopInfo.posId}"
)
printer
.
printText
(
"商户编号:${shopInfo
?
.saasid}"
)
printer
.
printText
(
"终端编号:${shopInfo
?
.posId}"
)
printer
.
printText
(
"商户名称:converse"
)
printer
.
printText
(
Page58MmPrintUtils
.
printDivideLineString
())
printer
.
printText
(
"交易类型:"
)
...
...
@@ -409,12 +409,12 @@ object PrintService {
selfCashierAccountInfo
:
SelfCashierAccountInfo
)
{
val
shopInfo
=
selfCashierAccountInfo
.
shopInfo
printer
.
printText
(
IPrinter
.
ALIGN_CENTER
,
3
,
shopInfo
.
storeName
,
true
)
printer
.
printText
(
IPrinter
.
ALIGN_CENTER
,
3
,
shopInfo
?
.
storeName
,
true
)
printer
.
setAlign
(
IPrinter
.
ALIGN_LEFT
)
printer
.
printText
(
"持卡人存根"
)
printer
.
printText
(
Page58MmPrintUtils
.
printDivideLineString
())
printer
.
printText
(
"商户编号:${shopInfo.saasid}"
)
printer
.
printText
(
"终端编号:${shopInfo.posId}"
)
printer
.
printText
(
"商户编号:${shopInfo
?
.saasid}"
)
printer
.
printText
(
"终端编号:${shopInfo
?
.posId}"
)
printer
.
printText
(
"商户名称:converse"
)
printer
.
printText
(
Page58MmPrintUtils
.
printDivideLineString
())
printer
.
printText
(
"交易类型:"
)
...
...
@@ -520,9 +520,9 @@ object PrintService {
printer
.
setAlign
(
IPrinter
.
ALIGN_LEFT
)
printer
.
printText
(
"商户名称:converse"
)
printer
.
printText
(
"商户编号:${shopInfo.saasid}"
)
printer
.
printText
(
"终端编号:${shopInfo.posId}"
)
printer
.
printText
(
"门店编号:${shopInfo.storeId}"
)
printer
.
printText
(
"商户编号:${shopInfo
?
.saasid}"
)
printer
.
printText
(
"终端编号:${shopInfo
?
.posId}"
)
printer
.
printText
(
"门店编号:${shopInfo
?
.storeId}"
)
//统计时间
printer
.
printText
(
0
,
0
,
"开始时间:"
+
orderStatisticsInfo
.
beginDate
,
true
)
...
...
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