if(printRemind(selectPrintTemplate,selectOrders,orderStatus,isPreview))
//调用打印数据并打印
ajaxDataAndDoPrint(selectPrintTemplate,selectOrders,orderStatus,isPreview);
/*打印快递单 判断 头部 订单都选中 点击走秒 */
if(selectPrintTemplate&&selectOrders!=0){
var ciCik=$(".container li .btn-group button:eq(0)");
var index=3;
var col=ciCik.css('color');
var nowcolor=ciCik.css('backgroundColor');
var timer=setInterval(function(){
var txt='打印中'+index+'s'
ciCik.text(txt);
if(index<0){
ciCik.text('打印快递单');
ciCik.css('backgroundColor',nowcolor);
ciCik.attr('disabled',false);
ciCik.css('color',col);
clearInterval(timer);
}else{
index--;
ciCik.attr('disabled',true);
ciCik.css('color','red');
ciCik.css('backgroundColor',"#e1e6f6");
}
},1000)
}
05-11 13:34