|
@@ -0,0 +1,384 @@
|
|
|
+<!DOCTYPE HTML>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
+ <meta name="viewport"
|
|
|
+ content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
|
|
|
+ <meta http-equiv="Cache-Control" content="no-siteapp"/>
|
|
|
+<#include "/base/add_base.ftl">
|
|
|
+ <link rel="stylesheet" type="text/css" href="${path}/common/lib/layui/css/layui.css" />
|
|
|
+ <style>
|
|
|
+ .tit{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
|
|
|
+ .tit:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
|
|
|
+ .tit-2{position: relative;text-align: left;font-size: 16px;padding-left: 10px;color: #50a2ea;}
|
|
|
+ .tit-2:after{content: '';position: absolute;left: 0;top: 50%;height: 6px;width: 6px;border-radius: 6px;margin-top: -3px; background-color: #32a3d8;}
|
|
|
+ #province select{margin-right:10px; width:100px;height: 31px;-webkit-appearance:none !important;appearance:none;background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;padding-left:3px;padding-right: 25px;}
|
|
|
+ .ac_results li a {white-space: nowrap;text-decoration:none;display:block;color:#05a;padding:1px 3px}
|
|
|
+ .ac_results li {border:1px solid #fff}
|
|
|
+ .ac_results li a span {float:right}
|
|
|
+ .select-box{background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;}
|
|
|
+ .select-box select{-webkit-appearance:none !important;background-color: transparent; appearance:none;padding-right: 15px;}
|
|
|
+ .dalog-ask{position: absolute;left:60%;top:0;-webkit-transform: translateY(-30%);transform: translateY(-30%);display: none;background-color: #fff;z-index: 10;}
|
|
|
+ .tag{ width:300px; min-height:300px; border:1px solid #32a3d8; position:relative;background-color: #fff;line-height: 1.5;padding: 10px 12px;}
|
|
|
+ .tag em{display:block; border-width:15px; position:absolute; top:30%; left:-30px;border-style:solid dashed dashed; border-color:transparent #32a3d8 transparent transparent;font-size:0; line-height:0;}
|
|
|
+ .time-line-list{list-style: none;width: 100%;margin-left: -20px;}
|
|
|
+ .time-line-list>li{position: relative;float: left; text-align: center;width: 100px;overflow: hidden;white-space: nowrap;word-break: break-all;padding: 2px 0;}
|
|
|
+ .time-line-list .number{display: inline-block; padding: 2px; background: #32a3d8;border: 2px solid #fff;box-shadow:0 0 0 1px #32a3d8;width: 20px;height: 20px;color: #fff;line-height: 20px;border-radius: 50%;}
|
|
|
+ .time-line-list>li:before{content:'';position: absolute;height: 1px;width: 30%;right:0;top: 15px; background-color: #32a3d8;}
|
|
|
+ .time-line-list>li:after{content: '';position: absolute;height: 1px;width: 30%;left: 0;top: 15px;background:#32a3d8;}
|
|
|
+ .time-line-list>li:first-child:after,.time-line-list>li:last-child:before{display: none;}
|
|
|
+ .time-line-list .arrow{border-width:7px; position:absolute; left:25%; top:9px;border-style:solid dashed dashed; border-color:transparent transparent transparent #32a3d8;font-size:0; line-height:0;}
|
|
|
+ .time-line-list>li:first-child .arrow{display: none;}
|
|
|
+ .table-bg th{background-color: #e2f6ff;}
|
|
|
+ .update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
|
|
|
+ .msg-phone{height: 35px;line-height: 35px;}
|
|
|
+ .col-sm-1{width: 150px;}
|
|
|
+
|
|
|
+ .all_down{text-decoration: underline;color: #00c;}
|
|
|
+ </style>
|
|
|
+ <title>绑定订单 - 财务管理 - RST</title>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<nav class="breadcrumb"><i class="Hui-iconfont"></i> 首页
|
|
|
+ <span class="c-gray en">/</span> 财务管理
|
|
|
+ <span class="c-gray en">/</span> 绑定订单
|
|
|
+ <a class="btn radius r"
|
|
|
+ href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a>
|
|
|
+ <a class="btn radius r"
|
|
|
+ href="javascript:history.back(-1);" title="后退"><i class="Hui-iconfont"></i></a>
|
|
|
+</nav>
|
|
|
+<article class="page-container" style="padding: 10px;">
|
|
|
+ <div class="pd-20 cl" style="padding-top: 0px;">
|
|
|
+ <form action="${path}/admin/financial_receipt/claim_order" method="post" class="form form-horizontal" id="form-fr" onkeydown="if(event.keyCode==13)return false;">
|
|
|
+
|
|
|
+ <input type="hidden" id="frId" name="frId" value="${fr.frId!'0'}">
|
|
|
+ <input type="hidden" id="dealerId" name="dealerId" value="${fr.dealerId!'0'}">
|
|
|
+ <input type="hidden" id="claimOrderJson" name="claimOrderJson" value="">
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-3">
|
|
|
+ <div class="tit-2">回款信息</div>
|
|
|
+ </label>
|
|
|
+ <div class="formControls col-9">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1">所属客户:</label>
|
|
|
+ <div class="formControls col-5 col-sm-5" style="padding-top: 3px;">
|
|
|
+ ${fr.dealerName!''}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1">回款账号:</label>
|
|
|
+ <div class="formControls col-5 col-sm-5" style="padding-top: 3px;">
|
|
|
+ ${fr.frBank!''}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1">回款金额:</label>
|
|
|
+ <div class="formControls col-5 col-sm-5" style="padding-top: 3px;">
|
|
|
+ ${((fr.frAmount/100)?string("0.##"))!''}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1">打款备注:</label>
|
|
|
+ <div class="formControls col-5 col-sm-5" style="padding-top: 3px;">
|
|
|
+ ${fr.frBank!''}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-3">
|
|
|
+ <div class="tit-2">订单信息</div>
|
|
|
+ </label>
|
|
|
+ <div class="formControls col-9">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <div class="formControls col-12 col-sm-12" >
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th>待结算金额</th>
|
|
|
+ <th>交易号</th>
|
|
|
+ <th>所属店铺</th>
|
|
|
+ <th>产品</th>
|
|
|
+ <th>颜色</th>
|
|
|
+ <th>总金额</th>
|
|
|
+ <th>数量</th>
|
|
|
+ <th>下单日期</th>
|
|
|
+ <th>下单客服</th>
|
|
|
+ <th>收货人信息</th>
|
|
|
+ <th>收货人地址</th>
|
|
|
+ <th>操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="orderAll">
|
|
|
+ <#if claimOrderList?? && (claimOrderList?size > 0) >
|
|
|
+ <#list claimOrderList as claimOrder>
|
|
|
+ <#if claimOrder.claimOrderType == 1 >
|
|
|
+ <tr class="text-c order_item itemNum_order_${claimOrder_index}" orderItem="1">
|
|
|
+ <input type="hidden" class="itemId" value="${claimOrder.itemId}">
|
|
|
+ <input type="hidden" class="itemProductDiscount" value="${((claimOrder.frPrice/100/claimOrder.claimOrderNum)?string("0.##"))!''}">
|
|
|
+ <td class="itemTotal">${((claimOrder.frPrice/100)?string("0.##"))!''}</td>
|
|
|
+ <td>${claimOrder.salesDealCode!''}</td>
|
|
|
+ <td>${claimOrder.storeName!''}</td>
|
|
|
+ <td>${claimOrder.itemProductName!''}</td>
|
|
|
+ <td>${claimOrder.itemProductColor!''}</td>
|
|
|
+ <td>${((claimOrder.frPrice/100)?string("0.##"))!''}</td>
|
|
|
+ <td class="itemNum">${claimOrder.claimOrderNum!'0'}</td>
|
|
|
+ <td>${(claimOrder.salesPayTime?string("yyyy-MM-dd"))!''}</td>
|
|
|
+ <td>${claimOrder.salesAdminName!''}</td>
|
|
|
+ <td>${claimOrder.salesAddressName!''}<br>${claimOrder.salesAddressTel!''}</td>
|
|
|
+
|
|
|
+ <td alt="${claimOrder.salesAddressInfo!''}" title="${claimOrder.salesAddressInfo!''}">
|
|
|
+ <#if claimOrder.salesAddressInfo?length gt 15>
|
|
|
+ ${claimOrder.salesAddressInfo?substring(0,12)}...
|
|
|
+ <#else>
|
|
|
+ ${claimOrder.salesAddressInfo!''}
|
|
|
+ </#if>
|
|
|
+ </td>
|
|
|
+ <td>-</td>
|
|
|
+ </tr>
|
|
|
+ </#if>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-3">
|
|
|
+ <div class="tit-2">退货信息</div>
|
|
|
+ </label>
|
|
|
+ <div class="formControls col-9">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <div class="formControls col-12 col-sm-12" >
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th>待结算金额</th>
|
|
|
+ <th>交易号</th>
|
|
|
+ <th>所属店铺</th>
|
|
|
+ <th>产品</th>
|
|
|
+ <th>颜色</th>
|
|
|
+ <th>总金额</th>
|
|
|
+ <th>产品数量</th>
|
|
|
+ <th>退货数量</th>
|
|
|
+ <th>下单日期</th>
|
|
|
+ <th>下单客服</th>
|
|
|
+ <th>收货人信息</th>
|
|
|
+ <th>收货人地址</th>
|
|
|
+ <th>操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="returnAll">
|
|
|
+ <#if claimOrderList?? && (claimOrderList?size > 0) >
|
|
|
+ <#list claimOrderList as claimOrder>
|
|
|
+ <#if claimOrder.claimOrderType == 2 >
|
|
|
+ <tr class="text-c order_item itemNum_return_${claimOrder_index}" orderItem="2">
|
|
|
+ <input type="hidden" class="itemId" value="${claimOrder.itemId}">
|
|
|
+ <input type="hidden" class="itemProductDiscount" value="${((claimOrder.itemProductDiscount/100/claimOrder.claimOrderNum)?string("0.##"))!''}">
|
|
|
+ <td class="itemTotal">${((claimOrder.frPrice/100)?string("0.##"))!''}</td>
|
|
|
+ <td>${claimOrder.salesDealCode!''}</td>
|
|
|
+ <td>${claimOrder.storeName!''}</td>
|
|
|
+ <td>${claimOrder.itemProductName!''}</td>
|
|
|
+ <td>${claimOrder.itemProductColor!''}</td>
|
|
|
+ <td>${((claimOrder.frPrice/100*-1)?string("0.##"))!''}</td>
|
|
|
+ <td class="itemNum">${claimOrder.itemNum!'0'}</td>
|
|
|
+ <td style="width: 70px;"><input type="text" style="text-align: center;" class="input-text input-number decimal_input itemReturnNum" value="${claimOrder.claimOrderNum}" onkeyup="keyFun($(this),${claimOrder.itemNum!'999'},0)" onpaste="keyFun($(this),${claimOrder.itemNum!'999'},0)" ></td>
|
|
|
+ <td>${(claimOrder.salesPayTime?string("yyyy-MM-dd"))!''}</td>
|
|
|
+ <td>${claimOrder.salesAdminName!''}</td>
|
|
|
+ <td>${claimOrder.salesAddressName!''}<br>${claimOrder.salesAddressTel!''}</td>
|
|
|
+ <td alt="${claimOrder.salesAddressInfo!''}" title="${claimOrder.salesAddressInfo!''}">
|
|
|
+ <#if claimOrder.salesAddressInfo?length gt 15>
|
|
|
+ ${claimOrder.salesAddressInfo?substring(0,12)}...
|
|
|
+ <#else>
|
|
|
+ ${claimOrder.salesAddressInfo!''}
|
|
|
+ </#if>
|
|
|
+ </td>
|
|
|
+ <td>-</td>
|
|
|
+ </tr>
|
|
|
+ </#if>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-3">
|
|
|
+ <div class="tit-2">退货邮费</div>
|
|
|
+ </label>
|
|
|
+ <div class="formControls col-9">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <div class="formControls col-12 col-sm-12" >
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th width="30">待结算金额</th>
|
|
|
+ <th width="50">邮费金额</th>
|
|
|
+ <th width="50">支付宝姓名</th>
|
|
|
+ <th width="100">支付宝账号</th>
|
|
|
+ <th width="30">转账类型</th>
|
|
|
+ <th width="30">状态</th>
|
|
|
+ <th width="60">备注</th>
|
|
|
+ <th width="20">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="postageAll">
|
|
|
+ <#if claimOrderList?? && (claimOrderList?size > 0) >
|
|
|
+ <#list claimOrderList as claimOrder>
|
|
|
+ <#if claimOrder.claimOrderType == 3 >
|
|
|
+ <tr class="text-c order_item itemNum_post_${claimOrder_index}" orderitem="3">
|
|
|
+ <input type="hidden" class="itemId" value="${claimOrder.itemId}">
|
|
|
+ <input type="hidden" class="postageAmount" value="${((claimOrder.frPrice/100)?string("0.##"))!''}">
|
|
|
+ <td class="itemTotal">${((claimOrder.frPrice/100)?string("0.##"))!''}</td>
|
|
|
+ <td>${((claimOrder.frPrice/100*-1)?string("0.##"))!''}</td>
|
|
|
+ <td>${claimOrder.postageAlipayName!''}</td>
|
|
|
+ <td>${claimOrder.postageAlipay!''}</td>
|
|
|
+ <td>
|
|
|
+ <#if claimOrder.postageAlipayType??>
|
|
|
+ <#if claimOrder.postageAlipayType = 1 >
|
|
|
+ 用户付款
|
|
|
+ <#elseif claimOrder.postageAlipayType = 2 >
|
|
|
+ 客户付款
|
|
|
+ <#elseif claimOrder.postageAlipayType = 3 >
|
|
|
+ 公司付款
|
|
|
+ </#if>
|
|
|
+ </#if>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <#if claimOrder.postageStatus?? >
|
|
|
+ <#if claimOrder.postageStatus = 1 >
|
|
|
+ 未申请
|
|
|
+ <#elseif claimOrder.postageStatus = 2 >
|
|
|
+ 已申请(待转账)
|
|
|
+ <#elseif claimOrder.postageStatus = 3 >
|
|
|
+ 已转账
|
|
|
+ <#elseif claimOrder.postageStatus = 4 >
|
|
|
+ 其他
|
|
|
+ </#if>
|
|
|
+ </#if>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ ${claimOrder.postageDesc!''}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ -
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </#if>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="margin-left: 16px;font-weight: bold;">
|
|
|
+ <p class="" id="">
|
|
|
+ <#-- 共<span id="allNormalProduct">0</span>个正常产品,
|
|
|
+ <span id="allReturnProduct">0</span>个退货产品,-->
|
|
|
+ 待结算总金额:<span id="allAmount">0</span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+</article>
|
|
|
+<#-- 业务脚本JS -->
|
|
|
+<script type="text/javascript">
|
|
|
+ var url_path = "${path}";
|
|
|
+</script>
|
|
|
+<script type="text/javascript">
|
|
|
+ $('.skin-minimal input').iCheck({
|
|
|
+ checkboxClass: 'icheckbox-blue',
|
|
|
+ radioClass: 'iradio-blue',
|
|
|
+ increaseArea: '20%'
|
|
|
+ });
|
|
|
+
|
|
|
+ var itemNum = 0;
|
|
|
+
|
|
|
+ var isAddOrderType = 1; //1:添加普通订单 2:添加退货订单
|
|
|
+
|
|
|
+ $(function () {
|
|
|
+ calculaAllAmount();
|
|
|
+
|
|
|
+ $('.order_item').find(".itemReturnNum").change(function () {
|
|
|
+ var $item = $(this).parents('tr');
|
|
|
+ var itemReturnNum = $(this).val();
|
|
|
+ var itemProductDiscount = $item.find(".itemProductDiscount").val();
|
|
|
+ if(parseInt(itemReturnNum) > 0){
|
|
|
+ $item.find(".itemTotal").css("color","red");
|
|
|
+ $item.find(".itemTotal").text( accMul(-itemReturnNum,itemProductDiscount));
|
|
|
+ }else{
|
|
|
+ $item.find(".itemTotal").css("color","#000");
|
|
|
+ $item.find(".itemTotal").text(0);
|
|
|
+ }
|
|
|
+ //计算总金额
|
|
|
+ calculaAllAmount();
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 计算总金额
|
|
|
+ */
|
|
|
+ function calculaAllAmount(){
|
|
|
+ var total = 0;
|
|
|
+ var allNormalProduct = 0;
|
|
|
+ var allReturnProduct = 0;
|
|
|
+ $(".order_item").each(function () {
|
|
|
+ var itemTotal = $(this).find(".itemTotal").text();
|
|
|
+ itemTotal = Number(itemTotal);
|
|
|
+ if($(this).attr("orderItem") == 1){
|
|
|
+ total = accAdd(total,itemTotal);
|
|
|
+ var itemNum = $(this).find(".itemNum").text();
|
|
|
+ // allNormalProduct = accAdd(allNormalProduct,itemNum);
|
|
|
+ }else if($(this).attr("orderItem") == 2){
|
|
|
+ total = accAdd(total,itemTotal);
|
|
|
+ //var itemReturnNum = $(this).find(".itemReturnNum").val();
|
|
|
+ // allReturnProduct = accAdd(allReturnProduct,itemReturnNum);
|
|
|
+ }else if($(this).attr("orderItem") == 3){
|
|
|
+ total = accAdd(total,itemTotal);
|
|
|
+ // var itemReturnNum = $(this).find(".itemReturnNum").val();
|
|
|
+ // allReturnProduct = accAdd(allReturnProduct,itemReturnNum);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $("#allAmount").text(total);
|
|
|
+// $("#allNormalProduct").text(allNormalProduct);
|
|
|
+// $("#allReturnProduct").text(allReturnProduct);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 删除table中的tr
|
|
|
+ */
|
|
|
+ function deleteTableByTr_orderDesc($this) {
|
|
|
+ $this.parents("tr").remove();
|
|
|
+ calculaAllAmount();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+</script>
|
|
|
+
|
|
|
+
|
|
|
+</body>
|
|
|
+</html>
|