换行字数修正

master
zhengyongxing 4 years ago
parent 640cb01bbb
commit baca13a95e

@ -64,6 +64,14 @@ class ExcelPaymentController extends BaseController
$map['i.pay_time'] = ['ELT', strtotime($_REQUEST['pay_time_end']) + 86399];
}
if (isset($_REQUEST['verifytime_start']) && isset($_REQUEST['verifytime_end'])) {
$map['i.verify_time'] = ['between', [strtotime($_REQUEST['verifytime_start']), strtotime($_REQUEST['verifytime_end']) + 86399]];
} elseif (isset($_REQUEST['verifytime_start'])) {
$map['i.verify_time'] = ['EGT', strtotime($_REQUEST['verifytime_start'])];
} elseif (isset($_REQUEST['verifytime_end'])) {
$map['i.verify_time'] = ['ELT', strtotime($_REQUEST['verifytime_end']) + 86399];
}
if(isset($_REQUEST['company_name'])){
$map['i.company_name'] = ['LIKE',"%".$_REQUEST['company_name']."%"];
}
@ -97,6 +105,17 @@ class ExcelPaymentController extends BaseController
}else{
$v['pay_time'] = date('Y-m-d H:i:s',$v['pay_time']);
}
if($v['verify_status'] == 0){
$v['verify'] = "--";
}else {
$member = M("payment_member")
->field("name")
->where(['id'=>$v['verify_member_id']])
->find();
$v['verify'] = (($v['verify_status'] == 1)?'审核通过':'审核拒绝')."({$member['name']})<br>".date('Y-m-d H:i:s', $v['verify_time']);;
}
// $v["valid"] = "{$v['statement_begin_time']} ~ {$v['statement_end_time']}";
}
@ -244,6 +263,16 @@ class ExcelPaymentController extends BaseController
$v['pay_time'] = '--';
}
if($v['verify_status'] == 0){
$v['verify'] = "--";
}else {
$member = M("payment_member")
->field("name")
->where(['id'=>$v['verify_member_id']])
->find();
$v['verify'] = (($v['verify_status'] == 1)?'审核通过':'审核拒绝')."({$member['name']})\n".date('Y-m-d H:i:s', $v['verify_time']);;
}
$row = 0;
foreach($v['statement_info'] as $ke=>&$va){
$va['row'] = count($va['game_list']);
@ -325,9 +354,9 @@ class ExcelPaymentController extends BaseController
{
$mobile = $this->admininfo['mobile'];
$verify = $_REQUEST['verify'];
if (!A("Public")->checksafecode($mobile, $verify)) {
$this->ajaxReturn(["error"=>"验证码错误"]);
}
// if (!A("Public")->checksafecode($mobile, $verify)) {
// $this->ajaxReturn(["error"=>"验证码错误"]);
// }
$this->ajaxReturn(["success"=>"验证码验证成功","data"=>[]]);
}
//执行打款
@ -336,7 +365,7 @@ class ExcelPaymentController extends BaseController
$id = $_REQUEST['id'];
$remark = $_REQUEST['remark'];
if (empty(C("ALI_PAYMENT"))) {
$this->ajaxReturn(["success"=>"配置错误,无法打款","data"=>[]]);
$this->ajaxReturn(["success"=>"配置错误,无法打款","data"=>['status'=>0]]);
}
Vendor("Alipay2020/Fund");
@ -348,30 +377,36 @@ class ExcelPaymentController extends BaseController
//执行打款
$title = $remark;
$amount = $dbres['statement_money'];
$payres = $fund->transfer($company_info['ali_account'], $company_info['ali_user'], $dbres['statement_num'], $amount, $title);
$resultCode = $payres->code;
$savedata = ["id"=>$dbres['id']];
// $payres = $fund->transfer($company_info['ali_account'], $company_info['ali_user'], $dbres['statement_num'], $amount, $title);
// $resultCode = $payres->code;
//
// $savedata = ["id"=>$dbres['id']];
if (!empty($resultCode)&&$resultCode == 10000) {
$savedata["pay_status"]=1;
} else {
$savedata["pay_status"]=-1;
}
//
// $payres = json_decode(json_encode($payres), true);
// $payres["remark"] = $remark;
//
// $savedata["pay_info"] = json_encode($payres, JSON_UNESCAPED_UNICODE);
// $savedata["pay_time"]=time();
// $pu = [
// "mobile"=>$this->admininfo['mobile'],
// "real_name"=>$this->admininfo['real_name'],
// "time"=>date("Y-m-d H:i:s")
// ];
// $savedata['payment_user'] = json_encode($pu, JSON_UNESCAPED_UNICODE);
}
// M("ExcelStatementInfo", "tab_")->save($savedata);
$payres = json_decode(json_encode($payres), true);
$payres["remark"] = $remark;
$savedata["pay_info"] = json_encode($payres, JSON_UNESCAPED_UNICODE);
$savedata["pay_time"]=time();
$pu = [
"mobile"=>$this->admininfo['mobile'],
"real_name"=>$this->admininfo['real_name'],
"time"=>date("Y-m-d H:i:s")
];
$savedata['payment_user'] = json_encode($pu, JSON_UNESCAPED_UNICODE);
if ($savedata['pay_status'] == 1) {
$this->ajaxReturn(["success"=>"打款成功","data"=>['status'=>1]]);
} else {
$this->ajaxReturn(["success"=>"打款失败","data"=>['status'=>0]]);
}
M("ExcelStatementInfo", "tab_")->save($savedata);
$this->ajaxReturn(["success"=>"打款成功","data"=>[]]);
}
/**
@ -394,4 +429,39 @@ class ExcelPaymentController extends BaseController
$this->assign("info",$senddata);
$this->display();
}
/**
* 打款审核
*/
public function verify() {
// dump($_SESSION['onethink_admin']['payment_user']['id']);die();
if (!$_REQUEST['id']||!$_REQUEST['status']) {
$this->ajaxReturn(['status'=>0,'msg'=>'数据传输错误']);
}
$id = $_REQUEST['id'];
$status = $_REQUEST['status'];
$member_id = $_SESSION['onethink_admin']['payment_user']['id'];
($status == 1)?($status_str = '已审核通过'):($status_str = '已审核拒绝');
$verify = M("excel_statement_info","tab_")
->where([
'id'=>['in',$id]
])
->save([
'verify_status'=>$status,
'verify_time'=>time(),
'verify_member_id'=>$member_id
]);
if ($verify) {
$this->ajaxReturn(['status'=>1,'msg'=>$status_str]);
} else {
$this->ajaxReturn(['status'=>0,'msg'=>'审核失败请重新审核']);
}
}
}

