12月功能提交

master
zhengyongxing 4 years ago
parent 52ff4a2bc6
commit ec3491943b

@ -1022,6 +1022,13 @@ class CompanyStatementPoolController extends ThinkController
$ids = $_REQUEST['ids'];
$dbres = $this->DBModel->field("id,verify_status,verify_log")->where("id in ({$ids})")->select();
if ($this->checkStatementPay($ids)) {
$this->ajaxReturn(array(
'status' => 0,
"info"=>"已有打款的详单,审批撤回失败"
));
}
foreach($dbres as $k=>&$v){
$VerifyStatus = $v['verify_status'];
if(!in_array($VerifyStatus,[-1,1,2])) continue;
@ -1044,6 +1051,16 @@ class CompanyStatementPoolController extends ThinkController
));
}
public function checkStatementPay($ids) {
$dbres = $this->DBModel->field("id,verify_status,verify_log")->where("id in ({$ids})")->select();
foreach ($dbres as $k=>$v) {
if ($v['verify_status'] == 3) {
return true;
}
}
return false;
}
public function delPayInfo($id) {
$company_statement_info = M("company_statement_info","tab_")->field("id")->where("pool_id={$id}")->select();

@ -55,6 +55,11 @@
highlight_subnav('{:U('Payment/memberList')}');
$(function(){
var is_change = 0;
$("#name,#mobile").change(function () {
is_change = 1;
});
$("#submit").click(function () {
@ -64,6 +69,11 @@
var url = "{:U('edit')}";
var data = {id:id,name:name,mobile:mobile};
if (is_change == 0) {
layer.msg("姓名、电话未做编辑,请编辑后提交");
return;
}
if (id != 1) {
publicAjax(url,data,function (data) {
layer.msg(data.msg);

Loading…
Cancel
Save