工作记录(7)

<div class="page" style="width:110mm;padding:0;margin:0;">
    <ul style="text-indent:0">
        <t t-foreach="docs" t-as="o">
            <li style="float:left;width:55mm;height:11mm; text-align:center;">
                <span>&#160;</span>
                <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 2000, 200)" style="width:45mm;margin-left:-7mm;text-align:center;height:5mm;"/>
                <span style="white-space:nowrap;height:7mm;text-align:center;font: bold 13pt SimHei;" t-field="o.name"/>
            </li>
        </t>
        <t t-if="len(docs)==1">
            <li style="float:left;width:55mm;height:11mm; text-align:center;">
            </li>
        </t>
    </ul>
<!--<div class="page" style="width:110mm;padding:0;margin:0;">-->
    <!--<ul style="text-indent:0">-->
        <!--<t t-foreach="docs" t-as="o">-->
            <!--<t t-if="len(o.mac_ids)&gt;0">-->
                <!--<li style="float:left;width:55mm;height:10mm; text-align:center;">-->
                    <!--<span>&#160;</span>-->
                    <!--<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.mac_ids[0].name.replace('-',''), 2000, 200)" style="width:45mm;margin-left:-7mm;text-align:center;height:4mm;"/>-->
                    <!--<span style="white-space:nowrap;height:7mm;text-align:center;font: bold 11pt SimHei;" t-field="o.mac_ids[0].name"/>-->
                <!--</li>-->
                <!--<t t-if="len(o.mac_ids)&gt;1">-->
                    <!--<li style="float:left;width:55mm;height:10mm; text-align:center;">-->
                        <!--<span>&#160;</span>-->
                        <!--<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.mac_ids[1].name.replace('-',''), 2000, 200)" style="width:45mm;margin-left:-7mm;text-align:center;height:4mm;"/>-->
                        <!--<span style="white-space:nowrap;height:7mm;text-align:center;font: bold 11pt SimHei;" t-field="o.mac_ids[1].name"/>-->
                    <!--</li>-->
                <!--</t>-->
            <!--</t>-->
        <!--</t>-->
    <!--</ul>-->
<!--</div>-->
<div class="page" style="width:110mm;padding:0;margin:0;">
    <ul style="text-indent:0">
        <t t-foreach="docs" t-as="o">
            <li style="float:left;width:55mm;height:10mm; text-align:center;">
                <span>&#160;</span>
                <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 1200, 200)" style="width:45mm;margin-left:-5mm;text-align:center;height:4mm;"/>
                <span style="white-space:nowrap;height:7mm;text-align:center;font: bold 13pt SimHei;" t-field="o.name"/>
            </li>
            <t t-if="len(o.mac_ids)&gt;0">
                <li style="float:left;width:55mm;height:10mm; text-align:center;">
                    <span>&#160;</span>
                    <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.mac_ids[0].name.replace('-',''), 2000, 200)" style="width:45mm;margin-left:-7mm;text-align:center;height:4mm;"/>
                    <span style="white-space:nowrap;height:7mm;text-align:center;font: bold 11pt SimHei;" t-field="o.mac_ids[0].name"/>
                </li>
                <t t-if="len(o.mac_ids)&gt;1">
                    <li style="float:left;width:55mm;height:10mm; text-align:center;">
                        <span>&#160;</span>
                        <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.mac_ids[1].name.replace('-',''), 2000, 200)" style="width:45mm;margin-left:-7mm;text-align:center;height:4mm;"/>
                        <span style="white-space:nowrap;height:7mm;text-align:center;font: bold 11pt SimHei;" t-field="o.mac_ids[1].name"/>
                    </li>
                    <li style="float:left;width:55mm;height:10mm; text-align:center;" />
                </t>
          </t>
        </t>
    </ul>
</div>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值