提交 962bb9ee authored 作者: fengzy's avatar fengzy

费用报销脚本

上级 5d82548e
...@@ -22,7 +22,7 @@ class flow_projectfkClassModel extends flowModel ...@@ -22,7 +22,7 @@ class flow_projectfkClassModel extends flowModel
//明细 //明细
$projectfk=$this->db->getrows('oa_c_projectfk_details',"mid='".$this->rs['id']."'"); $projectfk=$this->db->getrows('oa_c_projectfk_details',"mid='".$this->rs['id']."'");
var_dump($this->rs);die;
$arr=[]; $arr=[];
foreach ($projectfk as $k=> $value) { foreach ($projectfk as $k=> $value) {
...@@ -164,7 +164,13 @@ class flow_projectfkClassModel extends flowModel ...@@ -164,7 +164,13 @@ class flow_projectfkClassModel extends flowModel
$model['Model']['FRECTUNIT']['FNumber']=$supplier['number']; $model['Model']['FRECTUNIT']['FNumber']=$supplier['number'];
$model['Model']['FPAYBILLENTRY']=$arr['FPAYBILLENTRY']; $model['Model']['FPAYBILLENTRY']=$arr['FPAYBILLENTRY'];
$model['Model']['FDepartment']['FNumber']=self::deptname($applicationdpt); $model['Model']['FDepartment']['FNumber']=self::deptname($applicationdpt);
// "FSETTLEORGID": {
// "FNumber": "1000"
// },
// "FSETTLEORGID": {
// "FNumber": "1000"
// },
$data_model=json_encode($model); $data_model=json_encode($model);
$data = array( $data = array(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论