123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518 |
- {Template header}
- <body>
- <div class="warp">
- <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>
- {if $user == 'admin' || $user == 'PIFA'}
- <a href="javascript:void(0);" class="window2" data-h="/specialstock/order" data-t="库存选择">库存选择</a>
- {/if}
- </div>
- <table class="datatitle data" border="0" style="border-collapse:collapse;">
- <tr>
- <td>商品名称</td>
- <td>数量</td>
- <td class="none">单价</td>
- <td class="none">总价</td>
- <td class="none">币种</td>
- <td class="none"></td>
- <td class="none"></td>
- <td class="none"></td>
- <td class="none"></td>
- <td class="none"></td>
- <td class="none"></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 class="none">{$val['3']}</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 val9">{if isset($val['9'])}{$val['9']}{else}0{/if}</td>
- <td class="czzd">{if $val['9'] != 'DNOTO'}<font class="jzzd">禁止占单</font>{else}<font class="yxzd">允许占单<font>{/if}</td>
- </tr>
- {/loop}
- </table>
- </div>
- <ul class="setting">
- <div class="need">
- <li>
- <em>订单号:</em>
- <input name="orderinfo" value="" type="text">
- </li>
- <li>
- <em>线下单类型:</em>
- <select name="sourcetype" class="select class">
- <option value="1">网红单</option>
- <option value="2">批发单</option>
- <option value="3">线下单</option>
- <option value="4">售后单</option>
- <option value="5">其它</option>
- </select>
- </li>
- <li>
- <em>发货仓库:</em>
- <select name="warehouse" id="warehouse" class="select class">
- {loop warehouse(100) as $val}
- <option value="{$val['id']}" data-e="{$val['express']}">{$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 $val['id'] == '219'}selected="selected"{/if}>{$val['title']}</option>
- {/loop}
- </select>
- </li>
- <li>
- <em>资金状态:</em>
- <select name="capital" class="select class">
- <option value="3" {if $fullordertt['capital'] == 3}selected="selected"{/if}>全部支付</option>
- <option value="1" {if $fullordertt['capital'] == 1}selected="selected"{/if}>暂未支付</option>
- <option value="2" {if $fullordertt['capital'] == 2}selected="selected"{/if}>部分支付</option>
- </select>
- </li>
- <li>
- <em>所属店铺:</em>
- <b>
- {loop usershop() as $val}
- {if $customertt['shop'] == $val['id']}{$val['shopname']}{/if}
- {/loop}
- </b>
- </li>
- <li>
- <em>订单金额:</em>
- <input name="shouldmoney" class="must currencymoney" value="" type="text" {if $fullordertt['shouldmoney'] > 200}style="color:#F00"{/if}> <font class="currency">CNY</font>
- </li>
- <li class="none">
- <em>运费:</em>
- <input name="freight" class="must currencymoney" value="0" type="text"> <font class="currency">CNY</font>
- </li>
- <li class="none">
- <em>物流金额:</em>
- <input name="expressmoney" class="must currencymoney" value="0" type="text"> <font class="currency">CNY</font>
- </li>
- <li>
- <em>丢件险:</em>
- <input name="insurance" class="must currencymoney" value="0" type="text"> <font class="currency">CNY</font>
- </li>
- <li class="length remark">
- <em>产品标题:</em>
- <textarea class="must" name="product"></textarea>
- </li>
- <li class="lengththree">
- <em>Quantity:</em>
- <input class="must" name="quantity" value="" type="text">
- </li>
- <li class="lengththree">
- <em>付款时间:</em>
- <input id="buytime" class="must" value="" name="buytime" type="text" >
- <i class="time fa fa-calendar fa-lg"></i>
- </li>
- <li class="length remark">
- <em>订单备注:</em>
- <textarea name="orderremarks"></textarea>
- </li>
- <li class="length remark">
- <em>仓库品名:</em>
- <textarea class="must" name="shipremarks"></textarea>
- </li>
- <li>
- <em>Bill Name:</em>
- <input name="bname" class="must" value="{$customertt['name']}" type="text">
- </li>
- <li>
- <em>Ship Name:</em>
- <input name="sname" class="must" value="{$customertt['name']}" type="text">
- </li>
- <li class="length remark">
- <em>Bill Address:</em>
- <input class="must" name="baddress" value="{$customertt['address']},{$customertt['city']},{$customertt['province']},{$customertt['zipcode']},{$bm['al']},{$customertt['phone']}" type="text">
- </li>
- <li class="length remark">
- <em>Ship Address:</em>
- <input class="must" name="saddress" value="{$customertt['address']},{$customertt['city']},{$customertt['province']},{$customertt['zipcode']},{$bm['al']},{$customertt['phone']}" type="text">
- </li>
- <li>
- <em>邮箱:</em>
- <input class="must" name="email" value="{$customertt['email']}" type="text">
- </li>
- <li>
- <em>国家:</em>
- <select name="country" class="select class">
- {loop $country as $val}
- <option value="{$val['id']}" {if $customertt['country'] == $val['id']}selected="selected"{/if}>{$val['name']}</option>
- {/loop}
- </select>
- </li>
- <li>
- <em>联系方式:</em>
- <input name="phone" class="must" value="{$customertt['phone']}" type="text">
- </li>
- <li>
- <em>省州:</em>
- <input class="must" value="{$customertt['province']}" name="province" type="text">
- </li>
- <li>
- <em>公司名:</em>
- <input class="must" name="client" value="{$customertt['name']}" type="text">
- </li>
- <li>
- <em>城市:</em>
- <input class="must" value="{$customertt['city']}" name="city" type="text">
- </li>
- <li>
- <em>收货人姓名:</em>
- <input name="name" class="must" value="{$customertt['name']}" type="text">
- </li>
- <li>
- <em>邮编:</em>
- <input value="{$customertt['zipcode']}" name="zipcode" type="text">
- </li>
- {if $is == 5}
- <!--
- <li class="length">
- <em>街道:</em>
- <input value="{$customertt['street']}" name="street" type="text">
- </li>
- -->
- {/if}
- <li class="length">
- <em>地址2:</em>
- <input value="{$customertt['address2']}" name="address2" type="text">
- </li>
- <li class="length">
- <em>地址1:</em>
- <input value="{$customertt['address']}" name="address" type="text">
- </li>
- <li class="lengththree">
- <em>申报品名:</em>
- <select name="sbpm" class="select class">
- {loop customsdeclaration(50) as $val}
- <option value="{$val['ename']}">{$val['ename']}</option>
- {/loop}
- </select>
- </li>
- <li class="lengththree">
- <em>中文品名:</em>
- <select name="zwpm" class="select class">
- {loop customsdeclaration(50) as $val}
- <option value="{$val['zname']}">{$val['zname']}</option>
- {/loop}
- </select>
- </li>
- <li class="lengththree">
- <em>海关编码:</em>
- <select name="hgbm" class="select class">
- {loop customsdeclaration(50) as $val}
- <option value="{$val['bname']}">{$val['bname']}</option>
- {/loop}
- </select>
- </li>
- <li class="lengththree">
- <em>条数:</em>
- <input name="ts" class="must" value="" type="text">
- </li>
- <li class="lengththree">
- <em>单条申报价:</em>
- <input name="dtsbjz" class="must" value="" type="text">
- </li>
- <li class="lengththree">
- <em>总申报价:</em>
- <input name="zsbjz" class="must" value="0.00" type="text">
- </li>
- <li class="lengththree">
- <em>总重量:</em>
- <input name="zzl" class="must" value="0.4" type="text">
- </li>
- <li class="lengththree">
- <em>总件数:</em>
- <input name="zjs" class="must" value="1" type="text" readonly style="background-color: #ebebe4;">
- </li>
- <li class="lengththree">
- <em>快递方式:</em>
- <select name="express" class="select class">
- {loop express(100) as $val}
- <option value="{$val['id']}" data-type="{$val['type']}" {if $fullordertt['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">运单</option>
- <option value="2">发货单</option>
- <option value="3">不打印单据</option>
- </select>
- </li>
- <li class="lengththree">
- <div class="none">
- <em>发送留言:</em>
- <select name="msg" class="printtype select class">
- <option value="1">1</option>
- <option value="2">2</option>
- </select>
- </div>
- </li>
- <li class="lengththree">
- <em>IOSS:</em>
- <select name="ioss" class="select class">
- <option value="">未选择</option>
- {loop ioss(100) as $val}
- <option value="{$val['ioss']}">{$val['title']}</option>
- {/loop}
- </select>
- </li>
- <li class="lengththree">
- <em>购买保险:</em>
- <input name="bx" class="must" value="{if $fullordertt['bx']}{$fullordertt['bx']}{else}0.00{/if}" type="text"> USD
- </li>
- <li class="lengththree">
- <em>是否签名:</em>
- <select name="qm" class="printtype select class">
- <option value="0">不需要</option>
- <option value="1">需要</option>
- </select>
- </li>
- <li class="lengththree">
- <em>服务类型:</em>
- <select name="js" class="printtype select class">
- <option value="0" {if $fullordertt['js'] == 0}selected="selected"{/if}>Ground Advantage</option>
- <option value="1" {if $fullordertt['js'] == 1}selected="selected"{/if}>PRIORITY</option>
- <option value="2" {if $fullordertt['js'] == 2}selected="selected"{/if}>EXPRESS</option>
- </select>
- </li>
- <li class="lengththree none">
- <em>延迟发货:</em>
- <select name="yc" class="printtype select class">
- <option value="0" {if $fullordertt['yc'] == 0}selected="selected"{/if}>0</option>
- <option value="1" {if $fullordertt['yc'] == 1}selected="selected"{/if}>1</option>
- <option value="2" {if $fullordertt['yc'] == 2}selected="selected"{/if}>2</option>
- <option value="3" {if $fullordertt['yc'] == 3}selected="selected"{/if}>3</option>
- <option value="4" {if $fullordertt['yc'] == 4}selected="selected"{/if}>4</option>
- <option value="5" {if $fullordertt['yc'] == 5}selected="selected"{/if}>5</option>
- <option value="6" {if $fullordertt['yc'] == 6}selected="selected"{/if}>6</option>
- <option value="7" {if $fullordertt['yc'] == 7}selected="selected"{/if}>7</option>
- </select>
- 天
- </li>
- <!--
- <li class="productdescription none">
- <em>产品描述:</em>
- <select name="productdescription" class="select class">
- </select>
- </li>
- <li class="customs none">
- <em>海关价值:</em>
- <input value="" name="customs" type="text"> <font class="currency">CNY</font>
- </li>
- -->
- </div>
- <div style="clear:both;"></div>
- </ul>
- <div class="need"><input type="hidden" name="id" value="" />
- <input type="hidden" name="purchase" value="" />
- <input type="hidden" name="cost" value="" />
- <input type="hidden" name="et" value="{isset($et) ?$et : '0'}" />
- <input type="hidden" name="jgyc" value="1" />
- <input type="hidden" name="customerttid" value="{$customertt['id']}" />
- <input type="hidden" name="shop" value="{$customertt['shop']}" />
- <input type="hidden" name="mdedit" value="" />
- </div>
- <div class="button"><font class="yzaddress" style="margin-right:160px;">USPS验证地址</font> <font class="fullorderdata-ts">保 存</font> <font class="fh">关 闭</font></div>
- </div>
- <div class="none fullorderdata"></div>
- <div class="zm none"></div>
- <script type="text/javascript">
- var addedit="/customertt/mdedit/";
- var fh="/fullordertt";
- $(document).ready(function() {
- if($("select[name='express']").find("option:selected").val() == '24')//联邦的话替换签名选项
- {
- $("select[name='qm']").html('<option value="0" {if $fullordertt["qm"] == 0}selected="selected"{/if}>默认</option><option value="1" {if $fullordertt["qm"] == 1}selected="selected"{/if}>成人签名</option>');
- }
- else
- {
- $("select[name='qm']").html('<option value="0" {if $fullordertt["qm"] == 0}selected="selected"{/if}>不需要</option><option value="1" {if $fullordertt["qm"] == 1}selected="selected"{/if}>需要</option>');
- }
- $("#buytime").calendar();$("#buytimeCalendar").css('position','absolute')
- 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();
- $.ajax({
- url: "/fullordertt/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结束
- $(".window2").click(function() {
- var h = $(this).data("h");var t = $(this).data("t");
- window.parent.window2(t,h);
- });
-
- $('.fullorderdata-ts').click(function()
- {
- var tjje = $("input[name='shouldmoney']").val();
- var tjwl = $("select[name='express']").children("option:selected").val();
- var tjqm = $("select[name='qm']").children("option:selected").val();
- var fwlx = $("select[name='js']").children("option:selected").val();
- if(tjje > 750 && (tjwl == 24 || tjwl == 31 || tjwl == 2) && tjqm != 1)
- {
- layx.confirm('提示','此金额和物流可以选择购买“签名”服务',null,{
- buttons:[
- {
- label:'操作签名',
- callback:function(id, button, event){
- layx.destroy(id);
- }
- },
- {
- label:'保存信息',
- callback:function(id, button, event){
- $('.fullorderdata').click();
- layx.destroy(id);
- }
- }
- ]
- });
- }
- else if(fwlx == 2)
- {
- layx.confirm('提示','确定要发“收费加急”吗?(请提前收取加急运费)',null,{
- buttons:[
- {
- label:'确定',
- callback:function(id, button, event){
- $('.fullorderdata').click();
- layx.destroy(id);
- }
- },
- {
- label:'取消',
- callback:function(id, button, event){
- layx.destroy(id);
- }
- }
- ]
- });
- }
- else
- {
- $('.fullorderdata').click();
- }
- });
- </script>
- <script type="text/javascript" src="{$theme}js/time.js"></script>
- <script src="{$theme}js/fullorder-addedit.js?v=202309060001"></script>
- {Template footer}
|