|
|
<extend name="Public/base"/>
|
|
|
|
|
|
<block name="body">
|
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
|
<link rel="stylesheet" href="__CSS__/pro_promote.css" type="text/css" />
|
|
|
<script src="__STATIC__/jquery.form.js"></script>
|
|
|
<script src="__STATIC__/layer/layer.js"></script>
|
|
|
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
|
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
|
<script type="text/javascript" src="__STATIC__/layer3/layer.js"></script>
|
|
|
<script src="__STATIC__/juicer-min.js" type="text/javascript"></script>
|
|
|
<style>
|
|
|
.select2-container--default .select2-selection--single {
|
|
|
color: #000;
|
|
|
resize: none;
|
|
|
border-width: 1px;
|
|
|
border-style: solid;
|
|
|
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
|
|
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
|
|
|
height:28px;border-radius:3px;font-size:12px;
|
|
|
}
|
|
|
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
|
|
line-height:35px;
|
|
|
line-height:28px;
|
|
|
}
|
|
|
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
|
|
height:26px;
|
|
|
}
|
|
|
.select2-container--default .select2-search--dropdown .select2-search__field {
|
|
|
height:26px;line-height:26px;font-size:12px;
|
|
|
}
|
|
|
.select2-results__option[aria-selected] {font-size:12px;}
|
|
|
.layui-layer-dialog .layui-layer-content{color:red}
|
|
|
.butnbox {padding:10px 0 10px;}
|
|
|
.butnbox .butnlist {overflow:hidden;clear:both;}
|
|
|
.butnbox .butnlist .butn,.butnbox .butnlist .butn:hover {text-decoration:none;border:none;}
|
|
|
.butnbox .butnlist .butn {display:inline-block;width:120px;height:28px;line-height:28px;text-align:center;color:#FFF;background:#3C95C8;border-radius:3px;}
|
|
|
.butnbox .butnlist .butn.last {background:#009900;}
|
|
|
.butnbox .butnlist .butn~.butn {margin-left:20px;}
|
|
|
.data_list table tbody tr a.disabled,.data_list table tbody tr a.disabled:hover {color:#999;cursor:default;}
|
|
|
.layui-layer-title {
|
|
|
text-align: center;
|
|
|
height: 80px;
|
|
|
line-height: 80px;
|
|
|
font-weight: 600;
|
|
|
font-size: 18px;
|
|
|
}
|
|
|
/* .data_list table td{
|
|
|
line-height: 2;
|
|
|
} */
|
|
|
|
|
|
.layui-layer-title {
|
|
|
text-align: center;
|
|
|
height: 42px;
|
|
|
line-height: 42px;
|
|
|
font-weight: 400;
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
.tooltip {
|
|
|
position: relative;
|
|
|
/* display: block; */
|
|
|
/* color: #056dae; */
|
|
|
}
|
|
|
|
|
|
.tooltip .tooltiptext {
|
|
|
display: none;
|
|
|
width: 100%;
|
|
|
background-color: #fff;
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 5px 10px 5px 5px;
|
|
|
position: absolute;
|
|
|
z-index: 1;
|
|
|
bottom: 80%;
|
|
|
left: 0;
|
|
|
border: #000 solid 1px;
|
|
|
line-height: 20px;
|
|
|
}
|
|
|
|
|
|
.tooltip .tooltiptext::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
top: 100%;
|
|
|
left: 50%;
|
|
|
margin-left: -5px;
|
|
|
border-width: 5px;
|
|
|
border-style: solid;
|
|
|
border-color: black transparent transparent transparent;
|
|
|
}
|
|
|
|
|
|
.tooltip:hover .tooltiptext {
|
|
|
color: #333;
|
|
|
display: block;
|
|
|
|
|
|
}
|
|
|
.page .sch-btn:before{
|
|
|
content: '';
|
|
|
padding: 0;
|
|
|
}
|
|
|
::-webkit-scrollbar {
|
|
|
width: 3px;
|
|
|
height: 3px;
|
|
|
}
|
|
|
::-webkit-scrollbar-track {
|
|
|
border-radius: 3px; /*滚动条的背景区域的圆角*/
|
|
|
}
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
border-radius: 3px; /*滚动条的圆角*/
|
|
|
background-color: #ccc; /*滚动条的背景颜色*/
|
|
|
}
|
|
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
|
background-color: #bbb;
|
|
|
}
|
|
|
|
|
|
::-webkit-scrollbar-thumb:active {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
.triangle{
|
|
|
width:0;
|
|
|
height:0;
|
|
|
border-top:10px solid blue;
|
|
|
border-left:8px solid transparent;
|
|
|
border-right:8px solid transparent;
|
|
|
border-bottom:0;
|
|
|
/*float: left;*/
|
|
|
}
|
|
|
</style>
|
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
<h3 class="page_title">线上打款</h3>
|
|
|
<p class="description_text">信息不全指:支付宝账号或真实姓名未填写</p>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="cf top_nav_list" style="height: 38px;">
|
|
|
<!-- 高级搜索 -->
|
|
|
<div class="jssearch fl cf search_list" style="margin-bottom: 0">
|
|
|
|
|
|
<div class="input-list input-list-promote search_label_rehab">
|
|
|
<select id="company_type" name="company_type" class="select_gallery" >
|
|
|
<option value="">结算单类型</option>
|
|
|
<volist name="CompanyType" id="vo">
|
|
|
<option value="{$key}" <if condition="isset($_GET['company_type']) && $key eq I('company_type')">selected</if> >{$vo}</option>
|
|
|
</volist>
|
|
|
</select>
|
|
|
</div>
|
|
|
|
|
|
<div class="input-list input-list-promote search_label_rehab">
|
|
|
<select id="company_id" name="company_id" class="select_gallery" style="width: 220px;">
|
|
|
<option value="">请先选择公司类型</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div class="input-list">
|
|
|
<input type="text" readonly id="time_start" name="time_start" class="" value="{:I('time_start')}" placeholder="结算开始时间" />
|
|
|
-
|
|
|
<div class="input-append date" style="display:inline-block">
|
|
|
<input type="text" readonly id="datetimepicker" name="time_end" class="" value="{:I('time_end')}" placeholder="结算结束时间" />
|
|
|
<span class="add-on"><i class="icon-th"></i></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="input-list input-list-promote search_label_rehab">
|
|
|
<select id="pay_status" name="pay_status" class="select_gallery" >
|
|
|
<option value="">打款状态</option>
|
|
|
<volist name="PayStatus" id="vo">
|
|
|
<option value="{$key}" <if condition="isset($_GET['pay_status']) && $key eq I('pay_status')">selected</if> >{$vo}</option>
|
|
|
</volist>
|
|
|
</select>
|
|
|
</div>
|
|
|
|
|
|
<div class="input-list input-list-promote search_label_rehab">
|
|
|
<select id="pay_type" name="pay_type" class="select_gallery" >
|
|
|
<option value="">打款方式</option>
|
|
|
<option value="1" <if condition="isset($_GET['pay_type']) && I('pay_type') eq 1">selected</if> >提现</option>
|
|
|
<option value="2" <if condition="isset($_GET['pay_type']) && I('pay_type') eq 2">selected</if> >线上打款</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="input-list">
|
|
|
<input type="text" name="statement_num" class="" value="{:I('statement_num')}" placeholder="请输入汇总单号" style="width: 180px;"/>
|
|
|
</div>
|
|
|
<div class="input-list">
|
|
|
<input type="text" readonly id="time_start2" name="pay_time_start" class="" value="{:I('pay_time_start')}" placeholder="支付开始时间" />
|
|
|
-
|
|
|
<div class="input-append date" style="display:inline-block">
|
|
|
<input type="text" readonly id="datetimepicker2" name="pay_time_end" class="" value="{:I('pay_time_end')}" placeholder="支付结束时间" />
|
|
|
<span class="add-on"><i class="icon-th"></i></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="input-list">
|
|
|
<input type="text" readonly id="verifytime_start" name="verifytime_start" class="" value="{:I('verifytime_start')}" placeholder="审核开始时间" />
|
|
|
-
|
|
|
<div class="input-append date" style="display:inline-block">
|
|
|
<input type="text" readonly id="verifytime_end" name="verifytime_end" class="" value="{:I('verifytime_end')}" placeholder="审核结束时间" />
|
|
|
<span class="add-on"><i class="icon-th"></i></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="input-list">
|
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('lists','model='.$model['name'] .'&row='.I('row'),false)}">搜索</a>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="butnbox" >
|
|
|
<div class="butnlist jscheckbutn" style="margin-left: 2px">
|
|
|
<if condition="session('payment_user.is_payment') eq 1">
|
|
|
<a class='butn' id='doPayment'>打款</a>
|
|
|
</if>
|
|
|
<!-- <a class='butn verify' data-value='1'>审核通过</a>-->
|
|
|
<!-- <a class='butn verify' data-value='2'>审核拒绝</a>-->
|
|
|
<!-- <a class='butn return_verify' data-value='0' style="background-color: red;">审核撤回</a>-->
|
|
|
<a class='butn setPayment'>打款信息确认</a>
|
|
|
<a class='butn returnSetPayment' id="returnSetPayment">打款信息确认撤回</a>
|
|
|
<a class='butn' id='export'>导出所选记录</a>
|
|
|
<a class='butn' id='export_all'>导出当前记录</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!-- 数据列表 -->
|
|
|
<div class="data_list">
|
|
|
<div class="">
|
|
|
<table>
|
|
|
<!-- 表头 -->
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th><input class="check-all" type="checkbox"></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>
|
|
|
<if condition = "empty($data)">
|
|
|
<tr>
|
|
|
<td colspan="16" class="text-center">aOh! 暂时还没有内容!</td>
|
|
|
</tr>
|
|
|
</if>
|
|
|
<notemtpy name = "data">
|
|
|
<volist name="data" id="data">
|
|
|
<tr>
|
|
|
<td ><input class="ids" type="checkbox" value="{$data['ids']}" data-verify_id="{$data['id']}" data-pay_check="{$data['pay_check']}" data-pay="{$data['can_pay']}" name="ids[]" data-paystatus="{$data.pay_status}" data-verify_status="{$data['verify_status']}" data-verifystatus="{$data.pay_verify_status}"></td>
|
|
|
<td style="text-align: left">{$data.company_name}</td>
|
|
|
<td>{$data.company_type}</td>
|
|
|
<td>{$data.valid}</td>
|
|
|
<td>{$data.statement_pool_num}</td>
|
|
|
<td>{$data.statement_money}</td>
|
|
|
<td>{$data.ali_user}</td>
|
|
|
<td>{$data.ali_account}</td>
|
|
|
<td>{$data.pay_check_detail}</td>
|
|
|
<if condition="($data['verify_status'] eq -1) OR ($data['pay_status'] eq -1) ">
|
|
|
<td style="color: red;">{$data.verify_status_str}</td><else />
|
|
|
<td>{$data.verify_status_str}</td>
|
|
|
</if>
|
|
|
|
|
|
<td>{$data.pay_time}</td>
|
|
|
<td>{$data.remark}</td>
|
|
|
<td>
|
|
|
<!-- <a class='confirm viewPool' data-id='{$data.id}'>查看</a> -->
|
|
|
<if condition="$data['pay_status'] neq 0 and count($data['son_info']) elt 1">
|
|
|
<a class='confirm paymentInfo' data-id="{$data['son_info'][0]['id']}">打款详情</a>
|
|
|
</if>
|
|
|
<if condition="$data['pay_status'] eq -1">
|
|
|
<a class='confirm changeCompanyInfo' data-id="{$data['id']}">更新打款信息</a>
|
|
|
</if>
|
|
|
<if condition="$data['pay_status'] neq 1">
|
|
|
<a class='confirm changePayTapy' data-id="{$data['id']}">转线下打款</a>
|
|
|
</if>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<volist name="data.son_info" id="s_data">
|
|
|
<if condition="count($data['son_info']) gt 1">
|
|
|
<tr>
|
|
|
<!-- <td ><input class="ids" type="checkbox" value="{$data['id']}" data-pay="{$data['can_pay']}" name="ids[]" data-paystatus="{$data.pay_status}" data-verifystatus="{$data.pay_verify_status}"></td>-->
|
|
|
<td></td>
|
|
|
<td style="text-align: left"><span style="margin-left: 15px">|--{$s_data.company_name}</span></td>
|
|
|
<td>{$s_data.company_type}</td>
|
|
|
<td>{$s_data.valid}</td>
|
|
|
|
|
|
<td>{$s_data.statement_pool_num}</td>
|
|
|
|
|
|
<td>{$s_data.statement_money}</td>
|
|
|
<td>{$data.ali_user}</td>
|
|
|
<td>{$data.ali_account}</td>
|
|
|
<td>{$data.pay_check_detail}</td>
|
|
|
<!-- <td>{$data.verify|default='--'}</td>-->
|
|
|
<!-- <td>{$data.platform_amount}</td>-->
|
|
|
<if condition="($s_data['verify_status'] eq -1) OR ($s_data['pay_status'] eq -1) ">
|
|
|
<td style="color: red;">{$s_data.verify_status_str}</td>
|
|
|
<else />
|
|
|
<td>{$s_data.verify_status_str}</td>
|
|
|
</if>
|
|
|
|
|
|
<td>{$s_data.pay_time}</td>
|
|
|
<td>{$s_data.remark}</td>
|
|
|
<td>
|
|
|
<!-- <a class='confirm viewPool' data-id='{$data.id}'>查看</a>-->
|
|
|
<if condition="$s_data['pay_status'] neq 0">
|
|
|
<a class='confirm paymentInfo' data-id='{$s_data.id}'>打款详情</a>
|
|
|
</if>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</if>
|
|
|
</volist>
|
|
|
</volist>
|
|
|
<tr><td style="line-height: 42px;">合计</td><td colspan="13" style="line-height: 42px;">待打款金额: {$sum['unpay_amount']|default='0.00'} 打款成功金额: {$sum['pay_amount']|default='0.00'} 打款失败金额: {$sum['faild_pay_amount']|default='0.00'}</td></tr>
|
|
|
</notemtpy>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
<div class="page">
|
|
|
<if condition="$role_export_check eq true ">
|
|
|
<!-- <a class="sch-btn" href="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}" target="_blank">导出</a> -->
|
|
|
</if>
|
|
|
{$_page|default=''}
|
|
|
</div>
|
|
|
<div style="width: 800vw;height:600vh;padding: 0;position: absolute;top: 0;z-index: 9999;background-color:rgba(0,0,0,.6);right: 1px;display: none" id="window">
|
|
|
<div class="layui-layer layui-layer-hui" style="width:800px;height:440px;z-index: 19891015; top:28%; left:35%;border-radius: 2%;background-color:white;color: #0a001f;">
|
|
|
<div style="padding: 15px 30px 15px 20px;font-size: 28px;">打款提示</div>
|
|
|
<div class="layui-layer-content" style="font-size: 22px;padding: 0 25px;">您所选打款单与以下打款单可能存在重复,请谨慎操作</div>
|
|
|
<!-- <div style="padding: 0 25px">-->
|
|
|
<!-- <span style="width: 135px;display: block;float: left;height: 30px;text-align: center;border:#c7c7c7 1px solid;border-right:none;"><span style="display: block;padding: 6px 10px">公司</span></span>-->
|
|
|
<!-- <span style="width: 135px;display: block;float: left;height: 30px;text-align: center;border:#c7c7c7 1px solid;border-right:none;"><span style="display: block;padding: 6px 10px">结算时间</span></span>-->
|
|
|
<!-- <span style="width: 135px;display: block;float: left;height: 30px;text-align: center;border:#c7c7c7 1px solid;border-right:none;"><span style="display: block;padding: 6px 10px">结算金额</span></span>-->
|
|
|
<!-- <span style="width: 136px;display: block;float: left;height: 30px;text-align: center;border:#c7c7c7 1px solid;"><span style="display: block;padding: 6px 10px">支付时间</span></span>-->
|
|
|
<!-- </div>-->
|
|
|
<div class="layui-layer-content" style="font-size: 22px;padding: 5px 25px;height: 200px;overflow-x:hidden;overflow-y:scroll">
|
|
|
<div class="data_list">
|
|
|
<div class="">
|
|
|
<table>
|
|
|
<!-- 表头 -->
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>公司</th>
|
|
|
<th>结算时间</th>
|
|
|
<th>结算金额</th>
|
|
|
<th>支付时间</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<!-- 列表 -->
|
|
|
<tbody id="tbody">
|
|
|
<tr>
|
|
|
<td >13214</td>
|
|
|
<td>13214</td>
|
|
|
<td>13214</td>
|
|
|
<td>13214</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td >13214</td>
|
|
|
<td>13214</td>
|
|
|
<td>13214</td>
|
|
|
<td>13214</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="text-align: right;margin-top: 20px">
|
|
|
<div style="font-size: 28px;display: inline-block;">
|
|
|
<div class="search_list" style="justify-content:flex-end;width:100%;">
|
|
|
<div class="input-list" style="float: right;">
|
|
|
<a class="sch-btn" href="javascript:;" style="width: 150px;background: white;border: 1px solid black;color: black" id="back">返回</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="padding: 0 20px 0 0;font-size: 28px;display: inline-block;">
|
|
|
<div class="search_list" style="justify-content:flex-end;width:100%;">
|
|
|
<div class="input-list" style="float: right;">
|
|
|
<a class="sch-btn" href="javascript:;" style="width: 150px;" id="commit">继续打款</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="changeInfoShow">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<script id="changeInfoTpl" type="text/template">
|
|
|
<div style="width: 100vw;height:100vh;padding: 0;position: absolute;top: 0;z-index: 9999;background-color:rgba(0,0,0,.6);right: 1px;">
|
|
|
<div class="layui-layer layui-layer-hui" style="width:800px;height:440px;z-index: 19891015; top:28%; left:50%;margin-left: -400px;border-radius: 2%;background-color:white;color: #0a001f;">
|
|
|
<div style="padding: 15px 30px 15px 20px;font-size: 18px;">信息更新提示</div>
|
|
|
<div class="layui-layer-content" style="font-size: 16px;color: red;text-align: left;">信息更新后,子单及汇总单上该公司的信息将同步更新</div>
|
|
|
<div class="layui-layer-content" style="font-size: 22px;padding: 5px 25px;height: 200px;overflow-x:hidden;overflow-y:scroll">
|
|
|
<div class="data_list">
|
|
|
<div class="">
|
|
|
<table>
|
|
|
<!-- 表头 -->
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>合作公司名称</th>
|
|
|
<th>原支付宝用户</th>
|
|
|
<th>原支付宝账号</th>
|
|
|
<th>新支付宝用户</th>
|
|
|
<th>新支付宝账号</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<!-- 列表 -->
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td>${company_name}</td>
|
|
|
<td>${old_ali_user}</td>
|
|
|
<td>${old_ali_account}</td>
|
|
|
<td>${new_ali_user}</td>
|
|
|
<td>${new_ali_account}</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="text-align: right;margin-top: 20px">
|
|
|
<div style="font-size: 28px;display: inline-block;">
|
|
|
<div class="search_list" style="justify-content:flex-end;width:100%;">
|
|
|
<div class="input-list" style="float: right;">
|
|
|
<a class="sch-btn" href="javascript:;" style="width: 150px;background: white;border: 1px solid black;color: black" id="changeInfoBack">返回</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="padding: 0 20px 0 0;font-size: 28px;display: inline-block;">
|
|
|
<div class="search_list" style="justify-content:flex-end;width:100%;">
|
|
|
<div class="input-list" style="float: right;">
|
|
|
<a class="sch-btn" href="javascript:;" style="width: 150px;" id="changeInfoSure">确认修改</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
|
|
|
</block>
|
|
|
|
|
|
<block name="script">
|
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
|
<php>if(C('COLOR_STYLE')=='blue_color') echo '
|
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">
|
|
|
';
|
|
|
</php>
|
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
|
|
|
|
<script src="__STATIC__/laydate/laydate.js" type="text/javascript"></script>
|
|
|
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
|
|
<script src="__STATIC__/layer/extend/layer.ext.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
</script>
|
|
|
<script>
|
|
|
<volist name=":I('get.')" id="vo">
|
|
|
Think.setValue('{$key}',"{$vo}");
|
|
|
</volist>
|
|
|
$(".select_gallery").select2();
|
|
|
</script>
|
|
|
<script type="text/javascript">
|
|
|
//导航高亮
|
|
|
highlight_subnav("{:U('lists')}");
|
|
|
function reload() {
|
|
|
window.location.reload();
|
|
|
}
|
|
|
function closeLayer(pay_status) {
|
|
|
layer.closeAll();
|
|
|
if (pay_status == 1) {
|
|
|
layer.msg("<font style='color: white'>打款成功</font>");
|
|
|
} else {
|
|
|
layer.msg("<font style='color: white'>打款失败</font>");
|
|
|
}
|
|
|
setTimeout(function () {
|
|
|
window.location.reload();
|
|
|
},2000);
|
|
|
|
|
|
}
|
|
|
|
|
|
//支付信息更新类
|
|
|
var ChangePayInfo = {
|
|
|
defaultData:{
|
|
|
id:0,
|
|
|
company_name:"",
|
|
|
old_ali_user:"",
|
|
|
old_ali_account:"",
|
|
|
new_ali_user:"",
|
|
|
new_ali_account:""
|
|
|
}
|
|
|
,data : {}
|
|
|
,dataInit(id){
|
|
|
var url = "{:U('IsCanChangeCompanyInfo')}"+"&id="+id;
|
|
|
$.get(url,function(rep){
|
|
|
if(rep.status == 1){
|
|
|
ChangePayInfo.data = rep.data;
|
|
|
ChangePayInfo.display();
|
|
|
}else{
|
|
|
ChangePayInfo.remove();
|
|
|
layer.msg("<font style='color: white'>"+rep.msg+"</font>");
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
,doChangeCompanyInfo(){
|
|
|
var url = "{:U('DoChangeCompanyInfo')}";
|
|
|
var id = this.data.id;
|
|
|
$.post(url,{id:id},function(rep){
|
|
|
if(rep.status == 1){
|
|
|
ChangePayInfo.remove();
|
|
|
layer.msg("<font style='color: white'>"+rep.msg+"</font>",{time:1000},function(){
|
|
|
window.location.reload();
|
|
|
});
|
|
|
}else{
|
|
|
ChangePayInfo.remove();
|
|
|
layer.msg("<font style='color: white'>"+rep.msg+"</font>");
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
,display(){
|
|
|
var tpl = $("#changeInfoTpl").html();
|
|
|
var html = juicer(tpl, ChangePayInfo.data);
|
|
|
$("#changeInfoShow").html(html);
|
|
|
this.event();
|
|
|
}
|
|
|
,remove(){
|
|
|
ChangePayInfo.data = ChangePayInfo.defaultData;
|
|
|
$("#changeInfoShow").html('');
|
|
|
}
|
|
|
,event(){
|
|
|
$("#changeInfoSure,#changeInfoBack").off("click");
|
|
|
$("#changeInfoBack").on("click",function() {
|
|
|
ChangePayInfo.remove();
|
|
|
})
|
|
|
$("#changeInfoSure").on("click",function() {
|
|
|
ChangePayInfo.doChangeCompanyInfo();
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
$("#back,#window").click(function() {
|
|
|
$('#window').hide();
|
|
|
});
|
|
|
|
|
|
$(function(){
|
|
|
$("#export").click(function () {
|
|
|
var flag = false;
|
|
|
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
|
|
|
return $(elem).data("verify_id");
|
|
|
}).get();
|
|
|
|
|
|
if(text.length < 1){
|
|
|
layer.msg("<font style='color:white'>" + '请先选择要导出的打款单' + "</font>");
|
|
|
return;
|
|
|
}
|
|
|
_export();
|
|
|
function _export(){
|
|
|
layer.alert("<font style='color:#333'>"+"指令执行成功,等待浏览器响应中..在未确认下载完成前请勿关闭此页面.."+ "</font>");
|
|
|
var id = text.join(",");
|
|
|
var url ="{:U('export')}"+"&id="+id;
|
|
|
var iframeExcel = "<iframe src='"+url+"' width='0px' height='0px' style='z-index:-1;position: absolute;top: -999999px;'></iframe>"//添加下载的地址到iframe,这里是公司信息,我用**表示了。
|
|
|
$("body").append(iframeExcel);
|
|
|
}
|
|
|
});
|
|
|
//修改公司信息
|
|
|
$(".changeCompanyInfo").on("click",function() {
|
|
|
const id = $(this).data('id');
|
|
|
ChangePayInfo.dataInit(id);
|
|
|
})
|
|
|
//线上转线下
|
|
|
$(".changePayTapy").on("click",function() {
|
|
|
const id = $(this).data('id');
|
|
|
//执行
|
|
|
layer.confirm('是否确定直接转为线下打款?转为线下打款后,该打款单将从线上打款移出转入“管理后台>财务>线下打款确认”中。如需回退需要进行重算,请谨慎操作,是否确定?', {title:"提示"}, function(index){
|
|
|
var url = "{:U('setStatementPayType')}";
|
|
|
$.post(url,{id:id},function(rep){
|
|
|
if(rep.status == 1){
|
|
|
layer.msg("<font style='color: white'>"+rep.msg+"</font>",{time:1000},function(){
|
|
|
window.location.reload();
|
|
|
});
|
|
|
}else{
|
|
|
layer.msg("<font style='color: white'>"+rep.msg+"</font>");
|
|
|
}
|
|
|
})
|
|
|
},function(index) {
|
|
|
layer.close(index);
|
|
|
});
|
|
|
})
|
|
|
|
|
|
|
|
|
$("#export_all").click(function() {
|
|
|
var start = $("#time_start").val();
|
|
|
var end = $("#time_end").val();
|
|
|
if(start !='' && end != ''){
|
|
|
if (Date.parse(start) > Date.parse(end)){
|
|
|
layer.msg('开始时间必须小于等于结束时间');
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var url = $('#search').attr('url');
|
|
|
var query = $('.jssearch').find('input').serialize();
|
|
|
query += "&"+$('.jssearch').find('select').serialize();
|
|
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
|
|
|
query = query.replace(/^&/g,'');
|
|
|
if( url.indexOf('?')>0 ){
|
|
|
url += '&' + query;
|
|
|
}else{
|
|
|
url += '?' + query;
|
|
|
}
|
|
|
|
|
|
url += "&export=1&export_company_type=" + $("#company_type").val();
|
|
|
layer.alert("<font style='color:#333'>"+"指令执行成功,等待浏览器响应中..在未确认下载完成前请勿关闭此页面.."+ "</font>");
|
|
|
var iframeExcel = "<iframe src='"+url+"' width='0px' height='0px' style='z-index:-1;position: absolute;top: -999999px;'></iframe>";
|
|
|
$("body").append(iframeExcel);
|
|
|
});
|
|
|
|
|
|
var company_id = "{$_GET['company_id']??0}";
|
|
|
$("#company_type").on("change",function(){
|
|
|
var val = $(this).find("option:selected").val();
|
|
|
var type = 0;
|
|
|
if(val == 3){
|
|
|
type = 1
|
|
|
}else{
|
|
|
type = 2;
|
|
|
}
|
|
|
var url = "{:U('Ajax/getCompanyList')}"+"&company_type="+type;
|
|
|
$.get(url,function(data){
|
|
|
var company = data;
|
|
|
var companystr = '<option value="">请选择合作公司</option>';
|
|
|
for (var i in company) {
|
|
|
if(company[i].id == company_id){
|
|
|
companystr += "<option value='" + company[i].id + "' selected='selected'>" + company[i].name + "</option>"
|
|
|
}else{
|
|
|
companystr += "<option value='" + company[i].id + "'>" + company[i].name + "</option>"
|
|
|
}
|
|
|
}
|
|
|
$("#company_id").html(companystr);
|
|
|
$("#company_id").select2();
|
|
|
})
|
|
|
});
|
|
|
$("#company_type").change();
|
|
|
|
|
|
$(".viewPool").click(function () {
|
|
|
var id = $(this).data("id");
|
|
|
var url = "{:U('viewPool')}"+"&id="+id
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
title: "海南万盟天下科技有限公司",
|
|
|
shadeClose: true,
|
|
|
shade: 0.8,
|
|
|
area: ['70%', '80%'],
|
|
|
content: url
|
|
|
});
|
|
|
});
|
|
|
$(".paymentInfo").on("click",function(){
|
|
|
var id = $(this).data("id");
|
|
|
var url = "{:U('paymentInfo')}"+"&id="+id
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
title: "打款详情",
|
|
|
shadeClose: true,
|
|
|
shade: 0.8,
|
|
|
area: ['20%', '60%'],
|
|
|
content: url
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
function checkPaymentOrder() {
|
|
|
|
|
|
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
|
|
|
|
|
|
// var verifystatus = $(elem).data('verifystatus');
|
|
|
if($(elem).data("pay") == 1 ){
|
|
|
return $(elem).data("verify_id");
|
|
|
}
|
|
|
|
|
|
}).get();
|
|
|
// text = "47,99,100";
|
|
|
$("#tbody").empty();
|
|
|
$.ajax({
|
|
|
type:'post',
|
|
|
dataType:'json',
|
|
|
data: {'ids':text},
|
|
|
url:"{:U('checkOrder')}",
|
|
|
success:function(data) {
|
|
|
if (data.data.length >0) {
|
|
|
var datas = data.data;
|
|
|
var str = "";
|
|
|
|
|
|
$('#window').show();
|
|
|
for (var key in datas) {
|
|
|
|
|
|
str += "<tr><td>" + datas[key]['company_name'] + "</td>"
|
|
|
+ "<td>"+ datas[key]['time'] + "</td>"
|
|
|
+ "<td>"+ datas[key]['statement_money'] + "</td>"
|
|
|
+ "<td>"+ datas[key]['pay_time'] + "</td></tr>";
|
|
|
|
|
|
}
|
|
|
|
|
|
$("#tbody").append(str);
|
|
|
|
|
|
return true;
|
|
|
} else {
|
|
|
|
|
|
doPayment();
|
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
error:function() {
|
|
|
alert('服务器开小差了,请稍后再试。');
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
function doPayment() {
|
|
|
|
|
|
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
|
|
|
var verifystatus = $(elem).data('verifystatus');
|
|
|
if($(elem).data("pay") == 1 && $(elem).val()!=''){
|
|
|
return $(elem).val();
|
|
|
}
|
|
|
|
|
|
}).get();
|
|
|
|
|
|
text = text.join(",");
|
|
|
|
|
|
if (!text) {
|
|
|
layer.msg("<font style='color: white'>管理后台汇总单未审核,请重新审核后再进行打款</font>");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
title: "打款详情",
|
|
|
shadeClose: true,
|
|
|
shade: 0.8,
|
|
|
area: ['100%', '100%'],
|
|
|
content: "{:U('showPayment')}"+"&ids="+text
|
|
|
});
|
|
|
// window.location.href = "{:U('showPayment')}"+"&ids="+text;
|
|
|
}
|
|
|
|
|
|
$("#commit").on("click",function () {
|
|
|
doPayment();
|
|
|
});
|
|
|
|
|
|
$(".setPayment").on("click",function(){
|
|
|
// var id = $(this).data("id");
|
|
|
var tip = 0;
|
|
|
var paystatustip = 0;
|
|
|
|
|
|
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
|
|
|
|
|
|
if(($(elem).data("pay_check") == 0 || $(elem).data("verify_status") == -1) && $(elem).data("paystatus") != 1){
|
|
|
return $(elem).data("verify_id");
|
|
|
}
|
|
|
if ($(elem).data("pay_check") != 1) {
|
|
|
tip = 1;
|
|
|
}
|
|
|
|
|
|
if ($(elem).data("paystatus") == 1) {
|
|
|
paystatustip = 1;
|
|
|
}
|
|
|
|
|
|
}).get();
|
|
|
|
|
|
if(tip == 1) {
|
|
|
layer.msg("<font style='color: white'>请选择打款信息未确认的单子</font>");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if(paystatustip == 1) {
|
|
|
layer.msg("<font style='color: white'>请选择未打款的单子</font>");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
text = text.join(",");
|
|
|
|
|
|
if (!text) {
|
|
|
layer.msg("<font style='color: white'>没有符合打款确认的打款单,请重新选择</font>");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var url = "{:U('setPayment')}"+"&id="+text
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
title: "海南万盟天下科技有限公司",
|
|
|
shadeClose: true,
|
|
|
shade: 0.8,
|
|
|
area: ['100%', '100%'],
|
|
|
content: url
|
|
|
});
|
|
|
});
|
|
|
|
|
|
$("#returnSetPayment").on("click",function () {
|
|
|
|
|
|
var paystatustip = 0;
|
|
|
var tip = 0;
|
|
|
|
|
|
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
|
|
|
|
|
|
if($(elem).data("pay_check") == 1 && $(elem).data("paystatus") != 1){
|
|
|
return $(elem).data("verify_id");
|
|
|
}
|
|
|
|
|
|
if ($(elem).data("pay_check") != 1) {
|
|
|
tip = 1;
|
|
|
}
|
|
|
|
|
|
if ($(elem).data("paystatus") == 1) {
|
|
|
paystatustip = 1;
|
|
|
}
|
|
|
|
|
|
}).get();
|
|
|
|
|
|
if(tip == 1) {
|
|
|
layer.msg("<font style='color: white'>请选择打款信息已确认的单子</font>");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if(paystatustip == 1) {
|
|
|
layer.msg("<font style='color: white'>请选择未打款的单子</font>");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
text = text.join(",");
|
|
|
|
|
|
layer.confirm('【提示】是否确认打款信息撤回', {
|
|
|
btn: ['确认','取消'],
|
|
|
title:false
|
|
|
}, function(){
|
|
|
$.ajax({
|
|
|
type:'post',
|
|
|
dataType:'json',
|
|
|
data: {'ids':text},
|
|
|
url:"{:U('returnSetPayment')}",
|
|
|
success:function(data) {
|
|
|
if (data.status == 1) {
|
|
|
layer.msg("<font style='color: white'>打款信息确认撤回成功</font>");
|
|
|
window.location.reload();
|
|
|
return;
|
|
|
}
|
|
|
},
|
|
|
error:function() {
|
|
|
alert('服务器开小差了,请稍后再试。');
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
$("#doPayment").on("click",function(){
|
|
|
var verifytip = 0;
|
|
|
var pay_checktip = 0;
|
|
|
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
|
|
|
// var verifystatus = $(elem).data('verifystatus');
|
|
|
var pay_check = $(elem).data('pay_check');
|
|
|
if($(elem).data("pay") == 1 && pay_check == 1){
|
|
|
return $(elem).val();
|
|
|
}
|
|
|
|
|
|
// if (verifystatus != 1) {
|
|
|
// verifytip = 1;
|
|
|
// }
|
|
|
|
|
|
if (pay_check != 1) {
|
|
|
pay_checktip = 1;
|
|
|
}
|
|
|
}).get();
|
|
|
|
|
|
if (pay_checktip == 1) {
|
|
|
layer.msg("<font style='color:white'>打款确认后方能打款</font>");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
// if (verifytip == 1) {
|
|
|
// layer.msg("<font style='color:white'>审核通过方能打款</font>");
|
|
|
// return;
|
|
|
// }
|
|
|
|
|
|
if(text.length < 1){
|
|
|
layer.msg("<font style='color:white'>请先选择需要打款的结算单</font>");
|
|
|
return;
|
|
|
}
|
|
|
console.log(text);
|
|
|
checkPaymentOrder();
|
|
|
return;
|
|
|
|
|
|
text = text.join(",");
|
|
|
window.location.href = "{:U('showPayment')}"+"&ids="+text;
|
|
|
});
|
|
|
|
|
|
$("#search").click(function(){
|
|
|
|
|
|
var start = $("#time_start").val();
|
|
|
var end = $("#time_end").val();
|
|
|
if(start !='' && end != ''){
|
|
|
if (Date.parse(start) > Date.parse(end)){
|
|
|
layer.msg('开始时间必须小于等于结束时间');
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var url = $(this).attr('url');
|
|
|
var query = $('.jssearch').find('input').serialize();
|
|
|
query += "&"+$('.jssearch').find('select').serialize();
|
|
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
|
|
|
query = query.replace(/^&/g,'');
|
|
|
if( url.indexOf('?')>0 ){
|
|
|
url += '&' + query;
|
|
|
}else{
|
|
|
url += '?' + query;
|
|
|
}
|
|
|
window.location.href = url;
|
|
|
});
|
|
|
laydate.render({
|
|
|
elem: '#time_start'
|
|
|
// ,position: 'static'
|
|
|
});
|
|
|
laydate.render({
|
|
|
elem: '#datetimepicker'
|
|
|
});
|
|
|
laydate.render({
|
|
|
elem: '#time_start2'
|
|
|
});
|
|
|
laydate.render({
|
|
|
elem: '#datetimepicker2'
|
|
|
});
|
|
|
laydate.render({
|
|
|
elem: '#verifytime_start'
|
|
|
});
|
|
|
laydate.render({
|
|
|
elem: '#verifytime_end'
|
|
|
});
|
|
|
//回车自动提交
|
|
|
$('.jssearch').find('input').keyup(function(event){
|
|
|
if(event.keyCode===13){
|
|
|
$("#search").click();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
</script>
|
|
|
</block>
|