|
|
|
@ -27,6 +27,17 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
"4"=>"打款成功",
|
|
|
|
|
"5"=>"无需打款"
|
|
|
|
|
];
|
|
|
|
|
public $InfoVerifyStatus=[
|
|
|
|
|
"-1"=>"配置信息不全",
|
|
|
|
|
"0"=>"信息未确认",
|
|
|
|
|
"1"=>"允许打款",
|
|
|
|
|
"2"=>"线下无需打款"
|
|
|
|
|
];
|
|
|
|
|
public $PayStatus=[
|
|
|
|
|
"-1"=>"打款失败",
|
|
|
|
|
"0"=>"未打款",
|
|
|
|
|
"1"=>"打款成功"
|
|
|
|
|
];
|
|
|
|
|
public $admininfo;
|
|
|
|
|
public $DBModel;
|
|
|
|
|
public function _initialize()
|
|
|
|
@ -499,6 +510,35 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
//修改状态
|
|
|
|
|
$this->setOneVerifyStatus(2,"payment",$_REQUEST['pool_id'],$mgs = "打款信息提交");
|
|
|
|
|
}
|
|
|
|
|
//查看打款信息
|
|
|
|
|
public function viewPayment(){
|
|
|
|
|
if(!isset($_REQUEST['id'])) $this->error("参数错误");
|
|
|
|
|
$id = $_REQUEST['id'];
|
|
|
|
|
$CompanyInfo = M("company_statement_info","tab_")
|
|
|
|
|
->alias('i')
|
|
|
|
|
->field("i.id,i.pool_id,i.company_name,i.company_info,i.statement_money,p.statement_num,i.remark,i.pay_status,i.verify_status,p.statement_money all_money")
|
|
|
|
|
->join("tab_company_statement_pool p ON p.id = i.pool_id")
|
|
|
|
|
->where("pool_id='{$id}'")
|
|
|
|
|
->select();
|
|
|
|
|
foreach($CompanyInfo as $k=>&$v){
|
|
|
|
|
$v['company_info'] = json_decode($v['company_info'],true);
|
|
|
|
|
$v['company_info']['ali_user'] ?? '';
|
|
|
|
|
$v['company_info']['ali_account'] ?? '';
|
|
|
|
|
$v['verify_status_str'] = $this->InfoVerifyStatus[ $v['verify_status']];
|
|
|
|
|
|
|
|
|
|
if($v['verify_status'] == 1){
|
|
|
|
|
|
|
|
|
|
$v['verify_status_str'] = $this->PayStatus[$v['pay_status']];
|
|
|
|
|
if($v['pay_status'] == 1){
|
|
|
|
|
$v['pay_type'] = $v['pay_type'] == 1 ? "提现" :"线上打款";
|
|
|
|
|
$v['verify_status_str'] .= ("/". $v['pay_type']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->assign("CompanyInfo",$CompanyInfo);
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//保存备注
|
|
|
|
|
public function saveRemark(){
|
|
|
|
@ -782,7 +822,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
|
|
|
|
|
"setPayment"=>"<a class='confirm setPayment' data-id='{$id}'>打款信息提交</a>",
|
|
|
|
|
"editPayment"=>"<a class='confirm editPayment' data-id='{$id}'>打款信息编辑</a>",
|
|
|
|
|
"viePayment"=>"<a class='confirm viePayment' data-id='{$id}'>打款详情</a>",
|
|
|
|
|
"viewPayment"=>"<a class='confirm viewPayment' data-id='{$id}'>打款详情</a>",
|
|
|
|
|
|
|
|
|
|
'reCount'=>"<a class='confirm reCount' data-id='{$id}'>重算</a>",
|
|
|
|
|
'cancelPool'=>"<a class='confirm cancelPool' data-id='{$id}'>撤销汇总</a>",
|
|
|
|
@ -803,10 +843,10 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
$optist = ["viewPool","addRemark","viewRemark","editRemark","viewVoucher","editVoucher","uploadVoucher","editPayment"];
|
|
|
|
|
break;
|
|
|
|
|
case '3':
|
|
|
|
|
$optist = ["viewPool","addRemark","viewRemark","editRemark","viewVoucher","editVoucher","uploadVoucher","editPayment","viePayment"];
|
|
|
|
|
$optist = ["viewPool","addRemark","viewRemark","editRemark","viewVoucher","editVoucher","uploadVoucher","editPayment","viewPayment"];
|
|
|
|
|
break;
|
|
|
|
|
case '4':
|
|
|
|
|
$optist = ["viewPool","addRemark","viewRemark","editRemark","viewVoucher","editVoucher","uploadVoucher","viePayment"];
|
|
|
|
|
$optist = ["viewPool","addRemark","viewRemark","editRemark","viewVoucher","editVoucher","uploadVoucher","viewPayment"];
|
|
|
|
|
break;
|
|
|
|
|
case '5':
|
|
|
|
|
$optist = ["viewPool","addRemark","viewRemark","editRemark","reCount","cancelPool"];
|
|
|
|
@ -845,7 +885,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
if($info['is_payment'] == 1){
|
|
|
|
|
$optist = array_diff($optist, ["setUlPayment"]);
|
|
|
|
|
}else{
|
|
|
|
|
$optist = array_diff($optist, ["setPayment","editPayment","viePayment"]);
|
|
|
|
|
$optist = array_diff($optist, ["setPayment","editPayment","viewPayment"]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(empty($info['remark'])){
|
|
|
|
|