|
@@ -80,7 +80,7 @@
|
|
|
<td><fmt:formatDate value="${infolist.mainChannelCreateTime}" pattern="yyyy-MM-dd"/></td>
|
|
|
<td>
|
|
|
<a onclick="toRebateList(${infolist.mainChannelId})">查看明细</a><br>
|
|
|
- <a href="#" onclick="settlement(${infolist.mainChannelId});">结算</a>
|
|
|
+ <a href="#" onclick="getChannel(${infolist.mainChannelId});">结算</a>
|
|
|
</td>
|
|
|
</c:forEach>
|
|
|
</c:if>
|
|
@@ -99,49 +99,50 @@
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-2"> 渠道名称:</label>
|
|
|
<div class="formControls col-3">
|
|
|
- <span class="">
|
|
|
- 鄂锐鄂锐
|
|
|
- </span>
|
|
|
+ <b><span id="channelName">
|
|
|
+
|
|
|
+ </span></b>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="row cl">
|
|
|
+ <div class="row cl" style="margin-top: 10px;">
|
|
|
<label class="form-label col-2"> 本次金额:</label>
|
|
|
<div class="formControls col-3">
|
|
|
- <span class="">
|
|
|
- 10000元
|
|
|
+ <span id="rebackAmount">
|
|
|
+
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<br>
|
|
|
<div class="row cl">
|
|
|
<div class="formControls col-5">
|
|
|
- <table class="table table-border table-bordered table-bg" style="width: 450px;">
|
|
|
+ <table class="table table-border table-bordered table-bg" style="width: 450px;margin-left: 10px;">
|
|
|
<thead>
|
|
|
<tr class="text-c">
|
|
|
- <th width="150">账户银行</th>
|
|
|
- <th width="150">收款账号</th>
|
|
|
- <th width="150">开户名称</th>
|
|
|
+ <th width="150" >账户银行</th>
|
|
|
+ <th width="150" >收款账号</th>
|
|
|
+ <th width="150" >开户名称</th>
|
|
|
<th width="90">开户支行</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<tr class="text-c">
|
|
|
- <td>1</td>
|
|
|
- <td>1</td>
|
|
|
- <td>1</td>
|
|
|
- <td>1</td>
|
|
|
+ <td id="channelBank"></td>
|
|
|
+ <td id="channelBankAccount"></td>
|
|
|
+ <td id="channelBankName"></td>
|
|
|
+ <td id="channelBankBranch"></td>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
<br>
|
|
|
-
|
|
|
- <div class="col-9 col-offset-3">
|
|
|
- <input class="btn btn-danger" type="button" onclick="remrakSumbit()" value=" 提交 ">
|
|
|
+ <span style="margin-left: 10px;">请在打款后,点击”确认已结算“按钮,系统将对应的返利记录标记为已打款。</span>
|
|
|
+ <div class="col-9 col-offset-3" style="margin-top: 10px;">
|
|
|
+ <input class="btn btn-danger" type="button" onclick="update_status()" value=" 确认已结算 ">
|
|
|
</div>
|
|
|
<span class="layui-layer-setwin">
|
|
|
<a class="layui-layer-ico layui-layer-close layui-layer-close1" onclick="exitWindowsDiv(this)" href="javascript:;"></a>
|
|
|
</span>
|
|
|
+ <input type="hidden" value="" id="rebackChannelId">
|
|
|
</div>
|
|
|
</div>
|
|
|
<script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/lib/jquery/1.9.1/jquery.min.js"></script>
|
|
@@ -152,13 +153,40 @@
|
|
|
<script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/My97DatePicker/WdatePicker.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
- /*function update_status(id){
|
|
|
- layer.confirm('确认要修改返利状态吗?',function(index){
|
|
|
+ function getChannel(id){
|
|
|
$.ajax({
|
|
|
- url: '${pageContext.request.contextPath }/admin/channel/updateState',
|
|
|
+ url: '${pageContext.request.contextPath }/admin/channel/settlement',
|
|
|
type: "POST",
|
|
|
dataType: "json",
|
|
|
- data: {rebateId : id,rebackStatus : 3},
|
|
|
+ data: {rebackChannelId : id,rebackChannelType : 1},
|
|
|
+ error:function(data){
|
|
|
+ layer.msg(data.status,{icon: 5,time:2000});
|
|
|
+ },
|
|
|
+ success: function(data){
|
|
|
+ if(data.status){
|
|
|
+ $("#layui-layer4").show();
|
|
|
+ $("#channelName").html(data.data.mainChannelName);
|
|
|
+ $("#rebackAmount").html(data.data.rebackAmount+"元");
|
|
|
+ $("#channelBank").html(data.data.mainChannelBank);
|
|
|
+ $("#channelBankAccount").html(data.data.mainChannelBankAccount);
|
|
|
+ $("#channelBankName").html(data.data.mainChannelBankName);
|
|
|
+ $("#channelBankBranch").html(data.data.mainChannelBankBranch);
|
|
|
+ $("#rebackChannelId").html(data.data.mainChannelId);
|
|
|
+ }else{
|
|
|
+ layer.msg("操作失败",{icon: 5,time:2000});
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function update_status(){
|
|
|
+ var rebackChannelId = $("#rebackChannelId").val();
|
|
|
+ $.ajax({
|
|
|
+ url: '${pageContext.request.contextPath }/admin/channel/updateRebackStatus',
|
|
|
+ type: "POST",
|
|
|
+ dataType: "json",
|
|
|
+ data: {rebackChannelId : rebackChannelId,rebackChannelType : 1},
|
|
|
error:function(data){
|
|
|
layer.msg(data.status,{icon: 5,time:2000});
|
|
|
},
|
|
@@ -171,18 +199,14 @@
|
|
|
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
- );
|
|
|
-
|
|
|
- }*/
|
|
|
+ }
|
|
|
function toRebateList(id) {
|
|
|
window.location.href = '${pageContext.request.contextPath }/admin/channel/listChannelRebate?rebackChannelType=1&rebackChannelId='+id;
|
|
|
}
|
|
|
-
|
|
|
- function settlement(type,id) {
|
|
|
- $("#layui-layer4").show();
|
|
|
+ // 关闭窗口
|
|
|
+ function exitWindowsDiv(_this) {
|
|
|
+ $(_this).parent().parent().hide();
|
|
|
}
|
|
|
-
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|