|
@@ -153,7 +153,7 @@
|
|
|
<div class="formControls col-2 col-sm-2 text-r">
|
|
|
<strong>邮费信息</strong>
|
|
|
</div>
|
|
|
- <div class="formControls col-8 col-sm-8">
|
|
|
+ <div class="formControls col-10 col-sm-10">
|
|
|
<table class="table table-border table-bg table-bordered" >
|
|
|
<thead>
|
|
|
<tr>
|
|
@@ -175,6 +175,7 @@
|
|
|
<td>${(postageInfo.postageAlipayName)!''}</td>
|
|
|
<td>${(postageInfo.postageAlipay)!''}</td>
|
|
|
<#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 == 3><td>已转账</td></#if>
|
|
@@ -187,19 +188,24 @@
|
|
|
</tr>
|
|
|
</#list>
|
|
|
<#else>
|
|
|
- <tr><td colspan="7" class="td-manage text-c" >暂时没有邮费信息,请添加!</td></tr>
|
|
|
+ <tr id="colspanId"><td colspan="7" 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>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="addPostageId" style="display: none;">
|
|
|
+ <div class="row cl" id="addPostageId" style="display: none;">
|
|
|
+ <div class="formControls col-2 col-sm-2 text-r">
|
|
|
+ <strong></strong>
|
|
|
+ </div>
|
|
|
+ <div class="formControls col-10 col-sm-10">
|
|
|
+ <div >
|
|
|
<div class="row cl">
|
|
|
<div class="formControls col-2 col-sm-2 text-r">
|
|
|
<strong>状态</strong>
|
|
|
</div>
|
|
|
- <div class="formControls col-8 col-sm-8">
|
|
|
+ <div class="formControls col-10 col-sm-10">
|
|
|
<div class="radio-box">
|
|
|
<input type="radio" id="tel-66" name="postageStatus" checked value="1">
|
|
|
<label for="tel-66">未申请</label>
|
|
@@ -251,13 +257,19 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <div id="updatePostageId" style="display: none;">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl" id="updatePostageId" style="display: none;">
|
|
|
+ <div class="formControls col-2 col-sm-2 text-r">
|
|
|
+ <strong></strong>
|
|
|
+ </div>
|
|
|
+ <div class="formControls col-10 col-sm-10">
|
|
|
+ <div>
|
|
|
<div class="row cl">
|
|
|
<div class="formControls col-2 col-sm-2 text-r">
|
|
|
<strong>状态</strong>
|
|
|
</div>
|
|
|
- <div class="formControls col-8 col-sm-8 skin-minimal">
|
|
|
+ <div class="formControls col-10 col-sm-10 skin-minimal">
|
|
|
<div class="radio-box">
|
|
|
<input type="radio" id="tel-666" name="postageStatuss" value="1">
|
|
|
<label for="tel-666">未申请</label>
|
|
@@ -310,6 +322,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="row cl">
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
</div>
|
|
@@ -483,6 +497,8 @@
|
|
|
function isRelationIsTransfer(type) {
|
|
|
if(type == 0){
|
|
|
$("#postageInformation").hide();
|
|
|
+ $("#updatePostageId").hide();
|
|
|
+ $("#addPostageId").hide();
|
|
|
}else{
|
|
|
$("#postageInformation").show();
|
|
|
}
|
|
@@ -497,6 +513,26 @@
|
|
|
var postageAlipayName = $("#postageAlipayName").val();
|
|
|
var postageAlipay = $("#postageAlipay").val();
|
|
|
var postageDesc = $("#postageDesc").val();
|
|
|
+ if(postageStatus == null || postageStatus == ""){
|
|
|
+ layer.msg("请选择邮费状态!",{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(postageAmount == null || postageAmount == ""){
|
|
|
+ layer.msg("请输入邮费金额!",{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!money.test(postageAmount)) {
|
|
|
+ layer.msg("邮费格式不正确,请重新输入!",{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(postageAlipayName == null || postageAlipayName == ""){
|
|
|
+ layer.msg("请输入支付宝姓名!",{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(postageAlipay == null || postageAlipay == ""){
|
|
|
+ layer.msg("请输入支付宝账号!",{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
cache: true,
|
|
|
type: "POST",
|
|
@@ -510,7 +546,8 @@
|
|
|
async: false,
|
|
|
success: function(data){
|
|
|
if (data.returnCode == 200) {
|
|
|
- postageInfo = postageInfo = data.returnMsg.postageInfo;
|
|
|
+ $("#colspanId").remove();
|
|
|
+ postageInfo = data.returnMsg.postageInfo;
|
|
|
var postageStatuss
|
|
|
if(postageInfo.postageStatus == 1){
|
|
|
postageStatuss = "未申请";
|
|
@@ -605,7 +642,26 @@
|
|
|
var postageAlipayName = $("#postageAlipayNames").val();
|
|
|
var postageAlipay = $("#postageAlipays").val();
|
|
|
var postageDesc = $("#postageDescs").val();
|
|
|
-
|
|
|
+ if(postageStatus == null || postageStatus == ""){
|
|
|
+ layer.msg("请选择邮费状态!",{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(postageAmount == null || postageAmount == ""){
|
|
|
+ layer.msg("请输入邮费金额!",{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!money.test(postageAmount)) {
|
|
|
+ layer.msg("邮费格式不正确,请重新输入!",{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(postageAlipayName == null || postageAlipayName == ""){
|
|
|
+ layer.msg("请输入支付宝姓名!",{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(postageAlipay == null || postageAlipay == ""){
|
|
|
+ layer.msg("请输入支付宝账号!",{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
cache: true,
|
|
|
type: "POST",
|