小票机模版①

javascript 复制代码
<c>${.now?string('yyyy-MM-dd HH:mm:ss')}</c>
<c>&lt;#if order.isNeedLogistics&gt;外卖订单&lt;#else&gt;门店订单<!--#if--></c>
<c><b>5${order.qudanhao?substring(1,4)}</b></c>
天使童装
13500000000

<bold>「百款商品总有你喜欢」</bold>

品牌介绍,天使童装的品牌历程说明,发展之路,宣传品牌,根据自己的需要填写文字描述说明。

<bold>「真品质 不乱添加」</bold>

真好茶,无香精  真奶,无奶精

真果,真糖,不乱添加

<c>扫码查看订单</c>
<qr>二维码链接</qr>
--------------------------------
${stringMaxWidth("商品名称", 20)}${stringMaxWidth("数量", 6)}${stringMaxWidth("金额", 6)}
--------------------------------
&lt;#list goods as test&gt;
<bold>${stringMaxWidth(test.goodsName, 20)}${stringMaxWidth(test.number, 6)}${stringMaxWidth(test.amount, 6)}</bold>
<!--#list-->
--------------------------------
${stringMaxWidth("合计", 26)}${stringMaxWidth(order.amount, 6)}

<bold>${stringMaxWidth("应付金額", 26)}${stringMaxWidth(order.amountReal, 6)}</bold>
--------------------------------
${order.orderNumber}

&lt;#if order.remark&gt;
<bold>备注:${order.remark}</bold>
<!--#if-->

&lt;#if order.isNeedLogistics&gt; 
<bold>「配送地址」</bold>

联系人: ${logistics.linkMan}
电话: ${logistics.mobile}
地址:${logistics.address}
<!--#if-->