Last active
July 9, 2019 02:20
-
-
Save overtrue/ca6dfb4130ab412c94554645fb4d6db1 to your computer and use it in GitHub Desktop.
CloudPrint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<page xmlns="http://cloudprint.cainiao.com/print" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://cloudprint.cainiao.com/print http://cloudprint-docs-resource.oss-cn-shanghai.aliyuncs.com/lpml_schema.xsd" xmlns:editor="http://cloudprint.cainiao.com/schema/editor" width="45" height="70" splitable="false"> | |
<layout width="37" height="6" left="4" top="5"> | |
<barcode type="code128" ratioMode="keepRatio"> | |
<![CDATA[<%= _data.item_no %>]]> | |
</barcode> | |
</layout> | |
<layout width="37" left="4" top="13"> | |
<table width="37" style="borderWidth:0;cellBorderWidth:0;"> | |
<tr> | |
<td width="12"> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[品牌:]]></text> | |
</td> | |
<td width="25"> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= _data.brand %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[品名:]]></text> | |
</td> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= _data.category_name %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[颜色:]]></text> | |
</td> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= _data.color %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[款号:]]></text> | |
</td> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= _data.spu_no %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[尺码:]]></text> | |
</td> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= _data.size %>]]> | |
</text> | |
</td> | |
</tr> | |
<% var materials = _data.materials || [] %> | |
<% for (var n = 0; n < materials.length; n++) { %> | |
<tr> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[<%= materials[n].type +':' %>]]></text> | |
</td> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= materials[n].description %>]]> | |
</text> | |
</td> | |
</tr> | |
<% } %> | |
<tr> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[执行标准:]]></text> | |
</td> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= _data.standard %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[安全类别:]]></text> | |
</td> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= _data.safety_class %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[产品等级:]]></text> | |
</td> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= _data.product_grade %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[检验员:]]></text> | |
</td> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= _data.checker %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[批号:]]></text> | |
</td> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= _data.plan_no %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[生产商:]]></text> | |
</td> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= _data.manufacturer_name %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[地址:]]></text> | |
</td> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= _data.manufacturer_address %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;lineHeight:130%;align:right;"> | |
<![CDATA[电话:]]></text> | |
</td> | |
<td> | |
<text style="fontFamily:SimHei;fontSize:6;"> | |
<![CDATA[<%= _data.manufacturer_tel %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td colspan="2"> | |
<layout width="37" height="6" left="0" top="0"> | |
<barcode type="code128" style="hideText:true;rotation:0;align:center" ratioMode="keepRatio"> | |
<![CDATA[<%= _data.sku_no %>]]> | |
</barcode> | |
</layout> | |
<layout width="37" height="2" left="0" top="6"> | |
<text style="fontFamily:SimHei;fontSize:6;align:center"> | |
<![CDATA[<%= _data.sku_no %>]]> | |
</text> | |
</layout> | |
</td> | |
</tr> | |
</table> | |
</layout> | |
</page> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<page xmlns="http://cloudprint.cainiao.com/print" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://cloudprint.cainiao.com/print http://cloudprint-docs-resource.oss-cn-shanghai.aliyuncs.com/lpml_schema.xsd" | |
xmlns:editor="http://cloudprint.cainiao.com/schema/editor" width="30" height="100" splitable="false"> | |
<line style="lineType:solid;lineColor:#000;" startX="0" startY="2" endX="30" endY="2"> | |
</line> | |
<layout width="26" height="24" left="2" top="20"> | |
<barcode type="qrcode" ratioMode="keepRatio"> | |
<![CDATA[<%= _data.item_no %>]]> | |
</barcode> | |
</layout> | |
<layout width="24" height="3" left="3" top="45"> | |
<table width="24" style="borderWidth:0;cellBorderWidth:0;"> | |
<tr> | |
<td width="7"> | |
<text style="align:right;lineHeight:130%;fontFamily:SimHei;fontSize:6"> | |
<![CDATA[款号:]]> | |
</text> | |
</td> | |
<td width="17"> | |
<text style="lineHeight:130%;fontFamily:SimHei;fontSize:6"> | |
<![CDATA[<%= _data.spu_no %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<text style="align:right;lineHeight:130%;fontFamily:SimHei;fontSize:6"> | |
<![CDATA[尺码:]]> | |
</text> | |
</td> | |
<td> | |
<text style="lineHeight:130%;fontFamily:SimHei;fontSize:6"> | |
<![CDATA[<%= _data.size %>]]> | |
</text> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<text style="align:right;lineHeight:130%;fontFamily:SimHei;fontSize:6"> | |
<![CDATA[批号:]]> | |
</text> | |
</td> | |
<td> | |
<text style="lineHeight:130%;fontFamily:SimHei;fontSize:6"> | |
<![CDATA[<%= _data.plan_no %>]]> | |
</text> | |
</td> | |
</tr> | |
<% var materialsHtml = ''; var materials = _data.materials || [] %> | |
<% for (var n = 0; n < materials.length; n++) { %> | |
<tr> | |
<td> | |
<text style="align:right;lineHeight:130%;fontFamily:SimHei;fontSize:6"> | |
<![CDATA[<%= materials[n].type + ':' %>]]> | |
</text> | |
</td> | |
<td> | |
<text style="lineHeight:130%;fontFamily:SimHei;fontSize:6"> | |
<![CDATA[<%= materials[n].description %>]]> | |
</text> | |
</td> | |
</tr> | |
<% } %> | |
<tr> | |
<td colspan="2"> | |
<layout width="24" height="3"> | |
<text style="valign:middle;lineHeight:130%;fontFamily:SimHei;fontSize:6"> | |
<![CDATA[洗涤方式:]]> | |
</text> | |
</layout> | |
<layout height="5.53" left="0" top="5"> | |
<layout width="5.53" height="5.55" left="0" top="0"> | |
<image src="http://cdn-cloudprint.cainiao.com/waybill-print/cloudprint-imgs/def92d3b2a624b1eb602d43ef3b34f5c.png" | |
allowFailure="false"/> | |
</layout> | |
<layout width="5.03" height="5.55" left="9.5" top="0"> | |
<image src="http://cdn-cloudprint.cainiao.com/waybill-print/cloudprint-imgs/e9d4f7f229c24951a7cc28f923f4546f.png" | |
allowFailure="false"/> | |
</layout> | |
<layout width="6.02" height="5.55" left="18" top="0"> | |
<image src="http://cdn-cloudprint.cainiao.com/waybill-print/cloudprint-imgs/23130996c4d64efcb1f653fe14351fa7.png" | |
allowFailure="false"/> | |
</layout> | |
</layout> | |
<layout height="5.63" left="0" top="11"> | |
<layout width="5.63" height="5.55" left="0" top="0"> | |
<image src="http://cdn-cloudprint.cainiao.com/waybill-print/cloudprint-imgs/0a5e723d1bd54da5a2a727a1eb77790f.png" | |
allowFailure="false"/> | |
</layout> | |
<layout width="5.94" height="5.55" left="18" top="0"> | |
<image src="http://cdn-cloudprint.cainiao.com/waybill-print/cloudprint-imgs/3a1c7d983f5d4b9391b2c6fb1615ea8b.png" | |
allowFailure="false"/> | |
</layout> | |
</layout> | |
</td> | |
</tr> | |
<tr> | |
<td colspan="2"> | |
<layout width="24" height="14" left="0" top="0"> | |
<barcode type="code128" style="hideText:true;rotation:0" ratioMode="keepRatio"> | |
<![CDATA[<%= _data.item_no %>]]> | |
</barcode> | |
</layout> | |
<layout width="24" height="2" left="0" top="13"> | |
<text style="align:center;lineHeight:130%;fontFamily:SimHei;fontSize:6;margin:0 0 20;"> | |
<![CDATA[<%= _data.item_no %>]]> | |
</text> | |
</layout> | |
</td> | |
</tr> | |
</table> | |
</layout> | |
</page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment