运单模板设置参数

2017-05-16 17:17
系统渠道管理中客户可以根据物流服务设置模板,



模板使用html代码编写即可,参数如下。

地址标签和报关单参数

${LabelPicture1}:地址标签图片1,
${LabelPicture2}:地址标签图片2,
${ShortName}地区代码,
${ChannelCode}渠道代码
${AreaName}分区名称
${strSendAdress}发件地址
${Sender}发件人
${SendCity}发件人城市/州
${SendState}发件人省
${SendCountryEn}发件人国家(英文)
${SendCountryCn}发件人国家(中文)
${SendZipCode}发件人邮编
${SendMobile}发件人联系方式
${ConsigneeName}收件人
${ResiveCopany}收件人公司名称
${ResiveContact}收件人联系方式
${ResiveAddress}收件人地址行1+地址行2
${ResiveCity}收件人城市
${ResiveState}收件人州/省
${ResiveZipCode}收件人邮编
${ResiveCountryEn} 收件人国家英文名 
${ResiveCountryCn} 收件人国家中文名
${LabelType}渠道标签类型 
${ROrderNo} 跟踪号 
${OrderNo}订单号 
${CsRefNo}客户参考号 
${strInfo}订单详细产品 
${SQuantity}产品英文名*产品的数量
${SQuantityC}产品英文名(中文名)*产品的数量
${SWeight}重量
${SPrice}单位价值(单价)
${FSumWeight}合计重量
${FSumPrice}合计价格
${Cuscode}客户编号 
${sum}订单明细总数量
${DeliveryTime}发货日期(没有发货日期为空)
${Field33}店铺  
${CusRemark}客户订单备注
${Data}当前日期
${strSendAdress}广州标签回邮地址
${addCode}地区格口号
${eu_area}根据邮编前两位判断所属代码
${AreaCode}分区代码
${SortingNo} 分拣号
${Data}当前日期(默认今天的日期)
${pAreaCode}地区区号
${sum} 订单里的明细总数量
${Sku_CnName_Quantity} SKU*中文名*数量
${strCnInfo} 中文名*产品数量
${strProd} 产品编号(SKU)
${strQua}  产品数量
${Remarks} 备注
${CnName}产品中文名
${EnName}产品英文名
${CUSTOMCCODE} 海关编码
${PRODUCINGAREA}原产地
${QuickMark}二维码
${Package_wdjc}集包地
${position} 目的地城市
${RField1}追踪号-转单号
${strProd} 产品SKU
${strQua}产品数量
${TRACKINGNO2} 追踪号-eub新
${Cuscode} 客户编号
${eu_area_us} EUB-美国最新的邮编分拣号
${Weight} 单个产品重量
${Price}单价
${Quantity} 单个数量
${Field33} 店铺
${strCnInfo} 中文名*数量
${DeliveryTime} 发货时间
${Date} 获取当前的时间(yyyy-MM-dd HH:mm:ss)
 ${Field1} 转单号
${DFIELD3} 批次号
${strQua} 产品数量
${factquantity} 实际计费重量
${SortingNo}  分拣号
{piaojian} 票件数

发票和运单参数:
${TrackingNo}  跟踪号
${Sender} 发件人
${CreateTime} 创建时间
${SendCompany} 发件人公司
${ResiveCopany} 收件人公司
${ConsigneeName} 收件人姓名
${SendStreet} 发件人街道
${SendCity}发件人城市/州
${SendState}发件人省
${SendZipCode}发件人邮编
${SendCountryEn}发件人国家(英文)
${ResiveAddress}收件人地址行1+地址行2
${ResiveCity}收件人城市
${ResiveState}收件人州/省
${ResiveCountryCn}收件人国家(中文)
${ResiveCountryEn}收件人国家(英文)
${ResiveContact}收件人联系方式
${ResiveZipCode}收件人邮编
${SortingNo}分拣号
${ProductNamesCN}产品名称中文
${ProductNamesEN}产品名称英文
${SendAddress}发件人地址
${SendPhone}发件人电话
${EnName}产品英文名
${PlanQuantity}重量(预计/扫描实际)
${CustomcCode}海关编码
${Quantity}数量
${Price}价格
${fSum}总价值
${TOTAL}合计数量
${TotalValue}合计数量
${CnDetail}合计总数量
${ChannelEName}渠道英文名
${ChannelEName}渠道英文名
${ChannelStyle}渠道类别
${CusCode}客户编码
${CsRefNo}客户参考号
${ROrderNo}追踪号(订单号)
${OrderNo}订单号
${Date}当前时间
${SQuantity}总数量
${SWeight}总重量
${SPrice}总价格
${FSumWeight}合计总重量
${FSumPrice}合计总价值



