| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 | {Template header}<style type="text/css">.calendar{POSITION:absolute;}</style><body><div class="warp"><div class="title"></div><div class="packing"><table class="datatext data" border="0" style="border-collapse:collapse;">{loop $fpdata as $x=>$val}<tr data-list="{$val['0']}"><td height="100"><p>{$val['1']}</p><p><em>{if $val['2'] == '0'}<font data-id='0'></font><font class='fuoutcz fuout fuout1' data-id='1' data-w='{$val['w']}' data-x='{$x}'>加入库存</font><font class='fuoutcz fuout fuout2' data-id='2' data-w='{$val['w']}' data-x='{$x}'>退回国内</font><font class='fuoutcz fuout fuout3' data-id='3' data-w='{$val['w']}' data-x='{$x}'>美仓销售</font><font class='fuoutcz fuout fuout4' data-id='4' data-w='{$val['w']}' data-x='{$x}'>货物错误</font>{else if $val['2'] == '1'}<font class='fuout fuout1' data-id='1'>加入库存</font>{else if $val['2'] == '2'}<font class='fuout fuout2' data-id='2'>退回国内</font>{else if $val['2'] == '3'}<font class='fuout fuout3' data-id='3'>美仓销售</font>{else if $val['2'] == '4'}<font class='fuout fuout4' data-id='4'>货物错误</font>{else if $val['2'] == '5'}<font class='fuout fuout5' data-id='5'>待入库存</font>{/if}</em><input value="{$val['3']}" name="val3" type="text" placeholder="货物状态及状态描述" class="fuloutinput"></p></td><td class="none"></td><td class="none">{$val['4']}</td><td class="none">CNY</td><td class="none">{$val['5']}</td><td class="none">{$val['6']}</td><td class="none">{$val['7']}</td><td class="none">{$val['8']}</td><td class="none">{if isset($val['9'])}{$val['9']}{else}0{/if}</td><th></th></tr>{/loop}</table></div><ul class="setting"><li class="need"><em>退件物流方式:</em><select name="thexpress" class="select class"><option value="" {if $fullorder['thexpress'] == ''}selected="selected"{/if}>请选择</option><option value="USPS" {if $fullorder['thexpress'] == 'USPS'}selected="selected"{/if}>USPS</option><option value="UPS" {if $fullorder['thexpress'] == 'UPS'}selected="selected"{/if}>UPS</option><option value="Fedex" {if $fullorder['thexpress'] == 'Fedex'}selected="selected"{/if}>Fedex</option><option value="DHL" {if $fullorder['thexpress'] == 'DHL'}selected="selected"{/if}>DHL</option><option value="Royal Mail" {if $fullorder['thexpress'] == 'Royal Mail'}selected="selected"{/if}>Royal Mail</option><option value="Canada Post" {if $fullorder['thexpress'] == 'Canada Post'}selected="selected"{/if}>Canada Post</option><option value="France Post" {if $fullorder['thexpress'] == 'France Post'}selected="selected"{/if}>France Post</option><option value="Germany Post" {if $fullorder['thexpress'] == 'Germany Post'}selected="selected"{/if}>Germany Post</option><option value="Australia Post" {if $fullorder['thexpress'] == 'Australia Post'}selected="selected"{/if}>Australia Post</option><option value="TNT" {if $fullorder['thexpress'] == 'TNT'}selected="selected"{/if}>TNT</option><option value="邮政" {if $fullorder['thexpress'] == '邮政'}selected="selected"{/if}>邮政</option><option value="其它" {if $fullorder['thexpress'] == '其它'}selected="selected"{/if}>其它</option></select></li><li class="need"><em>退回运单号:</em><input value="{$fullorder['torderinfo']}" name="torderinfo" type="text" placeholder="输入或点击后扫码" ></li><li class="length need" style="padding-bottom:15px;"><em>详情:</em><textarea name="content" style="height: 120px;">{$fullorder['content']}</textarea></li><li><em>退货登记时间:</em><b>{date('Y-m-d H:i:s',$fullorder['stime'])}</b></li><li></li><li><em>店铺:</em><b>{$shop}</b></li><li><em>运单号:</em><b>{$fullorder['waybill']}</b></li><li><em>订单号:</em><b class="orderinfo">{$fullorder['orderinfo']}</b></li><li><em>编号:</em><b>{$fullorder['number']}</b></li><li><em>邮箱:</em><b>{$fullorder['email']}</b></li><li><em>国家:</em><b>{$country}</b></li><li><em>联系方式:</em><b>{$fullorder['country']}</b></li><li><em>省州:</em><b>{$fullorder['province']}</b></li><li><em>公司名:</em><b>{$fullorder['client']}</b></li><li><em>城市:</em><b>{$fullorder['city']}</b></li><li><em>收货人姓名:</em><b>{$fullorder['name']}</b></li><li><em>邮编:</em><b>{$fullorder['zipcode']}</b></li><li class="length"><em>地址2:</em><b>{$fullorder['address2']}</b></li><li class="length"><em>地址:</em><b>{$fullorder['address']}</b></li><li><em>出库时间:</em><b>{if $fullorder['librarytime'] != 0}{date('Y-m-d H:i',$fullorder['librarytime'])}{else}无{/if}</b></li><li><em>扫描时间:</em><b>{$fullorder['stime']}</b></li><div style="clear:both;"></div></ul></div><div class="need"><input type="hidden" name="id" value="{$fullorder['id']}" /><input type="hidden" name="number" value="{$fullorder['number']}" /><div class="button"><font class="fullorderdata123">提 交</font> <font class="fh">关 闭</font></div></div><div class="zm none"></div><script type="text/javascript">var addedit="/fullorderout/edit/";var fh="/fullorderout";$(".datatext .fuoutcz").click(function() {$(".express p:eq(0)").html("是否确定执行'"+$(this).html()+"'操作?操作后将无法撤回");$(".express p:eq(1)").html("<font class='tjfout' data-czid='"+$(this).data("id")+"' data-whlabel='"+$(this).data("w")+"' data-x='"+$(this).data("x")+"'>确 定</font><font class='esc'>取 消</font>");$(".express").show();});function custom() {var num = $('.packing .datatitle tr').children().length;$('.data tr td').css("width","5%");$(".data tr").each(function() {$(this).find('td:eq(0)').css("width","30%");});} $(".fullorderdata123").click(function() {    var f = "";    var e = "";	var w = "";	var fpcount = "";    $(".need .select").each(function() {        f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";    });	$(".need input:text").each(function() {		var str = $(this).val().replace(/\+/g,"%2B");		var str = str.replace(/&/g,"%26");        f = f + $(this).attr("name") + "=" + str + "&";    });	$(".need input:hidden").each(function() {        f = f + $(this).attr("name") + "=" + $(this).val() + "&";    });	$(".need textarea").each(function() {		var str2 = $(this).val().replace(/\+/g,"%2B");		var str2 = str2.replace(/&/g,"%26");        f = f + $(this).attr("name") + "=" + str2 + "&";    });	var tdweight = 0;	$(".datatext tr").each(function() {		var cc = "";var listqc = "";var data = "";var t = "";var fpdg = "";		var td0 = $(this).find("td:eq(0)").text().replace(/\+/g,"%2B");		var td0 = td0.replace(/&/g,"%26");		var td8 = '';		if($(this).find("td:eq(8)").length > 0)		{			if($(this).find("td:eq(8)").text() == '')			{				td8 = '0';			}			else			{		       td8 = $(this).find("td:eq(8)").text();			}		}		else		{			td8 = '0';		}        e = e + $(this).attr("data-list")+ "|" + td0 + "|" + $(this).find("td:eq(0)").find("em font").data("id") + "|" + $(this).find("input").val() + "|" + $(this).find("td:eq(3)").text() + "|" + $(this).find("td:eq(5)").text() + "|" + $(this).find("td:eq(6)").text() + "|" + $(this).find("td:eq(7)").text() + "|" + td8 + "|" + $(this).find("td:eq(9)").text() + ";";		tdweight = tdweight + td8*1;		var list = $(this).attr("data-list").replace(/\-(0|163|164|165|166)\-/,'-');		cc = list.split(",");		listqc = list.replace(/\d{1,3}\,/,'');		listqc = listqc.substring(0,listqc.length-1);		data = listqc.split("-");	    for(i=1;i<data.length;i++)	    {			if(i == 2)			{				if(cc[0] != list)				{				    t = t +data[i] + cc[0];				    fpdg  = fpdg + '-' + data[i] + '-' + cc[0];				}				else				{					t = t +data[i];				    fpdg  = fpdg + '-' + data[i];				}			}			else			{				t = t +data[i];				fpdg  = fpdg + '-' + data[i];			}	    }		w = w + t + '-' + $(this).find("td:eq(0)").find("em font").data("id") + '-' + $(this).find("td:eq(8)").text() + '|';		fpcount = fpcount + fpdg + '-|';    });	f = f + "jweight=" + tdweight + "&";	e = e.replace(/(有可用特殊库存|已选择特殊库存|加入库存退回国内美仓销售货物错误|加入库存|退回国内|美仓销售|货物错误|待入库存)/g,'');	e = e.replace(/( |\s)/g,'_');	f = f + "whlabel=|" + w + "&fpdata=" + encodeURI(e) + "&";		f = f + "fpcount=" + fpcount + "&";		f = f + "budget=" + $(".budget").text() + "&";    var ab = 0;    $(".need .must").each(function() {        if ($.trim($(this).val()).length == 0) {            $(this).css("border", "1px solid #F66");            ab = ab + 1;        }    });    if (ab > 0) {        $(".ts p").text("红框为必填项");        $(".ts").show();        setTimeout('$(".ts").fadeOut()', 600);        return false;    }	//限制必须提交产品详细列表	if (e == '') {        $(".ts p").text("必须添加订单详细信息!");        $(".ts").show();        setTimeout('$(".ts").fadeOut()', 800);        return false;    }	else	{	/**	if($("select[name=warehouse]").find("option:selected").val() == "5" || $("select[name=warehouse]").find("option:selected").val() == "6")	{		 var yzdata = {        warehouse: $("select[name=warehouse]").find("option:selected").val(),		shop: $("input[name=shop]").val(),		id: $("input[name=id]").val(),		whlabel: "|" + w              };		$.ajax({        url: "/whlabel/kcyz/",        data: yzdata,        type: "POST",        dataType: "json",        success: function(a) {            if (a && a.success) {              zttj(f);            } else {				if(a.t == 1)				{					 layx.alert('错误',a.msg,function(id,button){},{dialogIcon:'error'});				}                else				{					layx.alert('错误',a.msg,function(id,button){},{dialogIcon:'error'});					for(i=0;i<a.error.length;i++)				{					$(".datatext tr:eq("+a.error[i]+") td:eq(0)").css("color","red");				}				}            }        }    });	}	else	{		zttj(f);	}	**/	zttj(f);	}});</script><script src="{$theme}js/fullorder-addedit.js?v=202003200001"></script><script type="text/javascript" src="{$theme}js/time.js"></script>{Template footer}
 |