|
@@ -24,6 +24,8 @@
|
|
|
.tabBar span {background-color: #e8e8e8;cursor: pointer;display: inline-block;float: left;font-weight: bold;height: 30px;line-height: 30px;padding: 0 15px}
|
|
|
.tabBar span.current{background-color: #222;color: #fff}
|
|
|
.tabCon {display: none}
|
|
|
+ input[type=radio]{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
</style>
|
|
|
<title></title>
|
|
|
</head>
|
|
@@ -135,48 +137,179 @@
|
|
|
<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-8 col-sm-8">
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="tel-6" name="relationIsTransfer" value="0" seleType="postage">
|
|
|
+ <input type="radio" id="tel-6" name="relationIsTransfer" onclick="isRelationIsTransfer(0)" value="0" seleType="postage">
|
|
|
<label for="tel-6">不需要转账</label>
|
|
|
</div>
|
|
|
- <#--<div class="radio-box">-->
|
|
|
- <#--<input type="radio" id="tel-10" name="renewedIsTransfer" value="10" seleType="postage">-->
|
|
|
- <#--<label for="tel-10">需要转账</label>-->
|
|
|
- <#--</div>-->
|
|
|
- <div class="radio-box">
|
|
|
- <input type="radio" id="tel-7" name="relationIsTransfer" value="1" seleType="postage">
|
|
|
- <label for="tel-7">已转账</label>
|
|
|
- </div>
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="tel-8" name="relationIsTransfer" value="2" seleType="postage">
|
|
|
- <label for="tel-8">已申请待转账</label>
|
|
|
- </div>
|
|
|
- <div class="radio-box">
|
|
|
- <input type="radio" id="tel-9" name="relationIsTransfer" value="3" seleType="postage">
|
|
|
- <label for="tel-9">未申请</label>
|
|
|
+ <input type="radio" id="tel-7" name="relationIsTransfer" onclick="isRelationIsTransfer(10)" value="10" seleType="postage">
|
|
|
+ <label for="tel-7">需要</label>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="row cl" id="postageInformation">
|
|
|
+ <div class="row cl" id="postageInformation" style="display: none;">
|
|
|
<div class="formControls col-2 col-sm-2 text-r">
|
|
|
<strong>邮费信息</strong>
|
|
|
</div>
|
|
|
- <div class="formControls col-9 col-sm-9 text-r">
|
|
|
- <div class="formControls col-4 col-sm-4 text-r" style="padding-left: 0px;">
|
|
|
- <input type="text" class="input-text" value="" placeholder="寄回邮费" id="relationBackPostage" name="relationBackPostage" seleType="postage">
|
|
|
+ <div class="formControls col-8 col-sm-8">
|
|
|
+ <table class="table table-border table-bg table-bordered" >
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>邮费id</th>
|
|
|
+ <th>邮费金额</th>
|
|
|
+ <th>支付宝姓名</th>
|
|
|
+ <th>支付宝账号</th>
|
|
|
+ <th>状态</th>
|
|
|
+ <th>备注</th>
|
|
|
+ <th>操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="trbodyId">
|
|
|
+ <#if listPostageInfo?? && (listPostageInfo?size > 0) >
|
|
|
+ <#list listPostageInfo as postageInfo>
|
|
|
+ <tr id="deleteId${(postageInfo.postageId)!''}">
|
|
|
+ <td>${(postageInfo.postageId)!''}</td>
|
|
|
+ <td>${(postageInfo.postageAmount)!''}</td>
|
|
|
+ <td>${(postageInfo.postageAlipayName)!''}</td>
|
|
|
+ <td>${(postageInfo.postageAlipay)!''}</td>
|
|
|
+ <#if postageInfo.postageStatus??>
|
|
|
+ <#if postageInfo.postageStatus == 1><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>
|
|
|
+ </#if>
|
|
|
+ <td>${postageInfo.postageDesc!''}</td>
|
|
|
+ <td><a onclick="deletePostage(${(postageInfo.postageId)!});">删除</a> <a onclick="getPostage(${(postageInfo.postageId)!});">修改</a></td>
|
|
|
+ </tr>
|
|
|
+ </#list>
|
|
|
+ <#else>
|
|
|
+ <tr><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">
|
|
|
+ <div class="formControls col-2 col-sm-2 text-r">
|
|
|
+ <strong>状态</strong>
|
|
|
</div>
|
|
|
+ <div class="formControls col-8 col-sm-8">
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" id="tel-66" name="postageStatus" checked value="1">
|
|
|
+ <label for="tel-66">未申请</label>
|
|
|
+ </div>
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" id="tel-77" name="postageStatus" value="2">
|
|
|
+ <label for="tel-77">已申请(待转账)</label>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="formControls col-4 col-sm-4 text-r" style="padding-left: 0px;">
|
|
|
- <input type="text" class="input-text" value="" placeholder="用户支付宝账户" id="relationAlipay" name="relationAlipay" seleType="postage">
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" id="tel-88" name="postageStatus" value="3">
|
|
|
+ <label for="tel-88">已转账</label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="formControls col-4 col-sm-4 text-r" style="padding-left: 0px;">
|
|
|
- <input type="text" class="input-text" value="" placeholder="用户支付宝姓名" id="relationAlipayName" name="relationAlipayName" seleType="postage">
|
|
|
+ </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="postageAmount" name="postageAmount">
|
|
|
+ </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="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">
|
|
|
+ <div class="formControls col-2 col-sm-2 text-r">
|
|
|
+ <strong>备注信息</strong>
|
|
|
+ </div>
|
|
|
+ <div class="formControls col-5 col-sm-5">
|
|
|
+ <textarea type="text" placeholder="" id="postageDesc" name="postageDesc" style="width: 100%;height: 80px;"></textarea>
|
|
|
+ </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">
|
|
|
+ <button type="button" class="btn btn-primary" style="background: #32a3d8;color: #fff;" id="" name="" onclick="addPostage()">确定录入邮费转账</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <div id="updatePostageId" style="display: none;">
|
|
|
+ <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="radio-box">
|
|
|
+ <input type="radio" id="tel-666" name="postageStatuss" value="1">
|
|
|
+ <label for="tel-666">未申请</label>
|
|
|
+ </div>
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" id="tel-777" name="postageStatuss" value="2">
|
|
|
+ <label for="tel-777">已申请(待转账)</label>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" id="tel-888" name="postageStatuss" value="3">
|
|
|
+ <label for="tel-888">已转账</label>
|
|
|
+ </div>
|
|
|
+ </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="postageAmounts" name="postageAmounts">
|
|
|
+ </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">
|
|
|
+ </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">
|
|
|
+ <textarea type="text" placeholder="" id="postageDescs" name="postageDescs" style="width: 100%;height: 80px;"></textarea>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <input type="hidden" value="" id="postageIds">
|
|
|
+ <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">
|
|
|
+ <button type="button" class="btn btn-primary" style="background: #32a3d8;color: #fff;" id="" name="" onclick="updatePostage()">确定修改邮费信息</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="row cl">
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
</div>
|
|
@@ -213,22 +346,6 @@
|
|
|
<input type="text" class="input-text" value="" placeholder="Efast订单号" id="relationBackEfastOrderId" name="relationBackEfastOrderId" seleType="sendInformation">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <#--<div class="row cl">
|
|
|
- <div class="formControls col-2 col-sm-2 text-r">
|
|
|
- <strong>寄出产品</strong>
|
|
|
- </div>
|
|
|
- <div class="formControls col-10 col-sm-10">
|
|
|
- <div class="update-parts" id="sendProduct"></div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="row cl">
|
|
|
- <div class="formControls col-2 col-sm-2">
|
|
|
- </div>
|
|
|
- <div class="formControls col-10 col-sm-10">
|
|
|
- (如需修改,在Efast系统作废订单,重新生成订单,并与此处修改Efast重新生成的订单号!)
|
|
|
- </div>
|
|
|
- </div>-->
|
|
|
-
|
|
|
<div class="row cl" id="sendUserInfo">
|
|
|
<div class="formControls col-2 col-sm-2 text-r">
|
|
|
<strong>用户信息</strong>
|
|
@@ -358,12 +475,187 @@
|
|
|
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})))$/;//金额
|
|
|
|
|
|
+ function showPostageDiv() {
|
|
|
+ $("#updatePostageId").hide();
|
|
|
+ $("#addPostageId").show();
|
|
|
+ }
|
|
|
+
|
|
|
+ function isRelationIsTransfer(type) {
|
|
|
+ if(type == 0){
|
|
|
+ $("#postageInformation").hide();
|
|
|
+ }else{
|
|
|
+ $("#postageInformation").show();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /*添加邮费信息*/
|
|
|
+ function addPostage() {
|
|
|
+ var postageInfo;
|
|
|
+ var relationId = $("#relationId").val();
|
|
|
+ var postageStatus = parseInt($("input[name='postageStatus']:checked").val());
|
|
|
+ var postageAmount = $("#postageAmount").val()*100;
|
|
|
+ var postageAlipayName = $("#postageAlipayName").val();
|
|
|
+ var postageAlipay = $("#postageAlipay").val();
|
|
|
+ var postageDesc = $("#postageDesc").val();
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: {"relationId" : relationId,
|
|
|
+ "postageStatus" : postageStatus,
|
|
|
+ "postageAmount" : postageAmount,
|
|
|
+ "postageAlipayName" : postageAlipayName,
|
|
|
+ "postageAlipay" : postageAlipay,
|
|
|
+ "postageDesc" : postageDesc},
|
|
|
+ url: "${path}/admin/customer/add_PostageInfo",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ postageInfo = postageInfo = data.returnMsg.postageInfo;
|
|
|
+ var postageStatuss
|
|
|
+ if(postageInfo.postageStatus == 1){
|
|
|
+ postageStatuss = "未申请";
|
|
|
+ }
|
|
|
+ if(postageInfo.postageStatus == 2){
|
|
|
+ postageStatuss = "已申请(待转账)";
|
|
|
+ }
|
|
|
+ if(postageInfo.postageStatus == 3){
|
|
|
+ postageStatuss = "已转账";
|
|
|
+ }
|
|
|
+ if(postageInfo.postageStatus == 4){
|
|
|
+ postageStatuss = "未知";
|
|
|
+ }
|
|
|
+ $("#trbodyId").append('<tr id="deleteId'+postageInfo.postageId+'"><td>'+postageInfo.postageId+'</td>' +
|
|
|
+ '<td>'+(postageInfo.postageAmount)/100+'</td>' +
|
|
|
+ '<td>'+postageInfo.postageAlipayName+'</td>' +
|
|
|
+ '<td>'+postageInfo.postageAlipay+'</td>' +
|
|
|
+ '<td>'+postageStatuss+'</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});
|
|
|
+ } else {
|
|
|
+ layer.msg("添加失败!",{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ window.parent.admin_result("修改失败!",5);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ /*删除邮费信息*/
|
|
|
+ function deletePostage(postageId) {
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: {"postageId" : postageId},
|
|
|
+ url: "${path}/admin/customer/delete_PostageInfo",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ $("#deleteId"+postageId).remove();
|
|
|
+ layer.msg("删除成功!",{icon: 1,time:1000});
|
|
|
+ } else {
|
|
|
+ layer.msg("删除失败!",{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ window.parent.admin_result("修改失败!",5);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ /*查询邮费信息*/
|
|
|
+ function getPostage(postageId) {
|
|
|
+ var postageInfo;
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: {"postageId" : postageId},
|
|
|
+ url: "${path}/admin/customer/get_PostageInfo",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ $("#addPostageId").hide();
|
|
|
+ $("#updatePostageId").show();
|
|
|
+ postageInfo = data.returnMsg.postageInfo;
|
|
|
+ $("#postageDescs").val("");
|
|
|
+ $("#postageIds").val(postageInfo.postageId);
|
|
|
+ $("input[type=radio][name=postageStatuss][value='"+postageInfo.postageStatus+"']").prop("checked",true);
|
|
|
+ $("#postageAmounts").val(postageInfo.postageAmount/100);
|
|
|
+ $("#postageAlipays").val(postageInfo.postageAlipay);
|
|
|
+ $("#postageAlipayNames").val(postageInfo.postageAlipayName);
|
|
|
+ $("#postageDescs").val(postageInfo.postageDesc);
|
|
|
+
|
|
|
+ } else {
|
|
|
+ layer.msg("修改失败!",{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ window.parent.admin_result("修改失败!",5);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ /*修改邮费信息*/
|
|
|
+ function updatePostage() {
|
|
|
+ var postageInfo;
|
|
|
+ var postageId = $("#postageIds").val();
|
|
|
+ var postageStatus = parseInt($("input[name='postageStatuss']:checked").val());
|
|
|
+ var postageAmount = $("#postageAmounts").val()*100;
|
|
|
+ var postageAlipayName = $("#postageAlipayNames").val();
|
|
|
+ var postageAlipay = $("#postageAlipays").val();
|
|
|
+ var postageDesc = $("#postageDescs").val();
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: {
|
|
|
+ "postageId" : postageId,
|
|
|
+ "postageStatus" : postageStatus,
|
|
|
+ "postageAmount" : postageAmount,
|
|
|
+ "postageAlipayName" : postageAlipayName,
|
|
|
+ "postageAlipay" : postageAlipay,
|
|
|
+ "postageDesc" : postageDesc},
|
|
|
+ url: "${path}/admin/customer/update_PostageInfo",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ postageInfo = data.returnMsg.postageInfo;
|
|
|
+ var postageStatuss
|
|
|
+ if(postageInfo.postageStatus == 1){
|
|
|
+ postageStatuss = "未申请";
|
|
|
+ }
|
|
|
+ if(postageInfo.postageStatus == 2){
|
|
|
+ postageStatuss = "已申请(待转账)";
|
|
|
+ }
|
|
|
+ if(postageInfo.postageStatus == 3){
|
|
|
+ postageStatuss = "已转账";
|
|
|
+ }
|
|
|
+ if(postageInfo.postageStatus == 4){
|
|
|
+ postageStatuss = "未知";
|
|
|
+ }
|
|
|
+ $("#deleteId"+postageId).html("");
|
|
|
+ $("#deleteId"+postageId).append('<td>'+postageInfo.postageId+'</td>' +
|
|
|
+ '<td>'+(postageInfo.postageAmount)/100+'</td>' +
|
|
|
+ '<td>'+postageInfo.postageAlipayName+'</td>' +
|
|
|
+ '<td>'+postageInfo.postageAlipay+'</td>' +
|
|
|
+ '<td>'+postageStatuss+'</td>' +
|
|
|
+ '<td>'+postageInfo.postageDesc+'</td>' +
|
|
|
+ '<td><a onclick="deletePostage('+postageInfo.postageId+');">删除</a>  <a onclick="getPostage('+postageInfo.postageId+');">修改</a></td>');
|
|
|
+
|
|
|
+ layer.msg("修改成功!",{icon: 1,time:1000});
|
|
|
+ } else {
|
|
|
+ layer.msg("修改失败!",{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ window.parent.admin_result("修改失败!",5);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
$(function(){
|
|
|
- $('.skin-minimal input').iCheck({
|
|
|
- checkboxClass: 'icheckbox-blue',
|
|
|
- radioClass: 'iradio-blue',
|
|
|
- increaseArea: '20%'
|
|
|
- });
|
|
|
+
|
|
|
get_cmRelation_info();
|
|
|
showUpdateSendProduct();
|
|
|
get_product_type();
|
|
@@ -654,13 +946,19 @@
|
|
|
$("#cityNumber option[value='" + relation.cityNumber + "']").attr("selected","true");
|
|
|
$("#areaNumber option[value='" + relation.areaNumber + "']").attr("selected","true");
|
|
|
$('#relationBackLogisticsNo').val(relation.relationBackLogisticsNo);
|
|
|
- $('#relationBackPostage').val(relation.relationBackPostage/100);
|
|
|
+ /*$('#relationBackPostage').val(relation.relationBackPostage/100);
|
|
|
$('#relationAlipay').val(relation.relationAlipay);
|
|
|
- $('#relationAlipayName').val(relation.relationAlipayName);
|
|
|
+ $('#relationAlipayName').val(relation.relationAlipayName);*/
|
|
|
$('input[name="relationIsTransfer"]').each(function(){
|
|
|
if (this.value == relation.relationIsTransfer) {
|
|
|
$(this).iCheck('check');
|
|
|
+ if(relation.relationIsTransfer == 0){
|
|
|
+ $("#postageInformation").hide();
|
|
|
+ }else{
|
|
|
+ $("#postageInformation").show();
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
});
|
|
|
$('#relationBackName').val(relation.relationBackName);
|
|
|
$('#relationBackTel').val(relation.relationBackTel);
|
|
@@ -745,8 +1043,8 @@
|
|
|
$('#merge_address').val(provinceNumber+'-'+cityNumber+'-'+areaNumber);
|
|
|
|
|
|
//寄回邮费
|
|
|
- var relationBackPostage = $("#relationBackPostage").val();
|
|
|
- $("#relationBackPostage").val(parseInt(relationBackPostage*100));
|
|
|
+ /*var relationBackPostage = $("#relationBackPostage").val();
|
|
|
+ $("#relationBackPostage").val(parseInt(relationBackPostage*100));*/
|
|
|
var obj = null;
|
|
|
if(type == 1){
|
|
|
obj = getseleType("send");
|
|
@@ -848,16 +1146,16 @@
|
|
|
}
|
|
|
}else if(type == 2){
|
|
|
var relationIsTransfer = $('input[name="relationIsTransfer"]:checked').val();
|
|
|
- var relationBackPostage = $('#relationBackPostage').val().trim();//寄回邮费
|
|
|
+ /*var relationBackPostage = $('#relationBackPostage').val().trim();//寄回邮费
|
|
|
var relationAlipay = $('#relationAlipay').val().trim();//支付宝账户
|
|
|
- var relationAlipayName = $('#relationAlipayName').val().trim();//支付宝账户姓名
|
|
|
+ var relationAlipayName = $('#relationAlipayName').val().trim();//支付宝账户姓名*/
|
|
|
|
|
|
if(relationIsTransfer == 1){
|
|
|
- if (!money.test(relationBackPostage)) {
|
|
|
+ /*if (!money.test(relationBackPostage)) {
|
|
|
layer.msg("邮费格式不正确,请重新输入!",{icon: 5,time:1000});
|
|
|
relation_flag = false;
|
|
|
return relation_flag;
|
|
|
- }
|
|
|
+ }*/
|
|
|
// if (!money.test(renewedAlipay)) {
|
|
|
// layer.msg("支付宝账户格式不正确,请重新输入!",{icon: 5,time:1000});
|
|
|
// renewed_flag = false;
|