From 915f46e25ca28a03205bf40e8765fb245fae6839 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Thu, 12 Oct 2023 16:56:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=AC=A1=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/cult4/controller/Cult4.php | 4130 +++++++++++ app/cult4/controller/Cult4.php_0508 | 6565 +++++++++++++++++ app/cult4/model/Cult4apply.php | 372 + app/cult4/model/Cult4apply.php_0508 | 275 + app/cult4/model/Cult4baseinfo.php | 64 + app/cult4/model/Cult4check.php | 40 + app/cult4/model/Cult4checkdd.php | 40 + app/cult4/model/Cult4number.php | 68 + app/cult4/model/Cult4status.php | 33 + app/cult4/model/Cult4upfiles.php | 114 + app/cult4/model/Cult4uptype.php | 167 + app/cult4/view/cult4/ajax_apply_listadd.html | 25 + app/cult4/view/cult4/ajax_apply_listadd2.html | 25 + app/cult4/view/cult4/ajax_apply_listdel.html | 24 + app/cult4/view/cult4/ajax_apply_listdel2.html | 24 + app/cult4/view/cult4/ajax_apply_listpro.html | 103 + app/cult4/view/cult4/apply_assign.html | 84 + app/cult4/view/cult4/apply_check1.html | 33 + app/cult4/view/cult4/apply_check10.html | 65 + app/cult4/view/cult4/apply_check11.html | 71 + app/cult4/view/cult4/apply_check12.html | 1227 +++ app/cult4/view/cult4/apply_check13.html | 1986 +++++ app/cult4/view/cult4/apply_check14.html | 1687 +++++ app/cult4/view/cult4/apply_check2.html | 33 + app/cult4/view/cult4/apply_check3.html | 34 + app/cult4/view/cult4/apply_check4.html | 34 + app/cult4/view/cult4/apply_check5.html | 34 + app/cult4/view/cult4/apply_check6.html | 34 + app/cult4/view/cult4/apply_check8.html | 63 + app/cult4/view/cult4/apply_check9.html | 75 + app/cult4/view/cult4/apply_check_final.html | 2018 +++++ .../view/cult4/apply_check_final_edit.html | 2297 ++++++ app/cult4/view/cult4/apply_list1.html | 108 + app/cult4/view/cult4/apply_list10.html | 112 + app/cult4/view/cult4/apply_list11.html | 108 + app/cult4/view/cult4/apply_list12.html | 111 + app/cult4/view/cult4/apply_list13.html | 106 + app/cult4/view/cult4/apply_list14.html | 105 + app/cult4/view/cult4/apply_list2.html | 106 + app/cult4/view/cult4/apply_list2_bak.html | 106 + app/cult4/view/cult4/apply_list3.html | 106 + app/cult4/view/cult4/apply_list4.html | 106 + app/cult4/view/cult4/apply_list5.html | 108 + app/cult4/view/cult4/apply_list6.html | 115 + app/cult4/view/cult4/apply_list7.html | 108 + app/cult4/view/cult4/apply_list8.html | 108 + app/cult4/view/cult4/apply_list9.html | 108 + app/cult4/view/cult4/apply_list_final.html | 108 + app/cult4/view/cult4/apply_uphistory1.html | 55 + app/cult4/view/cult4/apply_uphistory10.html | 55 + app/cult4/view/cult4/apply_uphistory11.html | 55 + app/cult4/view/cult4/apply_uphistory12.html | 55 + app/cult4/view/cult4/apply_uphistory2.html | 55 + app/cult4/view/cult4/apply_uphistory3.html | 55 + app/cult4/view/cult4/apply_uphistory4.html | 55 + app/cult4/view/cult4/apply_uphistory6.html | 55 + app/cult4/view/cult4/apply_uphistory8.html | 55 + app/cult4/view/cult4/apply_uphistory9.html | 55 + .../view/cult4/apply_uphistory_final.html | 55 + app/cult4/view/cult4/content.html | 5607 ++++++++++++++ app/cult4/view/cult4/number_add.html | 76 + app/cult4/view/cult4/number_edit.html | 75 + app/cult4/view/cult4/number_list.html | 109 + app/cult4/view/cult4/payupload.html | 103 + app/cult4/view/cult4/uptype_add.html | 270 + app/cult4/view/cult4/uptype_add1.html | 154 + app/cult4/view/cult4/uptype_add10.html | 154 + app/cult4/view/cult4/uptype_add11.html | 154 + app/cult4/view/cult4/uptype_add12.html | 154 + app/cult4/view/cult4/uptype_add2.html | 154 + app/cult4/view/cult4/uptype_add3.html | 154 + app/cult4/view/cult4/uptype_add4.html | 154 + app/cult4/view/cult4/uptype_add6.html | 154 + app/cult4/view/cult4/uptype_add8.html | 154 + app/cult4/view/cult4/uptype_add9.html | 154 + app/cult4/view/cult4/uptype_edit.html | 286 + app/cult4/view/cult4/uptype_list.html | 119 + app/cult4/view/cult4/uptype_list1.html | 83 + app/cult4/view/cult4/uptype_list10.html | 83 + app/cult4/view/cult4/uptype_list11.html | 83 + app/cult4/view/cult4/uptype_list12.html | 83 + app/cult4/view/cult4/uptype_list2.html | 83 + app/cult4/view/cult4/uptype_list3.html | 83 + app/cult4/view/cult4/uptype_list4.html | 83 + app/cult4/view/cult4/uptype_list6.html | 83 + app/cult4/view/cult4/uptype_list8.html | 83 + app/cult4/view/cult4/uptype_list9.html | 83 + 87 files changed, 33193 insertions(+) create mode 100644 app/cult4/controller/Cult4.php create mode 100644 app/cult4/controller/Cult4.php_0508 create mode 100644 app/cult4/model/Cult4apply.php create mode 100644 app/cult4/model/Cult4apply.php_0508 create mode 100644 app/cult4/model/Cult4baseinfo.php create mode 100644 app/cult4/model/Cult4check.php create mode 100644 app/cult4/model/Cult4checkdd.php create mode 100644 app/cult4/model/Cult4number.php create mode 100644 app/cult4/model/Cult4status.php create mode 100644 app/cult4/model/Cult4upfiles.php create mode 100644 app/cult4/model/Cult4uptype.php create mode 100644 app/cult4/view/cult4/ajax_apply_listadd.html create mode 100644 app/cult4/view/cult4/ajax_apply_listadd2.html create mode 100644 app/cult4/view/cult4/ajax_apply_listdel.html create mode 100644 app/cult4/view/cult4/ajax_apply_listdel2.html create mode 100644 app/cult4/view/cult4/ajax_apply_listpro.html create mode 100644 app/cult4/view/cult4/apply_assign.html create mode 100644 app/cult4/view/cult4/apply_check1.html create mode 100644 app/cult4/view/cult4/apply_check10.html create mode 100644 app/cult4/view/cult4/apply_check11.html create mode 100644 app/cult4/view/cult4/apply_check12.html create mode 100644 app/cult4/view/cult4/apply_check13.html create mode 100644 app/cult4/view/cult4/apply_check14.html create mode 100644 app/cult4/view/cult4/apply_check2.html create mode 100644 app/cult4/view/cult4/apply_check3.html create mode 100644 app/cult4/view/cult4/apply_check4.html create mode 100644 app/cult4/view/cult4/apply_check5.html create mode 100644 app/cult4/view/cult4/apply_check6.html create mode 100644 app/cult4/view/cult4/apply_check8.html create mode 100644 app/cult4/view/cult4/apply_check9.html create mode 100644 app/cult4/view/cult4/apply_check_final.html create mode 100644 app/cult4/view/cult4/apply_check_final_edit.html create mode 100644 app/cult4/view/cult4/apply_list1.html create mode 100644 app/cult4/view/cult4/apply_list10.html create mode 100644 app/cult4/view/cult4/apply_list11.html create mode 100644 app/cult4/view/cult4/apply_list12.html create mode 100644 app/cult4/view/cult4/apply_list13.html create mode 100644 app/cult4/view/cult4/apply_list14.html create mode 100644 app/cult4/view/cult4/apply_list2.html create mode 100644 app/cult4/view/cult4/apply_list2_bak.html create mode 100644 app/cult4/view/cult4/apply_list3.html create mode 100644 app/cult4/view/cult4/apply_list4.html create mode 100644 app/cult4/view/cult4/apply_list5.html create mode 100644 app/cult4/view/cult4/apply_list6.html create mode 100644 app/cult4/view/cult4/apply_list7.html create mode 100644 app/cult4/view/cult4/apply_list8.html create mode 100644 app/cult4/view/cult4/apply_list9.html create mode 100644 app/cult4/view/cult4/apply_list_final.html create mode 100644 app/cult4/view/cult4/apply_uphistory1.html create mode 100644 app/cult4/view/cult4/apply_uphistory10.html create mode 100644 app/cult4/view/cult4/apply_uphistory11.html create mode 100644 app/cult4/view/cult4/apply_uphistory12.html create mode 100644 app/cult4/view/cult4/apply_uphistory2.html create mode 100644 app/cult4/view/cult4/apply_uphistory3.html create mode 100644 app/cult4/view/cult4/apply_uphistory4.html create mode 100644 app/cult4/view/cult4/apply_uphistory6.html create mode 100644 app/cult4/view/cult4/apply_uphistory8.html create mode 100644 app/cult4/view/cult4/apply_uphistory9.html create mode 100644 app/cult4/view/cult4/apply_uphistory_final.html create mode 100644 app/cult4/view/cult4/content.html create mode 100644 app/cult4/view/cult4/number_add.html create mode 100644 app/cult4/view/cult4/number_edit.html create mode 100644 app/cult4/view/cult4/number_list.html create mode 100644 app/cult4/view/cult4/payupload.html create mode 100644 app/cult4/view/cult4/uptype_add.html create mode 100644 app/cult4/view/cult4/uptype_add1.html create mode 100644 app/cult4/view/cult4/uptype_add10.html create mode 100644 app/cult4/view/cult4/uptype_add11.html create mode 100644 app/cult4/view/cult4/uptype_add12.html create mode 100644 app/cult4/view/cult4/uptype_add2.html create mode 100644 app/cult4/view/cult4/uptype_add3.html create mode 100644 app/cult4/view/cult4/uptype_add4.html create mode 100644 app/cult4/view/cult4/uptype_add6.html create mode 100644 app/cult4/view/cult4/uptype_add8.html create mode 100644 app/cult4/view/cult4/uptype_add9.html create mode 100644 app/cult4/view/cult4/uptype_edit.html create mode 100644 app/cult4/view/cult4/uptype_list.html create mode 100644 app/cult4/view/cult4/uptype_list1.html create mode 100644 app/cult4/view/cult4/uptype_list10.html create mode 100644 app/cult4/view/cult4/uptype_list11.html create mode 100644 app/cult4/view/cult4/uptype_list12.html create mode 100644 app/cult4/view/cult4/uptype_list2.html create mode 100644 app/cult4/view/cult4/uptype_list3.html create mode 100644 app/cult4/view/cult4/uptype_list4.html create mode 100644 app/cult4/view/cult4/uptype_list6.html create mode 100644 app/cult4/view/cult4/uptype_list8.html create mode 100644 app/cult4/view/cult4/uptype_list9.html diff --git a/app/cult4/controller/Cult4.php b/app/cult4/controller/Cult4.php new file mode 100644 index 0000000..7ba24e8 --- /dev/null +++ b/app/cult4/controller/Cult4.php @@ -0,0 +1,4130 @@ +error('用户ID不存在',url('cult4/Cult4/number_list',['apply_type'=>input('apply_type')])); + } + $status=Db::name('cult4number')->where('id',$id)->value($key);//判断当前状态情况 + $state=($status==1)?0:1; + $statedata = array($key=>$state); + Db::name('cult4number')->where('id',$id)->setField($statedata); + + return $status; + } + protected function checkFile($apply_id,$status,$baseinfo,$reuploadStatus,$passStatus,$curstatus,$fstatus='',$msg='',$configkey=''){ + $msg=''; + if(config('cult4advice'.$configkey)==1){ + if(input('advice')=='') return $msg?$msg:'请输入初审意见!'; + } + if(empty($fstatus))$fstatus=$curstatus; + //固定文件审核通过并且所有模板文件与文件数量对应 + if( count(get_unuploadfiles($apply_id,-1,$fstatus)) > 0) { + if($status==$passStatus)return '如果文件已经审核完成,请点击补交材料!如果文件未提交或未审核,请先审核或上传文件!'; + if($status==$reuploadStatus){ + $rst=get_unuploadfiles($apply_id,$status,$curstatus,-1,1); + //查看是否有推荐机构上传资料 + $rst2=get_unuploadfiles($apply_id,$status,$curstatus,-1,4); + + if(count($rst)==0) { + if(count($rst2)>0) { + if(!$baseinfo['member_recmd']){ + // return '未关联推荐机构,请代推荐机构添加要补交的材料!'; + } + }else{ + return '请添加要补交的材料,或者选择要重新审核的材料!'; + } + } + } + }else{ + if($status==$reuploadStatus||($curstatus==1&&$status==9))return '请添加要补交的材料,或者选择要重新审核的材料!'; + } + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return '请刷新页面重新提交'; + } + return $msg; + } + /** + * + * @param unknown $table + */ + protected function updateOrder($table,$params=[]){ + $applyid=input('apply_id'); + //更新初审表 + $sl_data['apply_id']=$applyid; + $sl_data['advice'] = input('advice',"未填写"); + $sl_data['create_id']=session('admin_auth.aid'); + $sl_data['create_time']=time(); + if(count($params)){ + $sl_data=array_merge($sl_data,$params); + } + //找到当前最大addorder + $where=array('apply_id'=>$applyid); + $check=Db::name($table)->where($where)->order('addorder desc') ->find (); + $sl_data['addorder']=!empty($check)?($check['addorder']+1):0; + Db::name($table)->insert($sl_data); + } + /** + * + * @param unknown $status + */ + protected function updateRun($status,$chkStatus,$reuploadStatus='',$params=[],$params2=[]){ + $baseid=input('base_id'); + $applyid=input('apply_id'); + $userid=session('admin_auth.aid'); + //更新基本信息表为已审核 + $sl_data2['base_id']=$baseid; + $sl_data2['flag']=1; + if(count($params)){ + $sl_data2=array_merge($sl_data2,$params); + if($sl_data2['flag']==='')unset($sl_data2['flag']); + } + $where2=array('base_id'=>$baseid); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + + //更新主表 + $sl_data3['apply_id']=$applyid; + $sl_data3['status']=$status; + $sl_data3['update_user_id']=$userid; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + $sl_data3['apply_admin_id']=0; + if(count($params2)){ + $sl_data3=array_merge($sl_data3,$params2); + if($sl_data3['apply_admin_id']==='')unset($sl_data3['apply_admin_id']); + } + $where3=array( + 'apply_id'=>$applyid, + 'status'=>$chkStatus + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if($status==$reuploadStatus){ + $where4=array( + 'apply_id'=>$applyid, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + } + /** + * + */ + protected function updateFeeOrder($flag=0,$key='x'){ + $apply_id=input($key); + $where=array('apply_id'=>$apply_id,'new_flag'=>1); + //更新最新记录为历史记录 + $sl_data=[]; + $sl_data['new_flag']=0; + Db::name('cult4fee')->where($where)->update($sl_data); + + //更新缴费表 + $sl_data1=[]; + $sl_data1['apply_id']=$apply_id; + $sl_data1['fee_flag'] =$flag; + $sl_data1['fee'] = 0; + $sl_data1['update_id']=session('admin_auth.aid'); + $sl_data1['update_time']=time(); + $sl_data1['new_flag'] = 1; + $sl_data1['addorder']=0; + //找到当前最大addorder + $addorder=Db::name('cult4fee')->where($where)->order('addorder desc')->find(); + if(!$flag||!empty($addorder)){ + $sl_data1['addorder']=$addorder['addorder']+1; + } + Db::name('cult4fee')->insert($sl_data1); + + } + protected function _pushNotice($username='',$baseinfo=array()){ + + $ctitle='企业公告'; + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + $ctitle='项目公告'; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + $ctitle='人才公告'; + } + //插入到前台公告 + $contents=Options::get_options('notice_options',$this->lang); + $contents_title='深圳文交所文化产权挂牌平台 '.$ctitle.'('.$baseinfo_name.')'; + $contents['content_tpl']=isset($contents['content_tpl'])?$contents['content_tpl']:''; + $notice=$contents['content_tpl']; + $notice=str_replace('#COMNAME#',$baseinfo_name,$notice); + $notice=str_replace('#CODENAME#',$baseinfo['shortname'],$notice); + $notice=str_replace('#APPLYNAME#',$baseinfo_name,$notice); + $notice=str_replace('#CODE#',$baseinfo['code'],$notice); + $notice=str_replace('#DATE#',date('Y年m月d日', time()),$notice); + $sl_data=array( + 'n_title'=>$contents_title, + 'n_cid'=>2, + 'n_source'=>'深圳文化产权交易所', + 'n_status'=>1, + 'n_desc'=>'', + 'n_content'=>$notice, + 'n_uid'=>session('admin_auth.aid'), + 'n_time'=>time(), + 'n_order'=>50, + 'n_status'=>1, + 'n_hits'=>200, + ); + Db::name('bsgg')->insert($sl_data); + } + /** + * 权限检查 + * @param array $chkStatusArray + */ + protected function checkStatus($chkStatusArray=[]){ + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)return $this->error('无权限',url('admin/Index/index')); + return $chkStatus; + } + /** + * + * @param unknown $roleid + * @param unknown $baseinfo_name + * @param unknown $apply_id + * @param unknown $apply + * @param unknown $baseinfo + * @param array $has_send + * @return unknown[]|array + */ + protected function dealUnUpload($roleid,$baseinfo_name,$apply_id,$apply,$baseinfo,$has_send=[],$curstatus,$advi='',$ntitle='',$nmsg=''){ + $to_uids=[]; + if($roleid==1){ + //基础 挂牌 + $to_uids[]=$apply['user_id']; + }elseif ($roleid==3){ + //专家 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($roleid==4){ + //推荐 + // $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + $maps=[]; + $maps[2]=['title'=>'申请尽调不通过,请补充资料!','txt'=>'申请尽调不通过,需要您重新修改信息或上传资料后再提交']; + $maps[3]=['title'=>'申请复审不通过,请补充资料!','txt'=>'申请复审不通过,需要您重新修改信息或上传资料后再提交']; + $maps[4]=['title'=>'申请风控审核不通过,请补充资料!','txt'=>'申请风控审核不通过,需要您重新修改信息或上传资料后再提交']; + $maps[6]=['title'=>'申请缴费确认不通过,请补充资料!','txt'=>'申请缴费确认不通过,需要您重新修改信息或上传资料后再提交']; + $maps[8]=['title'=>'申请专家审核不通过,请补充资料!','txt'=>'申请专家审核不通过,需要您重新修改信息或上传资料后再提交']; + $maps[9]=['title'=>'申请联席会审核不通过,请补充资料!','txt'=>'申请联席会审核不通过,需要您重新修改信息或上传资料后再提交']; + $maps[10]=['title'=>'申请材料核实不通过,请补充资料!','txt'=>'申请材料核实不通过,需要您重新修改信息或上传资料后再提交']; + $maps[11]=['title'=>'申请公告材料审核不通过,请补充资料!','txt'=>'申请公告材料审核不通过,需要您重新修改信息或上传资料后再提交']; + $maps[12]=['title'=>'申请挂牌审核不通过,请补充资料!','txt'=>'申请挂牌审核不通过,需要您重新修改信息或上传资料后再提交']; + + $ntitle=''; + $ntxt=''; + $current=isset($maps[$curstatus])?$maps[$curstatus]:''; + if($current){ + $ntitle=$current['title']; + $ntxt=$current['txt']; + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】'.$ntitle; + $notice='您(或您关联)的【'.$baseinfo_name.'】'.$ntxt.'。
请点击: 补充资料'; + if($advi){ + $notice.='反驳意见:'.$advi.''; + } + }else{ + $notice_title=$ntitle; + $notice=$nmsg; + } + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + return $has_send; + } + /** + * + * @param string $apply_id + * @param unknown $status + * @param unknown $curstatus + */ + protected function dealUnUploadFiles($baseinfo_name,$baseinfo=[],$apply=[],$apply_id='',$status,$curstatus,$advi='',$ntitle='',$nmsg=''){ + $unpassfiles=get_unuploadfiles($apply_id,$status,$curstatus); + $has_send=[]; + foreach ($unpassfiles as $v){ + if($v['upload_role_type']==1){ + $has_send=$this->dealUnUpload($v['upload_role_id'], $baseinfo_name, $apply_id, $apply, $baseinfo,$has_send,$curstatus,$advi,$ntitle='',$nmsg=''); + } + if($v['upload_role_type2']==1){ + $has_send=$this->dealUnUpload($v['upload_role_id2'], $baseinfo_name, $apply_id, $apply, $baseinfo,$has_send,$curstatus,$advi,$ntitle='',$nmsg=''); + } + } + } + /** + * 调用显示某个状态下文化四板申请列表 + */ + protected function apply_list($status,$status2=-1){ + $admin_id=session('admin_auth.aid'); + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + + $atype=input('apply_type'); + $this->assign('apply_type',$atype); + $applytype=''; + if($atype){ + $atype=explode(",", $atype); + if(is_array($atype)&&count($atype))$applytype=$atype; + } + if($bAll==1){ + return $this->apply_list_all($admin_id,$applytype); + } + $search_name=input('search_name'); + $this->assign('search_name',$search_name); + $apply_list=ApplyModel::getList($search_name,$status,$admin_id,'create_time desc,apply_id desc',$status2,$applytype); + + $page = $apply_list->render(); + if($apply_list){ + $apply_list=$apply_list->toArray(); + $apply_list=$apply_list['data']; + if(count($apply_list)){ + $uids=array_search_key('user_id',$apply_list); + $uids=array_flip(array_flip($uids)); + $usernams=get_cult4UserNames(implode(',', $uids), 1); + $statuses=get_cult4UserStatuses(implode(',', $uids), 1); + $apply_ids=array_search_key('apply_id',$apply_list); + $apply_ids=array_flip(array_flip($apply_ids)); + + $applynames=get_cult4ApplyNames($apply_ids); + + $cstatus=array_search_key('status',$apply_list); + $cstatus=array_flip(array_flip($cstatus)); + $cstatuses=get_cult4Statuses($cstatus); + + if($status>=14)$fees=get_cult4feeflags($apply_ids); + foreach ($apply_list as $key=>$row){ + $userid=$row['user_id']; + $applyid=$row['apply_id']; + $status=$row['status']; + $apply_list[$key]['username']=isset($usernams[$userid])?$usernams[$userid]:''; + $apply_list[$key]['userstatus']=isset($statuses[$userid])?$statuses[$userid]:''; + $apply_list[$key]['applyname']=isset($applynames[$applyid])?$applynames[$applyid]:''; + $apply_list[$key]['checkstatus']=isset($cstatuses[$status])?$cstatuses[$status]:''; + if($status>=14)$apply_list[$key]['fee']=isset($fees[$applyid])?$fees[$applyid]:0; + } + + } + } + $this->assign('apply_list',$apply_list); + $this->assign('page',$page); + $this->assign('loginuser',session('admin_auth.aid')); + $this->assign('loginrole',session('admin_auth.role')); + return $this->fetch(); + } + /** + * 多状态查询列表 + * @param unknown $status + * @param unknown $admin_id + * @param unknown $statusStr + * @return mixed|string + */ + protected function apply_list_Mult($status,$statusStr){ + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + $admin_id=session('admin_auth.aid'); + + $atype=input('apply_type'); + $this->assign('apply_type',$atype); + $applytype=''; + if($atype){ + $atype=explode(",", $atype); + if(is_array($atype)&&count($atype))$applytype=$atype; + } + + if($bAll==1){ + return $this->apply_list_all($admin_id,$applytype); + } + $search_name=input('search_name'); + $this->assign('search_name',$search_name); + + $apply_list=ApplyModel::getList2($status,$search_name,$admin_id,$statusStr,$applytype); + + $page = $apply_list->render(); + if($apply_list){ + $apply_list=$apply_list->toArray(); + $apply_list=$apply_list['data']; + if(count($apply_list)){ + $uids=array_search_key('user_id',$apply_list); + $uids=array_flip(array_flip($uids)); + $usernams=get_cult4UserNames(implode(',', $uids), 1); + $statuses=get_cult4UserStatuses(implode(',', $uids), 1); + $apply_ids=array_search_key('apply_id',$apply_list); + $apply_ids=array_flip(array_flip($apply_ids)); + + $applynames=get_cult4ApplyNames($apply_ids); + + $cstatus=array_search_key('status',$apply_list); + $cstatus=array_flip(array_flip($cstatus)); + $cstatuses=get_cult4Statuses($cstatus); + + if($status>=9)$fees=get_cult4feeflags($apply_ids); + + foreach ($apply_list as $key=>$row){ + $userid=$row['user_id']; + $applyid=$row['apply_id']; + $ustatus=$row['status']; + $apply_list[$key]['username']=isset($usernams[$userid])?$usernams[$userid]:''; + $apply_list[$key]['userstatus']=isset($statuses[$userid])?$statuses[$userid]:''; + $apply_list[$key]['applyname']=isset($applynames[$applyid])?$applynames[$applyid]:''; + $apply_list[$key]['checkstatus']=isset($cstatuses[$ustatus])?$cstatuses[$ustatus]:''; + if($status>=9)$apply_list[$key]['fee']=isset($fees[$applyid])?$fees[$applyid]:0; + + } + + } + } + $this->assign('apply_list',$apply_list); + $this->assign('page',$page); + $this->assign('loginuser',session('admin_auth.aid')); + return $this->fetch(); + } + /** + * 全状态下检索 + * @param unknown $admin_id + * @return mixed|string + */ + protected function apply_list_all($admin_id,$applytype=''){ + $search_name=input('search_name'); + $this->assign('search_name',$search_name); + $apply_list=ApplyModel::getListAll($search_name,$admin_id,'create_time desc,apply_id desc',$applytype); + + $page = $apply_list->render(); + if($apply_list){ + $apply_list=$apply_list->toArray(); + $apply_list=$apply_list['data']; + if(count($apply_list)){ + $uids=array_search_key('user_id',$apply_list); + $uids=array_flip(array_flip($uids)); + $usernams=get_cult4UserNames(implode(',', $uids), 1); + $statuses=get_cult4UserStatuses(implode(',', $uids), 1); + $apply_ids=array_search_key('apply_id',$apply_list); + $apply_ids=array_flip(array_flip($apply_ids)); + + $applynames=get_cult4ApplyNames($apply_ids); + + $cstatus=array_search_key('status',$apply_list); + $cstatus=array_flip(array_flip($cstatus)); + $cstatuses=get_cult4Statuses($cstatus); + + $fees=get_cult4feeflags($apply_ids); + foreach ($apply_list as $key=>$row){ + $userid=$row['user_id']; + $applyid=$row['apply_id']; + $status=$row['status']; + $apply_list[$key]['username']=isset($usernams[$userid])?$usernams[$userid]:''; + $apply_list[$key]['userstatus']=isset($statuses[$userid])?$statuses[$userid]:''; + $apply_list[$key]['applyname']=isset($applynames[$applyid])?$applynames[$applyid]:''; + $apply_list[$key]['checkstatus']=isset($cstatuses[$status])?$cstatuses[$status]:''; + $apply_list[$key]['fee']=isset($fees[$applyid])?$fees[$applyid]:0; + } + + } + } + $this->assign('apply_list',$apply_list); + $this->assign('page',$page); + $this->assign('loginuser',session('admin_auth.aid')); + + return $this->fetch(); + } + /** + * 01.初审(初审中(已提交):1) + * 初审中(联席会已复议):19 + */ + public function apply_list1(){ + return $this->apply_list(1,19); + } + /** + * 02.尽职调查(尽调中(初审已通过):2) + * 尽调中(联席会已复议):36 + */ + public function apply_list2(){ + return $this->apply_list(2,36); + } + /** + * 03.复审(复审中(已尽调):5) + * 复审中(联席会已复议):20 + */ + public function apply_list3(){ + return $this->apply_list(5,20); + } + /** + * 04.风控中心审核(风控审核中(复审已通过):6) + * 风控审核中(联席会已复议):21 + */ + public function apply_list4(){ + return $this->apply_list(6,21); + } + /** + * 05.缴费 + * 缴费中(风控审核通过):9 + * 缴费中(联席会已复议):22 + */ + public function apply_list5(){ + return $this->apply_list_Mult(9,'9,12,22,39'); + } + /** + * 06.缴费确认 + * 缴费确认中(已缴费):12 + * 缴费确认中(联席会已复议):39 + */ + public function apply_list6(){ + return $this->apply_list_Mult(12,'9,12,22,39'); + } + /** + * 07.专家分配(专家分配中(缴费状态已确认):14) + */ + public function apply_list7(){ + return $this->apply_list(14); + } + /** + * 07.专家分配(专家分配中(缴费状态已确认):14) + * 08.专家审核确认(专家评分中(专家已分配):15) + * 专家评分中(联席会已复议):23 + */ + public function apply_list8(){ + return $this->apply_list_Mult(15,'14,15,23'); + } + /** + * 09.联席会审核(联席会审核中(已确认专家审核):16) + * 上报中(初审未通过):4 + * 上报中(尽调未通过):34 + * 上报中(复审未通过):8 + * 上报中(风控审核未通过):11 + * 上报中(未缴费未通过):13 + * 上报中(专家审核未通过):17 + * 上报中(材料核实未通过):28 + */ + public function apply_list9(){ + return $this->apply_list_Mult(16,'4,8,11,13,17,34,16,28'); + } + /** + * 10.材料核实(材料核实中(联席会审核通过):25) + * 材料核实中(保存核实意见):47 + * 材料核实中(联席会已复议):46 + */ + public function apply_list10(){ + $user_id=session('admin_auth.aid'); + $this->assign('user_id',$user_id); + + return $this->apply_list_Mult(25,'25,46,47'); + } + /** + * 11.公告资料提交中(材料核实通过):27 + * 公告资料提交中(已提交基础信息):48 + * 公告资料审核中(公告资料已提交):29 + */ + public function apply_list11(){ + return $this->apply_list_Mult(48,'48,29,27'); + } + /** + * 12.挂牌中(已提交路演资料):51 + * 挂牌中(已提交公告资料):30 + */ + public function apply_list12(){ + return $this->apply_list_Mult(30,'30,51'); + } + + /** + * 选择特殊号码申请 + */ + public function apply_list13(){ + return $this->apply_list_Mult(48,'48'); + } + + /** + *号码审核18通过特殊号码审核 + */ + public function apply_list14(){ + return $this->apply_list(18,18); + } + /** + * 上市企业列表 + */ + public function apply_list_final(){ + return $this->apply_list(31,30); + } + /** + * 受理操作 + */ + public function apply_applyed($process,$status=''){ + $admin_id=session('admin_auth.aid'); + if(!$admin_id)$this->error('用户ID不存在'); + + $apply_id=input('apply_id'); + $maps=[1=>[1,19],2=>[2,36],3=>[5,20],4=>[6,21],5=>[9,22],6=>[9,22,12,39],8=>[14,15,23],10=>[25,46,47],11=>[48,29,27],12=>[51,30],13=>[48],14=>[18]]; + $current=isset($maps[$process])?$maps[$process]:[]; + if(count($current)){ + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + } + if(count($current)&&!in_array($status,$current))$this->error('数据已更新,请重试!'); + + $apply = ApplyModel::applyed(input('apply_id'),session('admin_auth.aid'),input('seq'),$status); + if($apply==0)$this->error('数据已更新,请重试!'); + + if(in_array($status,[9,22]))//缴费中(风控审核通过):9 缴费中(联席会已复议):22 + $jump=url('cult4/Cult4/apply_list'.$process,['apply_type'=>input('apply_type')]); + elseif($status==14)//专家分配中(缴费状态已确认):14 + $jump=url('cult4/Cult4/apply_assign',array('apply_id'=>$apply_id,'apply_type'=>input('apply_type'))); + else + $jump=url('cult4/Cult4/apply_check'.$process,array('apply_id'=>$apply_id,'apply_type'=>input('apply_type'))); + + $this->success('已受理',$jump); + } + /** + * 01.初审受理 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function apply_applyed1(){ + $this->apply_applyed(1); + } + /** + * 02.尽职调查受理 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function apply_applyed2(){ + $this->apply_applyed(2); + } + /** + * 03.复审受理 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function apply_applyed3(){ + $this->apply_applyed(3); + } + /** + * 04.风控受理 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function apply_applyed4(){ + $this->apply_applyed(4); + } + /** + * 05.缴费受理 + * 缴费中(风控审核通过):9 + * 缴费中(联席会已复议):22 + */ + public function apply_applyed5(){ + $this->apply_applyed(5); + } + /** + * 06.缴费确认受理 + * 缴费确认中(已缴费):12 + * 缴费确认中(联席会已复议):39 + */ + public function apply_applyed6(){ + $this->apply_applyed(6); + } + /** + * 07.专家分配受理 + */ + public function apply_applyed7(){ + $this->apply_applyed(7,14); + } + /** + * 08.专家分配中(缴费状态已确认):14 + * 专家评分中(专家已分配):15 + * 专家评分中(联席会已复议):23 + */ + public function apply_applyed8(){ + $this->apply_applyed(8); + } + /** + * 09.联席会审核中(已确认专家审核):16 + */ + public function apply_applyed9(){ + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $state=($status==4 or $status==8 or $status==11 or $status==13 or $status==17 or $status==34 or $status==16 or $status==28)?$status:16; + return $this->apply_applyed(9,$state); + } + /** + * 10.材料审核 + * 材料核实中(联席会审核通过):25 + * 材料核实中(联席会已复议):46 + * 材料核实中(保存核实意见):47 + */ + public function apply_applyed10(){ + $this->apply_applyed(10); + } + /** + * 11.公告材料审核 + * 公告资料提交中(已提交基础信息):48 + * 公告资料审核中(公告资料已提交):29 + */ + public function apply_applyed11(){ + $this->apply_applyed(11); + } + /** + * 12.挂牌中 + * 挂牌中(已提交公告资料):30 + * 挂牌中(已提交路演资料):51 + */ + public function apply_applyed12(){ + $this->apply_applyed(12); + } + /** + * 13.财务人员确认业务号码 + */ + public function apply_applyed13(){ + $this->apply_applyed(13); + } + /** + * 13.审核号码 + */ + public function apply_applyed14(){ + $this->apply_applyed(14); + } + /* + * 审核用户信息界面 + */ + public function apply_check($process,$status=''){ + creatToken(); + $apply_id=input('apply_id'); + $maps=[1=>[1,19],2=>[2,36],3=>[5,20],4=>[6,21],5=>[9,12],6=>[12,9,22,39],8=>[15,14,23],9=>[16,4,8,11,13,17,28,34],10=>[25,46,47],11=>[48,29,27],12=>[51,30,48,55],13=>[48],14=>[18]]; + $current=isset($maps[$process])?$maps[$process]:[]; + if(count($current)){ + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if(!in_array($status,$current))$status=array_shift($current); + } + + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + $this->assign('user_id',$user_id); + $this->assign('process',$process); + //权限检查(材料核实) + if(!($process==10 and ($status==47 or $status==46 or $status==25) and get_cult4IsUserAdvicedMC($apply_id, $user_id)>0) and !($process==99)){ + if (check_cult4UserRight($apply_id, $user_id, $status) == 0) { + $this->error('无权限', url('admin/Index/index')); + } + } + //取得当前审核表 + $where=array('apply_id'=>$apply_id); + $applyinfo = Db::name('cult4apply')->where($where)->find(); + $this->assign('applyinfo',$applyinfo); + + //取得基本信息表 + $baseinfo = Db::name('cult4baseinfo')->where($where)->order('addorder desc')->find(); + if(empty($baseinfo)){ + $this->error('未录入基础信息表!',url('cult4/Cult4/apply_list'.$process,['apply_type'=>input('apply_type')])); + } + if($baseinfo&&($baseinfo['apply_type']==4||$baseinfo['apply_type']==6)){ + $baseinfo['c_equity']=$baseinfo['c_equity']?json_decode($baseinfo['c_equity'],true):[]; + $baseinfo['c_finance']=$baseinfo['c_finance']?json_decode($baseinfo['c_finance'],true):[]; + $baseinfo['c_decision']=$baseinfo['c_decision']?json_decode($baseinfo['c_decision'],true):[]; + $baseinfo['c_transferee']=$baseinfo['c_transferee']?json_decode($baseinfo['c_transferee'],true):[]; + $baseinfo['c_notice']=$baseinfo['c_notice']?json_decode($baseinfo['c_notice'],true):[]; + $baseinfo['c_base']=$baseinfo['c_base']?json_decode($baseinfo['c_base'],true):[]; + $baseinfo['c_transferor']=$baseinfo['c_transferor']?json_decode($baseinfo['c_transferor'],true):[]; + $baseinfo['c_investor']=$baseinfo['c_investor']?json_decode($baseinfo['c_investor'],true):[]; + } + //dump($baseinfo);exit; + $this->assign('baseinfo',$baseinfo); + $apply_type=$baseinfo['apply_type']; + $c_type=$baseinfo['c_type']; + $p_type=$baseinfo['p_type']; + + //证件类型表 + $cardtype=Db::name('cult4cardtype')->order('id')->select(); + $this->assign('cardtype',$cardtype); + + //项目对应列表信息 + $addrs=Db::name('Region')->where('pid','in',[1,$baseinfo['p_addr_province'],$baseinfo['p_addr_city'],$baseinfo['p_addr2_province'],$baseinfo['p_addr2_city']])->select(); + $province=[];//省份表 + $city=[];//项目地址市表 + $town=[];//项目地址区表 + $city2=[];//联系地址市表 + $town2=[];//联系地址区表 + + foreach ($addrs as $row){ + $pid=$row['pid']; + if($pid==1)array_push($province, $row); + if($pid==$baseinfo['p_addr_province'])array_push($city, $row); + if($pid==$baseinfo['p_addr_city'])array_push($town, $row); + if($pid==$baseinfo['p_addr2_province'])array_push($city2, $row); + if($pid==$baseinfo['p_addr2_city'])array_push($town2, $row); + } + + $this->assign('province',$province); + $this->assign('city',$city); + $this->assign('town',$town); + $this->assign('city2',$city2); + $this->assign('town2',$town2); + //显示特殊号码 + $saleno=Db::name('cult4number')->where ( array('id'=>$baseinfo['code_id']))->value ('saleno'); + $this->assign('saleno',$saleno); + $ktype=$baseinfo['k_type']; + //取得apply_id对应的用户录入状态下的所有固定文件类型最新记录 + $apply_uptypelist=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,0,1,'ftype_id,status,apply_id,isopen',-1,$ktype); + if(empty($apply_uptypelist)){ + $fileinfo = new UpFilesModel(); + $filelist=$fileinfo->getList($apply_id,1,[0,1],'',1); + $fids=[]; + if(count($filelist)){ + foreach ($filelist as $vo){ + if($vo['ftype_id'])array_push($fids, $vo['ftype_id']); + } + if(count($fids)){ + $apply_uptypelist=UptypeModel::getListBySearch($fids); + } + } + } + $this->assign('apply_uptypelist',$apply_uptypelist); + + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + + $this->assign('status',$status); + $this->assign('apply_id',$apply_id); + + //是否有联席会上报驳回意见 + $where=array('apply_id'=>$apply_id); + $jcReport = Db::name('cult4checkjc')->where($where)->order('addorder desc') ->find(); + $this->assign('jcReport',$jcReport); + $this->assign('hasJcReport',0); + + //初审中(已提交):1 + //初审中(联席会已复议):19 + if($process>=1){ + //取得所有历史审核记录 + $where=array('apply_id'=>$apply_id); + $begincheck = Db::name('cult4check')->where($where)->order('addorder desc') ->select(); + $this->assign('begincheck',$begincheck); + + //取得apply_id对应的用户初审状态下的所有固定文件类型最新记录 + $apply_uptypelist_check=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(1,19),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_check',$apply_uptypelist_check); + + //取得apply_id对应的用户初审状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheck=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(1,19),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_tempcheck',$apply_uptypelist_tempcheck); + + //初审中(联席会已复议):19 + if($status==19){ + $this->assign('hasJcReport',1); + } + } + + //尽调中(初审已通过):2 + //尽调中(联席会已复议):36 + if($process>=2 and $status!=4){//$status>=2 + //取得所有历史审核记录 + $where=array('apply_id'=>$apply_id); + $ddcheck = Db::name('cult4checkdd')->where($where)->order('addorder desc') ->select(); + $this->assign('ddcheck',$ddcheck); + + //取得apply_id对应的用户尽调状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkdd=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(2,36),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_checkdd',$apply_uptypelist_checkdd); + + //取得apply_id对应的用户尽调状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckdd=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(2,36),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_tempcheckdd',$apply_uptypelist_tempcheckdd); + + //尽调中(联席会已复议):36 + if($status==36){ + $this->assign('hasJcReport',1); + } + } + + //复审中(已尽调):5 + //复审中(联席会已复议):20 + if($process>=3 and $status!=4 and $status!=34){//$status>=5 + //取得所有历史审核记录 + $where=array('apply_id'=>$apply_id); + $reviewcheck = Db::name('cult4checkreview')->where($where)->order('addorder desc') ->select(); + $this->assign('reviewcheck',$reviewcheck); + + //取得apply_id对应的用户复审状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkreview=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(5,20),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_checkreview',$apply_uptypelist_checkreview); + + //取得apply_id对应的用户复审状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckreview=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(5,20),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_tempcheckreview',$apply_uptypelist_tempcheckreview); + + //复审中(联席会已复议):20 + if($status==20){ + $this->assign('hasJcReport',1); + } + } + //风控审核中(复审已通过):6 + //风控审核中(联席会已复议):21 + if($process>=4 and $status!=4 and $status!=34 and $status!=8){//$status>=6 + //取得所有历史审核记录 + $where=array('apply_id'=>$apply_id); + $riskcheck = Db::name('cult4checkrisk')->where($where)->order('addorder desc') ->select(); + $this->assign('riskcheck',$riskcheck); + + //取得apply_id对应的用户风控审核状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkrisk=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(6,21),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_checkrisk',$apply_uptypelist_checkrisk); + + //取得apply_id对应的用户风控审核状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckrisk=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(6,21),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_tempcheckrisk',$apply_uptypelist_tempcheckrisk); + + //风控审核中(联席会已复议):21 + if($status==21){ + $this->assign('hasJcReport',1); + } + } + //缴费中(风控审核通过):9 + //缴费确认中(已缴费):12 + //缴费确认中(联席会已复议):39 + //缴费中(联席会已复议):22 + if($process>=5 and $status!=4 and $status!=34 and $status!=8 and $status!=11){//$status>=9 + //取得所有历史审核记录 + $where=array('apply_id'=>$apply_id); + $feecheck = Db::name('cult4checkfee')->where($where)->order('addorder desc') ->select(); + $this->assign('feecheck',$feecheck); + + //取得apply_id对应的用户缴费确认状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkfee=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(9,12,39,22),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_checkfee',$apply_uptypelist_checkfee); + + //取得apply_id对应的用户缴费确认状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckfee=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(9,12,39,22),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_tempcheckfee',$apply_uptypelist_tempcheckfee); + + //缴费状态 + $where=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1, + ); + $fee_flag=Db::name('cult4fee')->where($where)->value('fee_flag'); + $this->assign('fee_flag',$fee_flag); + + //缴费中(联席会已复议):22 + //缴费确认中(联席会已复议):39 + if($status==22 || $status==39){ + $this->assign('hasJcReport',1); + } + } + //专家分配中(缴费状态已确认):14 + //专家评分中(专家已分配):15 + //专家评分中(联席会已复议):23 + if($process>=7 and $status!=4 and $status!=34 and $status!=8 and $status!=11 and $status!=13){//$status>=14 + $this->assign('status',$status); + $this->assign('apply_id',$apply_id); + + //专家分配 + $member_list = Db::query("SELECT a.*,count(*) as CNT FROM `".config('database.prefix')."member_list` as a left join `".config('database.prefix')."cult4proassign` as b on a.member_list_id=b.user_id and (b.del_flag=0) WHERE a.member_list_groupid=3 and a.member_list_id not in(select user_id from ".config('database.prefix')."cult4proassign where del_flag=0 and apply_id=".$apply_id.") GROUP BY member_list_id order by CNT;"); + $this->assign('member_list',$member_list); + + //已分配专家及分配专家评分 + $pro_list_assigned = Db::query("SELECT b.*,a.* FROM `".config('database.prefix')."cult4proassign` as a left join `".config('database.prefix')."member_list` as b on a.user_id=b.member_list_id WHERE a.del_flag=0 and a.apply_id=".$apply_id.";"); + $this->assign('pro_list_assigned',$pro_list_assigned); + + //取得所有历史审核记录 + $where=array('apply_id'=>$apply_id); + $procheck = Db::name('cult4checkpro')->where($where)->order('addorder desc') ->select(); + $this->assign('procheck',$procheck); + + //取得apply_id对应的专家评分中(专家已分配)状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkpro=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(14,15,23),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_checkpro',$apply_uptypelist_checkpro); + + //取得apply_id对应的专家评分中(专家已分配)状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckpro=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(14,15,23),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_tempcheckpro',$apply_uptypelist_tempcheckpro); + + //专家评分中(联席会已复议):23 + if($status==23){ + $this->assign('hasJcReport',1); + } + } + //联席会审核中(已确认专家审核):16 + //联席会审核都显示 and $status!=4 and $status!=34 and $status!=8 and $status!=11 and $status!=13 and $status!=17 + if($process>=9){//$status>=16 + //取得所有历史审核记录 + $where=array('apply_id'=>$apply_id); + $jccheck = Db::name('cult4checkjc')->where($where)->order('addorder desc') ->select(); + $this->assign('jccheck',$jccheck); + + //取得apply_id对应的用户状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkjc=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(4,34,8,11,13,17,16,28),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_checkjc',$apply_uptypelist_checkjc); + + //取得apply_id对应的用户状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckjc=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(4,34,8,11,13,17,16,28),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_tempcheckjc',$apply_uptypelist_tempcheckjc); + + //查联席会决议模板 + $lxhjy_tmep = Db::name('cult4upfiles')->alias("f")->join(config('database.prefix').'cult4uptype t','t.ftemp_id=f.file_id') + ->where(['t.isopen'=>'1','t.status'=>30])->where('t.apply_type','in',['0',$apply_type])->order('upload_time desc')->select(); + if(!empty($lxhjy_tmep)){ + $this->assign('lxhjy_tmep',$lxhjy_tmep[0]); + } + } + //材料核实中(联席会审核通过):25 + //材料核实中(联席会已复议):46 + //材料核实中(保存核实意见):47 + if($process>=10){ + //取得所有历史审核记录 + $where=array('apply_id'=>$apply_id); + $mccheck = Db::name('cult4checkmc')->where($where)->order('addorder desc') ->select(); + $this->assign('mccheck',$mccheck); + + //取得apply_id对应的用户状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkmc=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(25,46,47),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_checkmc',$apply_uptypelist_checkmc); + + //取得apply_id对应的用户状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckmc=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(25,46,47),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_tempcheckmc',$apply_uptypelist_tempcheckmc); + + //材料核实中(联席会已复议):46 + if($status==46){ + $this->assign('hasJcReport',1); + } + $apply_lxhjy = Db::name('cult4upfiles')->where(['apply_id'=>$apply_id,'status'=>16])->order('upload_time desc')->find(); + $this->assign('apply_lxhjy',$apply_lxhjy); + } + //公告资料提交中(已提交基础信息):48 + //公告资料审核中(公告资料已提交):29 + if($process>=11){ + //取得所有历史审核记录 + $where=array('apply_id'=>$apply_id); + $nmcheck = Db::name('cult4checknm')->where($where)->order('addorder desc') ->select(); + $this->assign('nmcheck',$nmcheck); + + //取得apply_id对应的用户状态下的所有固定文件类型最新记录 + $apply_uptypelist_checknm=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(48,29,27),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_checknm',$apply_uptypelist_checknm); + + //取得apply_id对应的用户状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempchecknm=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(48,29,27),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_tempchecknm',$apply_uptypelist_tempchecknm); + + //取得对应的特殊号段 + $where=array('status' => 1); + if($status==27){ + $where['salestatus']=0; + } + $salenolist = Db::name('cult4number')->where($where)->select(); + $this->assign('salenolist',$salenolist); + } + //挂牌中(已提交公告资料):30 + //挂牌中(已提交路演资料):51 + if($process>=12){ + //取得所有历史审核记录 + $where=array('apply_id'=>$apply_id); + $boardcheck = Db::name('cult4checkboard')->where($where)->order('addorder desc') ->select(); + $this->assign('boardcheck',$boardcheck); + + //取得apply_id对应的用户状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkboard=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(51,30),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_checkboard',$apply_uptypelist_checkboard); + + //取得apply_id对应的用户状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckboard=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(51,30),1,'ftype_id,status,apply_id,isopen',-1,$ktype); + $this->assign('apply_uptypelist_tempcheckboard',$apply_uptypelist_tempcheckboard); + } + return $this->fetch(); + } + /** + * 01.初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function apply_check1(){ + return $this->apply_check(1); + } + /** + * 02.尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function apply_check2(){ + return $this->apply_check(2); + } + /** + * 03.复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function apply_check3(){ + return $this->apply_check(3); + } + /** + * 04.风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function apply_check4(){ + return $this->apply_check(4); + } + public function apply_check5(){ + return $this->apply_check(5); + } + /** + * 06.缴费确认审核 + * 缴费中(风控审核通过):9 + * 缴费确认中(已缴费):12 + * 缴费中(联席会已复议):22 + * 缴费确认中(联席会已复议):39 + */ + public function apply_check6(){ + return $this->apply_check(6); + } + /** + * 07.专家分配 + * 专家分配中(缴费状态已确认):14 + * 专家评分中(专家已分配):15 + * 专家评分中(联席会已复议):23 + */ + public function apply_assign(){ + //创建token + creatToken(); + $apply_id=input('apply_id'); + //权限检查 + if( (check_cult4UserRight($apply_id,session('admin_auth.aid'),14)==0) and (check_cult4UserRight($apply_id,session('admin_auth.aid'),15)==0) and (check_cult4UserRight($apply_id,session('admin_auth.aid'),23)==0) ){ + $this->error('无权限',url('admin/Index/index')); + } + $this->assign('apply_id',$apply_id); + $member_list = Db::query("SELECT a.*,count(*) as CNT FROM `wjs_member_list` as a left join `wjs_cult4proassign` as b on a.member_list_id=b.user_id and (b.del_flag=0) WHERE a.member_list_groupid=3 and a.member_list_id not in(select user_id from wjs_cult4proassign where del_flag=0 and apply_id=".$apply_id.") GROUP BY member_list_id order by CNT;"); + $this->assign('member_list',$member_list); + + $member_list_assigned = Db::query("SELECT b.*,a.pro_id FROM `wjs_cult4proassign` as a left join `wjs_member_list` as b on a.user_id=b.member_list_id WHERE a.del_flag=0 and a.apply_id=".$apply_id.";"); + $this->assign('member_list_assigned',$member_list_assigned); + + $p=input('p'); + if(request()->isAjax()){ + $tpl=(p==1)?'ajax_apply_listadd':'ajax_apply_listdel'; + return $this->fetch($tpl); + }else{ + return $this->fetch(); + } + } + + /** + * 08.专家评分中(专家已分配):15 + * 专家分配中(缴费状态已确认):14 + * 专家评分中(专家已分配):15 + * 专家评分中(联席会已复议):23 + */ + public function apply_check8(){ + return $this->apply_check(8); + } + /** + * 09.联席会审核 + */ + public function apply_check9(){ + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + return $this->apply_check(9); + } + /** + * 10.材料核实中(联席会审核通过):25 + */ + public function apply_check10(){ + //材料核实中(联席会审核通过):25 + //材料核实中(联席会已复议):46 + //材料核实中(保存核实意见):47 + return $this->apply_check(10); + } + /** + * 11.公告资料提交中(已提交基础信息):48 + */ + public function apply_check11(){ + //公告资料提交中(材料核实通过):48 + //公告资料审核中(公告资料已提交):29 + //公告资料提交中(材料核实通过):27 + return $this->apply_check(11); + } + + /** + * 12.挂牌中(已提交公告资料):30 + * 挂牌中(已提交路演资料):51 + */ + public function apply_check12(){ + //挂牌中(已提交公告资料):30 + //挂牌中(已提交路演资料):51 + return $this->apply_check(12); + } + + /** + * 13.财务人员确认业务号码 + */ + public function apply_check13(){ + return $this->apply_check(13); + } + + /** + * 14号码审核 + */ + public function apply_check14(){ + return $this->apply_check(14); + } + /** + * 查看 + * 13.挂牌成功:31 + */ + public function apply_check_final() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + $state=($status==31)?$status:31; + return $this->apply_check(99,$state); + } + /** + * 编辑 + * 13.挂牌成功:31 + */ + public function apply_check_final_edit() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + $state=($status==31)?$status:31; + return $this->apply_check(99,$state); + } + /** + * 07.专家分配添加 + * 08.专家分配添加 + * @param $assign_type 0:专家分配角色 1:确认专家审核角色(前台专家不可见) + */ + public function apply_assign_add($assign_type=0){ + $p=input('p'); + $apply_id=input('apply_id'); + $member_list_id=input('id'); + $user_id=session('admin_auth.aid'); + + //检查是否超出限额 + $whereCnt['apply_id']=array('eq', $apply_id); + $whereCnt['del_flag']=array('eq', 0); + $assignCnt = Db()->name('cult4proassign')->where($whereCnt)->count(); + if($assignCnt>=config('cult4ProLimit')){ + $this->error('专家分配已超出限额!最多分配'.config('cult4ProLimit').'名专家',url('cult4/Cult4/apply_assign',array('apply_id'=>$apply_id,'p'=>$p,'apply_type'=>input('apply_type')))); + } + + $sl_data=array( + 'apply_id'=>$apply_id, + 'user_id'=>$member_list_id, + 'assign_type'=>$assign_type, + 'del_flag'=>0, + 'score'=>0, + 'full_score'=>config('cult4ProScore'), + 'create_id'=>$user_id, + 'create_time'=>time(), + ); + $rst=Db::name('cult4proassign')->insert($sl_data); + $msg=($rst!==false)?'专家分配成功':'专家分配失败'; + $jump=''; + if($assign_type==0) + $jump=url('cult4/Cult4/apply_assign',array('apply_id'=>$apply_id,'p'=>$p,'apply_type'=>input('apply_type')));//专家分配 + elseif($assign_type==1) + $jump=url('cult4/Cult4/apply_check8#pro',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999),'apply_type'=>input('apply_type')));//专家审核确认 + + if($rst!==false){ + $this->success($msg,$jump); + }else{ + $this->error($msg,$jump); + } + } + /** + * 07.专家分配删除 + * 08.专家分配删除 + */ + public function apply_assign_del($assign_type=0){ + $p=input('p'); + $pro_id=input('id'); + $apply_id=input('apply_id'); + + $where=array('pro_id'=>$pro_id); + $sl_data=array('del_flag'=>1); + $rst=Db::name('cult4proassign')->where($where)->update($sl_data); + + $msg=($rst!==false)?'已分配专家删除成功':'已分配专家删除失败'; + $jump=''; + if($assign_type==0) + $jump=url('cult4/Cult4/apply_assign',array('apply_id'=>$apply_id,'p'=>$p,'apply_type'=>input('apply_type')));//专家分配 + elseif($assign_type==1) + $jump=url('cult4/Cult4/apply_check8#pro',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999),'apply_type'=>input('apply_type')));//专家审核确认 + + if($rst!==false){ + $this->success($msg,$jump); + }else{ + $this->error($msg,$jump); + } + } + /** + * 07.专家分配完成 + * 08.专家分配完成 + */ + public function apply_assign_finish(){ + //本处理对应状态 + $chkStatus = 14; + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + $submitType=input('submitType'); + //下面相关业务代码 + if($submitType==1) { + $this->success('返回成功!',url('cult4/Cult4/apply_list7',['apply_type'=>input('apply_type')])); + }elseif($submitType==2 or $submitType==3) {//分配完成 + //统一推送消息 + $user_ids=Db::name('cult4proassign')->where(['apply_id'=>$apply_id,'del_flag'=>0])->order('pro_id desc')->column('user_id'); + if($user_ids){ + /** + * 增加通知推送,by rainfer + */ + $baseinfo=Db::name('cult4baseinfo')->where(['apply_id'=>$apply_id,'new_flag'=>1])->find(); + $applytype=$baseinfo['apply_type']; + $baseinfo_name=($applytype==1)?$baseinfo['c_name']:(($applytype==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + + foreach($user_ids as $v){ + $notice_title='【'.$baseinfo_name.'】挂牌申请的专家评审分配给您!'; + $notice='【'.$baseinfo_name.'】挂牌申请的专家评审分配给您,请您评审,请点击: 专家评审'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'user_id'=>$v, + 'apply_id'=>$apply_id, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + } + }else{ + $this->error('请先至少分配1名专家!'); + } + + //专家评分中(专家已分配):15 + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=15; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + if($submitType==2)$sl_data3['apply_admin_id']=0;//初始化受理状态 + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus, + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + if($submitType==2){ + $jump=url('cult4/Cult4/apply_list7',['apply_type'=>input('apply_type')]); + }elseif($submitType==3){ + $jump=url('cult4/Cult4/apply_check8#pro',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999),'apply_type'=>input('apply_type'))); + } + $this->success('专家分配成功!',$jump); + } + } + + /** + * 08.专家分配添加 + */ + public function apply_assign_add2(){ + $this->apply_assign_add(1); + } + /** + * 08.专家分配删除 + */ + public function apply_assign_del2(){ + $this->apply_assign_del(1); + } + /** + * 08.专家分配评分 + */ + public function apply_score() + { + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + $pro_id=input('pro_id'); + + $advice=input('myEditorPro'.$pro_id); + $jump=url('cult4/Cult4/apply_check8#pro',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999),'apply_type'=>input('apply_type'))); + if($advice=='')$this->error('请输入专家评分意见!',$jump); + + $score=input('score'.$pro_id); + if($score<=0)$this->error('请录入评分!',$jump); + + //更新评分表cult4apply + $sl_data['score']=$score; + $sl_data['advice']=$advice; + $sl_data['assign_type']=1;//前台不可见 + $sl_data['update_id']=$user_id; + $sl_data['update_type']=2;//后台 + $sl_data['update_time']=time(); + $where=array('pro_id'=>$pro_id); + Db::name('cult4proassign')->where($where)->update($sl_data); + $this->success('评分成功',$jump);//专家评分确认 + } + /** + * 文化四板文件核验开启/禁止 + */ + public function apply_state($process,$status=''){ + $maps=[1=>[1,19],2=>[2,36],3=>[5,20],4=>[6,21],6=>[12,9],8=>[15,14],9=>[16,4,8,11,13,17,28,34],10=>[25,46,47],11=>[48,29,27],12=>[51,30]]; + $id=input('x'); + if (empty($id))$this->error('用户ID不存在'); + $apply_id=get_cult4ApplyIDFromFileID($id); + $current=isset($maps[$process])?$maps[$process]:[]; + if(count($current)){ + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if(!in_array($status,$current))$status=array_shift($current); + } + //权限检查 + if (check_cult4UserRight($apply_id, session('admin_auth.aid'), $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + $flag=Db::name('cult4upfiles')->where('file_id',$id)->value('flag');//判断当前状态情况 + $state=($flag==1)?0:1; + $flagdata = array('flag'=>$state); + Db::name('cult4upfiles')->where('file_id',$id)->setField($flagdata); + $msg=($flag==1)?'审核未通过':'审核已通过'; + $this->success($msg); + } + /** + * 初审 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function apply_state1(){ + $this->apply_state(1); + } + /** + * 尽职调查 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function apply_state2(){ + $this->apply_state(2); + } + /** + * 复审 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function apply_state3(){ + $this->apply_state(3); + } + /** + * 风控审核 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function apply_state4(){ + $this->apply_state(4); + } + /** + * 缴费确认审核 + */ + public function apply_state6(){ + $this->apply_state(6); + } + /** + * 专家审核确认 + */ + public function apply_state8(){ + $this->apply_state(8); + } + /** + * 联席会审核 + */ + public function apply_state9(){ + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $this->apply_state(9); + } + /** + * 材料核实中(联席会审核通过):25 + * 材料核实中(联席会已复议):46 + * 材料核实中(保存核实意见):47 + */ + public function apply_state10(){ + $this->apply_state(10); + } + /** + * 公告资料提交中(已提交基础信息):48 + * 公告资料审核中(公告资料已提交):29 + * 公告资料提交中(材料核实通过):27 + */ + public function apply_state11(){ + $this->apply_state(11); + } + /** + * 挂牌中(已提交公告资料):30 + * 挂牌中(已提交路演资料):51 + */ + public function apply_state12(){ + $this->apply_state(12); + } + /** + * 调用显示某个状态下文化四板文件类型列表 + * @param int $ftype 查询条件(-1:包括临时和固定 1:固定 2:临时) + * @param int $status 后台查询的操作用户状态 + * @return 对应文件类型列表 + */ + public function uptype_list($process=-1,$status=-1,$ftype=1){ + $maps=[1=>[1,19],2=>[2,36],3=>[5,20],4=>[6,21],6=>[12,9],8=>[15,14],10=>[25,46,47],11=>[48,27,29],12=>[48,30]]; + $apply_id=input('apply_id'); + $current=isset($maps[$process])?$maps[$process]:[]; + if(count($current)){ + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if(!in_array($status,$current))$status=array_shift($current); + } + + $apply_id=input('apply_id'); + $apply_type=input('apply_type','-1'); + $c_type=input('c_type'); + //添加固定内容 + if (!($ftype == 1 and $status ==-1)) { + //权限检查 + if (check_cult4UserRight($apply_id, session('admin_auth.aid'), $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + } + $whereType=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1, + ); + $apply_type=$apply_type?$apply_type:Db::name('cult4baseinfo')->where($whereType)->value('apply_type'); + $c_type=$c_type?$c_type:Db::name('cult4baseinfo')->where($whereType)->value('c_type'); + $p_type=Db::name('cult4baseinfo')->where($whereType)->value('p_type'); + if($status==-1){ + //固定类型input('apply_id')==null + $uptype_list=UptypeModel::getList($apply_type,$c_type,$p_type,0,$ftype,$status,-1,'status,apply_type,ftype_id,forder',-1,''); + $page = $uptype_list->render(); + $this->assign('uptype_list',$uptype_list); + $this->assign('page',$page); + }else{ + //临时类型 + $uptype_list=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,$ftype,$status,-1,'status,apply_type,ftype_id,forder',-1,''); + + $this->assign('uptype_list',$uptype_list); + + $this->assign('apply_id',$apply_id); + $this->assign('status',$status); + } + return $this->fetch(); + } + /** + * 01.初审(初审中(已提交):1) + */ + public function uptype_list1(){ + return $this->uptype_list(1,'',2); + } + /** + * 02.尽调中(初审已通过):2) + */ + public function uptype_list2(){ + return $this->uptype_list(2,'',2); + } + /** + * 03.复审中(已尽调):5) + */ + public function uptype_list3(){ + return $this->uptype_list(3,'',2); + } + /** + * 04.风控审核中(复审已通过):6) + */ + public function uptype_list4(){ + return $this->uptype_list(4,'',2); + } + /** + * 06.缴费确认中(已缴费):12 + */ + public function uptype_list6(){ + return $this->uptype_list(6,'',2); + } + /** + * 08.专家评分中(专家已分配):15 + */ + public function uptype_list8(){ + return $this->uptype_list(8,'',2); + + } + /** + * 09.联席会审核中(已确认专家审核):16 + */ + public function uptype_list9() + { + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $apply_id=input('apply_id'); + $this->assign('apply_id',$apply_id); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + //权限检查 + if(!in_array($status,[4,34,8,11,13,17,16,28])){ + $this->error('无权限',url('admin/Index/index')); + } + if (check_cult4UserRight(input('apply_id'), session('admin_auth.aid'), $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + + $whereType=array('apply_id'=>$apply_id,'new_flag'=>1); + $apply_type=Db::name('cult4baseinfo')->where($whereType)->value('apply_type'); + $c_type=Db::name('cult4baseinfo')->where($whereType)->value('c_type'); + + //临时类型 + $where=array(); + $where['apply_id'] = array('eq', $apply_id); + $where['status'] = array('in','4,34,8,11,13,17,16,28'); + $where['apply_type'] = $apply_type; + if($apply_type==1){ + $where['c_type']=($c_type==1 or $c_type==3)?array('in','0,'.$c_type):0; + } + $where['isopen'] = 1; + $order='ftype_id,status,apply_id,isopen'; + $uptype_list=Db::name('cult4uptype')->where($where)->order($order)->select(); + $this->assign('uptype_list',$uptype_list); + + $this->assign('status',$status); + return $this->fetch(); + } + /** + * 10.材料核实中(联席会审核通过):25 + * 材料核实中(联席会已复议):46 + * 材料核实中(保存核实意见):47 + */ + public function uptype_list10(){ + return $this->uptype_list(10,'',2); + + + } + /** + * 11.公告资料提交中(已提交基础信息):48 + * 公告资料审核中(公告资料已提交):29 + * 公告资料提交中(材料核实通过):27 + */ + public function uptype_list11(){ + return $this->uptype_list(11,'',2); + } + /** + * 12.挂牌中(已提交公告资料):30 + * 挂牌中(已提交路演资料):51 + */ + public function uptype_list12(){ + return $this->uptype_list(12,'',2); + } + + /** + * 文化四板文件类型添加 + */ + public function uptype_add($process=-1,$status=-1){ + + $maps=[1=>[1,19],2=>[2,36],3=>[5,20],4=>[6,21],6=>[12,9,22,39],8=>[15,14,23],9=>[16,4,8,11,13,17,28,34],10=>[25,46,47],11=>[48,27,29],12=>[51,30]]; + $apply_id=input('apply_id'); + $current=isset($maps[$process])?$maps[$process]:[]; + if(count($current)){ + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if(!in_array($status,$current))$status=array_shift($current); + } + if ($process > 0 and $status > 0) { + //权限检查 + if (check_cult4UserRight(input('apply_id'), session('admin_auth.aid'), $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + } + //创建token + creatToken(); + + $apply_id=input('apply_id'); + $this->assign('apply_id',$apply_id); + $this->assign('status',$status); + $where['status'] = array('egt',0); + $statuslist=Db::name('cult4status')->where($where)->select(); + $this->assign('statuslist',$statuslist); + + return $this->fetch(); + } + + /** + * 文化四板文件类型添加:初审 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function uptype_add1(){ + return $this->uptype_add(1); + + } + /** + * 文化四板文件类型添加:尽职调查 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function uptype_add2(){ + return $this->uptype_add(2); + } + /** + * 文化四板文件类型添加:复审 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function uptype_add3(){ + return $this->uptype_add(3); + } + /** + * 文化四板文件类型添加:风控 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function uptype_add4(){ + return $this->uptype_add(4); + } + /** + * 文化四板文件类型添加:缴费确认 + * 缴费中(联席会已复议):22 + * 缴费确认中(联席会已复议):39 + */ + public function uptype_add6(){ + return $this->uptype_add(6); + } + /** + * 文化四板文件类型添加:专家审核确认 + * 专家评分中(联席会已复议):23 + */ + public function uptype_add8(){ + return $this->uptype_add(8); + } + /** + * 文化四板文件类型添加:联席会 + */ + public function uptype_add9(){ + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + return $this->uptype_add(9); + } + /** + * 文化四板文件类型添加:材料核实 + */ + public function uptype_add10(){ + return $this->uptype_add(10); + } + /** + * 文化四板文件类型添加:公告材料核实 + */ + public function uptype_add11(){ + return $this->uptype_add(11); + } + + /** + * 文化四板文件类型添加:挂牌审核 + */ + public function uptype_add12(){ + return $this->uptype_add(12); + } + /** + * 文化四板固定文件类型修改 + */ + public function uptype_edit(){ + if(!request()->isAjax()) { + //创建token + creatToken(); + + $ftype_id = input('ftype_id', 0, 'intval'); + if (!$ftype_id) $this->error('参数错误', url('cult4/Cult4/uptype_list',['apply_type'=>input('apply_type')])); + $uptype = Db::name('cult4uptype')->where('ftype_id', $ftype_id)->find(); + $this->assign('uptype', $uptype); + + $where['status'] = array('egt',0); + $statuslist=Db::name('cult4status')->where($where)->select(); + $this->assign('statuslist',$statuslist); + + $list1=array(); + if($uptype['upload_role_type']==1){ + $map1['member_group_id']=array(array('gt',0),array('neq',2));//>0 and !=2 + $list1=Db::name("member_group")->field(array('member_group_id'=>'id','member_group_name'=>'name'))->where($map1)->select(); + }elseif($uptype['upload_role_type']==2){ + $map2['id']=array('gt',0); + $list1=Db::name("auth_group")->field(array('id'=>'id','title'=>'name'))->where($map2)->select(); + } + $this->assign('list1',$list1); + $list2=array(); + if($uptype['upload_role_type2']==1){ + $map1['member_group_id']=array(array('gt',0),array('neq',2));//>0 and !=2 + $list2=Db::name("member_group")->field(array('member_group_id'=>'id','member_group_name'=>'name'))->where($map1)->select(); + }elseif($uptype['upload_role_type2']==2){ + $map2['id']=array('gt',0); + $list2=Db::name("auth_group")->field(array('id'=>'id','title'=>'name'))->where($map2)->select(); + } + $this->assign('list2',$list2); + return $this->fetch(); + }else{ + $roletype=input('roletype'); + $roleid=input('roletitle'); + $roletype2=input('roletype2'); + $roleid2=input('roletitle2'); + if($roletype<=0 or $roleid<=0) + { + $this->error('请选择资料上传类型及对应的角色!'); + } + if(empty($roletype2))$roletype2=0; + if(empty($roleid2))$roleid2=0; + if(!(($roletype2==0 and $roleid2==0) or ($roletype2>0 and $roleid2>0) or ($roletype2<=0 and $roleid2<=0))) + { + $this->error('请选择资料辅助上传类型及对应的角色!'); + } + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + $this->error("请勿重复提交"); + } + + //固定 + $apply_id = 0; + $apply_type=input('apply_type'); + $gp_level=input('gp_level'); + $c_type=input('c_type'); + $p_type=input('p_type'); + $k_type=input('k_type'); + $mustupload=input('mustupload'); + + //上传模板部分 + $file_id=0; + //支持多个字段单文件 + $file = request()->file('file_one'); + $file_one=''; + + if(!empty($file)){ + $validate = config('upload_validate'); + unset($validate['ext']);//不限制后缀 + //单图 + $info = $file->validate($validate)->rule('uniqid')->move(ROOT_PATH . config('upload_path') . DS . date('Y-m-d')); + + if ($info) { + $file_url = config('upload_path'). '/' . date('Y-m-d') . '/' . $info->getFilename(); + //写入数据库 + $data['apply_id'] = 0;//模板文件未使用该字段 + $data['user_id'] = session('admin_auth.aid'); + $data['user_type'] = 2; + $data['status'] = input('status'); + $data['upload_time'] = time(); + $data['ftype_id'] = 0;//模板文件为0 + $data['ftype'] = 3;//模板类型 + $data['filesize'] = $info->getSize(); + $data['path'] = $file_url; + $data['addorder'] = 0;//固定文件需要更新 + $data['new_flag'] = 1;//固定文件需要更新 + + $file_id = Db::name('cult4upfiles')->insert($data,false,true); + + } else { + $this->error($file->getError());//否则就是上传错误,显示错误原因 + } + }else{ + $file_id = input('ftemp_id'); + $data['file_id'] = $file_id;//模板文件未使用该字段 + $data['status'] = input('status'); + Db::name('cult4upfiles')->where('file_id',$file_id)->update($data); + } + $sl_data=array( + 'ftype_id'=>input('ftype_id'), + 'ftypedescr'=>input('ftypedescr'), + 'ftemp_id' => $file_id, + 'gp_level' => $gp_level, + 'apply_type' => $apply_type, + 'c_type' => $c_type, + 'p_type' => $p_type, + 'k_type' => $k_type, + 'mustupload' => $mustupload, + 'ftype'=>input('ftype'), + 'status'=>input('status'), + 'isopen'=>input('isopen',0), + 'apply_id'=>$apply_id, + 'user_id'=>session('admin_auth.aid'), + 'create_time'=>time(), + 'upload_role_type'=>$roletype, + 'upload_role_id'=>$roleid, + 'upload_role_type2'=>$roletype2, + 'upload_role_id2'=>$roleid2, + 'forder'=>input('forder',0) + ); + $uptype_id=Db::name('cult4uptype')->where('ftype_id',input('ftype_id'))->update($sl_data); + if($uptype_id){ + $this->success('文件类型修改成功',url('cult4/Cult4/uptype_list',['apply_type'=>input('apply_type')])); + }else{ + $this->error('文件类型修改失败'); + } + } + } + /** + * 文化四板文件类型添加操作 + */ + public function uptype_runadd($process=-1,$status=-1){ + $maps=[1=>[1,19],2=>[2,36],3=>[5,20],4=>[6,21],6=>[12,9,22,39],8=>[15,14,23],9=>[16,4,8,11,13,17,28,34],10=>[25,46,47],11=>[48,27,29],12=>[51,30]]; + $apply_id=input('apply_id'); + $current=isset($maps[$process])?$maps[$process]:[]; + if(count($current)){ + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if(!in_array($status,$current))$status=array_shift($current); + } + //添加固定内容 + if (!($process == -1 or $status ==-1)) { + //权限检查 + if (check_cult4UserRight(input('apply_id'), session('admin_auth.aid'), $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + } + + $roletype=input('roletype'); + $roleid=input('roletitle'); + $roletype2=input('roletype2'); + $roleid2=input('roletitle2'); + if($roletype<=0 or $roleid<=0) + { + $this->error('请选择资料上传类型及对应的角色!'); + } + if(empty($roletype2))$roletype2=0; + if(empty($roleid2))$roleid2=0; + if(!(($roletype2==0 and $roleid2==0) or ($roletype2>0 and $roleid2>0) or ($roletype2<=0 and $roleid2<=0))) + { + $this->error('请选择资料辅助上传类型及对应的角色!'); + } + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + //return; + } + + //状态为-1时对应固定文件 + $whereType=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1, + ); + $baseinfo=Db::name('cult4baseinfo')->field('apply_type,c_type,p_type,k_type')->where($whereType)->find(); + $apply_type=$baseinfo['apply_type']; + $c_type=$baseinfo['c_type']; + $p_type=$baseinfo['p_type']; + $k_type=$baseinfo['k_type']; + + $mustupload=1; + if($process==-1){ + $apply_id = 0; + $apply_type=input('apply_type'); + $c_type=input('c_type'); + $p_type=input('p_type'); + $k_type=input('k_type'); + $mustupload=input('mustupload'); + } + + //上传模板部分 + $file_id=0; + //支持多个字段单文件 + $file = request()->file('file_one'); + $file_one=''; + + if(!empty($file)){ + $validate = config('upload_validate'); + unset($validate['ext']);//不限制后缀 + //单图 + $info = $file->validate($validate)->rule('uniqid')->move(ROOT_PATH . config('upload_path') . DS . date('Y-m-d')); + + if ($info) { + $file_url = config('upload_path'). '/' . date('Y-m-d') . '/' . $info->getFilename(); + //写入数据库 + $data['apply_id'] = 0;//模板文件未使用该字段 + $data['user_id'] = session('admin_auth.aid'); + $data['user_type'] = 2; + $data['status'] = $status; + $data['upload_time'] = time(); + $data['ftype_id'] = 0;//模板文件为0 + $data['ftype'] = 3;//模板类型 + $data['filesize'] = $info->getSize(); + $data['path'] = $file_url; + $data['addorder'] = 0;//固定文件需要更新 + $data['new_flag'] = 1;//固定文件需要更新 + + $file_id = Db::name('cult4upfiles')->insert($data,false,true); + + } else { + $this->error($file->getError());//否则就是上传错误,显示错误原因 + } + } + if ($process == -1 or $status ==-1) { + $uptype_id=UptypeModel::add(input('gp_level','0'),$apply_type,$c_type,$p_type,input('ftypedescr'),$file_id,input('ftype'),input('status'),input('isopen',0),0,session('admin_auth.aid'),$roletype,$roleid,$roletype2,$roleid2,$mustupload,$k_type); + if($uptype_id){ + $this->success('文件类型添加成功',url('cult4/Cult4/uptype_list',['apply_type'=>input('apply_type')])); + }else{ + $this->error('文件类型添加失败'); + } + }else{ + $uptype_id=UptypeModel::add(input('gp_level','0'),$apply_type,$c_type,$p_type,input('ftypedescr'),$file_id,input('ftype'),$status,input('isopen',0),$apply_id,session('admin_auth.aid'),$roletype,$roleid,$roletype2,$roleid2,$mustupload,$k_type,input('forder',0)); + if($uptype_id){ + $sl_data2['apply_id']=input('apply_id'); + $sl_data2['status']=$status; + $sl_data2['apply_type']=input('apply_type'); + $this->success('文件类型添加成功',url('cult4/Cult4/uptype_list'.$process,$sl_data2)); + }else{ + $this->error('文件类型添加失败'); + } + } + } + /** + * 文化四板文件类型添加操作:初审 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function uptype_runadd1(){ + $this->uptype_runadd(1); + } + + /** + * 文化四板文件类型添加操作:尽职调查 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function uptype_runadd2(){ + $this->uptype_runadd(2); + } + /** + * 文化四板文件类型添加操作:复审 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function uptype_runadd3(){ + $this->uptype_runadd(3); + } + /** + * 文化四板文件类型添加操作:风控 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function uptype_runadd4(){ + $this->uptype_runadd(4); + } + /** + * 文化四板文件类型添加操作:缴费确认 + * 缴费中(联席会已复议):22 + * 缴费确认中(联席会已复议):39 + */ + public function uptype_runadd6(){ + $this->uptype_runadd(6); + } + /** + * 文化四板文件类型添加操作:专家审核确认 + * 专家评分中(联席会已复议):23 + */ + public function uptype_runadd8(){ + $this->uptype_runadd(8); + } + /** + * 文化四板文件类型添加操作:联席会 + */ + public function uptype_runadd9(){ + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $this->uptype_runadd(9); + } + /** + * 文化四板文件类型添加操作:材料审核 + */ + public function uptype_runadd10(){ + $this->uptype_runadd(10); + } + /** + * 文化四板文件类型添加操作:公告材料审核 + */ + public function uptype_runadd11(){ + $this->uptype_runadd(11); + } + + /** + * 文化四板文件类型添加操作:挂牌审核 + */ + public function uptype_runadd12(){ + $this->uptype_runadd(12); + } + /** + * 文化四板文件类型列表开启/禁止 + */ + public function uptype_state($process=-1,$status=-1){ + + $id=input('x'); + //取得apply_id + $apply_id=get_cult4ApplyIDFromTempID($id); + $maps=[1=>[1,19],2=>[2,36],3=>[5,20],4=>[6,21],6=>[12,39],8=>[15,14,23],9=>[16,4,8,11,13,17,28,34],10=>[25,46,47],11=>[48,27,29],12=>[51,30]]; + $current=isset($maps[$process])?$maps[$process]:[]; + if(count($current)){ + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if(!in_array($status,$current))$status=array_shift($current); + } + if (empty($id)){ + //如果不是固定添加类型 + $jump=!($process == -1 or $status ==-1)?url('cult4/Cult4/uptype_list'.$process,['apply_type'=>input('apply_type')]):url('cult4/Cult4/uptype_list',['apply_type'=>input('apply_type')]); + $this->error('文件ID不存在',$jump); + } + if($apply_id==-1){ + $this->error('无权限',url('admin/Index/index')); + } + + //如果不是固定添加类型 + if (!($process == -1 or $status ==-1 or $apply_id==0)) { + //权限检查 + if (check_cult4UserRight($apply_id, session('admin_auth.aid'), $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + } + + $isopen=Db::name('cult4uptype')->where('ftype_id',$id)->value('isopen');//判断当前状态情况 + $open=($isopen==1)?0:1; + $statedata = array('isopen'=>$open); + Db::name('cult4uptype')->where('ftype_id',$id)->setField($statedata); + $msg=($isopen==1)?'状态禁止':'状态开启'; + $this->success($msg); + } + /** + * 文化四板文件类型列表开启/禁止 初审 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function uptype_state1(){ + $this->uptype_state(1); + } + /** + * 文化四板文件类型列表开启/禁止 尽职调查 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function uptype_state2(){ + $this->uptype_state(2); + } + + /** + * 文化四板文件类型列表开启/禁止 复审 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function uptype_state3(){ + $this->uptype_state(3); + } + /** + * 文化四板文件类型列表开启/禁止 风控 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function uptype_state4(){ + $this->uptype_state(4); + } + + /** + * 文化四板文件类型列表开启/禁止 缴费确认 + * 缴费中(联席会已复议):22 + * 缴费确认中(联席会已复议):39 + */ + public function uptype_state6(){ + $this->uptype_state(6); + } + + /** + * 文化四板文件类型列表开启/禁止 专家审核确认 + * 专家评分中(联席会已复议):23 + */ + public function uptype_state8(){ + $this->uptype_state(8); + } + /** + * 文化四板文件类型列表开启/禁止 联席会 + */ + public function uptype_state9(){ + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $this->uptype_state(9); + } + + /** + * 文化四板文件类型列表开启/禁止 材料审核 + */ + public function uptype_state10(){ + $this->uptype_state(10); + } + /** + * 文化四板文件类型列表开启/禁止 公告材料审核 + */ + public function uptype_state11(){ + $this->uptype_state(11); + } + + /** + * 文化四板文件类型列表开启/禁止 挂牌审核 + */ + public function uptype_state12(){ + $this->uptype_state(12); + } + + /* + * 后台上传操作 + */ + public function apply_runupload($process,$status=''){ + $apply_id=input('apply_id'); + $maps=[1=>[1,19],2=>[2,36],3=>[5,20],4=>[6,21],6=>[12,9,22,39],8=>[15,14,23],9=>[16,4,8,11,13,17,28,34],10=>[25,46,47],11=>[48,27,29],12=>[51,30]]; + $current=isset($maps[$process])?$maps[$process]:[]; + if(count($current)){ + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if(!in_array($status,$current))$status=array_shift($current); + } + $user_id=session('admin_auth.aid'); + + //当前后台用户对应的组 + $group=Db::name('auth_group_access')->where('uid',$user_id)->find(); + $groupid=0; + if(!(empty($group))){ + $groupid=$group['group_id']; + } + + //上传资料列表提交 + //取得apply_id对应的用户对应状态下的所有固定文件类型最新记录 + $whereType=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1, + ); + $baseinfo=Db::name('cult4baseinfo')->field('apply_type,c_type,p_type,k_type')->where($whereType)->find(); + $apply_type=$baseinfo['apply_type']; + $c_type=$baseinfo['c_type']; + $p_type=$baseinfo['p_type']; + $k_type=$baseinfo['k_type']; + + if($process>0)$apply_type=-1; + $apply_uptypelist_checkdd=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,$status,1,'ftype_id,status,apply_id,isopen',-1,$k_type); + foreach($apply_uptypelist_checkdd as $k=>$v){ + //如果后台有上传权限($groupid==1超级管理员可以上传) + if($groupid==1 or (($v['upload_role_type']==2) and ($v['upload_role_id']==$groupid) ) or (($v['upload_role_type2']==2) and ($v['upload_role_id2']==$groupid)) ){ + //找到当前最大addorder + $addorder=0; + $where4=array( + 'apply_id'=>$apply_id, + 'ftype_id'=>$v['ftype_id'], + 'ftype'=>1,//固定 + 'flag'=>0,//未审核 + ); + $check=Db::name('cult4upfiles')->where($where4)->order('addorder desc') ->find (); + if(!empty($check)){ + $addorder = $check['addorder'] + 1; + } + //上传资料部分 + $file_id=0; + //支持多个字段单文件 + $file = request()->file('file'.$v['ftype_id']); + $file_one=''; + + if(!empty($file)){ + //更新所有历史记录new_flag为0 + Db::name('cult4upfiles')->where($where4)->update(['new_flag'=>0]); + + $validate = config('upload_validate'); + unset($validate['ext']);//不限制后缀 + //单图 + $info = $file->validate($validate)->rule('uniqid')->move(ROOT_PATH . config('upload_path') . DS . date('Y-m-d')); + + if ($info) { + $file_url = config('upload_path'). '/' . date('Y-m-d') . '/' . $info->getFilename(); + //写入数据库 + $data['apply_id'] = $apply_id; + $data['user_id'] = $user_id; + $data['user_type'] = 2;//后台 + $data['status'] = $status; + $data['upload_time'] = time(); + $data['ftype_id'] = $v['ftype_id']; + $data['ftype'] = 1;//固定 + $data['filesize'] = $info->getSize(); + $data['path'] = $file_url; + $data['addorder'] = $addorder; + $data['new_flag'] = 1;//最新 + $data['flag'] = 1;//后台审核完上传,无需再审 + + $file_id = Db::name('cult4upfiles')->insert($data,false,true); + } else { + $this->error($file->getError());//否则就是上传错误,显示错误原因 + } + } + + } + } + + //取得apply_id对应的用户对应状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckdd=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,$status,1,'ftype_id,status,apply_id,isopen',-1,$k_type); + foreach($apply_uptypelist_tempcheckdd as $k=>$v){ + //如果后台有上传权限 + if($groupid==1 or (($v['upload_role_type']==2) and ($v['upload_role_id']==$groupid) ) or (($v['upload_role_type2']==2) and ($v['upload_role_id2']==$groupid)) ){ + //找到当前最大addorder + $addorder=0; + $where5=array( + 'apply_id'=>$apply_id, + 'ftype_id'=>$v['ftype_id'], + 'ftype'=>2,//临时 + 'flag'=>0,//未审核 + ); + $check=Db::name('cult4upfiles')->where($where5)->order('addorder desc') ->find (); + if(!empty($check)){ + $addorder = $check['addorder'] + 1; + } + //上传资料部分 + $file_id=0; + //支持多个字段单文件 + $file = request()->file('file'.$v['ftype_id']); + $file_one=''; + + if(!empty($file)){ + //更新所有历史记录new_flag为0 + Db::name('cult4upfiles')->where($where5)->update(['new_flag'=>0]); + + $validate = config('upload_validate'); + unset($validate['ext']);//不限制后缀 + //单图 + $info = $file->validate($validate)->rule('uniqid')->move(ROOT_PATH . config('upload_path') . DS . date('Y-m-d')); + + if ($info) { + $file_url = config('upload_path'). '/' . date('Y-m-d') . '/' . $info->getFilename(); + //写入数据库 + $data['apply_id'] = $apply_id; + $data['user_id'] = $user_id; + $data['user_type'] = 2;//后台 + $data['status'] = $status; + $data['upload_time'] = time(); + $data['ftype_id'] = $v['ftype_id']; + $data['ftype'] = 2;//临时 + $data['filesize'] = $info->getSize(); + $data['path'] = $file_url; + $data['addorder'] = $addorder; + $data['new_flag'] = 1;//最新 + $data['flag'] = 1;//后台审核完上传,无需再审 + + $file_id = Db::name('cult4upfiles')->insert($data,false,true); + + } else { + $this->error($file->getError());//否则就是上传错误,显示错误原因 + } + } + + } + } + $this->success('上传成功'); + } + /* + * 初审 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function apply_runupload1(){ + $this->apply_runupload(1); + } + + /* + * 尽调 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function apply_runupload2(){ + $this->apply_runupload(2); + } + /* + * 复审 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function apply_runupload3(){ + $this->apply_runupload(3); + } + /* + * 风控 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function apply_runupload4(){ + $this->apply_runupload(4); + } + /* + * 缴费确认中 + * 缴费确认中(联席会已复议):39 + */ + public function apply_runupload6(){ + $this->apply_runupload(6); + } + /* + * 专家审核确认 + * 专家评分中(联席会已复议):23 + */ + public function apply_runupload8(){ + $this->apply_runupload(8); + } + /* + * 联席会 + */ + public function apply_runupload9() + { + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $this->apply_runupload(9); + } + /* + * 材料核实 + */ + public function apply_runupload10(){ + $this->apply_runupload(10); + } + /* + * 材料核实 + */ + public function apply_runupload11(){ + $this->apply_runupload(11); + } + /* + * 挂牌 + */ + public function apply_runupload12(){ + $this->apply_runupload(12); + } + /* + * 后台上传操作 + */ + public function apply_runuploadlogo(){ + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + //权限检查 + if ((check_cult4UserRight($apply_id, $user_id, 27) == 0) && (check_cult4UserRight($apply_id, $user_id, 48) == 0) && (check_cult4UserRight($apply_id, $user_id, 29) == 0)) { + $this->error('无权限',url('home/Listn/ts_insert_gy')); + } + + $file = request()->file('filelogo'); + if(!empty($file)) { + $validate = config('upload_validate'); + unset($validate['ext']);//不限制后缀 + //单图 + $info = $file->validate($validate)->rule('uniqid')->move(ROOT_PATH . config('upload_path') . DS . date('Y-m-d')); + + if ($info) { + $file_url = config('upload_path') . '/' . date('Y-m-d') . '/' . $info->getFilename(); + } + }else { + $this->error('Logo上传失败',url('home/Listn/ts_insert_gy#nm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + $data = ['logo' => $file_url]; + $where = [ + 'apply_id' => $apply_id, + 'new_flag' => 1, + ]; + Db::name('cult4baseinfo')->where($where)->update($data); + + $this->success('上传成功',url('home/Listn/ts_insert_logo#nm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + public function apply_runbasecode(){ + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + //权限检查 + if ((check_cult4UserRight($apply_id, $user_id, 27) == 0) && (check_cult4UserRight($apply_id, $user_id, 48) == 0) && (check_cult4UserRight($apply_id, $user_id, 29) == 0)) { + $this->error('无权限',url('home/Listn/ts_insert_hm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + $status=48;//公告资料提交中(已提交基础信息):48 + Db::startTrans(); + $jump=url('cult4/Cult4/apply_check11#nm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999),'apply_type'=>input('apply_type'))); + try{ + $data = ['pay_img' => ""]; + $where = ['apply_id' => $apply_id]; + Db::name('cult4apply')->where($where)->update($data); + //cult4baseinfo修改记录 + $data = [ + 'shortname' => input('shortname'), + 'codetype' => input('codetype'), + 'code_id' => input('saleno',0), + ]; + $where = ['apply_id' => $apply_id,'new_flag' => 1]; + Db::name('cult4baseinfo')->where($where)->update($data); + + //修改主表 + $data = [ + 'update_time' => time(), + 'update_user_id' => session('hid'), + 'update_user_type' => 1, + 'seq' => 0, + 'status' => $status + ]; + $where2 = ['apply_id' => $apply_id]; + Db::name('cult4apply')->where($where2)->update($data); + + if(input('codetype')==1){ + $sl_data = ['salestatus' => 1]; + $where3 = ['id' => input('saleno',0)]; + Db::name('cult4number')->where($where3)->update($sl_data); + } + + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('更新失败',$jump); + } + $this->success('更新成功',$jump); + } + + /* + * 后台文件审核历史查看 + */ + public function apply_uphistory($process,$status=''){ + $maps=[1=>[1,19],2=>[2,36],3=>[5,20],4=>[6,21],6=>[12,9,22,39],8=>[15,14,23],9=>[16,4,8,11,13,17,28,34],10=>[25,46,47],11=>[48,27,29],12=>[51,30],99=>[31]]; + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + $current=isset($maps[$process])?$maps[$process]:[]; + if(count($current)){ + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if(!in_array($status,$current))$status=array_shift($current); + } + //if($process==99)$user_id=0; + if($process!=99){ + //权限检查 + if (check_cult4UserRight($apply_id, $user_id, $status) == 0) { + $this->error('无权限'.$process,url('admin/Index/index')); + } + } + + $ftype=-1;//不限制ftype类型 + $ftype_id=input('ftype_id'); + $new_flag=0;//历史记录 + $this->assign('apply_id',$apply_id); + $this->assign('process',$process); + $searchstatus = -1; + $files_list=UpfilesModel::getList($apply_id,$ftype,$searchstatus,$ftype_id,$new_flag); + + $this->assign('files_list',$files_list); + return $this->fetch(); + } + /* + * 初审 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function apply_uphistory1(){ + return $this->apply_uphistory(1); + } + + /* + * 尽调 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function apply_uphistory2(){ + return $this->apply_uphistory(2); + } + /* + * 复审 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function apply_uphistory3(){ + return $this->apply_uphistory(3); + } + + /* + * 风控 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function apply_uphistory4(){ + return $this->apply_uphistory(4); + } + /* + * 缴费确认 + * 缴费确认中(联席会已复议):39 + */ + public function apply_uphistory6(){ + return $this->apply_uphistory(6); + } + + /* + * 专家审核确认 + * 专家评分中(联席会已复议):23 + */ + public function apply_uphistory8(){ + return $this->apply_uphistory(8); + } + + /* + * 联席会 + */ + public function apply_uphistory9() + { + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + return $this->apply_uphistory(9); + } + /* + * 材料核实 + */ + + public function apply_uphistory10(){ + return $this->apply_uphistory(10); + } + /* + * 公告材料核实 + */ + public function apply_uphistory11(){ + return $this->apply_uphistory(11); + } + + /* + * 挂牌审核 + */ + public function apply_uphistory12(){ + return $this->apply_uphistory(12); + } + /* + * 挂牌完成 + */ + public function apply_uphistory_final(){ + return $this->apply_uphistory(99); + } + + /** + * 文化四板缴费 + */ + public function apply_fee(){ + $id=input('x'); + if (empty($id)){ + $this->error('用户ID不存在', url('cult4/Cult4/apply_list5',['apply_type'=>input('apply_type')])); + } + + $apply_id=$id; + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status!=9 and $status!=12) + $this->error('非缴费状态',url('admin/Index/index')); + + $user_id=session('admin_auth.aid'); + + //更新缴费表为已缴费 + $where=array('apply_id'=>$apply_id,'new_flag'=>1); + $find=Db::name('cult4fee')->field('fee_flag')->where($where)->order('fee_id desc')->find(); + $flag=0; + if($find){ + $flag=$find['fee_flag']; + } + if($flag==1){ + //权限检查 (未被缴费确认用户受理的数据可以取消缴费) + if ( (check_cult4UserRight($apply_id, 0, $status) == 0) and (check_cult4UserRight($apply_id, $user_id, $status) == 0)) { + $this->error('无权限',url('admin/Index/index')); + } + + $this->updateFeeOrder(0); + + //更新主表状态 + $sl_data2=[]; + $sl_data2['apply_id']=$apply_id; + $sl_data2['status']=9; + $sl_data2['update_user_id']=$user_id; + $sl_data2['update_user_type']=2;//后台 + $sl_data2['update_time']=time(); + $sl_data2['apply_admin_id']=0; + $where2=array('apply_id'=>$apply_id,'status'=>12); + Db::name('cult4apply')->where($where2)->update($sl_data2); + + $this->success('当前未缴费'); + }else{ + //权限检查 + if (check_cult4UserRight($apply_id, $user_id, $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + + $this->updateFeeOrder(1); + //更新主表状态 + $sl_data2=[]; + $sl_data2['apply_id']=$apply_id; + $sl_data2['status']=12; + $sl_data2['update_user_id']=$user_id; + $sl_data2['update_user_type']=2;//后台 + $sl_data2['update_time']=time(); + $sl_data2['apply_admin_id']=0; + $where2=array('apply_id'=>$apply_id,'status'=>9); + Db::name('cult4apply')->where($where2)->update($sl_data2); + + $this->success('当前已缴费'); + } + } + + /* + * 初审操作 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function apply_runcheck1(){ + //本处理对应状态 + $chkStatusArray = array(1, 19); + $apply_id=input('apply_id'); + $apply_type=input('apply_type'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + $stype=input('submitType'); + //尽调中(初审已通过):2 挂牌修改中(初审未通过):3 上报中(初审未通过):4 补交材料中(初审未通过):32 + $maps=[1=>2,2=>3,3=>4,4=>32]; + $status=isset($maps[$stype])?$maps[$stype]:''; + $passStatus=2; + $reuploadStatus=32; + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + $msg=$this->checkFile($apply_id, $status, $baseinfo, $reuploadStatus, $passStatus,1,1,'请输入初审意见!','check'); + if(!empty($msg))$this->error($msg); + + Db::startTrans(); + try{ + $this->updateOrder('cult4check'); + $this->updateRun($status, $chkStatus,$reuploadStatus); + + $applytype=$baseinfo['apply_type']; + $baseinfo_name=($applytype==1)?$baseinfo['c_name']:(($applytype==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + $username=get_cult4UserName($apply['user_id'],1); + $advice=input('advice',"未填写"); + $advi=input('advice'); + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==3 || $status==32){ + $sys=Options::get_options('begincheck_options',$this->lang); + $defaultFileLink=$advice.'
请点击: 补充资料'; + $defaultEditLink=$advice.'
请点击: 修改资料'; + $defaultFullLink=$advice.'
请点击: 修改资料
请点击: 补充资料'; + $defaultNotice='您(或您关联)的【'.$baseinfo_name.'】挂牌申请初审不通过,需要您重新修改信息或上传资料后再提交。'.$defaultFullLink; + $sys['content_tpl']=isset($sys['content_tpl'])?$sys['content_tpl']:$defaultNotice; + $notice=$sys['content_tpl']; + $notice=str_replace('#COMNAME#',$username,$notice); + $notice=str_replace('#APPLYNAME#',$baseinfo_name,$notice); + $notice=str_replace('#DATE#',date('Y年m月d日', time()),$notice); + + if($status==3){ + //审核不通过,回到修改中,由前台重写修改提交 + $notice_title='您(或您关联)的【'.$baseinfo_name.'】挂牌申请初审不通过,请修改资料!'; + $notice=str_replace('#APPLYCONTENTS#',$defaultEditLink,$notice); + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==32){ + if(input('submitType')==9) { + $notice_title='您(或您关联)的【'.$baseinfo_name.'】挂牌申请初审不通过,请修改及补充资料!'; + $notice=str_replace('#APPLYCONTENTS#',$defaultFullLink,$notice); + }else{ + $notice_title='您(或您关联)的【'.$baseinfo_name.'】挂牌申请初审不通过,请补充资料!'; + $notice=str_replace('#APPLYCONTENTS#',$defaultFileLink,$notice); + } + $this->dealUnUploadFiles($baseinfo_name,$baseinfo,$apply, $status,$apply_id,$status,1,'',$notice_title,$notice); + + } + } + //推送给推荐尽调 + if($status==2){ + //推荐 + $to_uid=$baseinfo['member_recmd']; + /* + if($to_uid){ + $notice_title='【'.$baseinfo_name.'】挂牌申请需要您做尽职调查!'; + $notice='您关联的【'.$baseinfo_name.'】申请需要您做尽职调查。
请点击: 尽职调查'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + } + */ + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('初审失败'); + } + $this->success('初审成功',url('cult4/Cult4/apply_list1',['apply_type'=>$apply_type])); + } + } + /* + * 尽职调查操作 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function apply_runcheck2(){ + //本处理对应状态 + $chkStatusArray = array(2, 36); + $apply_id=input('apply_id'); + $apply_type=input('apply_type'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + $stype=input('submitType'); + //复审中(已尽调):5 挂牌修改中(尽调未通过):33 上报中(尽调未通过):34 补交材料中(尽调未通过):35 + $maps=[1=>5,2=>33,3=>34,4=>35]; + $status=isset($maps[$stype])?$maps[$stype]:''; + $passStatus=5; + $reuploadStatus=35; + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + $msg=$this->checkFile($apply_id, $status, $baseinfo, $reuploadStatus, $passStatus,2,'','请输入尽调意见!','checkdd'); + if(!empty($msg))$this->error($msg); + + Db::startTrans(); + + try{ + $this->updateOrder('cult4checkdd'); + + $this->updateRun($status, $chkStatus,$reuploadStatus); + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==33 || $status==35){ + + $applytype=$baseinfo['apply_type']; + $baseinfo_name=($applytype==1)?$baseinfo['c_name']:(($applytype==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + if($status==33){ + //审核不通过,回到修改中,由前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请尽调不通过!'; + $notice='您的【'.$baseinfo_name.'】申请尽调不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==35){ + $this->dealUnUploadFiles($baseinfo_name,$baseinfo,$apply,$apply_id, $status,2); + //需要上传的文件 + } + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('尽调失败'); + } + $this->success('尽调成功',url('cult4/Cult4/apply_list2',['apply_type'=>$apply_type])); + } + } + /* + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function apply_runcheck3(){ + //本处理对应状态 + $chkStatusArray = array(5, 20); + $apply_id=input('apply_id'); + $apply_type=input('apply_type'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + $stype=input('submitType'); + //风控审核中(复审已通过):6 挂牌修改中(复审未通过):7 上报中(复审未通过):8 补交材料中(复审未通过):37 + $maps=[1=>6,2=>7,3=>8,4=>37]; + $status=isset($maps[$stype])?$maps[$stype]:''; + + $passStatus=6; + $reuploadStatus=37; + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + $msg=$this->checkFile($apply_id, $status, $baseinfo, $reuploadStatus, $passStatus,3,'','请输入复审意见!','checkreview'); + if(!empty($msg))$this->error($msg); + + Db::startTrans(); + + try{ + $this->updateOrder('cult4checkreview'); + $this->updateRun($status, $chkStatus,$reuploadStatus); + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==7 || $status==37){ + $applytype=$baseinfo['apply_type']; + $baseinfo_name=($applytype==1)?$baseinfo['c_name']:(($applytype==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + if($status==7){ + //审核不通过,回到修改中,由前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请复审不通过!'; + $notice='您的【'.$baseinfo_name.'】申请复审不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==37){ + //需要上传的文件 + $this->dealUnUploadFiles($baseinfo_name,$baseinfo,$apply,$apply_id, $status,3); + } + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('复审失败'); + } + $this->success('复审成功',url('cult4/Cult4/apply_list3',['apply_type'=>$apply_type])); + } + } + /* + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function apply_runcheck4(){ + //本处理对应状态 + $chkStatusArray = array(6, 21); + $apply_id=input('apply_id'); + $apply_type=input('apply_type'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + $stype=input('submitType'); + //缴费中(风控审核通过):9 挂牌修改中(风控审核未通过):10 上报中(风控审核未通过):11 补交材料中(风控审核未通过):38 + $maps=[1=>9,2=>10,3=>11,4=>38]; + $status=isset($maps[$stype])?$maps[$stype]:''; + + $passStatus=9; + $reuploadStatus=38; + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + + $msg=$this->checkFile($apply_id, $status, $baseinfo, $reuploadStatus, $passStatus,4,1,'请输入风控中心审核意见!','checkrisk'); + if(!empty($msg))$this->error($msg); + Db::startTrans(); + + try{ + $this->updateOrder('cult4checkrisk'); + $this->updateRun($status, $chkStatus,$reuploadStatus); + $advi= input('advice'); + /** + * 增加通知推送,by rainfer + */ + $applytype=$baseinfo['apply_type']; + $baseinfo_name=($applytype==1)?$baseinfo['c_name']:(($applytype==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + //审核不通过时,推送通知 + if($status==10 || $status==38){ + if($status==10){ + //审核不通过,回到修改中,由前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请风控审核不通过!'; + $notice='您的【'.$baseinfo_name.'】申请风控审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料
反驳意见:'.$advi.''; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==38){ + //需要上传的文件 + $this->dealUnUploadFiles($baseinfo_name,$baseinfo,$apply,$apply_id, $status,4); + + } + }elseif($status==8){ + //风控审核通过则发送挂牌缴费通知 + $username=get_cult4UserName($apply['user_id'],1); + $notice_title = '【' . $baseinfo_name . '】挂牌缴费通知书!'; + $contents=Options::get_options('feecheck_options',$this->lang); + $contents['content_tpl']=isset($contents['content_tpl'])?$contents['content_tpl']:''; + $notice=$contents['content_tpl']; + if($baseinfo["gplevel"]==6){//养成板 + $notice=str_replace('伍万圆整',"伍万圆整",$notice); + }elseif($baseinfo["gplevel"]==5){//天使板 + $notice=str_replace('伍万圆整',"壹万圆整",$notice); + } + $notice=str_replace('#COMNAME#',$username,$notice); + $notice=str_replace('#DATE#',date('Y年m月d日', time()),$notice); + $sl_data = [ + 'notice_title' => $notice_title, + 'notice' => $notice, + 'apply_id' => $apply_id, + 'user_id' => $apply['user_id'], + 'create_id' => session('admin_auth.aid'), + 'create_type' => 1, + 'create_time' => time() + ]; + Db::name('cult4notice')->insert($sl_data); + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('风控中心审核失败'); + } + + $this->success('风控中心审核成功',url('cult4/Cult4/apply_list4',['apply_type'=>$apply_type])); + } + } + /* + * 缴费中(风控审核通过):9 + * 缴费中(联席会已复议):22 + * 缴费确认中(已缴费):12 + * 缴费确认中(联席会已复议):39 + */ + public function apply_runcheck6(){ + //本处理对应状态 + $chkStatusArray = array(9, 12, 22, 39); + $apply_id=input('apply_id'); + $apply_type=input('apply_type'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + $stype=input('submitType'); + //专家分配中(缴费状态已确认):14 挂牌修改中(缴费确认未通过):40 上报中(未缴费未通过):13 补交材料中(缴费确认未通过):41 + $maps=[1=>14,2=>40,3=>13,4=>41]; + $status=isset($maps[$stype])?$maps[$stype]:''; + $passStatus=14; + $reuploadStatus=41; + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + $fee=Db::name('cult4fee')->where(['fee_flag'=>1,'apply_id'=>$apply_id,'new_flag'=>1])->count(); + if(!$fee){ + $this->error("请先确认缴费"); + } + //固定文件审核通过并且所有模板文件与文件数量对应 + $msg=$this->checkFile($apply_id, $status, $baseinfo, $reuploadStatus, $passStatus,6,'','请输入缴费确认审核意见!','checkfee'); + if(!empty($msg))$this->error($msg); + + Db::startTrans(); + + try{ + $this->updateOrder('cult4checkfee'); + $curstatus=($status==40)?9:$status; + $this->updateRun($curstatus, $chkStatus,$reuploadStatus); + if($status==30){ + $this->updateFeeOrder(1,'apply_id'); + } + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==8 || $status==41){ + $applytype=$baseinfo['apply_type']; + $baseinfo_name=($applytype==1)?$baseinfo['c_name']:(($applytype==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + if($status==8){ + //审核不通过,回到修改中,由前台重写修改提交 + //风控审核通过则发送挂牌缴费通知 + $username=get_cult4UserName($apply['user_id'],1); + $notice_title = '【' . $baseinfo_name . '】挂牌缴费通知书!'; + $contents=Options::get_options('feecheck_options',$this->lang); + $contents['content_tpl']=isset($contents['content_tpl'])?$contents['content_tpl']:''; + $notice=$contents['content_tpl']; + $notice=str_replace('#COMNAME#',$username,$notice); + $notice=str_replace('#DATE#',date('Y年m月d日', time()),$notice); + $sl_data = [ + 'notice_title' => $notice_title, + 'notice' => $notice, + 'apply_id' => $apply_id, + 'user_id' => $apply['user_id'], + 'create_id' => session('admin_auth.aid'), + 'create_type' => 1, + 'create_time' => time() + ]; + Db::name('cult4notice')->insert($sl_data); + $jf_data['c_proof_of_payment_url']=""; + Db::name('cult4apply')->where('apply_id',$apply_id)->update($jf_data); + + }elseif($status==41){ + $advi= input('advice'); + //需要上传的文件 + $this->dealUnUploadFiles($baseinfo_name,$baseinfo,$apply,$apply_id, $status,6,$advi); + + } + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('缴费确认审核失败'); + } + $this->success('缴费确认审核成功',url('cult4/Cult4/apply_list6',['apply_type'=>$apply_type])); + } + } + /* + * 专家评分中(专家已分配):15 + * 专家评分中(联席会已复议):23 + */ + public function apply_runcheck8(){ + //本处理对应状态 + $chkStatusArray = array(15, 23); + $apply_id=input('apply_id'); + $apply_type=input('apply_type'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //是否已分配专家 + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==14){ + $this->error('请先分配专家!'); + } + + //是否已提交了专家评分 + $whereCnt['apply_id']=array('eq', $apply_id); + $whereCnt['del_flag']=array('eq', 0); + $whereCnt['score']=array('eq', 0); + $assignCnt = Db()->name('cult4proassign')->where($whereCnt)->count(); + if($assignCnt>0){ + $this->error('请代替专家进行评分及录入审核意见!'); + } + + //下面相关业务代码 + $stype=input('submitType'); + //联席会审核中(已确认专家审核):16 挂牌修改中(确认专家审核未通过):18 上报中(专家审核未通过):17 补交材料中(确认专家审核未通过):42 + $maps=[1=>16,2=>18,3=>17,4=>42]; + $status=isset($maps[$stype])?$maps[$stype]:''; + $passStatus=16; + $reuploadStatus=42; + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + $msg=$this->checkFile($apply_id, $status, $baseinfo, $reuploadStatus, $passStatus,8,'','请输入专家审核意见!','checkpro'); + if(!empty($msg))$this->error($msg); + + Db::startTrans(); + + try{ + $this->updateOrder('cult4checkpro'); + + $this->updateRun($status, $chkStatus,$reuploadStatus); + + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==18 || $status==42){ + $applytype=$baseinfo['apply_type']; + $baseinfo_name=($applytype==1)?$baseinfo['c_name']:(($applytype==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + if($status==18){ + //审核不通过,回到修改中,由前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请专家审核不通过!'; + $notice='您的【'.$baseinfo_name.'】申请专家审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==42){ + //需要上传的文件 + $this->dealUnUploadFiles($baseinfo_name,$baseinfo,$apply,$apply_id, $status,8); + + } + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('专家审核确认失败'); + } + $this->success('专家审核确认成功',url('cult4/Cult4/apply_list8',['apply_type'=>$apply_type])); + } + } + /* + * 联席会审核中(已确认专家审核):16 + */ + public function apply_runcheck9(){ + //本处理对应状态 + $chkStatusArray = array(16, 4, 34, 8, 11, 13, 17, 28); + $apply_id=input('apply_id'); + $apply_type=input('apply_type'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + $stype=input('submitType'); + //材料核实中(联席会审核通过):25 //挂牌修改中(联席会审核未通过):26 //申请失败(已驳回):24 补交材料中(联席会审核未通过):43 + //上报中(初审未通过):4-初审中(联席会已复议):19 上报中(尽调未通过):34-尽调中(联席会已复议):36 上报中(复审未通过):8-复审中(联席会已复议):20 上报中(风控审核未通过):11-风控审核中(联席会已复议):21 上报中(未缴费未通过):13-缴费中(联席会已复议):22 上报中(专家审核未通过):17-专家评分中(联席会已复议):23 上报中(材料核实未通过):28-材料核实中(联席会已复议):46 + $maps=[1=>25,2=>26,3=>24,4=>43,5=>[4=>19,34=>36,8=>20,11=>21,13=>22,17=>23,28=>46]]; + + $status=isset($maps[$stype])?$maps[$stype]:''; + if($stype==5)$status=isset($maps[$stype][$curStatus])?$maps[$stype][$curStatus]:''; + $passStatus=25; + $reuploadStatus=43; + + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + $msg=$this->checkFile($apply_id, $status, $baseinfo, $reuploadStatus, $passStatus,9,'','请输入联席会审核意见!','checkjc'); + if(!empty($msg))$this->error($msg); + + Db::startTrans(); + + try{ + $this->updateOrder('cult4checkjc'); + $this->updateRun($status, $chkStatus,$reuploadStatus); + + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==26 || $status==43){ + + $applytype=$baseinfo['apply_type']; + $baseinfo_name=($applytype==1)?$baseinfo['c_name']:(($applytype==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + if($status==26){ + //审核不通过,回到修改中,由前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请联席会审核不通过!'; + $notice='您的【'.$baseinfo_name.'】申请联席会审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==43){ + //需要上传的文件 + $this->dealUnUploadFiles($baseinfo_name,$baseinfo,$apply,$apply_id, $status,9); + + } + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('联席会审核确认失败'); + } + $this->success('联席会审核确认成功',url('cult4/Cult4/apply_list9',['apply_type'=>$apply_type])); + } + } + + /* + * 材料核实中(联席会审核通过):25 + * 材料核实中(联席会已复议):46 + * 材料核实中(保存核实意见):47 + */ + public function apply_runcheck10(){ + $apply_type=input('apply_type'); + if(input('submitType')==6){ + $this->success('执行返回操作',url('cult4/Cult4/apply_list10',['apply_type'=>$apply_type])); + } + + //本处理对应状态 + $chkStatusArray = array(25, 46, 47); + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + $stype=input('submitType'); + $maps=[1=>27,2=>44,3=>28,4=>45,5=>47];////公告资料提交中(材料核实通过):27 挂牌修改中(材料核实未通过):44 上报中(材料核实未通过):28 补交材料中(材料核实未通过):45 材料核实中(保存核实意见):47 + + $status=isset($maps[$stype])?$maps[$stype]:''; + $btnid=$status?($stype-1):''; + $passStatus=27; + $reuploadStatus=45; + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + $msg=$this->checkFile($apply_id, $status, $baseinfo, $reuploadStatus, $passStatus,10,'','请输入材料核实意见!','checkmc'); + if(!empty($msg))$this->error($msg); + Db::startTrans(); + + try{ + $this->updateOrder('cult4checkmc',['btnid'=>$btnid]); + $this->updateRun($status, $chkStatus,$reuploadStatus); + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==44 || $status==45){ + + $applytype=$baseinfo['apply_type']; + $baseinfo_name=($applytype==1)?$baseinfo['c_name']:(($applytype==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + if($status==44){ + //审核不通过,回到修改中,由前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请材料核实不通过!'; + $notice='您的【'.$baseinfo_name.'】申请材料核实不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==45){ + //需要上传的文件 + $this->dealUnUploadFiles($baseinfo_name,$baseinfo,$apply,$apply_id, $status,10); + + } + }elseif($status==27){//公告资料提交中(材料核实通过):27 + $applytype=$baseinfo['apply_type']; + $baseinfo_name=($applytype==1)?$baseinfo['c_name']:(($applytype==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + + //审核不通过,回到修改中,由前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请材料核实已通过,需要您提供以下内容!'; + $notice='您的【'.$baseinfo_name.'】申请材料核实已通过,需要您提供挂牌信息或上传挂牌资料后再提交。
请点击: 提交材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('材料核实失败'); + } + $this->success('材料核实成功',url('cult4/Cult4/apply_list10',['apply_type'=>$apply_type])); + } + } + /* + * 公告资料提交对应的挂牌代码录入 + */ + public function apply_runaddcode() + { + $apply_id=input('apply_id'); + $apply_type=input('apply_type'); + $user_id=session('admin_auth.aid'); + $chkStatusArray = array(48);//源代码48 + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + + $jump=url('cult4/Cult4/apply_check11#nm',array('apply_id'=>$apply_id,'apply_type'=>$apply_type,'snd'=>rand(10000,99999))); + $code=input('code'); + if(empty($code))$this->error('请输入挂牌代码!',$jump); + + $codename=input('codename'); + if(empty($codename))$this->error('请输入挂牌名称!',$jump); + $status = 29;//公告资料审核中(公告资料已提交):29 + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + $this->error("请勿重复提交",$jump); + } + + Db::startTrans(); + + try{ + //更新基本信息表为已审核cult4baseinfo + $sl_data2['apply_id']=input('apply_id'); + $sl_data2['code']=$code; + $sl_data2['codename']=$codename; + $sl_data2['code_oper_id']=$user_id; + $sl_data2['code_oper_type']=2;//后台 + $sl_data2['code_oper_time']=time(); + $sl_data2['flag']=''; + + $this->updateRun($status, $chkStatus,'',$sl_data2,['apply_admin_id'=>'']); + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if(config('cult4files.checknm')==1){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('挂牌资料录入失败',$jump); + } + $this->success('挂牌资料录入成功',$jump); + } + /* + * 公告资料提交中(已提交基础信息):48 + * 公告资料审核中(公告资料已提交):29 + */ + public function apply_runcheck11(){ + //本处理对应状态 + $chkStatusArray = array(29); + $apply_id=input('apply_id'); + $apply_type=input('apply_type'); + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + $stype=input('submitType'); + $maps=[1=>30,2=>49,4=>50];////挂牌中(已提交公告资料):30 挂牌修改中(公告资料审核未通过):49 补交材料中(公告资料审核未通过):50 + $status=isset($maps[$stype])?$maps[$stype]:''; + + $passStatus=30; + $reuploadStatus=50; + if(config('cult4advice.checknm')==1){ + if(input('advice')=='')$this->error('请输入公告材料审核意见!'); + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + $this->error("请勿重复提交"); + } + Db::startTrans(); + try{ + $this->updateOrder('cult4checknm'); + $this->updateRun($status, $chkStatus,$reuploadStatus); + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + $applytype=$baseinfo['apply_type']; + $baseinfo_name=($applytype==1)?$baseinfo['c_name']:(($applytype==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + + if($status==49 || $status==50){ + if($status==49){ + //审核不通过,回到修改中,由前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请公告材料审核不通过!'; + $notice='您的【'.$baseinfo_name.'】申请公告材料审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==50){ + //需要上传的文件 + $this->dealUnUploadFiles($baseinfo_name,$baseinfo,$apply,$apply_id, $status,11); + } + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('公告材料审核失败'); + } + //审核通过准予挂牌 + if($status==30) { + //准于挂牌公告 + $notice_title = '【' . $baseinfo_name . '】准予挂牌公告!'; + $notice = '您的【' . $baseinfo_name . '】申请挂牌申请材料已收悉。经本所风控鉴评中心、专家审核委员会、联席会议的三级审核,贵方申请的(' . $baseinfo_name . ')符合本所登记挂牌要求,现准予登记挂牌。'; + $sl_data = [ + 'notice_title' => $notice_title, + 'notice' => $notice, + 'apply_id' => $apply_id, + 'user_id' => $apply['user_id'], + 'create_id' => session('admin_auth.aid'), + 'create_type' => 1, + 'create_time' => time() + ]; + Db::name('cult4notice')->insert($sl_data); + + $username=get_cult4UserName($apply['user_id'],1); + + //特殊号码缴费通知书 + if($baseinfo['codetype']==1){ + $notice_title = '【' . $baseinfo_name . '】特殊号码缴费通知书!'; + $contents=Options::get_options('number_options',$this->lang); + $contents['content_tpl']=isset($contents['content_tpl'])?$contents['content_tpl']:''; + $notice=$contents['content_tpl']; + $notice=str_replace('#COMNAME#',$username,$notice); + $where5=array( + 'id'=>$baseinfo['code_id'], + ); + $price=DB::name('cult4number')->where($where5)->value('price'); + $notice=str_replace('#PRICE#',$price,$notice); + $notice=str_replace('#CODE#',$baseinfo['code'],$notice); + $notice=str_replace('#DATE#',date('Y年m月d日', time()),$notice); + $sl_data = [ + 'notice_title' => $notice_title, + 'notice' => $notice, + 'apply_id' => $apply_id, + 'user_id' => $apply['user_id'], + 'create_id' => session('admin_auth.aid'), + 'create_type' => 1, + 'create_time' => time() + ]; + Db::name('cult4notice')->insert($sl_data); + } + + //插入到前台公告 + $this->_pushNotice($username,$baseinfo); + } + $this->success('公告材料审核成功',url('cult4/Cult4/apply_list11',['apply_type'=>$apply_type])); + } + } + + /* + * 挂牌对应的路演演讲内容录入 + */ + public function apply_runaddroadshow(){ + $chkStatusArray = array(30); + $apply_id=input('apply_id'); + $apply_type=input('apply_type'); + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + + $roadshow=input('myEditorRoadshow'); + if(empty($roadshow)){ + $this->error('请输入路演演讲内容代码!',url('cult4/Cult4/apply_check12#board',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999),'apply_type'=>input('apply_type')))); + } + + $status = 51;//公告资料审核中(公告资料已提交):29 + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + $this->error("请勿重复提交"); + } + + Db::startTrans(); + + try{ + //更新基本信息表为已审核cult4baseinfo + $sl_data2['apply_id']=$apply_id; + $sl_data2['roadshow']=$roadshow; + $sl_data2['roadshow_oper_id']=$user_id; + $sl_data2['roadshow_oper_type']=2;//后台 + $sl_data2['roadshow_oper_time']=time(); + $sl_data2['flag']=''; + + $this->updateRun($status, $chkStatus,'',$sl_data2,['apply_admin_id'=>'']); + + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + /** + * 增加通知推送,by rainfer + */ + $apply_type=$baseinfo['apply_type']; + $baseinfo_name=($apply_type==1)?$baseinfo['c_name']:(($apply_type==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + + //特殊号码缴费通知 + $username=get_cult4UserName($apply['user_id'],1); + $notice_title = '【' . $baseinfo_name . '】特殊号码缴费通知!'; + $contents=Options::get_options('tscheck_options',$this->lang); + $contents['content_tpl']=isset($contents['content_tpl'])?$contents['content_tpl']:''; + $notice=$contents['content_tpl']; + $notice=str_replace('#COMNAME#',$username,$notice); + $notice=str_replace('#DATE#',date('Y年m月d日', time()),$notice); + $sl_data = [ + 'notice_title' => $notice_title, + 'notice' => $notice, + 'apply_id' => $apply_id, + 'user_id' => $apply['user_id'], + 'create_id' => session('admin_auth.aid'), + 'create_type' => 1, + 'create_time' => time() + ]; + Db::name('cult4notice')->insert($sl_data); + + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('路演演讲内容录入失败'); + } + $this->success('路演演讲内容录入成功',url('cult4/Cult4/apply_list12',['apply_type'=>input('apply_type')])); + } + /* + * 挂牌中(已提交公告资料):30 + * 挂牌中(已提交路演资料):51 + */ + public function apply_runcheck12(){ + //本处理对应状态 + $chkStatusArray = array(51,30,48); + $apply_id=input('apply_id'); + $apply_type=input('apply_type'); + $user_id=session('admin_auth.aid'); + $roadshowdt=input('roadshowdt'); + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + $stype=input('submitType'); + $maps=[1=>31,2=>52,4=>53];//挂牌成功:31 挂牌修改中(挂牌审核未通过):52 补交材料中(挂牌审核未通过):53 + $status=isset($maps[$stype])?$maps[$stype]:''; + if($stype==1&&empty($roadshowdt)) { + $this->error('请输入挂牌仪式时间!'); + } + $passStatus=31; + $reuploadStatus=53; + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + $msg=$this->checkFile($apply_id, $status, $baseinfo, $reuploadStatus, $passStatus, 12,'','请输入挂牌审核意见!','checkboard'); + if(!empty($msg))$this->error($msg); + Db::startTrans(); + try { + $this->updateOrder('cult4checkboard'); + //更新基本信息表为已审核cult4baseinfo + $sl_data2=[]; + if ($status == $passStatus) { + $sl_data2['roadshowdt'] = $roadshowdt; + $sl_data2['roadshowdt_oper_id'] = $user_id; + $sl_data2['roadshowdt_oper_time'] = time(); + } + $this->updateRun($status, $chkStatus,$reuploadStatus,$sl_data2); + /** + * 增加通知推送,by rainfer + */ + $baseinfo_name=($baseinfo['apply_type']==1)?$baseinfo['c_name']:(($baseinfo['apply_type']==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + $temp=[ + 'apply_id'=>$apply_id, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + //审核不通过时,推送通知 + if($status==52||$status==31){ + //挂牌成功 31 + //挂牌通知书 + if($status==31){ + $notice_title='【'.$baseinfo_name.'】上市仪式通知书!'; + $notice='  贵方提交的深圳文化产权交易所“文化产业板” ('.$baseinfo_name.')挂牌申请材料已收悉,相关审核流程已完结。
  现请贵方于'.$roadshowdt.'参加深圳文化产权交易所为贵方举办的挂牌仪式。
  上市名称:'.$baseinfo['codename'].'
  上市代码:'.$baseinfo['code']; + + }else{ + //审核不通过,回到修改中,由前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请挂牌审核不通过!'; + $notice='您的【'.$baseinfo_name.'】申请挂牌审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + } + $sl_data=$temp; + $sl_data['notice_title']=$notice_title; + $sl_data['notice']=$notice; + $sl_data['user_id']=$apply['user_id']; + Db::name('cult4notice')->insert($sl_data); + + if($status==31){ + //插入到前台公告 + $this->_pushNotice($baseinfo['codename'],$baseinfo); + } + }elseif($status==53){ + //需要上传的文件 + $this->dealUnUploadFiles($baseinfo_name,$baseinfo,$apply,$apply_id, $status,12); + } + + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('公告材料审核失败'); + } + $jump=url('cult4/Cult4/apply_list12',array('base_id'=>input('base_id'),'apply_type'=>$apply_type,'snd'=>rand(10000,99999))); + $this->success('公告材料审核成功',$jump); + } + } + /* + * 审核号码 + */ + public function apply_runcheck14(){ + //本处理对应状态 + $chkStatusArray = array(18); + $apply_id=input('apply_id'); + $apply_type=input('apply_type'); + $user_id=session('admin_auth.aid'); + $roadshowdt=input('roadshowdt'); + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + if(input('submitType')==1) { + $status = 31;//挂牌成功:31 + if(empty($roadshowdt)){ + $this->error('请输入挂牌仪式时间!'); + } + } + $passStatus=31; + $reuploadStatus=53; + if(config('cult4advice.checkboard')==1){ + if(input('advice')=='')$this->error('请输入挂牌审核意见!'); + } + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + //防止重复提交 + if (!checkToken(input('TOKEN'))) $this->error('请勿重复提交'); + Db::startTrans(); + try { + //更新基本信息表为已审核cult4baseinfo + $sl_data20['base_id']=input('base_id'); + $sl_data20['apply_id']=input('apply_id'); + $sl_data20['code']=input('code'); + $sl_data20['code_oper_id']=$user_id; + $sl_data20['code_oper_type']=2;//后台 + $sl_data20['code_oper_time']=time(); + $where20=array('base_id'=>input('base_id')); + Db::name('cult4baseinfo')->where($where20)->update($sl_data20); + + $this->updateOrder('cult4checkboard'); + //更新基本信息表为已审核cult4baseinfo + $sl_data2=[]; + if ($status == $passStatus) { + $sl_data2['roadshowdt'] = $roadshowdt; + $sl_data2['roadshowdt_oper_id'] = $user_id; + $sl_data2['roadshowdt_oper_time'] = time(); + } + if($status==52)$status=48; + + $this->updateRun($status,$chkStatus,$reuploadStatus,$sl_data2); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + /** + * 增加通知推送,by rainfer + */ + $apply_type=$baseinfo['apply_type']; + $baseinfo_name=($apply_type==1)?$baseinfo['c_name']:(($apply_type==2)?$baseinfo['p_name']:$baseinfo['t_apply_username']); + $ctitle=($apply_type==1)?'企业公告':(($apply_type==2)?'项目公告':'人才公告'); + + $username1=get_cult4UserName($apply['user_id'],1); + //挂牌通知书 + //插入到前台公告 + $contents1=Options::get_options('notice_options',$this->lang); + $contents_title1='深圳文交所“文化产业板”挂牌'.$ctitle.'('.$baseinfo_name.')'; + $contents1['content_tpl']=isset($contents1['content_tpl'])?$contents1['content_tpl']:''; + $notice1=$contents1['content_tpl']; + $notice1=str_replace('#COMNAME#',$baseinfo_name,$notice1); + $notice1=str_replace('#CODENAME#',$baseinfo['codename'],$notice1); + $notice1=str_replace('#APPLYNAME#',$baseinfo_name,$notice1); + $notice1=str_replace('#CODE#',$baseinfo['code'],$notice1); + $notice1=str_replace('#DATE#',date('Y年m月d日', time()),$notice1); + + $sl_data=[ + 'notice_title'=>$contents_title1, + 'notice'=>$notice1, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + + //插入到前台公告 + $this->_pushNotice($username1,$baseinfo); + //查询当前挂牌信息 + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('公告材料审核失败'); + } + if($status==31){ + $jump=url('admin/gpgl/gp_add',array('base_id'=>input('base_id'),'apply_type'=>$apply_type,'snd'=>rand(10000,99999))); + }else{ + $jump=url('cult4/Cult4/apply_list13',array('base_id'=>input('base_id'),'apply_type'=>$apply_type,'snd'=>rand(10000,99999))); + } + $this->success('公告材料审核成功',$jump); + } + } + /* + * 财务人员确认业务号码 + */ + public function apply_runcheck13(){ + //本处理对应状态 + $chkStatusArray = array(48); + $apply_id=input('apply_id'); + $apply_type=input('apply_type'); + $user_id=session('admin_auth.aid'); + $roadshowdt=input('roadshowdt'); + //权限检查 + $chkStatus=$this->checkStatus($chkStatusArray); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + $stype=input('submitType'); + $maps=[1=>18,2=>14];//通过:31 继续上传缴费证明 14 + $status=isset($maps[$stype])?$maps[$stype]:''; + $passStatus=31; + $reuploadStatus=53; + if(config('cult4advice.checkboard')==1){ + if(input('advice')=='')$this->error('请输入审核意见!'); + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + $this->error('请勿重复提交'); + } + $advi=input('advice'); + Db::startTrans(); + + try { + //更新基本信息表为已审核cult4baseinfo + $sl_data20['base_id']=input('base_id'); + $sl_data20['apply_id']=input('apply_id'); + $sl_data20['code']=input('code'); + $sl_data20['code_oper_id']=$user_id; + $sl_data20['code_oper_type']=2;//后台 + $sl_data20['code_oper_time']=time(); + $where20=array('base_id'=>input('base_id')); + Db::name('cult4baseinfo')->where($where20)->update($sl_data20); + + $this->updateOrder('cult4checkboard'); + //更新基本信息表为已审核cult4baseinfo + $sl_data2=[]; + if ($status == $passStatus) { + $sl_data2['roadshowdt'] = $roadshowdt; + $sl_data2['roadshowdt_oper_id'] = $user_id; + $sl_data2['roadshowdt_oper_time'] = time(); + } + $this->updateRun($status, $chkStatus,'',$sl_data2); + + if($status==14){ + $baseinfot=Db::name('cult4baseinfo')->find(input('base_id')); + /** + * 增加通知推送,by rainfer + */ + $baseinfo_namet=($baseinfot['apply_type']==1)?$baseinfot['c_name']:(($baseinfot['apply_type']==2)?$baseinfot['p_name']:$baseinfot['t_apply_username']); + //审核不通过,回到修改中,由前台重写修改提交 + $notice_title='【'.$baseinfo_namet.'】缴费证明审核不通过!'; + $notice='您的【'.$baseinfo_namet.'】缴费证明审核不通过,请重新上传缴费证明!。
请点击: 上传缴费证明
反驳意见:'.$advi.''; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + } + + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('公告材料审核失败'); + } + $jump=url('cult4/Cult4/apply_list13',array('base_id'=>input('base_id'),'apply_type'=>$apply_type,'snd'=>rand(10000,99999))); + $this->success('公告材料审核成功',$jump); + } + } + + //已登记挂牌列表返回 + public function apply_runcheck_final(){ + $this->success('返回成功',url('cult4/Cult4/apply_list_final',['apply_type'=>input('apply_type')])); + } + + //特殊号段 + public function number_list(){ + $search_name=input('search_name'); + $this->assign('search_name',$search_name); + $map=array(); + if($search_name){ + $map['saleno']= array('like',"%".$search_name."%"); + } + $number_list=Db::name('cult4number')->where($map)->order('salestatus,status desc,id')->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + $page = $number_list->render(); + $this->assign('number_list',$number_list); + $this->assign('page',$page); + return $this->fetch(); + } + /** + * 特殊号段开启/禁止 + */ + public function number_state(){ + $status=$this->dealState('status'); + $msg=($status==1)?'状态禁止':'状态开启'; + $this->success($msg); + } + public function number_state2(){ + $status=$this->dealState('salestatus'); + $msg=($status==1)?'当前为未销售状态':'当前为已销售状态'; + $this->success($msg); + } + + /** + * 特殊号段添加 + */ + public function number_add(){ + //创建token + creatToken(); + return $this->fetch(); + } + /** + * 特殊号段添加操作 + */ + public function number_runadd(){ + $jump=url('cult4/Cult4/number_list',['apply_type'=>input('apply_type')]); + //防止重复提交 + if (!checkToken(input('TOKEN')))$this->error('令牌错误',$jump); + $id=Cult4number::add(input('saleno',''),input('price',0),input('status',0),input('salestatus',0),session('admin_auth.aid'),time()); + if($id){ + $this->success('特殊号码添加成功',$jump); + }else{ + $this->error('特殊号码添加失败',$jump); + } + } + /** + * 特殊号段修改 + */ + public function number_edit(){ + //创建token + creatToken(); + $id=input('id',0); + if(!$id)$this->error('特殊号码编辑失败',url('cult4/Cult4/number_list',['apply_type'=>input('apply_type')])); + $number_list=Db::name('cult4number')->find($id); + $this->assign('number_list',$number_list); + return $this->fetch(); + } + /** + * 特殊号段修改操作 + */ + public function number_runedit(){ + //防止重复提交 + $jump=url('cult4/Cult4/number_list',['apply_type'=>input('apply_type')]); + if (!checkToken(input('TOKEN'))) $this->error('令牌错误',$jump); + $id=Cult4number::edit(input('id',0),input('saleno',''),input('price',0),input('status',0),input('salestatus',0),session('admin_auth.aid'),time()); + if($id){ + $this->success('特殊号码修改成功',$jump); + }else{ + $this->error('特殊号码修改失败',$jump); + } + } + public function payupload(){ + $applyid=input('apply_id'); + $where=['a.apply_id'=>$applyid]; + $list=Db::name('cult4apply')->field("a.status,a.create_time,a.apply_id,a.user_id,a.status,a.pay_img,b.c_name,b.certificateurl,b.noticeurl,b.payurl")->alias("a")->join(config('database.prefix').'cult4baseinfo b','a.apply_id =b.apply_id')->where($where)->find(); + + $status=isset($list['status'])?$list['status']:''; + + $user_id=session('admin_auth.aid'); + if(request()->isPost()){ + + $jump=url('cult4/Cult4/apply_list12',['apply_type'=>input('apply_type')]); + $noticeurl=input('noticeurl'); + $certurl=input('certificateurl'); + $payurl=input('payurl'); + $data=[]; + $data['noticeurl']=$noticeurl; + $data['certificateurl']=$certurl; + $data['payurl']=$payurl; + $query=Db::name('cult4baseinfo')->where(['apply_id'=>$applyid])->update($data); + if($query){ + $this->success('上传成功'); + }else{ + $this->error('上传失败'); + } + } + $this->assign("list",$list); + $this->assign("apply_id",$applyid); + return $this->fetch(); + } +} diff --git a/app/cult4/controller/Cult4.php_0508 b/app/cult4/controller/Cult4.php_0508 new file mode 100644 index 0000000..a2cd873 --- /dev/null +++ b/app/cult4/controller/Cult4.php_0508 @@ -0,0 +1,6565 @@ +assign('templates',$tpls); + $sys=Options::get_options('site_options',$this->lang); + $map=Options::map($this->lang); + $this->assign('map_lat',$map['map_lat']); + $this->assign('map_lng',$map['map_lng']); + $this->assign('sys',$sys); + return $this->fetch(); + } + + + + + /** + * 调用显示某个状态下文化四板申请列表 + */ + public function apply_list($status,$admin_id,$status2=-1) + { + $search_name=input('search_name'); + $this->assign('search_name',$search_name); + $apply_list=ApplyModel::getList($search_name,$status,$admin_id,'create_time desc,apply_id desc',$status2); + $page = $apply_list->render(); + + $this->assign('apply_list',$apply_list); + $this->assign('page',$page); + $this->assign('loginuser',session('admin_auth.aid')); + $this->assign('loginrole',session('admin_auth.role')); + return $this->fetch(); + } + public function apply_list_Mult($status,$admin_id,$statusStr) + { + $search_name=input('search_name'); + $this->assign('search_name',$search_name); + $apply_list=ApplyModel::getList2($status,$search_name,$admin_id,$statusStr); + $page = $apply_list->render(); + $this->assign('apply_list',$apply_list); + $this->assign('page',$page); + $this->assign('loginuser',session('admin_auth.aid')); + return $this->fetch(); + } + public function apply_list_all($admin_id) + { + $search_name=input('search_name'); + $this->assign('search_name',$search_name); + $apply_list=ApplyModel::getListAll($search_name,$admin_id,'create_time desc,apply_id desc'); + $page = $apply_list->render(); + $this->assign('apply_list',$apply_list); + $this->assign('page',$page); + $this->assign('loginuser',session('admin_auth.aid')); + return $this->fetch(); + } + /** + * 01.初审(初审中(已提交):1) + * 初审中(联席会已复议):19 + */ + public function apply_list1() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list(1,session('admin_auth.aid'),19); + } + /** + * 02.尽职调查(尽调中(初审已通过):2) + * 尽调中(联席会已复议):36 + */ + public function apply_list2() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list(2,session('admin_auth.aid'),36); + } + /** + * 03.复审(复审中(已尽调):5) + * 复审中(联席会已复议):20 + */ + public function apply_list3() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list(5,session('admin_auth.aid'),20); + } + /** + * 04.风控中心审核(风控审核中(复审已通过):6) + * 风控审核中(联席会已复议):21 + */ + public function apply_list4() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list(6,session('admin_auth.aid'),21); + } + /** + * 05.缴费 + * 缴费中(风控审核通过):9 + * 缴费中(联席会已复议):22 + */ + public function apply_list5() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list_Mult(9,session('admin_auth.aid'),'9,12,22,39'); + } + /** + * 06.缴费确认 + * 缴费确认中(已缴费):12 + * 缴费确认中(联席会已复议):39 + */ + public function apply_list6() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list_Mult(12,session('admin_auth.aid'),'9,12,22,39'); + } + /** + * 07.专家分配(专家分配中(缴费状态已确认):14) + */ + public function apply_list7() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list(14,session('admin_auth.aid')); + } + /** + * 07.专家分配(专家分配中(缴费状态已确认):14) + * 08.专家审核确认(专家评分中(专家已分配):15) + * 专家评分中(联席会已复议):23 + */ + public function apply_list8() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list_Mult(15,session('admin_auth.aid'),'14,15,23'); + } + /** + * 09.联席会审核(联席会审核中(已确认专家审核):16) + * 上报中(初审未通过):4 + * 上报中(尽调未通过):34 + * 上报中(复审未通过):8 + * 上报中(风控审核未通过):11 + * 上报中(未缴费未通过):13 + * 上报中(专家审核未通过):17 + * 上报中(材料核实未通过):28 + */ + public function apply_list9() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list_Mult(16,session('admin_auth.aid'),'4,8,11,13,17,34,16,28'); + } + /** + * 10.材料核实(材料核实中(联席会审核通过):25) + * 材料核实中(保存核实意见):47 + * 材料核实中(联席会已复议):46 + */ + public function apply_list10() + { + $user_id=session('admin_auth.aid'); + $this->assign('user_id',$user_id); + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list_Mult(25,session('admin_auth.aid'),'25,46,47'); + } + /** + * 11.公告资料提交中(材料核实通过):27 + * 公告资料提交中(已提交基础信息):48 + * 公告资料审核中(公告资料已提交):29 + */ + public function apply_list11() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list_Mult(48,session('admin_auth.aid'),'48,29,27'); + } + /** + * 12.挂牌上市中(已提交路演资料):51 + * 挂牌上市中(已提交公告资料):30 + */ + public function apply_list12() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list_Mult(30,session('admin_auth.aid'),'30'); + } + + /** + * 选择特殊号码申请 + */ + public function apply_list13() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list_Mult(48,session('admin_auth.aid'),'48'); + } + + /** + *号码审核18通过特殊号码审核 + */ + public function apply_list14() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list(18,session('admin_auth.aid'),18); + } + /** + * 上市企业列表 + */ + public function apply_list_final() + { + $bAll=input('search_all',0); + $this->assign('search_all',$bAll); + if($bAll==1){ + return $this->apply_list_all(session('admin_auth.aid')); + } + return $this->apply_list(31,session('admin_auth.aid'),30); + } + + + + + + + /** + * 受理操作 + */ + public function apply_applyed($process,$status) + { + if(session('admin_auth.aid')){ + $apply = ApplyModel::applyed(input('apply_id'),session('admin_auth.aid'),input('seq'),$status); + + if($apply==0){ + $this->error('数据已更新,请重试!'); + } else { + if($status==9 or $status==22)//缴费中(风控审核通过):9 缴费中(联席会已复议):22 + $this->success('已受理',url('cult4/Cult4/apply_list'.$process)); + elseif($status==14)//专家分配中(缴费状态已确认):14 + $this->success('已受理',url('cult4/Cult4/apply_assign',array('apply_id'=>input('apply_id')))); + else + $this->success('已受理',url('cult4/Cult4/apply_check'.$process,array('apply_id'=>input('apply_id')))); + } + } + else + { + $this->error('用户ID不存在'); + } + } + /** + * 01.初审受理 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function apply_applyed1() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==1 or $status==19) + $this->apply_applyed(1,$status); + else + $this->error('数据已更新,请重试!'); + } + /** + * 02.尽职调查受理 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function apply_applyed2() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==2 or $status==36) + $this->apply_applyed(2,$status); + else + $this->error('数据已更新,请重试!'); + } + /** + * 03.复审受理 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function apply_applyed3() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==5 or $status==20) + $this->apply_applyed(3,$status); + else + $this->error('数据已更新,请重试!'); + } + /** + * 04.风控受理 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function apply_applyed4() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==6 or $status==21){ + $this->apply_applyed(4,$status); + }else{ + $this->error('数据已更新,请重试!'); + } + } + /** + * 05.缴费受理 + * 缴费中(风控审核通过):9 + * 缴费中(联席会已复议):22 + */ + public function apply_applyed5() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==9 or $status==22) + $this->apply_applyed(5,$status); + else + $this->error('数据已更新,请重试!'); + } + /** + * 06.缴费确认受理 + * 缴费确认中(已缴费):12 + * 缴费确认中(联席会已复议):39 + */ + public function apply_applyed6() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==9 or $status==22 or $status==12 or $status==39) + $this->apply_applyed(6,$status); + else + $this->error('数据已更新,请重试!'); + } + /** + * 07.专家分配受理 + */ + public function apply_applyed7() + { + $this->apply_applyed(7,14); + } + /** + * 08.专家分配中(缴费状态已确认):14 + * 专家评分中(专家已分配):15 + * 专家评分中(联席会已复议):23 + */ + public function apply_applyed8() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==14 or $status==15 or $status==23) + $this->apply_applyed(8,$status); + else + $this->error('数据已更新,请重试!'); + } + /** + * 09.联席会审核中(已确认专家审核):16 + */ + public function apply_applyed9() + { + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==4 or $status==8 or $status==11 or $status==13 or $status==17 or $status==34 or $status==16 or $status==28) + return $this->apply_applyed(9,$status); + else + return $this->apply_applyed(9,16); + } + /** + * 10.材料审核 + * 材料核实中(联席会审核通过):25 + * 材料核实中(联席会已复议):46 + * 材料核实中(保存核实意见):47 + */ + public function apply_applyed10() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==25 or $status==46 or $status==47) + $this->apply_applyed(10,$status); + else + $this->error('数据已更新,请重试!'); + } + /** + * 11.公告材料审核 + * 公告资料提交中(已提交基础信息):48 + * 公告资料审核中(公告资料已提交):29 + */ + public function apply_applyed11() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==48 or $status==29 or $status==27) + $this->apply_applyed(11,$status); + else + $this->error('数据已更新,请重试!'); + } + + /** + * 12.挂牌上市中 + * 挂牌上市中(已提交公告资料):30 + * 挂牌上市中(已提交路演资料):51 + */ + public function apply_applyed12() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==51 or $status==30) + $this->apply_applyed(12,$status); + else + $this->error('数据已更新,请重试!'); + } + + /** + * 13.财务人员确认业务号码 + */ + public function apply_applyed13() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==48) + $this->apply_applyed(13,$status); + else + $this->error('数据已更新,请重试!'); + } + + /** + * 13.审核号码 + */ + public function apply_applyed14() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==18) + $this->apply_applyed(14,$status); + else + $this->error('数据已更新,请重试!'); + } + + + + /* + * 审核用户信息界面 + */ + public function apply_check($process,$status){ + + $apply_id=input('apply_id'); + + $user_id=session('admin_auth.aid'); + $this->assign('user_id',$user_id); + //权限检查(材料核实) + if(!($process==10 and ($status==47 or $status==46 or $status==25) and get_cult4IsUserAdvicedMC($apply_id, $user_id)>0) and !($process==99)){ + if (check_cult4UserRight($apply_id, $user_id, $status) == 0) { + $this->error('无权限', url('admin/Index/index')); + } + } + + //取得当前审核表 + $where=array( + 'apply_id'=>$apply_id, + ); + $applyinfo = Db::name('cult4apply')->where($where)->find(); + $this->assign('applyinfo',$applyinfo); + + //取得基本信息表 + $where=array( + 'apply_id'=>$apply_id, + ); + $baseinfo = Db::name('cult4baseinfo')->where($where)->order('addorder desc') ->find (); + if(empty($baseinfo)){ + $this->error('未录入会员基础信息表!',url('cult4/Cult4/apply_list'.$process)); + } + $this->assign('baseinfo',$baseinfo); + $apply_type=$baseinfo['apply_type']; + $c_type=$baseinfo['c_type']; + $p_type=$baseinfo['p_type']; + + //证件类型表 + $cardtype=Db::name('cult4cardtype')->order('id')->select(); + $this->assign('cardtype',$cardtype); + + //项目对应列表信息 + //省份表 + $province = Db::name('Region')->where ( array('pid'=>1) )->select (); + $this->assign('province',$province); + //项目地址市表 + $city=Db::name('Region')->where ( array('pid'=>$baseinfo['p_addr_province']) )->select (); + $this->assign('city',$city); + //项目地址区表 + $town=Db::name('Region')->where ( array('pid'=>$baseinfo['p_addr_city']) )->select (); + $this->assign('town',$town); + //联系地址市表 + $city2=Db::name('Region')->where ( array('pid'=>$baseinfo['p_addr2_province']) )->select (); + $this->assign('city2',$city2); + //联系地址区表 + $town2=Db::name('Region')->where ( array('pid'=>$baseinfo['p_addr2_city']) )->select (); + $this->assign('town2',$town2); + //显示特殊号码 + $saleno=Db::name('cult4number')->where ( array('id'=>$baseinfo['code_id']))->value ('saleno'); + $this->assign('saleno',$saleno); + //取得apply_id对应的用户录入状态下的所有固定文件类型最新记录 + $apply_uptypelist=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,0,1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist',$apply_uptypelist); + + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + + $this->assign('status',$status); + $this->assign('apply_id',$apply_id); + + //是否有联席会上报驳回意见 + $where=array( + 'apply_id'=>$apply_id, + ); + $jcReport = Db::name('cult4checkjc')->where($where)->order('addorder desc') ->find(); + $this->assign('jcReport',$jcReport); + $this->assign('hasJcReport',0); + + //初审中(已提交):1 + //初审中(联席会已复议):19 + if($process>=1){ + //取得所有历史审核记录 + $where=array( + 'apply_id'=>$apply_id, + ); + $begincheck = Db::name('cult4check')->where($where)->order('addorder desc') ->select(); + $this->assign('begincheck',$begincheck); + + //取得apply_id对应的用户初审状态下的所有固定文件类型最新记录 + $apply_uptypelist_check=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(1,19),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_check',$apply_uptypelist_check); + + //取得apply_id对应的用户初审状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheck=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(1,19),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_tempcheck',$apply_uptypelist_tempcheck); + + //初审中(联席会已复议):19 + if($status==19){ + $this->assign('hasJcReport',1); + } + } + + //尽调中(初审已通过):2 + //尽调中(联席会已复议):36 + if($process>=2 and $status!=4){//$status>=2 + //取得所有历史审核记录 + $where=array( + 'apply_id'=>$apply_id, + ); + $ddcheck = Db::name('cult4checkdd')->where($where)->order('addorder desc') ->select(); + $this->assign('ddcheck',$ddcheck); + + //取得apply_id对应的用户尽调状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkdd=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(2,36),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_checkdd',$apply_uptypelist_checkdd); + + //取得apply_id对应的用户尽调状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckdd=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(2,36),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_tempcheckdd',$apply_uptypelist_tempcheckdd); + + //尽调中(联席会已复议):36 + if($status==36){ + $this->assign('hasJcReport',1); + } + } + + //复审中(已尽调):5 + //复审中(联席会已复议):20 + if($process>=3 and $status!=4 and $status!=34){//$status>=5 + //取得所有历史审核记录 + $where=array( + 'apply_id'=>$apply_id, + ); + $reviewcheck = Db::name('cult4checkreview')->where($where)->order('addorder desc') ->select(); + $this->assign('reviewcheck',$reviewcheck); + + //取得apply_id对应的用户复审状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkreview=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(5,20),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_checkreview',$apply_uptypelist_checkreview); + + //取得apply_id对应的用户复审状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckreview=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(5,20),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_tempcheckreview',$apply_uptypelist_tempcheckreview); + + //复审中(联席会已复议):20 + if($status==20){ + $this->assign('hasJcReport',1); + } + } + + //风控审核中(复审已通过):6 + //风控审核中(联席会已复议):21 + if($process>=4 and $status!=4 and $status!=34 and $status!=8){//$status>=6 + //取得所有历史审核记录 + $where=array( + 'apply_id'=>$apply_id, + ); + $riskcheck = Db::name('cult4checkrisk')->where($where)->order('addorder desc') ->select(); + $this->assign('riskcheck',$riskcheck); + + //取得apply_id对应的用户风控审核状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkrisk=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(6,21),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_checkrisk',$apply_uptypelist_checkrisk); + + //取得apply_id对应的用户风控审核状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckrisk=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(6,21),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_tempcheckrisk',$apply_uptypelist_tempcheckrisk); + + //风控审核中(联席会已复议):21 + if($status==21){ + $this->assign('hasJcReport',1); + } + } + //缴费中(风控审核通过):9 + //缴费确认中(已缴费):12 + //缴费确认中(联席会已复议):39 + //缴费中(联席会已复议):22 + if($process>=5 and $status!=4 and $status!=34 and $status!=8 and $status!=11){//$status>=9 + //取得所有历史审核记录 + $where=array( + 'apply_id'=>$apply_id, + ); + $feecheck = Db::name('cult4checkfee')->where($where)->order('addorder desc') ->select(); + $this->assign('feecheck',$feecheck); + + //取得apply_id对应的用户缴费确认状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkfee=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(9,12,39,22),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_checkfee',$apply_uptypelist_checkfee); + + //取得apply_id对应的用户缴费确认状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckfee=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(9,12,39,22),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_tempcheckfee',$apply_uptypelist_tempcheckfee); + + //缴费状态 + $where=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1, + ); + $fee_flag=Db::name('cult4fee')->where($where)->value('fee_flag'); + $this->assign('fee_flag',$fee_flag); + + //缴费中(联席会已复议):22 + //缴费确认中(联席会已复议):39 + if($status==22 || $status==39){ + $this->assign('hasJcReport',1); + } + } + //专家分配中(缴费状态已确认):14 + //专家评分中(专家已分配):15 + //专家评分中(联席会已复议):23 + if($process>=7 and $status!=4 and $status!=34 and $status!=8 and $status!=11 and $status!=13){//$status>=14 + $this->assign('status',$status); + $this->assign('apply_id',$apply_id); + + //专家分配 + $member_list = Db::query("SELECT a.*,count(*) as CNT FROM `".config('database.prefix')."member_list` as a left join `".config('database.prefix')."cult4proassign` as b on a.member_list_id=b.user_id and (b.del_flag=0) WHERE a.member_list_groupid=3 and a.member_list_id not in(select user_id from ".config('database.prefix')."cult4proassign where del_flag=0 and apply_id=".$apply_id.") GROUP BY member_list_id order by CNT;"); + $this->assign('member_list',$member_list); + + //已分配专家及分配专家评分 + $pro_list_assigned = Db::query("SELECT b.*,a.* FROM `".config('database.prefix')."cult4proassign` as a left join `".config('database.prefix')."member_list` as b on a.user_id=b.member_list_id WHERE a.del_flag=0 and a.apply_id=".$apply_id.";"); + $this->assign('pro_list_assigned',$pro_list_assigned); + + //取得所有历史审核记录 + $where=array( + 'apply_id'=>$apply_id, + ); + $procheck = Db::name('cult4checkpro')->where($where)->order('addorder desc') ->select(); + $this->assign('procheck',$procheck); + + //取得apply_id对应的专家评分中(专家已分配)状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkpro=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(14,15,23),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_checkpro',$apply_uptypelist_checkpro); + + //取得apply_id对应的专家评分中(专家已分配)状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckpro=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(14,15,23),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_tempcheckpro',$apply_uptypelist_tempcheckpro); + + //专家评分中(联席会已复议):23 + if($status==23){ + $this->assign('hasJcReport',1); + } + } + //联席会审核中(已确认专家审核):16 + //联席会审核都显示 and $status!=4 and $status!=34 and $status!=8 and $status!=11 and $status!=13 and $status!=17 + if($process>=9){//$status>=16 + //取得所有历史审核记录 + $where=array( + 'apply_id'=>$apply_id, + ); + $jccheck = Db::name('cult4checkjc')->where($where)->order('addorder desc') ->select(); + $this->assign('jccheck',$jccheck); + + //取得apply_id对应的用户状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkjc=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(4,34,8,11,13,17,16,28),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_checkjc',$apply_uptypelist_checkjc); + + //取得apply_id对应的用户状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckjc=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(4,34,8,11,13,17,16,28),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_tempcheckjc',$apply_uptypelist_tempcheckjc); + + //查联席会决议模板 + $lxhjy_tmep = Db::name('cult4upfiles')->alias("f")->join(config('database.prefix').'cult4uptype t','t.ftemp_id=f.file_id') + ->where(['t.isopen'=>'1','t.status'=>30])->where('t.apply_type','in',['0',$apply_type])->order('upload_time desc')->select(); + if(!empty($lxhjy_tmep)){ + $this->assign('lxhjy_tmep',$lxhjy_tmep[0]); + } + } + //材料核实中(联席会审核通过):25 + //材料核实中(联席会已复议):46 + //材料核实中(保存核实意见):47 + if($process>=10){ + //取得所有历史审核记录 + $where=array( + 'apply_id'=>$apply_id, + ); + $mccheck = Db::name('cult4checkmc')->where($where)->order('addorder desc') ->select(); + $this->assign('mccheck',$mccheck); + + //取得apply_id对应的用户状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkmc=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(25,46,47),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_checkmc',$apply_uptypelist_checkmc); + + //取得apply_id对应的用户状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckmc=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(25,46,47),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_tempcheckmc',$apply_uptypelist_tempcheckmc); + + //材料核实中(联席会已复议):46 + if($status==46){ + $this->assign('hasJcReport',1); + } + $apply_lxhjy = Db::name('cult4upfiles')->where(['apply_id'=>$apply_id,'status'=>16])->order('upload_time desc')->find(); + $this->assign('apply_lxhjy',$apply_lxhjy); + } + //公告资料提交中(已提交基础信息):48 + //公告资料审核中(公告资料已提交):29 + if($process>=11){ + //取得所有历史审核记录 + $where=array( + 'apply_id'=>$apply_id, + ); + $nmcheck = Db::name('cult4checknm')->where($where)->order('addorder desc') ->select(); + $this->assign('nmcheck',$nmcheck); + + //取得apply_id对应的用户状态下的所有固定文件类型最新记录 + $apply_uptypelist_checknm=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(48,29,27),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_checknm',$apply_uptypelist_checknm); + + //取得apply_id对应的用户状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempchecknm=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(48,29,27),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_tempchecknm',$apply_uptypelist_tempchecknm); + + //取得对应的特殊号段 + if($status==27){ + $where=array( + 'status' => 1, + 'salestatus' => 0, + ); + }elseif($status==48 or $status==29){ + $where=array( + 'status' => 1, + ); + }else{ + $where=array( + 'status' => 1, + ); + } + $salenolist = Db::name('cult4number')->where($where)->select(); + $this->assign('salenolist',$salenolist); + } + //挂牌上市中(已提交公告资料):30 + //挂牌上市中(已提交路演资料):51 + if($process>=12){ + //取得所有历史审核记录 + $where=array( + 'apply_id'=>$apply_id, + ); + $boardcheck = Db::name('cult4checkboard')->where($where)->order('addorder desc') ->select(); + $this->assign('boardcheck',$boardcheck); + + //取得apply_id对应的用户状态下的所有固定文件类型最新记录 + $apply_uptypelist_checkboard=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,array(51,30),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_checkboard',$apply_uptypelist_checkboard); + + //取得apply_id对应的用户状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckboard=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,array(51,30),1,'ftype_id,status,apply_id,isopen',-1); + $this->assign('apply_uptypelist_tempcheckboard',$apply_uptypelist_tempcheckboard); + } + return $this->fetch(); + } + /** + * 01.初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function apply_check1() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==1 or $status==19) + return $this->apply_check(1,$status); + else + return $this->apply_check(1,1); + } + /** + * 02.尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function apply_check2() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==2 or $status==36) + return $this->apply_check(2,$status); + else + return $this->apply_check(2,2); + } + /** + * 03.复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function apply_check3() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==5 or $status==20) + return $this->apply_check(3,$status); + else + return $this->apply_check(3,5); + } + /** + * 04.风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function apply_check4() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==6 or $status==21) + return $this->apply_check(4,$status); + else + return $this->apply_check(4,6); + } + /** + * 06.缴费确认审核 + * 缴费中(风控审核通过):9 + * 缴费确认中(已缴费):12 + * 缴费中(联席会已复议):22 + * 缴费确认中(联席会已复议):39 + */ + public function apply_check6() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==9 or $status==12 or $status==22 or $status==39) + return $this->apply_check(6,$status); + else + return $this->apply_check(6,12); + } + /** + * 07.专家分配 + * 专家分配中(缴费状态已确认):14 + * 专家评分中(专家已分配):15 + * 专家评分中(联席会已复议):23 + */ + public function apply_assign() + { + //创建token + creatToken(); + + $apply_id=input('apply_id'); + //权限检查 + if( (check_cult4UserRight($apply_id,session('admin_auth.aid'),14)==0) and (check_cult4UserRight($apply_id,session('admin_auth.aid'),15)==0) and (check_cult4UserRight($apply_id,session('admin_auth.aid'),23)==0) ){ + $this->error('无权限',url('admin/Index/index')); + } + + $this->assign('apply_id',$apply_id); + + $member_list = Db::query("SELECT a.*,count(*) as CNT FROM `wjs_member_list` as a left join `wjs_cult4proassign` as b on a.member_list_id=b.user_id and (b.del_flag=0) WHERE a.member_list_groupid=3 and a.member_list_id not in(select user_id from wjs_cult4proassign where del_flag=0 and apply_id=".$apply_id.") GROUP BY member_list_id order by CNT;"); + $this->assign('member_list',$member_list); + + $member_list_assigned = Db::query("SELECT b.*,a.pro_id FROM `wjs_cult4proassign` as a left join `wjs_member_list` as b on a.user_id=b.member_list_id WHERE a.del_flag=0 and a.apply_id=".$apply_id.";"); + $this->assign('member_list_assigned',$member_list_assigned); + + $p=input('p'); + if(request()->isAjax()){ + if($p==1) + return $this->fetch('ajax_apply_listadd'); + else + return $this->fetch('ajax_apply_listdel'); + }else{ + return $this->fetch(); + } + } + + /** + * 08.专家评分中(专家已分配):15 + * 专家分配中(缴费状态已确认):14 + * 专家评分中(专家已分配):15 + * 专家评分中(联席会已复议):23 + */ + public function apply_check8() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==14 or $status==15 or $status==23) + return $this->apply_check(8,$status); + else + return $this->apply_check(8,15); + } + /** + * 09.联席会审核 + */ + public function apply_check9() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + if($status==4 or $status==8 or $status==11 or $status==13 or $status==17 or $status==34 or $status==16 or $status==28) + return $this->apply_check(9,$status); + else + return $this->apply_check(9,16); + } + /** + * 10.材料核实中(联席会审核通过):25 + */ + public function apply_check10() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + //材料核实中(联席会审核通过):25 + //材料核实中(联席会已复议):46 + //材料核实中(保存核实意见):47 + if($status==25 or $status==46 or $status==47) + return $this->apply_check(10,$status); + else + return $this->apply_check(10,25); + } + /** + * 11.公告资料提交中(已提交基础信息):48 + */ + public function apply_check11() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + //公告资料提交中(材料核实通过):48 + //公告资料审核中(公告资料已提交):29 + //公告资料提交中(材料核实通过):27 + if($status==48 or $status==29 or $status==27) + return $this->apply_check(11,$status); + else + return $this->apply_check(11,48); + } + + /** + * 12.挂牌上市中(已提交公告资料):30 + * 挂牌上市中(已提交路演资料):51 + */ + public function apply_check12() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + //挂牌上市中(已提交公告资料):30 + //挂牌上市中(已提交路演资料):51 + if($status==51 or $status==30 or $status==48 or $status==55) + return $this->apply_check(12,$status); + else + return $this->apply_check(12,51); + } + + /** + * 13.财务人员确认业务号码 + */ + public function apply_check13() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==48) + return $this->apply_check(13,$status); + else + return $this->apply_check(13,48); + } + + /** + * 14号码审核 + */ + public function apply_check14() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==18) + return $this->apply_check(14,$status); + else + return $this->apply_check(14,18); + } + /** + * 查看 + * 13.挂牌上市成功:31 + */ + public function apply_check_final() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==31) + return $this->apply_check(99,$status); + else + return $this->apply_check(99,31); + } + /** + * 编辑 + * 13.挂牌上市成功:31 + */ + public function apply_check_final_edit() + { + //创建token + creatToken(); + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==31) + return $this->apply_check(99,$status); + else + return $this->apply_check(99,31); + } + /** + * 07.专家分配添加 + * 08.专家分配添加 + * @param $assign_type 0:专家分配角色 1:确认专家审核角色(前台专家不可见) + */ + public function apply_assign_add($assign_type=0){ + $p=input('p'); + $apply_id=input('apply_id'); + $member_list_id=input('id'); + $user_id=session('admin_auth.aid'); + + //检查是否超出限额 + $whereCnt['apply_id']=array('eq', $apply_id); + $whereCnt['del_flag']=array('eq', 0); + $assignCnt = Db()->name('cult4proassign')->where($whereCnt)->count(); + if($assignCnt>=config('cult4ProLimit')){ + $this->error('专家分配已超出限额!最多分配'.config('cult4ProLimit').'名专家',url('cult4/Cult4/apply_assign',array('apply_id'=>$apply_id,'p'=>$p))); + } + + $sl_data=array( + 'apply_id'=>$apply_id, + 'user_id'=>$member_list_id, + 'assign_type'=>$assign_type, + 'del_flag'=>0, + 'score'=>0, + 'full_score'=>config('cult4ProScore'), + 'create_id'=>$user_id, + 'create_time'=>time(), + ); + $rst=Db::name('cult4proassign')->insert($sl_data); + if($rst!==false){ + if($assign_type==0){ + $this->success('专家分配成功',url('cult4/Cult4/apply_assign',array('apply_id'=>$apply_id,'p'=>$p)));//专家分配 + }elseif($assign_type==1){ + //专家审核确认 + $this->success('专家分配成功',url('cult4/Cult4/apply_check8#pro',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + }else{ + if($assign_type==0) + $this->error('专家分配失败',url('cult4/Cult4/apply_assign',array('apply_id'=>$apply_id,'p'=>$p)));//专家分配 + elseif($assign_type==1) + $this->error('专家分配失败',url('cult4/Cult4/apply_check8#pro',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999))));//专家审核确认 + } + } + /** + * 07.专家分配删除 + * 08.专家分配删除 + */ + public function apply_assign_del($assign_type=0){ + $p=input('p'); + $pro_id=input('id'); + $apply_id=input('apply_id'); + + $where=array( + 'pro_id'=>$pro_id, + ); + $sl_data=array( + 'del_flag'=>1, + ); + $rst=Db::name('cult4proassign')->where($where)->update($sl_data); + if($rst!==false){ + if($assign_type==0) + $this->success('已分配专家删除成功',url('cult4/Cult4/apply_assign',array('apply_id'=>$apply_id,'p'=>$p)));//专家分配 + elseif($assign_type==1) + $this->success('已分配专家删除成功',url('cult4/Cult4/apply_check8#pro',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999))));//专家审核确认 + }else{ + if($assign_type==0) + $this->error('已分配专家删除失败',url('cult4/Cult4/apply_assign',array('apply_id'=>$apply_id,'p'=>$p)));//专家分配 + elseif($assign_type==1) + $this->error('已分配专家删除失败',url('cult4/Cult4/apply_check8#pro',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999))));//专家审核确认 + } + } + /** + * 07.专家分配完成 + * 08.专家分配完成 + */ + public function apply_assign_finish(){ + //本处理对应状态 + $chkStatus = 14; + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + $submitType=input('submitType'); + //下面相关业务代码 + if($submitType==1) { + //$this->redirect(url('cult4/Cult4/apply_list7')); + $this->success('返回成功!',url('cult4/Cult4/apply_list7')); + }elseif($submitType==2 or $submitType==3) {//分配完成 + //统一推送消息 + $user_ids=Db::name('cult4proassign')->where(['apply_id'=>$apply_id,'del_flag'=>0])->order('pro_id desc')->column('user_id'); + if($user_ids){ + /** + * 增加通知推送,by rainfer + */ + $baseinfo=Db::name('cult4baseinfo')->where(['apply_id'=>$apply_id,'new_flag'=>1])->find(); + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + } + foreach($user_ids as $v){ + $notice_title='【'.$baseinfo_name.'】挂牌申请的专家评审分配给您!'; + $notice='【'.$baseinfo_name.'】挂牌申请的专家评审分配给您,请您评审,请点击: 专家评审'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'user_id'=>$v, + 'apply_id'=>$apply_id, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + } + }else{ + $this->error('请先至少分配1名专家!'); + } + + //专家评分中(专家已分配):15 + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=15; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + if($submitType==2) + $sl_data3['apply_admin_id']=0;//初始化受理状态 + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus, + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + if($submitType==2){ + //$this->redirect(url('cult4/Cult4/apply_list7'));//专家分配 + $this->success('专家分配成功!',url('cult4/Cult4/apply_list7')); + } + elseif($submitType==3) + { + //$this->redirect(url('cult4/Cult4/apply_check8#pro',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999))));//专家审核确认 + $this->success('专家分配成功!',url('cult4/Cult4/apply_check8#pro',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + } + } + + /** + * 08.专家分配添加 + */ + public function apply_assign_add2(){ + $this->apply_assign_add(1); + } + /** + * 08.专家分配删除 + */ + public function apply_assign_del2(){ + $this->apply_assign_del(1); + } + /** + * 08.专家分配评分 + */ + public function apply_score() + { + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + $pro_id=input('pro_id'); + + $advice=input('myEditorPro'.$pro_id); + if($advice=='') + { + $this->error('请输入专家评分意见!',url('cult4/Cult4/apply_check8#pro',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + + $score=input('score'.$pro_id); + if($score<=0){ + $this->error('请录入评分!',url('cult4/Cult4/apply_check8#pro',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + + //更新评分表cult4apply + $sl_data['score']=$score; + $sl_data['advice']=$advice; + $sl_data['assign_type']=1;//前台不可见 + $sl_data['update_id']=$user_id; + $sl_data['update_type']=2;//后台 + $sl_data['update_time']=time(); + $where=array( + 'pro_id'=>$pro_id, + ); + Db::name('cult4proassign')->where($where)->update($sl_data); + $this->success('评分成功',url('cult4/Cult4/apply_check8#pro',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999))));//专家评分确认 + } + /** + * 文化四板文件核验开启/禁止 + */ + public function apply_state($process,$status) + { + $id=input('x'); + if (empty($id)){ + $this->error('用户ID不存在'); + } + + $apply_id=get_cult4ApplyIDFromFileID($id); + + //权限检查 + if (check_cult4UserRight($apply_id, session('admin_auth.aid'), $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + $flag=Db::name('cult4upfiles')->where('file_id',$id)->value('flag');//判断当前状态情况 + if($flag==1){ + $flagdata = array('flag'=>0); + Db::name('cult4upfiles')->where('file_id',$id)->setField($flagdata); + $this->success('审核未通过'); + }else{ + $flagdata = array('flag'=>1); + Db::name('cult4upfiles')->where('file_id',$id)->setField($flagdata); + $this->success('审核已通过'); + } + } + /** + * 初审 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function apply_state1() + { + $id=input('x'); + if (empty($id)){ + $this->error('文件ID不存在'); + } + $apply_id=get_cult4ApplyIDFromFileID($id); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==1 or $status==19) + $this->apply_state(1,$status); + else + $this->apply_state(1,1); + } + /** + * 尽职调查 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function apply_state2() + { + $id=input('x'); + if (empty($id)){ + $this->error('文件ID不存在'); + } + $apply_id=get_cult4ApplyIDFromFileID($id); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==2 or $status==36) + $this->apply_state(2,$status); + else + $this->apply_state(2,2); + } + /** + * 复审 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function apply_state3() + { + $id=input('x'); + if (empty($id)){ + $this->error('文件ID不存在'); + } + $apply_id=get_cult4ApplyIDFromFileID($id); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==5 or $status==20) + $this->apply_state(3,$status); + else + $this->apply_state(3,5); + } + /** + * 风控审核 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function apply_state4() + { + $id=input('x'); + if (empty($id)){ + $this->error('文件ID不存在'); + } + $apply_id=get_cult4ApplyIDFromFileID($id); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==6 or $status==21) + $this->apply_state(4,$status); + else + $this->apply_state(4,6); + } + /** + * 缴费确认审核 + */ + public function apply_state6() + { + $id=input('x'); + if (empty($id)){ + $this->error('文件ID不存在'); + } + $apply_id=get_cult4ApplyIDFromFileID($id); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==9 or $status==12) + $this->apply_state(6,$status); + else + $this->apply_state(6,12); + } + /** + * 专家审核确认 + */ + public function apply_state8() + { + $id=input('x'); + if (empty($id)){ + $this->error('文件ID不存在'); + } + $apply_id=get_cult4ApplyIDFromFileID($id); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==14 or $status==15) + $this->apply_state(8,$status); + else + $this->apply_state(8,15); + } + /** + * 联席会审核 + */ + public function apply_state9() + { + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $id=input('x'); + if (empty($id)){ + $this->error('用户ID不存在'); + } + $apply_id=get_cult4ApplyIDFromFileID($id); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==4 or $status==8 or $status==11 or $status==13 or $status==17 or $status==34 or $status==16 or $status==28) + $this->apply_state(9,$status); + else + $this->apply_state(9,16); + } + /** + * 材料核实中(联席会审核通过):25 + * 材料核实中(联席会已复议):46 + * 材料核实中(保存核实意见):47 + */ + public function apply_state10() + { + $id=input('x'); + if (empty($id)){ + $this->error('文件ID不存在'); + } + $apply_id=get_cult4ApplyIDFromFileID($id); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==25 or $status==46 or $status==47) + $this->apply_state(10,$status); + else + $this->apply_state(10,25); + } + /** + * 公告资料提交中(已提交基础信息):48 + * 公告资料审核中(公告资料已提交):29 + * 公告资料提交中(材料核实通过):27 + */ + public function apply_state11() + { + $id=input('x'); + if (empty($id)){ + $this->error('文件ID不存在'); + } + $apply_id=get_cult4ApplyIDFromFileID($id); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==48 or $status==29 or $status==27) + $this->apply_state(11,$status); + else + $this->apply_state(11,48); + } + + /** + * 挂牌上市中(已提交公告资料):30 + * 挂牌上市中(已提交路演资料):51 + */ + public function apply_state12() + { + $id=input('x'); + if (empty($id)){ + $this->error('文件ID不存在'); + } + $apply_id=get_cult4ApplyIDFromFileID($id); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==51 or $status==30) + $this->apply_state(12,$status); + else + $this->apply_state(12,51); + } + + + + /** + * 调用显示某个状态下文化四板文件类型列表 + * @param int $ftype 查询条件(-1:包括临时和固定 1:固定 2:临时) + * @param int $status 后台查询的操作用户状态 + * @return 对应文件类型列表 + */ + public function uptype_list($process=-1,$status=-1,$ftype=1) + { + $apply_id=input('apply_id'); + //添加固定内容 + if (!($ftype == 1 and $status ==-1)) { + //权限检查 + if (check_cult4UserRight($apply_id, session('admin_auth.aid'), $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + } + $whereType=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1, + ); + $apply_type=Db::name('cult4baseinfo')->where($whereType)->value('apply_type'); + $c_type=Db::name('cult4baseinfo')->where($whereType)->value('c_type'); + $p_type=Db::name('cult4baseinfo')->where($whereType)->value('p_type'); + if($status==-1){ + //固定类型input('apply_id')==null + $uptype_list=UptypeModel::getList(-1,$c_type,$p_type,0,$ftype,$status,-1,'status,apply_type,ftype_id',-1); + $page = $uptype_list->render(); + $this->assign('uptype_list',$uptype_list); + $this->assign('page',$page); + }else{ + //临时类型 + $uptype_list=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,$ftype,$status,-1); + $this->assign('uptype_list',$uptype_list); + + $this->assign('apply_id',$apply_id); + $this->assign('status',$status); + } + return $this->fetch(); + } + /** + * 01.初审(初审中(已提交):1) + */ + public function uptype_list1() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==1 or $status==19) + return $this->uptype_list(1,$status,2); + else + return $this->uptype_list(1,1,2); + } + /** + * 02.尽调中(初审已通过):2) + */ + public function uptype_list2() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==2 or $status==36) + return $this->uptype_list(2,$status,2); + else + return $this->uptype_list(2,2,2); + } + /** + * 03.复审中(已尽调):5) + */ + public function uptype_list3() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==5 or $status==20) + return $this->uptype_list(3,$status,2); + else + return $this->uptype_list(3,5,2); + } + /** + * 04.风控审核中(复审已通过):6) + */ + public function uptype_list4() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==6 or $status==21) + return $this->uptype_list(4,$status,2); + else + return $this->uptype_list(4,6,2); + } + /** + * 06.缴费确认中(已缴费):12 + */ + public function uptype_list6() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==9 or $status==12) + return $this->uptype_list(6,$status,2); + else + return $this->uptype_list(6,12,2); + } + /** + * 08.专家评分中(专家已分配):15 + */ + public function uptype_list8() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==14 or $status==15) + return $this->uptype_list(8,$status,2); + else + return $this->uptype_list(8,15,2); + } + /** + * 09.联席会审核中(已确认专家审核):16 + */ + public function uptype_list9() + { + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $apply_id=input('apply_id'); + $this->assign('apply_id',$apply_id); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + //权限检查 + if(!in_array($status,[4,34,8,11,13,17,16,28])){ + $this->error('无权限',url('admin/Index/index')); + } + if (check_cult4UserRight(input('apply_id'), session('admin_auth.aid'), $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + + $whereType=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1, + ); + $apply_type=Db::name('cult4baseinfo')->where($whereType)->value('apply_type'); + $c_type=Db::name('cult4baseinfo')->where($whereType)->value('c_type'); + + //临时类型 + $where=array(); + $where['apply_id'] = array('eq', $apply_id); + $where['status'] = array('in','4,34,8,11,13,17,16,28'); + $where['apply_type'] = $apply_type; + if($apply_type==1){ + if(($c_type==1 or $c_type==3)) + $where['c_type']=array('in','0,'.$c_type); + else + $where['c_type']=0; + } + $where['isopen'] = 1; + $order='ftype_id,status,apply_id,isopen'; + $uptype_list=Db::name('cult4uptype')->where($where)->order($order)->select(); + $this->assign('uptype_list',$uptype_list); + + $this->assign('status',$status); + return $this->fetch(); + } + /** + * 10.材料核实中(联席会审核通过):25 + * 材料核实中(联席会已复议):46 + * 材料核实中(保存核实意见):47 + */ + public function uptype_list10() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==25 or $status==46 or $status==47) + return $this->uptype_list(10,$status,2); + else + return $this->uptype_list(10,25,2); + } + /** + * 11.公告资料提交中(已提交基础信息):48 + * 公告资料审核中(公告资料已提交):29 + * 公告资料提交中(材料核实通过):27 + */ + public function uptype_list11() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==48 or $status==29 or $status==27) + return $this->uptype_list(11,$status,2); + else + return $this->uptype_list(11,48,2); + } + /** + * 12.挂牌上市中(已提交公告资料):30 + * 挂牌上市中(已提交路演资料):51 + */ + public function uptype_list12() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==48 or $status==30) + return $this->uptype_list(12,$status,2); + else + return $this->uptype_list(12,48,2); + } + + /** + * 文化四板文件类型添加 + */ + public function uptype_add($process=-1,$status=-1) + { + if ($process > 0 and $status > 0) { + //权限检查 + if (check_cult4UserRight(input('apply_id'), session('admin_auth.aid'), $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + } + //创建token + creatToken(); + + $apply_id=input('apply_id'); + $this->assign('apply_id',$apply_id); + $this->assign('status',$status); + $where['status'] = array('egt',0); + $statuslist=Db::name('cult4status')->where($where)->select(); + $this->assign('statuslist',$statuslist); + + return $this->fetch(); + } + + /** + * 文化四板文件类型添加:初审 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function uptype_add1(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==1 or $status==19) + return $this->uptype_add(1,$status); + else + return $this->uptype_add(1,1); + } + /** + * 文化四板文件类型添加:尽职调查 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function uptype_add2(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==2 or $status==36) + return $this->uptype_add(2,$status); + else + return $this->uptype_add(2,2); + } + /** + * 文化四板文件类型添加:复审 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function uptype_add3(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==5 or $status==20) + return $this->uptype_add(3,$status); + else + return $this->uptype_add(3,5); + } + /** + * 文化四板文件类型添加:风控 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function uptype_add4(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==6 or $status==21) + return $this->uptype_add(4,$status); + else + return $this->uptype_add(4,6); + } + /** + * 文化四板文件类型添加:缴费确认 + * 缴费中(联席会已复议):22 + * 缴费确认中(联席会已复议):39 + */ + public function uptype_add6(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==9 or $status==12 or $status==22 or $status==39) + return $this->uptype_add(6,$status); + else + return $this->uptype_add(6,12); + } + /** + * 文化四板文件类型添加:专家审核确认 + * 专家评分中(联席会已复议):23 + */ + public function uptype_add8(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==14 or $status==15 or $status==23) + return $this->uptype_add(8,$status); + else + return $this->uptype_add(8,15); + } + /** + * 文化四板文件类型添加:联席会 + */ + public function uptype_add9(){ + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==4 or $status==8 or $status==11 or $status==13 or $status==17 or $status==34 or $status==16 or $status==28) + return $this->uptype_add(9,$status); + else + return $this->uptype_add(9,16); + } + /** + * 文化四板文件类型添加:材料核实 + */ + public function uptype_add10(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==25 or $status==46 or $status==47) + return $this->uptype_add(10,$status); + else + return $this->uptype_add(10,25); + } + /** + * 文化四板文件类型添加:公告材料核实 + */ + public function uptype_add11(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==48 or $status==29 or $status==27) + return $this->uptype_add(11,$status); + else + return $this->uptype_add(11,48); + } + + /** + * 文化四板文件类型添加:挂牌审核 + */ + public function uptype_add12(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==51 or $status==30) + return $this->uptype_add(12,$status); + else + return $this->uptype_add(12,51); + } + /** + * 文化四板固定文件类型修改 + */ + public function uptype_edit(){ + if(!request()->isAjax()) { + //创建token + creatToken(); + + $ftype_id = input('ftype_id', 0, 'intval'); + if (!$ftype_id) $this->error('参数错误', url('cult4/Cult4/uptype_list')); + $uptype = Db::name('cult4uptype')->where('ftype_id', $ftype_id)->find(); + $this->assign('uptype', $uptype); + + $where['status'] = array('egt',0); + $statuslist=Db::name('cult4status')->where($where)->select(); + $this->assign('statuslist',$statuslist); + + $list1=array(); + if($uptype['upload_role_type']==1){ + $map1['member_group_id']=array(array('gt',0),array('neq',2));//>0 and !=2 + $list1=Db::name("member_group")->field(array('member_group_id'=>'id','member_group_name'=>'name'))->where($map1)->select(); + }elseif($uptype['upload_role_type']==2){ + $map2['id']=array('gt',0); + $list1=Db::name("auth_group")->field(array('id'=>'id','title'=>'name'))->where($map2)->select(); + } + $this->assign('list1',$list1); + $list2=array(); + if($uptype['upload_role_type2']==1){ + $map1['member_group_id']=array(array('gt',0),array('neq',2));//>0 and !=2 + $list2=Db::name("member_group")->field(array('member_group_id'=>'id','member_group_name'=>'name'))->where($map1)->select(); + }elseif($uptype['upload_role_type2']==2){ + $map2['id']=array('gt',0); + $list2=Db::name("auth_group")->field(array('id'=>'id','title'=>'name'))->where($map2)->select(); + } + $this->assign('list2',$list2); + return $this->fetch(); + }else{ + $roletype=input('roletype'); + $roleid=input('roletitle'); + $roletype2=input('roletype2'); + $roleid2=input('roletitle2'); + if($roletype<=0 or $roleid<=0) + { + $this->error('请选择资料上传类型及对应的角色!'); + } + if(empty($roletype2))$roletype2=0; + if(empty($roleid2))$roleid2=0; + if(!(($roletype2==0 and $roleid2==0) or ($roletype2>0 and $roleid2>0) or ($roletype2<=0 and $roleid2<=0))) + { + $this->error('请选择资料辅助上传类型及对应的角色!'); + } + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + + //固定 + $apply_id = 0; + $apply_type=input('apply_type'); + $gp_level=input('gp_level'); + $c_type=input('c_type'); + $p_type=input('p_type'); + $mustupload=input('mustupload'); + + //上传模板部分 + $file_id=0; + //支持多个字段单文件 + $file = request()->file('file_one'); + $file_one=''; + + if(!empty($file)){ + $validate = config('upload_validate'); + unset($validate['ext']);//不限制后缀 + //单图 + $info = $file->validate($validate)->rule('uniqid')->move(ROOT_PATH . config('upload_path') . DS . date('Y-m-d')); + + if ($info) { + $file_url = config('upload_path'). '/' . date('Y-m-d') . '/' . $info->getFilename(); + //写入数据库 + $data['apply_id'] = 0;//模板文件未使用该字段 + $data['user_id'] = session('admin_auth.aid'); + $data['user_type'] = 2; + $data['status'] = input('status'); + $data['upload_time'] = time(); + $data['ftype_id'] = 0;//模板文件为0 + $data['ftype'] = 3;//模板类型 + $data['filesize'] = $info->getSize(); + $data['path'] = $file_url; + $data['addorder'] = 0;//固定文件需要更新 + $data['new_flag'] = 1;//固定文件需要更新 + + $file_id = Db::name('cult4upfiles')->insert($data,false,true); + + } else { + $this->error($file->getError());//否则就是上传错误,显示错误原因 + } + }else{ + $file_id = input('ftemp_id'); + $data['file_id'] = $file_id;//模板文件未使用该字段 + $data['status'] = input('status'); + Db::name('cult4upfiles')->where('file_id',$file_id)->update($data); + } + $sl_data=array( + 'ftype_id'=>input('ftype_id'), + 'ftypedescr'=>input('ftypedescr'), + 'ftemp_id' => $file_id, + 'gp_level' => $gp_level, + 'apply_type' => $apply_type, + 'c_type' => $c_type, + 'p_type' => $p_type, + 'mustupload' => $mustupload, + 'ftype'=>input('ftype'), + 'status'=>input('status'), + 'isopen'=>input('isopen',0), + 'apply_id'=>$apply_id, + 'user_id'=>session('admin_auth.aid'), + 'create_time'=>time(), + 'upload_role_type'=>$roletype, + 'upload_role_id'=>$roleid, + 'upload_role_type2'=>$roletype2, + 'upload_role_id2'=>$roleid2, + ); + $uptype_id=Db::name('cult4uptype')->where('ftype_id',input('ftype_id'))->update($sl_data); + if($uptype_id){ + $this->success('文件类型修改成功',url('cult4/Cult4/uptype_list')); + }else{ + $this->error('文件类型修改失败'); + } + } + } + + + + /** + * 文化四板文件类型添加操作 + */ + public function uptype_runadd($process=-1,$status=-1) + { + //添加固定内容 + if (!($process == -1 or $status ==-1)) { + //权限检查 + if (check_cult4UserRight(input('apply_id'), session('admin_auth.aid'), $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + } + + $roletype=input('roletype'); + $roleid=input('roletitle'); + $roletype2=input('roletype2'); + $roleid2=input('roletitle2'); + if($roletype<=0 or $roleid<=0) + { + $this->error('请选择资料上传类型及对应的角色!'); + } + if(empty($roletype2))$roletype2=0; + if(empty($roleid2))$roleid2=0; + if(!(($roletype2==0 and $roleid2==0) or ($roletype2>0 and $roleid2>0) or ($roletype2<=0 and $roleid2<=0))) + { + $this->error('请选择资料辅助上传类型及对应的角色!'); + } + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + //return; + } + + //状态为-1时对应固定文件 + $apply_id=input('apply_id'); + $whereType=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1, + ); + $apply_type=Db::name('cult4baseinfo')->where($whereType)->value('apply_type'); + $c_type=Db::name('cult4baseinfo')->where($whereType)->value('c_type'); + $p_type=Db::name('cult4baseinfo')->where($whereType)->value('p_type'); + $mustupload=1; + if($process==-1){ + $apply_id = 0; + $apply_type=input('apply_type'); + $c_type=input('c_type'); + $p_type=input('p_type'); + $mustupload=input('mustupload'); + } + + //上传模板部分 + $file_id=0; + //支持多个字段单文件 + $file = request()->file('file_one'); + $file_one=''; + + if(!empty($file)){ + $validate = config('upload_validate'); + unset($validate['ext']);//不限制后缀 + //单图 + $info = $file->validate($validate)->rule('uniqid')->move(ROOT_PATH . config('upload_path') . DS . date('Y-m-d')); + + if ($info) { + $file_url = config('upload_path'). '/' . date('Y-m-d') . '/' . $info->getFilename(); + //写入数据库 + $data['apply_id'] = 0;//模板文件未使用该字段 + $data['user_id'] = session('admin_auth.aid'); + $data['user_type'] = 2; + $data['status'] = $status; + $data['upload_time'] = time(); + $data['ftype_id'] = 0;//模板文件为0 + $data['ftype'] = 3;//模板类型 + $data['filesize'] = $info->getSize(); + $data['path'] = $file_url; + $data['addorder'] = 0;//固定文件需要更新 + $data['new_flag'] = 1;//固定文件需要更新 + + $file_id = Db::name('cult4upfiles')->insert($data,false,true); + + } else { + $this->error($file->getError());//否则就是上传错误,显示错误原因 + } + } + if ($process == -1 or $status ==-1) { + $uptype_id=UptypeModel::add(input('gp_level'),$apply_type,$c_type,$p_type,input('ftypedescr'),$file_id,input('ftype'),input('status'),input('isopen',0),0,session('admin_auth.aid'),$roletype,$roleid,$roletype2,$roleid2,$mustupload); + if($uptype_id){ + $this->success('文件类型添加成功',url('cult4/Cult4/uptype_list')); + }else{ + $this->error('文件类型添加失败'); + } + }else{ + $uptype_id=UptypeModel::add(input('gp_level'),$apply_type,$c_type,$p_type,input('ftypedescr'),$file_id,input('ftype'),$status,input('isopen',0),$apply_id,session('admin_auth.aid'),$roletype,$roleid,$roletype2,$roleid2); + if($uptype_id){ + $sl_data2['apply_id']=input('apply_id'); + $sl_data2['status']=$status; + $this->success('文件类型添加成功',url('cult4/Cult4/uptype_list'.$process,$sl_data2)); + }else{ + $this->error('文件类型添加失败'); + } + } + } + /** + * 文化四板文件类型添加操作:初审 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function uptype_runadd1(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==1 or $status==19) + $this->uptype_runadd(1,$status); + else + $this->uptype_runadd(1,1); + } + /** + * 文化四板文件类型添加操作:尽职调查 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function uptype_runadd2(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==2 or $status==36) + $this->uptype_runadd(2,$status); + else + $this->uptype_runadd(2,2); + } + /** + * 文化四板文件类型添加操作:复审 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function uptype_runadd3(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==5 or $status==20) + $this->uptype_runadd(3,$status); + else + $this->uptype_runadd(3,5); + } + /** + * 文化四板文件类型添加操作:风控 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function uptype_runadd4(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==6 or $status==21) + $this->uptype_runadd(4,$status); + else + $this->uptype_runadd(4,6); + } + /** + * 文化四板文件类型添加操作:缴费确认 + * 缴费中(联席会已复议):22 + * 缴费确认中(联席会已复议):39 + */ + public function uptype_runadd6(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==9 or $status==12 or $status==22 or $status==39) + $this->uptype_runadd(6,$status); + else + $this->uptype_runadd(6,12); + } + /** + * 文化四板文件类型添加操作:专家审核确认 + * 专家评分中(联席会已复议):23 + */ + public function uptype_runadd8(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==14 or $status==15 or $status==23) + $this->uptype_runadd(8,$status); + else + $this->uptype_runadd(8,15); + } + /** + * 文化四板文件类型添加操作:联席会 + */ + public function uptype_runadd9(){ + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==4 or $status==8 or $status==11 or $status==13 or $status==17 or $status==34 or $status==16 or $status==28) + $this->uptype_runadd(9,$status); + else + $this->uptype_runadd(9,16); + } + /** + * 文化四板文件类型添加操作:材料审核 + */ + public function uptype_runadd10(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==25 or $status==46 or $status==47) + $this->uptype_runadd(10,$status); + else + $this->uptype_runadd(10,25); + } + /** + * 文化四板文件类型添加操作:公告材料审核 + */ + public function uptype_runadd11(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==48 or $status==29 or $status==27) + $this->uptype_runadd(11,$status); + else + $this->uptype_runadd(11,48); + } + + /** + * 文化四板文件类型添加操作:挂牌上市审核 + */ + public function uptype_runadd12(){ + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==51 or $status==30) + $this->uptype_runadd(12,$status); + else + $this->uptype_runadd(12,51); + } + + + + /** + * 文化四板文件类型列表开启/禁止 + */ + public function uptype_state($process=-1,$status=-1) + { + $id=input('x'); + if (empty($id)){ + //如果不是固定添加类型 + if (!($process == -1 or $status ==-1)) { + $this->error('文件ID不存在', url('cult4/Cult4/uptype_list' . $process)); + }else{ + $this->error('文件ID不存在', url('cult4/Cult4/uptype_list')); + } + } + + //取得apply_id + $apply_id=get_cult4ApplyIDFromTempID($id); + if($apply_id==-1){ + $this->error('无权限',url('admin/Index/index')); + } + + //如果不是固定添加类型 + if (!($process == -1 or $status ==-1 or $apply_id==0)) { + //权限检查 + if (check_cult4UserRight($apply_id, session('admin_auth.aid'), $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + } + + $isopen=Db::name('cult4uptype')->where('ftype_id',$id)->value('isopen');//判断当前状态情况 + if($isopen==1){ + $statedata = array('isopen'=>0); + Db::name('cult4uptype')->where('ftype_id',$id)->setField($statedata); + $this->success('状态禁止'); + }else{ + $statedata = array('isopen'=>1); + Db::name('cult4uptype')->where('ftype_id',$id)->setField($statedata); + $this->success('状态开启'); + } + } + /** + * 文化四板文件类型列表开启/禁止 初审 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function uptype_state1() + { + $id=input('x'); + if (empty($id)){ + //如果不是固定添加类型 + $this->error('文件ID不存在', url('cult4/Cult4/uptype_list1')); + } + + //取得apply_id + $apply_id=get_cult4ApplyIDFromTempID($id); + if($apply_id==-1){ + $this->error('无权限',url('admin/Index/index')); + } + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==1 or $status==19) + $this->uptype_state(1,$status); + else + $this->uptype_state(1,1); + } + /** + * 文化四板文件类型列表开启/禁止 尽职调查 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function uptype_state2() + { + $id=input('x'); + if (empty($id)){ + //如果不是固定添加类型 + $this->error('文件ID不存在', url('cult4/Cult4/uptype_list2')); + } + + //取得apply_id + $apply_id=get_cult4ApplyIDFromTempID($id); + if($apply_id==-1){ + $this->error('无权限',url('admin/Index/index')); + } + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==2 or $status==36) + $this->uptype_state(2,$status); + else + $this->uptype_state(2,2); + } + /** + * 文化四板文件类型列表开启/禁止 复审 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function uptype_state3() + { + $id=input('x'); + if (empty($id)){ + //如果不是固定添加类型 + $this->error('文件ID不存在', url('cult4/Cult4/uptype_list3')); + } + + //取得apply_id + $apply_id=get_cult4ApplyIDFromTempID($id); + if($apply_id==-1){ + $this->error('无权限',url('admin/Index/index')); + } + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==5 or $status==20) + $this->uptype_state(3,$status); + else + $this->uptype_state(3,5); + } + /** + * 文化四板文件类型列表开启/禁止 风控 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function uptype_state4() + { + $id=input('x'); + if (empty($id)){ + //如果不是固定添加类型 + $this->error('文件ID不存在', url('cult4/Cult4/uptype_list6')); + } + + //取得apply_id + $apply_id=get_cult4ApplyIDFromTempID($id); + if($apply_id==-1){ + $this->error('无权限',url('admin/Index/index')); + } + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==6 or $status==21) + $this->uptype_state(4,$status); + else + $this->uptype_state(4,6); + } + /** + * 文化四板文件类型列表开启/禁止 缴费确认 + * 缴费中(联席会已复议):22 + * 缴费确认中(联席会已复议):39 + */ + public function uptype_state6() + { + $id=input('x'); + if (empty($id)){ + //如果不是固定添加类型 + $this->error('文件ID不存在', url('cult4/Cult4/uptype_list6')); + } + + //取得apply_id + $apply_id=get_cult4ApplyIDFromTempID($id); + if($apply_id==-1){ + $this->error('无权限',url('admin/Index/index')); + } + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==12 or $status==39)// or $status==22 + $this->uptype_state(6,$status); + else + $this->uptype_state(6,12); + } + /** + * 文化四板文件类型列表开启/禁止 专家审核确认 + * 专家评分中(联席会已复议):23 + */ + public function uptype_state8() + { + $id=input('x'); + if (empty($id)){ + //如果不是固定添加类型 + $this->error('文件ID不存在', url('cult4/Cult4/uptype_list8')); + } + + //取得apply_id + $apply_id=get_cult4ApplyIDFromTempID($id); + if($apply_id==-1){ + $this->error('无权限',url('admin/Index/index')); + } + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==14 or $status==15 or $status==23) + $this->uptype_state(8,$status); + else + $this->uptype_state(8,15); + } + /** + * 文化四板文件类型列表开启/禁止 联席会 + */ + public function uptype_state9() + { + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $id=input('x'); + if (empty($id)){ + $this->error('文件ID不存在', url('cult4/Cult4/uptype_list9')); + } + + //取得apply_id + $apply_id=get_cult4ApplyIDFromTempID($id); + if($apply_id==-1){ + $this->error('无权限',url('admin/Index/index')); + } + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status==4 or $status==8 or $status==11 or $status==13 or $status==17 or $status==34 or $status==16 or $status==28) + $this->uptype_state(9,$status); + else + $this->uptype_state(9,16); + } + /** + * 文化四板文件类型列表开启/禁止 材料审核 + */ + public function uptype_state10() + { + $id=input('x'); + if (empty($id)){ + //如果不是固定添加类型 + $this->error('文件ID不存在', url('cult4/Cult4/uptype_list8')); + } + + //取得apply_id + $apply_id=get_cult4ApplyIDFromTempID($id); + if($apply_id==-1){ + $this->error('无权限',url('admin/Index/index')); + } + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==25 or $status==46 or $status==47) + $this->uptype_state(10,$status); + else + $this->uptype_state(10,25); + } + /** + * 文化四板文件类型列表开启/禁止 公告材料审核 + */ + public function uptype_state11() + { + $id=input('x'); + if (empty($id)){ + //如果不是固定添加类型 + $this->error('文件ID不存在', url('cult4/Cult4/uptype_list8')); + } + + //取得apply_id + $apply_id=get_cult4ApplyIDFromTempID($id); + if($apply_id==-1){ + $this->error('无权限',url('admin/Index/index')); + } + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==48 or $status==29 or $status==27) + $this->uptype_state(11,$status); + else + $this->uptype_state(11,48); + } + + /** + * 文化四板文件类型列表开启/禁止 挂牌上市审核 + */ + public function uptype_state12() + { + $id=input('x'); + if (empty($id)){ + //如果不是固定添加类型 + $this->error('文件ID不存在', url('cult4/Cult4/uptype_list8')); + } + + //取得apply_id + $apply_id=get_cult4ApplyIDFromTempID($id); + if($apply_id==-1){ + $this->error('无权限',url('admin/Index/index')); + } + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==51 or $status==30) + $this->uptype_state(12,$status); + else + $this->uptype_state(12,51); + } + + + + + + + /* + * 后台上传操作 + */ + public function apply_runupload($process,$status){ + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + + //当前后台用户对应的组 + $group=Db::name('auth_group_access')->where('uid',$user_id)->find(); + $groupid=0; + if(!(empty($group))){ + $groupid=$group['group_id']; + } + + //上传资料列表提交 + //取得apply_id对应的用户对应状态下的所有固定文件类型最新记录 + $whereType=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1, + ); + $apply_type=Db::name('cult4baseinfo')->where($whereType)->value('apply_type'); + if($process>0)$apply_type=-1; + $c_type=Db::name('cult4baseinfo')->where($whereType)->value('c_type'); + $p_type=Db::name('cult4baseinfo')->where($whereType)->value('p_type'); + $apply_uptypelist_checkdd=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,1,$status,1); + foreach($apply_uptypelist_checkdd as $k=>$v){ + //如果后台有上传权限($groupid==1超级管理员可以上传) + if($groupid==1 or (($v['upload_role_type']==2) and ($v['upload_role_id']==$groupid) ) or (($v['upload_role_type2']==2) and ($v['upload_role_id2']==$groupid)) ){ + //找到当前最大addorder + $addorder=0; + $where4=array( + 'apply_id'=>$apply_id, + 'ftype_id'=>$v['ftype_id'], + 'ftype'=>1,//固定 + 'flag'=>0,//未审核 + ); + $check=Db::name('cult4upfiles')->where($where4)->order('addorder desc') ->find (); + if(!empty($check)){ + $addorder = $check['addorder'] + 1; + } + //上传资料部分 + $file_id=0; + //支持多个字段单文件 + $file = request()->file('file'.$v['ftype_id']); + $file_one=''; + + if(!empty($file)){ + //更新所有历史记录new_flag为0 + Db::name('cult4upfiles')->where($where4)->update(['new_flag'=>0]); + + $validate = config('upload_validate'); + unset($validate['ext']);//不限制后缀 + //单图 + $info = $file->validate($validate)->rule('uniqid')->move(ROOT_PATH . config('upload_path') . DS . date('Y-m-d')); + + if ($info) { + $file_url = config('upload_path'). '/' . date('Y-m-d') . '/' . $info->getFilename(); + //写入数据库 + $data['apply_id'] = $apply_id; + $data['user_id'] = $user_id; + $data['user_type'] = 2;//后台 + $data['status'] = $status; + $data['upload_time'] = time(); + $data['ftype_id'] = $v['ftype_id']; + $data['ftype'] = 1;//固定 + $data['filesize'] = $info->getSize(); + $data['path'] = $file_url; + $data['addorder'] = $addorder; + $data['new_flag'] = 1;//最新 + $data['flag'] = 1;//后台审核完上传,无需再审 + + $file_id = Db::name('cult4upfiles')->insert($data,false,true); + } else { + $this->error($file->getError());//否则就是上传错误,显示错误原因 + } + } + + } + } + + //取得apply_id对应的用户对应状态下的所有补充文件类型最新记录 + $apply_uptypelist_tempcheckdd=UptypeModel::getList($apply_type,$c_type,$p_type,$apply_id,2,$status,1); + foreach($apply_uptypelist_tempcheckdd as $k=>$v){ + //如果后台有上传权限 + if($groupid==1 or (($v['upload_role_type']==2) and ($v['upload_role_id']==$groupid) ) or (($v['upload_role_type2']==2) and ($v['upload_role_id2']==$groupid)) ){ + //找到当前最大addorder + $addorder=0; + $where5=array( + 'apply_id'=>$apply_id, + 'ftype_id'=>$v['ftype_id'], + 'ftype'=>2,//临时 + 'flag'=>0,//未审核 + ); + $check=Db::name('cult4upfiles')->where($where5)->order('addorder desc') ->find (); + if(!empty($check)){ + $addorder = $check['addorder'] + 1; + } + //上传资料部分 + $file_id=0; + //支持多个字段单文件 + $file = request()->file('file'.$v['ftype_id']); + $file_one=''; + + if(!empty($file)){ + //更新所有历史记录new_flag为0 + Db::name('cult4upfiles')->where($where5)->update(['new_flag'=>0]); + + $validate = config('upload_validate'); + unset($validate['ext']);//不限制后缀 + //单图 + $info = $file->validate($validate)->rule('uniqid')->move(ROOT_PATH . config('upload_path') . DS . date('Y-m-d')); + + if ($info) { + $file_url = config('upload_path'). '/' . date('Y-m-d') . '/' . $info->getFilename(); + //写入数据库 + $data['apply_id'] = $apply_id; + $data['user_id'] = $user_id; + $data['user_type'] = 2;//后台 + $data['status'] = $status; + $data['upload_time'] = time(); + $data['ftype_id'] = $v['ftype_id']; + $data['ftype'] = 2;//临时 + $data['filesize'] = $info->getSize(); + $data['path'] = $file_url; + $data['addorder'] = $addorder; + $data['new_flag'] = 1;//最新 + $data['flag'] = 1;//后台审核完上传,无需再审 + + $file_id = Db::name('cult4upfiles')->insert($data,false,true); + + } else { + $this->error($file->getError());//否则就是上传错误,显示错误原因 + } + } + + } + } + $this->success('上传成功'); + } + /* + * 初审 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function apply_runupload1() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==1 or $status==19) + $this->apply_runupload(1,$status); + else + $this->apply_runupload(1,1); + } + /* + * 尽调 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function apply_runupload2() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==2 or $status==36) + $this->apply_runupload(2,$status); + else + $this->apply_runupload(2,2); + } + /* + * 复审 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function apply_runupload3() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==5 or $status==20) + $this->apply_runupload(3,$status); + else + $this->apply_runupload(3,5); + } + /* + * 风控 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function apply_runupload4() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==6 or $status==21) + $this->apply_runupload(4,$status); + else + $this->apply_runupload(4,6); + } + /* + * 缴费确认中 + * 缴费确认中(联席会已复议):39 + */ + public function apply_runupload6() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==9 or $status==12 or $status==22 or $status==39) + $this->apply_runupload(6,$status); + else + $this->apply_runupload(6,12); + } + /* + * 专家审核确认 + * 专家评分中(联席会已复议):23 + */ + public function apply_runupload8() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==14 or $status==15 or $status==23) + $this->apply_runupload(8,$status); + else + $this->apply_runupload(8,15); + } + /* + * 联席会 + */ + public function apply_runupload9() + { + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==4 or $status==8 or $status==11 or $status==13 or $status==17 or $status==34 or $status==16 or $status==28) + $this->apply_runupload(9,$status); + else + $this->apply_runupload(9,16); + } + /* + * 材料核实 + */ + public function apply_runupload10() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==25 or $status==46 or $status==47) + $this->apply_runupload(10,$status); + else + $this->apply_runupload(10,25); + } + /* + * 后台上传操作 + */ + public function apply_runuploadlogo(){ + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + //权限检查 + if ((check_cult4UserRight($apply_id, $user_id, 27) == 0) && (check_cult4UserRight($apply_id, $user_id, 48) == 0) && (check_cult4UserRight($apply_id, $user_id, 29) == 0)) { + $this->error('无权限',url('home/Listn/ts_insert_gy')); + } + + $file = request()->file('filelogo'); + if(!empty($file)) { + $validate = config('upload_validate'); + unset($validate['ext']);//不限制后缀 + //单图 + $info = $file->validate($validate)->rule('uniqid')->move(ROOT_PATH . config('upload_path') . DS . date('Y-m-d')); + + if ($info) { + $file_url = config('upload_path') . '/' . date('Y-m-d') . '/' . $info->getFilename(); + } + }else { + $this->error('Logo上传失败',url('home/Listn/ts_insert_gy#nm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + $data = [ + 'logo' => $file_url, + ]; + $where = [ + 'apply_id' => $apply_id, + 'new_flag' => 1, + ]; + Db::name('cult4baseinfo')->where($where)->update($data); + + $this->success('上传成功',url('home/Listn/ts_insert_logo#nm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + // $this->success('上传成功',url('cult4/Cult4/apply_check12#nm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + public function apply_runbasecode(){ + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + //权限检查 + if ((check_cult4UserRight($apply_id, $user_id, 27) == 0) && (check_cult4UserRight($apply_id, $user_id, 48) == 0) && (check_cult4UserRight($apply_id, $user_id, 29) == 0)) { + $this->error('无权限',url('home/Listn/ts_insert_hm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + $status=48;//公告资料提交中(已提交基础信息):48 + Db::startTrans(); + try{ + $data = [ + 'pay_img' => "", + ]; + $where = [ + 'apply_id' => $apply_id, + ]; + Db::name('cult4apply')->where($where)->update($data); + //cult4baseinfo修改记录 + $data = [ + 'shortname' => input('shortname'), + 'codetype' => input('codetype'), + 'code_id' => input('saleno',0), + ]; + $where = [ + 'apply_id' => $apply_id, + 'new_flag' => 1, + ]; + Db::name('cult4baseinfo')->where($where)->update($data); + + //修改主表 + $data = [ + 'update_time' => time(), + 'update_user_id' => session('hid'), + 'update_user_type' => 1, + 'seq' => 0, + 'status' => $status + ]; + $where2 = [ + 'apply_id' => $apply_id, + ]; + Db::name('cult4apply')->where($where2)->update($data); + + if(input('codetype')==1){ + $sl_data = [ + 'salestatus' => 1 + ]; + $where3 = [ + 'id' => input('saleno',0), + ]; + Db::name('cult4number')->where($where3)->update($sl_data); + } + + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('更新失败',url('cult4/Cult4/apply_check11#nm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + $this->success('更新成功',url('cult4/Cult4/apply_check11#nm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + /* + * 材料核实 + */ + public function apply_runupload11() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==48 or $status==29 or $status==27) + $this->apply_runupload(11,$status); + else + $this->apply_runupload(11,48); + } + + /* + * 挂牌上市 + */ + public function apply_runupload12() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==51 or $status==30) + $this->apply_runupload(12,$status); + else + $this->apply_runupload(12,51); + } + + + + + /* + * 后台文件审核历史查看 + */ + public function apply_uphistory($process,$status){ + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + //if($process==99)$user_id=0; + if($process!=99){ + //权限检查 + if (check_cult4UserRight($apply_id, $user_id, $status) == 0) { + $this->error('无权限'.$process,url('admin/Index/index')); + } + } + + $ftype=-1;//不限制ftype类型 + $ftype_id=input('ftype_id'); + $new_flag=0;//历史记录 + $this->assign('apply_id',$apply_id); + $this->assign('process',$process); + $searchstatus = -1; + $files_list=UpfilesModel::getList($apply_id,$ftype,$searchstatus,$ftype_id,$new_flag); + + $this->assign('files_list',$files_list); + return $this->fetch(); + } + /* + * 初审 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function apply_uphistory1() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==1 or $status==19) + return $this->apply_uphistory(1,$status); + else + return $this->apply_uphistory(1,1); + } + /* + * 尽调 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function apply_uphistory2() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==2 or $status==36) + return $this->apply_uphistory(2,$status); + else + return $this->apply_uphistory(2,2); + } + /* + * 复审 + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function apply_uphistory3() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==5 or $status==20) + return $this->apply_uphistory(3,$status); + else + return $this->apply_uphistory(3,5); + } + /* + * 风控 + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function apply_uphistory4() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==6 or $status==21) + return $this->apply_uphistory(4,$status); + else + return $this->apply_uphistory(4,6); + } + /* + * 缴费确认 + * 缴费确认中(联席会已复议):39 + */ + public function apply_uphistory6() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==9 or $status==12 or $status==22 or $status==39) + return $this->apply_uphistory(6,$status); + else + return $this->apply_uphistory(6,12); + } + /* + * 专家审核确认 + * 专家评分中(联席会已复议):23 + */ + public function apply_uphistory8() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==14 or $status==15 or $status==23) + return $this->apply_uphistory(8,$status); + else + return $this->apply_uphistory(8,15); + } + /* + * 联席会 + */ + public function apply_uphistory9() + { + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //上报中(材料核实未通过):28 + //联席会审核中(已确认专家审核):16 + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==4 or $status==8 or $status==11 or $status==13 or $status==17 or $status==34 or $status==28 or $status==16) + return $this->apply_uphistory(9,$status); + else + return $this->apply_uphistory(9,16); + } + /* + * 材料核实 + */ + public function apply_uphistory10() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==25 or $status==46 or $status==47) + return $this->apply_uphistory(10,$status); + else + return $this->apply_uphistory(10,25); + } + /* + * 公告材料核实 + */ + public function apply_uphistory11() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==48 or $status==29 or $status==27) + return $this->apply_uphistory(11,$status); + else + return $this->apply_uphistory(11,48); + } + + /* + * 挂牌上市审核 + */ + public function apply_uphistory12() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==51 or $status==30) + return $this->apply_uphistory(12,$status); + else + return $this->apply_uphistory(12,51); + } + /* + * 挂牌完成 + */ + public function apply_uphistory_final() + { + $apply_id=input('apply_id'); + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==31) + return $this->apply_uphistory(99,$status); + else + return $this->apply_uphistory(99,31); + } + + + /** + * 文化四板缴费 + */ + public function apply_fee() + { + $id=input('x'); + if (empty($id)){ + $this->error('用户ID不存在', url('cult4/Cult4/apply_list5')); + } + + $apply_id=$id; + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + + if($status!=9 and $status!=12) + $this->error('非缴费状态',url('admin/Index/index')); + + $user_id=session('admin_auth.aid'); + + //更新缴费表为已缴费 + $sl_data['update_id']=$user_id; + $sl_data['update_time']=time(); + $where=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1, + ); + + $flag = Db::name('cult4fee')->where($where)->value('fee_flag',0); + if($flag==1){ + //权限检查 (未被缴费确认用户受理的数据可以取消缴费) + if ( (check_cult4UserRight($apply_id, 0, $status) == 0) and (check_cult4UserRight($apply_id, $user_id, $status) == 0)) { + $this->error('无权限',url('admin/Index/index')); + } + + //更新最新记录为历史记录 + $sl_data['new_flag']=0; + Db::name('cult4fee')->where($where)->update($sl_data); + + //更新缴费表 + $sl_data1['apply_id']=$apply_id; + $sl_data1['fee_flag'] = 0; + $sl_data1['fee'] = 0; + $sl_data1['update_id']=session('admin_auth.aid'); + $sl_data1['update_time']=time(); + $sl_data1['new_flag'] = 1; + $sl_data1['addorder']=0; + //找到当前最大addorder + $addorder=Db::name('cult4fee')->where($where)->order('addorder desc') ->find (); + if(!empty($addorder)){ + $sl_data1['addorder']=$sl_data1['addorder']+1; + } + Db::name('cult4fee')->insert($sl_data1); + + //更新主表状态 + $sl_data2['apply_id']=$apply_id; + $sl_data2['status']=9; + $sl_data2['update_user_id']=$user_id; + $sl_data2['update_user_type']=2;//后台 + $sl_data2['update_time']=time(); + $sl_data2['apply_admin_id']=0; + $where2=array( + 'apply_id'=>$apply_id, + 'status'=>12, + ); + Db::name('cult4apply')->where($where2)->update($sl_data2); + + $this->success('当前未缴费'); + }else{ + //权限检查 + if (check_cult4UserRight($apply_id, $user_id, $status) == 0) { + $this->error('无权限',url('admin/Index/index')); + } + + //更新最新记录为历史记录 + $sl_data['new_flag']=0; + Db::name('cult4fee')->where($where)->update($sl_data); + + //更新缴费表 + $sl_data1['apply_id']=$apply_id; + $sl_data1['fee_flag'] = 1; + $sl_data1['fee'] = 0; + $sl_data1['update_id']=session('admin_auth.aid'); + $sl_data1['update_time']=time(); + $sl_data1['new_flag'] = 1; + $sl_data1['addorder']=0; + //找到当前最大addorder + $addorder=Db::name('cult4fee')->where($where)->order('addorder desc') ->find (); + if(!empty($addorder)){ + $sl_data1['addorder']=$sl_data1['addorder']+1; + } + Db::name('cult4fee')->insert($sl_data1); + + //更新主表状态 + $sl_data2['apply_id']=$apply_id; + $sl_data2['status']=12; + $sl_data2['update_user_id']=$user_id; + $sl_data2['update_user_type']=2;//后台 + $sl_data2['update_time']=time(); + $sl_data2['apply_admin_id']=0; + $where2=array( + 'apply_id'=>$apply_id, + 'status'=>9, + ); + Db::name('cult4apply')->where($where2)->update($sl_data2); + + $this->success('当前已缴费'); + } + + + } + + + + + + + + + + /* + * 初审操作 + * 初审中(已提交):1 + * 初审中(联席会已复议):19 + */ + public function apply_runcheck1(){ + //本处理对应状态 + $chkStatusArray = array(1, 19); + $apply_id=input('apply_id'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('admin/Index/index')); + + if (!request()->isAjax()){ + $this->error('提交方式不正确');//,url('cult4/Cult4/apply_list1') + }else { + //下面相关业务代码 + if(input('submitType')==1) { + $status =2;//尽调中(初审已通过):2 + }elseif(input('submitType')==2) { + $status = 3;//挂牌会员修改中(初审未通过):3 + }elseif(input('submitType')==3){ + $status = 4;//上报中(初审未通过):4 + }elseif(input('submitType')==4 || input('submitType')==9){ + $status = 32;//补交材料中(初审未通过):32 + } + $passStatus=2; + $reuploadStatus=32; + + if(config('cult4advice.check')==1) + { + if(input('advice')=='') + { + $this->error('请输入初审意见!'); + } + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + if( count(get_unuploadfiles($apply_id,-1,1)) > 0) { + if($status==$passStatus) + $this->error('如果文件已经审核完成,请点击补交材料!如果文件未提交或未审核,请先审核或上传文件!'); + if($status==$reuploadStatus){ + $rst=get_unuploadfiles($apply_id,$status,1,-1,1); + + //查看是否有推荐机构上传资料 + $rst2=get_unuploadfiles($apply_id,$status,1,-1,4); + + if(count($rst)==0) { + if(count($rst2)>0) { + if(!$baseinfo['member_recmd']){ + $this->error('未关联推荐机构,请代推荐机构添加要补交的材料!'); + } + }else{ + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + } + } + }else{ + if($status==$reuploadStatus || $status==9) + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + Db::startTrans(); + try{ + //更新初审表 + $sl_data['apply_id']=input('apply_id'); + $sl_data['advice'] = input('advice',"未填写"); + $sl_data['create_id']=session('admin_auth.aid'); + $sl_data['create_time']=time(); + //找到当前最大addorder + $where=array( + 'apply_id'=>input('apply_id'), + ); + $check=Db::name('cult4check')->where($where)->order('addorder desc') ->find (); + if(!empty($check)){ + $sl_data['addorder']=$check['addorder']+1; + }else{ + $sl_data['addorder']=0; + } + Db::name('cult4check')->insert($sl_data); + + //更新基本信息表为已审核 + $sl_data2['base_id']=input('base_id'); + $sl_data2['flag']=1; + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + + //更新主表 + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=$status; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + $sl_data3['apply_admin_id']=0; + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus,//array(array('eq',1),array('eq',$admin_id),'or') + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if($status==$reuploadStatus){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + + if( $baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + } + $username=get_cult4UserName($apply['user_id'],1); + $advice=input('advice',"未填写"); + $advi=input('advice'); + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==3 || $status==32){ + $sys=Options::get_options('begincheck_options',$this->lang); + $defaultFileLink=$advice.'
请点击: 补充资料'; + $defaultEditLink=$advice.'
请点击: 修改资料'; + $defaultFullLink=$advice.'
请点击: 修改资料
请点击: 补充资料'; + $defaultNotice='您(或您关联)的【'.$baseinfo_name.'】挂牌申请初审不通过,需要您重新修改信息或上传资料后再提交。'.$defaultFullLink; + $sys['content_tpl']=isset($sys['content_tpl'])?$sys['content_tpl']:$defaultNotice; + $notice=$sys['content_tpl']; + $notice=str_replace('#COMNAME#',$username,$notice); + $notice=str_replace('#APPLYNAME#',$baseinfo_name,$notice); + $notice=str_replace('#DATE#',date('Y年m月d日', time()),$notice); + + if($status==3){ + //审核不通过,回到修改中,由会员前台重写修改提交 + $notice_title='您(或您关联)的【'.$baseinfo_name.'】挂牌申请初审不通过,请修改资料!'; + $notice=str_replace('#APPLYCONTENTS#',$defaultEditLink,$notice); + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==32){ + if(input('submitType')==9) { + $notice_title='您(或您关联)的【'.$baseinfo_name.'】挂牌申请初审不通过,请修改及补充资料!'; + $notice=str_replace('#APPLYCONTENTS#',$defaultFullLink,$notice); + }else{ + $notice_title='您(或您关联)的【'.$baseinfo_name.'】挂牌申请初审不通过,请补充资料!'; + $notice=str_replace('#APPLYCONTENTS#',$defaultFileLink,$notice); + } + //需要上传的文件 + $unpassfiles=get_unuploadfiles($apply_id,$status,1); + $has_send=[]; + foreach ($unpassfiles as $v){ + if($v['upload_role_type']==1){ + $to_uids=[]; + if($v['upload_role_id']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + if($v['upload_role_type2']==1){ + $to_uids=[]; + if($v['upload_role_id2']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id2']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id2']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + } + } + } + //推送给推荐会员尽调 + if($status==2){ + //推荐会员 + $to_uid=$baseinfo['member_recmd']; + if($to_uid){ + $notice_title='【'.$baseinfo_name.'】挂牌申请需要您做尽职调查!'; + $notice='您关联的【'.$baseinfo_name.'】申请需要您做尽职调查。
请点击: 尽职调查'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + } + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('初审失败'); + } + $this->success('初审成功',url('cult4/Cult4/apply_list1')); + } + } + /* + * 尽职调查操作 + * 尽调中(初审已通过):2 + * 尽调中(联席会已复议):36 + */ + public function apply_runcheck2(){ + //本处理对应状态 + $chkStatusArray = array(2, 36); + $apply_id=input('apply_id'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('admin/Index/index')); + + if (!request()->isAjax()){ + $this->error('提交方式不正确');//,url('cult4/Cult4/apply_list1') + }else { + //下面相关业务代码 + if(input('submitType')==1) { + $status = 5;//复审中(已尽调):5 + }elseif(input('submitType')==2) { + $status = 33;//挂牌会员修改中(尽调未通过):33 + }elseif(input('submitType')==3){ + $status = 34;//上报中(尽调未通过):34 + }elseif(input('submitType')==4){ + $status = 35;//补交材料中(尽调未通过):35 + } + $passStatus=5; + $reuploadStatus=35; + if(config('cult4advice.checkdd')==1) + { + if(input('advice')=='') + { + $this->error('请输入尽调意见!'); + } + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + if( count(get_unuploadfiles($apply_id,-1,2)) > 0) { + if($status==$passStatus) + $this->error('如果文件已经审核完成,请点击补交材料!如果文件未提交或未审核,请先审核或上传文件!'); + if($status==$reuploadStatus){ + //查看是否有前台会员上传资料 + $rst=get_unuploadfiles($apply_id,$status,2,-1,1); + //查看是否有推荐机构上传资料 + $rst2=get_unuploadfiles($apply_id,$status,2,-1,4); + + if(count($rst)==0) { + if(count($rst2)>0) { + if(!$baseinfo['member_recmd']){ + $this->error('未关联推荐机构,请代推荐机构添加要补交的材料!'); + } + }else{ + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + } + } + }else{ + if($status==$reuploadStatus) + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + + Db::startTrans(); + + try{ + //更新尽调表cult4checkdd + $sl_data['apply_id']=$apply_id; + $sl_data['advice'] = input('advice',"未填写"); + $sl_data['create_id']=$user_id; + $sl_data['create_time']=time(); + + //找到当前最大addorder + $where=array( + 'apply_id'=>$apply_id, + ); + $check=Db::name('cult4checkdd')->where($where)->order('addorder desc') ->find (); + if(!empty($check)){ + $sl_data['addorder']=$check['addorder']+1; + }else{ + $sl_data['addorder']=0; + } + Db::name('cult4checkdd')->insert($sl_data); + + //更新基本信息表为已审核cult4baseinfo + $sl_data2['base_id']=input('base_id'); + $sl_data2['flag']=1; + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=6; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + $sl_data3['apply_admin_id']=0; + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus,//array(array('eq',1),array('eq',$admin_id),'or') + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if($status==$reuploadStatus){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==33 || $status==35){ + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + } + if($status==33){ + //审核不通过,回到修改中,由会员前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请尽调不通过!'; + $notice='您的【'.$baseinfo_name.'】申请尽调不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==35){ + //需要上传的文件 + $unpassfiles=get_unuploadfiles($apply_id,$status,2); + $has_send=[]; + foreach ($unpassfiles as $v){ + if($v['upload_role_type']==1){ + $to_uids=[]; + if($v['upload_role_id']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请尽调不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请尽调不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + if($v['upload_role_type2']==1){ + $to_uids=[]; + if($v['upload_role_id2']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id2']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id2']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请尽调不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请尽调不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + } + } + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('尽调失败'); + } + $this->success('尽调成功',url('cult4/Cult4/apply_list2')); + } + } + /* + * 复审中(已尽调):5 + * 复审中(联席会已复议):20 + */ + public function apply_runcheck3(){ + //本处理对应状态 + $chkStatusArray = array(5, 20); + $apply_id=input('apply_id'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('admin/Index/index')); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + if(input('submitType')==1) { + $status = 6;//风控审核中(复审已通过):6 + }elseif(input('submitType')==2) { + $status = 7;//挂牌会员修改中(复审未通过):7 + }elseif(input('submitType')==3){ + $status = 8;//上报中(复审未通过):8 + }elseif(input('submitType')==4){ + $status = 37;//补交材料中(复审未通过):37 + } + $passStatus=6; + $reuploadStatus=37; + if(config('cult4advice.checkreview')==1) + { + if(input('advice')=='') + { + $this->error('请输入复审意见!'); + } + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + if( count(get_unuploadfiles($apply_id,-1,3)) > 0) { + if($status==$passStatus) + $this->error('如果文件已经审核完成,请点击补交材料!如果文件未提交或未审核,请先审核或上传文件!'); + if($status==$reuploadStatus){ + $rst=get_unuploadfiles($apply_id,$status,3,-1,1); + + //查看是否有推荐机构上传资料 + $rst2=get_unuploadfiles($apply_id,$status,3,-1,4); + + if(count($rst)==0) { + if(count($rst2)>0) { + if(!$baseinfo['member_recmd']){ + $this->error('未关联推荐机构,请代推荐机构添加要补交的材料!'); + } + }else{ + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + } + } + }else{ + if($status==$reuploadStatus) + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + + Db::startTrans(); + + try{ + //更新复审表cult4checkreview + $sl_data['apply_id']=$apply_id; + $sl_data['advice'] = input('advice',"未填写"); + $sl_data['create_id']=$user_id; + $sl_data['create_time']=time(); + + //找到当前最大addorder + $where=array( + 'apply_id'=>$apply_id, + ); + $check=Db::name('cult4checkreview')->where($where)->order('addorder desc') ->find (); + if(!empty($check)){ + $sl_data['addorder']=$check['addorder']+1; + }else{ + $sl_data['addorder']=0; + } + Db::name('cult4checkreview')->insert($sl_data); + + //更新基本信息表为已审核cult4baseinfo + $sl_data2['base_id']=input('base_id'); + $sl_data2['flag']=1; + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=$status; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + $sl_data3['apply_admin_id']=0; + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus,//array(array('eq',1),array('eq',$admin_id),'or') + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if($status==$reuploadStatus){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==7 || $status==37){ + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + } + if($status==7){ + //审核不通过,回到修改中,由会员前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请复审不通过!'; + $notice='您的【'.$baseinfo_name.'】申请复审不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==37){ + //需要上传的文件 + $unpassfiles=get_unuploadfiles($apply_id,$status,3); + $has_send=[]; + foreach ($unpassfiles as $v){ + if($v['upload_role_type']==1){ + $to_uids=[]; + if($v['upload_role_id']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请复审不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请复审不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + if($v['upload_role_type2']==1){ + $to_uids=[]; + if($v['upload_role_id2']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id2']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id2']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请复审不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请复审不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + } + } + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('复审失败'); + } + $this->success('复审成功',url('cult4/Cult4/apply_list3')); + } + } + + + + /* + * 风控审核中(复审已通过):6 + * 风控审核中(联席会已复议):21 + */ + public function apply_runcheck4(){ + //本处理对应状态 + $chkStatusArray = array(6, 21); + $apply_id=input('apply_id'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('admin/Index/index')); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + if(input('submitType')==1) { + $status = 9;//缴费中(风控审核通过):9 + }elseif(input('submitType')==2) { + $status = 10;//挂牌会员修改中(风控审核未通过):10 + }elseif(input('submitType')==3){ + $status = 11;//上报中(风控审核未通过):11 + }elseif(input('submitType')==4){ + $status = 38;//补交材料中(风控审核未通过):38 + } + $passStatus=9; + $reuploadStatus=38; + if(config('cult4advice.checkrisk')==1) + { + if(input('advice')=='') + { + $this->error('请输入风控中心审核意见!'); + } + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + if( count(get_unuploadfiles($apply_id,-1,1)) > 0) { + if($status==$passStatus) + $this->error('如果文件已经审核完成,请点击补交材料!如果文件未提交或未审核,请先审核或上传文件!'); + if($status==$reuploadStatus){ + $rst=get_unuploadfiles($apply_id,$status,4,-1,1); + //查看是否有推荐机构上传资料 + $rst2=get_unuploadfiles($apply_id,$status,4,-1,4); + + if(count($rst)==0) { + if(count($rst2)>0) { + if(!$baseinfo['member_recmd']){ + $this->error('未关联推荐机构,请代推荐机构添加要补交的材料!'); + } + }else{ + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + } + } + }else{ + if($status==$reuploadStatus) + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + + Db::startTrans(); + + try{ + //更新复审表cult4checkreview + $sl_data['apply_id']=$apply_id; + $sl_data['advice'] = input('advice',"未填写"); + $sl_data['create_id']=$user_id; + $sl_data['create_time']=time(); + + //找到当前最大addorder + $where=array( + 'apply_id'=>$apply_id, + ); + $check=Db::name('cult4checkrisk')->where($where)->order('addorder desc') ->find (); + if(!empty($check)){ + $sl_data['addorder']=$check['addorder']+1; + }else{ + $sl_data['addorder']=0; + } + Db::name('cult4checkrisk')->insert($sl_data); + + //更新基本信息表为已审核cult4baseinfo + $sl_data2['base_id']=input('base_id'); + $sl_data2['flag']=1; + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=$status; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + $sl_data3['apply_admin_id']=0; + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus,//array(array('eq',1),array('eq',$admin_id),'or') + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if($status==$reuploadStatus){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + $advi= input('advice'); + /** + * 增加通知推送,by rainfer + */ + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + } + //审核不通过时,推送通知 + if($status==10 || $status==38){ + if($status==10){ + //审核不通过,回到修改中,由会员前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请风控审核不通过!'; + $notice='您的【'.$baseinfo_name.'】申请风控审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料
反驳意见:'.$advi.''; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==38){ + //需要上传的文件 + $unpassfiles=get_unuploadfiles($apply_id,$status,4); + $has_send=[]; + foreach ($unpassfiles as $v){ + if($v['upload_role_type']==1){ + $to_uids=[]; + if($v['upload_role_id']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请风控审核不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请风控审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料
反驳意见:'.$advi.''; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + if($v['upload_role_type2']==1){ + $to_uids=[]; + if($v['upload_role_id2']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id2']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id2']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请风控审核不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请风控审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料
反驳意见:'.$advi.''; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + } + } + }elseif($status==8){ + //风控审核通过则发送挂牌上市缴费通知 + $username=get_cult4UserName($apply['user_id'],1); + $notice_title = '【' . $baseinfo_name . '】挂牌上市缴费通知书!'; + $contents=Options::get_options('feecheck_options',$this->lang); + $contents['content_tpl']=isset($contents['content_tpl'])?$contents['content_tpl']:''; + $notice=$contents['content_tpl']; + if($baseinfo["gplevel"]==6){//养成板 + $notice=str_replace('伍万圆整',"伍万圆整",$notice); + }elseif($baseinfo["gplevel"]==5){//天使板 + $notice=str_replace('伍万圆整',"壹万圆整",$notice); + } + $notice=str_replace('#COMNAME#',$username,$notice); + $notice=str_replace('#DATE#',date('Y年m月d日', time()),$notice); + $sl_data = [ + 'notice_title' => $notice_title, + 'notice' => $notice, + 'apply_id' => $apply_id, + 'user_id' => $apply['user_id'], + 'create_id' => session('admin_auth.aid'), + 'create_type' => 1, + 'create_time' => time() + ]; + Db::name('cult4notice')->insert($sl_data); + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('风控中心审核失败'); + } + + $this->success('风控中心审核成功',url('cult4/Cult4/apply_list4')); + } + } + /* + * 缴费中(风控审核通过):9 + * 缴费中(联席会已复议):22 + * 缴费确认中(已缴费):12 + * 缴费确认中(联席会已复议):39 + */ + public function apply_runcheck6(){ + //本处理对应状态 + $chkStatusArray = array(9, 12, 22, 39); + $apply_id=input('apply_id'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('admin/Index/index')); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + if(input('submitType')==1) { + $status = 14;//专家分配中(缴费状态已确认):14 + }elseif(input('submitType')==2){ + $status = 40;//挂牌会员修改中(缴费确认未通过):40 + }elseif(input('submitType')==3){ + $status = 13;//上报中(未缴费未通过):13 + }elseif(input('submitType')==4){ + $status = 41;//补交材料中(缴费确认未通过):41 + } + $passStatus=14; + $reuploadStatus=41; + if(config('cult4advice.checkfee')==1) + { + if(input('advice')=='') + { + $this->error('请输入缴费确认审核意见!'); + } + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + if( count(get_unuploadfiles($apply_id,-1,6)) > 0) { + /*if($status==$passStatus) + $this->error('如果文件已经审核完成,请点击补交材料!如果文件未提交或未审核,请先审核或上传文件!');*/ + if($status==$reuploadStatus){ + $rst=get_unuploadfiles($apply_id,$status,6,-1,1); + //查看是否有推荐机构上传资料 + $rst2=get_unuploadfiles($apply_id,$status,6,-1,4); + + if(count($rst)==0) { + if(count($rst2)>0) { + if(!$baseinfo['member_recmd']){ + $this->error('未关联推荐机构,请代推荐机构添加要补交的材料!'); + } + }else{ + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + } + } + }else{ + if($status==$reuploadStatus) + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + + Db::startTrans(); + + try{ + //更新复审表cult4checkreview + $sl_data['apply_id']=$apply_id; + $sl_data['advice'] = input('advice',"未填写"); + $sl_data['create_id']=$user_id; + $sl_data['create_time']=time(); + + //找到当前最大addorder + $where=array( + 'apply_id'=>$apply_id, + ); + $check=Db::name('cult4checkfee')->where($where)->order('addorder desc') ->find (); + if(!empty($check)){ + $sl_data['addorder']=$check['addorder']+1; + }else{ + $sl_data['addorder']=0; + } + Db::name('cult4checkfee')->insert($sl_data); + + //更新基本信息表为已审核cult4baseinfo + $sl_data2['base_id']=input('base_id'); + $sl_data2['flag']=1; + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + if($status==40){ + $sl_data3['status']=9; + }else{ + $sl_data3['status']=$status; + } + + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + $sl_data3['apply_admin_id']=0; + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus,//array(array('eq',1),array('eq',$admin_id),'or') + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + if($status==30){ + //修改缴费状态 + $where=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1, + ); + //更新最新记录为历史记录 + $sl_data11['new_flag']=0; + Db::name('cult4fee')->where($where)->update($sl_data11); + + //更新缴费表 + $sl_data1['apply_id']=$apply_id; + $sl_data1['fee_flag'] = 1; + $sl_data1['fee'] = 0; + $sl_data1['update_id']=session('admin_auth.aid'); + $sl_data1['update_time']=time(); + $sl_data1['new_flag'] = 1; + $sl_data1['addorder']=0; + //找到当前最大addorder + $addorder=Db::name('cult4fee')->where($where)->order('addorder desc') ->find (); + if(!empty($addorder)){ + $sl_data1['addorder']=$sl_data1['addorder']+1; + } + Db::name('cult4fee')->insert($sl_data1); + } + + + + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if($status==$reuploadStatus){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==8 || $status==41){ + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + } + if($status==8){ + //审核不通过,回到修改中,由会员前台重写修改提交 + /*$notice_title='【'.$baseinfo_name.'】申请缴费确认不通过!'; + $notice='您的【'.$baseinfo_name.'】申请缴费确认不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data);*/ + //风控审核通过则发送挂牌上市缴费通知 + $username=get_cult4UserName($apply['user_id'],1); + $notice_title = '【' . $baseinfo_name . '】挂牌上市缴费通知书!'; + $contents=Options::get_options('feecheck_options',$this->lang); + $contents['content_tpl']=isset($contents['content_tpl'])?$contents['content_tpl']:''; + $notice=$contents['content_tpl']; + $notice=str_replace('#COMNAME#',$username,$notice); + $notice=str_replace('#DATE#',date('Y年m月d日', time()),$notice); + $sl_data = [ + 'notice_title' => $notice_title, + 'notice' => $notice, + 'apply_id' => $apply_id, + 'user_id' => $apply['user_id'], + 'create_id' => session('admin_auth.aid'), + 'create_type' => 1, + 'create_time' => time() + ]; + Db::name('cult4notice')->insert($sl_data); + $jf_data['c_proof_of_payment_url']=""; + Db::name('cult4apply')->where('apply_id',$apply_id)->update($jf_data); + + }elseif($status==41){ + $advi= input('advice'); + //需要上传的文件 + $unpassfiles=get_unuploadfiles($apply_id,$status,6); + $has_send=[]; + foreach ($unpassfiles as $v){ + if($v['upload_role_type']==1){ + $to_uids=[]; + if($v['upload_role_id']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请缴费确认不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请缴费确认不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料反驳意见:'.$advi.''; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + if($v['upload_role_type2']==1){ + $to_uids=[]; + if($v['upload_role_id2']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id2']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id2']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请缴费确认不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请缴费确认不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料反驳意见:'.$advi.''; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + } + } + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('缴费确认审核失败'); + } + $this->success('缴费确认审核成功',url('cult4/Cult4/apply_list6')); + } + } + /* + * 专家评分中(专家已分配):15 + * 专家评分中(联席会已复议):23 + */ + public function apply_runcheck8(){ + //本处理对应状态 + $chkStatusArray = array(15, 23); + $apply_id=input('apply_id'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('admin/Index/index')); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //是否已分配专家 + $status=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + if($status==14){ + $this->error('请先分配专家!'); + } + + //是否已提交了专家评分 + $whereCnt['apply_id']=array('eq', $apply_id); + $whereCnt['del_flag']=array('eq', 0); + $whereCnt['score']=array('eq', 0); + $assignCnt = Db()->name('cult4proassign')->where($whereCnt)->count(); + if($assignCnt>0){ + $this->error('请代替专家进行评分及录入审核意见!'); + } + + //下面相关业务代码 + if(input('submitType')==1) { + $status = 16;//联席会审核中(已确认专家审核):16 + }elseif(input('submitType')==2) { + $status = 18;//挂牌会员修改中(确认专家审核未通过):18 + }elseif(input('submitType')==3){ + $status = 17;//上报中(专家审核未通过):17 + }elseif(input('submitType')==4){ + $status = 42;//补交材料中(确认专家审核未通过):42 + } + $passStatus=16; + $reuploadStatus=42; + if(config('cult4advice.checkpro')==1) + { + if(input('advice')=='') + { + $this->error('请输入专家审核意见!'); + } + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + if( count(get_unuploadfiles($apply_id,-1,8)) > 0) { + if($status==$passStatus) + $this->error('如果文件已经审核完成,请点击补交材料!如果文件未提交或未审核,请先审核或上传文件!'); + if($status==$reuploadStatus){ + $rst=get_unuploadfiles($apply_id,$status,8,-1,1); + //查看是否有推荐机构上传资料 + $rst2=get_unuploadfiles($apply_id,$status,8,-1,4); + if(count($rst)==0) { + if(count($rst2)>0) { + if(!$baseinfo['member_recmd']){ + $this->error('未关联推荐机构,请代推荐机构添加要补交的材料!'); + } + }else{ + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + } + } + }else{ + if($status==$reuploadStatus) + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + + Db::startTrans(); + + try{ + //更新复审表cult4checkpro + $sl_data['apply_id']=$apply_id; + $sl_data['advice'] = input('advice',"未填写"); + $sl_data['create_id']=$user_id; + $sl_data['create_time']=time(); + + //找到当前最大addorder + $where=array( + 'apply_id'=>$apply_id, + ); + $check=Db::name('cult4checkpro')->where($where)->order('addorder desc') ->find (); + if(!empty($check)){ + $sl_data['addorder']=$check['addorder']+1; + }else{ + $sl_data['addorder']=0; + } + Db::name('cult4checkpro')->insert($sl_data); + + //更新基本信息表为已审核cult4baseinfo + $sl_data2['base_id']=input('base_id'); + $sl_data2['flag']=1; + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=$status; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + $sl_data3['apply_admin_id']=0; + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus,//array(array('eq',1),array('eq',$admin_id),'or') + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if($status==$reuploadStatus){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==18 || $status==42){ + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + } + if($status==18){ + //审核不通过,回到修改中,由会员前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请专家审核不通过!'; + $notice='您的【'.$baseinfo_name.'】申请专家审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==42){ + //需要上传的文件 + $unpassfiles=get_unuploadfiles($apply_id,$status,8); + $has_send=[]; + foreach ($unpassfiles as $v){ + if($v['upload_role_type']==1){ + $to_uids=[]; + if($v['upload_role_id']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请专家审核不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请专家审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + if($v['upload_role_type2']==1){ + $to_uids=[]; + if($v['upload_role_id2']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id2']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id2']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请专家审核不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请专家审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + } + } + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('专家审核确认失败'); + } + $this->success('专家审核确认成功',url('cult4/Cult4/apply_list8')); + } + } + /* + * 联席会审核中(已确认专家审核):16 + */ + public function apply_runcheck9(){ + //本处理对应状态 + $chkStatusArray = array(16, 4, 34, 8, 11, 13, 17, 28); + $apply_id=input('apply_id'); + $curStatus=Db::name('cult4apply')->where('apply_id',$apply_id)->value('status');//判断当前状态情况 + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('admin/Index/index')); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + if(input('submitType')==1) {//审核通过 + $status = 25;//材料核实中(联席会审核通过):25 + }elseif(input('submitType')==2) {//审核不通过 + $status = 26;//挂牌会员修改中(联席会审核未通过):26 + }elseif(input('submitType')==3){//申请失败 + $status = 24;//申请失败(已驳回):24 + }elseif(input('submitType')==4){//补交材料 + $status = 43;//补交材料中(联席会审核未通过):43 + }elseif(input('submitType')==5) {//上报驳回 + if($curStatus==4){ + //上报中(初审未通过):4 + $status=19;//初审中(联席会已复议):19 + }elseif($curStatus==34){ + //上报中(尽调未通过):34 + $status=36;//尽调中(联席会已复议):36 + }elseif($curStatus==8){ + //上报中(复审未通过):8 + $status=20;//复审中(联席会已复议):20 + }elseif($curStatus==11){ + //上报中(风控审核未通过):11 + $status=21;//风控审核中(联席会已复议):21 + }elseif($curStatus==13){ + //上报中(未缴费未通过):13 + $status=22;//缴费中(联席会已复议):22 + }elseif($curStatus==17){ + //上报中(专家审核未通过):17 + $status=23;//专家评分中(联席会已复议):23 + }elseif($curStatus==28){ + //上报中(材料核实未通过):28 + $status=46;//材料核实中(联席会已复议):46 + } + } + $passStatus=25; + $reuploadStatus=43; + + //joint conference + if(config('cult4advice.checkjc')==1) + { + if(input('advice')=='') + { + $this->error('请输入联席会审核意见!'); + } + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + if( count(get_unuploadfiles($apply_id,-1,9)) > 0) { + if($status==$passStatus) + $this->error('如果文件已经审核完成,请点击补交材料!如果文件未提交或未审核,请先审核或上传文件!'); + if($status==$reuploadStatus){ + $rst=get_unuploadfiles($apply_id,$status,9,-1,1); + //查看是否有推荐机构上传资料 + $rst2=get_unuploadfiles($apply_id,$status,9,-1,4); + if(count($rst)==0) { + if(count($rst2)>0) { + if(!$baseinfo['member_recmd']){ + $this->error('未关联推荐机构,请代推荐机构添加要补交的材料!'); + } + }else{ + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + } + } + }else{ + if($status==$reuploadStatus) + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + $this->error('提交失败'); + } + + Db::startTrans(); + + try{ + //更新复审表cult4checkpro + $sl_data['apply_id']=$apply_id; + $sl_data['advice'] = input('advice',"未填写"); + $sl_data['create_id']=$user_id; + $sl_data['create_time']=time(); + + //找到当前最大addorder + $where=array( + 'apply_id'=>$apply_id, + ); + $check=Db::name('cult4checkjc')->where($where)->order('addorder desc') ->find (); + if(!empty($check)){ + $sl_data['addorder']=$check['addorder']+1; + }else{ + $sl_data['addorder']=0; + } + Db::name('cult4checkjc')->insert($sl_data); + + //更新基本信息表为已审核cult4baseinfo + $sl_data2['base_id']=input('base_id'); + $sl_data2['flag']=1; + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=$status; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + $sl_data3['apply_admin_id']=0; + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus,//array(array('eq',1),array('eq',$admin_id),'or') + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if($status==$reuploadStatus){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==26 || $status==43){ + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + } + if($status==26){ + //审核不通过,回到修改中,由会员前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请联席会审核不通过!'; + $notice='您的【'.$baseinfo_name.'】申请联席会审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==43){ + //需要上传的文件 + $unpassfiles=get_unuploadfiles($apply_id,$status,9); + $has_send=[]; + foreach ($unpassfiles as $v){ + if($v['upload_role_type']==1){ + $to_uids=[]; + if($v['upload_role_id']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请联席会审核不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请联席会审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + if($v['upload_role_type2']==1){ + $to_uids=[]; + if($v['upload_role_id2']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id2']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id2']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请联席会审核不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请联席会审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + } + } + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('联席会审核确认失败'); + } + $this->success('联席会审核确认成功',url('cult4/Cult4/apply_list9')); + } + } + + /* + * 材料核实中(联席会审核通过):25 + * 材料核实中(联席会已复议):46 + * 材料核实中(保存核实意见):47 + */ + public function apply_runcheck10(){ + if(input('submitType')==6){ + $this->success('执行返回操作',url('cult4/Cult4/apply_list10')); + } + + //本处理对应状态 + $chkStatusArray = array(25, 46, 47); + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('admin/Index/index')); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + if(input('submitType')==1) { + $status = 27;//公告资料提交中(材料核实通过):27 + $btnid = 0; + }elseif(input('submitType')==2){ + $status = 44;//挂牌会员修改中(材料核实未通过):44 + $btnid = 1; + }elseif(input('submitType')==3){ + $status = 28;//上报中(材料核实未通过):28 + $btnid = 2; + }elseif(input('submitType')==4){ + $status = 45;//补交材料中(材料核实未通过):45 + $btnid = 3; + }elseif(input('submitType')==5){ + $status = 47;//材料核实中(保存核实意见):47 + $btnid = 4; + } + $passStatus=27; + $reuploadStatus=45; + if(config('cult4advice.checkmc')==1) + { + if(input('advice')=='') + { + $this->error('请输入材料核实意见!'); + } + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + if( count(get_unuploadfiles($apply_id,-1,10)) > 0) { + if($status==$passStatus) + $this->error('如果文件已经审核完成,请点击补交材料!如果文件未提交或未审核,请先审核或上传文件!'); + if($status==$reuploadStatus){ + $rst=get_unuploadfiles($apply_id,$status,10,-1,1); + //查看是否有推荐机构上传资料 + $rst2=get_unuploadfiles($apply_id,$status,10,-1,4); + if(count($rst)==0) { + if(count($rst2)>0) { + if(!$baseinfo['member_recmd']){ + $this->error('未关联推荐机构,请代推荐机构添加要补交的材料!'); + } + }else{ + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + } + } + }else{ + if($status==$reuploadStatus) + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + + Db::startTrans(); + + try{ + //更新复审表cult4checkreview + $sl_data['apply_id']=$apply_id; + $sl_data['advice'] = input('advice',"未填写"); + $sl_data['btnid'] = $btnid; + $sl_data['create_id']=$user_id; + $sl_data['create_time']=time(); + + //找到当前最大addorder + $where=array( + 'apply_id'=>$apply_id, + ); + $check=Db::name('cult4checkmc')->where($where)->order('addorder desc') ->find (); + if(!empty($check)){ + $sl_data['addorder']=$check['addorder']+1; + }else{ + $sl_data['addorder']=0; + } + Db::name('cult4checkmc')->insert($sl_data); + + //更新基本信息表为已审核cult4baseinfo + $sl_data2['base_id']=input('base_id'); + $sl_data2['flag']=1; + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=$status; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + $sl_data3['apply_admin_id']=0; + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus,//array(array('eq',1),array('eq',$admin_id),'or') + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if($status==$reuploadStatus){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($status==44 || $status==45){ + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + } + if($status==44){ + //审核不通过,回到修改中,由会员前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请材料核实不通过!'; + $notice='您的【'.$baseinfo_name.'】申请材料核实不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==45){ + //需要上传的文件 + $unpassfiles=get_unuploadfiles($apply_id,$status,10); + $has_send=[]; + foreach ($unpassfiles as $v){ + if($v['upload_role_type']==1){ + $to_uids=[]; + if($v['upload_role_id']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请材料核实不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请材料核实不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + if($v['upload_role_type2']==1){ + $to_uids=[]; + if($v['upload_role_id2']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id2']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id2']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请材料核实不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请材料核实不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + } + } + }elseif($status==27){//公告资料提交中(材料核实通过):27 + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + $apply=Db::name('cult4apply')->find($apply_id); + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + } + //审核不通过,回到修改中,由会员前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请材料核实已通过,需要您提供以下内容!'; + $notice='您的【'.$baseinfo_name.'】申请材料核实已通过,需要您提供挂牌信息或上传挂牌资料后再提交。
请点击: 提交材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('材料核实失败'); + } + $this->success('材料核实成功',url('cult4/Cult4/apply_list10')); + } + } + /* + * 公告资料提交对应的挂牌代码录入 + */ + public function apply_runaddcode() + { + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + $chkStatusArray = array(48);//源代码48 + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('home/Listn/ts_insert_hm#nm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + + + $code=input('code'); + if(empty($code)){ + $this->error('请输入挂牌代码!',url('cult4/Cult4/apply_check11#nm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + + $codename=input('codename'); + if(empty($codename)){ + $this->error('请输入挂牌名称!',url('cult4/Cult4/apply_check11#nm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + + $status = 29;//公告资料审核中(公告资料已提交):29 + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + + Db::startTrans(); + + try{ + //更新基本信息表为已审核cult4baseinfo + $sl_data2['base_id']=input('base_id'); + $sl_data2['apply_id']=input('apply_id'); + $sl_data2['code']=$code; + $sl_data2['codename']=$codename; + $sl_data2['code_oper_id']=$user_id; + $sl_data2['code_oper_type']=2;//后台 + $sl_data2['code_oper_time']=time(); + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=$status; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + //$sl_data3['apply_admin_id']=0;//还由本人操作 + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus, + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if(config('cult4files.checknm')==1){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('挂牌资料录入失败',url('cult4/Cult4/apply_check11#nm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + $this->success('挂牌资料录入成功',url('cult4/Cult4/apply_check11#nm',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + /* + * 公告资料提交中(已提交基础信息):48 + * 公告资料审核中(公告资料已提交):29 + */ + public function apply_runcheck11(){ + //本处理对应状态 + $chkStatusArray = array(29); + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('admin/Index/index')); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + if(input('submitType')==1) { + $status = 30;//挂牌上市中(已提交公告资料):30 + }elseif(input('submitType')==2){ + $status = 49;//挂牌会员修改中(公告资料审核未通过):49 + }elseif(input('submitType')==4) { + $status = 50;//补交材料中(公告资料审核未通过):50 + } + $passStatus=30; + $reuploadStatus=50; + if(config('cult4advice.checknm')==1) + { + if(input('advice')=='') + { + $this->error('请输入公告材料审核意见!'); + } + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + + Db::startTrans(); + + try{ + //更新复审表cult4checkreview + $sl_data['apply_id']=$apply_id; + $sl_data['advice'] = input('advice',"未填写"); + $sl_data['create_id']=$user_id; + $sl_data['create_time']=time(); + + //找到当前最大addorder + $where=array( + 'apply_id'=>$apply_id, + ); + $check=Db::name('cult4checknm')->where($where)->order('addorder desc') ->find (); + if(!empty($check)){ + $sl_data['addorder']=$check['addorder']+1; + }else{ + $sl_data['addorder']=0; + } + Db::name('cult4checknm')->insert($sl_data); + + //更新基本信息表为已审核cult4baseinfo + $sl_data2['base_id']=input('base_id'); + $sl_data2['flag']=1; + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=$status; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + $sl_data3['apply_admin_id']=0; + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus, + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if($status==$reuploadStatus){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + /** + * 增加通知推送,by rainfer + */ + //审核不通过时,推送通知 + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + } + if($status==49 || $status==50){ + if($status==49){ + //审核不通过,回到修改中,由会员前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请公告材料审核不通过!'; + $notice='您的【'.$baseinfo_name.'】申请公告材料审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + }elseif($status==50){ + //需要上传的文件 + $unpassfiles=get_unuploadfiles($apply_id,$status,11); + $has_send=[]; + foreach ($unpassfiles as $v){ + if($v['upload_role_type']==1){ + $to_uids=[]; + if($v['upload_role_id']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请公告材料审核不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请公告材料审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + if($v['upload_role_type2']==1){ + $to_uids=[]; + if($v['upload_role_id2']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id2']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id2']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请公告材料审核不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请公告材料审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + } + } + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('公告材料审核失败'); + } + //审核通过准予挂牌上市 + if($status==30) { + //准于挂牌公告 + $notice_title = '【' . $baseinfo_name . '】准予挂牌上市公告!'; + $notice = '您的【' . $baseinfo_name . '】申请挂牌上市申请材料已收悉。经本所风控鉴评中心、专家审核委员会、联席会议的三级审核,贵方申请的(' . $baseinfo_name . ')符合本所挂牌上市要求,现准予挂牌上市。'; + $sl_data = [ + 'notice_title' => $notice_title, + 'notice' => $notice, + 'apply_id' => $apply_id, + 'user_id' => $apply['user_id'], + 'create_id' => session('admin_auth.aid'), + 'create_type' => 1, + 'create_time' => time() + ]; + Db::name('cult4notice')->insert($sl_data); + + $username=get_cult4UserName($apply['user_id'],1); + + //特殊号码缴费通知书 + if($baseinfo['codetype']==1){ + $notice_title = '【' . $baseinfo_name . '】特殊号码缴费通知书!'; + $contents=Options::get_options('number_options',$this->lang); + $contents['content_tpl']=isset($contents['content_tpl'])?$contents['content_tpl']:''; + $notice=$contents['content_tpl']; + $notice=str_replace('#COMNAME#',$username,$notice); + $where5=array( + 'id'=>$baseinfo['code_id'], + ); + $price=DB::name('cult4number')->where($where5)->value('price'); + $notice=str_replace('#PRICE#',$price,$notice); + $notice=str_replace('#CODE#',$baseinfo['code'],$notice); + $notice=str_replace('#DATE#',date('Y年m月d日', time()),$notice); + $sl_data = [ + 'notice_title' => $notice_title, + 'notice' => $notice, + 'apply_id' => $apply_id, + 'user_id' => $apply['user_id'], + 'create_id' => session('admin_auth.aid'), + 'create_type' => 1, + 'create_time' => time() + ]; + Db::name('cult4notice')->insert($sl_data); + } + + //插入到前台公告 + $this->_pushNotice($username,$baseinfo); + } + $this->success('公告材料审核成功',url('cult4/Cult4/apply_list11')); + } + } + protected function _pushNotice($username='',$baseinfo=array()){ + + $ctitle='企业公告'; + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + $ctitle='项目公告'; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + $ctitle='人才公告'; + } + //插入到前台公告 + $contents=Options::get_options('notice_options',$this->lang); + $contents_title='深圳文交所“文化产业板”挂牌'.$ctitle.'('.$baseinfo_name.')'; + $contents['content_tpl']=isset($contents['content_tpl'])?$contents['content_tpl']:''; + $notice=$contents['content_tpl']; + $notice=str_replace('#COMNAME#',$baseinfo_name,$notice); + $notice=str_replace('#CODENAME#',$baseinfo['shortname'],$notice); + $notice=str_replace('#APPLYNAME#',$baseinfo_name,$notice); + $notice=str_replace('#CODE#',$baseinfo['code'],$notice); + $notice=str_replace('#DATE#',date('Y年m月d日', time()),$notice); + $sl_data=array( + 'n_title'=>$contents_title, + 'n_cid'=>1, + 'n_source'=>'深圳文化产权交易所', + 'n_status'=>1, + 'n_desc'=>'', + 'n_content'=>$notice, + 'n_uid'=>session('admin_auth.aid'), + 'n_time'=>time(), + 'n_order'=>50, + 'n_status'=>1, + 'n_hits'=>200, + ); + Db::name('bsgg')->insert($sl_data); + } + /* + * 挂牌上市对应的路演演讲内容录入 + */ + public function apply_runaddroadshow() + { + $chkStatusArray = array(30); + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('admin/Index/index')); + + $roadshow=input('myEditorRoadshow'); + if(empty($roadshow)){ + $this->error('请输入路演演讲内容代码!',url('cult4/Cult4/apply_check12#board',array('apply_id'=>$apply_id,'snd'=>rand(10000,99999)))); + } + + $status = 48;//公告资料审核中(公告资料已提交):29 + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + + Db::startTrans(); + + try{ + //更新基本信息表为已审核cult4baseinfo + $sl_data2['base_id']=input('base_id'); + $sl_data2['apply_id']=input('apply_id'); + $sl_data2['roadshow']=$roadshow; + $sl_data2['roadshow_oper_id']=$user_id; + $sl_data2['roadshow_oper_type']=2;//后台 + $sl_data2['roadshow_oper_time']=time(); + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=$status; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + //$sl_data3['apply_admin_id']=0;//还由本人操作 + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus, + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + /** + * 增加通知推送,by rainfer + */ + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + } + + //特殊号码缴费通知 + $username=get_cult4UserName($apply['user_id'],1); + $notice_title = '【' . $baseinfo_name . '】特殊号码缴费通知!'; + $contents=Options::get_options('tscheck_options',$this->lang); + $contents['content_tpl']=isset($contents['content_tpl'])?$contents['content_tpl']:''; + $notice=$contents['content_tpl']; + $notice=str_replace('#COMNAME#',$username,$notice); + $notice=str_replace('#DATE#',date('Y年m月d日', time()),$notice); + $sl_data = [ + 'notice_title' => $notice_title, + 'notice' => $notice, + 'apply_id' => $apply_id, + 'user_id' => $apply['user_id'], + 'create_id' => session('admin_auth.aid'), + 'create_type' => 1, + 'create_time' => time() + ]; + Db::name('cult4notice')->insert($sl_data); + + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + /*if(config('cult4files.checkboard')==1){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + }*/ + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('路演演讲内容录入失败'); + } + $this->success('路演演讲内容录入成功',url('cult4/Cult4/apply_list12')); + } + /* + * 挂牌上市中(已提交公告资料):30 + * 挂牌上市中(已提交路演资料):51 + */ + public function apply_runcheck12(){ + //本处理对应状态 + $chkStatusArray = array(51,30,48); + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + $roadshowdt=input('roadshowdt'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('admin/Index/index')); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + if(input('submitType')==1) { + $status = 31;//挂牌上市成功:31 + if(empty($roadshowdt)){ + $this->error('请输入挂牌上市仪式时间!'); + } + }elseif(input('submitType')==2){ + $status = 52;//挂牌会员修改中(挂牌上市审核未通过):52 + }elseif(input('submitType')==3){ + //无 + }elseif(input('submitType')==4) { + $status = 53;//补交材料中(挂牌上市审核未通过):53 + } + $passStatus=31; + $reuploadStatus=53; + if(config('cult4advice.checkboard')==1) + { + if(input('advice')=='') + { + $this->error('请输入挂牌上市审核意见!'); + } + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + //固定文件审核通过并且所有模板文件与文件数量对应 + if( count(get_unuploadfiles($apply_id,-1,12)) > 0) { + if($status==$passStatus) + $this->error('如果文件已经审核完成,请点击补交材料!如果文件未提交或未审核,请先审核或上传文件!'); + if($status==$reuploadStatus){ + $rst=get_unuploadfiles($apply_id,$status,12,-1,1); + //查看是否有推荐机构上传资料 + $rst2=get_unuploadfiles($apply_id,$status,12,-1,4); + if(count($rst)==0) { + if(count($rst2)>0) { + if(!$baseinfo['member_recmd']){ + $this->error('未关联推荐机构,请代推荐机构添加要补交的材料!'); + } + }else{ + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + } + } + }else{ + if($status==$reuploadStatus) + $this->error('请添加要补交的材料,或者选择要重新审核的材料!'); + } + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + + Db::startTrans(); + + try { + //更新表cult4checkboard + $sl_data['apply_id'] = $apply_id; + $sl_data['advice'] = input('advice', "未填写"); + $sl_data['create_id'] = $user_id; + $sl_data['create_time'] = time(); + + //找到当前最大addorder + $where = array( + 'apply_id' => $apply_id, + ); + $check = Db::name('cult4checkboard')->where($where)->order('addorder desc')->find(); + if (!empty($check)) { + $sl_data['addorder'] = $check['addorder'] + 1; + } else { + $sl_data['addorder'] = 0; + } + Db::name('cult4checkboard')->insert($sl_data); + + //更新基本信息表为已审核cult4baseinfo + $sl_data2['base_id'] = input('base_id'); + $sl_data2['flag'] = 1; + if ($status == $passStatus) { + $sl_data2['roadshowdt'] = $roadshowdt; + $sl_data2['roadshowdt_oper_id'] = $user_id; + $sl_data2['roadshowdt_oper_time'] = time(); + } + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=$status; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + $sl_data3['apply_admin_id']=0; + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus, + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if($status==$reuploadStatus){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + /** + * 增加通知推送,by rainfer + */ + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + } + //审核不通过时,推送通知 + if($status==52 || $status==53){ + if($status==52){ + //审核不通过,回到修改中,由会员前台重写修改提交 + $notice_title='【'.$baseinfo_name.'】申请挂牌上市审核不通过!'; + $notice='您的【'.$baseinfo_name.'】申请挂牌上市审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 修改材料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + + }elseif($status==53){ + //需要上传的文件 + $unpassfiles=get_unuploadfiles($apply_id,$status,12); + $has_send=[]; + foreach ($unpassfiles as $v){ + if($v['upload_role_type']==1){ + $to_uids=[]; + if($v['upload_role_id']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请挂牌上市审核不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请挂牌上市审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + if($v['upload_role_type2']==1){ + $to_uids=[]; + if($v['upload_role_id2']==1){ + //基础会员 挂牌会员 + $to_uids[]=$apply['user_id']; + }elseif ($v['upload_role_id2']==3){ + //专家会员 + $to_uids=Db::name('cult4proassign')->where(['assign_type'=>0,'apply_id'=>$apply_id,'del_flag'=>0])->column('user_id'); + }elseif ($v['upload_role_id2']==4){ + //推荐会员 + $to_uids[]=$baseinfo['member_recmd']; + } + if($to_uids){ + foreach ($to_uids as $to_uid){ + //未推送过 + if($to_uid && !in_array($to_uid,$has_send)){ + //补交材料,回到前台补交资料 + $notice_title='【'.$baseinfo_name.'】申请挂牌上市审核不通过,请补充资料!'; + $notice='您(或您关联)的【'.$baseinfo_name.'】申请挂牌上市审核不通过,需要您重新修改信息或上传资料后再提交。
请点击: 补充资料'; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$to_uid, + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + $has_send[]=$to_uid; + } + } + } + } + } + } + }elseif ($status==31){//挂牌上市成功 + //挂牌上市通知书 + $notice_title='【'.$baseinfo_name.'】上市仪式通知书!'; + $notice='  贵方提交的深圳文化产权交易所“文化产业板” ('.$baseinfo_name.')挂牌上市申请材料已收悉,相关审核流程已完结。
  现请贵方于'.$roadshowdt.'参加深圳文化产权交易所为贵方举办的挂牌上市仪式。
  上市名称:'.$baseinfo['codename'].'
  上市代码:'.$baseinfo['code']; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + + $username=get_cult4UserName($apply['user_id'],1); + //插入到前台公告 + $this->_pushNotice($baseinfo['codename'],$baseinfo); + + + } + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('公告材料审核失败'); + } + if($status==31){ + $this->success('公告材料审核成功',url('admin/gpgl/gp_add',array('base_id'=>input('base_id'),'snd'=>rand(10000,99999)))); + }else{ + $this->success('公告材料审核成功',url('cult4/Cult4/apply_list12',array('base_id'=>input('base_id'),'snd'=>rand(10000,99999)))); + } + + } + } + + + /* + * 审核号码 + */ + public function apply_runcheck14(){ + //本处理对应状态 + $chkStatusArray = array(18); + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + $roadshowdt=input('roadshowdt'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('admin/Index/index')); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + if(input('submitType')==1) { + $status = 31;//挂牌上市成功:31 + if(empty($roadshowdt)){ + $this->error('请输入挂牌上市仪式时间!'); + } + } + $passStatus=31; + $reuploadStatus=53; + if(config('cult4advice.checkboard')==1) + { + if(input('advice')=='') + { + $this->error('请输入挂牌上市审核意见!'); + } + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + + + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + + Db::startTrans(); + + try { + //更新基本信息表为已审核cult4baseinfo + $sl_data20['base_id']=input('base_id'); + $sl_data20['apply_id']=input('apply_id'); + $sl_data20['code']=input('code'); + $sl_data20['code_oper_id']=$user_id; + $sl_data20['code_oper_type']=2;//后台 + $sl_data20['code_oper_time']=time(); + $where20=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where20)->update($sl_data20); + //更新表cult4checkboard + $sl_data['apply_id'] = $apply_id; + $sl_data['advice'] = input('advice', "未填写"); + $sl_data['create_id'] = $user_id; + $sl_data['create_time'] = time(); + + //找到当前最大addorder + $where = array( + 'apply_id' => $apply_id, + ); + $check = Db::name('cult4checkboard')->where($where)->order('addorder desc')->find(); + if (!empty($check)) { + $sl_data['addorder'] = $check['addorder'] + 1; + } else { + $sl_data['addorder'] = 0; + } + Db::name('cult4checkboard')->insert($sl_data); + + //更新基本信息表为已审核cult4baseinfo + $sl_data2['base_id'] = input('base_id'); + $sl_data2['flag'] = 1; + if ($status == $passStatus) { + $sl_data2['roadshowdt'] = $roadshowdt; + $sl_data2['roadshowdt_oper_id'] = $user_id; + $sl_data2['roadshowdt_oper_time'] = time(); + } + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + if($status==52){ + $status=48; + } + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=$status; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + $sl_data3['apply_admin_id']=0; + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus, + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + + //更新文件表当前所有未通过的记录为历史记录,上传人需要重新上传 + if($status==$reuploadStatus){ + $where4=array( + 'apply_id'=>$apply_id, + 'new_flag'=>1,//当前最新记录 + 'flag'=>0,//未审核通过 + ); + $sl_data4['new_flag']=0; + Db::name('cult4upfiles')->where($where4)->update($sl_data4); + } + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + /** + * 增加通知推送,by rainfer + */ + $ctitle='企业公告'; + if($baseinfo['apply_type']==1){ + $baseinfo_name=$baseinfo['c_name']; + }elseif ($baseinfo['apply_type']==2){ + $baseinfo_name=$baseinfo['p_name']; + $ctitle='项目公告'; + }else{ + $baseinfo_name=$baseinfo['t_apply_username']; + $ctitle='人才公告'; + } + $username1=get_cult4UserName($apply['user_id'],1); + //挂牌上市通知书 + //插入到前台公告 + $contents1=Options::get_options('notice_options',$this->lang); + $contents_title1='深圳文交所“文化产业板”挂牌'.$ctitle.'('.$baseinfo_name.')'; + $contents1['content_tpl']=isset($contents1['content_tpl'])?$contents1['content_tpl']:''; + $notice1=$contents1['content_tpl']; + $notice1=str_replace('#COMNAME#',$baseinfo_name,$notice1); + $notice1=str_replace('#CODENAME#',$baseinfo['codename'],$notice1); + $notice1=str_replace('#APPLYNAME#',$baseinfo_name,$notice1); + $notice1=str_replace('#CODE#',$baseinfo['code'],$notice1); + $notice1=str_replace('#DATE#',date('Y年m月d日', time()),$notice1); + $sl_data=[ + 'notice_title'=>$contents_title1, + 'notice'=>$notice1, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + + //插入到前台公告 + $this->_pushNotice($username1,$baseinfo); + //查询当前挂牌信息 + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('公告材料审核失败'); + } + if($status==31){ + $this->success('公告材料审核成功',url('admin/gpgl/gp_add',array('base_id'=>input('base_id'),'snd'=>rand(10000,99999)))); + }else{ + $this->success('公告材料审核成功',url('cult4/Cult4/apply_list13',array('base_id'=>input('base_id'),'snd'=>rand(10000,99999)))); + } + + } + } + /* + * 财务人员确认业务号码 + */ + public function apply_runcheck13(){ + //本处理对应状态 + $chkStatusArray = array(48); + $apply_id=input('apply_id'); + $user_id=session('admin_auth.aid'); + $roadshowdt=input('roadshowdt'); + //权限检查 + $chkStatus=0; + foreach ($chkStatusArray as $v) { + if(check_cult4UserRight($apply_id,$user_id,$v)!=0){ + $chkStatus=$v; + break; + } + } + if($chkStatus==0)$this->error('无权限',url('admin/Index/index')); + + if (!request()->isAjax()){ + $this->error('提交方式不正确'); + }else { + //下面相关业务代码 + if(input('submitType')==1) { + $status = 18;//通过:31 + }elseif(input('submitType')==2){ + $status = 14;//继续上传缴费证明 + } + $passStatus=31; + $reuploadStatus=53; + if(config('cult4advice.checkboard')==1) + { + if(input('advice')=='') + { + $this->error('请输入审核意见!'); + } + } + + //取得基础数据 + $apply=Db::name('cult4apply')->find($apply_id); + $baseinfo=Db::name('cult4baseinfo')->find(input('base_id')); + + + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + $advi=input('advice'); + + Db::startTrans(); + + try { + //更新基本信息表为已审核cult4baseinfo + $sl_data20['base_id']=input('base_id'); + $sl_data20['apply_id']=input('apply_id'); + $sl_data20['code']=input('code'); + $sl_data20['code_oper_id']=$user_id; + $sl_data20['code_oper_type']=2;//后台 + $sl_data20['code_oper_time']=time(); + $where20=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where20)->update($sl_data20); + //更新表cult4checkboard + $sl_data['apply_id'] = $apply_id; + $sl_data['advice'] = input('advice', "未填写"); + $sl_data['create_id'] = $user_id; + $sl_data['create_time'] = time(); + + //找到当前最大addorder + $where = array( + 'apply_id' => $apply_id, + ); + $check = Db::name('cult4checkboard')->where($where)->order('addorder desc')->find(); + if (!empty($check)) { + $sl_data['addorder'] = $check['addorder'] + 1; + } else { + $sl_data['addorder'] = 0; + } + Db::name('cult4checkboard')->insert($sl_data); + + //更新基本信息表为已审核cult4baseinfo + $sl_data2['base_id'] = input('base_id'); + $sl_data2['flag'] = 1; + if ($status == $passStatus) { + $sl_data2['roadshowdt'] = $roadshowdt; + $sl_data2['roadshowdt_oper_id'] = $user_id; + $sl_data2['roadshowdt_oper_time'] = time(); + } + $where2=array( + 'base_id'=>input('base_id'), + ); + Db::name('cult4baseinfo')->where($where2)->update($sl_data2); + + //更新主表cult4apply + $sl_data3['apply_id']=$apply_id; + $sl_data3['status']=$status; + $sl_data3['update_user_id']=$user_id; + $sl_data3['update_user_type']=2;//后台 + $sl_data3['update_time']=time(); + $sl_data3['apply_admin_id']=0; + $where3=array( + 'apply_id'=>$apply_id, + 'status'=>$chkStatus, + ); + Db::name('cult4apply')->where($where3)->update($sl_data3); + if($status==14){ + $baseinfot=Db::name('cult4baseinfo')->find(input('base_id')); + /** + * 增加通知推送,by rainfer + */ + if($baseinfot['apply_type']==1){ + $baseinfo_namet=$baseinfot['c_name']; + }elseif ($baseinfot['apply_type']==2){ + $baseinfo_namet=$baseinfot['p_name']; + }else{ + $baseinfo_namet=$baseinfot['t_apply_username']; + } + //审核不通过,回到修改中,由会员前台重写修改提交 + $notice_title='【'.$baseinfo_namet.'】缴费证明审核不通过!'; + $notice='您的【'.$baseinfo_namet.'】缴费证明审核不通过,请重新上传缴费证明!。
请点击: 上传缴费证明
反驳意见:'.$advi.''; + $sl_data=[ + 'notice_title'=>$notice_title, + 'notice'=>$notice, + 'apply_id'=>$apply_id, + 'user_id'=>$apply['user_id'], + 'create_id'=>session('admin_auth.aid'), + 'create_type'=>1, + 'create_time'=>time() + ]; + Db::name('cult4notice')->insert($sl_data); + } + + // 提交事务 + Db::commit(); + } catch (\Exception $e) { + // 回滚事务 + Db::rollback(); + $this->error('公告材料审核失败'); + } + if($status==18){ + $this->success('公告材料审核成功',url('cult4/Cult4/apply_list13',array('base_id'=>input('base_id'),'snd'=>rand(10000,99999)))); + }else{ + $this->success('公告材料审核成功',url('cult4/Cult4/apply_list13',array('base_id'=>input('base_id'),'snd'=>rand(10000,99999)))); + } + + } + } + + //已挂牌列表返回 + public function apply_runcheck_final() + { + $this->success('返回成功',url('cult4/Cult4/apply_list_final')); + } + + //特殊号段 + public function number_list() + { + $search_name=input('search_name'); + $this->assign('search_name',$search_name); + $map=array(); + if($search_name){ + $map['saleno']= array('like',"%".$search_name."%"); + } + $number_list=Db::name('cult4number')->where($map)->order('salestatus,status desc,id')->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + $page = $number_list->render(); + $this->assign('number_list',$number_list); + $this->assign('page',$page); + return $this->fetch(); + } + /** + * 特殊号段开启/禁止 + */ + public function number_state() + { + $id=input('x'); + if (empty($id)){ + $this->error('用户ID不存在',url('cult4/Cult4/number_list')); + } + $status=Db::name('cult4number')->where('id',$id)->value('status');//判断当前状态情况 + if($status==1){ + $statedata = array('status'=>0); + Db::name('cult4number')->where('id',$id)->setField($statedata); + $this->success('状态禁止'); + }else{ + $statedata = array('status'=>1); + Db::name('cult4number')->where('id',$id)->setField($statedata); + $this->success('状态开启'); + } + } + public function number_state2() + { + $id=input('x'); + if (empty($id)){ + $this->error('用户ID不存在',url('cult4/Cult4/number_list')); + } + $status=Db::name('cult4number')->where('id',$id)->value('salestatus');//判断当前状态情况 + if($status==1){ + $statedata = array('salestatus'=>0); + Db::name('cult4number')->where('id',$id)->setField($statedata); + $this->success('当前为未销售状态'); + }else{ + $statedata = array('salestatus'=>1); + Db::name('cult4number')->where('id',$id)->setField($statedata); + $this->success('当前为已销售状态'); + } + } + /** + * 特殊号段添加 + */ + public function number_add() + { + //创建token + creatToken(); + return $this->fetch(); + } + /** + * 特殊号段添加操作 + */ + public function number_runadd() + { + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + $id=Cult4number::add(input('saleno',''),input('price',0),input('status',0),input('salestatus',0),session('admin_auth.aid'),time()); + if($id){ + $this->success('特殊号码添加成功',url('cult4/Cult4/number_list')); + }else{ + $this->error('特殊号码添加失败',url('cult4/Cult4/number_list')); + } + } + /** + * 特殊号段修改 + */ + public function number_edit() + { + //创建token + creatToken(); + $id=input('id',0); + if($id<=0){ + $this->error('特殊号码编辑失败',url('cult4/Cult4/number_list')); + } + $number_list=Db::name('cult4number')->find($id); + $this->assign('number_list',$number_list); + + return $this->fetch(); + } + /** + * 特殊号段修改操作 + */ + public function number_runedit() + { + //防止重复提交 + if (!checkToken(input('TOKEN'))) { + return; + } + $id=Cult4number::edit(input('id',0),input('saleno',''),input('price',0),input('status',0),input('salestatus',0),session('admin_auth.aid'),time());; + if($id){ + $this->success('特殊号码修改成功',url('cult4/Cult4/number_list')); + }else{ + $this->error('特殊号码修改失败',url('cult4/Cult4/number_list')); + } + } + + +} diff --git a/app/cult4/model/Cult4apply.php b/app/cult4/model/Cult4apply.php new file mode 100644 index 0000000..a2615f5 --- /dev/null +++ b/app/cult4/model/Cult4apply.php @@ -0,0 +1,372 @@ + $user_id, + 'status'=>$status, + 'user_type'=>$usertype, + 'apply_admin_id'=>$apply_admin_id, + 'create_time'=>time(), + ); + $member=self::create($sldata); + if($member){ + return $member['apply_id']; + }else{ + return 0; + } + } + + /** + * 申请受理 + * @param int $apply_id 申请id + * @param int $apply_admin_id 受理用户id + * @return int 影响行数0或1 + */ + public static function applyed($apply_id,$apply_admin_id,$seq,$status) + { + $sldata=array( + 'update_time'=>time(), + 'update_user_type'=>1, + 'seq'=>$seq+1, + ); + $where=array( + 'apply_id'=>$apply_id, + 'seq'=>$seq, + 'status'=>$status, + ); + $role=session('admin_auth.role'); + if($role!=1){ + $sldata['apply_admin_id']=$apply_admin_id; + $where['apply_admin_id']=array('EQ', 0); + } + + $apply=self::where($where)->update($sldata); + + return $apply; + } + + /** + * 根据用户id获取用户信息,返回值为数组 + * @param int $uid 用户id + * @return array 用户所属的用户组 array(根据前后台不同,对应不同用户组) + */ + public static function getUserInfos($uid,$utype) + { + if($utype==1)//前台用户 + { + $db=db()->name('member_list'); + $uids=[]; + if(strpos($uid,',')===false){ + $db->where("member_list_id='$uid'"); + }else{ + $db->where('member_list_id','in',$uid); + } + $frontUserInfos =$db->field('member_list_id,member_list_nickname,member_list_username,member_list_open')->select(); + + if(count($uids)){ + $data=[]; + foreach ($frontUserInfos as $row){ + $mid=$row['member_list_id']; + $data[$mid]=$row; + } + foreach ($uids as $row){ + if(!isset($data[$row]))$data[$row]=array(); + } + return $data; + }else{ + $frontUserInfos[$uid]=$frontUserInfos?:array(); + return $frontUserInfos[$uid]; + } + }elseif ($utype==2)//后台用户 + { + $db=db()->name('admin'); + $uids=[]; + if(strpos($uid,',')===false){ + $db->where("admin_id='$uid'"); + }else{ + $uids=explode(',', $uid); + $db->where('admin_id','in',$uids); + } + $backUserInfos = $db + ->field('admin_id,admin_realname,admin_username,admin_open')->select(); + + if(count($uids)){ + $data=[]; + foreach ($backUserInfos as $row){ + $mid=$row['admin_id']; + $data[$mid]=$row; + } + foreach ($uids as $row){ + if(!isset($data[$row]))$data[$row]=array(); + } + return $data; + }else{ + $backUserInfos[$uid]=$backUserInfos?:array(); + return $backUserInfos[$uid]; + } + } + return array(); + } + + /** + * 根据角色id获取角色信息,返回值为数组 + * @param int $rid 角色id + * @return array 角色所属的用户组 array(根据前后台不同,对应不同角色组) + */ + public static function getRoleInfos($rid,$utype) + { + if($utype==1)//前台角色 + { + $frontRoleInfos = db()->name('member_group') + ->where("member_group_id='$rid'") + ->field('member_group_id,member_group_name,member_group_open')->select(); + $frontRoleInfos[$rid]=$frontRoleInfos?:array(); + return $frontRoleInfos[$rid]; + } + elseif ($utype==2)//后台角色 + { + $backRoleInfos = db()->name('auth_group') + ->where("id='$rid'") + ->field('id,title,status')->select(); + $backRoleInfos[$rid]=$backRoleInfos?:array(); + return $backRoleInfos[$rid]; + } + return array(); + } + /** + * 申请列表 + * @param array + * @param string $search_name 查询条件(公司名称) + * @param int $status 后台查询的操作用户状态 + * @param int $admin_id 后台查询的操作用户ID + * @param string $order 结果排序 + * @return mixed + */ + public static function getListAll($search_name=null,$admin_id,$order='a.apply_id',$applytype='') + { + $map=array(); + if($search_name){ + //(b.c_name or b.p_name or b.t_apply_username) and b.new_flag + $data=array(); + $where=['b.c_name|b.p_name|b.t_apply_username|b.p_com_name'=>array('like',['%'.$search_name.'%',$search_name.'%','%'.$search_name],'or') ,'b.new_flag'=>1]; + if($applytype&&count($applytype)){ + $where['b.apply_type'] = array('in',$applytype); + } + $where['b.new_flag']=1; + $data=Db::name('cult4apply')->alias("a")->join(config('database.prefix').'cult4baseinfo b','a.apply_id =b.apply_id') + ->where($where)->order('a.apply_id')->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + return $data; + } + $where=array(); + $where['a.status'] = array('egt',0); + if($order){ + $orders=explode(',', $order); + foreach ($orders as $k=>$jow){ + if(strpos($jow,'a.')===false)$orders[$k]='a.'.$jow; + } + $order=implode(',', $orders); + } + if($applytype&&count($applytype)){ + $where['b.apply_type'] = array('in',$applytype); + } + $where['b.new_flag']=1; + //取得apply_admin_id为0或者当前用户的数据 + //$where['apply_admin_id']=array(array('eq',0),array('eq',$admin_id),'or'); + $list=Db::name('cult4apply')->alias("a")->join(config('database.prefix').'cult4baseinfo b','a.apply_id =b.apply_id') + ->where($where)->order($order)->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + + return $list; + } + /** + * 申请列表 + * @param array + * @param string $search_name 查询条件(公司名称) + * @param int $status 后台查询的操作用户状态 + * @param int $admin_id 后台查询的操作用户ID + * @param string $order 结果排序 + * @return mixed + */ + public static function getList($search_name=null,$status=-1,$admin_id,$order='apply_id',$status2=-1,$applytype='') + { + $adminarr=array(array('eq',0),array('eq',$admin_id),'or'); + if($admin_id==1){ + $adminarr=array('neq','0'); + } + $map=array(); + if($search_name){ + if($status2>0) + $statusStr=$status; + else + $statusStr=$status.','.$status2;; + if($status==31){ + $statusStr=$status.','.$status2;; + } + $where=['b.c_name|b.p_name|b.p_com_name|b.t_apply_username'=>array('like',['%'.$search_name.'%',$search_name.'%','%'.$search_name],'or') ,'b.new_flag'=>1,'a.status'=>array('in',$statusStr)]; + if($admin_id!=1){ + $where['a.apply_admin_id']=$adminarr; + } + if($applytype&&count($applytype)){ + $where['b.apply_type'] = array('in',$applytype); + } + $where['b.new_flag']=1; + $data=array(); + $data=Db::name('cult4apply')->alias("a")->join(config('database.prefix').'cult4baseinfo b','a.apply_id =b.apply_id') + ->where($where)->order('a.apply_id')->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + return $data; + } + $where=array(); + $where['b.new_flag']=1; + if($order){ + $orders=explode(',', $order); + foreach ($orders as $k=>$jow){ + if(strpos($jow,'a.')===false)$orders[$k]='a.'.$jow; + } + $order=implode(',', $orders); + } + //根据状态值取出对应状态的数据 + if($status != -1){ + if($status2 != -1){ + $where['a.status'] = array(array('eq',$status),array('eq',$status2), 'or'); + if($status2==9) + $order='a.status desc,a.apply_id'; + elseif($status2==12) + $order='a.status,a.apply_id'; + elseif($status2==14) + $order='a.status desc,a.apply_id'; + }else{ + $where['a.status'] = array('eq',$status); + } + } + + //取得apply_admin_id为0或者当前用户的数据 + if($admin_id!=1){ + $where['a.apply_admin_id']=$adminarr; + } + if($applytype&&count($applytype)){ + $where['b.apply_type'] = array('in',$applytype); + } + $list=Db::name('cult4apply')->alias("a")->join(config('database.prefix').'cult4baseinfo b','a.apply_id =b.apply_id') + ->where($where)->order($order)->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + + return $list; + } + /** + * 申请列表数组 + * @param array + * @param string $search_name 查询条件(公司名称) + * @param int $status 后台查询的操作主用户状态 + * @param int $admin_id 后台查询的操作用户ID + * @param string $statusStr 状态序列1,2,3,4 + * @return mixed + */ + public static function getList2($status,$search_name=null,$admin_id,$statusStr,$applytype='') + { + $adminarr=array(array('eq',0),array('eq',$admin_id),'or'); + if($admin_id==1){ + $adminarr=array('neq','0'); + } + $map=array(); + if($search_name){ + $data=array(); + $where=['b.c_name|b.p_name|b.p_com_name|b.t_apply_username'=>array('like',['%'.$search_name.'%',$search_name.'%','%'.$search_name],'or') ,'b.new_flag'=>1,'a.status'=>array('in',$statusStr)]; + if($admin_id!=1){ + $where['a.apply_admin_id']=$adminarr; + } + + if($applytype&&count($applytype)){ + $where['b.apply_type'] = array('in',$applytype); + } + $data=Db::name('cult4apply')->alias("a")->join(config('database.prefix').'cult4baseinfo b','a.apply_id =b.apply_id') + ->where($where)->order('a.apply_id')->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + return $data; + } + $where=array(); + $where['b.new_flag']=1; + //根据状态值取出对应状态的数据 + if($status==12) + $order='a.status desc,a.apply_id'; + elseif($status==9) + $order='a.status,a.apply_id'; + elseif($status==15) + $order='a.status desc,a.apply_id'; + else + $order='a.update_time'; + + $where['a.status'] = array('in',$statusStr); + //取得apply_admin_id为0或者当前用户的数据 + if($admin_id!=1){ + $where['a.apply_admin_id']=$adminarr; + } + if($applytype&&count($applytype)){ + $where['b.apply_type'] = array('in',$applytype); + } + //$res=self::where($where)->order($order)->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + + $list=Db::name('cult4apply')->alias("a")->join(config('database.prefix').'cult4baseinfo b','a.apply_id =b.apply_id') + ->where($where)->order($order)->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + + return $list; + } + /** + * 申请列表联席会 + * @param array + * @param string $search_name 查询条件(公司名称) + * @param int $admin_id 后台查询的操作用户ID + * @return mixed + */ + public static function getListjc($search_name=null,$admin_id) + { + $adminarr=array(array('eq',0),array('eq',$admin_id),'or'); + if($admin_id==1){ + $adminarr=array('neq','0'); + } + $map=array(); + if($search_name){ + //(b.c_name or b.p_name or b.t_apply_username) and b.new_flag + $data=array(); + + $data=Db::name('cult4apply')->alias("a")->join(config('database.prefix').'cult4baseinfo b','a.apply_id =b.apply_id') + ->where(['b.c_name|b.p_name|b.t_apply_username'=>array('like','%'.$search_name.'%') ,'b.new_flag'=>1,'a.status'=>array('in','4,8,11,13,17,34,16'),'a.apply_admin_id'=>$adminarr])->order('a.apply_id')->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + return $data; + } + $where=array(); + //根据状态值取出对应状态的数据 + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //联席会审核中(已确认专家审核):16 + $where['status'] = array('in','4,8,11,13,17,34,16'); + //取得apply_admin_id为0或者当前用户的数据 + if($admin_id!=1){ + $where['apply_admin_id']=$adminarr; + } + $order='update_time'; + return self::where($where)->order($order)->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + } +} diff --git a/app/cult4/model/Cult4apply.php_0508 b/app/cult4/model/Cult4apply.php_0508 new file mode 100644 index 0000000..300ed7d --- /dev/null +++ b/app/cult4/model/Cult4apply.php_0508 @@ -0,0 +1,275 @@ + $user_id, + 'status'=>$status, + 'user_type'=>$usertype, + 'apply_admin_id'=>$apply_admin_id, + 'create_time'=>time(), + ); + $member=self::create($sldata); + if($member){ + return $member['apply_id']; + }else{ + return 0; + } + } + + /** + * 申请受理 + * @param int $apply_id 申请id + * @param int $apply_admin_id 受理用户id + * @return int 影响行数0或1 + */ + public static function applyed($apply_id,$apply_admin_id,$seq,$status) + { + $sldata=array( + 'apply_admin_id'=>$apply_admin_id, + 'update_time'=>time(), + 'update_user_id'=>$apply_admin_id, + 'update_user_type'=>1, + 'seq'=>$seq+1, + ); + $where=array( + 'apply_id'=>$apply_id, + 'seq'=>$seq, + 'status'=>$status, + 'apply_admin_id'=>array('EQ', 0), + ); + + $apply=self::where($where)->update($sldata); + + return $apply; + } + + /** + * 根据用户id获取用户信息,返回值为数组 + * @param int $uid 用户id + * @return array 用户所属的用户组 array(根据前后台不同,对应不同用户组) + */ + public static function getUserInfos($uid,$utype) + { + if($utype==1)//前台用户 + { + $frontUserInfos = db()->name('member_list') + ->where("member_list_id='$uid'") + ->field('member_list_id,member_list_nickname,member_list_username,member_list_open')->select(); + $frontUserInfos[$uid]=$frontUserInfos?:array(); + return $frontUserInfos[$uid]; + } + elseif ($utype==2)//后台用户 + { + $backUserInfos = db()->name('admin') + ->where("admin_id='$uid'") + ->field('admin_id,admin_realname,admin_username,admin_open')->select(); + $backUserInfos[$uid]=$backUserInfos?:array(); + return $backUserInfos[$uid]; + } + return array(); + } + + /** + * 根据角色id获取角色信息,返回值为数组 + * @param int $rid 角色id + * @return array 角色所属的用户组 array(根据前后台不同,对应不同角色组) + */ + public static function getRoleInfos($rid,$utype) + { + if($utype==1)//前台角色 + { + $frontRoleInfos = db()->name('member_group') + ->where("member_group_id='$rid'") + ->field('member_group_id,member_group_name,member_group_open')->select(); + $frontRoleInfos[$rid]=$frontRoleInfos?:array(); + return $frontRoleInfos[$rid]; + } + elseif ($utype==2)//后台角色 + { + $backRoleInfos = db()->name('auth_group') + ->where("id='$rid'") + ->field('id,title,status')->select(); + $backRoleInfos[$rid]=$backRoleInfos?:array(); + return $backRoleInfos[$rid]; + } + return array(); + } + /** + * 申请列表 + * @param array + * @param string $search_name 查询条件(公司名称) + * @param int $status 后台查询的操作用户状态 + * @param int $admin_id 后台查询的操作用户ID + * @param string $order 结果排序 + * @return mixed + */ + public static function getListAll($search_name=null,$admin_id,$order='apply_id') + { + $map=array(); + if($search_name){ + //(b.c_name or b.p_name or b.t_apply_username) and b.new_flag + $data=array(); + $data=Db::name('cult4apply')->alias("a")->join(config('database.prefix').'cult4baseinfo b','a.apply_id =b.apply_id') + ->where(['b.c_name|b.p_name|b.t_apply_username'=>array('like','%'.$search_name.'%') ,'b.new_flag'=>1])->order('a.apply_id')->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + return $data; + } + $where=array(); + $where['status'] = array('egt',0); + + //取得apply_admin_id为0或者当前用户的数据 + //$where['apply_admin_id']=array(array('eq',0),array('eq',$admin_id),'or'); + return self::where($where)->order($order)->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + } + /** + * 申请列表 + * @param array + * @param string $search_name 查询条件(公司名称) + * @param int $status 后台查询的操作用户状态 + * @param int $admin_id 后台查询的操作用户ID + * @param string $order 结果排序 + * @return mixed + */ + public static function getList($search_name=null,$status=-1,$admin_id,$order='apply_id',$status2=-1) + { + $adminarr=array(array('eq',0),array('eq',$admin_id),'or'); + if($admin_id==1){ + $adminarr='not null'; + } + $map=array(); + if($search_name){ + //(b.c_name or b.p_name or b.t_apply_username) and b.new_flag + if($status2>0) + $statusStr=$status; + else + $statusStr=$status.','.$status2;; + + if($status==31){ + $statusStr=$status.','.$status2;; + } + + $data=array(); + $data=Db::name('cult4apply')->alias("a")->join(config('database.prefix').'cult4baseinfo b','a.apply_id =b.apply_id') + ->where(['b.c_name|b.p_name|b.t_apply_username'=>array('like','%'.$search_name.'%') ,'b.new_flag'=>1,'a.status'=>array('in',$statusStr),'a.apply_admin_id'=>$adminarr])->order('a.apply_id')->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + return $data; + } + $where=array(); + //根据状态值取出对应状态的数据 + if($status != -1){ + if($status2 != -1){ + $where['status'] = array(array('eq',$status),array('eq',$status2), 'or'); + if($status2==9) + $order='status desc,apply_id'; + elseif($status2==12) + $order='status,apply_id'; + elseif($status2==14) + $order='status desc,apply_id'; + }else{ + $where['status'] = array('eq',$status); + } + } + + //取得apply_admin_id为0或者当前用户的数据 + $where['apply_admin_id']=$adminarr; + return self::where($where)->order($order)->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + } + /** + * 申请列表数组 + * @param array + * @param string $search_name 查询条件(公司名称) + * @param int $status 后台查询的操作主用户状态 + * @param int $admin_id 后台查询的操作用户ID + * @param string $statusStr 状态序列1,2,3,4 + * @return mixed + */ + public static function getList2($status,$search_name=null,$admin_id,$statusStr) + { + $adminarr=array(array('eq',0),array('eq',$admin_id),'or'); + if($admin_id==1){ + $adminarr=array('neq',''); + } + $map=array(); + if($search_name){ + //(b.c_name or b.p_name or b.t_apply_username) and b.new_flag + $data=array(); + + $data=Db::name('cult4apply')->alias("a")->join(config('database.prefix').'cult4baseinfo b','a.apply_id =b.apply_id') + ->where(['b.c_name|b.p_name|b.t_apply_username'=>array('like','%'.$search_name.'%') ,'b.new_flag'=>1,'a.status'=>array('in',$statusStr),'a.apply_admin_id'=>$adminarr])->order('a.apply_id')->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + return $data; + } + $where=array(); + //根据状态值取出对应状态的数据 + if($status==12) + $order='status desc,apply_id'; + elseif($status==9) + $order='status,apply_id'; + elseif($status==15) + $order='status desc,apply_id'; + else + $order='update_time'; + + $where['status'] = array('in',$statusStr); + //取得apply_admin_id为0或者当前用户的数据 + $where['apply_admin_id']=$adminarr; + return self::where($where)->order($order)->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + } + /** + * 申请列表联席会 + * @param array + * @param string $search_name 查询条件(公司名称) + * @param int $admin_id 后台查询的操作用户ID + * @return mixed + */ + public static function getListjc($search_name=null,$admin_id) + { + $adminarr=array(array('eq',0),array('eq',$admin_id),'or'); + if($admin_id==1){ + $adminarr=array('neq',''); + } + $map=array(); + if($search_name){ + //(b.c_name or b.p_name or b.t_apply_username) and b.new_flag + $data=array(); + + $data=Db::name('cult4apply')->alias("a")->join(config('database.prefix').'cult4baseinfo b','a.apply_id =b.apply_id') + ->where(['b.c_name|b.p_name|b.t_apply_username'=>array('like','%'.$search_name.'%') ,'b.new_flag'=>1,'a.status'=>array('in','4,8,11,13,17,34,16'),'a.apply_admin_id'=>$adminarr])->order('a.apply_id')->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + return $data; + } + $where=array(); + //根据状态值取出对应状态的数据 + //上报中(初审未通过):4 + //上报中(尽调未通过):34 + //上报中(复审未通过):8 + //上报中(风控审核未通过):11 + //上报中(未缴费未通过):13 + //上报中(专家审核未通过):17 + //联席会审核中(已确认专家审核):16 + $where['status'] = array('in','4,8,11,13,17,34,16'); + //取得apply_admin_id为0或者当前用户的数据 + $where['apply_admin_id']=$adminarr; + $order='update_time'; + return self::where($where)->order($order)->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + } +} \ No newline at end of file diff --git a/app/cult4/model/Cult4baseinfo.php b/app/cult4/model/Cult4baseinfo.php new file mode 100644 index 0000000..2794852 --- /dev/null +++ b/app/cult4/model/Cult4baseinfo.php @@ -0,0 +1,64 @@ + $user_id, + 'status'=>$status, + 'user_type'=>$usertype, + 'apply_admin_id'=>$apply_admin_id, + 'create_time'=>time(), + ); + $member=self::create($sldata); + if($member){ + return $member['apply_id']; + }else{ + return 0; + } + } + + /** + * 会员信息列表 + * @param array + * @param string $search_name 查询条件(公司名称) + * @param int $status 后台查询的操作用户状态 + * @param int $admin_id 后台查询的操作用户ID + * @param string $order 结果排序 + * @return mixed + */ + public static function getList($search_name=null,$status=-1,$admin_id,$order='apply_id') + { + $map=array(); + if($search_name){ + $map['admin_username']= array('like',"%".$search_name."%"); + } + //根据状态值取出对应状态的数据 + if($status != -1)$map['status'] = array('eq',$status);//array(array('eq',0),array('eq',$status), 'or'); + //取得apply_admin_id为0或者当前用户的数据 + $map['apply_admin_id']=array(array('eq',0),array('eq',$admin_id),'or'); + return self::where($map)->order($order)->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + } + +} \ No newline at end of file diff --git a/app/cult4/model/Cult4check.php b/app/cult4/model/Cult4check.php new file mode 100644 index 0000000..8cd34cc --- /dev/null +++ b/app/cult4/model/Cult4check.php @@ -0,0 +1,40 @@ + $apply_id, + 'advice'=>$advice, + 'create_id'=>$create_id, + 'create_time'=>time(), + 'addorder'=>$addorder, + ); + $dataadd=self::create($sldata); + if($dataadd){ + return $dataadd['check_id']; + }else{ + return 0; + } + } +} \ No newline at end of file diff --git a/app/cult4/model/Cult4checkdd.php b/app/cult4/model/Cult4checkdd.php new file mode 100644 index 0000000..e6d32ae --- /dev/null +++ b/app/cult4/model/Cult4checkdd.php @@ -0,0 +1,40 @@ + $apply_id, + 'advice'=>$advice, + 'create_id'=>$create_id, + 'create_time'=>time(), + 'addorder'=>$addorder, + ); + $dataadd=self::create($sldata); + if($dataadd){ + return $dataadd['check_id']; + }else{ + return 0; + } + } +} \ No newline at end of file diff --git a/app/cult4/model/Cult4number.php b/app/cult4/model/Cult4number.php new file mode 100644 index 0000000..40ef301 --- /dev/null +++ b/app/cult4/model/Cult4number.php @@ -0,0 +1,68 @@ +$saleno, + 'price' => $price, + 'status' => $status, + 'salestatus' => $salestatus, + 'create_id' => $create_id, + 'create_time' => $create_time, + ); + $number=self::create($sldata); + if($number){ + return $number['id']; + }else{ + return 0; + } + } + /** + * 修改特殊号段 + * @param array + * @return bool + */ + public static function edit($id,$saleno,$price,$status,$salestatus,$create_id,$create_time) + { + $sldata=array( + 'id'=>$id, + 'saleno'=>$saleno, + 'price' => $price, + 'status' => $status, + 'salestatus' => $salestatus, + 'create_id' => $create_id, + 'create_time' => $create_time, + ); + $rst=self::update($sldata); + if($rst){ + return $rst['id']; + }else{ + return 0; + } + } +} \ No newline at end of file diff --git a/app/cult4/model/Cult4status.php b/app/cult4/model/Cult4status.php new file mode 100644 index 0000000..cff2e8f --- /dev/null +++ b/app/cult4/model/Cult4status.php @@ -0,0 +1,33 @@ +name('cult4status') + ->where("status='$status_id'") + ->select(); + $status[$status_id]=$status?:array(); + return $status[$status_id]; + } +} \ No newline at end of file diff --git a/app/cult4/model/Cult4upfiles.php b/app/cult4/model/Cult4upfiles.php new file mode 100644 index 0000000..ca00e81 --- /dev/null +++ b/app/cult4/model/Cult4upfiles.php @@ -0,0 +1,114 @@ +name('cult4upfiles')->where("file_id='$fid'")->find(); + $fileInfo[$fid]=$fileInfo?:array(); + return $fileInfo[$fid]; + } + /** + * 根据模板文件id获取文件信息,返回值为数组 + * @param int $ftype_id 模板文件id + * @param int $apply_id 申请id + * @return array 文件信息数组 + */ + public static function getFileInfoFromTempFile($ftype_id,$apply_id) + { + $where['ftype_id']=array('eq', $ftype_id); + $where['new_flag']=array('eq', 1); + $where['apply_id']=array('eq', $apply_id); + $fileInfo = Db()->name('cult4upfiles')->where($where)->order('addorder desc')->find(); + $fileInfo[$ftype_id]=$fileInfo?:array(); + return $fileInfo[$ftype_id]; + } + /** + * 根据文件id获取文件信息,返回值为数组 + * @param int $fid 文件id + * @return array 文件信息数组 + */ + public static function getFileInfoFromFileID($fid) + { + $where['file_id']=array('eq', $fid); + $where['new_flag']=array('eq', 1); + $fileInfo = Db()->name('cult4upfiles')->where($where)->order('addorder desc')->find(); + $fileInfo[$fid]=$fileInfo?:array(); + return $fileInfo[$fid]; + } + /** + * 根据apply_id获取该申请在$status下的全部未审核文件数量,返回值为数量 + * @param int $apply_id 申请id + * @param int $status 状态数组 + * @return int 文件数量 + */ + public static function getNotPassFilesCntFromApplyIDCurrStatus($apply_id,$status) + { + $where['apply_id']=array('eq', $apply_id); + $where['new_flag']=array('eq', 1); + $where['status'] = is_array($status)?array('in',$status):array('eq',$status); + $where['flag']=array('eq', 0); + $fileCnt = Db()->name('cult4upfiles')->where($where)->count(); + return $fileCnt; + } + /** + * 根据apply_id获取该申请在<=$status下的全部未审核文件数量,返回值为数量 + * @param int $apply_id 申请id + * @param int $status 状态 + * @return int 文件数量 + */ + public static function getNotPassFilesCntFromApplyID($apply_id,$status) + { + $where['apply_id']=array('eq', $apply_id); + $where['new_flag']=array('eq', 1); + $where['status']=array('elt', $status); + $where['flag']=array('eq', 0); + $fileCnt = Db()->name('cult4upfiles')->where($where)->count(); + return $fileCnt; + } + /** + * 上传文件列表 + * @param array + * @param int $apply_id 查询条件(申请ID) + * @param int $ftype 查询条件(-1:包括临时和固定 0:固定 1:临时 2:模板) + * @param int $status 查询条件(文件类型显示在哪个状态) + * @param int $ftype_id 查询条件(文件类型ID) + * @param int $new_flag 查询条件(-1:包括历史记录,0取所有历史记录,1取最新记录) + * @param string $order 结果排序 + * @return mixed + */ + public static function getList($apply_id,$ftype=-1,$status=-1,$ftype_id=-1,$new_flag=-1,$order='file_id,status,ftype,apply_id') + { + $where=array(); + + //根据状态值取出对应状态的数据 + $where['apply_id'] = array('eq', $apply_id); + if($ftype != -1)$where['ftype'] = array('eq', $ftype); + if($status != -1&&$status)$where['status'] = is_array($status)?array('in',$status):$status; + if($ftype_id != -1&&$ftype_id)$where['ftype_id'] = array('eq',$ftype_id); + if($new_flag != -1)$where['new_flag'] = array('eq',$new_flag); + + $find=self::where($where)->order($order)->select(); + return $find; + } +} \ No newline at end of file diff --git a/app/cult4/model/Cult4uptype.php b/app/cult4/model/Cult4uptype.php new file mode 100644 index 0000000..663261c --- /dev/null +++ b/app/cult4/model/Cult4uptype.php @@ -0,0 +1,167 @@ +$ftypedescr, + 'ftemp_id' => $ftemp_id, + 'gp_level' => $gp_level, + 'apply_type' => $apply_type, + 'c_type' => $c_type, + 'p_type' => $p_type, + 'k_type' => $ktype, + 'mustupload' => $mustupload, + 'ftype'=>$ftype, + 'status'=>$status, + 'isopen'=>$isopen, + 'apply_id'=>$apply_id, + 'user_id'=>$user_id, + 'create_time'=>time(), + 'upload_role_type'=>$roletype, + 'upload_role_id'=>$roleid, + 'upload_role_type2'=>$roletype2, + 'upload_role_id2'=>$roleid2, + 'forder'=>$forder, + ); + $uptype=self::create($sldata); + if($uptype){ + return $uptype['ftype_id']; + }else{ + return 0; + } + } + /** + * 根据文件类型id获取文件类型信息,返回值为数组 + * @param int $ftypeid 文件类型id + * @return array 文件类型信息数组 + */ + public static function getFileTypeInfo($ftypeid) + { + $filetypeInfo = Db()->name('cult4uptype')->where("ftype_id='$ftypeid'")->select(); + $filetypeInfo[$ftypeid]=$filetypeInfo?:array(); + return $filetypeInfo[$ftypeid]; + } + + /** + * 上传文件类型表 + * @param array + * @param int $apply_id 查询条件(申请ID) + * @param int $type 查询条件(-1:$apply_id对应的临时和固定文件 1:固定 2:临时) + * @param int|array $status 查询条件(文件类型显示在哪个状态) + * @param int $isopen 查询条件(启用状态) + * @param string $order 结果排序 + * @return mixed + */ + public static function getList($apply_type,$c_type,$p_type,$apply_id,$type=-1,$status=-1,$isopen=1,$order='ftype_id,status,apply_id,isopen',$mustupload=1,$kind=1) + { + $where=array(); + + //根据状态值取出对应状态的数据0:所有 1:企业 2:项目 3:个人 + if($apply_type!=-1){ + if(strpos($apply_type,',')){ + $apply_type=explode(',', $apply_type); + } + if(is_array($apply_type)){ + array_push($apply_type,0); + $where['apply_type']=array('in',$apply_type); + }else{ + $where['apply_type']=array('in',[0,$apply_type]); + } + } + if($apply_id>0 and $type===1){ + $gplevel=Db::name('cult4baseinfo')->where(['apply_id'=>$apply_id,'new_flag'=>1])->value('gplevel'); + + if($gplevel){ + $where['gp_level']=array('in',[0,intval($gplevel)]); + } + } + //企业 + if($apply_type==1){ + if(($c_type==1 or $c_type==3 or $c_type==4)) + $where['c_type']=array('in',[0,$c_type]); + else + $where['c_type']=0; + } + //项目 + if(($apply_type==2||is_array($apply_type)&&in_array(2, $apply_type))&&$p_type){ + $where['p_type']=array('in',[0,$p_type]); + } + if($apply_type==4||is_array($apply_type)&&in_array(4, $apply_type)){ + if($c_type)$where['c_type']=$c_type; + } + /* if($mustupload!=-1)$where['mustupload']=$mustupload;*/ + if($type != -1){ + if($type===1)//固定 + $where['apply_id'] =0; + elseif($type===2)//临时 + $where['apply_id'] =intval($apply_id);//临时文件肯定有对应的apply_id + }else{ + $where['apply_id'] = array(0,$apply_id, 'or'); + } + if($status != -1)$where['status'] = is_array($status)?array('in',$status):$status; + if($isopen != -1)$where['isopen'] =$isopen; + if($kind)$where['k_type'] =$kind; + + if($status == -1){ + $list=self::where($where)->order($order)->paginate(config('paginate.list_rows'),false,['query'=>get_query()]); + return $list; + }else{ + $list=self::where($where)->order($order)->select(); + return $list; + } + } + /** + * 上传文件列表 + * @param array + * @param int $apply_id 查询条件(申请ID) + * @param int $ftype 查询条件(-1:包括临时和固定 0:固定 1:临时 2:模板) + * @param int $status 查询条件(文件类型显示在哪个状态) + * @param int $ftype_id 查询条件(文件类型ID) + * @param int $new_flag 查询条件(-1:包括历史记录,0取所有历史记录,1取最新记录) + * @param string $order 结果排序 + * @return mixed + */ + public static function getListBySearch($ftype_id,$status=-1) + { + $order='ftype_id,status,apply_id,isopen'; + $where=array(); + + //根据状态值取出对应状态的数据 + if($ftype_id){ + $where['ftype_id'] =is_array($ftype_id)?array('in',$ftype_id):$ftype_id; + } + if($status!=-1)$where['status'] = is_array($status)?array('in',$status):$status; + + $find=self::where($where)->order($order)->select(); + return $find; + } +} \ No newline at end of file diff --git a/app/cult4/view/cult4/ajax_apply_listadd.html b/app/cult4/view/cult4/ajax_apply_listadd.html new file mode 100644 index 0000000..09e85f2 --- /dev/null +++ b/app/cult4/view/cult4/ajax_apply_listadd.html @@ -0,0 +1,25 @@ +{foreach name="member_list" item="v"} + + {$v.member_list_id} + {$v.CNT} + {$v.member_list_username} + {$v.member_list_nickname|default="未设置"}【{$v.member_list_email|default="未设置"}】 + + {if condition="$v.member_list_sex eq 1"}男 + {elseif condition="$v.member_list_sex eq 2"/}女 + {else /}保密 + {/if} + + {if condition='$v.member_list_open eq 1'}已开启{else/}已禁用{/if} + {if condition='$v.user_status eq 1'}已激活{else/}未激活{/if} + +
+ + 添加 + +
+ + +{/foreach} + + diff --git a/app/cult4/view/cult4/ajax_apply_listadd2.html b/app/cult4/view/cult4/ajax_apply_listadd2.html new file mode 100644 index 0000000..979d6ef --- /dev/null +++ b/app/cult4/view/cult4/ajax_apply_listadd2.html @@ -0,0 +1,25 @@ +{foreach name="member_list" item="v"} + + {$v.member_list_id} + {$v.CNT} + {$v.member_list_username} + {$v.member_list_nickname|default="未设置"}【{$v.member_list_email|default="未设置"}】 + + {if condition="$v.member_list_sex eq 1"}男 + {elseif condition="$v.member_list_sex eq 2"/}女 + {else /}保密 + {/if} + + {if condition='$v.member_list_open eq 1'}已开启{else/}已禁用{/if} + {if condition='$v.user_status eq 1'}已激活{else/}未激活{/if} + +
+ + 添加 + +
+ + +{/foreach} + + diff --git a/app/cult4/view/cult4/ajax_apply_listdel.html b/app/cult4/view/cult4/ajax_apply_listdel.html new file mode 100644 index 0000000..5dc872d --- /dev/null +++ b/app/cult4/view/cult4/ajax_apply_listdel.html @@ -0,0 +1,24 @@ +{foreach name="member_list_assigned" item="v"} + + {$v.pro_id} + {$v.member_list_username} + {$v.member_list_nickname|default="未设置"}【{$v.member_list_email|default="未设置"}】 + + {if condition="$v.member_list_sex eq 1"}男 + {elseif condition="$v.member_list_sex eq 2"/}女 + {else /}保密 + {/if} + + {if condition='$v.member_list_open eq 1'}已开启{else/}已禁用{/if} + {if condition='$v.user_status eq 1'}已激活{else/}未激活{/if} + +
+ + 删除 + +
+ + +{/foreach} + + diff --git a/app/cult4/view/cult4/ajax_apply_listdel2.html b/app/cult4/view/cult4/ajax_apply_listdel2.html new file mode 100644 index 0000000..db5fb5a --- /dev/null +++ b/app/cult4/view/cult4/ajax_apply_listdel2.html @@ -0,0 +1,24 @@ +{foreach name="pro_list_assigned" item="v"} + + {$v.pro_id} + {$v.member_list_username} + {$v.member_list_nickname|default="未设置"}【{$v.member_list_email|default="未设置"}】 + + {if condition="$v.member_list_sex eq 1"}男 + {elseif condition="$v.member_list_sex eq 2"/}女 + {else /}保密 + {/if} + + {if condition='$v.member_list_open eq 1'}已开启{else/}已禁用{/if} + {if condition='$v.user_status eq 1'}已激活{else/}未激活{/if} + +
+ + 删除 + +
+ + +{/foreach} + + diff --git a/app/cult4/view/cult4/ajax_apply_listpro.html b/app/cult4/view/cult4/ajax_apply_listpro.html new file mode 100644 index 0000000..9f7d027 --- /dev/null +++ b/app/cult4/view/cult4/ajax_apply_listpro.html @@ -0,0 +1,103 @@ + +{foreach name="pro_list_assigned" item="v"} + + {$v.pro_id} + + {if condition="$v.assign_type eq 0"}前台专家可见 + {elseif condition="$v.assign_type eq 1"/}前台专家不可见 + {/if} + + {$v.member_list_username} + {$v.member_list_nickname|default="未设置"}【{$v.member_list_email|default="未设置"}】 + + {if condition="$v.member_list_sex eq 1"}男 + {elseif condition="$v.member_list_sex eq 2"/}女 + {else /}保密 + {/if} + + {if condition='$v.member_list_open eq 1'}已开启{else/}已禁用{/if} + {if condition='$v.user_status eq 1'}已激活{else/}未激活{/if} + + + +
+
+
+
+ {$v.member_list_username} +
+
+
+  {$v.member_list_username} +
+
+
+
+
+
+
+ + +
+ +
+
+

专家评分(最高分:{$v.full_score})

+ +
+ {~$tscore=$tscore+$v.score;} +
+
+
+ + +
+
+
+ +
+ {if condition="$process eq 8"} +
+ {if condition="chk_cult4CanChangeScore($v.apply_id,$v.pro_id) eq 1"} + + {else/} + 专家已评分 + {/if} +
+ {/if} + {if condition="chk_cult4CanChangeScore($v.apply_id,$v.pro_id) eq 1"} + {if condition="$v.assign_type eq 0"}注:请等待前台专家评分完成,如果要代替前台专家评分,则评分后前台专家不可见!{elseif condition="$v.assign_type eq 1"}注:提交后,前台专家对该评分不可见{/if} + {/if} +
+
+
+
+ + +{/foreach} + diff --git a/app/cult4/view/cult4/apply_assign.html b/app/cult4/view/cult4/apply_assign.html new file mode 100644 index 0000000..d729d7f --- /dev/null +++ b/app/cult4/view/cult4/apply_assign.html @@ -0,0 +1,84 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ +

企业名称/项目名称/申请人名称:{$apply_id|get_cult4ApplyName}

+

可分配专家(按分配次数排序),总共可分配{$Think.config.cult4ProLimit}名专家

+
+
+
+ + + + + + + + + + + + + + + + {include file="cult4/ajax_apply_listadd"/} + +
ID已分配次数专家登陆用户名专家昵称/邮箱性别状态激活操作
+ +
+
+
+

已分配专家(分配完后,前台专家可进行评分,请等待前台专家评分完成 或 联系前台专家让其进行评分 或 在前台专家评分前在专家审核确认里代专家评分

+
+
+
+ + + + + + + + + + + + + + + {include file="cult4/ajax_apply_listdel"/} + +
ID专家登陆用户名专家昵称/邮箱性别状态激活操作
+ +
+
+
+ +
+
+
+ +    + +
+
+
+
+{/block} +{block name="scripts"} + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_check1.html b/app/cult4/view/cult4/apply_check1.html new file mode 100644 index 0000000..3ca3d65 --- /dev/null +++ b/app/cult4/view/cult4/apply_check1.html @@ -0,0 +1,33 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + +

挂牌信息 - 初审

+
+
+
+ {include file='cult4@cult4:content' /} +
+
+
+
+{/block} +{block name="scripts"} + + + +{/block} diff --git a/app/cult4/view/cult4/apply_check10.html b/app/cult4/view/cult4/apply_check10.html new file mode 100644 index 0000000..e598049 --- /dev/null +++ b/app/cult4/view/cult4/apply_check10.html @@ -0,0 +1,65 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +

挂牌信息 - 材料核实

+
+
+
+ {include file='cult4@cult4:content' /} + +
+
+
+
+{/block} +{block name="scripts"} + + + + +{/block} diff --git a/app/cult4/view/cult4/apply_check11.html b/app/cult4/view/cult4/apply_check11.html new file mode 100644 index 0000000..643f856 --- /dev/null +++ b/app/cult4/view/cult4/apply_check11.html @@ -0,0 +1,71 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +

挂牌信息 - 公告材料审核

+
+
+
+ {include file='cult4@cult4:content' /} + +
+
+
+
+{/block} +{block name="scripts"} + + + + +{/block} diff --git a/app/cult4/view/cult4/apply_check12.html b/app/cult4/view/cult4/apply_check12.html new file mode 100644 index 0000000..14b18b2 --- /dev/null +++ b/app/cult4/view/cult4/apply_check12.html @@ -0,0 +1,1227 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +

挂牌信息 - 挂牌审核

+
+
+
+ {include file='cult4@cult4:content' /} + +
+
+

初审信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['check'] eq 1"} +
+ {if(!empty($apply_uptypelist_check))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_check" item="f2"} + {~$file_id=get_cult4FileIDFromTempID($f2.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f2.ftypedescr}{if condition="$f2.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f2.upload_role_id,$f2.upload_role_type)}
第二上传者:{:get_cult4RoleName($f2.upload_role_id2,$f2.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f2.ftype_id) eq 0"}无{else/}历史{/if}
{$f2.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f2.ftypedescr}{if condition="$f2.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f2.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f2.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f2.ftype_id,$baseinfo.apply_id))}{$f2.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f2.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f2.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheck))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheck" item="f3"} + {~$file_id=get_cult4FileIDFromTempID($f3.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f3.ftypedescr}{if condition="$f3.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f3.upload_role_id,$f3.upload_role_type)}
第二上传者:{:get_cult4RoleName($f3.upload_role_id2,$f3.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f3.ftype_id) eq 0"}无{else/}历史{/if}
{$f3.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f3.ftypedescr}{if condition="$f3.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f3.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f3.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f3.ftype_id,$baseinfo.apply_id))}{$f3.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f3.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f3.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['check'] eq 1"} +
+
+
+ +
+ {if(!empty($begincheck))} +
+ {foreach name="begincheck" item="f4" key="bc"} + {if condition="$bc eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+ + {range name="$status" value="4" type='notin'} + + {/range} + {range name="$status" value="4,34" type='notin'} + + {/range} + {range name="$status" value="4,34,8" type='notin'} +
+
+

风控审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkrisk'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkrisk))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkrisk" item="f10"} + {~$file_id=get_cult4FileIDFromTempID($f10.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f10.ftypedescr}{if condition="$f10.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f10.upload_role_id,$f10.upload_role_type)}
第二上传者:{:get_cult4RoleName($f10.upload_role_id2,$f10.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f10.ftype_id) eq 0"}无{else/}历史{/if}
{$f10.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f10.ftypedescr}{if condition="$f10.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f10.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f10.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f10.ftype_id,$baseinfo.apply_id))}{$f10.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f10.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f10.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckrisk))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckrisk" item="f11"} + {~$file_id=get_cult4FileIDFromTempID($f11.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f11.ftypedescr}{if condition="$f11.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f11.upload_role_id,$f11.upload_role_type)}
第二上传者:{:get_cult4RoleName($f11.upload_role_id2,$f11.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f11.ftype_id) eq 0"}无{else/}历史{/if}
{$f11.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f11.ftypedescr}{if condition="$f11.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f11.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f11.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f11.ftype_id,$baseinfo.apply_id))}{$f11.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f11.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f11.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['checkrisk'] eq 1"} +
+
+
+ +
+ {if(!empty($riskcheck))} +
+ {foreach name="$riskcheck" item="f12" key="bc"} + {if condition="$bc eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+ {/range} + {range name="$status" value="4,34,8,11" type='notin'} +
+
+

缴费确认审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkfee'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkfee))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkfee" item="f13"} + {~$file_id=get_cult4FileIDFromTempID($f13.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f13.ftypedescr}{if condition="$f13.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f13.upload_role_id,$f13.upload_role_type)}
第二上传者:{:get_cult4RoleName($f13.upload_role_id2,$f13.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f13.ftype_id) eq 0"}无{else/}历史{/if}
{$f13.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f13.ftypedescr}{if condition="$f13.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f13.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f13.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f13.ftype_id,$baseinfo.apply_id))}{$f13.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f13.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f13.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckfee))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckfee" item="f14"} + {~$file_id=get_cult4FileIDFromTempID($f14.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f14.ftypedescr}{if condition="$f14.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f14.upload_role_id,$f14.upload_role_type)}
第二上传者:{:get_cult4RoleName($f14.upload_role_id2,$f14.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f14.ftype_id) eq 0"}无{else/}历史{/if}
{$f14.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f14.ftypedescr}{if condition="$f14.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f14.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f14.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f14.ftype_id,$baseinfo.apply_id))}{$f14.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f14.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f14.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + + {if condition="$Think.config.cult4advice['checkfee'] eq 1"} +
+
+
+ +
+
+ {if condition="$fee_flag eq 1"} + 已缴费 + {else/} + 未缴费 + {/if} +
+
+
+
+
+ +
+ {if(!empty($feecheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+ {/range} + {range name="$status" value="4,34,8,11,13" type='notin'} + + {/range} +
+
+

挂牌审核信息

+
+ + + +
+
+ {~$k=0;} +
+
+
+
+
+ + + + +
+ +
+
+
+ + + 代理前台基础会员输入路演演讲内容,并提交! +
+
+
+
+ {if condition="$status eq 30"} +
+ +
+ +
+
+ {/if} +
+ {if condition="$status eq 51"} + {if condition="$Think.config.cult4files['checkboard'] eq 1"} +
+
+ + {if(!empty($apply_uptypelist_checkboard))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkboard" item="fix"} + {~$file_id=get_cult4FileIDFromTempID($fix.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload=chk_cult4CanUpload($fix.upload_role_type,$fix.upload_role_id,$fix.upload_role_type2,$fix.upload_role_id2);} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($fix.upload_role_id,$fix.upload_role_type)}
第二上传者:{:get_cult4RoleName($fix.upload_role_id2,$fix.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($fix.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id))}{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$fix.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+ +
+ + {if(!empty($apply_uptypelist_tempcheckboard))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckboard" item="temp"} + {~$file_id=get_cult4FileIDFromTempID($temp.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload = chk_cult4CanUpload($temp.upload_role_type,$temp.upload_role_id,$temp.upload_role_type2,$temp.upload_role_id2);} + {~$k=$k+1;} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($temp.upload_role_id,$temp.upload_role_type)}
第二上传者:{:get_cult4RoleName($temp.upload_role_id2,$temp.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($temp.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id))}{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$temp.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+ +
+ +
+
+ +   +
+
+
+
+
+ {/if} +
+ + + + +
+ +
+
+
+
+ + + + +
+
+
+
+
+ {if condition="$Think.config.cult4advice['checkboard'] eq 1"} +
+ +
+ {if(!empty($boardcheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+ +
+ +
+ + + 请输入您的挂牌审核意见,并提交! +
+
+
+ {/if} +
+
+   +   + {if condition="$Think.config.cult4files['checkboard'] eq 1"} {/if} +
+
+
+ {/if} +
+
+
+
+
+
+
+
+
+
+ {/block} + {block name="scripts"} + + + + + + + {/block} diff --git a/app/cult4/view/cult4/apply_check13.html b/app/cult4/view/cult4/apply_check13.html new file mode 100644 index 0000000..85d63ea --- /dev/null +++ b/app/cult4/view/cult4/apply_check13.html @@ -0,0 +1,1986 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +

挂牌信息 - 财务人员确认业务号码审核

+
+
+
+ {include file='cult4@cult4:content' /} + +
+
+

初审信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['check'] eq 1"} +
+ {if(!empty($apply_uptypelist_check))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_check" item="f2"} + {~$file_id=get_cult4FileIDFromTempID($f2.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f2.ftypedescr}{if condition="$f2.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f2.upload_role_id,$f2.upload_role_type)}
第二上传者:{:get_cult4RoleName($f2.upload_role_id2,$f2.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f2.ftype_id) eq 0"}无{else/}历史{/if}
{$f2.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f2.ftypedescr}{if condition="$f2.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f2.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f2.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f2.ftype_id,$baseinfo.apply_id))}{$f2.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f2.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f2.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheck))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheck" item="f3"} + {~$file_id=get_cult4FileIDFromTempID($f3.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f3.ftypedescr}{if condition="$f3.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f3.upload_role_id,$f3.upload_role_type)}
第二上传者:{:get_cult4RoleName($f3.upload_role_id2,$f3.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f3.ftype_id) eq 0"}无{else/}历史{/if}
{$f3.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f3.ftypedescr}{if condition="$f3.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f3.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f3.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f3.ftype_id,$baseinfo.apply_id))}{$f3.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f3.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f3.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['check'] eq 1"} +
+
+
+ +
+ {if(!empty($begincheck))} +
+ {foreach name="begincheck" item="f4" key="bc"} + {if condition="$bc eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+ + {range name="$status" value="4" type='notin'} + + {/range} + {range name="$status" value="4,34" type='notin'} + + {/range} + {range name="$status" value="4,34,8" type='notin'} +
+
+

风控审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkrisk'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkrisk))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkrisk" item="f10"} + {~$file_id=get_cult4FileIDFromTempID($f10.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f10.ftypedescr}{if condition="$f10.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f10.upload_role_id,$f10.upload_role_type)}
第二上传者:{:get_cult4RoleName($f10.upload_role_id2,$f10.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f10.ftype_id) eq 0"}无{else/}历史{/if}
{$f10.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f10.ftypedescr}{if condition="$f10.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f10.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f10.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f10.ftype_id,$baseinfo.apply_id))}{$f10.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f10.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f10.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckrisk))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckrisk" item="f11"} + {~$file_id=get_cult4FileIDFromTempID($f11.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f11.ftypedescr}{if condition="$f11.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f11.upload_role_id,$f11.upload_role_type)}
第二上传者:{:get_cult4RoleName($f11.upload_role_id2,$f11.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f11.ftype_id) eq 0"}无{else/}历史{/if}
{$f11.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f11.ftypedescr}{if condition="$f11.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f11.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f11.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f11.ftype_id,$baseinfo.apply_id))}{$f11.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f11.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f11.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['checkrisk'] eq 1"} +
+
+
+ +
+ {if(!empty($riskcheck))} +
+ {foreach name="$riskcheck" item="f12" key="bc"} + {if condition="$bc eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+ {/range} + {range name="$status" value="4,34,8,11" type='notin'} +
+
+

缴费确认审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkfee'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkfee))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkfee" item="f13"} + {~$file_id=get_cult4FileIDFromTempID($f13.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f13.ftypedescr}{if condition="$f13.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f13.upload_role_id,$f13.upload_role_type)}
第二上传者:{:get_cult4RoleName($f13.upload_role_id2,$f13.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f13.ftype_id) eq 0"}无{else/}历史{/if}
{$f13.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f13.ftypedescr}{if condition="$f13.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f13.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f13.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f13.ftype_id,$baseinfo.apply_id))}{$f13.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f13.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f13.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckfee))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckfee" item="f14"} + {~$file_id=get_cult4FileIDFromTempID($f14.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f14.ftypedescr}{if condition="$f14.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f14.upload_role_id,$f14.upload_role_type)}
第二上传者:{:get_cult4RoleName($f14.upload_role_id2,$f14.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f14.ftype_id) eq 0"}无{else/}历史{/if}
{$f14.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f14.ftypedescr}{if condition="$f14.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f14.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f14.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f14.ftype_id,$baseinfo.apply_id))}{$f14.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f14.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f14.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + + {if condition="$Think.config.cult4advice['checkfee'] eq 1"} +
+
+
+ +
+
+ {if condition="$fee_flag eq 1"} + 已缴费 + {else/} + 未缴费 + {/if} +
+
+
+
+
+ +
+ {if(!empty($feecheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+ {/range} + +
+
+

联席会审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkjc'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkjc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkjc" item="f19"} + {~$file_id=get_cult4FileIDFromTempID($f19.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f19.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f19.upload_role_id,$f19.upload_role_type)}
第二上传者:{:get_cult4RoleName($f19.upload_role_id2,$f19.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f19.ftype_id) eq 0"}无{else/}历史{/if}
{$f19.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f19.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f19.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f19.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f19.ftype_id,$baseinfo.apply_id))}{$f19.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f19.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f19.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckjc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckjc" item="f20"} + {~$file_id=get_cult4FileIDFromTempID($f20.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f20.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f20.upload_role_id,$f20.upload_role_type)}
第二上传者:{:get_cult4RoleName($f20.upload_role_id2,$f20.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f20.ftype_id) eq 0"}无{else/}历史{/if}
{$f20.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f20.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f204.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f20.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f20.ftype_id,$baseinfo.apply_id))}{$f20.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f20.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f20.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if(!empty($apply_lxhjy))} +
+
+ +
+ 查看 +
+
+
+ {/if} + {if condition="$Think.config.cult4advice['checkjc'] eq 1"} +
+
+
+ +
+ {if(!empty($jccheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+
+
+

号码选择信息

+
+ + + +
+
+ {~$k=0;} +
+
+
+
+ {if condition="$status eq 48"} +
+
+
+
+
+ +
+ +
+
+
+ {if(!empty($baseinfo.logo))} +
+ 查看 +
+ {/if} + +
+
+
+
+
+ +
+
+
+ {if(!empty($applyinfo.pay_img))} +
+ 查看 +
+ {/if} + +
+
+
+
+
+
+ +
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+
+ + +
+ +
+ +
+
+
+
+
+ {if condition="$status eq 48"} + > +
+ {/if} + + + {/if} + {if condition="$status eq 48"} +
+
+ + + +
+ +
+
+
+ +
+
+
+
+ +
+
+ {/if} + {if condition="$status eq 48"} + {if condition="$Think.config.cult4files['checkboard'] eq 1"} + + {/if} + + + + + +
+ + + + + + + {if condition="$Think.config.cult4advice['checkboard'] eq 1"} +
+ +
+ {if(!empty($boardcheck))} +
+ {foreach name="boardcheck" item="vcb" key="k1"} + {if condition="$k1 eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+ +
+ +
+ + + 请输入您的审核意见,并提交! +
+
+
+ {/if} +
+
+   +   +
+
+
+ {/if} +
+
+
+
+
+
+
+
+
+
+ {/block} + {block name="scripts"} + + + + + + + {/block} diff --git a/app/cult4/view/cult4/apply_check14.html b/app/cult4/view/cult4/apply_check14.html new file mode 100644 index 0000000..eb47b84 --- /dev/null +++ b/app/cult4/view/cult4/apply_check14.html @@ -0,0 +1,1687 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +

挂牌信息 - 财务人员确认业务号码审核

+
+
+
+ {include file='cult4@cult4:content' /} + +
+
+

初审信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['check'] eq 1"} +
+ {if(!empty($apply_uptypelist_check))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_check" item="f2"} + {~$file_id=get_cult4FileIDFromTempID($f2.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f2.ftypedescr}{if condition="$f2.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f2.upload_role_id,$f2.upload_role_type)}
第二上传者:{:get_cult4RoleName($f2.upload_role_id2,$f2.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f2.ftype_id) eq 0"}无{else/}历史{/if}
{$f2.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f2.ftypedescr}{if condition="$f2.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f2.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f2.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f2.ftype_id,$baseinfo.apply_id))}{$f2.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f2.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f2.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheck))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheck" item="f3"} + {~$file_id=get_cult4FileIDFromTempID($f3.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f3.ftypedescr}{if condition="$f3.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f3.upload_role_id,$f3.upload_role_type)}
第二上传者:{:get_cult4RoleName($f3.upload_role_id2,$f3.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f3.ftype_id) eq 0"}无{else/}历史{/if}
{$f3.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f3.ftypedescr}{if condition="$f3.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f3.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f3.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f3.ftype_id,$baseinfo.apply_id))}{$f3.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f3.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f3.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['check'] eq 1"} +
+
+
+ +
+ {if(!empty($begincheck))} +
+ {foreach name="begincheck" item="f4" key="bc"} + {if condition="$bc eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+ + {range name="$status" value="4" type='notin'} + + {/range} + {range name="$status" value="4,34" type='notin'} + + {/range} + {range name="$status" value="4,34,8" type='notin'} +
+
+

风控审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkrisk'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkrisk))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkrisk" item="f10"} + {~$file_id=get_cult4FileIDFromTempID($f10.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f10.ftypedescr}{if condition="$f10.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f10.upload_role_id,$f10.upload_role_type)}
第二上传者:{:get_cult4RoleName($f10.upload_role_id2,$f10.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f10.ftype_id) eq 0"}无{else/}历史{/if}
{$f10.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f10.ftypedescr}{if condition="$f10.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f10.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f10.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f10.ftype_id,$baseinfo.apply_id))}{$f10.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f10.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f10.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckrisk))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckrisk" item="f11"} + {~$file_id=get_cult4FileIDFromTempID($f11.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f11.ftypedescr}{if condition="$f11.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f11.upload_role_id,$f11.upload_role_type)}
第二上传者:{:get_cult4RoleName($f11.upload_role_id2,$f11.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f11.ftype_id) eq 0"}无{else/}历史{/if}
{$f11.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f11.ftypedescr}{if condition="$f11.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f11.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f11.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f11.ftype_id,$baseinfo.apply_id))}{$f11.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f11.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f11.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['checkrisk'] eq 1"} +
+
+
+ +
+ {if(!empty($riskcheck))} +
+ {foreach name="$riskcheck" item="f12" key="bc"} + {if condition="$bc eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+ {/range} + {range name="$status" value="4,34,8,11" type='notin'} +
+
+

缴费确认审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkfee'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkfee))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkfee" item="f13"} + {~$file_id=get_cult4FileIDFromTempID($f13.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f13.ftypedescr}{if condition="$f13.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f13.upload_role_id,$f13.upload_role_type)}
第二上传者:{:get_cult4RoleName($f13.upload_role_id2,$f13.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f13.ftype_id) eq 0"}无{else/}历史{/if}
{$f13.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f13.ftypedescr}{if condition="$f13.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f13.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f13.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f13.ftype_id,$baseinfo.apply_id))}{$f13.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f13.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f13.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckfee))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckfee" item="f14"} + {~$file_id=get_cult4FileIDFromTempID($f14.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f14.ftypedescr}{if condition="$f14.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f14.upload_role_id,$f14.upload_role_type)}
第二上传者:{:get_cult4RoleName($f14.upload_role_id2,$f14.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f14.ftype_id) eq 0"}无{else/}历史{/if}
{$f14.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f14.ftypedescr}{if condition="$f14.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f14.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f14.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f14.ftype_id,$baseinfo.apply_id))}{$f14.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f14.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f14.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + + {if condition="$Think.config.cult4advice['checkfee'] eq 1"} +
+
+
+ +
+
+ {if condition="$fee_flag eq 1"} + 已缴费 + {else/} + 未缴费 + {/if} +
+
+
+
+
+ +
+ {if(!empty($feecheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+ {/range} + +
+
+

联席会审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkjc'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkjc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkjc" item="f19"} + {~$file_id=get_cult4FileIDFromTempID($f19.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f19.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f19.upload_role_id,$f19.upload_role_type)}
第二上传者:{:get_cult4RoleName($f19.upload_role_id2,$f19.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f19.ftype_id) eq 0"}无{else/}历史{/if}
{$f19.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f19.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f19.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f19.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f19.ftype_id,$baseinfo.apply_id))}{$f19.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f19.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f19.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckjc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckjc" item="f20"} + {~$file_id=get_cult4FileIDFromTempID($f20.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f20.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f20.upload_role_id,$f20.upload_role_type)}
第二上传者:{:get_cult4RoleName($f20.upload_role_id2,$f20.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f20.ftype_id) eq 0"}无{else/}历史{/if}
{$f20.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f20.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f204.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f20.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f20.ftype_id,$baseinfo.apply_id))}{$f20.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f20.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f20.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if(!empty($apply_lxhjy))} +
+
+ +
+ 查看 +
+
+
+ {/if} + {if condition="$Think.config.cult4advice['checkjc'] eq 1"} +
+
+
+ +
+ {if(!empty($jccheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+
+
+

号码选择信息

+
+ + + +
+
+ {~$k=0;} + + +
+ + + + +
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+
+ + + + +
+
+
+
+
+ {if condition="$Think.config.cult4advice['checkboard'] eq 1"} +
+ +
+ {if(!empty($boardcheck))} +
+ {foreach name="boardcheck" item="vcb" key="k1"} + {if condition="$k1 eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+ +
+ +
+ + + 请输入您的挂牌审核意见,并提交! +
+
+
+
+
+   + +
+
+
+ {/if} +
+
+
+
+
+
+
+
+
+ +{/block} +{block name="scripts"} + + + + + + +{/block} diff --git a/app/cult4/view/cult4/apply_check2.html b/app/cult4/view/cult4/apply_check2.html new file mode 100644 index 0000000..11fb71b --- /dev/null +++ b/app/cult4/view/cult4/apply_check2.html @@ -0,0 +1,33 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + +

挂牌信息 - 尽职调查

+
+
+
+ {include file='cult4@cult4:content' /} +
+
+
+
+{/block} +{block name="scripts"} + + + +{/block} diff --git a/app/cult4/view/cult4/apply_check3.html b/app/cult4/view/cult4/apply_check3.html new file mode 100644 index 0000000..6e1a386 --- /dev/null +++ b/app/cult4/view/cult4/apply_check3.html @@ -0,0 +1,34 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + +

挂牌信息 - 复审

+
+
+
+ {include file='cult4@cult4:content' /} + +
+
+
+
+{/block} +{block name="scripts"} + + + +{/block} diff --git a/app/cult4/view/cult4/apply_check4.html b/app/cult4/view/cult4/apply_check4.html new file mode 100644 index 0000000..2a5c207 --- /dev/null +++ b/app/cult4/view/cult4/apply_check4.html @@ -0,0 +1,34 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + +

登记挂牌信息 - 风控中心审核

+
+
+
+ {include file='cult4@cult4:content' /} + +
+
+
+
+{/block} +{block name="scripts"} + + + +{/block} diff --git a/app/cult4/view/cult4/apply_check5.html b/app/cult4/view/cult4/apply_check5.html new file mode 100644 index 0000000..ddcfdda --- /dev/null +++ b/app/cult4/view/cult4/apply_check5.html @@ -0,0 +1,34 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + +

挂牌信息 - 缴费

+
+
+
+ {include file='cult4@cult4:content' /} + +
+
+
+
+{/block} +{block name="scripts"} + + + +{/block} diff --git a/app/cult4/view/cult4/apply_check6.html b/app/cult4/view/cult4/apply_check6.html new file mode 100644 index 0000000..e48a81a --- /dev/null +++ b/app/cult4/view/cult4/apply_check6.html @@ -0,0 +1,34 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + +

挂牌信息 - 风控中心审核

+
+
+
+ {include file='cult4@cult4:content' /} + +
+
+
+
+{/block} +{block name="scripts"} + + + +{/block} diff --git a/app/cult4/view/cult4/apply_check8.html b/app/cult4/view/cult4/apply_check8.html new file mode 100644 index 0000000..67101a4 --- /dev/null +++ b/app/cult4/view/cult4/apply_check8.html @@ -0,0 +1,63 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + +

挂牌信息 - 专家审核确认

+
+
+
+ {include file='cult4@cult4:content' /} + +
+
+
+
+{/block} +{block name="scripts"} + + + + +{/block} diff --git a/app/cult4/view/cult4/apply_check9.html b/app/cult4/view/cult4/apply_check9.html new file mode 100644 index 0000000..8d65820 --- /dev/null +++ b/app/cult4/view/cult4/apply_check9.html @@ -0,0 +1,75 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +

挂牌信息 - 联席会审核确认

+
+
+
+ {include file='cult4@cult4:content' /} + +
+
+
+
+{/block} +{block name="scripts"} + + + + + + +{/block} diff --git a/app/cult4/view/cult4/apply_check_final.html b/app/cult4/view/cult4/apply_check_final.html new file mode 100644 index 0000000..2ebb965 --- /dev/null +++ b/app/cult4/view/cult4/apply_check_final.html @@ -0,0 +1,2018 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +

挂牌信息 - 挂牌成功

+
+
+
+ {include file='cult4@cult4:content' /} + +
+
+

初审信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['check'] eq 1"} +
+ {if(!empty($apply_uptypelist_check))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_check" item="f2"} + {~$file_id=get_cult4FileIDFromTempID($f2.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f2.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f2.upload_role_id,$f2.upload_role_type)}
第二上传者:{:get_cult4RoleName($f2.upload_role_id2,$f2.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f2.ftype_id) eq 0"}无{else/}历史{/if}
{$f2.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f2.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f2.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f2.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f2.ftype_id,$baseinfo.apply_id))}{$f2.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f2.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f2.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheck))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheck" item="f3"} + {~$file_id=get_cult4FileIDFromTempID($f3.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f3.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f3.upload_role_id,$f3.upload_role_type)}
第二上传者:{:get_cult4RoleName($f3.upload_role_id2,$f3.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f3.ftype_id) eq 0"}无{else/}历史{/if}
{$f3.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f3.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f3.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f3.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f3.ftype_id,$baseinfo.apply_id))}{$f3.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f3.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f3.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['check'] eq 1"} +
+
+
+ +
+ {if(!empty($begincheck))} +
+ {foreach name="begincheck" item="f4" key="bc"} + {if condition="$bc eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+ +{range name="$status" value="2" type='notin'} +
+
+

尽职调查

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkdd'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkdd))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkdd" item="f5"} + {~$file_id=get_cult4FileIDFromTempID($f5.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f5.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f5.upload_role_id,$f5.upload_role_type)}
第二上传者:{:get_cult4RoleName($f5.upload_role_id2,$f5.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f5.ftype_id) eq 0"}无{else/}历史{/if}
{$f5.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f5.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f5.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f5.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f5.ftype_id,$baseinfo.apply_id))}{$f5.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f5.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f5.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckdd))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckdd" item="f6"} + {~$file_id=get_cult4FileIDFromTempID($f6.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f6.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f6.upload_role_id,$f6.upload_role_type)}
第二上传者:{:get_cult4RoleName($f6.upload_role_id2,$f6.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f6.ftype_id) eq 0"}无{else/}历史{/if}
{$f6.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f6.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f6.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f6.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f6.ftype_id,$baseinfo.apply_id))}{$f6.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f6.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f6.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['checkdd'] eq 1"} +
+
+
+ +
+ {if(!empty($ddcheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+{/range} +{range name="$status" value="3" type='notin'} +
+
+

复审信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkreview'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkreview))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkreview" item="f7"} + {~$file_id=get_cult4FileIDFromTempID($f7.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f7.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f7.upload_role_id,$f7.upload_role_type)}
第二上传者:{:get_cult4RoleName($f7.upload_role_id2,$f7.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f7.ftype_id) eq 0"}无{else/}历史{/if}
{$f7.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f7.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f7.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f7.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f7.ftype_id,$baseinfo.apply_id))}{$f7.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f7.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f7.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckreview))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckreview" item="f8"} + {~$file_id=get_cult4FileIDFromTempID($f8.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f8.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f8.upload_role_id,$f8.upload_role_type)}
第二上传者:{:get_cult4RoleName($f8.upload_role_id2,$f8.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f8.ftype_id) eq 0"}无{else/}历史{/if}
{$f8.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f8.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f8.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f8.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f8.ftype_id,$baseinfo.apply_id))}{$f8.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f8.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f8.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['checkreview'] eq 1"} +
+
+
+ +
+ {if(!empty($reviewcheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+{/range} +{range name="$status" value="4,34,8" type='notin'} +
+
+

风控审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkrisk'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkrisk))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkrisk" item="f10"} + {~$file_id=get_cult4FileIDFromTempID($f10.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f10.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f10.upload_role_id,$f10.upload_role_type)}
第二上传者:{:get_cult4RoleName($f10.upload_role_id2,$f10.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f10.ftype_id) eq 0"}无{else/}历史{/if}
{$f10.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f10.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f10.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f10.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f10.ftype_id,$baseinfo.apply_id))}{$f10.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f10.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f10.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckrisk))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckrisk" item="f11"} + {~$file_id=get_cult4FileIDFromTempID($f11.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f11.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f11.upload_role_id,$f11.upload_role_type)}
第二上传者:{:get_cult4RoleName($f11.upload_role_id2,$f11.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f11.ftype_id) eq 0"}无{else/}历史{/if}
{$f11.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f11.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f11.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f11.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f11.ftype_id,$baseinfo.apply_id))}{$f11.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f11.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f11.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['checkrisk'] eq 1"} +
+
+
+ +
+ {if(!empty($riskcheck))} +
+ {foreach name="$riskcheck" item="f12" key="bc"} + {if condition="$bc eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+{/range} +{range name="$status" value="4,34,31,8,11" type='notin'} +
+
+

缴费确认审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkfee'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkfee))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkfee" item="f13"} + {~$file_id=get_cult4FileIDFromTempID($f13.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f13.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f13.upload_role_id,$f13.upload_role_type)}
第二上传者:{:get_cult4RoleName($f13.upload_role_id2,$f13.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f13.ftype_id) eq 0"}无{else/}历史{/if}
{$f13.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f13.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f13.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f13.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f13.ftype_id,$baseinfo.apply_id))}{$f13.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f13.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ + {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f13.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckfee))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckfee" item="f14"} + {~$file_id=get_cult4FileIDFromTempID($f14.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f14.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f14.upload_role_id,$f14.upload_role_type)}
第二上传者:{:get_cult4RoleName($f14.upload_role_id2,$f14.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f14.ftype_id) eq 0"}无{else/}历史{/if}
{$f14.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f14.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f14.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f14.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f14.ftype_id,$baseinfo.apply_id))}{$f14.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f14.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f14.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + + {if condition="$Think.config.cult4advice['checkfee'] eq 1"} +
+
+
+ +
+
+ {if condition="$fee_flag eq 1"} + 已缴费 + {else/} + 未缴费 + {/if} +
+
+
+
+
+ +
+ {if(!empty($feecheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+{/range} +
+
+

专家分配

+
+ + + +
+
+ +
+
+
+
+
+ +
+ + + + + + + + + + + + + + {foreach name="pro_list_assigned" item="v"} + + + + + + + + + {/foreach} + +
ID专家登陆用户名专家昵称/邮箱性别状态激活
{$v.member_list_id}{$v.member_list_username}{$v.member_list_nickname|default="未设置"}【{$v.member_list_email|default="未设置"}】 + {if condition="$v.member_list_sex eq 1"}男 + {elseif condition="$v.member_list_sex eq 2"/}女 + {else /}保密 + {/if} + {if condition='$v.member_list_open eq 1'}已开启{else/}已禁用{/if}{if condition='$v.user_status eq 1'}已激活{else/}未激活{/if}
+
+
+
+
+
+
+
+
+
+

专家审核确认

+
+ + + +
+
+ +
+
+
+
+
+ +
+ + + + + + + + + + + + + + {foreach name="pro_list_assigned" item="v"} + + + + + + + + + + + + + {/foreach} + +
ID专家登陆用户名专家昵称/邮箱性别状态激活
{$v.member_list_id}{$v.member_list_username}{$v.member_list_nickname|default="未设置"}【{$v.member_list_email|default="未设置"}】 + {if condition="$v.member_list_sex eq 1"}男 + {elseif condition="$v.member_list_sex eq 2"/}女 + {else /}保密 + {/if} + {if condition='$v.member_list_open eq 1'}已开启{else/}已禁用{/if}{if condition='$v.user_status eq 1'}已激活{else/}未激活{/if}
{$v.advice|htmlspecialchars_decode}专家评分:{$v.score}分
+
+
+
+
+
+
+
+
+ +
+ {if(!empty($procheck))} +
+ {foreach name="$procheck" item="f12" key="bc"} + {if condition="$bc eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+
+
+
+
+
+
+
+

联席会审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkjc'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkjc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkjc" item="f19"} + {~$file_id=get_cult4FileIDFromTempID($f19.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f19.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f19.upload_role_id,$f19.upload_role_type)}
第二上传者:{:get_cult4RoleName($f19.upload_role_id2,$f19.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f19.ftype_id) eq 0"}无{else/}历史{/if}
{$f19.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f19.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f19.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f19.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f19.ftype_id,$baseinfo.apply_id))}{$f19.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f19.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f19.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckjc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckjc" item="f20"} + {~$file_id=get_cult4FileIDFromTempID($f20.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f20.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f20.upload_role_id,$f20.upload_role_type)}
第二上传者:{:get_cult4RoleName($f20.upload_role_id2,$f20.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f20.ftype_id) eq 0"}无{else/}历史{/if}
{$f20.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f20.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f20.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f20.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f20.ftype_id,$baseinfo.apply_id))}{$f20.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f20.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f20.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if(!empty($apply_lxhjy))} +
+
+ +
+ 查看 +
+
+
+ {/if} + {if condition="$Think.config.cult4advice['checkjc'] eq 1"} +
+
+
+ +
+ {if(!empty($jccheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+
+
+

号码选择信息

+
+ + + +
+
+ {~$k=0;} +
+
+
+
+
+
+
+
+
+ +
+ +
+
+
+ {if(!empty($baseinfo.logo))} +
+ 查看 +
+ {/if} +
+
+
+
+ {if condition="$baseinfo.codetype neq 0"} +
+ +
+
+
+ {if(!empty($applyinfo.pay_img))} +
+ 查看 +
+ {/if} +
+
+
+
+ {/if} +
+
+ +
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+
+ + +
+ +
+ +
+
+
+
+ +
+
+
+
+ + + + {if condition="$baseinfo.codetype eq 0"} +
+ +
+
+
+ +
+
+
+
+ {/if} +
+ +
+
+
+ +
+
+
+
+
+
+ {if condition="$Think.config.cult4advice['checkboard'] eq 1"} +
+ +
+ {if(!empty($boardcheck))} +
+ {foreach name="boardcheck" item="vcb" key="k1"} + {if condition="$k1 eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+ {/if} +
+
+
+
+
+
+
+
+
+
+

挂牌审核信息

+
+ + + +
+
+ {~$k=0;} +
+
+
+
+
+ + + +
+ +
+
+
+ + +
+
+
+
+
+ + {if condition="$Think.config.cult4files['checkboard'] eq 1"} +
+
+ + {if(!empty($apply_uptypelist_checkboard))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkboard" item="fix"} + {~$file_id=get_cult4FileIDFromTempID($fix.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload=chk_cult4CanUpload($fix.upload_role_type,$fix.upload_role_id,$fix.upload_role_type2,$fix.upload_role_id2);} + + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($fix.upload_role_id,$fix.upload_role_type)}
第二上传者:{:get_cult4RoleName($fix.upload_role_id2,$fix.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$fix.ftypedescr}{if condition="get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($fix.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id))}{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$fix.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+ +
+ + {if(!empty($apply_uptypelist_tempcheckboard))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckboard" item="temp"} + {~$file_id=get_cult4FileIDFromTempID($temp.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload = chk_cult4CanUpload($temp.upload_role_type,$temp.upload_role_id,$temp.upload_role_type2,$temp.upload_role_id2);} + {~$k=$k+1;} + + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($temp.upload_role_id,$temp.upload_role_type)}
第二上传者:{:get_cult4RoleName($temp.upload_role_id2,$temp.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$temp.ftypedescr}{if condition="get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($temp.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id))}{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$temp.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + + +
+ + + + +
+ +
+
+
+
+ + + + +
+
+
+
+
+ {if condition="$Think.config.cult4advice['checkboard'] eq 1"} +
+ +
+ {if(!empty($boardcheck))} +
+ {foreach name="boardcheck" item="vcb" key="k1"} + {if condition="$k1 eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+ {/if} +
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+
+
+{/block} +{block name="scripts"} + + + +{/block} diff --git a/app/cult4/view/cult4/apply_check_final_edit.html b/app/cult4/view/cult4/apply_check_final_edit.html new file mode 100644 index 0000000..4dc896c --- /dev/null +++ b/app/cult4/view/cult4/apply_check_final_edit.html @@ -0,0 +1,2297 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +

挂牌信息修改 - 挂牌成功

+
+
+
+ {include file='cult4@cult4:content' /} + +{range name="$status" value="4" type='notin'} +
+
+

尽职调查信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkdd'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkdd))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkdd" item="f5"} + {~$file_id=get_cult4FileIDFromTempID($f5.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f5.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f5.upload_role_id,$f5.upload_role_type)}
第二上传者:{:get_cult4RoleName($f5.upload_role_id2,$f5.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f5.ftype_id) eq 0"}无{else/}历史{/if}
{$f5.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f5.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f5.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f5.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f5.ftype_id,$baseinfo.apply_id))}{$f5.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f5.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f5.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckdd))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckdd" item="f6"} + {~$file_id=get_cult4FileIDFromTempID($f6.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f6.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f6.upload_role_id,$f6.upload_role_type)}
第二上传者:{:get_cult4RoleName($f6.upload_role_id2,$f6.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f6.ftype_id) eq 0"}无{else/}历史{/if}
{$f6.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f6.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f6.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f6.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f6.ftype_id,$baseinfo.apply_id))}{$f6.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f6.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f6.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['checkdd'] eq 1"} +
+
+
+ +
+ {if(!empty($ddcheck))} +
+ {foreach name="$ddcheck" item="f7" key="bc"} + {if condition="$bc eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+{/range} +{range name="$status" value="4,34" type='notin'} +
+
+

复审信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkreview'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkreview))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkreview" item="f7"} + {~$file_id=get_cult4FileIDFromTempID($f7.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f7.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f7.upload_role_id,$f7.upload_role_type)}
第二上传者:{:get_cult4RoleName($f7.upload_role_id2,$f7.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f7.ftype_id) eq 0"}无{else/}历史{/if}
{$f7.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f7.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f7.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f7.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f7.ftype_id,$baseinfo.apply_id))}{$f7.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f7.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f7.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckreview))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckreview" item="f8"} + {~$file_id=get_cult4FileIDFromTempID($f8.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f8.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f8.upload_role_id,$f8.upload_role_type)}
第二上传者:{:get_cult4RoleName($f8.upload_role_id2,$f8.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f8.ftype_id) eq 0"}无{else/}历史{/if}
{$f8.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f8.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f8.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f8.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f8.ftype_id,$baseinfo.apply_id))}{$f8.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f8.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f8.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['checkreview'] eq 1"} +
+
+
+ +
+ {if(!empty($reviewcheck))} +
+ {foreach name="$reviewcheck" item="f9" key="bc"} + {if condition="$bc eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+{/range} +{range name="$status" value="4,34,8" type='notin'} +
+
+

风控审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkrisk'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkrisk))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkrisk" item="f10"} + {~$file_id=get_cult4FileIDFromTempID($f10.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f10.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f10.upload_role_id,$f10.upload_role_type)}
第二上传者:{:get_cult4RoleName($f10.upload_role_id2,$f10.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f10.ftype_id) eq 0"}无{else/}历史{/if}
{$f10.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f10.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f10.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f10.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f10.ftype_id,$baseinfo.apply_id))}{$f10.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f10.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f10.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckrisk))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckrisk" item="f11"} + {~$file_id=get_cult4FileIDFromTempID($f11.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f11.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f11.upload_role_id,$f11.upload_role_type)}
第二上传者:{:get_cult4RoleName($f11.upload_role_id2,$f11.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f11.ftype_id) eq 0"}无{else/}历史{/if}
{$f11.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f11.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f11.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f11.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f11.ftype_id,$baseinfo.apply_id))}{$f11.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f11.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f11.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['checkrisk'] eq 1"} +
+
+
+ +
+ {if(!empty($riskcheck))} +
+ {foreach name="$riskcheck" item="f12" key="bc"} + {if condition="$bc eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+{/range} +{range name="$status" value="4,34,8,11" type='notin'} +
+
+

缴费确认审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkfee'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkfee))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkfee" item="f13"} + {~$file_id=get_cult4FileIDFromTempID($f13.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f13.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f13.upload_role_id,$f13.upload_role_type)}
第二上传者:{:get_cult4RoleName($f13.upload_role_id2,$f13.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f13.ftype_id) eq 0"}无{else/}历史{/if}
{$f13.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f13.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f13.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f13.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f13.ftype_id,$baseinfo.apply_id))}{$f13.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f13.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ + {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f13.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckfee))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckfee" item="f14"} + {~$file_id=get_cult4FileIDFromTempID($f14.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f14.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f14.upload_role_id,$f14.upload_role_type)}
第二上传者:{:get_cult4RoleName($f14.upload_role_id2,$f14.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f14.ftype_id) eq 0"}无{else/}历史{/if}
{$f14.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f14.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f14.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f14.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f14.ftype_id,$baseinfo.apply_id))}{$f14.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f14.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f14.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + + {if condition="$Think.config.cult4advice['checkfee'] eq 1"} +
+
+
+ +
+
+ {if condition="$fee_flag eq 1"} + 已缴费 + {else/} + 未缴费 + {/if} +
+
+
+
+
+ +
+ {if(!empty($feecheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+{/range} +{range name="$status" value="4,34,8,11,13" type='notin'} +
+
+

专家审核确认信息

+
+ + + +
+
+ +
+
+
+
+ {~$tscore=0;} +
+ +
+
+
+

已分配专家评分

+
+
+
+ + + + + + + + + + + + + + + + {foreach name="pro_list_assigned" item="v"} + + + + + + + + + + + + + {/foreach} + + +
ID前台专家是否可见专家登陆用户名专家昵称/邮箱性别状态激活
{$v.pro_id} + {if condition="$v.assign_type eq 0"}前台专家可见 + {elseif condition="$v.assign_type eq 1"/}前台专家不可见 + {/if} + {$v.member_list_username}{$v.member_list_nickname|default="未设置"}【{$v.member_list_email|default="未设置"}】 + {if condition="$v.member_list_sex eq 1"}男 + {elseif condition="$v.member_list_sex eq 2"/}女 + {else /}保密 + {/if} + {if condition='$v.member_list_open eq 1'}已开启{else/}已禁用{/if}{if condition='$v.user_status eq 1'}已激活{else/}未激活{/if}
+
+
+
+
+ {$v.member_list_username} +
+
+
+  {$v.member_list_username} +
+
+
+
+
+
+ + + +
+ +
+
+

专家评分(最高分:{$v.full_score})

+ +
+ {~$tscore=$tscore+$v.score;} +
+
+
+ + +
+
+
+ +
+ + +
+
+
+
+
+
+
+

总评分:{$tscore}

+
+
+
+
+
+
+
+ {if condition="$Think.config.cult4files['checkpro'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkpro))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkpro" item="f16"} + {~$file_id=get_cult4FileIDFromTempID($f16.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f16.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f16.upload_role_id,$f16.upload_role_type)}
第二上传者:{:get_cult4RoleName($f16.upload_role_id2,$f16.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f16.ftype_id) eq 0"}无{else/}历史{/if}
{$f16.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f16.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f16.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f16.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f16.ftype_id,$baseinfo.apply_id))}{$f16.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f16.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f16.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckpro))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckpro" item="f17"} + {~$file_id=get_cult4FileIDFromTempID($f17.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f17.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f17.upload_role_id,$f17.upload_role_type)}
第二上传者:{:get_cult4RoleName($f17.upload_role_id2,$f17.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f17.ftype_id) eq 0"}无{else/}历史{/if}
{$f17.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f17.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f174.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f17.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f17.ftype_id,$baseinfo.apply_id))}{$f17.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f17.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f17.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + + {if condition="$Think.config.cult4advice['checkpro'] eq 1"} +
+
+
+ +
+ {if(!empty($procheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+{/range} +
+
+

联席会审核信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkjc'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkjc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkjc" item="f19"} + {~$file_id=get_cult4FileIDFromTempID($f19.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f19.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f19.upload_role_id,$f19.upload_role_type)}
第二上传者:{:get_cult4RoleName($f19.upload_role_id2,$f19.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f19.ftype_id) eq 0"}无{else/}历史{/if}
{$f19.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f19.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f19.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f19.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f19.ftype_id,$baseinfo.apply_id))}{$f19.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f19.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f19.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckjc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckjc" item="f20"} + {~$file_id=get_cult4FileIDFromTempID($f20.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f20.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f20.upload_role_id,$f20.upload_role_type)}
第二上传者:{:get_cult4RoleName($f20.upload_role_id2,$f20.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f20.ftype_id) eq 0"}无{else/}历史{/if}
{$f20.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f20.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f204.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f20.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f20.ftype_id,$baseinfo.apply_id))}{$f20.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f20.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f20.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + + {if condition="$Think.config.cult4advice['checkjc'] eq 1"} +
+
+
+ +
+ {if(!empty($jccheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+ +
+
+

材料核实信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['checkmc'] eq 1"} +
+ {if(!empty($apply_uptypelist_checkmc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkmc" item="f22"} + {~$file_id=get_cult4FileIDFromTempID($f22.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f22.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f22.upload_role_id,$f22.upload_role_type)}
第二上传者:{:get_cult4RoleName($f22.upload_role_id2,$f22.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f22.ftype_id) eq 0"}无{else/}历史{/if}
{$f22.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f22.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f22.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f22.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f22.ftype_id,$baseinfo.apply_id))}{$f22.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f22.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f22.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheckmc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckmc" item="f23"} + {~$file_id=get_cult4FileIDFromTempID($f23.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f23.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f23.upload_role_id,$f23.upload_role_type)}
第二上传者:{:get_cult4RoleName($f23.upload_role_id2,$f23.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f23.ftype_id) eq 0"}无{else/}历史{/if}
{$f23.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f23.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f23.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f23.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f23.ftype_id,$baseinfo.apply_id))}{$f23.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f23.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f23.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + + {if condition="$Think.config.cult4advice['checkmc'] eq 1"} +
+
+
+ +
+ {if(!empty($mccheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+ +
+
+

公告材料审核信息

+
+ + + +
+
+ +
+
+
+
+
+
+ +
+
+
+ {if(!empty($baseinfo.logo))}{else/}无{/if} +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+
+ + +
+
+
+
+
+
+
+
+ + + +
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ + {if condition="$Think.config.cult4files['checknm'] eq 1"} +
+
+ {if(!empty($apply_uptypelist_checknm))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checknm" item="f25"} + {~$file_id=get_cult4FileIDFromTempID($f25.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f25.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f25.upload_role_id,$f25.upload_role_type)}
第二上传者:{:get_cult4RoleName($f25.upload_role_id2,$f25.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f25.ftype_id) eq 0"}无{else/}历史{/if}
{$f25.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f25.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f25.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f25.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f25.ftype_id,$baseinfo.apply_id))}{$f25.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f25.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f25.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempchecknm))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempchecknm" item="f26"} + {~$file_id=get_cult4FileIDFromTempID($f26.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f26.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f26.upload_role_id,$f26.upload_role_type)}
第二上传者:{:get_cult4RoleName($f26.upload_role_id2,$f26.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f26.ftype_id) eq 0"}无{else/}历史{/if}
{$f26.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f26.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f26.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f26.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f26.ftype_id,$baseinfo.apply_id))}{$f26.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f26.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f26.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + + {if condition="$Think.config.cult4advice['checknm'] eq 1"} +
+
+
+ +
+ {if(!empty($nmcheck))} +
+ {foreach name="$nmcheck" item="f27" key="bc"} + {if condition="$bc eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+
+
+ {/if} +
+
+
+
+
+
+ +
+
+

挂牌审核信息

+
+ + + +
+
+ {~$k=0;} +
+
+
+
+
+ + + +
+ +
+
+
+ + +
+
+
+
+
+ + {if condition="$Think.config.cult4files['checkboard'] eq 1"} +
+
+ + {if(!empty($apply_uptypelist_checkboard))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkboard" item="fix"} + {~$file_id=get_cult4FileIDFromTempID($fix.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload=chk_cult4CanUpload($fix.upload_role_type,$fix.upload_role_id,$fix.upload_role_type2,$fix.upload_role_id2);} + + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($fix.upload_role_id,$fix.upload_role_type)}
第二上传者:{:get_cult4RoleName($fix.upload_role_id2,$fix.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$fix.ftypedescr}{if condition="get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($fix.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id))}{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$fix.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+ +
+ + {if(!empty($apply_uptypelist_tempcheckboard))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckboard" item="temp"} + {~$file_id=get_cult4FileIDFromTempID($temp.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload = chk_cult4CanUpload($temp.upload_role_type,$temp.upload_role_id,$temp.upload_role_type2,$temp.upload_role_id2);} + {~$k=$k+1;} + + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($temp.upload_role_id,$temp.upload_role_type)}
第二上传者:{:get_cult4RoleName($temp.upload_role_id2,$temp.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$temp.ftypedescr}{if condition="get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($temp.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id))}{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$temp.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + + +
+ + + + +
+ +
+
+
+
+ + + + +
+
+
+
+
+ {if condition="$Think.config.cult4advice['checkboard'] eq 1"} +
+ +
+ {if(!empty($boardcheck))} +
+ {foreach name="boardcheck" item="vcb" key="k1"} + {if condition="$k1 eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+ {/if} +
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+
+
+{/block} +{block name="scripts"} + + + +{/block} diff --git a/app/cult4/view/cult4/apply_list1.html b/app/cult4/view/cult4/apply_list1.html new file mode 100644 index 0000000..26d5dcd --- /dev/null +++ b/app/cult4/view/cult4/apply_list1.html @@ -0,0 +1,108 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期更新日期操作处理号
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###}{$v.update_time|date='Y-m-d H:i:s',###} + + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} diff --git a/app/cult4/view/cult4/apply_list10.html b/app/cult4/view/cult4/apply_list10.html new file mode 100644 index 0000000..de47e64 --- /dev/null +++ b/app/cult4/view/cult4/apply_list10.html @@ -0,0 +1,112 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期缴费状态操作处理号
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###}{if condition="get_cult4feeflag($v.apply_id) eq 1"}已缴费{else/}未缴费{/if} + + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list11.html b/app/cult4/view/cult4/apply_list11.html new file mode 100644 index 0000000..f05b527 --- /dev/null +++ b/app/cult4/view/cult4/apply_list11.html @@ -0,0 +1,108 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期缴费状态操作处理号
{$v.apply_id}{$v.user_id,1|get_cult4UserName}{if condition="get_cult4UserStatus($v.user_id,1) eq 1"}正常{else/}锁定{/if}{$v.apply_id|get_cult4ApplyName}{$v.status|get_cult4Status}{$v.create_time|date='Y-m-d H:i:s',###}{if condition="get_cult4feeflag($v.apply_id) eq 1"}已缴费{else/}未缴费{/if} + + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list12.html b/app/cult4/view/cult4/apply_list12.html new file mode 100644 index 0000000..95c7e66 --- /dev/null +++ b/app/cult4/view/cult4/apply_list12.html @@ -0,0 +1,111 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期缴费状态操作处理号
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###}{if condition="$v['fee'] eq 1"}已缴费{else/}未缴费{/if} + + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list13.html b/app/cult4/view/cult4/apply_list13.html new file mode 100644 index 0000000..a531d98 --- /dev/null +++ b/app/cult4/view/cult4/apply_list13.html @@ -0,0 +1,106 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期操作
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###} + + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list14.html b/app/cult4/view/cult4/apply_list14.html new file mode 100644 index 0000000..d18ed9d --- /dev/null +++ b/app/cult4/view/cult4/apply_list14.html @@ -0,0 +1,105 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期操作
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###} + + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list2.html b/app/cult4/view/cult4/apply_list2.html new file mode 100644 index 0000000..5242f10 --- /dev/null +++ b/app/cult4/view/cult4/apply_list2.html @@ -0,0 +1,106 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期操作处理号
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###} + + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list2_bak.html b/app/cult4/view/cult4/apply_list2_bak.html new file mode 100644 index 0000000..f777822 --- /dev/null +++ b/app/cult4/view/cult4/apply_list2_bak.html @@ -0,0 +1,106 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期操作处理号
{$v.apply_id}{$v.user_id,1|get_cult4UserName}{if condition="get_cult4UserStatus($v.user_id,1) eq 1"}正常{else/}锁定{/if}{$v.apply_id|get_cult4ApplyName}{$v.status|get_cult4Status}{$v.create_time|date='Y-m-d H:i:s',###} + + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list3.html b/app/cult4/view/cult4/apply_list3.html new file mode 100644 index 0000000..1389876 --- /dev/null +++ b/app/cult4/view/cult4/apply_list3.html @@ -0,0 +1,106 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期操作处理号
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###} + + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list4.html b/app/cult4/view/cult4/apply_list4.html new file mode 100644 index 0000000..1fe370b --- /dev/null +++ b/app/cult4/view/cult4/apply_list4.html @@ -0,0 +1,106 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期操作处理号
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###} + + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list5.html b/app/cult4/view/cult4/apply_list5.html new file mode 100644 index 0000000..7b36993 --- /dev/null +++ b/app/cult4/view/cult4/apply_list5.html @@ -0,0 +1,108 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期操作处理号
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###} +
+ {if condition="in_array($v.status,[9,12,22,39])"} + + 审核 + + + {if condition="$v['fee'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} + {/if} +
+
{$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list6.html b/app/cult4/view/cult4/apply_list6.html new file mode 100644 index 0000000..3b37051 --- /dev/null +++ b/app/cult4/view/cult4/apply_list6.html @@ -0,0 +1,115 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期缴费状态操作处理号
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###}{if condition="$v['fee'] eq 1"}已缴费{else/}未缴费{/if} +
+ {if condition="in_array($v.status,[9,12,22,39])"} + {if condition="$v['userstatus'] eq 1"} + {if condition="$v.apply_admin_id eq 0"} + + {if condition="$v['fee'] eq 1"} + + 受理 + + {else/} + + 受理 + + {/if} + {elseif condition="$loginuser==$v.apply_admin_id"} + + 审核 + + {/if} + {/if} + {/if} +
+
{$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list7.html b/app/cult4/view/cult4/apply_list7.html new file mode 100644 index 0000000..e204964 --- /dev/null +++ b/app/cult4/view/cult4/apply_list7.html @@ -0,0 +1,108 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期缴费状态操作处理号
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###}{if condition="get_cult4feeflag($v.apply_id) eq 1"}已缴费{else/}未缴费{/if} + + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list8.html b/app/cult4/view/cult4/apply_list8.html new file mode 100644 index 0000000..bd86bc2 --- /dev/null +++ b/app/cult4/view/cult4/apply_list8.html @@ -0,0 +1,108 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期缴费状态操作处理号
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###}{if condition="get_cult4feeflag($v.apply_id) eq 1"}已缴费{else/}未缴费{/if} + + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list9.html b/app/cult4/view/cult4/apply_list9.html new file mode 100644 index 0000000..af2e61f --- /dev/null +++ b/app/cult4/view/cult4/apply_list9.html @@ -0,0 +1,108 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期缴费状态操作处理号
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###}{if condition="get_cult4feeflag($v.apply_id) eq 1"}已缴费{else/}未缴费{/if} + + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_list_final.html b/app/cult4/view/cult4/apply_list_final.html new file mode 100644 index 0000000..68c15d9 --- /dev/null +++ b/app/cult4/view/cult4/apply_list_final.html @@ -0,0 +1,108 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_list" item="v"} + + + + + + + + + + + + + {/foreach} + + + + +
ID申请用户名用户状态企业名称/项目名称/申请人名称处理状态申请日期缴费状态受理员操作处理号
{$v.apply_id}{$v.username}{if condition="$v['userstatus'] eq 1"}正常{else/}锁定{/if}{$v.applyname}{$v.checkstatus}{$v.create_time|date='Y-m-d H:i:s',###}{if condition="$v['fee'] eq 1"}已缴费{else/}未缴费{/if}{$v.apply_admin_id,2,'
','未受理'|get_cult4UserName}
+ + {$v.seq}
{$page}
+
+
+
+
+ + + +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_uphistory1.html b/app/cult4/view/cult4/apply_uphistory1.html new file mode 100644 index 0000000..1dfde10 --- /dev/null +++ b/app/cult4/view/cult4/apply_uphistory1.html @@ -0,0 +1,55 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ +
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + {foreach name="files_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID文件描述上传者类型上传者状态文件大小上传时间查看
{$v.file_id}{$v.ftype_id|get_cult4FileTypeDescr}{if condition="$v.user_type eq 0"}前台{else/}后台{/if}{$v.user_id,$v.user_type|get_cult4UserName}{$v.status|get_cult4Status}{$v.filesize}{$v.upload_time|date='Y-m-d H:i:s',###}查看
+
+ + +
+
+
+
+
+
+{/block} diff --git a/app/cult4/view/cult4/apply_uphistory10.html b/app/cult4/view/cult4/apply_uphistory10.html new file mode 100644 index 0000000..7012e05 --- /dev/null +++ b/app/cult4/view/cult4/apply_uphistory10.html @@ -0,0 +1,55 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ +
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + {foreach name="files_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID文件描述上传者类型上传者状态文件大小上传时间查看
{$v.file_id}{$v.ftype_id|get_cult4FileTypeDescr}{if condition="$v.user_type eq 0"}前台{else/}后台{/if}{$v.user_id,$v.user_type|get_cult4UserName}{$v.status|get_cult4Status}{$v.filesize}{$v.upload_time|date='Y-m-d H:i:s',###}查看
+
+ + +
+
+
+
+
+
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_uphistory11.html b/app/cult4/view/cult4/apply_uphistory11.html new file mode 100644 index 0000000..7012e05 --- /dev/null +++ b/app/cult4/view/cult4/apply_uphistory11.html @@ -0,0 +1,55 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ +
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + {foreach name="files_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID文件描述上传者类型上传者状态文件大小上传时间查看
{$v.file_id}{$v.ftype_id|get_cult4FileTypeDescr}{if condition="$v.user_type eq 0"}前台{else/}后台{/if}{$v.user_id,$v.user_type|get_cult4UserName}{$v.status|get_cult4Status}{$v.filesize}{$v.upload_time|date='Y-m-d H:i:s',###}查看
+
+ + +
+
+
+
+
+
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_uphistory12.html b/app/cult4/view/cult4/apply_uphistory12.html new file mode 100644 index 0000000..7012e05 --- /dev/null +++ b/app/cult4/view/cult4/apply_uphistory12.html @@ -0,0 +1,55 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ +
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + {foreach name="files_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID文件描述上传者类型上传者状态文件大小上传时间查看
{$v.file_id}{$v.ftype_id|get_cult4FileTypeDescr}{if condition="$v.user_type eq 0"}前台{else/}后台{/if}{$v.user_id,$v.user_type|get_cult4UserName}{$v.status|get_cult4Status}{$v.filesize}{$v.upload_time|date='Y-m-d H:i:s',###}查看
+
+ + +
+
+
+
+
+
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_uphistory2.html b/app/cult4/view/cult4/apply_uphistory2.html new file mode 100644 index 0000000..1dfde10 --- /dev/null +++ b/app/cult4/view/cult4/apply_uphistory2.html @@ -0,0 +1,55 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ +
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + {foreach name="files_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID文件描述上传者类型上传者状态文件大小上传时间查看
{$v.file_id}{$v.ftype_id|get_cult4FileTypeDescr}{if condition="$v.user_type eq 0"}前台{else/}后台{/if}{$v.user_id,$v.user_type|get_cult4UserName}{$v.status|get_cult4Status}{$v.filesize}{$v.upload_time|date='Y-m-d H:i:s',###}查看
+
+ + +
+
+
+
+
+
+{/block} diff --git a/app/cult4/view/cult4/apply_uphistory3.html b/app/cult4/view/cult4/apply_uphistory3.html new file mode 100644 index 0000000..7012e05 --- /dev/null +++ b/app/cult4/view/cult4/apply_uphistory3.html @@ -0,0 +1,55 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ +
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + {foreach name="files_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID文件描述上传者类型上传者状态文件大小上传时间查看
{$v.file_id}{$v.ftype_id|get_cult4FileTypeDescr}{if condition="$v.user_type eq 0"}前台{else/}后台{/if}{$v.user_id,$v.user_type|get_cult4UserName}{$v.status|get_cult4Status}{$v.filesize}{$v.upload_time|date='Y-m-d H:i:s',###}查看
+
+ + +
+
+
+
+
+
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_uphistory4.html b/app/cult4/view/cult4/apply_uphistory4.html new file mode 100644 index 0000000..7012e05 --- /dev/null +++ b/app/cult4/view/cult4/apply_uphistory4.html @@ -0,0 +1,55 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ +
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + {foreach name="files_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID文件描述上传者类型上传者状态文件大小上传时间查看
{$v.file_id}{$v.ftype_id|get_cult4FileTypeDescr}{if condition="$v.user_type eq 0"}前台{else/}后台{/if}{$v.user_id,$v.user_type|get_cult4UserName}{$v.status|get_cult4Status}{$v.filesize}{$v.upload_time|date='Y-m-d H:i:s',###}查看
+
+ + +
+
+
+
+
+
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_uphistory6.html b/app/cult4/view/cult4/apply_uphistory6.html new file mode 100644 index 0000000..7012e05 --- /dev/null +++ b/app/cult4/view/cult4/apply_uphistory6.html @@ -0,0 +1,55 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ +
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + {foreach name="files_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID文件描述上传者类型上传者状态文件大小上传时间查看
{$v.file_id}{$v.ftype_id|get_cult4FileTypeDescr}{if condition="$v.user_type eq 0"}前台{else/}后台{/if}{$v.user_id,$v.user_type|get_cult4UserName}{$v.status|get_cult4Status}{$v.filesize}{$v.upload_time|date='Y-m-d H:i:s',###}查看
+
+ + +
+
+
+
+
+
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_uphistory8.html b/app/cult4/view/cult4/apply_uphistory8.html new file mode 100644 index 0000000..7012e05 --- /dev/null +++ b/app/cult4/view/cult4/apply_uphistory8.html @@ -0,0 +1,55 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ +
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + {foreach name="files_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID文件描述上传者类型上传者状态文件大小上传时间查看
{$v.file_id}{$v.ftype_id|get_cult4FileTypeDescr}{if condition="$v.user_type eq 0"}前台{else/}后台{/if}{$v.user_id,$v.user_type|get_cult4UserName}{$v.status|get_cult4Status}{$v.filesize}{$v.upload_time|date='Y-m-d H:i:s',###}查看
+
+ + +
+
+
+
+
+
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_uphistory9.html b/app/cult4/view/cult4/apply_uphistory9.html new file mode 100644 index 0000000..7012e05 --- /dev/null +++ b/app/cult4/view/cult4/apply_uphistory9.html @@ -0,0 +1,55 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ +
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + {foreach name="files_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID文件描述上传者类型上传者状态文件大小上传时间查看
{$v.file_id}{$v.ftype_id|get_cult4FileTypeDescr}{if condition="$v.user_type eq 0"}前台{else/}后台{/if}{$v.user_id,$v.user_type|get_cult4UserName}{$v.status|get_cult4Status}{$v.filesize}{$v.upload_time|date='Y-m-d H:i:s',###}查看
+
+ + +
+
+
+
+
+
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/apply_uphistory_final.html b/app/cult4/view/cult4/apply_uphistory_final.html new file mode 100644 index 0000000..72ac26d --- /dev/null +++ b/app/cult4/view/cult4/apply_uphistory_final.html @@ -0,0 +1,55 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ +
+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + {foreach name="files_list" item="v"} + + + + + + + + + + + {/foreach} + + + + +
ID文件描述上传者类型上传者状态文件大小上传时间查看
{$v.file_id}{$v.ftype_id|get_cult4FileTypeDescr}{if condition="$v.user_type eq 0"}前台{else/}后台{/if}{$v.user_id,$v.user_type|get_cult4UserName}{$v.status|get_cult4Status}{$v.filesize}{$v.upload_time|date='Y-m-d H:i:s',###}查看
+
+ + +
+
+
+
+
+
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/content.html b/app/cult4/view/cult4/content.html new file mode 100644 index 0000000..6189e5a --- /dev/null +++ b/app/cult4/view/cult4/content.html @@ -0,0 +1,5607 @@ + + + + +
+
+

{if condition="$baseinfo['flag'] eq 0"}
已提交/修改资料,需审核 
{/if}基本信息

+
+ + + +
+
+
+
+
+
+ + {if condition="$baseinfo['k_type'] eq 2"} +
+ + + +
+ {elseif condition="$baseinfo['k_type'] eq 3" /} +
+ + + +
+ {else} +
+ + + +
+ {/if} +
+ {if condition="$baseinfo['apply_type'] neq 4 and $baseinfo['apply_type'] neq 5 and $baseinfo['apply_type'] neq 6"} +
+ +
+ + + + +
+
+ +
+ +
+ +
+
+ {else} + {if condition="$baseinfo['apply_type'] neq 6"} +
+ +
+ + + + + +
+
+ {/if} + {/if} + {if condition="$baseinfo['apply_type'] eq 1 or $baseinfo['apply_type'] eq 4"} + + {if condition="$baseinfo['apply_type'] eq 4"} +
+ +
+ +
+
+
+ {if condition="$baseinfo['c_type'] eq 1"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
企业名称{if condition="isset($baseinfo['c_base']['name'])"}{$baseinfo['c_base']['name']}{/if}
注册地址{if condition="isset($baseinfo['c_base']['reg_add'])"}{$baseinfo['c_base']['reg_add']}{/if}
法定代表人{if condition="isset($baseinfo['c_base']['legal_person'])"}{$baseinfo['c_base']['legal_person']}{/if}注册资本{if condition="isset($baseinfo['c_base']['reg_capital'])"}{$baseinfo['c_base']['reg_capital']}{/if}
企业性质{if condition="isset($baseinfo['c_base']['type'])"}{$baseinfo['c_base']['type']}{/if}成立时间{if condition="isset($baseinfo['c_base']['reg_date'])"}{$baseinfo['c_base']['reg_date']}{/if}
所属行业{if condition="isset($baseinfo['c_base']['trade'])"}{$baseinfo['c_base']['trade']}{/if}统一社会信用代码{if condition="isset($baseinfo['c_base']['license'])"}{$baseinfo['c_base']['license']}{/if}
经营规模大 + 中 +
经营范围{if condition="isset($baseinfo['c_base']['scope'])"}{$baseinfo['c_base']['scope']}{/if}
主营业务{if condition="isset($baseinfo['c_base']['business'])"}{$baseinfo['c_base']['business']}{/if}
有限责任公司其它股东是否放弃优先购买权是 +
管理层是否持有被转让标的企业股权、持有比例是 {if condition="isset($baseinfo['c_base']['tranprecent'])"}{$baseinfo['c_base']['tranprecent']}{/if}%管理层及关联方是否有受让意向及拟受让比例是 {if condition="isset($baseinfo['c_base']['acpprecent'])"}{$baseinfo['c_base']['acpprecent']}{/if}%
+
+
+
+ +
+ + + + + + + + + + + + + + {if condition="count($baseinfo['c_equity'])"} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {/if} +
前十大股东(出资人)名称
序号股东(出资人)名称持有比例序号股东(出资人)名称持有比例
1{$baseinfo['c_equity'][0]['name']}{$baseinfo['c_equity'][0]['precent']}6{$baseinfo['c_equity'][5]['name']}{$baseinfo['c_equity'][5]['precent']}
2{$baseinfo['c_equity'][1]['name']}{$baseinfo['c_equity'][1]['precent']}7{$baseinfo['c_equity'][6]['name']}{$baseinfo['c_equity'][6]['precent']}
3{$baseinfo['c_equity'][2]['name']}{$baseinfo['c_equity'][2]['precent']}8{$baseinfo['c_equity'][7]['name']}{$baseinfo['c_equity'][7]['precent']}
4{$baseinfo['c_equity'][3]['name']}{$baseinfo['c_equity'][3]['precent']}9{$baseinfo['c_equity'][8]['name']}{$baseinfo['c_equity'][8]['precent']}
5{$baseinfo['c_equity'][4]['name']}{$baseinfo['c_equity'][4]['precent']}10{$baseinfo['c_equity'][9]['name']}{$baseinfo['c_equity'][9]['precent']}
+
+
+ {if condition="count($baseinfo['c_finance'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
年 度{$baseinfo['c_finance'][0]['year']}年营业收入营业利润净利润
{$baseinfo['c_finance'][0]['income']}{$baseinfo['c_finance'][0]['profit']}{$baseinfo['c_finance'][0]['netprofit']}
资产总计负债总计所有者权益
{$baseinfo['c_finance'][0]['assets']}{$baseinfo['c_finance'][0]['debt']}{$baseinfo['c_finance'][0]['rights']}
审计机构名称{$baseinfo['c_finance'][1]['agency']}
+ 财务报表日期 {$baseinfo['c_finance'][2]['year']}年{$baseinfo['c_finance'][2]['month']}月{$baseinfo['c_finance'][2]['day']}日 + 营业收入营业利润净利润
{$baseinfo['c_finance'][2]['income']}{$baseinfo['c_finance'][2]['profit']}{$baseinfo['c_finance'][2]['netprofit']}
+ 财务报表类型 年报 季报 月报 + 资产总计负债总计所有者权益
{$baseinfo['c_finance'][3]['assets']}{$baseinfo['c_finance'][3]['debt']}{$baseinfo['c_finance'][3]['rights']}
+
+
+
+ {/if} + {if condition="count($baseinfo['c_decision'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
转让方名称{$baseinfo['c_decision']['name']}
(一)国资监管机构 + A、国务院国资委监管 + B、中央其他部委监管
+ C、省级国资委监管 + D、省级其他部门监管
+ E、市级国资委监管 + F、市级其他部门监管 +
(二)国家出资企业或主管部门名称{$baseinfo['c_decision']['org']}
(三)统一社会信用代码或组织机构代码{$baseinfo['c_decision']['license']}
(四)内部决策类型 + 股东会决议 + 董事会决议
+ 总经理办公会决议 + 其他{$baseinfo['c_decision']['other']} +
(五)决议文件名称{$baseinfo['c_decision']['filename']}
+
+
+ {/if} + {if condition="count($baseinfo['c_transferee'])"} +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
(一)转让形式及价格转让形式整体 部分{$baseinfo['c_transferee']['precent']}%
转让价格{$baseinfo['c_transferee']['price']}
(二)资格条件受让方资格条件{$baseinfo['c_transferee']['rule']}
(三)其他其他披露事项{$baseinfo['c_transferee']['other']}
+
+
+
+ {/if} + {if condition="count($baseinfo['c_notice'])"} +
+ +
+ + + + + + + + + + + +
信息预公告信息发布渠道{$baseinfo['c_notice']['way']}
信息预公告期限自{$baseinfo['c_notice']['syear']}年{$baseinfo['c_notice']['smonth']}月{$baseinfo['c_notice']['sday']}日至 + {$baseinfo['c_notice']['eyear']}年{$baseinfo['c_notice']['emonth']}月{$baseinfo['c_notice']['eday']}日
+
+
+ {/if} + {/if} + {if condition="$baseinfo['c_type'] eq 2"} + {if condition="count($baseinfo['c_base'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
拟募集资金金额*{$baseinfo['c_base']['money']}
对应持股比例*{$baseinfo['c_base']['precent']}
拟征集投资方数量*{$baseinfo['c_base']['num']}
增资达成或终结的条件*{$baseinfo['c_base']['rule']}
增资方简介*{$baseinfo['c_base']['info']}
+
+
+ {/if} + {if condition="count($baseinfo['c_investor'])"} +
+ +
+ + + + + + + + + + + +
增资条件*{$baseinfo['c_investor']['rule1']}
投资方资格条件*{$baseinfo['c_investor']['rule2']}
+
+
+ {/if} + + {if condition="count($baseinfo['c_notice'])"} +
+ +
+ + + + + + + + + + + + + + + + + +
信息发布渠道*{$baseinfo['c_notice']['way']}
预披露公告期限*自{$baseinfo['c_notice']['syear']}年{$baseinfo['c_notice']['smonth']}月{$baseinfo['c_notice']['sday']}日至 + {$baseinfo['c_notice']['eyear']}年{$baseinfo['c_notice']['emonth']}月{$baseinfo['c_notice']['eday']}日
联系人*{$baseinfo['c_notice']['contact']}电话*{$baseinfo['c_notice']['tel']}
+
+
+ {/if} + {/if} + {if condition="$baseinfo['c_type'] eq 3"} + {if condition="count($baseinfo['c_base'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
房屋坐落位置{$baseinfo['c_base'][0]['location']}
房产证号{$baseinfo['c_base'][0]['cardno']}
建筑面积{$baseinfo['c_base'][0]['area']}目前用途{$baseinfo['c_base'][0]['useway']}
附属设施{$baseinfo['c_base'][0]['depart']}
使用年限{$baseinfo['c_base'][0]['limityear']}已用年限{$baseinfo['c_base'][0]['useyear']}
土地坐落位置{$baseinfo['c_base'][0]['location']}
土地证号{$baseinfo['c_base'][1]['cardno']}土地面积{$baseinfo['c_base'][1]['area']}
用 途{$baseinfo['c_base'][1]['useway']}类 型{$baseinfo['c_base'][1]['type']}
使用年限{$baseinfo['c_base'][1]['limityear']}已用年限{$baseinfo['c_base'][1]['useyear']}
机械设备名 称{$baseinfo['c_base'][2]['name']}
规格型号{$baseinfo['c_base'][2]['cardno']}计量单位{$baseinfo['c_base'][2]['unit']}
数 量{$baseinfo['c_base'][2]['num']}成新率{$baseinfo['c_base'][2]['precent']}
机动车车牌号码{$baseinfo['c_base'][3]['cardno']}车 型{$baseinfo['c_base'][3]['type']}
购置日期{$baseinfo['c_base'][3]['buydate']}登记日期{$baseinfo['c_base'][3]['regdate']}
使用年限{$baseinfo['c_base'][3]['limityear']}颜 色{$baseinfo['c_base'][3]['color']}
行驶公里数{$baseinfo['c_base'][3]['kilm']}数 量{$baseinfo['c_base'][3]['num']}
存货名 称{$baseinfo['c_base'][4]['name']}计量单位{$baseinfo['c_base'][4]['unit']}
规格型号{$baseinfo['c_base'][4]['cardno']}数 量{$baseinfo['c_base'][4]['num']}
其他名 称{$baseinfo['c_base'][5]['name']}计量单位{$baseinfo['c_base'][5]['unit']}
型号{$baseinfo['c_base'][5]['cardno']}数 量{$baseinfo['c_base'][5]['num']}
标的是否存在抵押情况*{$baseinfo['c_base'][6]['mortgage']}
权利人是否有意向行使优先购买权*{$baseinfo['c_base'][6]['right']}
资产评估情况评估机构*{$baseinfo['c_base'][7]['org']}
核准或备案机构*{$baseinfo['c_base'][7]['agency']}核准  备案
评估基准日*{$baseinfo['c_base'][7]['assess']}
帐面价值*{$baseinfo['c_base'][7]['price']}
资产评估值*{$baseinfo['c_base'][7]['aprice']}
其他需要披露的内容*{$baseinfo['c_base'][7]['other']}
+
+
+ {/if} + {if condition="count($baseinfo['c_transferor'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
转让方名称*{$baseinfo['c_transferor'][0]['name']}
基本情况转让方为法人的填写以下内容:
住 所{$baseinfo['c_transferor'][1]['house']}
法定代表人{$baseinfo['c_transferor'][1]['legal']}
注册资本{$baseinfo['c_transferor'][1]['money']}
经济性质{$baseinfo['c_transferor'][1]['economic']}
转让方为自然人的填写以下内容
证件类型{$baseinfo['c_transferor'][1]['cardtype']}证件号码{$baseinfo['c_transferor'][1]['cardno']}
联系方式联系人*{$baseinfo['c_transferor'][2]['name']}
通讯地址*{$baseinfo['c_transferor'][2]['addr']}
联系电话*{$baseinfo['c_transferor'][2]['tel']}传真{$baseinfo['c_transferor'][2]['fax']}
电子邮件*{$baseinfo['c_transferor'][2]['email']}邮编*{$baseinfo['c_transferor'][2]['pcode']}
内部决策情况 +

以下决议已按公司法及其他有关法律法规要求完成,议事规则和决策程序符合规定.

+

股东会决议 董事会决议

+

总经理办公会决议 其他{$baseinfo['c_transferor'][3]['other']}

+
转让行为批准情况批准单位名称*{$baseinfo['c_transferor'][4]['name']}
主要内容*{$baseinfo['c_transferor'][4]['main']}
+
+
+ {/if} + {if condition="count($baseinfo['c_notice'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
公告信息信息发布渠道*{$baseinfo['c_notice'][0]['way']}
信息公告期限*自{$baseinfo['c_notice'][0]['syear']}年{$baseinfo['c_notice'][0]['smonth']}月{$baseinfo['c_notice'][0]['sday']}日至 + {$baseinfo['c_notice'][0]['eyear']}年{$baseinfo['c_notice'][0]['emonth']}月{$baseinfo['c_notice'][0]['eday']}日
交易条件转让底价*{$baseinfo['c_notice'][1]['price']}万元
成交价款支付方式* + 一次性付款 分期付款 +
成交价款支付期限*{$baseinfo['c_notice'][1]['date']}
转让相关其他条件*{$baseinfo['c_notice'][1]['rule']}
保证金是否交纳保证金* + 否 +
交纳金额* 人民币{$baseinfo['c_notice'][2]['price']}万元
交纳时间* +

意向受让方在提交受让申请同时交纳保证金。

+

意向受让方经资格确认后{$baseinfo['c_notice'][2]['day']}个工作日内交纳。

+
交纳方式* + 支票 + 电汇 + 网上转账 +
保证金处置方式* +

直接退回

+

成功受让后转为成交价款的一部分

+
+
+
+ {/if} + {if condition="count($baseinfo['c_transferee'])"} +
+ +
+ + + + + + + +
受让方资格条件*{$baseinfo['c_transferee']['rule']}
+
+
+ {/if} + {/if} + {if condition="$baseinfo['c_type'] eq 4"} + {if condition="count($baseinfo['c_base'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
房屋坐落位置{$baseinfo['c_base'][0]['location']}
房产证号{$baseinfo['c_base'][0]['cardno']}
建筑面积{$baseinfo['c_base'][0]['area']}目前用途{$baseinfo['c_base'][0]['useway']}
附属设施{:isset($baseinfo['c_base'][0]['depart'])?$baseinfo['c_base'][0]['depart']:''}
使用年限{$baseinfo['c_base'][0]['limityear']}已用年限{$baseinfo['c_base'][0]['useyear']}
土地坐落位置{$baseinfo['c_base'][0]['location']}
土地证号{$baseinfo['c_base'][1]['cardno']}土地面积{$baseinfo['c_base'][1]['area']}
用 途{$baseinfo['c_base'][1]['useway']}类 型{$baseinfo['c_base'][1]['type']}
使用年限{$baseinfo['c_base'][1]['limityear']}已用年限{$baseinfo['c_base'][1]['useyear']}
机械设备名 称{$baseinfo['c_base'][2]['name']}
规格型号{$baseinfo['c_base'][2]['cardno']}计量单位{$baseinfo['c_base'][2]['unit']}
数 量{$baseinfo['c_base'][2]['num']}成新率{$baseinfo['c_base'][2]['precent']}
机动车车牌号码{$baseinfo['c_base'][3]['cardno']}车 型{$baseinfo['c_base'][3]['type']}
购置日期{$baseinfo['c_base'][3]['buydate']}登记日期{$baseinfo['c_base'][3]['regdate']}
使用年限{$baseinfo['c_base'][3]['limityear']}颜 色{:isset($baseinfo['c_base'][3]['color'])?$baseinfo['c_base'][3]['color']:''}
行驶公里数{$baseinfo['c_base'][3]['kilm']}数 量{$baseinfo['c_base'][3]['num']}
存货名 称{$baseinfo['c_base'][4]['name']}计量单位{$baseinfo['c_base'][4]['unit']}
规格型号{$baseinfo['c_base'][4]['cardno']}数 量{$baseinfo['c_base'][4]['num']}
其他名 称{$baseinfo['c_base'][5]['name']}计量单位{$baseinfo['c_base'][5]['unit']}
型号{$baseinfo['c_base'][5]['cardno']}数 量{$baseinfo['c_base'][5]['num']}
标的是否存在抵押情况*{$baseinfo['c_base'][6]['mortgage']}
其他需要披露的内容*{$baseinfo['c_base'][7]['other']}
+
+
+ {/if} + {if condition="count($baseinfo['c_transferor'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
出租方名称*{$baseinfo['c_transferor'][0]['name']}
基本情况出租方为法人的填写以下内容:
住 所{$baseinfo['c_transferor'][1]['house']}
法定代表人{$baseinfo['c_transferor'][1]['legal']}
出租方为法人的填写以下内容
证件类型{$baseinfo['c_transferor'][1]['cardtype']}证件号码{$baseinfo['c_transferor'][1]['cardno']}
联系方式联系人*{$baseinfo['c_transferor'][2]['name']}
通讯地址*{$baseinfo['c_transferor'][2]['addr']}
联系电话*{$baseinfo['c_transferor'][2]['tel']}传真{$baseinfo['c_transferor'][2]['fax']}
电子邮件*{$baseinfo['c_transferor'][2]['email']}邮编*{$baseinfo['c_transferor'][2]['pcode']}
内部决策情况 +

以下决议已按公司法及其他有关法律法规要求完成,议事规则和决策程序符合规定.

+

股东会决议 董事会决议

+

总经理办公会决议 其他{$baseinfo['c_transferor'][3]['other']}

+
出租行为批准情况批准单位名称*{$baseinfo['c_transferor'][4]['name']}
主要内容*{$baseinfo['c_transferor'][4]['main']}
+
+
+ {/if} + {if condition="count($baseinfo['c_notice'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
公告信息信息发布渠道*{$baseinfo['c_notice'][0]['way']}
信息公告期限*自{$baseinfo['c_notice'][0]['syear']}年{$baseinfo['c_notice'][0]['smonth']}月{$baseinfo['c_notice'][0]['sday']}日至 + {$baseinfo['c_notice'][0]['eyear']}年{$baseinfo['c_notice'][0]['emonth']}月{$baseinfo['c_notice'][0]['eday']}日
交易条件租金底价*{$baseinfo['c_notice'][1]['price']}万元
租金支付方式* + 一次性付款 分期付款 +
租金支付期限*{$baseinfo['c_notice'][1]['date']}
与出租相关其他条件*{$baseinfo['c_notice'][1]['rule']}
保证金是否交纳保证金* + 否 +
租金支付方式* 人民币{$baseinfo['c_notice'][2]['price']}万元
交纳时间* +

意向受让方在提交受让申请同时交纳保证金。

+

意向受让方经资格确认后{$baseinfo['c_notice'][2]['day']}个工作日内交纳。

+
交纳方式* + 支票 + 电汇 + 网上转账 +
保证金处置方式* +

直接退回

+

成功受让后转为成交价款的一部分

+
+
+
+ {/if} + {if condition="count($baseinfo['c_transferee'])"} +
+ +
+ + + + + + + +
承租方资格条件*{$baseinfo['c_transferee']['rule']}
+
+
+ {/if} + {/if} + {if condition="$baseinfo['c_type'] eq 5"} + {if condition="count($baseinfo['c_base'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
标的基本情况资产概况*{$baseinfo['c_base'][0]['info']}
资产特点*{$baseinfo['c_base'][0]['point']}
其他*{$baseinfo['c_base'][0]['other']}
标的是否存在抵押情况*{$baseinfo['c_base'][1]['mortgage']}
权利人是否有意向行使优先购买权*{$baseinfo['c_base'][1]['right']}
资产评估情况评估机构*{$baseinfo['c_base'][2]['org']}
核准或备案机构*{$baseinfo['c_base'][2]['agency']}核准 备案
评估基准日*{$baseinfo['c_base'][2]['assess']}
帐面价值*{$baseinfo['c_base'][2]['price']}
资产评估值*{$baseinfo['c_base'][2]['aprice']}
其他需要披露的内容*{$baseinfo['c_base'][2]['other']}
+
+
+ {/if} + {if condition="count($baseinfo['c_transferor'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
转让方名称*{$baseinfo['c_transferor'][0]['name']}
基本情况转让方为法人的填写以下内容:
住 所{$baseinfo['c_transferor'][1]['house']}
法定代表人{$baseinfo['c_transferor'][1]['legal']}
注册资本{$baseinfo['c_transferor'][1]['money']}
经济性质{$baseinfo['c_transferor'][1]['economic']}
转让方为自然人的填写以下内容
证件类型{$baseinfo['c_transferor'][1]['cardtype']}证件号码{$baseinfo['c_transferor'][1]['cardno']}
联系方式联系人*{$baseinfo['c_transferor'][2]['name']}
通讯地址*{$baseinfo['c_transferor'][2]['addr']}
联系电话*{$baseinfo['c_transferor'][2]['tel']}传真{$baseinfo['c_transferor'][2]['fax']}
电子邮件*{$baseinfo['c_transferor'][2]['email']}邮编*{$baseinfo['c_transferor'][2]['pcode']}
内部决策情况 +

以下决议已按公司法及其他有关法律法规要求完成,议事规则和决策程序符合规定.

+

股东会决议 董事会决议

+

总经理办公会决议 其他{$baseinfo['c_transferor'][3]['other']}

+
转让行为批准情况批准单位名称*{$baseinfo['c_transferor'][4]['name']}
主要内容*{$baseinfo['c_transferor'][4]['main']}
+
+
+ {/if} + {if condition="count($baseinfo['c_notice'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
公告信息信息发布渠道*{$baseinfo['c_notice'][0]['way']}
信息公告期限*自{$baseinfo['c_notice'][0]['syear']}年{$baseinfo['c_notice'][0]['smonth']}月{$baseinfo['c_notice'][0]['sday']}日至 + {$baseinfo['c_notice'][0]['eyear']}年{$baseinfo['c_notice'][0]['emonth']}月{$baseinfo['c_notice'][0]['eday']}日
交易条件转让底价*{$baseinfo['c_notice'][1]['price']}万元
成交价款支付方式* + 一次性付款 分期付款 +
成交价款支付期限*{$baseinfo['c_notice'][1]['date']}
转让相关其他条件*{$baseinfo['c_notice'][1]['rule']}
保证金是否交纳保证金* + 否 +
交纳金额* 人民币{$baseinfo['c_notice'][2]['price']}万元
交纳时间* +

意向受让方在提交受让申请同时交纳保证金。

+

意向受让方经资格确认后{$baseinfo['c_notice'][2]['day']}个工作日内交纳。

+
交纳方式* + 支票 + 电汇 + 网上转账 +
保证金处置方式* +

直接退回

+

成功受让后转为成交价款的一部分

+
+
+
+ {/if} + {/if} + {else} +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+ {if condition="$baseinfo['apply_type'] eq 4"} +
+ +
+ + + + +
+
+ {else} +
+ +
+ + + + +
+
+ {/if} +
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + + +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+ {/if} + {elseif condition="$baseinfo['apply_type'] eq 6"} + {if condition="count($baseinfo['c_base'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
标的基本情况资产概况*{$baseinfo['c_base'][0]['info']}
资产特点*{$baseinfo['c_base'][0]['point']}
其他*{$baseinfo['c_base'][0]['other']}
标的是否存在抵押情况*{$baseinfo['c_base'][1]['mortgage']}
权利人是否有意向行使优先购买权*{$baseinfo['c_base'][1]['right']}
资产评估情况评估机构*{$baseinfo['c_base'][2]['org']}
核准或备案机构*{$baseinfo['c_base'][2]['agency']}核准 备案
评估基准日*{$baseinfo['c_base'][2]['assess']}
帐面价值*{$baseinfo['c_base'][2]['price']}
资产评估值*{$baseinfo['c_base'][2]['aprice']}
其他需要披露的内容*{$baseinfo['c_base'][2]['other']}
+
+
+ {/if} + {if condition="count($baseinfo['c_transferor'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
转让方名称*{$baseinfo['c_transferor'][0]['name']}
基本情况转让方为法人的填写以下内容:
住 所{$baseinfo['c_transferor'][1]['house']}
法定代表人{$baseinfo['c_transferor'][1]['legal']}
注册资本{$baseinfo['c_transferor'][1]['money']}
经济性质{$baseinfo['c_transferor'][1]['economic']}
转让方为自然人的填写以下内容
证件类型{$baseinfo['c_transferor'][1]['cardtype']}证件号码{$baseinfo['c_transferor'][1]['cardno']}
联系方式联系人*{$baseinfo['c_transferor'][2]['name']}
通讯地址*{$baseinfo['c_transferor'][2]['addr']}
联系电话*{$baseinfo['c_transferor'][2]['tel']}传真{$baseinfo['c_transferor'][2]['fax']}
电子邮件*{$baseinfo['c_transferor'][2]['email']}邮编*{$baseinfo['c_transferor'][2]['pcode']}
内部决策情况 +

以下决议已按公司法及其他有关法律法规要求完成,议事规则和决策程序符合规定.

+

股东会决议 董事会决议

+

总经理办公会决议 其他{$baseinfo['c_transferor'][3]['other']}

+
转让行为批准情况批准单位名称*{$baseinfo['c_transferor'][4]['name']}
主要内容*{$baseinfo['c_transferor'][4]['main']}
+
+
+ {/if} + {if condition="count($baseinfo['c_notice'])"} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
公告信息信息发布渠道*{$baseinfo['c_notice'][0]['way']}
信息公告期限*自{$baseinfo['c_notice'][0]['syear']}年{$baseinfo['c_notice'][0]['smonth']}月{$baseinfo['c_notice'][0]['sday']}日至 + {$baseinfo['c_notice'][0]['eyear']}年{$baseinfo['c_notice'][0]['emonth']}月{$baseinfo['c_notice'][0]['eday']}日
交易条件转让底价*{$baseinfo['c_notice'][1]['price']}万元
成交价款支付方式* + 一次性付款 分期付款 +
成交价款支付期限*{$baseinfo['c_notice'][1]['date']}
转让相关其他条件*{$baseinfo['c_notice'][1]['rule']}
保证金是否交纳保证金* + 否 +
交纳金额* 人民币{$baseinfo['c_notice'][2]['price']}万元
交纳时间* +

意向受让方在提交受让申请同时交纳保证金。

+

意向受让方经资格确认后{$baseinfo['c_notice'][2]['day']}个工作日内交纳。

+
交纳方式* + 支票 + 电汇 + 网上转账 +
保证金处置方式* +

直接退回

+

成功受让后转为成交价款的一部分

+
+
+
+ {/if} + {elseif condition="$baseinfo['apply_type'] eq 2 or $baseinfo['apply_type'] eq 5"} + {if condition="$baseinfo['apply_type'] eq 2"} +
+ +
+ +
+
+
+
+ +
+ +
+
+
+ +
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + + +
+
+
+ +
+ +
+
+
+
+ +
+ + + +
+
+ {/if} +
+ +
+ +
+
+
+
+ {if condition="$baseinfo['c_type']"} +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+ +
+ +
+ + + + +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + + +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+ {/if} + {if condition="$baseinfo['p_type'] eq 1"} +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+ {elseif condition="$baseinfo['p_type'] eq 2"} +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+ {/if} +
+ {if condition="$baseinfo['apply_type'] eq 2"} +
+ +
+ +
+
+
+
+ +
+ +
+
+ {/if} +
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+ {elseif condition="$baseinfo['apply_type'] eq 3"} +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+ {/if} + {if(!empty($apply_uptypelist))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="$apply_uptypelist" item="f1"} + {~$file_id=get_cult4FileIDFromTempID($f1.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + {if condition="$process eq 99"} + + {else} + + {/if} + + {else} + + + + + + + + + + + {if condition="$process eq 99"} + + {else} + + {/if} + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$f1.ftypedescr}{if condition="$f1.mustupload eq 1"}必须{else/}非必须{/if}未上传第一上传者:{:get_cult4RoleName($f1.upload_role_id,$f1.upload_role_type)}
第二上传者:{:get_cult4RoleName($f1.upload_role_id2,$f1.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f1.ftype_id) eq 0"}无{else/}历史{/if}{if condition="get_cult4CntHistory($baseinfo.apply_id,$f1.ftype_id) eq 0"}无{else/}历史{/if}
{$file_id}{$f1.ftypedescr}{if condition="$f1.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($f1.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f1.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f1.ftype_id,$baseinfo.apply_id))}{$f1.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f1.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f1.ftype_id) eq 0"}无{else/}历史{/if}{if condition="get_cult4CntHistory($baseinfo.apply_id,$f1.ftype_id) eq 0"}无{else/}历史{/if}
+ +
+
+
+
+
+ {else/} +
+ +
+ 无上传文件 +
+
+ {/if} + +
+
+
+ + {if condition="$baseinfo['apply_type'] eq 1 and $baseinfo['k_type'] eq 2"} +
+
+

项目信息

+
+ + + +
+
+
+
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+ +
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + + +
+
+
+ +
+ +
+
+
+
+ +
+ + + +
+
+
+ +
+ + +
+
+
+
+
+
+
+ {/if} + +
+
+

初审信息

+
+ + + +
+
+ +
+
+
+
+ {if condition="$Think.config.cult4files['check'] eq 1"} +
+ {if(!empty($apply_uptypelist_check))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_check" item="f2"} + {~$file_id=get_cult4FileIDFromTempID($f2.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f2.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f2.upload_role_id,$f2.upload_role_type)}
第二上传者:{:get_cult4RoleName($f2.upload_role_id2,$f2.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f2.ftype_id) eq 0"}无{else/}历史{/if}
{$f2.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f2.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f2.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f2.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f2.ftype_id,$baseinfo.apply_id))}{$f2.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f2.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f2.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+
+ {if(!empty($apply_uptypelist_tempcheck))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheck" item="f3"} + {~$file_id=get_cult4FileIDFromTempID($f3.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + + + + + + + + + {else/} + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述上传者类型上传者文件大小上传时间查看审核审核历史
{$f3.ftypedescr}未上传第一上传者:{:get_cult4RoleName($f3.upload_role_id,$f3.upload_role_type)}
第二上传者:{:get_cult4RoleName($f3.upload_role_id2,$f3.upload_role_type2)}
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$f3.ftype_id) eq 0"}无{else/}历史{/if}
{$f3.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$f3.ftypedescr}{if condition="get_cult4UserTypeFromTempID($f3.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($f3.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($f3.ftype_id,$baseinfo.apply_id))}{$f3.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$f3.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} +
已通过
+ {else/} +
未通过
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$f3.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ {/if} + {if condition="$Think.config.cult4advice['check'] eq 1"} +
+
+ + + + + {if condition="$hasJcReport eq 1"} +
+ +
+
{$jcReport.advice}
+
+
+ {/if} + {if condition="$Think.config.cult4advice['check'] eq 1"} +
+ +
+ {if(!empty($begincheck))} +
+ {foreach name="begincheck" item="vcb" key="k1"} + {if condition="$k1 eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+ {if condition="$process eq 1"} +
+ +
+ + + 请输入您的初审意见,并提交! +
+
+
+ {/if} + {/if} + {if condition="$process eq 1"} +
+
+   +   +   +
+
+ {/if} +
+
+ {/if} +
+
+
+
+
+
+ {if condition="$process egt 2"} +
+
+

尽职调查信息

+
+ + + +
+
+ + {~$k=0;} +
+
+
+
+ {if condition="$Think.config.cult4files['checkdd'] eq 1"} +
+ + {if(!empty($apply_uptypelist_checkdd))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkdd" item="fix"} + {~$file_id=get_cult4FileIDFromTempID($fix.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload=chk_cult4CanUpload($fix.upload_role_type,$fix.upload_role_id,$fix.upload_role_type2,$fix.upload_role_id2);} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($fix.upload_role_id,$fix.upload_role_type)}
第二上传者:{:get_cult4RoleName($fix.upload_role_id2,$fix.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($fix.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id))}{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$fix.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+ +
+ + {if(!empty($apply_uptypelist_tempcheckdd))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckdd" item="temp"} + {~$file_id=get_cult4FileIDFromTempID($temp.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload = chk_cult4CanUpload($temp.upload_role_type,$temp.upload_role_id,$temp.upload_role_type2,$temp.upload_role_id2);} + {~$k=$k+1;} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($temp.upload_role_id,$temp.upload_role_type)}
第二上传者:{:get_cult4RoleName($temp.upload_role_id2,$temp.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($temp.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id))}{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$temp.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+ +
+ +
+
+ +   +
+
+
+
+ {/if} +
+
+ + + + + {if condition="$hasJcReport eq 1"} +
+ +
+
{$jcReport.advice}
+
+
+ {/if} + {if condition="$Think.config.cult4advice['checkdd'] eq 1"} +
+ +
+ {if(!empty($ddcheck))} +
+ {foreach name="ddcheck" item="vcb" key="k1"} + {if condition="$k1 eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+ {if condition="$process eq 2"} +
+ +
+ + + 请输入您的尽职调查意见,并提交! +
+
+
+ {/if} + {/if} + {if condition="$process eq 2"} +
+
+   +   +   + +
+
+ {/if} +
+ +
+
+
+
+
+
+ {if condition="$process egt 3"} +
+
+

复审信息

+
+ + + +
+
+ + {~$k=0;} +
+
+
+
+ {if condition="$Think.config.cult4files['checkreview'] eq 1"} +
+ + {if(!empty($apply_uptypelist_checkreview))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkreview" item="fix"} + {~$file_id=get_cult4FileIDFromTempID($fix.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload=chk_cult4CanUpload($fix.upload_role_type,$fix.upload_role_id,$fix.upload_role_type2,$fix.upload_role_id2);} + + + + + + + + + + {if condition="$canupload eq 1"} + + + + + + + {/if} + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($fix.upload_role_id,$fix.upload_role_type)}
第二上传者:{:get_cult4RoleName($fix.upload_role_id2,$fix.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
上传 +
+ +
+
{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($fix.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id))}{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$fix.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+ +
+ + {if(!empty($apply_uptypelist_tempcheckreview))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckreview" item="temp"} + {~$file_id=get_cult4FileIDFromTempID($temp.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload = chk_cult4CanUpload($temp.upload_role_type,$temp.upload_role_id,$temp.upload_role_type2,$temp.upload_role_id2);} + {~$k=$k+1;} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($temp.upload_role_id,$temp.upload_role_type)}
第二上传者:{:get_cult4RoleName($temp.upload_role_id2,$temp.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($temp.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id))}{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$temp.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+ +
+ +
+
+ +   +
+
+
+
+ {/if} +
+ +
+ + + + + {if condition="$hasJcReport eq 1"} +
+ +
+
{$jcReport.advice}
+
+
+ {/if} + {if condition="$Think.config.cult4advice['checkreview'] eq 1"} +
+ +
+ {if(!empty($reviewcheck))} +
+ {foreach name="reviewcheck" item="vcb" key="k1"} + {if condition="$k1 eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+ {if condition="$process eq 3"} +
+ +
+ + + 请输入您的复审意见,并提交! +
+
+
+ {/if} + {/if} + {if condition="$process eq 3"} +
+
+   +   +   + +
+
+ {/if} +
+
+
+
+
+
+
+ {if condition="$process egt 4"} + +
+
+

风控审核信息

+
+ + + +
+
+ + {~$k=0;} +
+
+
+
+ {if condition="$Think.config.cult4files['checkrisk'] eq 1"} +
+ + {if(!empty($apply_uptypelist_checkrisk))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkrisk" item="fix"} + {~$file_id=get_cult4FileIDFromTempID($fix.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload=chk_cult4CanUpload($fix.upload_role_type,$fix.upload_role_id,$fix.upload_role_type2,$fix.upload_role_id2);} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($fix.upload_role_id,$fix.upload_role_type)}
第二上传者:{:get_cult4RoleName($fix.upload_role_id2,$fix.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($fix.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id))}{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$fix.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+ +
+ + {if(!empty($apply_uptypelist_tempcheckrisk))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckrisk" item="temp"} + {~$file_id=get_cult4FileIDFromTempID($temp.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload = chk_cult4CanUpload($temp.upload_role_type,$temp.upload_role_id,$temp.upload_role_type2,$temp.upload_role_id2);} + {~$k=$k+1;} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($temp.upload_role_id,$temp.upload_role_type)}
第二上传者:{:get_cult4RoleName($temp.upload_role_id2,$temp.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($temp.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id))}{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$temp.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+ +
+ +
+
+ +   +
+
+
+
+ {/if} +
+ +
+ + + + + {if condition="$hasJcReport eq 1"} +
+ +
+
{$jcReport.advice}
+
+
+ {/if} + {if condition="$Think.config.cult4advice['checkrisk'] eq 1"} +
+ +
+ {if(!empty($riskcheck))} +
+ {foreach name="riskcheck" item="vcb" key="k1"} + {if condition="$k1 eq 0"} + + {else/} + + {/if} + {/foreach} +
+ {else/} +
+ 无 +
+ {/if} +
+
+ {if condition="$process eq 4"} +
+ +
+ + + 请输入您的风控审核意见,并提交! +
+
+
+ {/if} + {/if} + {if condition="$process eq 4"} +
+
+   +   +   +
+
+ {/if} +
+
+
+
+
+
+
+ {if condition="$process eq 5"} +
+
+

缴费审核信息

+
+ + + +
+
+ {~$k=0;} +
+
+
+ {if condition="!in_array(input('apply_type'),[4,6])"} +
+ +
+ 查看 +
+
+
+ +
+ 查看 +
+
+ {else} +
+ +
+ 查看 +
+
+ {/if} +
+
+   +
+
+
+
+
+
+ {/if} + {if condition="$process egt 6"} + +
+
+

缴费确认审核信息

+
+ + + +
+
+ {~$k=0;} +
+
+
+ {if condition="!in_array(input('apply_type'),[4,6])"} +
+ +
+ 查看 +
+
+
+ +
+ 查看 +
+
+ {else} +
+ +
+ 查看 +
+
+ {/if} +
+
+ {if condition="$Think.config.cult4files['checkfee'] eq 1"} +
+ + {if(!empty($apply_uptypelist_checkfee))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkfee" item="fix"} + {~$file_id=get_cult4FileIDFromTempID($fix.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload=chk_cult4CanUpload($fix.upload_role_type,$fix.upload_role_id,$fix.upload_role_type2,$fix.upload_role_id2);} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($fix.upload_role_id,$fix.upload_role_type)}
第二上传者:{:get_cult4RoleName($fix.upload_role_id2,$fix.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($fix.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id))}{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$fix.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+ +
+ + {if(!empty($apply_uptypelist_tempcheckfee))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckfee" item="temp"} + {~$file_id=get_cult4FileIDFromTempID($temp.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload = chk_cult4CanUpload($temp.upload_role_type,$temp.upload_role_id,$temp.upload_role_type2,$temp.upload_role_id2);} + {~$k=$k+1;} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($temp.upload_role_id,$temp.upload_role_type)}
第二上传者:{:get_cult4RoleName($temp.upload_role_id2,$temp.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($temp.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id))}{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$temp.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+
+ +
+
+ +   +
+
+
+
+ {/if} +
+ +
+ + + + + {if condition="$hasJcReport eq 1"} +
+ +
+
{$jcReport.advice}
+
+
+ {/if} + + {if condition="$Think.config.cult4advice['checkfee'] eq 1"} +
+ +
+ {if(!empty($feecheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+ {if condition="$process eq 6"} +
+ +
+ + + 请输入您的缴费确认审核意见,并提交! +
+
+
+ {/if} + {/if} + {if condition="$process eq 6"} +
+
+   +   + {if condition="$Think.config.cult4files['checkfee'] eq 1"} {/if} + +
+
+ {/if} +
+
+
+
+
+
+
+ {if condition="$process egt 8"} + +
+
+

专家审核确认信息

+
+ + + +
+
+{if condition="$status eq 14"} +
+
+
+
+
+ +
+
+
+

可分配专家(按分配次数排序),总共可分配{$Think.config.cult4ProLimit}名专家

+
+
+
+ + + + + + + + + + + + + + + + {include file="cult4/ajax_apply_listadd2"/} + +
ID已分配次数专家登陆用户名专家昵称/邮箱性别状态激活操作
+
+
+
+ +

已分配专家(分配完后,前台专家可进行评分)

+
+
+
+ + + + + + + + + + + + + + + {include file="cult4/ajax_apply_listdel2"/} + +
ID专家登陆用户名专家昵称/邮箱性别状态激活操作
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+{else/} + {~$k=0;}{~$tscore=0;} +
+
+
+
+
+ +
+
+
+

已分配专家评分

+
+
+
+ + + + + + + + + + + + + + + {include file="cult4/ajax_apply_listpro"/} + +
ID前台专家是否可见专家登陆用户名专家昵称/邮箱性别状态激活
+
+
+
+

总评分:{$tscore}

+
+
+
+
+
+ {if condition="$Think.config.cult4files['checkpro'] eq 1"} +
+ + {if(!empty($apply_uptypelist_checkpro))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkpro" item="fix"} + {~$file_id=get_cult4FileIDFromTempID($fix.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload=chk_cult4CanUpload($fix.upload_role_type,$fix.upload_role_id,$fix.upload_role_type2,$fix.upload_role_id2);} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($fix.upload_role_id,$fix.upload_role_type)}
第二上传者:{:get_cult4RoleName($fix.upload_role_id2,$fix.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($fix.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id))}{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$fix.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+ +
+ + {if(!empty($apply_uptypelist_tempcheckpro))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckpro" item="temp"} + {~$file_id=get_cult4FileIDFromTempID($temp.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload = chk_cult4CanUpload($temp.upload_role_type,$temp.upload_role_id,$temp.upload_role_type2,$temp.upload_role_id2);} + {~$k=$k+1;} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($temp.upload_role_id,$temp.upload_role_type)}
第二上传者:{:get_cult4RoleName($temp.upload_role_id2,$temp.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($temp.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id))}{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$temp.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+ +
+ +
+
+ +   +
+
+
+
+
+ {/if} + +
+ + + + + {if condition="$hasJcReport eq 1"} +
+ +
+
{$jcReport.advice}
+
+
+ {/if} + {if condition="$Think.config.cult4advice['checkpro'] eq 1"} +
+ +
+ {if(!empty($procheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+ {if condition="$process eq 8"} +
+ +
+ + + 请输入您的专家审核确认意见,并提交! +
+
+
+ {/if} + {/if} + {if condition="$process eq 8"} +
+
+   +   + {if condition="$Think.config.cult4files['checkpro'] eq 1"} {/if} + +
+
+ {/if} +
+
+
+
+
+
+{/if} + +
+ {if condition="$process egt 9"} + +
+
+

联席会审核信息

+
+ + + +
+
+ {~$k=0;} +
+
+
+
+ + {if condition="$Think.config.cult4files['checkjc'] eq 1"} +
+ + {if(!empty($apply_uptypelist_checkjc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkjc" item="fix"} + {~$file_id=get_cult4FileIDFromTempID($fix.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload=chk_cult4CanUpload($fix.upload_role_type,$fix.upload_role_id,$fix.upload_role_type2,$fix.upload_role_id2);} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($fix.upload_role_id,$fix.upload_role_type)}
第二上传者:{:get_cult4RoleName($fix.upload_role_id2,$fix.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($fix.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id))}{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$fix.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+ +
+ + {if(!empty($apply_uptypelist_tempcheckjc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckjc" item="temp"} + {~$file_id=get_cult4FileIDFromTempID($temp.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload = chk_cult4CanUpload($temp.upload_role_type,$temp.upload_role_id,$temp.upload_role_type2,$temp.upload_role_id2);} + {~$k=$k+1;} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($temp.upload_role_id,$temp.upload_role_type)}
第二上传者:{:get_cult4RoleName($temp.upload_role_id2,$temp.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($temp.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id))}{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$temp.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+ +
+ +
+
+ +   +
+
+
+
+
+ {/if} + +
+ + + + + {if condition="$Think.config.cult4advice['checkjc'] eq 1"} +
+ +
+ {if(!empty($jccheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+ {if condition="$process eq 9"} +
+ +
+ + + 请输入您的联席会审核意见,并提交! +
+
+
+ {/if} + {/if} + {if condition="$process eq 9"} +
+
+ {if condition="$status eq 16"}  +   + {if condition="$Think.config.cult4files['checkjc'] eq 1"} {/if} + {else/} +   + {/if} + +
+
+ {/if} +
+
+
+
+
+
+
+ {if condition="$process egt 10"} + +
+
+

材料核实信息

+
+ + + +
+
+ {~$k=0;} +
+
+
+
+ + {if condition="$Think.config.cult4files['checkmc'] eq 1"} +
+ + {if(!empty($apply_uptypelist_checkmc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checkmc" item="fix"} + {~$file_id=get_cult4FileIDFromTempID($fix.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload=chk_cult4CanUpload($fix.upload_role_type,$fix.upload_role_id,$fix.upload_role_type2,$fix.upload_role_id2);} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($fix.upload_role_id,$fix.upload_role_type)}
第二上传者:{:get_cult4RoleName($fix.upload_role_id2,$fix.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($fix.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id))}{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$fix.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+ +
+ + {if(!empty($apply_uptypelist_tempcheckmc))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempcheckmc" item="temp"} + {~$file_id=get_cult4FileIDFromTempID($temp.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload = chk_cult4CanUpload($temp.upload_role_type,$temp.upload_role_id,$temp.upload_role_type2,$temp.upload_role_id2);} + {~$k=$k+1;} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($temp.upload_role_id,$temp.upload_role_type)}
第二上传者:{:get_cult4RoleName($temp.upload_role_id2,$temp.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($temp.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id))}{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$temp.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+ +
+ +
+
+ +   +
+
+
+
+
+ {/if} + +
+ + + + + {if condition="$Think.config.cult4advice['checkmc'] eq 1"} +
+ +
+ {if(!empty($mccheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+ {if condition="$process eq 10"} + {if condition="get_cult4IsUserAdvicedMC($baseinfo.apply_id,$user_id) eq 0"} +
+ +
+ + + 请输入您的材料核实意见,并提交! +
+
+
+ {/if} + {/if} + {/if} + + {if condition="$process eq 10"} +
+
+ {if condition="get_cult4IsUserAdvicedMC($baseinfo.apply_id,$user_id) eq 0"} +   +   +   + {if condition="$Think.config.cult4files['checkmc'] eq 1"} {/if} +   + {else/} +   +   + {/if} +
+
+ {/if} +
+
+
+
+
+
+
+ {if condition="$process eq 11"} + +
+
+

公告材料审核信息

+
+ + + +
+
+ {~$k=0;} +
+
+
+
+
+ +
+ +
+
+
+ {if(!empty($baseinfo.logo))} +
+ 查看 +
+ {/if} + {if condition="$status eq 27"} +
+ +
+ + {/if} +
+
+
+
+
+
+ +
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+
+ + +
+ +
+ +
+
+
+
+
+ {if condition="$status eq 27"} +
+ +
+ +
+
+ {/if} +
+
+
+ + + + {if condition="$status eq 29 or $status eq 48"} +
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+ {/if} + {if condition="$status eq 48"} +
+ +
+ +
+
+ {/if} +
+ + {if condition="$status eq 29"} + {if condition="$Think.config.cult4files['checknm'] eq 1"} +
+
+ + {if(!empty($apply_uptypelist_checknm))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_checknm" item="fix"} + {~$file_id=get_cult4FileIDFromTempID($fix.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload=chk_cult4CanUpload($fix.upload_role_type,$fix.upload_role_id,$fix.upload_role_type2,$fix.upload_role_id2);} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($fix.upload_role_id,$fix.upload_role_type)}
第二上传者:{:get_cult4RoleName($fix.upload_role_id2,$fix.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$fix.ftypedescr}{if condition="$fix.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($fix.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($fix.ftype_id,$baseinfo.apply_id))}{$fix.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$fix.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$fix.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无固定补交材料 +
+
+ {/if} +
+
+ +
+ + {if(!empty($apply_uptypelist_tempchecknm))} +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + {foreach name="apply_uptypelist_tempchecknm" item="temp"} + {~$file_id=get_cult4FileIDFromTempID($temp.ftype_id,$baseinfo.apply_id);} + {if condition="$file_id eq 0"} + {~$canupload = chk_cult4CanUpload($temp.upload_role_type,$temp.upload_role_id,$temp.upload_role_type2,$temp.upload_role_id2);} + {~$k=$k+1;} + + + + + + + + + + {else/} + + + + + + + + + + + + + {/if} + {/foreach} + +
ID文件描述必须上传者类型上传者文件大小上传时间查看审核审核历史
{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="$canupload eq 1"}请上传{else/}未上传{/if} + {if condition="$canupload eq 1"} +
+ +
+
+ +
+ {/if} + 第一上传者:{:get_cult4RoleName($temp.upload_role_id,$temp.upload_role_type)}
第二上传者:{:get_cult4RoleName($temp.upload_role_id2,$temp.upload_role_type2)} +
未审核{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileIDFromTempID}{$temp.ftypedescr}{if condition="$temp.mustupload eq 1"}必须{else/}非必须{/if}{if condition="get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id) eq 1"}前台会员{else/}后台员工{/if}{:get_cult4UserName(get_cult4UserIDFromTempID($temp.ftype_id,$baseinfo.apply_id),get_cult4UserTypeFromTempID($temp.ftype_id,$baseinfo.apply_id))}{$temp.ftype_id,$baseinfo.apply_id|get_cult4FileSizeFromTempID}{$temp.ftype_id,$baseinfo.apply_id|get_cult4UploadTimeFromTempID|date='Y-m-d H:i:s',###}查看 + {if condition="get_cult4FlagFromFileID($file_id) eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="get_cult4CntHistory($baseinfo.apply_id,$temp.ftype_id) eq 0"}无{else/}历史{/if}
+
+
+
+
+
+ {else/} +
+ +
+ 无临时补交材料 +
+
+ {/if} +
+ +
+ +
+
+ +   +
+
+
+
+
+ {/if} + +
+ + + + + {if condition="$Think.config.cult4advice['checknm'] eq 1"} +
+ +
+ {if(!empty($nmcheck))} + + {else/} +
+ 无 +
+ {/if} +
+
+ +
+ +
+ + + 请输入您的公告材料审核意见,并提交! +
+
+
+ {/if} + {if condition="$process eq 11"} +
+
+   +   + {if condition="$Think.config.cult4files['checknm'] eq 1"} {/if} +
+
+ {/if} +
+ {/if} +
+
+
+
+
+
+ {/if} + {/if} + {/if} + {/if} + {/if} + {/if} + {/if} + {/if} diff --git a/app/cult4/view/cult4/number_add.html b/app/cult4/view/cult4/number_add.html new file mode 100644 index 0000000..b4a6152 --- /dev/null +++ b/app/cult4/view/cult4/number_add.html @@ -0,0 +1,76 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + +
+
+
+ +
+ +
+ + *请输入特殊号码 +
+
+
+ +
+ +
+ + *请输入价格 +
+
+
+ +
+ +
+ +  默认未销售 +
+
+
+ +
+ +
+ +  默认关闭 +
+
+
+ +
+
+ + +       + +
+
+
+
+
+ +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/number_edit.html b/app/cult4/view/cult4/number_edit.html new file mode 100644 index 0000000..49e9531 --- /dev/null +++ b/app/cult4/view/cult4/number_edit.html @@ -0,0 +1,75 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + +
+
+
+ + +
+ +
+ + *请输入特殊号码 +
+
+
+ +
+ +
+ + *请输入价格 +
+
+
+ +
+ +
+ +  默认未销售 +
+
+
+ +
+ +
+ +  默认关闭 +
+
+
+ +
+
+ + +
+
+
+
+
+ +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/number_list.html b/app/cult4/view/cult4/number_list.html new file mode 100644 index 0000000..a40a3d0 --- /dev/null +++ b/app/cult4/view/cult4/number_list.html @@ -0,0 +1,109 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+
+ +
+ +
+ +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + {foreach name="number_list" item="v"} + + + + + + + + + {/foreach} + + + + +
ID特殊号码销售价格状态销售状态操作
{$v.id}{$v.saleno}{$v.price}元 + {if condition="$v['status'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
+ {if condition="$v['salestatus'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
+ +
{$page}
+
+
+
+
+ +
+{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/payupload.html b/app/cult4/view/cult4/payupload.html new file mode 100644 index 0000000..bc91f21 --- /dev/null +++ b/app/cult4/view/cult4/payupload.html @@ -0,0 +1,103 @@ +{extend name="admin@public/base" /} +{block name="main-content"} + + + + + + + +
+ + + +
+
+
+ + +
+
+ +
+ + + + 选择上传文件 + + {if condition="$list['payurl']"}  附件连接{/if} +
+
+
+
+ +
+ + + + 选择上传文件 + + {if condition="$list['certificateurl']"}  附件连接{/if} +
+
+
+
+ +
+ + + + 选择上传文件 + + {if condition="$list['noticeurl']"}  附件连接{/if} +
+
+ +
+
+ + +       + +
+
+
+
+
+ +
+{/block} +{block name="scripts"} + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/uptype_add.html b/app/cult4/view/cult4/uptype_add.html new file mode 100644 index 0000000..b6d5212 --- /dev/null +++ b/app/cult4/view/cult4/uptype_add.html @@ -0,0 +1,270 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +
+
+
+ + +
+ +
+ +
+
+
+
+ +
+ + *请选择该固定文件对应的挂牌类型 +
+
+
+
+ +
+ + *请选择该固定文件对应的挂牌类型 +
+
+
+
+ +
+ + *请选择该固定文件对应的挂牌类型 +
+
+
+
+ +
+ + *请选择企业类型 +
+
+
+
+ +
+ + *请选择项目持有人 +
+
+
+
+ +
+ + *请选择项目持有人 +
+
+
+ + +
+ +
+ + *请输入文件类型描述 +
+
+
+ +
+ +
+ +
+
+
+ +
+ +
+ + *选择可接受的文件类型 +
+
+
+ +
+ +
+ {if condition="$status egt 0"}{/if} + + {foreach name="statuslist" item="v" key="i"} + + {/foreach} + +
+
+
+
+ +
+ + + *请选择资料上传者 +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +  默认关闭 +
+
+
+
+ +
+ +
+
+
+ +
+
+ + + + + + +
+
+
+
+
+ +
+{/block} +{block name="scripts"} + + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/uptype_add1.html b/app/cult4/view/cult4/uptype_add1.html new file mode 100644 index 0000000..206722b --- /dev/null +++ b/app/cult4/view/cult4/uptype_add1.html @@ -0,0 +1,154 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +
+
+
+ + +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + *请输入文件类型描述 +
+
+
+ +
+ +
+ +
+
+
+ +
+ +
+ + *选择可接受的文件类型 +
+
+
+ +
+ +
+ {if condition="$status egt 0"}{/if} + + {foreach name="statuslist" item="v" key="i"} + + {/foreach} + +
+
+
+
+ +
+ + + *请选择资料上传者 +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +  默认关闭 +
+
+
+ +
+
+ + + + + + +
+
+
+
+
+ +
+{/block} +{block name="scripts"} + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/uptype_add10.html b/app/cult4/view/cult4/uptype_add10.html new file mode 100644 index 0000000..df4111c --- /dev/null +++ b/app/cult4/view/cult4/uptype_add10.html @@ -0,0 +1,154 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +
+
+
+ + +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + *请输入文件类型描述 +
+
+
+ +
+ +
+ +
+
+
+ +
+ +
+ + *选择可接受的文件类型 +
+
+
+ +
+ +
+ {if condition="$status egt 0"}{/if} + + {foreach name="statuslist" item="v" key="i"} + + {/foreach} + +
+
+
+
+ +
+ + + *请选择资料上传者 +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +  默认关闭 +
+
+
+ +
+
+ + + + + + +
+
+
+
+
+ +
+{/block} +{block name="scripts"} + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/uptype_add11.html b/app/cult4/view/cult4/uptype_add11.html new file mode 100644 index 0000000..25c55b3 --- /dev/null +++ b/app/cult4/view/cult4/uptype_add11.html @@ -0,0 +1,154 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +
+
+
+ + +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + *请输入文件类型描述 +
+
+
+ +
+ +
+ +
+
+
+ +
+ +
+ + *选择可接受的文件类型 +
+
+
+ +
+ +
+ {if condition="$status egt 0"}{/if} + + {foreach name="statuslist" item="v" key="i"} + + {/foreach} + +
+
+
+
+ +
+ + + *请选择资料上传者 +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +  默认关闭 +
+
+
+ +
+
+ + + + + + +
+
+
+
+
+ +
+{/block} +{block name="scripts"} + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/uptype_add12.html b/app/cult4/view/cult4/uptype_add12.html new file mode 100644 index 0000000..6e66e31 --- /dev/null +++ b/app/cult4/view/cult4/uptype_add12.html @@ -0,0 +1,154 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +
+
+
+ + +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + *请输入文件类型描述 +
+
+
+ +
+ +
+ +
+
+
+ +
+ +
+ + *选择可接受的文件类型 +
+
+
+ +
+ +
+ {if condition="$status egt 0"}{/if} + + {foreach name="statuslist" item="v" key="i"} + + {/foreach} + +
+
+
+
+ +
+ + + *请选择资料上传者 +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +  默认关闭 +
+
+
+ +
+
+ + + + + + +
+
+
+
+
+ +
+{/block} +{block name="scripts"} + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/uptype_add2.html b/app/cult4/view/cult4/uptype_add2.html new file mode 100644 index 0000000..5150275 --- /dev/null +++ b/app/cult4/view/cult4/uptype_add2.html @@ -0,0 +1,154 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +
+
+
+ + +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + *请输入文件类型描述 +
+
+
+ +
+ +
+ +
+
+
+ +
+ +
+ + *选择可接受的文件类型 +
+
+
+ +
+ +
+ {if condition="$status egt 0"}{/if} + + {foreach name="statuslist" item="v" key="i"} + + {/foreach} + +
+
+
+
+ +
+ + + *请选择资料上传者 +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +  默认关闭 +
+
+
+ +
+
+ + + + + + +
+
+
+
+
+ +
+{/block} +{block name="scripts"} + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/uptype_add3.html b/app/cult4/view/cult4/uptype_add3.html new file mode 100644 index 0000000..c64b6de --- /dev/null +++ b/app/cult4/view/cult4/uptype_add3.html @@ -0,0 +1,154 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +
+
+
+ + +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + *请输入文件类型描述 +
+
+
+ +
+ +
+ +
+
+
+ +
+ +
+ + *选择可接受的文件类型 +
+
+
+ +
+ +
+ {if condition="$status egt 0"}{/if} + + {foreach name="statuslist" item="v" key="i"} + + {/foreach} + +
+
+
+
+ +
+ + + *请选择资料上传者 +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +  默认关闭 +
+
+
+ +
+
+ + + + + + +
+
+
+
+
+ +
+{/block} +{block name="scripts"} + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/uptype_add4.html b/app/cult4/view/cult4/uptype_add4.html new file mode 100644 index 0000000..a433149 --- /dev/null +++ b/app/cult4/view/cult4/uptype_add4.html @@ -0,0 +1,154 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +
+
+
+ + +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + *请输入文件类型描述 +
+
+
+ +
+ +
+ +
+
+
+ +
+ +
+ + *选择可接受的文件类型 +
+
+
+ +
+ +
+ {if condition="$status egt 0"}{/if} + + {foreach name="statuslist" item="v" key="i"} + + {/foreach} + +
+
+
+
+ +
+ + + *请选择资料上传者 +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +  默认关闭 +
+
+
+ +
+
+ + + + + + +
+
+
+
+
+ +
+{/block} +{block name="scripts"} + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/uptype_add6.html b/app/cult4/view/cult4/uptype_add6.html new file mode 100644 index 0000000..fad64d2 --- /dev/null +++ b/app/cult4/view/cult4/uptype_add6.html @@ -0,0 +1,154 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +
+
+
+ + +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + *请输入文件类型描述 +
+
+
+ +
+ +
+ +
+
+
+ +
+ +
+ + *选择可接受的文件类型 +
+
+
+ +
+ +
+ {if condition="$status egt 0"}{/if} + + {foreach name="statuslist" item="v" key="i"} + + {/foreach} + +
+
+
+
+ +
+ + + *请选择资料上传者 +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +  默认关闭 +
+
+
+ +
+
+ + + + + + +
+
+
+
+
+ +
+{/block} +{block name="scripts"} + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/uptype_add8.html b/app/cult4/view/cult4/uptype_add8.html new file mode 100644 index 0000000..7e3f8e6 --- /dev/null +++ b/app/cult4/view/cult4/uptype_add8.html @@ -0,0 +1,154 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +
+
+
+ + +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + *请输入文件类型描述 +
+
+
+ +
+ +
+ +
+
+
+ +
+ +
+ + *选择可接受的文件类型 +
+
+
+ +
+ +
+ {if condition="$status egt 0"}{/if} + + {foreach name="statuslist" item="v" key="i"} + + {/foreach} + +
+
+
+
+ +
+ + + *请选择资料上传者 +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +  默认关闭 +
+
+
+ +
+
+ + + + + + +
+
+
+
+
+ +
+{/block} +{block name="scripts"} + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/uptype_add9.html b/app/cult4/view/cult4/uptype_add9.html new file mode 100644 index 0000000..9e86829 --- /dev/null +++ b/app/cult4/view/cult4/uptype_add9.html @@ -0,0 +1,154 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +
+
+
+ + +
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + *请输入文件类型描述 +
+
+
+ +
+ +
+ +
+
+
+ +
+ +
+ + *选择可接受的文件类型 +
+
+
+ +
+ +
+ {if condition="$status egt 0"}{/if} + + {foreach name="statuslist" item="v" key="i"} + + {/foreach} + +
+
+
+
+ +
+ + + *请选择资料上传者 +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +  默认关闭 +
+
+
+ +
+
+ + + + + + +
+
+
+
+
+ +
+{/block} +{block name="scripts"} + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/uptype_edit.html b/app/cult4/view/cult4/uptype_edit.html new file mode 100644 index 0000000..412d82e --- /dev/null +++ b/app/cult4/view/cult4/uptype_edit.html @@ -0,0 +1,286 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + + + + + +
+
+
+ + +
+ +
+ +
+
+
+
+ +
+ + *请选择该固定文件对应的挂牌类型 +
+
+
+ +
+ + *请选择该固定文件对应的挂牌类型 +
+
+
+
+ +
+ + *请选择该固定文件对应的挂牌类型 +
+
+
+
+ +
+ + *请选择企业类型 +
+
+
+
+ +
+ + *请选择项目持有人 +
+
+
+
+ +
+ + *请选择项目持有人 +
+
+
+ + +
+ +
+ + *请输入文件类型描述 +
+
+
+ +
+ +
+ + + {if condition="get_cult4PathFromFileID($uptype.ftemp_id) eq '未上传'"}{else/}查看原始上传文件{/if} +
+
+
+ +
+ +
+ + *选择可接受的文件类型 +
+
+
+ +
+ +
+ +
+
+
+
+ +
+ + + *请选择资料上传者 +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +  默认关闭 +
+
+
+
+ +
+ +
+
+
+ +
+
+ + + + + + +
+
+
+
+
+ +
+{/block} +{block name="scripts"} + + +{/block} \ No newline at end of file diff --git a/app/cult4/view/cult4/uptype_list.html b/app/cult4/view/cult4/uptype_list.html new file mode 100644 index 0000000..1ba6be3 --- /dev/null +++ b/app/cult4/view/cult4/uptype_list.html @@ -0,0 +1,119 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + {foreach name="uptype_list" item="v"} + + + + + + + + + + + + + + + + + + + + + {/foreach} + + + + +
ID文件描述文件类型文件模板登记托管层级登记托管类型企业类型项目类型接受文件类型上传状态启用状态申请ID操作员上传者辅助上传者操作日期必须项目操作
{$v.ftype_id}{$v.ftypedescr}{if condition="$v.apply_id eq 0"}固定{else/}临时{/if}{if condition="get_cult4PathFromFileID($v.ftemp_id) eq '未上传'"}未上传{else/}查看{/if}{if condition="$v.gp_level eq 0"}所有{elseif condition="$v.gp_level eq 4"}文化企业公会{elseif condition="$v.gp_level eq 5"}天使板{elseif condition="$v.gp_level eq 6"}养成板{elseif condition="$v.gp_level eq 7"}标准板{/if} + {if condition="$v.k_type eq 1"} + {if condition="$v.apply_type eq 0"}所有{elseif condition="$v.apply_type eq 1"}企业{elseif condition="$v.apply_type eq 2"}项目{elseif condition="$v.apply_type eq 3"}人才{/if} + {elseif condition="$v.k_type eq 3"} + {if condition="$v.apply_type eq 4"}招拍挂平台{elseif condition="$v.apply_type eq 5"}策略联盟挂牌{elseif condition="$v.apply_type eq 6"}文化数据资产挂牌{/if} + {else/} + {if condition="$v.apply_type eq 1"}国有{elseif condition="$v.apply_type eq 2"}非国有{elseif condition="$v.apply_type eq 3"}其他{/if} + {/if} + {if condition="$v.c_type eq 1"}有限责任公司{elseif condition="$v.c_type eq 2"}股份有限公司{elseif condition="$v.c_type eq 3"}合伙企业{elseif condition="$v.c_type eq 4"}其他{else/}无{/if}{if condition="$v.p_type eq 1"}企业{elseif condition="$v.p_type eq 2"}自然人{else/}无{/if}{$v.ftype}{$v.status|get_cult4Status} + {if condition="$v['isopen'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="$v.apply_id eq 0"}无{else/}{$v.apply_id}{/if}{$v.user_id|get_cult4UserName=###,2}{$v.upload_role_id,$v.upload_role_type|get_cult4RoleName}{$v.upload_role_id2,$v.upload_role_type2|get_cult4RoleName}{$v.create_time|date='Y-m-d H:i:s',###}{if condition="$v.mustupload eq 1"}必须{else/}非必须{/if} + + +
{$page}
+
+
+
+ + + +
+{/block} diff --git a/app/cult4/view/cult4/uptype_list1.html b/app/cult4/view/cult4/uptype_list1.html new file mode 100644 index 0000000..b202187 --- /dev/null +++ b/app/cult4/view/cult4/uptype_list1.html @@ -0,0 +1,83 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + {foreach name="uptype_list" item="v"} + + + + + + + + + + + + + + + {/foreach} + + + + +
ID文件描述文件类型文件模板接受文件类型上传状态启用状态申请ID操作员上传者辅助上传者操作日期
{$v.ftype_id}{$v.ftypedescr}{if condition="$v.apply_id eq 0"}固定{else/}临时{/if}{if condition="get_cult4PathFromFileID($v.ftemp_id) eq '未上传'"}未上传{else/}查看{/if}{$v.ftype}{$v.status|get_cult4Status} + {if condition="$v['isopen'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="$v.apply_id eq 0"}无{else/}{$v.apply_id}{/if}{$v.user_id|get_cult4UserName=###,2}{$v.upload_role_id,$v.upload_role_type|get_cult4RoleName}{$v.upload_role_id2,$v.upload_role_type2|get_cult4RoleName}{$v.create_time|date='Y-m-d H:i:s',###}
+
+ + +
+
+
+
+
+ + + +
+{/block} diff --git a/app/cult4/view/cult4/uptype_list10.html b/app/cult4/view/cult4/uptype_list10.html new file mode 100644 index 0000000..fb051ef --- /dev/null +++ b/app/cult4/view/cult4/uptype_list10.html @@ -0,0 +1,83 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + {foreach name="uptype_list" item="v"} + + + + + + + + + + + + + + + {/foreach} + + + + +
ID文件描述文件类型文件模板接受文件类型上传状态启用状态申请ID操作员上传者辅助上传者操作日期
{$v.ftype_id}{$v.ftypedescr}{if condition="$v.apply_id eq 0"}固定{else/}临时{/if}{if condition="get_cult4PathFromFileID($v.ftemp_id) eq '未上传'"}未上传{else/}查看{/if}{$v.ftype}{$v.status|get_cult4Status} + {if condition="$v['isopen'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="$v.apply_id eq 0"}无{else/}{$v.apply_id}{/if}{$v.user_id|get_cult4UserName=###,2}{$v.upload_role_id,$v.upload_role_type|get_cult4RoleName}{$v.upload_role_id2,$v.upload_role_type2|get_cult4RoleName}{$v.create_time|date='Y-m-d H:i:s',###}
+
+ + +
+
+
+
+
+ + + +
+{/block} diff --git a/app/cult4/view/cult4/uptype_list11.html b/app/cult4/view/cult4/uptype_list11.html new file mode 100644 index 0000000..c4b8ab0 --- /dev/null +++ b/app/cult4/view/cult4/uptype_list11.html @@ -0,0 +1,83 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + {foreach name="uptype_list" item="v"} + + + + + + + + + + + + + + + {/foreach} + + + + +
ID文件描述文件类型文件模板接受文件类型上传状态启用状态申请ID操作员上传者辅助上传者操作日期
{$v.ftype_id}{$v.ftypedescr}{if condition="$v.apply_id eq 0"}固定{else/}临时{/if}{if condition="get_cult4PathFromFileID($v.ftemp_id) eq '未上传'"}未上传{else/}查看{/if}{$v.ftype}{$v.status|get_cult4Status} + {if condition="$v['isopen'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="$v.apply_id eq 0"}无{else/}{$v.apply_id}{/if}{$v.user_id|get_cult4UserName=###,2}{$v.upload_role_id,$v.upload_role_type|get_cult4RoleName}{$v.upload_role_id2,$v.upload_role_type2|get_cult4RoleName}{$v.create_time|date='Y-m-d H:i:s',###}
+
+ + +
+
+
+
+
+ + + +
+{/block} diff --git a/app/cult4/view/cult4/uptype_list12.html b/app/cult4/view/cult4/uptype_list12.html new file mode 100644 index 0000000..2e06972 --- /dev/null +++ b/app/cult4/view/cult4/uptype_list12.html @@ -0,0 +1,83 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + {foreach name="uptype_list" item="v"} + + + + + + + + + + + + + + + {/foreach} + + + + +
ID文件描述文件类型文件模板接受文件类型上传状态启用状态申请ID操作员上传者辅助上传者操作日期
{$v.ftype_id}{$v.ftypedescr}{if condition="$v.apply_id eq 0"}固定{else/}临时{/if}{if condition="get_cult4PathFromFileID($v.ftemp_id) eq '未上传'"}未上传{else/}查看{/if}{$v.ftype}{$v.status|get_cult4Status} + {if condition="$v['isopen'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="$v.apply_id eq 0"}无{else/}{$v.apply_id}{/if}{$v.user_id|get_cult4UserName=###,2}{$v.upload_role_id,$v.upload_role_type|get_cult4RoleName}{$v.upload_role_id2,$v.upload_role_type2|get_cult4RoleName}{$v.create_time|date='Y-m-d H:i:s',###}
+
+ + +
+
+
+
+
+ + + +
+{/block} diff --git a/app/cult4/view/cult4/uptype_list2.html b/app/cult4/view/cult4/uptype_list2.html new file mode 100644 index 0000000..ba55bc9 --- /dev/null +++ b/app/cult4/view/cult4/uptype_list2.html @@ -0,0 +1,83 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + {foreach name="uptype_list" item="v"} + + + + + + + + + + + + + + + {/foreach} + + + + +
ID文件描述文件类型文件模板接受文件类型上传状态启用状态申请ID操作员上传者辅助上传者操作日期
{$v.ftype_id}{$v.ftypedescr}{if condition="$v.apply_id eq 0"}固定{else/}临时{/if}{if condition="get_cult4PathFromFileID($v.ftemp_id) eq '未上传'"}未上传{else/}查看{/if}{$v.ftype}{$v.status|get_cult4Status} + {if condition="$v['isopen'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="$v.apply_id eq 0"}无{else/}{$v.apply_id}{/if}{$v.user_id|get_cult4UserName=###,2}{$v.upload_role_id,$v.upload_role_type|get_cult4RoleName}{$v.upload_role_id2,$v.upload_role_type2|get_cult4RoleName}{$v.create_time|date='Y-m-d H:i:s',###}
+
+ + +
+
+
+
+
+ + + +
+{/block} diff --git a/app/cult4/view/cult4/uptype_list3.html b/app/cult4/view/cult4/uptype_list3.html new file mode 100644 index 0000000..b585fad --- /dev/null +++ b/app/cult4/view/cult4/uptype_list3.html @@ -0,0 +1,83 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + {foreach name="uptype_list" item="v"} + + + + + + + + + + + + + + + {/foreach} + + + + +
ID文件描述文件类型文件模板接受文件类型上传状态启用状态申请ID操作员上传者辅助上传者操作日期
{$v.ftype_id}{$v.ftypedescr}{if condition="$v.apply_id eq 0"}固定{else/}临时{/if}{if condition="get_cult4PathFromFileID($v.ftemp_id) eq '未上传'"}未上传{else/}查看{/if}{$v.ftype}{$v.status|get_cult4Status} + {if condition="$v['isopen'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="$v.apply_id eq 0"}无{else/}{$v.apply_id}{/if}{$v.user_id|get_cult4UserName=###,2}{$v.upload_role_id,$v.upload_role_type|get_cult4RoleName}{$v.upload_role_id2,$v.upload_role_type2|get_cult4RoleName}{$v.create_time|date='Y-m-d H:i:s',###}
+
+ + +
+
+
+
+
+ + + +
+{/block} diff --git a/app/cult4/view/cult4/uptype_list4.html b/app/cult4/view/cult4/uptype_list4.html new file mode 100644 index 0000000..46871ba --- /dev/null +++ b/app/cult4/view/cult4/uptype_list4.html @@ -0,0 +1,83 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + {foreach name="uptype_list" item="v"} + + + + + + + + + + + + + + + {/foreach} + + + + +
ID文件描述文件类型文件模板接受文件类型上传状态启用状态申请ID操作员上传者辅助上传者操作日期
{$v.ftype_id}{$v.ftypedescr}{if condition="$v.apply_id eq 0"}固定{else/}临时{/if}{if condition="get_cult4PathFromFileID($v.ftemp_id) eq '未上传'"}未上传{else/}查看{/if}{$v.ftype}{$v.status|get_cult4Status} + {if condition="$v['isopen'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="$v.apply_id eq 0"}无{else/}{$v.apply_id}{/if}{$v.user_id|get_cult4UserName=###,2}{$v.upload_role_id,$v.upload_role_type|get_cult4RoleName}{$v.upload_role_id2,$v.upload_role_type2|get_cult4RoleName}{$v.create_time|date='Y-m-d H:i:s',###}
+
+ + +
+
+
+
+
+ + + +
+{/block} diff --git a/app/cult4/view/cult4/uptype_list6.html b/app/cult4/view/cult4/uptype_list6.html new file mode 100644 index 0000000..f2c699b --- /dev/null +++ b/app/cult4/view/cult4/uptype_list6.html @@ -0,0 +1,83 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + {foreach name="uptype_list" item="v"} + + + + + + + + + + + + + + + {/foreach} + + + + +
ID文件描述文件类型文件模板接受文件类型上传状态启用状态申请ID操作员上传者辅助上传者操作日期
{$v.ftype_id}{$v.ftypedescr}{if condition="$v.apply_id eq 0"}固定{else/}临时{/if}{if condition="get_cult4PathFromFileID($v.ftemp_id) eq '未上传'"}未上传{else/}查看{/if}{$v.ftype}{$v.status|get_cult4Status} + {if condition="$v['isopen'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="$v.apply_id eq 0"}无{else/}{$v.apply_id}{/if}{$v.user_id|get_cult4UserName=###,2}{$v.upload_role_id,$v.upload_role_type|get_cult4RoleName}{$v.upload_role_id2,$v.upload_role_type2|get_cult4RoleName}{$v.create_time|date='Y-m-d H:i:s',###}
+
+ + +
+
+
+
+
+ + + +
+{/block} diff --git a/app/cult4/view/cult4/uptype_list8.html b/app/cult4/view/cult4/uptype_list8.html new file mode 100644 index 0000000..05e72e4 --- /dev/null +++ b/app/cult4/view/cult4/uptype_list8.html @@ -0,0 +1,83 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + {foreach name="uptype_list" item="v"} + + + + + + + + + + + + + + + {/foreach} + + + + +
ID文件描述文件类型文件模板接受文件类型上传状态启用状态申请ID操作员上传者辅助上传者操作日期
{$v.ftype_id}{$v.ftypedescr}{if condition="$v.apply_id eq 0"}固定{else/}临时{/if}{if condition="get_cult4PathFromFileID($v.ftemp_id) eq '未上传'"}未上传{else/}查看{/if}{$v.ftype}{$v.status|get_cult4Status} + {if condition="$v['isopen'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="$v.apply_id eq 0"}无{else/}{$v.apply_id}{/if}{$v.user_id|get_cult4UserName=###,2}{$v.upload_role_id,$v.upload_role_type|get_cult4RoleName}{$v.upload_role_id2,$v.upload_role_type2|get_cult4RoleName}{$v.create_time|date='Y-m-d H:i:s',###}
+
+ + +
+
+
+
+
+ + + +
+{/block} diff --git a/app/cult4/view/cult4/uptype_list9.html b/app/cult4/view/cult4/uptype_list9.html new file mode 100644 index 0000000..aec569a --- /dev/null +++ b/app/cult4/view/cult4/uptype_list9.html @@ -0,0 +1,83 @@ +{extend name="admin@public/base" /} +{block name="main-content"} +
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + {foreach name="uptype_list" item="v"} + + + + + + + + + + + + + + + {/foreach} + + + + +
ID文件描述文件类型文件模板接受文件类型上传状态启用状态申请ID操作员上传者辅助上传者操作日期
{$v.ftype_id}{$v.ftypedescr}{if condition="$v.apply_id eq 0"}固定{else/}临时{/if}{if condition="get_cult4PathFromFileID($v.ftemp_id) eq '未上传'"}未上传{else/}查看{/if}{$v.ftype}{$v.status|get_cult4Status} + {if condition="$v['isopen'] eq 1"} + +
+
+ {else/} + +
+
+ {/if} +
{if condition="$v.apply_id eq 0"}无{else/}{$v.apply_id}{/if}{$v.user_id|get_cult4UserName=###,2}{$v.upload_role_id,$v.upload_role_type|get_cult4RoleName}{$v.upload_role_id2,$v.upload_role_type2|get_cult4RoleName}{$v.create_time|date='Y-m-d H:i:s',###}
+
+ + +
+
+
+
+
+ + + +
+{/block}