feat:消费机打印机

This commit is contained in:
dzc committed 2026-09-04 13:15:55 +08:00
1 parent 4d7bc5ed33
commit 4a18fc6eb1
39 files changed
+2061 -219

No files matched your search

@@ -10,6 +10,10 @@ class SysSetting extends Equatable {
/// 设备类型
SysType sysType;
/// 当前 APK 运行角色;旧配置默认保持收银终端行为。
@JsonKey(defaultValue: TerminalRole.cashier)
TerminalRole terminalRole;
/// mac地址
String? androidId;
@@ -22,6 +26,22 @@ class SysSetting extends Equatable {
/// 商户id
String? serviceMerchantId;
/// 打印终端所绑定的来源业务终端。
String? printerSourceHardId;
/// 打印终端所绑定的来源业务终端名称。
String? printerSourceHardName;
/// 真机打印机型号与 USB 参数,由服务端启动配置下发。
String? printerModel;
int? printerUsbVendorId;
int? printerUsbProductId;
/// 当前纸宽、切刀和图片指令模式。
int printerPaperWidth;
bool printerAutoCut;
String printerImageMode;
/// 商户部门id
String? merchantDeptId;
@@ -131,6 +151,7 @@ class SysSetting extends Equatable {
SysSetting({
required this.sysType,
this.terminalRole = TerminalRole.cashier,
this.androidId,
this.serviceId,
this.mqSocketAddress,
@@ -138,6 +159,9 @@ class SysSetting extends Equatable {
this.sqlAddress,
this.logAddress,
this.hardGroupId,
this.printerPaperWidth = 80,
this.printerAutoCut = true,
this.printerImageMode = 'GS_V0',
this.tenantList,
this.manualHardwareInput = false,
this.rootAccessStatus = RootAccessStatus.unknown,
@@ -156,10 +180,19 @@ class SysSetting extends Equatable {
@override
List<Object?> get props => [
sysType,
terminalRole,
androidId,
serviceId,
serviceName,
serviceMerchantId,
printerSourceHardId,
printerSourceHardName,
printerModel,
printerUsbVendorId,
printerUsbProductId,
printerPaperWidth,
printerAutoCut,
printerImageMode,
merchantDeptId,
hardGroupId,
mqSocketAddress,