Skip to content

Instantly share code, notes, and snippets.

@lynzz
Last active June 22, 2017 13:55
Show Gist options
  • Save lynzz/a120f635e27299bb1f97af4b9433eade to your computer and use it in GitHub Desktop.
Save lynzz/a120f635e27299bb1f97af4b9433eade to your computer and use it in GitHub Desktop.
小票数据格式
/**
* 个人订单打印数据
*/
interface PersonOrder {
/**
*
*/
id: string;
/**
*
*/
business: string;
/**
*
*/
createDate: string;
address: string;
remark: string;
tax: number;
total?: number;
totalPay?: number;
payment: string;
name: string;
phone: string;
due: string;
}
/**
* 活动项目数据
*/
interface EventItem {
/**
* 项目名称
*/
item: string;
/**
* 活动人数
*/
number: number;
/**
* 单位
*/
unit: string;
/**
* 单价
*/
unitPrice: number;
/**
*
*/
subTotal: number;
/**
* 地址
*/
address: string;
}
/**
* 活动打印数据
*/
interface EventPrinter {
/**
* 活动名称
*/
name: string;
/**
* 开始时间
*/
startTime: number;
/**
* 活动所有地址
*/
addresses: array;
/**
* 总人数
*/
totalNumber: number;
/**
* 活动项目列表
*/
list: Array<EventItem>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment