|
|
|
@ -458,6 +458,30 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
public function verifyRefuse(){
|
|
|
|
|
$this->setVerifyStatus(0,-1,"verify");
|
|
|
|
|
}
|
|
|
|
|
//审批撤回
|
|
|
|
|
public function verifyReturn() {
|
|
|
|
|
if(!isset($_REQUEST['ids'])) $this->error("参数错误");
|
|
|
|
|
$ids = $_REQUEST['ids'];
|
|
|
|
|
$dbres = $this->DBModel->field("id,verify_status,verify_log")->where("id in ({$ids})")->select();
|
|
|
|
|
|
|
|
|
|
foreach($dbres as $k=>&$v){
|
|
|
|
|
|
|
|
|
|
if($v['verify_status'] != -1&&$v['verify_status'] != 1) continue;
|
|
|
|
|
|
|
|
|
|
$v['verify_log'] = json_decode($v['verify_log'],true);
|
|
|
|
|
unset($v['verify_log']['verify_user']);
|
|
|
|
|
unset($v['verify_log']['verify_time']);
|
|
|
|
|
$v['verify_log'] = json_encode($v['verify_log']);
|
|
|
|
|
$v['verify_status']=0;
|
|
|
|
|
$this->DBModel->save($v);
|
|
|
|
|
addOperationLog(['op_type'=>1,'key'=>$v['id'],"op_name"=>"审批撤回",'url'=>U('lists')]);
|
|
|
|
|
}
|
|
|
|
|
$this->ajaxReturn(array(
|
|
|
|
|
'status' => 1,
|
|
|
|
|
"info"=>"审批撤回成功"
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//线下打款
|
|
|
|
|
public function setUlPayment()
|
|
|
|
|
{
|
|
|
|
@ -1054,6 +1078,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
$mentBtn = [
|
|
|
|
|
"verifyAgree"=>"<a class='butn' id='verifyAgree'>审批通过</a>",
|
|
|
|
|
"verifyRefuse"=>"<a class='butn' id='verifyRefuse' style='background-color: red;'>审核拒绝</a>",
|
|
|
|
|
"verifyReturn"=>"<a class='butn' id='verifyReturn'>审批撤回</a>",
|
|
|
|
|
"export"=>"<a class='butn' id='export'>导出</a>"
|
|
|
|
|
];
|
|
|
|
|
$resarr = [];
|
|
|
|
|