提交 8a2c6aac authored 作者: fengzy's avatar fengzy

oa付款单

上级 24b207c6
......@@ -56,27 +56,20 @@ class flow_oafkClassModel extends flowModel
$sql = " mid ='$id' and `table`='c_fininfom_oafk' ";
$flow_bill = m('flow_bill')->getone($sql,'allcheckid');
$allcheckid=explode(',',$flow_bill['allcheckid']);
$option = m('option')->getall('pid = 1497 and num =1 order by sort desc','num,name,value,sort');//当前部门
// echo "<pre>";
// var_dump($option);die;
$option = m('option')->getall('pid = 1497 and num =1 order by sort desc','num,name,value,sort');
foreach ($option as $key => $value) {
if(in_array($value['value'], $allcheckid)){
$allcheckid= $value['value'];
break;
}
}
var_dump($allcheckid);die;
//zt 1代表同意
if($zt==1){
$deptdata = m('admin')->getone('id='.$this->adminid,'deptname');
$option = m('option')->getall('pid = 1497 ','num,name');//当前部门
foreach ($option as $key => $vo) {
if($vo['name']==$deptdata['deptname']){
$num= $vo['num'];
}
}
$flowid=$this->getflow();
var_dump($flowid);
var_dump($flowid);die;
if($flowid['nowcheckname']==$num){
$data = m('c_fund_details_fk')->getall('mid='.$this->rs['id'], 'id,cbzx_code,charge_amount');
foreach ($data as $key => $vo) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论