12份功能提交

master
zhengyongxing 4 years ago
parent b8c811c532
commit 85f523329a

@ -446,7 +446,7 @@ class ExcelPaymentController extends BaseController
*/
public function verify() {
// dump($_SESSION['onethink_admin']['payment_user']['id']);die();
if (!$_REQUEST['id']||!$_REQUEST['status']) {
if ((!$_REQUEST['id']||!$_REQUEST['status'])&&$_REQUEST['status']!='0') {
$this->ajaxReturn(['status'=>0,'msg'=>'数据传输错误']);
}

@ -1003,7 +1003,7 @@ class PaymentController extends BaseController
*/
public function verify() {
// dump($_SESSION['onethink_admin']['payment_user']['id']);die();
if (!$_REQUEST['id']||!$_REQUEST['status']) {
if ((!$_REQUEST['id']||!$_REQUEST['status'])&&$_REQUEST['status']!='0') {
$this->ajaxReturn(['status'=>0,'msg'=>'数据传输错误']);
}

@ -191,6 +191,7 @@
<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' id='delItem' style="background-color: red;">批量删除</a>
</div>
@ -391,6 +392,77 @@
});
});
$(".return_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) {
if (data.status ==1) {
//弹框
layer.msg("<font style='color:white'>审批撤回成功</font>");
setTimeout(function(){
window.location.reload();
},1500);
} else {
layer.msg("<font style='color:white'>审批撤回失败</font>");
}
},
error:function() {
alert('服务器开小差了,请稍后再试。');
// checkcode(mobile);
}
});
});
});
$(".verify").click(function () {
var status = $(this).data('value');

@ -216,6 +216,7 @@
</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>
</div>
</div>
@ -429,6 +430,79 @@
$(function(){
$(".return_verify").click(function () {
var status = $(this).data('value');
var verifytip = 0;
var paytip = 0;
var canpay = 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).data('verify_id');
}).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) {
if (data.status ==1) {
//弹框
layer.msg("<font style='color:white'>审批撤回成功</font>");
setTimeout(function(){
window.location.reload();
},1500);
} else {
layer.msg("<font style='color:white'>审批撤回失败</font>");
}
},
error:function() {
alert('服务器开小差了,请稍后再试。');
// checkcode(mobile);
}
});
});
});
$(".verify").click(function () {
var status = $(this).data('value');
@ -570,7 +644,6 @@
}
}).get();
console.log(text)
// text = "47,99,100";
$("#tbody").empty();
$.ajax({
@ -612,12 +685,13 @@
var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
var verifystatus = $(elem).data('verifystatus');
if($(elem).data("pay") == 1 && verifystatus == 1){
if($(elem).data("pay") == 1 && verifystatus == 1 && $(elem).val()!=''){
return $(elem).val();
}
}).get();
console.log(text)
text = text.join(",");
if (!text) {
@ -662,7 +736,7 @@
layer.msg("<font style='color:white'>请先选择需要打款的结算单</font>");
return;
}
console.log(text);
checkPaymentOrder();
return;

Loading…
Cancel
Save