样例模板:(可以直接复制粘贴在渠道设置中,需要定制模板请联系客服)


地址标签(热敏纸10x10cm)

  <div style="width: 9.5cm; height: 9.5cm; margin:10px;font-family: Arial, Helvetica, sans-serif;border: 1px solid #000; ">
   <div class="bt1">
    <div class="bt1L">
     <div class="bt1a">
      <img src="../UpFile/ChannelLabelPicture/${LabelPicture1}" />
     </div>
     <div class="bt1b">
      <img src="../UpFile/ChannelLabelPicture/${LabelPicture2}" />
     </div>
    </div>
    <div class="bt1c">
     <div class="bt1ca">
      ${ShortName}
     </div>
     <div class="Dnum3">
      ${Num}${SortingNo}
     </div>
     <div class="bt1cb">
      ${ChannelCode}
      <label class="AreaName">${AreaName}</label>
     </div>
    </div>
   </div>
   <div class="bt2">
    <div class="bt2b">
     ${strSendAdress}
    </div>
   </div>
   <div class="bt3r">
    <div class="bt3br">
     <label class="bt3t">To :</label>${ConsigneeName}${ResiveCopany}
     <br />Tel :${ResiveContact}
     <br />${ResiveAddress}
     <br />${ResiveCity},${ResiveState}
     <br />${ResiveZipCode}
     <br />${ResiveCountryEn} (${ResiveCountryCn})
    </div>
   </div>
   <div class="bt4">
    <div class="bt4b">
     <div class="bt4br">
      ${LabelType}
     </div>
     <div class="bt4brm">
      <div class="bt4brma">
       ${TRACKINGNO}
      </div>
      <img src="BarCode.aspx?num=${TRACKINGNO}" />
     </div>
    </div>
    <div class="bt4a">
     <div class="bt4acp bt4acpnobottom">
      <span>[${OrderNo}]${CsRefNo}</span>
     </div>
    </div>
   </div>
   <div class="bt5">
    ${strInfo}
   </div> ${RField1} ${AreaName}[${FactQuanty}]
  </div>

 




