|
|
@ -437,7 +437,22 @@ class AggregateFinanceStatementController extends ThinkController
|
|
|
|
//审批通过
|
|
|
|
//审批通过
|
|
|
|
public function agreeApply(){
|
|
|
|
public function agreeApply(){
|
|
|
|
if(!isset($_REQUEST['ids'])) $this->error("参数错误");
|
|
|
|
if(!isset($_REQUEST['ids'])) $this->error("参数错误");
|
|
|
|
|
|
|
|
|
|
|
|
$ids = $_REQUEST['ids'];
|
|
|
|
$ids = $_REQUEST['ids'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$aggregate_statement = M("aggregate_statement","tab_")->where("id in ({$ids})")->select();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach($aggregate_statement as $key => $value) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!$value['first_party_info']) {
|
|
|
|
|
|
|
|
$this->ajaxReturn(array(
|
|
|
|
|
|
|
|
'status' => 1,
|
|
|
|
|
|
|
|
"info"=>"审批失败,存在没有绑定关系的对账单,请绑定关系后重算"
|
|
|
|
|
|
|
|
));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$savedata = ["verify_status"=>2,"create_time"=>time(),"admin_name"=>$this->admininfo["username"],"admin_id"=>$this->admininfo["uid"]];
|
|
|
|
$savedata = ["verify_status"=>2,"create_time"=>time(),"admin_name"=>$this->admininfo["username"],"admin_id"=>$this->admininfo["uid"]];
|
|
|
|
M("aggregate_statement","tab_")->where("id in ({$ids})")->save($savedata);
|
|
|
|
M("aggregate_statement","tab_")->where("id in ({$ids})")->save($savedata);
|
|
|
|
|
|
|
|
|
|
|
@ -455,6 +470,20 @@ class AggregateFinanceStatementController extends ThinkController
|
|
|
|
public function refuseApply(){
|
|
|
|
public function refuseApply(){
|
|
|
|
if(!isset($_REQUEST['ids'])) $this->error("参数错误");
|
|
|
|
if(!isset($_REQUEST['ids'])) $this->error("参数错误");
|
|
|
|
$ids = $_REQUEST['ids'];
|
|
|
|
$ids = $_REQUEST['ids'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$aggregate_statement = M("aggregate_statement","tab_")->where("id in ({$ids})")->select();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach($aggregate_statement as $key => $value) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!$value['first_party_info']) {
|
|
|
|
|
|
|
|
$this->ajaxReturn(array(
|
|
|
|
|
|
|
|
'status' => 1,
|
|
|
|
|
|
|
|
"info"=>"审批失败,存在没有绑定关系的对账单,请绑定关系后重算"
|
|
|
|
|
|
|
|
));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$savedata = ["verify_status"=>-1,"create_time"=>time(),"admin_name"=>$this->admininfo["username"],"admin_id"=>$this->admininfo["uid"]];
|
|
|
|
$savedata = ["verify_status"=>-1,"create_time"=>time(),"admin_name"=>$this->admininfo["username"],"admin_id"=>$this->admininfo["uid"]];
|
|
|
|
M("aggregate_statement","tab_")->where("id in ({$ids})")->save($savedata);
|
|
|
|
M("aggregate_statement","tab_")->where("id in ({$ids})")->save($savedata);
|
|
|
|
|
|
|
|
|
|
|
|