|
@@ -35,8 +35,9 @@
|
|
|
<title></title>
|
|
|
</head>
|
|
|
<body>
|
|
|
-<article class="cl pd-20">
|
|
|
+<article class="cl pd-20">
|
|
|
<form action="" method="post" class="form form-horizontal" id="form-update-renewed" name="form-update-renewed">
|
|
|
+ <a id="test" class="js-btnHistory" href="#Targetname"></a>
|
|
|
<div class="row cl" style="margin-left: -60px;margin-bottom: 20px;">
|
|
|
<div class="formControls col-2 col-sm-2 text-r">
|
|
|
<strong>当前进度</strong>
|
|
@@ -50,7 +51,7 @@
|
|
|
<div class="tabBar clearfix">
|
|
|
<#if procMethod.procMethodIsBack == 1>
|
|
|
<span>寄回信息</span>
|
|
|
- <span>邮费信息</span>
|
|
|
+ <span>付费信息</span>
|
|
|
</#if>
|
|
|
<#if procMethod.procMethodIsSend == 1>
|
|
|
<span>寄送信息</span>
|
|
@@ -452,12 +453,15 @@
|
|
|
<table class="table table-border table-bg table-bordered" >
|
|
|
<thead>
|
|
|
<tr>
|
|
|
- <th>邮费id</th>
|
|
|
- <th>邮费金额</th>
|
|
|
- <th>支付宝姓名</th>
|
|
|
- <th>支付宝账号</th>
|
|
|
+ <th>付费id</th>
|
|
|
+ <th>付费金额</th>
|
|
|
+ <th>支付方式</th>
|
|
|
+ <th>账户姓名</th>
|
|
|
+ <th>支付账号</th>
|
|
|
+ <th>开户行</th>
|
|
|
<th>付款类型</th>
|
|
|
- <th>状态</th>
|
|
|
+ <th>付费状态</th>
|
|
|
+ <th>审核状态</th>
|
|
|
<th>备注</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
@@ -468,8 +472,16 @@
|
|
|
<tr id="deleteId${(postageInfo.postageId)!''}">
|
|
|
<td>${(postageInfo.postageId)!''}</td>
|
|
|
<td>${(postageInfo.postageAmount/100)!''}</td>
|
|
|
+ <td>
|
|
|
+ <#if postageInfo.postagePayType??>
|
|
|
+ <#if postageInfo.postagePayType == 1>支付宝</#if>
|
|
|
+ <#if postageInfo.postagePayType == 2>微信</#if>
|
|
|
+ <#if postageInfo.postagePayType == 3>银行卡</#if>
|
|
|
+ </#if>
|
|
|
+ </td>
|
|
|
<td>${(postageInfo.postageAlipayName)!''}</td>
|
|
|
<td>${(postageInfo.postageAlipay)!''}</td>
|
|
|
+ <td>${(postageInfo.postagePayWhere)!''}</td>
|
|
|
<td>
|
|
|
<#if postageInfo.postageAlipayType??>
|
|
|
<#if postageInfo.postageAlipayType == 1>用户付款</#if>
|
|
@@ -480,22 +492,46 @@
|
|
|
<#if postageInfo.postageStatus??>
|
|
|
<#if postageInfo.postageStatus == 0><td>未申请</td></#if>
|
|
|
<#if postageInfo.postageStatus == 1><td>未申请</td></#if>
|
|
|
- <#if postageInfo.postageStatus == 2><td>已申请(待转账)</td></#if>
|
|
|
+ <#if postageInfo.postageStatus == 2><td>已申请</td></#if>
|
|
|
<#if postageInfo.postageStatus == 3><td>已转账</td></#if>
|
|
|
<#if postageInfo.postageStatus == 4><td>未知</td></#if>
|
|
|
<#else>
|
|
|
- <td></td>
|
|
|
+ <td></td>
|
|
|
+ </#if>
|
|
|
+ <#if postageInfo.postageTransferStatus??>
|
|
|
+ <#if postageInfo.postageTransferStatus == 1>
|
|
|
+ <#if postageInfo.postageFinanceStatus??>
|
|
|
+ <#if postageInfo.postageFinanceStatus == 1><td>待审核</td></#if>
|
|
|
+ <#if postageInfo.postageFinanceStatus == 2><td>已审核(待转账)</td></#if>
|
|
|
+ <#else>
|
|
|
+ <td></td>
|
|
|
+ </#if>
|
|
|
+ <#else>
|
|
|
+ <td>已转账</td>
|
|
|
+ </#if>
|
|
|
</#if>
|
|
|
<td>${postageInfo.postageDesc!''}</td>
|
|
|
- <td><a onclick="deletePostage(${(postageInfo.postageId)!});">删除</a> <a onclick="getPostage(${(postageInfo.postageId)!});">修改</a></td>
|
|
|
+ <td><a onclick="deletePostage(${(postageInfo.postageId)!});">删除</a>
|
|
|
+ <a onclick="getPostage(${(postageInfo.postageId)!});">修改</a>
|
|
|
+ <#if postageInfo.postageTransferStatus??>
|
|
|
+ <#if postageInfo.postageTransferStatus == 1>
|
|
|
+ <#if postageInfo.postageFinanceStatus??>
|
|
|
+ <#if postageInfo.postageFinanceStatus == 2>
|
|
|
+ <a onclick="printPostage(${postageInfo.postId});">打印</a>
|
|
|
+ </#if>
|
|
|
+ </#if>
|
|
|
+ </#if>
|
|
|
+ </#if>
|
|
|
+
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
</#list>
|
|
|
<#else>
|
|
|
- <tr id="colspanId"><td colspan="8" class="td-manage text-c" >暂时没有邮费信息,请添加!</td></tr>
|
|
|
+ <tr id="colspanId"><td colspan="11" class="td-manage text-c" >暂时没有付费信息,请添加!</td></tr>
|
|
|
</#if>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
- <button type="button" class="btn btn-primary" style="background: #32a3d8;color: #fff;" id="" name="" onclick="showPostageDiv();">录入邮费转账</button>
|
|
|
+ <button type="button" class="btn btn-primary" style="background: #32a3d8;color: #fff;" id="" name="" onclick="showPostageDiv();">录入付费转账</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row cl" id="addPostageId" style="display: none;">
|
|
@@ -504,17 +540,17 @@
|
|
|
</div>
|
|
|
<div class="formControls col-12 col-sm-12">
|
|
|
<div >
|
|
|
- <div class="row cl">
|
|
|
+ <div class="row cl" style="display:none;">
|
|
|
<div class="formControls col-2 col-sm-2 text-r">
|
|
|
<strong>状态</strong>
|
|
|
</div>
|
|
|
<div class="formControls col-12 col-sm-12">
|
|
|
- <div class="radio-box">
|
|
|
+ <#--<div class="radio-box">
|
|
|
<input type="radio" id="tel-66" name="postageStatus" checked value="1">
|
|
|
<label for="tel-66">未申请</label>
|
|
|
- </div>
|
|
|
+ </div>-->
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="tel-77" name="postageStatus" value="2">
|
|
|
+ <input type="radio" id="tel-77" name="postageStatus" value="2" checked>
|
|
|
<label for="tel-77">已申请(待转账)</label>
|
|
|
</div>
|
|
|
|
|
@@ -534,13 +570,30 @@
|
|
|
</div>
|
|
|
<div class="row cl">
|
|
|
<div class="formControls col-2 col-sm-2 text-r">
|
|
|
- <strong>支付宝</strong>
|
|
|
+ <strong>支付方式</strong>
|
|
|
</div>
|
|
|
<div class="formControls col-5 col-sm-5">
|
|
|
- <input type="text" class="input-text" placeholder="填写支付宝姓名" id="postageAlipayName" name="postageAlipayName">
|
|
|
+ <span class="select-box" >
|
|
|
+ <select class="select" name="postagePayType" id="postagePayType">
|
|
|
+ <option value="1">支付宝</option>
|
|
|
+ <option value="2">微信</option>
|
|
|
+ <option value="3">银行卡</option>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="formControls col-5 col-sm-5" style="display: none;" id="postagePayWhereDiv">
|
|
|
+ <input type="text" class="input-text" placeholder="开户行" id="postagePayWhere" name="postagePayWhere">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl">
|
|
|
+ <div class="formControls col-2 col-sm-2 text-r">
|
|
|
+ <strong>账户信息</strong>
|
|
|
</div>
|
|
|
<div class="formControls col-5 col-sm-5">
|
|
|
- <input type="text" class="input-text" placeholder="填写支付宝账号" id="postageAlipay" name="postageAlipay">
|
|
|
+ <input type="text" class="input-text" placeholder="填写账户姓名" id="postageAlipayName" name="postageAlipayName">
|
|
|
+ </div>
|
|
|
+ <div class="formControls col-5 col-sm-5">
|
|
|
+ <input type="text" class="input-text" placeholder="填写支付账号" id="postageAlipay" name="postageAlipay">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row cl">
|
|
@@ -570,7 +623,7 @@
|
|
|
<strong></strong>
|
|
|
</div>
|
|
|
<div class="formControls col-5 col-sm-5">
|
|
|
- <button type="button" class="btn btn-primary" style="background: #32a3d8;color: #fff;" id="" name="" onclick="addPostage()">确定录入邮费转账</button>
|
|
|
+ <button type="button" class="btn btn-primary" style="background: #32a3d8;color: #fff;" id="" name="" onclick="addPostage()">确定录入付费转账</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -582,17 +635,17 @@
|
|
|
</div>
|
|
|
<div class="formControls col-12 col-sm-12">
|
|
|
<div>
|
|
|
- <div class="row cl">
|
|
|
+ <div class="row cl" style="display:none;">
|
|
|
<div class="formControls col-2 col-sm-2 text-r">
|
|
|
<strong>状态</strong>
|
|
|
</div>
|
|
|
<div class="formControls col-12 col-sm-12 skin-minimal">
|
|
|
- <div class="radio-box">
|
|
|
+ <#--<div class="radio-box">
|
|
|
<input type="radio" id="tel-666" name="postageStatuss" value="1">
|
|
|
<label for="tel-666">未申请</label>
|
|
|
- </div>
|
|
|
+ </div>-->
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="tel-777" name="postageStatuss" value="2">
|
|
|
+ <input type="radio" id="tel-777" name="postageStatuss" value="2" checked>
|
|
|
<label for="tel-777">已申请(待转账)</label>
|
|
|
</div>
|
|
|
|
|
@@ -612,13 +665,30 @@
|
|
|
</div>
|
|
|
<div class="row cl">
|
|
|
<div class="formControls col-2 col-sm-2 text-r">
|
|
|
- <strong>支付宝</strong>
|
|
|
+ <strong>支付方式</strong>
|
|
|
</div>
|
|
|
<div class="formControls col-5 col-sm-5">
|
|
|
- <input type="text" class="input-text" placeholder="填写支付宝姓名" id="postageAlipayNames" name="postageAlipayNames">
|
|
|
+ <span class="select-box" >
|
|
|
+ <select class="select" name="postagePayTypes" id="postagePayTypes">
|
|
|
+ <option value="1">支付宝</option>
|
|
|
+ <option value="2">微信</option>
|
|
|
+ <option value="3">银行卡</option>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="formControls col-5 col-sm-5" style="display: none;" id="postagePayWhereDivs">
|
|
|
+ <input type="text" class="input-text" placeholder="开户行" id="postagePayWheres" name="postagePayWheres">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl">
|
|
|
+ <div class="formControls col-2 col-sm-2 text-r">
|
|
|
+ <strong>账户信息</strong>
|
|
|
+ </div>
|
|
|
+ <div class="formControls col-5 col-sm-5">
|
|
|
+ <input type="text" class="input-text" placeholder="填写账户姓名" id="postageAlipayNames" name="postageAlipayNames">
|
|
|
</div>
|
|
|
<div class="formControls col-5 col-sm-5">
|
|
|
- <input type="text" class="input-text" placeholder="填写支付宝账号" id="postageAlipays" name="postageAlipays">
|
|
|
+ <input type="text" class="input-text" placeholder="填写支付账号" id="postageAlipays" name="postageAlipays">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row cl">
|
|
@@ -649,7 +719,7 @@
|
|
|
<strong></strong>
|
|
|
</div>
|
|
|
<div class="formControls col-5 col-sm-5">
|
|
|
- <button type="button" class="btn btn-primary" style="background: #32a3d8;color: #fff;" id="" name="" onclick="updatePostage()">确定修改邮费信息</button>
|
|
|
+ <button type="button" class="btn btn-primary" style="background: #32a3d8;color: #fff;" id="" name="" onclick="updatePostage()">确定修改付费信息</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1151,6 +1221,8 @@
|
|
|
<td class="td-manage text-c" width="100">
|
|
|
<a onclick="getDetectInfo('${detect.detectId}');">查看详情</a><br>
|
|
|
<#if detect.detectState == 30 || detect.detectState == 34 || detect.detectState == 38 || detect.detectState == 37>
|
|
|
+ <input type="hidden" name="detectIds" value="${(detect.detectId)!}">
|
|
|
+ <input type="hidden" name="detectStates" value="${(detect.detectState)!}">
|
|
|
<a onclick="to_updateDetectInfo('${(detect.detectId)!}','${(detect.detectState)!}');">维修处理</a>
|
|
|
</#if>
|
|
|
</td>
|
|
@@ -1343,17 +1415,121 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
<input type="hidden" id="customerId" name="customerId" value="${customerId!''}" seleType="primary">
|
|
|
+ <a name="Targetname" id="Targetname"></a>
|
|
|
</form>
|
|
|
+ <div style="padding: 0px;margin: 0px;display: none;" >
|
|
|
+ <div id="printlist" style="">
|
|
|
+ <ul style=" height: 460px;margin-left: 20px;margin-right: 20px;">
|
|
|
+ <li style="font-size: 22px;height: 25px;display: block;text-align: center;font-weight: bold;margin-top: 15px">商品换货退货退款审批</li>
|
|
|
+ <li style="font-size: 12px;height: 30px;display: block;text-align: left;margin-top: 15px">深圳爱贝源科技有限公司 申请日期:<span id="applyTime"></span></li>
|
|
|
+ <table class="table table-border table-bg table-bordered" style="border: 1px solid #000;border-collapse: collapse;text-align: left;">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;width: 3.5cm;">审批编码</td>
|
|
|
+ <td id="postageCoding" colspan="15" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">申请人</td>
|
|
|
+ <td id="applicantPeople" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;" colspan="15"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;h">申请人部门</td>
|
|
|
+ <td id="applicantDepa" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;" colspan="15"></td>
|
|
|
+ </tr>
|
|
|
+ <#--<tr style="font-size: 12px;font-weight: normal;border-bottom: 1px solid #000000;border-left: 1px solid #000000;border-right: 1px solid #000000;">-->
|
|
|
+ <tr class="text-c">
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">客户成交入口</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">售后类型</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">销售时间及退换货原因</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">交易号</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">客户名称</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">联系电话</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">快递公司</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">详细地址</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">快递单号</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">快递费用承担方</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">退回商品名称/型号</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">销售员</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">数量(台)</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">退款金额</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">退款账户</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">客户明细1</td>
|
|
|
+ <td id="postinfo1" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo2" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo3" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo4" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo5" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo6" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo7" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo8" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo9" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo10" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo11" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo12" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo13" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo14" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="postinfo15" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="totalNum" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td id="totalAmount" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 40px;font-size: 12px;font-weight: normal;border-bottom: 1px solid #000000;border-left: 1px solid #000000;border-right: 1px solid #000000;">
|
|
|
+ <td rowspan="2" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">审批人</td>
|
|
|
+ <td id="customerApproval" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;" colspan="15"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 40px;font-size: 12px;font-weight: normal;border-bottom: 1px solid #000000;border-left: 1px solid #000000;border-right: 1px solid #000000;">
|
|
|
+ <td id="financialApproval" style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;" colspan="15"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 40px;font-size: 12px;font-weight: normal;border-bottom: 1px solid #000000;border-left: 1px solid #000000;border-right: 1px solid #000000;">
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;">抄送人</td>
|
|
|
+ <td style="font-size: 0.75rem;padding:0.5rem 0;text-indent: 0.5rem; color: #333;border: 1px solid #000;border-collapse: collapse;background-color: #fff;" colspan="15">沈秋梅</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <li style="font-size: 12px;height: 30px;display: block;text-align: left;margin-top: 15px">打印时间:<span id="printTime"></span> 打印人:<span id="printPeople"></span></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</article>
|
|
|
<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
|
<script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
|
|
|
<script type="text/javascript" src="${path}/common/lib/jquery/1.9.1/ajaxfileupload.js"></script>
|
|
|
+<script type="text/javascript" src="${path}/common/lib/jquery.PrintArea/jquery.PrintArea.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
+ var type= "${type }";
|
|
|
//产品类型
|
|
|
var productType = null;
|
|
|
- $(function(){
|
|
|
- $.Huitab("#tab_demo .tabBar span","#tab_demo .tabCon","current","click","0")});
|
|
|
+ if(type > 0){
|
|
|
+ $(function(){
|
|
|
+ $.Huitab("#tab_demo .tabBar span","#tab_demo .tabCon","current","click",4)});
|
|
|
+ $(function(){
|
|
|
+ $.Huitab("#tab_demo .tabBar span","#tab_demo .tabCon","current","click",5)});
|
|
|
+ }else{
|
|
|
+ $(function(){
|
|
|
+ $.Huitab("#tab_demo .tabBar span","#tab_demo .tabCon","current","click",0)});
|
|
|
+ }
|
|
|
+
|
|
|
// #tab_demo 父级id
|
|
|
// #tab_demo .tabBar span 控制条
|
|
|
// #tab_demo .tabCon 内容区
|
|
@@ -1361,11 +1537,20 @@
|
|
|
// 1 默认第2个tab为当前状态(从0开始)
|
|
|
|
|
|
|
|
|
-
|
|
|
var mobile= /^1(3|4|5|7|8)\d{9}$/; //手机号码
|
|
|
var uname = /^[\u4e00-\u9fa5a-zA-Z]{1,12}$/; //中文英文
|
|
|
var money = /^(0{1}|([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/;//金额
|
|
|
-
|
|
|
+ var node = $("#Targetname");
|
|
|
+ $(function () {
|
|
|
+ if(type === "4"){
|
|
|
+ var detectId = $("input[name='detectIds']").val();
|
|
|
+ var detectState = $("input[name='detectStates']").val();
|
|
|
+ to_updateDetectInfo(detectId,detectState);
|
|
|
+ /*var btn = document.getElementById("test");
|
|
|
+ btn.click();*/
|
|
|
+ $("html,body").animate({scrollTop:node.offset().top},300);
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
//添加寄回信息按钮
|
|
|
function showSendbackDiv() {
|
|
@@ -1479,18 +1664,19 @@
|
|
|
layer.msg("请输入物流公司!",{icon: 5,time:1000});
|
|
|
return;
|
|
|
}
|
|
|
+ */
|
|
|
if(sendbackLogisticsNo == null || sendbackLogisticsNo == ""){
|
|
|
layer.msg("请输入物流单号!",{icon: 5,time:1000});
|
|
|
return;
|
|
|
- }*/
|
|
|
- if(sendbackName == null || sendbackName == ""){
|
|
|
+ }
|
|
|
+ /*if(sendbackName == null || sendbackName == ""){
|
|
|
layer.msg("请输入寄回人姓名!",{icon: 5,time:1000});
|
|
|
return;
|
|
|
}
|
|
|
if(sendbackTel == null || sendbackTel == ""){
|
|
|
layer.msg("请输入寄回人电话!",{icon: 5,time:1000});
|
|
|
return;
|
|
|
- }
|
|
|
+ }*/
|
|
|
/*if(sendbackSignTime == null || postageAlipayName == ""){
|
|
|
layer.msg("请输入签收时间!",{icon: 5,time:1000});
|
|
|
return;
|
|
@@ -1745,6 +1931,8 @@
|
|
|
var postageAlipay = $("#postageAlipay").val();
|
|
|
var postageDesc = $("#postageDesc").val();
|
|
|
var postageAlipayType = $("#postageAlipayType").val();
|
|
|
+ var postagePayType = $("#postagePayType").val();
|
|
|
+ var postagePayWhere = $("#postagePayWhere").val();
|
|
|
if(postageStatus == null || postageStatus == ""){
|
|
|
layer.msg("请选择邮费状态!",{icon: 5,time:1000});
|
|
|
return;
|
|
@@ -1774,7 +1962,9 @@
|
|
|
"postageAlipayName" : postageAlipayName,
|
|
|
"postageAlipay" : postageAlipay,
|
|
|
"postageAlipayType" : postageAlipayType,
|
|
|
- "postageDesc" : postageDesc},
|
|
|
+ "postageDesc" : postageDesc,
|
|
|
+ "postagePayType" : postagePayType,
|
|
|
+ "postagePayWhere" : postagePayWhere},
|
|
|
url: "${path}/admin/customer/add_PostageInfo",
|
|
|
async: false,
|
|
|
success: function(data){
|
|
@@ -1786,7 +1976,7 @@
|
|
|
postageStatuss = "未申请";
|
|
|
}
|
|
|
if(postageInfo.postageStatus == 2){
|
|
|
- postageStatuss = "已申请(待转账)";
|
|
|
+ postageStatuss = "已申请";
|
|
|
}
|
|
|
if(postageInfo.postageStatus == 3){
|
|
|
postageStatuss = "已转账";
|
|
@@ -1795,7 +1985,7 @@
|
|
|
postageStatuss = "未知";
|
|
|
}
|
|
|
//付款类型 1:用户付款 2:客户付款 3:公司付款
|
|
|
- var postageAlipayType = ''
|
|
|
+ var postageAlipayType = '';
|
|
|
if(postageInfo.postageAlipayType == 1){
|
|
|
postageAlipayType = '用户付款';
|
|
|
}else if(postageInfo.postageAlipayType == 2){
|
|
@@ -1803,12 +1993,36 @@
|
|
|
}else if(postageInfo.postageAlipayType == 3){
|
|
|
postageAlipayType = '公司付款';
|
|
|
}
|
|
|
+ //支付类型
|
|
|
+ var postagePayType = '';
|
|
|
+ if(postageInfo.postagePayType == 1){
|
|
|
+ postagePayType = '支付宝';
|
|
|
+ }else if(postageInfo.postagePayType == 2){
|
|
|
+ postagePayType = '微信';
|
|
|
+ }else if(postageInfo.postagePayType == 3){
|
|
|
+ postagePayType = '银行卡';
|
|
|
+ }
|
|
|
+ //审核状态
|
|
|
+ var postageTransferStatus = '';
|
|
|
+ if(postageInfo.postageTransferStatus == 1){
|
|
|
+ if(postageInfo.postageFinanceStatus == null || postageInfo.postageFinanceStatus == 1){
|
|
|
+ postageTransferStatus = '待审核';
|
|
|
+ }
|
|
|
+ if(postageInfo.postageFinanceStatus == 2){
|
|
|
+ postageTransferStatus = '已审核(待转账)';
|
|
|
+ }
|
|
|
+ }else if(postageInfo.postageTransferStatus == 2){
|
|
|
+ postageTransferStatus = '已转账';
|
|
|
+ }
|
|
|
$("#trbodyId").append('<tr id="deleteId'+postageInfo.postageId+'"><td>'+postageInfo.postageId+'</td>' +
|
|
|
'<td>'+(postageInfo.postageAmount)/100+'</td>' +
|
|
|
+ '<td>'+postagePayType+'</td>' +
|
|
|
'<td>'+postageInfo.postageAlipayName+'</td>' +
|
|
|
'<td>'+postageInfo.postageAlipay+'</td>' +
|
|
|
+ '<td>'+postageInfo.postagePayWhere+'</td>' +
|
|
|
'<td>'+postageAlipayType+'</td>' +
|
|
|
'<td>'+postageStatuss+'</td>' +
|
|
|
+ '<td>'+postageTransferStatus+'</td>' +
|
|
|
'<td>'+postageInfo.postageDesc+'</td>' +
|
|
|
'<td><a onclick="deletePostage('+postageInfo.postageId+');">删除</a>  <a onclick="getPostage('+postageInfo.postageId+');">修改</a></td></tr>');
|
|
|
layer.msg("添加成功!",{icon: 1,time:1000});
|
|
@@ -1866,7 +2080,13 @@
|
|
|
$("#postageAlipayNames").val(postageInfo.postageAlipayName);
|
|
|
$("#postageAlipayTypes").val(postageInfo.postageAlipayTypes);
|
|
|
$("#postageDescs").val(postageInfo.postageDesc);
|
|
|
-
|
|
|
+ $("#postagePayTypes").val(postageInfo.postagePayType);
|
|
|
+ $("#postagePayWheres").val(postageInfo.postagePayWhere);
|
|
|
+ if(postageInfo.postagePayType != null && postageInfo.postagePayType === 3){
|
|
|
+ $("#postagePayWhereDivs").show();
|
|
|
+ }else{
|
|
|
+ $("#postagePayWhereDivs").hide();
|
|
|
+ }
|
|
|
} else {
|
|
|
layer.msg("修改失败!",{icon: 5,time:1000});
|
|
|
}
|
|
@@ -1887,6 +2107,8 @@
|
|
|
var postageAlipay = $("#postageAlipays").val();
|
|
|
var postageAlipayTypes = $("#postageAlipayTypes").val();
|
|
|
var postageDesc = $("#postageDescs").val();
|
|
|
+ var postagePayTypes = $("#postagePayTypes").val();
|
|
|
+ var postagePayWheres = $("#postagePayWheres").val();
|
|
|
if(postageStatus == null || postageStatus == ""){
|
|
|
layer.msg("请选择邮费状态!",{icon: 5,time:1000});
|
|
|
return;
|
|
@@ -1900,11 +2122,11 @@
|
|
|
return;
|
|
|
}
|
|
|
if(postageAlipayName == null || postageAlipayName == ""){
|
|
|
- layer.msg("请输入支付宝姓名!",{icon: 5,time:1000});
|
|
|
+ layer.msg("请输入账户姓名!",{icon: 5,time:1000});
|
|
|
return;
|
|
|
}
|
|
|
if(postageAlipay == null || postageAlipay == ""){
|
|
|
- layer.msg("请输入支付宝账号!",{icon: 5,time:1000});
|
|
|
+ layer.msg("请输入支付账号!",{icon: 5,time:1000});
|
|
|
return;
|
|
|
}
|
|
|
$.ajax({
|
|
@@ -1917,18 +2139,21 @@
|
|
|
"postageAlipayName" : postageAlipayName,
|
|
|
"postageAlipay" : postageAlipay,
|
|
|
"postageAlipayType" : postageAlipayTypes,
|
|
|
- "postageDesc" : postageDesc},
|
|
|
+ "postagePayWhere" : postagePayWheres,
|
|
|
+ "postagePayType" : postagePayTypes,
|
|
|
+ "postageDesc" : postageDesc
|
|
|
+ },
|
|
|
url: "${path}/admin/customer/update_PostageInfo",
|
|
|
async: false,
|
|
|
success: function(data){
|
|
|
if (data.returnCode == 200) {
|
|
|
postageInfo = data.returnMsg.postageInfo;
|
|
|
- var postageStatuss
|
|
|
+ var postageStatuss;
|
|
|
if(postageInfo.postageStatus == 1){
|
|
|
postageStatuss = "未申请";
|
|
|
}
|
|
|
if(postageInfo.postageStatus == 2){
|
|
|
- postageStatuss = "已申请(待转账)";
|
|
|
+ postageStatuss = "已申请";
|
|
|
}
|
|
|
if(postageInfo.postageStatus == 3){
|
|
|
postageStatuss = "已转账";
|
|
@@ -1936,12 +2161,47 @@
|
|
|
if(postageInfo.postageStatus == 4){
|
|
|
postageStatuss = "未知";
|
|
|
}
|
|
|
+ //付款类型 1:用户付款 2:客户付款 3:公司付款
|
|
|
+ var postageAlipayType = '';
|
|
|
+ if(postageInfo.postageAlipayType == 1){
|
|
|
+ postageAlipayType = '用户付款';
|
|
|
+ }else if(postageInfo.postageAlipayType == 2){
|
|
|
+ postageAlipayType = '客户付款';
|
|
|
+ }else if(postageInfo.postageAlipayType == 3){
|
|
|
+ postageAlipayType = '公司付款';
|
|
|
+ }
|
|
|
+ //支付类型
|
|
|
+ var postagePayType = '';
|
|
|
+ if(postageInfo.postagePayType == 1){
|
|
|
+ postagePayType = '支付宝';
|
|
|
+ }else if(postageInfo.postagePayType == 2){
|
|
|
+ postagePayType = '微信';
|
|
|
+ }else if(postageInfo.postagePayType == 3){
|
|
|
+ postagePayType = '银行卡';
|
|
|
+ }
|
|
|
+ //审核状态
|
|
|
+ var postageTransferStatus = '';
|
|
|
+ if(postageInfo.postageTransferStatus == 1){
|
|
|
+ if(postageInfo.postageFinanceStatus == null ||postageInfo.postageFinanceStatus == 1){
|
|
|
+ postageTransferStatus = '待审核';
|
|
|
+ }
|
|
|
+ if(postageInfo.postageFinanceStatus == 2){
|
|
|
+ postageTransferStatus = '已审核(待转账)';
|
|
|
+ }
|
|
|
+ }else if(postageInfo.postageTransferStatus == 2){
|
|
|
+ postageTransferStatus = '已转账';
|
|
|
+ }
|
|
|
+
|
|
|
$("#deleteId"+postageId).html("");
|
|
|
$("#deleteId"+postageId).append('<td>'+postageInfo.postageId+'</td>' +
|
|
|
'<td>'+(postageInfo.postageAmount)/100+'</td>' +
|
|
|
+ '<td>'+postagePayType+'</td>' +
|
|
|
'<td>'+postageInfo.postageAlipayName+'</td>' +
|
|
|
'<td>'+postageInfo.postageAlipay+'</td>' +
|
|
|
+ '<td>'+postageInfo.postagePayWhere+'</td>' +
|
|
|
+ '<td>'+postageAlipayType+'</td>' +
|
|
|
'<td>'+postageStatuss+'</td>' +
|
|
|
+ '<td>'+postageTransferStatus+'</td>' +
|
|
|
'<td>'+postageInfo.postageDesc+'</td>' +
|
|
|
'<td><a onclick="deletePostage('+postageInfo.postageId+');">删除</a>  <a onclick="getPostage('+postageInfo.postageId+');">修改</a></td>');
|
|
|
|
|
@@ -2215,62 +2475,9 @@
|
|
|
get_product_type();
|
|
|
|
|
|
get_customer();
|
|
|
- /*/!* 监听寄回状态按钮 *!/
|
|
|
- $("input[name='renewedBackStatus']").change(function (){
|
|
|
- initBackInfo($(this).val());
|
|
|
- })
|
|
|
|
|
|
- /!* 监听寄出状态按钮 *!/
|
|
|
- $("input[name='renewedSendStatus']").change(function (){
|
|
|
- initSendInfo($(this).val());
|
|
|
- })
|
|
|
-
|
|
|
- /!* 监听邮费状态按钮 *!/
|
|
|
- $("input[name='renewedIsTransfer']").change(function (){
|
|
|
- initPostageInfo($(this).val());
|
|
|
- })*/
|
|
|
});
|
|
|
|
|
|
- /*/!*初始化寄回信息*!/
|
|
|
- function initBackInfo(statusCode){
|
|
|
- if(statusCode == 1){
|
|
|
- $("#backLogisticsInfo").hide();
|
|
|
- /!*$("#backTransferInfo").hide();*!/
|
|
|
- $("#backUserInfo").hide();
|
|
|
- }else{
|
|
|
- $("#backLogisticsInfo").show();
|
|
|
- $("#backTransferInfo").show();
|
|
|
- $("#backUserInfo").show();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /!*显示隐藏邮费信息*!/
|
|
|
- function initPostageInfo(statusCode){
|
|
|
- if(statusCode == 1){
|
|
|
- $("#postageInformation").show();
|
|
|
- }else{
|
|
|
- $("#postageInformation").hide();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /!*初始化寄出信息*!/
|
|
|
- function initSendInfo(statusCode){
|
|
|
- if(statusCode == 1){
|
|
|
- $("#sendUserInfo").hide();
|
|
|
- $("#sendAddressInfo").hide();
|
|
|
- $("#sendaddressDescInfo").hide();
|
|
|
- $("#sendLogisticsInfo").hide();
|
|
|
- $("#sendDescInfo").hide();
|
|
|
- }else{
|
|
|
- $("#sendUserInfo").show();
|
|
|
- $("#sendAddressInfo").show();
|
|
|
- $("#sendaddressDescInfo").show();
|
|
|
- $("#sendLogisticsInfo").show();
|
|
|
- $("#sendDescInfo").show();
|
|
|
- }
|
|
|
- }*/
|
|
|
-
|
|
|
-
|
|
|
/*显示所有产品及配件信息*/
|
|
|
function showUpdateSendProduct() {
|
|
|
var productList = getProduct() ; //所有产品
|
|
@@ -3419,8 +3626,137 @@
|
|
|
$("#sendbackPresaleAdminDiv2").hide();
|
|
|
}
|
|
|
}
|
|
|
+ $("#postagePayType").change(function(){
|
|
|
+ var postagePayType = parseInt($("#postagePayType").val());
|
|
|
+ if(postagePayType === 3){
|
|
|
+ $("#postagePayWhereDiv").show();
|
|
|
+ }else{
|
|
|
+ $("#postagePayWhereDiv").hide();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $("#postagePayTypes").change(function(){
|
|
|
+ var postagePayType = parseInt($("#postagePayTypes").val());
|
|
|
+ if(postagePayType === 3){
|
|
|
+ $("#postagePayWhereDivs").show();
|
|
|
+ }else{
|
|
|
+ $("#postagePayWhereDivs").hide();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ /**
|
|
|
+ * 打印
|
|
|
+ */
|
|
|
+ function printPostage(postageId) {
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: {"postageId":postageId},
|
|
|
+ url: "${path}" + "/admin/postage/print_postage",
|
|
|
+ async: true,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ var salesOrder = data.returnMsg.salesOrder;
|
|
|
+ var procMethod = data.returnMsg.procMethod;
|
|
|
+ var admin = data.returnMsg.admin;
|
|
|
+ var postage = data.returnMsg.postage;
|
|
|
+ var itemList = data.returnMsg.itemList;
|
|
|
+ var loginAdmin = data.returnMsg.loginAdmin;
|
|
|
+ var product = "";
|
|
|
+ var productNum = 0;
|
|
|
+ for(var i=0;i<itemList.length;i++){
|
|
|
+ product += itemList[i].itemProductName +"("+itemList[i].itemProductColor+");"
|
|
|
+ productNum += itemList[i].itemNum;
|
|
|
+ }
|
|
|
+ var postageCreateTime = formatDate(new Date(postage.postageCreateTime),"yyyy-MM-dd");
|
|
|
+ var account = "";
|
|
|
+ if(postage.postagePayType === 3){
|
|
|
+ account = "银行卡"+"("+postage.postagePayWhere+")"+postage.postageAlipay+" "+postage.postageAlipayName;
|
|
|
+ }else if(postage.postagePayType === 2){
|
|
|
+ account = "微信"+postage.postageAlipay+" "+postage.postageAlipayName;
|
|
|
+ }else if(postage.postagePayType === 1){
|
|
|
+ account = "支付宝"+postage.postageAlipay+" "+postage.postageAlipayName;
|
|
|
+ }
|
|
|
|
|
|
+ $("#applyTime").html(postageCreateTime);
|
|
|
+ $("#postageCoding").html(postage.postageCoding);
|
|
|
+ $("#applicantPeople").html(admin.adminName);
|
|
|
+ $("#applicantDepa").html(admin.departName);
|
|
|
+ $("#postinfo1").html(salesOrder.companyName);
|
|
|
+ $("#postinfo2").html(procMethod.procTypeName);
|
|
|
+ $("#postinfo3").html(salesOrder.salesPayTime+postage.questionTitle);
|
|
|
+ $("#postinfo4").html(salesOrder.salesDealCode);
|
|
|
+ $("#postinfo5").html(postage.postageClientName);
|
|
|
+ $("#postinfo6").html(postage.postageClientTel);
|
|
|
+ $("#postinfo7").html(salesOrder.salesPostFirmName);
|
|
|
+ $("#postinfo8").html(salesOrder.salesAddressInfo);
|
|
|
+ $("#postinfo9").html(salesOrder.salesPostNum);
|
|
|
+ $("#postinfo10").html("爱贝源");
|
|
|
+ $("#postinfo11").html(product);
|
|
|
+ $("#postinfo12").html(salesOrder.storeName);
|
|
|
+ $("#postinfo13").html(productNum);
|
|
|
+ $("#postinfo14").html(postage.postageAmount /100);
|
|
|
+ $("#postinfo15").html(account);
|
|
|
+
|
|
|
+ var postageAuthorityLogList = postage.postageAuthorityLogList;
|
|
|
+ var customerApproval = "";
|
|
|
+ var customerApprovalTime = "";
|
|
|
+ var financialApproval = "";
|
|
|
+ var financialApprovalTime = "";
|
|
|
+ for(var i=0;i<postageAuthorityLogList.length;i++){
|
|
|
+ var log = postageAuthorityLogList[i];
|
|
|
+ if(log.authorityLogType === 2){
|
|
|
+ customerApproval = log.adminName;
|
|
|
+ customerApprovalTime = formatDate(new Date(log.authorityLogCreateTime),"yyyy-MM-dd HH:mm:ss");
|
|
|
+ }
|
|
|
+ if(log.authorityLogType === 3){
|
|
|
+ financialApproval = log.adminName;
|
|
|
+ financialApprovalTime = formatDate(new Date(log.authorityLogCreateTime),"yyyy-MM-dd HH:mm:ss");
|
|
|
+ }
|
|
|
|
|
|
+ }
|
|
|
+ $("#customerApproval").html(customerApproval + " 已同意" +" "+customerApprovalTime);
|
|
|
+ $("#financialApproval").html(financialApproval + " 已同意" +" "+financialApprovalTime);
|
|
|
+ $("#printTime").html(formatDate(new Date(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
+ $("#printPeople").html(loginAdmin.adminName);
|
|
|
+ $("#totalNum").html("总数量:"+productNum);
|
|
|
+ $("#totalAmount").html("总退款金额(元):"+postage.postageAmount /100 + "("+swapper(postage.postageAmount /100));
|
|
|
+
|
|
|
+ //修改打印状态
|
|
|
+ updateprint(postageId);
|
|
|
+ $("#printlist").printArea();
|
|
|
+ } else {
|
|
|
+ layer.msg(data.resultMsg,{icon: 5,time:3000});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ function updateprint(postageId) {
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: {"postageId":postageId},
|
|
|
+ url: "${path}/admin/postage/updatePostagePrint",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function swapper(n) {
|
|
|
+ if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n))
|
|
|
+ return "数据非法";
|
|
|
+ var unit = "千百拾亿千百拾万千百拾元角分", str = "";
|
|
|
+ n += "00";
|
|
|
+ var p = n.indexOf('.');
|
|
|
+ if (p >= 0)
|
|
|
+ n = n.substring(0, p) + n.substr(p+1, 2);
|
|
|
+ unit = unit.substr(unit.length - n.length);
|
|
|
+ for (var i=0; i < n.length; i++)
|
|
|
+ str += '零壹贰叁肆伍陆柒捌玖'.charAt(n.charAt(i)) + unit.charAt(i);
|
|
|
+ return str.replace(/零(千|百|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
|
|
|
+ }
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|