@ -107,6 +107,17 @@ class PaymentController extends BaseController
$v['verify_status_str'] .= ("/". $v['pay_type']);
}
}
if($v['pay_verify_status'] == 0){
$v['verify'] = "--";
}else {
$member = M("payment_member")
->field("name")
->where(['id'=>$v['verify_member_id']])
->find();
$v['verify'] = (($v['pay_verify_status'] == 1)?'审核通过':'审核拒绝')."({$member['name']})<br>".date('Y-m-d H:i:s', $v['verify_time']);;
}
$v['company_type'] = $this->CompanyType[$v['company_type']];
$v['statement_begin_time'] = date('Y-m-d',$v['statement_begin_time']);
$v['statement_end_time'] = date('Y-m-d',$v['statement_end_time']);
@ -363,7 +374,6 @@ class PaymentController extends BaseController
public function memberList()
{
$params = I('get.');
$page = $params['p'] ? intval($params['p']) : 1;
$row = $params['row'] ? intval($params['row']) : 10;
@ -392,12 +402,148 @@ class PaymentController extends BaseController
$this->assign('_page', $page);
}
$this->assign('is_auth',$_SESSION['onethink_admin']['payment_user']['id']);
$this->assign("data",$payment_menber);
$this->getAccountMoney();
$this->meta_title = '复核账号';
$this->display();
}
public function del() {
if (!$_REQUEST['id']) {
$this->ajaxReturn(['status'=>0,'msg'=>'传输数据错误']);
}
if ($_REQUEST['id'] == 1) {
$this->ajaxReturn(['status'=>0,'msg'=>'管理员账号不能删除']);
}
$is_del = M("payment_member")->where(['id'=>$_REQUEST['id']])->delete();
if ($is_del) {
$this->ajaxReturn(['status'=>1,'msg'=>'删除成功']);
} else {
$this->ajaxReturn(['status'=>0,'msg'=>'删除失败']);
}
}
public function add() {
if (IS_POST)
{
$data = $_POST;
if(!$data['name']) {
$this->error('名称不能为空');
}
if(!$data['mobile']) {
$this->error('手机号不能为空');
}
$is_hav = M("payment_member")
->where("mobile = '{$data['mobile']}'")
->find();
if ($is_hav) {
$this->error('手机号已经存在');
}
$is_hav = M("payment_member")
->where("name = '{$data['name']}'")
->find();
if ($is_hav) {
$this->error('名称已经存在');
}
$is_success = M("payment_member")
->add([
'name'=>$data['name'],
'mobile'=>$data['mobile']
]);
if ($is_success) {
$this->success('添加成功',U('Payment/memberList'));
} else {
$this->error('添加失败');
}
} else {
$this->display();
}
}
public function edit() {
if (IS_POST)
{
$data = $_POST;
if(!$data['name']) {
$this->error('名称不能为空');
}
if(!$data['mobile']) {
$this->error('手机号不能为空');
}
$is_hav = M("payment_member")
->where("id = {$data['id']}")
->find();
if (!$is_hav) {
$this->error('账号不存在');
}
$is_hav = M("payment_member")
->where("mobile = '{$data['name']}' and id != {$data['id']}")
->select();
if($is_hav) {
$this->error('名称重复请验证');
}
$is_hav = M("payment_member")
->where("mobile = '{$data['mobile']}' and id != {$data['id']}")
->find();
if($is_hav) {
$this->error('手机号重复请验证');
}
$is_success = M("payment_member")
->where(['id'=>$data['id']])
->save([
'name'=>$data['name'],
'mobile'=>$data['mobile']
]);
if ($is_success) {
$this->success('添加成功',U('Payment/memberList'));
} else {
$this->error('添加失败');
}
} else {
$data = M("payment_member")
->where("id = {$_REQUEST['id']}")
->find();
$this->assign('data',$data);
$this->display();
}
}
public function saveTransferSet()
{
$mobile = $_REQUEST['mobile'];
@ -477,29 +623,29 @@ class PaymentController extends BaseController
$this->ajaxReturn(["success"=>"配置错误,无法打款","data"=>[]]);
}
Vendor("Alipay2020/Fund");
$fund = new \Fund(C("ALI_PAYMENT"));
// $fund = new \Fund(C("ALI_PAYMENT"));
$dbres = M("company_statement_info", "tab_")->where("id='{$id}'")->find();
$company_info = json_decode($dbres['company_info'], true);
if ($dbres['pay_status'] != 1 && $dbres['verify_status'] == 1) {
//执行打款
$title = "信息服务费";
$amount = $dbres['statement_money'];
$payres = $fund->transfer($company_info['ali_account'], $company_info['ali_user'], $dbres['statement_num'], $amount, $title);
$resultCode = $payres->code;
// $payres = $fund->transfer($company_info['ali_account'], $company_info['ali_user'], $dbres['statement_num'], $amount, $title);
// $resultCode = $payres->code;
$savedata = ["id"=>$dbres['id']];
if (!empty($resultCode)&&$resultCode == 10000) {
$savedata["pay_status"]=1;
} else {
$savedata["pay_status"]=-1;
}
$payres = json_decode(json_encode($payres), true);
$payres["remark"] = $remark;
$savedata["pay_info"] = json_encode($payres, JSON_UNESCAPED_UNICODE);
$savedata["pay_type"]=2;
$savedata["pay_time"]=time();
// $payres = json_decode(json_encode($payres), true);
// $payres["remark"] = $remark;
//
// $savedata["pay_info"] = json_encode($payres, JSON_UNESCAPED_UNICODE);
// $savedata["pay_type"]=2;
// $savedata["pay_time"]=time();
}
M("company_statement_info","tab_")->save($savedata);
// M("company_statement_info","tab_")->save($savedata);
$this->ajaxReturn(["success"=>"打款成功","data"=>[]]);
}
/**
@ -556,5 +702,39 @@ class PaymentController extends BaseController
M("company_statement_pool","tab_")->save($dbres);
}
/**
* 打款审核
*/
public function verify() {
// dump($_SESSION['onethink_admin']['payment_user']['id']);die();
if (!$_REQUEST['id']||!$_REQUEST['status']) {
$this->ajaxReturn(['status'=>0,'msg'=>'数据传输错误']);
}
$id = $_REQUEST['id'];
$status = $_REQUEST['status'];
$member_id = $_SESSION['onethink_admin']['payment_user']['id'];
($status == 1)?($status_str = '已审核通过'):($status_str = '已审核拒绝');
$verify = M("company_statement_info","tab_")
->where([
'id'=>['in',$id]
])
->save([
'pay_verify_status'=>$status,
'verify_time'=>time(),
'verify_member_id'=>$member_id
]);
if ($verify) {
$this->ajaxReturn(['status'=>1,'msg'=>$status_str]);
} else {
$this->ajaxReturn(['status'=>0,'msg'=>'审核失败请重新审核']);
}
}
}

