顺丰单号生成规则
Ë??áÔ˵?ÅÅÁÐ?æÔò?º
ÓÉÓÚÌÔ????ÌûÓÐ×ÖÊýÏÞÖÆ??Ë??áÅÅÁÐ?æÔò?ý????ÎÒ??ÔÚÒ?Â?ÁôÑÔ?å??????
Ç?11Î?Êý×ÖÊÇ??ÕÕË?ÐòÅÅÁÐ??×îºóÒ?Î?Êý×ÖÊÇ?ù?ÝÒ???Ô-ÀíÍƵ??öÀ?µÄ?º 1??µ?µÚ11Î?Êý??µÈÓÚ9Ê???µÚ?þÕÅÔ˵?µÄ×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+9??È??á?ûµÄ?öÎ?Êý
2??µ?µÚ11Î?Êý×Ö=9Ê?????µÚ10Î?Êý×ÖµÄ?æÂÉ
µ?µÚ10Î?Êý×Ö=0??1??2??4??5??7??8Ê???µÚ?þÕÅÔ˵?µÄ×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+6??È??á?ûµÄ?öÎ?Êý
µ?µÚ10Î?Êý×Ö=3??6Ê???µÚ?þÕÅÔ˵?µÄ×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+5??È??á?ûµÄ?öÎ?Êý
3??µ?µÚ11Î?Êý×Ö??µÚ10Î?Êý×Ö??µÈÓÚ9Ê?????µÚ9Î?Êý×ÖµÄ?æÂÉ
µ?µÚ9Î?Êý×Ö=0??2??4??6??8Ê???µÚ?þÕÅÔ˵?×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+3??È??á?ûµÄ?öÎ?Êý
µ?µÚ9Î?Êý×Ö=1??3??5??7Ê???µÚ?þÕÅÔ˵?×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+2??È??á?ûµÄ?öÎ?Êý
4??µ?µÚ11Î?Êý×Ö??µÚ10Î?Êý×Ö??µÚ9Î?Êý×Ö??µÈÓÚ9Ê?????µÚ8Î?Êý×ÖµÄ?æÂÉ
µ?µÚ8Î?Êý×Ö=0??3??6Ê???µÚ?þÕÅÔ˵?µÄ×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+0??È??á?ûµÄ?öÎ?Êý
µ?µÚ8Î?Êý×Ö=1??2??4??5??7??8Ê???µÚ?þÕÅÔ˵?µÄ×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+9??È??á?ûµÄ?öÎ?Êý
5??µ?µÚ11Î?Êý×Ö??µÚ10Î?Êý×Ö??µÚ9Î?Êý×Ö??µÚ8Î?Êý×Ö??µÈÓÚ9Ê?????µÚ7Î?Êý×ÖµÄ?æÂÉ
µ?µÚ7Î?Êý×Ö=0Ê???µÚ?þÕÅÔ˵?µÄ×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+7??È??á?ûµÄ?öÎ?Êý
µ?µÚ7Î?Êý×Ö=1??2??3??4??5??6??7??8Ê???µÚ?þÕÅÔ˵?µÄ×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+6??È??á?ûµÄ?öÎ?Êý
6??µ?µÚ11Î?Êý×Ö??µÚ10Î?Êý×Ö??µÚ9Î?Êý×Ö??µÚ8Î?Êý×Ö??µÚ7Î?Êý×Ö??µÈÓÚ9Ê?????µÚ6Î?Êý×ÖµÄ?æÂÉ
µ?µÚ6Î?Êý×Ö=0??1??2??3??4??5??6??7??8Ê???µÚ?þÕÅÔ˵?µÄ×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+3??È??á?ûµÄ?öÎ?Êý
7??µ?µÚ11Î?Êý×Ö??µÚ10Î?Êý×Ö??µÚ9Î?Êý×Ö??µÚ8Î?Êý×Ö??µÚ7Î?Êý×Ö??µÚ6Î?Êý×Ö??µÈÓÚ9Ê????ù?ݵÚ5Î?Êý×ÖÅÐ?Ï
µ?µÚ5Î?Êý×Ö=0??1??2??4??5??7??8Ê???µÚ?þÕÅÔ˵?µÄ×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+9??È??á?ûµÄ?öÎ?Êý
µ?µÚ5Î?Êý×Ö=3??6Ê???µÚ?þÕÅÔ˵?µÄ×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+8??È??á?ûµÄ?öÎ?Êý
8??µ?µÚ11Î?Êý×Ö??µÚ10Î?Êý×Ö??µÚ9Î?Êý×Ö??µÚ8Î?Êý×Ö??µÚ7Î?Êý×Ö??µÚ6Î?Êý×Ö??µÚ5Î?Êý×Ö??µÈÓÚ9Ê????ù?ݵÚ4Î?Êý×ÖÅÐ?Ï
µ?µÚ4Î?Êý×Ö=0??2??4??6??8Ê?????µÚ?þÕÅÔ˵?µÄ×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+5??È??á?ûµÄ?öÎ?Êý
µ?µÚ4Î?Êý×Ö=1??3??5??7Ê???µÚ?þÕÅÔ˵?µÄ×îºóÒ?Î?Êý×Ö=ÉÏÒ?ÕÅÔ˵?×îºóÒ?Î?Êý×Ö+4,È??á?ûµÄ?öÎ?Êý
============================================================================== js:
var currentNo = $("#txt_Number").val();
var num1 = currentNo.substr(0, 1);
var num12 = currentNo.substr(11, 1);
var sf_dh;
if (num1 == 0) {
sf_dh = currentNo.substr(1, 10);
}
else {
sf_dh = currentNo.substr(0, 11);
}
$(".label").each(function () {
if (currentNo.length == 12) {
if (num1 == 0) {
currentNo = "0" + sf_dh + num12;
}
else {
currentNo = sf_dh + String(num12);
}
num12 = setNum12(String(currentNo));
sf_dh++;
$(this).val($("#txt_E1").val() + currentNo + $("#txt_E2").val());
}
});
function setNum12(currentNo) {
var newBehindFirstBit;
var frontElevenBits = currentNo.substring(0, 11);
var behindFirstBit = currentNo.substr(11, 1);
var behindSecondBit = currentNo.substr(10, 1);
var behindThirdBit = currentNo.substr(9, 1);
if (behindSecondBit == "9") {
switch (behindThirdBit) {
/*µ?ÊýµÚÈýÎ?0,1,2,4,5,7,8 Ìøת 4 */
case "0":
case "1":
case "2":
case "4":
case "5":
case "7":
case "8":
behindFirstBit = behindFirstBit * 1 + 6;
behindFirstBit = behindFirstBit % 10;
break;
/*µ?ÊýµÚÈýÎ? 3,6 Ìøת 5 */
case "3":
case "6":
behindFirstBit = behindFirstBit * 1 + 5;
behindFirstBit = behindFirstBit % 10;
break;
/*µ?ÊýµÚÈýÎ? 9 Ìøת 7 */
case "9":
switch (currentNo.substring(8, 9)) {
case "0":
case "2":
case "4":
case "6":
case "8":
behindFirstBit = behindFirstBit * 1 + 3;
behindFirstBit = behindFirstBit % 10;
break;
case "1":
case "3":
case "5":
case "7":
behindFirstBit = behindFirstBit * 1 + 2;
behindFirstBit = behindFirstBit % 10;
break;
case "9":
switch (currentNo.substring(7, 8)) {
case "0":
case "3":
case "6":
behindFirstBit = behindFirstBit * 1 + 0;
behindFirstBit = behindFirstBit % 10;
break;
case "9":
switch (currentNo.substring(6, 7)) {
case "0":
behindFirstBit = behindFirstBit * 1 + 7;
behindFirstBit = behindFirstBit % 10;
break;
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
behindFirstBit = behindFirstBit * 1 + 6;
behindFirstBit = behindFirstBit % 10;
break;
case "9":
switch (currentNo.substring(5, 6)) {
case "0":
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
behindFirstBit = behindFirstBit * 1 + 3;
behindFirstBit = behindFirstBit % 10;
break;
case "9":
switch (currentNo.substring(4, 5)) {
case "0":
case "1":
case "2":
case "4":
case "5":
case "7":
case "8":
behindFirstBit = behindFirstBit * 1 + 9;
behindFirstBit = behindFirstBit % 10;
break;
case "3":
case "6":
behindFirstBit = behindFirstBit * 1 + 8;
behindFirstBit = behindFirstBit % 10;
break;
case "9":
switch (currentNo.substring(3, 4)) {
case "0":
case "2":
case "4":
case "6":
case "8":
behindFirstBit = behindFirstBit * 1 + 5;
behindFirstBit = behindFirstBit % 10;
break;
case "1":
case "3":
case "5":
case "7":
behindFirstBit = behindFirstBit * 1 + 4;
behindFirstBit = behindFirstBit % 10;
break;
}
}
}
}
break;
default:
behindFirstBit = behindFirstBit * 1 + 9;
behindFirstBit = behindFirstBit % 10;
break;
}
break;
}
}
}
else {
behindFirstBit = behindFirstBit * 1 + 9;
behindFirstBit = behindFirstBit % 10;
}
return behindFirstBit;
}
本文档为【顺丰单号生成规则】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。