提交 3cf8e17a authored 作者: fengzy's avatar fengzy

oa付款单

上级 625f7614
......@@ -20,24 +20,24 @@ class flow_oafkClassModel extends flowModel
$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'];
$checkid= $value['value'];
break;
}
}
if(empty($allcheckid)){
if(empty($checkid)){
$option = m('option')->getall('pid = 1497 and num =2 order by sort desc','num,name,value,sort');
foreach ($option as $key => $value) {
if(in_array($value['value'], $allcheckid)){
$allcheckid= $value['value'];
$checkid= $value['value'];
break;
}
}
}
var_dump($allcheckid);die;
var_dump($checkid);die;
//zt 1代表同意
if($zt==1){
$flowid=$this->getflow();
if($flowid['nowcheckid']==$allcheckid){
if($flowid['nowcheckid']==$checkid){
$data = m('c_fund_details_fk')->getall('mid='.$this->rs['id'], 'id,cbzx_code,charge_amount');
foreach ($data as $key => $vo) {
$cbzx_code=$vo['cbzx_code'];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论