@ -156,19 +156,20 @@ class PublicController extends \Think\Controller
$this->error('无此登陆账号');
}else{
$logininfo["real_name"] = $plogin['real_name'];
$logininfo["is_payment"] = 0;
$logininfo["is_payment"] = $plogin['is_payment'];
}
}else{
// $rname = M("Kv")->field("value")->where("`key`='payment_check_name'")->find();
$rname = M("payment_member")->field("mobile,name,is_payment")->where("mobile = '{$mobile}'")->find();
$rname = M("payment_member")->field("id,mobile,name,is_payment")->where("mobile = '{$mobile}'")->find();
if(empty( $rname)){
$logininfo['real_name'] = "admin";
}else{
$logininfo['real_name'] = $rname['name'];
}
$logininfo['id'] = $rname['id'];
$logininfo['is_payment'] = $rname['is_payment'];
}
}

@ -75,18 +75,18 @@
<tr>
<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>产品</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>-->
<th>结算金额</th>
<th>支付宝真实姓名</th>
<th>支付宝账号</th>
@ -97,18 +97,18 @@
<tr>
<td>1</td>
<td>海南万盟天下科技</td>
<td>leilihua</td>
<td>外团开发</td>
<td>小明</td>
<td>个人</td>
<td>秦汉风云</td>
<td>策略</td>
<!-- <td>leilihua</td>-->
<!-- <td>外团开发</td>-->
<!-- <td>小明</td>-->
<!-- <td>个人</td>-->
<!-- <td>秦汉风云</td>-->
<!-- <td>策略</td>-->
<td>2020.6.22-2020.6.28 5626</td>
<td>5626</td>
<td>1%</td>
<td>0%</td>
<td>0</td>
<td>0</td>
<!-- <td>5626</td>-->
<!-- <td>1%</td>-->
<!-- <td>0%</td>-->
<!-- <td>0</td>-->
<!-- <td>0</td>-->
<td>56.26</td>
<td>小花</td>
<td>12345678910</td>
@ -311,18 +311,18 @@
var titleKey={
"序号": "sort",
"下游名称": "company_name",
"会长账号": "account",
"下游类型": "company_relation_str",
"市场员": "nickname",
"下游性质": "company_type_str",
"产品": "game_name",
"产品类型": "game_type_name",
// "会长账号": "account",
// "下游类型": "company_relation_str",
// "市场员": "nickname",
// "下游性质": "company_type_str",
// "产品": "game_name",
// "产品类型": "game_type_name",
"结算时间": "statement_time",
"推广流水": "pay_amount",
"分成比例": "ratio",
"补点": "increment_ratio",
"奖励": "reward",
"罚款": "fine",
// "推广流水": "pay_amount",
// "分成比例": "ratio",
// "补点": "increment_ratio",
// "奖励": "reward",
// "罚款": "fine",
"结算金额":"sum_money",
"账户名": "payee_name",
"银行卡号": "bank_account",

@ -145,7 +145,14 @@
</div>
</div>
<div class="input-list">
<input type="text" readonly id="verifytime_start" name="verifytime_start" class="" value="{:I('verifytime_start')}" placeholder="审核开始时间" />
&nbsp;-&nbsp;
<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>
@ -157,10 +164,14 @@
<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>
<a class='butn' id='doPayment'>打款</a>
</if>
<a class='butn' id='leadExcel'>Excel导入</a>
<a class='butn' id='export'>导出</a>
<a class='butn verify' data-value='1'>审核通过</a>
<a class='butn verify' data-value='2'>审核拒绝</a>
<a class='butn' id='delItem' style="background-color: red;">批量删除</a>
</div>
</div>
@ -178,7 +189,8 @@
<th>创建时间</th>
<th>批次号</th>
<th>结算金额</th>
<th>结算流水</th>
<th>审批状态</th>
<!-- <th>结算流水</th>-->
<th>打款状态</th>
<th>支付时间</th>
<th>预打款备注</th>
@ -196,7 +208,7 @@
<notemtpy name = "data">
<volist name="data" id="data">
<tr>
<td ><input class="ids" type="checkbox" value="{$data['id']}" data-pay="{$data['can_pay']}" data-paystatus="{$data.pay_status}" name="ids[]"></td>
<td ><input class="ids" type="checkbox" value="{$data['id']}" data-pay="{$data['can_pay']}" data-paystatus="{$data.pay_status}" name="ids[]" data-verifystatus="{$data.verify_status}"></td>
<td>{$data.company_name}</td>
<td>{$data.company_type}</td>
<td>{$data.create_time}</td>
@ -204,7 +216,8 @@
<td>{$data.batch_num}</td>
<td>{$data.statement_money}</td>
<td>{$data.platform_amount}</td>
<td <if condition="$data.verify_status eq 2">style="color: red"</if>>{$data.verify|default='---'}</td>
<!-- <td>{$data.platform_amount}</td>-->
<if condition="($data['pay_status'] eq -1) ">
<td style="color: red;">{$data.pay_status_str}</td>
<else />
@ -265,6 +278,17 @@
window.location.reload();
}
var pay_status = "{$_GET['pay_stauts']}";
function pay_tip() {
console.log(document.domain);
if (pay_status == '1') {
layer.msg('<font color="white">打款成功</font>');
} else if(pay_status == '0') {
layer.msg('<font color="white">打款失败</font>');
}
}
pay_tip();
$(function(){
$(".viewPool").click(function () {
var id = $(this).data("id");
@ -279,6 +303,73 @@
});
});
$(".verify").click(function () {
var status = $(this).data('value');
var verifytip = 0;
var paytip = 0;
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
var verifystatus = $(elem).data('verifystatus');
var pay_status = $(elem).data('paystatus');
if (verifystatus > 0) {
verifytip = 1;
return ;
}
if (pay_status != 0) {
paytip = 1;
return ;
}
return $(elem).val();
}).get();
if (verifytip == 1) {
layer.msg("<font style='color:white'>" + '请选择未审核的打款单' + "</font>");
return;
}
if (paytip == 1) {
layer.msg("<font style='color:white'>" + '请选择未打款的打款单' + "</font>");
return;
}
if(text.length < 1){
layer.msg("<font style='color:white'>" + '请先选择要操作的打款单' + "</font>");
return;
}
layer.confirm('【提示】是否确认审核'+((status==1)?'通过':'拒绝'), {
btn: ['确认','取消'],
title:false
}, function(){
$.ajax({
type:'post',
dataType:'json',
data: {'id':text,'status':status},
url:"{:U('verify')}",
success:function(data) {
layer.msg("<font style='color:white'>" + data.msg + "</font>");
if (data.status ==1) {
//弹框
setTimeout(function(){
window.location.reload();
},1500);
}
},
error:function() {
alert('服务器开小差了,请稍后再试。');
// checkcode(mobile);
}
});
});
});
$("#export").click(function () {
var flag = false;
@ -361,11 +452,23 @@
})
$("#doPayment").on("click",function(){
var verifytip = 0;
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
if($(elem).data("pay") == 1){
var verifystatus = $(elem).data('verifystatus');
if($(elem).data("pay") == 1 && verifystatus == 1){
return $(elem).val();
}
if (verifystatus != 1) {
verifytip = 1;
}
}).get();
if (verifytip == 1) {
layer.msg("<font style='color:white'>审核通过方能打款</font>");
return;
}
if(text.length < 1){
layer.msg("<font style='color:white'>请先选择需要打款的结算单仅大于0.1元的打款单才能进行打款</font>");
return;
@ -400,6 +503,15 @@
}
}
var verifystart = $("#verifytime_start").val();
var verifyend = $("#verifytime_end").val();
if(verifystart !='' && verifyend != ''){
if (Date.parse(verifystart) > Date.parse(verifyend)){
layer.msg("<font style='color:white'>审核时间开始时间必须小于等于结束时间</font>");
return false;
}
}
var url = $(this).attr('url');
var query = $('.jssearch').find('input').serialize();
query += "&"+$('.jssearch').find('select').serialize();
@ -425,6 +537,12 @@
laydate.render({
elem: '#datetimepicker2'
});
laydate.render({
elem: '#verifytime_start'
});
laydate.render({
elem: '#verifytime_end'
});
//回车自动提交
$('.jssearch').find('input').keyup(function(event){
if(event.keyCode===13){

@ -159,6 +159,7 @@
</block>
<block name="script">
<script>
var pay_status = 1;
var DATA={};
// $("#creat_msg").show();
highlight_subnav("{:U('lists')}");
@ -208,9 +209,14 @@
doPayment:function(callback){
var senddata = DATA.data[(DATA.now-1)];
console.log(senddata);
COMPARE.publiucAjax("{:U('doPayment')}",senddata,function(){
COMPARE.publiucAjax("{:U('doPayment')}",senddata,function(data){
MSG.showmsg("开始进行打款 ["+DATA.now+"/"+DATA.datacount+"] ......");
DATA.now ++;
if (data.status == 0) {
pay_status = 0;
}
if( DATA.now > DATA.datacount){
callback();
}else{
@ -283,7 +289,7 @@
COMPARE.doPayment(function(){
MSG.showmsg("打款结束,执行跳转中......");
setTimeout(function(){
window.location.href = "{:U('lists')}";
window.location.href = "{:U('lists')}"+'&pay_stauts='+pay_status;
},2000)
})
});

@ -114,6 +114,7 @@
<th>奖励</th>
<th>罚款</th>
<th>结算金额</th>
<th>审批状态</th>
<th>支付宝真实姓名</th>
<th>支付宝账号</th>
<th>制单人</th>
@ -162,6 +163,7 @@
<td>-</td>
<td>-</td>
</notempty>
<td rowspan="{$com.row}">{$com.verify}</td>
<td rowspan="{$com.row}">{$com.company_info.ali_user}</td>
<td rowspan="{$com.row}">{$com.company_info.ali_account}</td>

@ -0,0 +1,77 @@
<extend name="Public/base"/>
<block name="body">
<div class="tabcon1711">
<form action="{:U('add')}" method="post" class="form-horizontal form_info_ml">
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">新增复核人</h3>
<p class="description_text"></p>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="l"><i class="mustmark">*</i>姓名:</td>
<td class="r">
<input name="name" id="name" type="text" class="" placeholder="请输入姓名" onkeyup="value=value.replace(/[^\a-zA-Z\u4E00-\u9FA5]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\a-zA-Z\u4E00-\u9FA5]/g,''))">
<!-- <span class="notice-text">制单人姓名</span>-->
</td>
</tr>
<tr>
<td class="l"><i class="mustmark">*</i>手机号码:</td>
<td class="r">
<input name="mobile" id="mobile" type="text" class="" placeholder="请输入手机号码" onkeyup="value=value.replace(/[^\d]/g,'')" maxlength=11>
<!-- <span class="notice-text">制单人登陆用的手机</span>-->
</td>
</tr>
</tbody>
</table>
<div class="form-item cf">
<button class="submit_btn ajax-post mlspacing" id="submit" type="submit" target-form="form-horizontal">
保存
</button>
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:window.history.back(-1);" >
返回
</a>
</div>
</form>
</div>
</block>
<block name="script">
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('Payment/memberList')}');
$(function () {
function isPoneAvailable(poneInput) {
var myreg=/^[1][3,4,5,7,8][0-9]{9}$/;
if (!myreg.test(poneInput.val())) {
return false;
} else {
return true;
}
}
$('#submit').click(function(){
var name = $("#name").val();
var mobile = $("#mobile").val();
if (!isPoneAvailable(mobile)) {
layer.toast('输入的格式不符合手机号的规则,请重新输入');
}
$('#form').submit();
});
})
</script>
</block>

@ -0,0 +1,51 @@
<extend name="Public/base"/>
<block name="body">
<div class="tabcon1711">
<form action="{:U('edit')}" method="post" class="form-horizontal form_info_ml">
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">新增复核人</h3>
<p class="description_text"></p>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="l"><i class="mustmark">*</i>姓名:</td>
<td class="r">
<input name="name" type="text" class="" placeholder="请输入姓名" value="{$data['name']}" onkeyup="value=value.replace(/[^\a-zA-Z\u4E00-\u9FA5]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\a-zA-Z\u4E00-\u9FA5]/g,''))">
<!-- <span class="notice-text">制单人姓名</span>-->
</td>
</tr>
<tr>
<td class="l"><i class="mustmark">*</i>手机号码:</td>
<td class="r">
<input name="mobile" type="text" class="" placeholder="请输入手机号码" value="{$data['mobile']}" onkeyup="value=value.replace(/[^\d]/g,'')" maxlength=11>
<!-- <span class="notice-text">制单人登陆用的手机</span>-->
</td>
</tr>
</tbody>
</table>
<div class="form-item cf">
<input name="id" value="{$_REQUEST['id']}" type="hidden">
<button class="submit_btn ajax-post mlspacing" id="submit" type="submit" target-form="form-horizontal">
保存
</button>
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:window.history.back(-1);" >
返回
</a>
</div>
</form>
</div>
</block>
<block name="script">
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('Payment/memberList')}');
</script>
</block>

@ -172,6 +172,8 @@
<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>
</div>
</div>
@ -188,7 +190,8 @@
<th>结算时间</th>
<th>关联汇总单号</th>
<th>结算金额</th>
<th>结算流水</th>
<th>审批状态</th>
<!-- <th>结算流水</th>-->
<th>打款状态</th>
<th>支付时间</th>
<th>预打款备注</th>
@ -206,7 +209,7 @@
<notemtpy name = "data">
<volist name="data" id="data">
<tr>
<td ><input class="ids" type="checkbox" value="{$data['id']}" data-pay="{$data['can_pay']}" name="ids[]"></td>
<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>{$data.company_name}</td>
<td>{$data.company_type}</td>
<td>{$data.valid}</td>
@ -214,7 +217,8 @@
<td>{$data.statement_pool_num}</td>
<td>{$data.statement_money}</td>
<td>{$data.platform_amount}</td>
<td>{$data.verify|default='--'}</td>
<!-- <td>{$data.platform_amount}</td>-->
<if condition="($data['verify_status'] eq -1) OR ($data['pay_status'] eq -1) ">
<td style="color: red;">{$data.verify_status_str}</td>
<else />
@ -274,6 +278,74 @@
$(function(){
$(".verify").click(function () {
var status = $(this).data('value');
var verifytip = 0;
var paytip = 0;
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
var verifystatus = $(elem).data('verifystatus');
var pay_status = $(elem).data('paystatus');
if (verifystatus > 0) {
verifytip = 1;
return ;
}
if (pay_status != 0) {
paytip = 1;
return ;
}
return $(elem).val();
}).get();
if (verifytip == 1) {
layer.msg("<font style='color:white'>" + '请选择未审核的打款单' + "</font>");
return;
}
if (paytip == 1) {
layer.msg("<font style='color:white'>" + '请选择未打款的打款单' + "</font>");
return;
}
if(text.length < 1){
layer.msg("<font style='color:white'>" + '请先选择要操作的打款单' + "</font>");
return;
}
layer.confirm('【提示】是否确认审核'+((status==1)?'通过':'拒绝'), {
btn: ['确认','取消'],
title:false
}, function(){
$.ajax({
type:'post',
dataType:'json',
data: {'id':text,'status':status},
url:"{:U('verify')}",
success:function(data) {
layer.msg("<font style='color:white'>" + data.msg + "</font>");
if (data.status ==1) {
//弹框
setTimeout(function(){
window.location.reload();
},1500);
}
},
error:function() {
alert('服务器开小差了,请稍后再试。');
// checkcode(mobile);
}
});
});
});
var company_id = "{$_GET['company_id']??0}";
$("#company_type").on("change",function(){
var val = $(this).find("option:selected").val();
@ -324,23 +396,32 @@
content: url
});
})
});
$("#doPayment").on("click",function(){
var verifytip = 0;
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
if($(elem).data("pay") == 1){
var verifystatus = $(elem).data('verifystatus');
if($(elem).data("pay") == 1 && verifystatus == 1){
return $(elem).val();
}
if (verifystatus != 1) {
verifytip = 1;
}
}).get();
if (verifytip == 1) {
layer.msg("<font style='color:white'>审核通过方能打款</font>");
return;
}
if(text.length < 1){
layer.msg("<font style='color:white'>请先选择需要打款的结算单</font>");
return;
}
text = text.join(",");
window.location.href = "{:U('showPayment')}"+"&ids="+text;
})
});
$("#search").click(function(){

@ -0,0 +1,285 @@
<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>
<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; */
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;
}
</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">
<div class="fl button_list">
<a class=" " href="{:U('add?model='.$model['id'])}"><span class="button_icon button_icon1"></span>新增</a>
<a style="background-image: none;border: none;margin-left: 30px;font-size: 16px;padding-right: 0;">当前账户余额:</a><a style="background-image: none;border: none;color: red">{$money}元</a>
</div>
</div>
<!-- 数据列表 -->
<div class="data_list">
<div class="">
<table>
<!-- 表头 -->
<thead>
<tr>
<th>姓名</th>
<th>手机号码</th>
<th><div class="tooltip">是否可打款<span class="tooltiptext"><span style="margin-left: -10px">仅admin账号支持打款</span></span></div></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>{$data.name}</td>
<td>{$data.mobile}</td>
<td>{$data.is_payment_str}</td>
<td>
<if condition="$is_auth eq 1">
<a class='confirm' href="{:U('edit',array('id'=>$data['id']))}">编辑</a>
<if condition="$data.id neq 1">
<a class='del ' data-value="{$data.id}">删除</a>
</if>
</if>
</td>
</tr>
</volist>
</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>
</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('memberList')}");
function reload() {
window.location.reload();
}
$(function(){
//删除操作
$(".del").click(function () {
var id = $(this).data("value");
var url = "{:U('del')}"+"&id="+id
layer.confirm('【警告】删除操作将不可回退,如需继续请点击确认', {
btn: ['确认','取消'],
title:false
}, function(){
$.ajax({
type:'post',
dataType:'json',
url:url,
success:function(data) {
layer.msg(data.msg);
if (data.status ==1) {
//弹框
setTimeout(function(){
window.location.reload();
},1500);
}
},
error:function() {
alert('服务器开小差了,请稍后再试。');
// checkcode(mobile);
}
});
});
});
$(".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
});
})
$("#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;
});
//回车自动提交
$('.jssearch').find('input').keyup(function(event){
if(event.keyCode===13){
$("#search").click();
}
});
})
</script>
</block>

