123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640 |
- {Template header}
- <style type="text/css">
- .calendar{POSITION:absolute;}
- </style>
- <body>
- <div class="warp">
- <div class="title">修改订单</div>
- <div class="packing">
- <div class="control">
- <a href="javascript:void(0);" class="exptj">添 加</a>
- <a href="javascript:void(0);" class="expxg">修 改</a>
- <a href="javascript:void(0);" class="expsc">删 除</a>
- </div>
- <table class="datatitle data" border="0" style="border-collapse:collapse;">
- <tr>
- <td>商品名称</td>
- <td>数量</td>
- <td>单价</td>
- <td>总价</td>
- <td>币种</td>
- </tr>
- </table>
- <table class="datatext data" border="0" style="border-collapse:collapse;">
- {loop $fpdata as $val}
- <tr data-list="{$val['0']}">
- <td>{$val['1']}</td>
- <td>{$val['2']}</td>
- <td>{$val['3']}</td>
- <td>{$val['4']}</td>
- <td>CNY</td>
- <td class="none">{$val['5']}</td>
- <td class="none">{$val['6']}</td>
- <td class="none">{$val['7']}</td>
- </tr>
- {/loop}
- </table>
- </div>
- <ul class="setting">
- <div class="need">
- <li>
- <em>发货仓库:</em>
- <select name="warehouse" id="warehouse" class="select class">
- {loop warehouse(100) as $val}
- <option value="{$val['id']}" {if $fullorder_smt['type'] == $val['id']}selected="selected"{/if}>{$val['title']}</option>
- {/loop}</select>
- </li>
- <li>
- <em>结算币种:</em>
- <select name="currency" id="currency" class="select class">
- {loop typeclass(30) as $val}
- <option value="{$val['id']}" {if $fullorder_smt['currency'] == $val['id']}selected="selected"{/if}>{$val['title']}</option>
- {/loop}
- </select>
- </li>
- <li>
- <em>订单号:</em>
- <b class="orderinfo">{$fullorder_smt['orderinfo']}</b>
- </li>
- <li>
- <em>编号:</em>
- <b>{$fullorder_smt['number']}</b>
- </li>
- <!-- 独立站使用下单时间,平台使用付款时间 -->
- {if $is == 1}
- <li>
- <em>订单时间:</em>
- <b>{$dtime}</b>
- </li>
- {else}
- <li>
- <em>付款时间:</em>
- <b>{date('Y-m-d H:i:s',$fullorder_smt['buytime'])}</b>
- </li>
- {/if}
- <li>
- <em>预估到帐金额:</em>
- <b class="currencymoney budget">{$fullorder_smt['budget']}</b>
- </li>
- <li>
- <em>订单状态:</em>
- <select name="state" class="select class">
- {loop typeclass(29,en) as $val}
- <option value="{$val['id']}" {if $fullorder_smt['state'] == $val['id']}selected="selected"{/if}>{$val['spare']}</option>
- {/loop}
- <option value="283" {if $fullorder_smt['state'] == '283' || $fullorder_smt['state'] == '0'}selected="selected"{/if}>null</option>
- </select>
- </li>
- <li>
- <em>资金状态:</em>
- <select name="capital" class="select class">
- <option value="1" {if $fullorder_smt['capital'] == 1}selected="selected"{/if}>暂未支付</option>
- <option value="2" {if $fullorder_smt['capital'] == 2}selected="selected"{/if}>部分支付</option>
- <option value="3" {if $fullorder_smt['capital'] == 3}selected="selected"{/if}>全部支付</option>
- </select>
- </li>
- <!--
- <li class="lengththree">
- <em>运费:</em>
- <input name="freight" class="must currencymoney" value="{$fullorder_smt['freight']}" type="text"> <font class="currency">CNY</font>
- </li>
- -->
- <li class="lengthfour">
- <em>物流金额:</em>
- <input name="expressmoney" class="must currencymoney" value="{$fullorder_smt['expressmoney']}" type="text">
- </li>
- <li class="lengthfour">
- <em>补/退原额:</em>
- <input name="refundy" class="must currencymoney" value="{$fullorder_smt['refundy']}" type="text">
- </li>
- <li class="lengthfour">
- <em>补/退净额:</em>
- <input name="refundj" class="must currencymoney" value="{$fullorder_smt['refundj']}" type="text">
- </li>
- <li class="lengthfour">
- <em>订单金额:</em>
- <input name="shouldmoney" class="must currencymoney" value="{$fullorder_smt['shouldmoney']}" type="text" {if $fullorder_smt['shouldmoney'] > 200}style="color:#F00"{/if}>
- </li>
- <div class="refund {if $fullorder_smt['refundy'] == 0}none{/if}">
- <li>
- <em>日 期:</em>
- <input name="rtime" id="refundtime" value="{$fullorder_smt['rtime']!=0?date('Y-m-d',$fullorder_smt['rtime']):''}" type="text">
- </li>
- <li>
- <em>交易号:</em>
- <input name="rpaypal" value="{$fullorder_smt['rpaypal']}" type="text">
- </li>
- <li class="length">
- <em>原 因:</em>
- <input name="rtext" value="{$fullorder_smt['rtext']}" type="text">
- </li>
- </div>
- <li>
- <em>Bill Name:</em>
- <b>{$fullorder_smt['bname']}</b>
- </li>
- <li>
- <em>Ship Name:</em>
- <b>{$fullorder_smt['sname']}</b>
- </li>
- {if $is == 1}
- <!-- 独立站显示内容 -->
- <li class="length">
- <em>Bill Address:</em>
- <b {if $fullorder_smt['baddress'] != $fullorder_smt['saddress']}style="color:#09F"{/if}>{$fullorder_smt['baddress']}</b>
- </li>
- <li class="length">
- <em>Ship Address:</em>
- <b>{$fullorder_smt['saddress']}</b>
- </li>
- <li class="length">
- <em>商品名称:</em>
- <b>{$fullorder_smt['product']}</b>
- </li>
- {if $fullorder_smt['source'] != 1}
- <li class="length">
- <em>商品属性:</em>
- <b>{$fullorder_smt['parameter']}</b>
- </li>
- <li class="length">
- <em>SKU:</em>
- <b>{$fullorder_smt['issku']}</b>
- </li>
- {/if}
- <li>
- <em>Paypal交易号:</em>
- <b>{$fullorder_smt['paypal']}</b>
- </li>
- <li>
- <em>卖家保障:</em>
- <b style="color:#F00">{$fullorder_smt['guarantee']}</b>
- </li>
- <li>
- <em>Quantity:</em>
- <b {if $fullorder_smt['quantity'] > 1}style="color:#F00"{/if}>{$fullorder_smt['quantity']}</b>
- </li>
- <li>
- <em>运单号:</em>
- <input name="waybill" value="{$fullorder_smt['waybill']}" type="text">
- </li>
- <li class="length">
- <em>客户留言:</em>
- <b style="color:#F00">{$fullorder_smt['clientremarks']}</b>
- </li>
- {else}
- <li class="length">
- <em>运单号:</em>
- <input name="waybill" value="{$fullorder_smt['waybill']}" type="text">
- </li>
- {/if}
- <li class="length remark">
- <em>订单备注:</em>
- <textarea name="orderremarks">{$fullorder_smt['orderremarks']}</textarea>
- </li>
- <li class="length remark">
- <em>仓库品名:</em>
- <textarea name="shipremarks">{$fullorder_smt['shipremarks']}</textarea>
- </li>
- <li>
- <em>邮箱:</em>
- <input name="email" value="{$fullorder_smt['email']}" type="text">
- </li>
- <li>
- <em>国家:</em>
- <select name="country" class="select class">
- {loop $country as $val}
- <option value="{$val['id']}" {if $fullorder_smt['country'] == $val['id']}selected="selected"{/if}>{$val['name']}</option>
- {/loop}
- </select>
- </li>
- <li>
- <em>联系方式:</em>
- <input name="phone" class="must" value="{$fullorder_smt['phone']}" type="text">
- </li>
- <li>
- <em>省州:</em>
- <input value="{$fullorder_smt['province']}" name="province" type="text">
- </li>
- <li>
- <em>公司名:</em>
- <input name="client" value="{$fullorder_smt['client']}" type="text">
- </li>
- <li>
- <em>城市:</em>
- <input class="must" value="{$fullorder_smt['city']}" name="city" type="text">
- </li>
- <li>
- <em>收货人姓名:</em>
- <input name="name" class="must" value="{$fullorder_smt['name']}" type="text">
- </li>
- <li>
- <em>邮编:</em>
- <input value="{$fullorder_smt['zipcode']}" name="zipcode" type="text">
- </li>
- {if $is != 1}
- <li class="length">
- <em>街道:</em>
- <input value="{$fullorder_smt['street']}" name="street" type="text">
- </li>
- <li class="length">
- <em>地址2:</em>
- <input value="{$fullorder_smt['address2']}" name="address2" type="text">
- </li>
- {/if}
- <li class="length">
- <em>地址:</em>
- <input value="{$fullorder_smt['address']}" name="address" type="text">
- </li>
- <li>
- <em>申报品名:</em>
- <select name="sbpm" class="select class">
- <option value="Hair Sample" {if $fullorder_smt['sbpm'] == 'Hair Sample'}selected="selected"{/if}>Hair Sample</option>
- <option value="Synthetic Hair" {if $fullorder_smt['sbpm'] == 'Synthetic Hair'}selected="selected"{/if}>Synthetic Hair</option>
- </select>
- </li>
- <li>
- <em>中文品名:</em>
- <select name="zwpm" class="select class">
- <option value="假发" {if $fullorder_smt['zwpm'] == '假发'}selected="selected"{/if}>假发</option>
- <option value="化纤发" {if $fullorder_smt['zwpm'] == '化纤发'}selected="selected"{/if}>化纤发</option>
- </select>
- </li>
- <li class="lengththree">
- <em>条数:</em>
- <input name="ts" class="must" value="{$fullorder_smt['ts']}" type="text">
- </li>
- <li class="lengththree">
- <em>单条申报价:</em>
- <input name="dtsbjz" class="must" value="{$fullorder_smt['dtsbjz']}" type="text">
- </li>
- <li class="lengththree">
- <em>总申报价:</em>
- <input name="zsbjz" class="must" value="{$fullorder_smt['zsbjz']}" type="text" readonly style="background-color: #ebebe4;">
- </li>
- <li class="lengththree">
- <em>总重量:</em>
- <input name="zzl" class="must" value="{$fullorder_smt['zzl']}" type="text">
- </li>
- <li class="lengththree">
- <em>总件数:</em>
- <input name="zjs" class="must" value="{$fullorder_smt['zjs']}" type="text">
- </li>
- <li class="lengththree">
- <em>快递公司:</em>
- <select name="express" class="select class">
- {loop express(100) as $val}
- <option value="{$val['id']}" {if $fullorder_smt['express'] == $val['id']}selected="selected"{/if}>{$val['servicename']}</option>
- {/loop}
- </select>
- </li>
- <li class="lengththree">
- <em>打印类型:</em>
- <select name="printtype" class="printtype select class">
- <option value="1" {if $fullorder_smt['printtype'] == 1}selected="selected"{/if}>运单</option>
- <option value="2" {if $fullorder_smt['printtype'] == 2}selected="selected"{/if}>发货单</option>
- <option value="3" {if $fullorder_smt['printtype'] == 3}selected="selected"{/if}>不打印单据</option>
- </select>
- </li>
- <li class="lengththree">
- <em>发送留言:</em>
- <select name="msg" class="printtype select class">
- <option value="1" {if $fullorder_smt['msg'] == 1}selected="selected"{/if}>1</option>
- <option value="2" {if $fullorder_smt['msg'] == 2}selected="selected"{/if}>2</option>
- </select>
- </li>
- <li class="lengththree">
- <em>购买保险:</em>
- {if $fullorder_smt['print'] != 3}
- <input name="bx" class="must" value="{$fullorder_smt['bx']}" type="text"> USD
- {else}
- <b>{$fullorder_smt['bx']}</b> USD
- {/if}
- </li>
- <li class="lengththree">
- <em>是否签名:</em>
- {if $fullorder_smt['print'] != 3}
- <select name="qm" class="printtype select class">
- <option value="0" {if $fullorder_smt['qm'] == 0}selected="selected"{/if}>不需要</option>
- <option value="1" {if $fullorder_smt['qm'] == 1}selected="selected"{/if}>需要</option>
- </select>
- {else}
- <b>{if $fullorder_smt['qm'] == 0}不需要{else if $fullorder_smt['qm'] == 1}需要{/if}</b>
- {/if}
- </li>
- <li class="lengththree">
- <em>服务类型:</em>
- {if $fullorder_smt['print'] != 3}
- <select name="js" class="printtype select class">
- <option value="0" {if $fullorder_smt['js'] == 0}selected="selected"{/if}>FIRST CLASS</option>
- <option value="1" {if $fullorder_smt['js'] == 1}selected="selected"{/if}>PRIORITY</option>
- </select>
- {else}
- <b>{if $fullorder_smt['js'] == 0}FIRST CLASS{else if $fullorder_smt['js'] == 1}PRIORITY{/if}</b>
- {/if}
- </li>
- <li class="lengththree">
- <em>延迟发货:</em>
- {if $fullorder_smt['print'] != 3}
- <select name="yc" class="printtype select class">
- <option value="0" {if $fullorder_smt['yc'] == 0}selected="selected"{/if}>0</option>
- <option value="1" {if $fullorder_smt['yc'] == 1}selected="selected"{/if}>1</option>
- <option value="2" {if $fullorder_smt['yc'] == 2}selected="selected"{/if}>2</option>
- <option value="3" {if $fullorder_smt['yc'] == 3}selected="selected"{/if}>3</option>
- <option value="4" {if $fullorder_smt['yc'] == 4}selected="selected"{/if}>4</option>
- <option value="5" {if $fullorder_smt['yc'] == 5}selected="selected"{/if}>5</option>
- <option value="6" {if $fullorder_smt['yc'] == 6}selected="selected"{/if}>6</option>
- <option value="7" {if $fullorder_smt['yc'] == 7}selected="selected"{/if}>7</option>
- </select>
- {else}
- <b>{$fullorder_smt['yc']}</b>
- {/if}
- 天
- </li>
- <!--
- <li class="productdescription none">
- <em>产品描述:</em>
- <select name="productdescription" class="select class">
- </select>
- </li>
- <li class="customs none">
- <em>海关价值:</em>
- <input class="must" value="{$fullorder_smt['customs']}" name="customs" type="text"> <font class="currency">CNY</font>
- </li>
- -->
- <li>
- <em>审核状态:</em>
- <b>
- {if $fullorder_smt['review'] == 1}
- 未送审
- {else if $fullorder_smt['review'] == 2}
- 待审核
- {else if $fullorder_smt['review'] == 3}
- 不通过
- {else if $fullorder_smt['review'] == 4}
- 取消重审
- {else if $fullorder_smt['review'] == 5}
- 审核通过
- {else if $fullorder_smt['review'] == 6 && $fullorder_smt['reviewtime']!= ''}
- {date('Y-m-d H:i',$fullorder_smt['reviewtime'])}
- {/if}
- </b>
- </li>
- <li>
- <em>不合格原因</em>
- <b>{$fullorder_smt['failed']}</b>
- </li>
- <li class="lengththree">
- <em>打印状态:</em>
- <b>
- {if $fullorder_smt['print'] == 1}
- 不可打印
- {else if $fullorder_smt['print'] == 2}
- 未打印
- {else if $fullorder_smt['print'] == 3}
- 已打印
- {/if}
- </b>
- </li>
- <li class="lengththree">
- <em>打印时间:</em>
- <b>{if $fullorder_smt['printtime'] != 0}{date('Y-m-d H:i',$fullorder_smt['printtime'])}{else}无{/if}
- </li>
- <li class="lengththree">
- <em>打印次数:</em>
- <b>{$fullorder_smt['printnumber']}</b>
- </li>
- <li class="lengththree">
- <em>出库状态:</em>
- <b>
- {if $fullorder_smt['library'] == 1}
- 未出库
- {else if $fullorder_smt['library'] == 2}
- 已出库
- {else if $fullorder_smt['library'] == 3}
- 已退库
- {/if}
- </b>
- </li>
- <li class="lengththree">
- <em>出库时间:</em>
- <b>
- {if $fullorder_smt['librarytime'] != 0}{date('Y-m-d H:i',$fullorder_smt['librarytime'])}{else}无{/if}
- </b>
- </li>
- <li class="lengththree">
- {if $fullorder_smt['library'] == 3}
- <em>退库时间:</em>
- {else}
- <em>允许发货:</em>
- {/if}
- <b>
- {if $fullorder_smt['library'] == 3}
- {date('Y-m-d H:i',$fullorder_smt['retreattime'])}
- {else}
- {if $fullorder_smt['libraryconfirm'] == 1}
- 不允许出库
- {else if $fullorder_smt['libraryconfirm'] == 2}
- 允许出库
- {/if}
- {/if}
- </b>
- </li>
- <li class="length">
- <em>不能出库原因:</em>
- <b>{$fullorder_smt['librarynot']}</b>
- </li>
- <li class="length">
- <em>历史运单号:</em>
- <b>{$downwaybill}</b>
- </li>
- <li class="length">
- <em>退货信息:</em>
- <b class="return">{$fullorder_smt['return']}</b>
- </li>
- </div>
- <div style="clear:both;"></div>
- </ul>
- <div class="need"><input type="hidden" name="id" value="{$fullorder_smt['id']}" />
- <input type="hidden" name="purchase" value="{$fullorder_smt['purchase']}" />
- <input type="hidden" name="cost" value="{$fullorder_smt['cost']}" /></div>
- <input type="hidden" name="et" value="{isset($et) ?$et : '0'}" />
- <input type="hidden" name="shop" value="{$fullorder_smt['shop']}" />
- <div class="button">{if $power ==1}<font class="power" style="float:left;">重置此单打印、出库信息</font><font class="return" style="float:left;margin-left:20px;">生成退货信息</font>{/if}<font class="fullorderdata">提 交</font> <font class="fh">关 闭</font></div>
- </div>
- <div class="zm none"></div>
- <script type="text/javascript">var addedit="/fullorder_smt/edit/";var fh="/fullorder_smt/data/";
- function crcol(){
- if( $("select[name=country]").find("option:selected").val() == 192)
- {
- $("select[name=country]").css("color","#000");
- }
- else
- {
- $("select[name=country]").css("color","#F00");
- }
- };
- $("select[name=country]").change(function(){
- crcol();
- });
- $(document).ready(function() {
- $("#refundtime").calendar();
- crcol();
- var index = $("#currency").find("option:selected").text();
- $(".currency").text(index);
- $(".datatext tr").each(function() {
- //$(this).find("td:eq(9)").text(index);
- //currencymoney需要更改的价格
- });
- custom();
- var index = $("select[name='printtype']").find("option:selected").index();
- if(index == 0)
- {
- var e = $("select[name=express]").find("option:selected").val();
- var c = $("select[name=country]").find("option:selected").val();
- if(c != 192)
- {
- $("select[name=country]").css("color","#F00");
- }
- $.ajax({
- url: "/fullorder_smt/customs/",
- data: "e="+e+"&c="+c,
- type: "POST",
- dataType: "json",
- success: function(a) {
- if (a && a.success) {
- $("input[name=customs]").val(a.money);
- for(i=0;i<a.msg.length;i++)
- {
- $("select[name=productdescription]").append("<option value='"+a.msg[i]['id']+"'>"+a.msg[i]['title']+"</option>");
- }
- $(".productdescription").show();
- $(".customs").show();
- } else {
- $(".productdescription").hide();
- $(".customs").hide();
- }
- }
- });
-
- }else
- {
- $(".productdescription").hide();
- $(".customs").hide();
- }
- });
- 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%");
- });}
- //监听input开始
- $("input[name=dtsbjz]").bind("input propertychange",function(event){
- var ts = $("input[name=ts]").val()*1;
- var dtsbjz = $("input[name=dtsbjz]").val()*1;
- var num = ts*dtsbjz;
- console.log($("input[name=zsbjz]").val(num.toFixed(2)))
- });
- $("input[name=ts]").bind("input propertychange",function(event){
- var ts = $("input[name=ts]").val()*1;
- var dtsbjz = $("input[name=dtsbjz]").val()*1;
- var num = ts*dtsbjz;
- console.log($("input[name=zsbjz]").val(num.toFixed(2)))
- });
- $("input[name=refundy]").bind("input propertychange",function(event){
- var refundy = $("input[name=refundy]").val();
- if(refundy != 0)
- {
- $(".refund").show();
- $("input[name=rtime]").addClass("must");
- $("input[name=rpaypal]").addClass("must");
- $("input[name=rtext]").addClass("must");
- }
- else
- {
- $("input[name=rtime]").val("");
- $("input[name=rpaypal]").val("");
- $("input[name=rtext]").val("");
- $("input[name=rtime]").removeClass("must");
- $("input[name=rpaypal]").removeClass("must");
- $("input[name=rtext]").removeClass("must");
- $(".refund").hide();
- }
- });
- //监听input结束
- </script>
- <script src="{$theme}js/fullorder-addedit.js?v=202002060002"></script>
- <script type="text/javascript" src="{$theme}js/time.js"></script>
- {Template footer}
|