报关单(热敏纸10x10cm)


  <div style="width: 9.5cm; height: 9.5cm; margin: 10px; font-family: Arial, Helvetica, sans-serif; border: 1px solid #000;">
   <div style="width: 100%; height: 20px;">
    <div style="width: 70%; height: 20px; float: left; line-height: 20px; font-size: 15px; margin: 0px; font-weight: bold;">
      CUSTOMS DECLARATIONS
    </div>
    <div style="width: 30%; height: 20px; float: left; text-align: right">
      CN 22
    </div>
   </div>
   <div style="width: 100%; height: 30px; line-height: 14px; font-size: 8px;">
     Item may be opened officially.
    <br /> Important! See instructions. Tick where applicable
   </div>
   <div style="width: 100%; height: 30px; line-height: 15px; font-size: 10px;">
     Designated Operator:
   </div>
   <div style="width: 100%; height: 40px; line-height: 15px; font-size: 10px;">
    <div style="width: 100px; height: 20px; line-height: 20px; font-size: 10px; float: left;">
     <img src="gouxuan2.jpg" alt="" /> Merchandise
    </div>
    <div style="width: 200px; height: 20px; line-height: 20px; font-size: 10px; float: left;">
     <img src="gouxuan2.jpg" alt="" /> Document
    </div>
    <div style="width: 100px; height: 20px; line-height: 20px; font-size: 10px; float: left;">
     <img src="gouxuan2.jpg" alt="" /> Sample
    </div>
    <div style="width: 120px; height: 20px; line-height: 20px; font-size: 10px; float: left;">
     <img src="gouxuan.jpg" alt="" style="width:12px; height:12px;" /> Gift
    </div>
    <div style="width: 120px; height: 20px; line-height: 20px; font-size: 10px; float: left;">
     <img src="gouxuan2.jpg" alt="" /> Others ____________
    </div>
   </div>
   <div style="width: 100%; height: 140px; line-height: 15px; font-size: 10px;">
    <div style="width: 30%; height: 15px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-top: 1px solid #000; border-right: 1px solid #000; border-left: 1px solid #000;">
      Content description
    </div>
    <div style="width: 5%; height: 15px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-top: 1px solid #000; border-right: 1px solid #000;">
      Qty
    </div>
    <div style="width: 12%; height: 15px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-top: 1px solid #000; border-right: 1px solid #000;">
      Weight (Kg)
    </div>
    <div style="width: 9%; height: 15px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-top: 1px solid #000; border-right: 1px solid #000;">
      Currency
    </div>
    <div style="width: 12%; height: 15px; line-height: 15px; font-size: 10px; float: left; border-bottom: 1px solid #000; border-top: 1px solid #000; border-right: 1px solid #000;">
      Value
    </div>
    <div style="width: 20%; height: 15px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-top: 1px solid #000; border-right: 1px solid #000;">
      Origin of goods
    </div>
    <div style="width: 9%; height: 15px; line-height: 15px; font-size: 7px; float: left; border-bottom: 1px solid #000; border-top: 1px solid #000; border-right: 1px solid #000;">
      HS Tariff
    </div>
    <div style="width: 30%; height: 90px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-right: 1px solid #000; border-left: 1px solid #000;">
      ${strInfo}
    </div>
    <div style="width: 5%; height: 90px; line-height: 15px; border-right: 1px solid #000; font-size: 8px; float: left; border-bottom: 1px solid #000;">
      ${sum}
    </div>
    <div style="width: 12%; height: 90px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-right: 1px solid #000;">
      ${SWeight}
    </div>
    <div style="width: 9%; height: 90px; line-height: 15px; border-right: 1px solid #000; font-size: 8px; float: left; border-bottom: 1px solid #000;">
      USD
    </div>
    <div style="width: 12%; height: 90px; line-height: 15px; font-size: 10px; float: left; border-bottom: 1px solid #000; border-right: 1px solid #000;">
      ${SPrice}
    </div>
    <div style="width: 20%; height: 90px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-right: 1px solid #000;">
     <strong>China(People's Reple)</strong>
    </div>
    <div style="width: 9%; height: 90px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-right: 1px solid #000;">
    </div>
    <div style="width: 30%; height: 25px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-right: 1px solid #000; border-left: 1px solid #000;"></div>
    <div style="width: 5%; height: 25px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-right: 1px solid #000;"></div>
    <div style="width: 12%; height: 25px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-right: 1px solid #000;">
      Total Weight
     <br /> ${FSumWeight}
    </div>
    <div style="width: 9%; height: 25px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-right: 1px solid #000;">
      Currency
     <br /> USD
    </div>
    <div style="width: 12%; height: 25px; line-height: 15px; font-size: 7px; float: left; border-bottom: 1px solid #000; border-right: 1px solid #000;">
      Total Value
     <br /> ${FSumPrice}
    </div>
    <div style="width: 20%; height: 25px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-right: 1px solid #000;">
    </div>
    <div style="width: 9%; height: 25px; line-height: 15px; font-size: 8px; float: left; border-bottom: 1px solid #000; border-right: 1px solid #000;">
    </div>
   </div>
   <div style="width: 100%; height: 30px; line-height: 7px; font-size: 7px;">
     I have read, understood and agreed to the privacy notice, terms and conditions of posting (as published in www.singpost.com).I certify the particulars given in this customs declaration are accurate and that the item does not contain any dangerous article or articles prohibited by legislation or by postal or by customs regulations.
   </div>
   <div style="width: 100%; height: 70px;">
    <div style="width: 300px; height: 65px; margin-left: 30px; border: 1px solid #000; border-radius: 5px;">
     <div style="width: 300px; height: 25px; border-bottom: 2px solid #000;">
      <div style="font-size: 25px; width: 40px; height: 25px; float: left;">
       R
      </div>
      <div style="font-size: 20px; width: 260px; height: 20px; float: left; margin-top: 5px;">
       ${TRACKINGNO}
      </div>
     </div>
     <div style="width: 300px; height: 50px; height: 30px; float: left;">
      <img src="BarCode.aspx?num=${TRACKINGNO}" style="width: 300px; height: 35px; margin-top: 1px;" />
     </div>
    </div>
   </div>
  </div>

 




运单(A4纸张大小)
<div class="ta4">
   <div class="ta4a">
    <div class="ta4a1">
      ${TopTitle}
     <!--  ${BigTitle}-->
     <!--  <div class='ta4a2'><span class='ta4a2text' style='font-weight:bold;font-size:10px;'>${TrackingNo}</span><img width='253' height='60' src='BarCode.aspx?num=${TrackingNo}'></div><div class='Dnum2'>${NUMS}</div></div><div class='ta4b'>--> ${BigTitle}
     <div class="ta4b1">
      <strong>Service</strong>
     </div>
     <div class="ta4b2">
      ${ChannelStyle}
     </div>
     <div class="ta4b1">
      <strong>Service Name</strong>
     </div>
     <div class="ta4b2">
      ${ChannelEName}
     </div>
     <div class="ta4b3">
      <strong>1.From /Please print in English</strong>
     </div>
     <div class="ta4b1">
      Date
     </div>
     <div class="ta4b2">
      ${CreateTime}
     </div>
     <div class="ta4b1">
      Account No.
     </div>
     <div class="ta4b2">
      ${CusCode}
     </div>
     <div class="ta4b4">
      Sender's Name
     </div>
     <div class="ta4b5">
      ${Sender}
     </div>
     <div class="Company1">
      Company
     </div>
     <div class="Company2">
      ${SendCompany}
     </div>
     <div class="DiZhi1">
      Address
     </div>
     <div class="DiZhi2">
      ${SendStreet}
     </div>
     <div class="ta4b1">
      City
     </div>
     <div class="ta4b2">
      ${SendCity}
     </div>
     <div class="ta4b1">
      State(Province)
     </div>
     <div class="ta4b2">
      ${SendState}
     </div>
     <div class="ta4b1">
      ZIP/Postal Code
     </div>
     <div class="ta4b2">
      ${SendZipCode}
     </div>
     <div class="ta4b1">
      Phone
     </div>
     <div class="ta4b2">
      ${Tel}
     </div>
     <div class="ta4b6">
      Country
     </div>
     <div class="ta4b7">
      ${SendCountryEn}
     </div>
     <div class="ta4b3">
      <strong>2.To</strong>
     </div>
     <div class="ta4b4">
      Recipient's Name
     </div>
     <div class="ta4b5">
      ${ConsigneeName}
     </div>
     <div class="Company3">
      Company
     </div>
     <div class="Company4">
      ${ResiveCopany}
     </div>
     <div class="DiZhi3">
      Address
     </div>
     <div class="DiZhi4">
      ${ResiveAddress}
     </div>
     <div class="ta4b1">
      City
     </div>
     <div class="ta4b2">
      ${ResiveCity}
     </div>
     <div class="ta4b1">
      State(Province)
     </div>
     <div class="ta4b2">
      ${ResiveState}
     </div>
     <div class="ta4b1">
      Postal Code
     </div>
     <div class="ta4b2">
      ${ResiveZipCode}
     </div>
     <div class="ta4b1">
      Phone
     </div>
     <div class="ta4b2">
      ${ResiveContact}
     </div>
     <div class="ta4b6">
      Country
     </div>
     <div class="ta4b7">
      ${ResiveCountryEn}
     </div>
     <div class="ta4b3">
      <strong>3.Shipment Information</strong>
     </div> ${TotalDetails} ${Details}
     <div class="ta4b18">
      Total:${CnDetail}
     </div>
     <div class="ta4b19">
      <strong>4.Required Signature</strong>
     </div>
     <div class="ta4b20">
      Signature____________________________________________Date________________________________________
     </div>
    </div>
   </div>
  </div>




发票(A4纸张大小)

  <div class="box">
    ${TopTitle} ${BigTitle}
   <div class="table">
    <div class="row">
     <span class="sp1 bold">International Air Waybill No.:</span>
     <span class="sp2">${TrackingNo}</span>
     <span class="sp3 bold">Date of Exportation:</span>
     <span class="sp4">${CreateTime}</span>
    </div>
    <div class="row row2">
     <span class="sp1 bold">Shipper(complete name and address)</span>
     <span class="sp4 bold">Consignee(complete name and address)</span>
    </div>
    <div class="row row3">
     <span class="sp1 bold">COMPANY:</span>
     <span class="sp2">${SendCompany}</span>
     <span class="sp3 bold">COMPANY:</span>
     <span class="sp4">${ResiveCopany}</span>
    </div>
    <div class="row row4">
     <span class="sp1 bold">ATTN:</span>
     <span class="sp2 bold"> ${Sender}</span>
     <span class="sp3 bold">ATTN: </span>
     <span class="sp4 bold">${ConsigneeName}</span>
    </div>
    <div class="row row5">
     <span class="sp1 bold">${SendStreet},${SendCity},${SendState}<br /> ${SendZipCode},${SendCountryEn}</span>
     <span class="sp4 bold">${ResiveAddress}<br /> ${ResiveCity},${ResiveState},${ResiveCountryEn} </span>
    </div>
    <div class="row row2">
     <span class="sp1">Tel: ${Tel}</span>
     <span class="sp4">Tel: ${ResiveContact}</span>
    </div>
    <div class="row row2">
     <span class="sp1 bold">POSTAL : ${SendZipCode}</span>
     <span class="sp4 bold">Postal code:${ResiveZipCode}</span>
    </div>
    <div class="row row7">
     <span class="sp1">Country of Origin</span>
     <span class="sp2">${ProducingArea}</span>
     <span class="sp3">Country of Export</span>
     <span class="sp4">${SendCountryEn}</span>
     <span class="sp5">Coutry of destination</span>
     <span class="sp6">${ResiveCountryEn}</span>
    </div>
    <div class="row row8">
     <span class="sp1 bold">No.</span>
     <span class="sp2 bold">Description of Goods</span>
     <span class="sp3 bold">HS</span>
     <span class="sp4 bold">Qty</span>
     <span class="sp5 bold">Unit Value</span>
     <span class="sp6 bold">Total Value</span>
    </div> ${AllDetail}
    <div class="row row10">
     <span class="sp1 bold">TOTAL:${TOTAL}</span>
     <span class="sp2 bold">Total Invoice Value :</span>
     <span class="sp4 bold">${TotalValue}USD</span>
    </div>
   </div>
   <div class="bottom">
    <div class="left bold">
     Shipper's Signature &amp; Stamp
    </div>
    <div class="right bold">
     ${Sender}
    </div>
   </div>
  </div>

 

运单模板设置参数
Tag :