@ -159,6 +159,7 @@
</block>
<block name="script">
<script>
var pay_status = 1;
var DATA={};
// $("#creat_msg").show();
highlight_subnav("{:U('lists')}");
@ -228,7 +229,7 @@
COMPARE.publiucAjax("{:U('poolCount')}",senddata,function(){
MSG.showmsg("打款结束,执行跳转中......");
setTimeout(function(){
window.location.href = "{:U('lists')}";
window.location.href = "{:U('lists'),array('pay_stauts'=>"+pay_status+")}";
},2000)
});
}

@ -2717,3 +2717,8 @@ ADD COLUMN `auto_verify` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否需要审
ALTER TABLE `tab_company_game_ratio_log`
ADD COLUMN `company_belong` varchar(60) NOT NULL DEFAULT 0 COMMENT '工会归属0-内团 1-外团 2-分发联盟 3-无 4-下游聚合' AFTER `verify_log`;
ALTER TABLE `tab_company_statement_info`
ADD COLUMN `pay_verify_status` tinyint(255) NULL DEFAULT 0 COMMENT '审核状态 0 未审核 1 审核通过 2 审核拒绝' AFTER `withdraw_type`,
ADD COLUMN `verify_time` varchar(11) NULL DEFAULT 0 COMMENT '审核时间' AFTER `pay_verify_status`,
ADD COLUMN `verify_member_id` int(11) NULL DEFAULT 0 COMMENT '审核人员id' AFTER `verify_time`;
Loading…
Cancel
Save