提交 797ca1b9 authored 作者: fengzy's avatar fengzy

项目付款单

上级 8a1e058d
......@@ -152,4 +152,11 @@ class CommonClassModel extends Model
$data = m('assetm')->getall('state = 0', 'id as value, CONCAT(num, "(",title,")") as name');
return $data;
}
//项目付款单成本中心列表接口
public function getprojectcbzx()
{
$data = m('c_cbzx')->getall(' type=0 and status = 1', 'id as value,CONCAT(code, "(",name,")") as name');
return $data;
}
}
......@@ -22,9 +22,8 @@ class flow_projectfkClassModel extends flowModel
//明细
$projectfk=$this->db->getrows('oa_c_projectfk_details',"mid='".$this->rs['id']."'");
$cbxmid=$this->rs['cbxmid'];//成本中心
$arr=[];
foreach ($projectfk as $k=> $value) {
foreach ($value as $key => $val) {
......@@ -56,9 +55,9 @@ class flow_projectfkClassModel extends flowModel
$arr['FPAYBILLENTRY'][$k]['FSETTLETYPEID']['FNumber']='JSFS04_SYS';
$arr['FPAYBILLENTRY'][$k]['FPURPOSEID']['FNumber']='SFKYT001';
$arr['FPAYBILLENTRY'][$k]['FCostType']['FNUMBER']='CBLX0017';
$arr['FPAYBILLENTRY'][$k]['FCostModel']['FNUMBER']='00';
$arr['FPAYBILLENTRY'][$k]['F_KXType']['FNUMBER']='00';
// $arr['FPAYBILLENTRY'][$k]['FCostType']['FNUMBER']='CBLX0017';
// $arr['FPAYBILLENTRY'][$k]['FCostModel']['FNUMBER']='00';
// $arr['FPAYBILLENTRY'][$k]['F_KXType']['FNUMBER']='00';
$arr['FPAYBILLENTRY'][$k]['FENDDATE']=$this->rs['applydt'].' 00:00:00';
$arr['FPAYBILLENTRY'][$k]['FPOSTDATE']=$this->rs['applydt'].' 00:00:00';
$arr['FPAYBILLENTRY'][$k]['FOPPOSITEBANKACCOUNT']=$data['bank_code'];
......@@ -87,7 +86,7 @@ class flow_projectfkClassModel extends flowModel
$result = self::invoke_login($cloudUrl,$post_content,$cookie_jar);
header("Content-type: text/html; charset=utf8");
$applicant=$this->rs['applicant'];//申请人
$applicationdpt=$this->rs['applicationdpt'];//申请部门
$applicationdpt=$this->rs['dept'];//申请部门
$applydt=$this->rs['applydt'];//申请日期
......@@ -147,42 +146,15 @@ class flow_projectfkClassModel extends flowModel
"FISCARRYRATE": false,
"FSETTLEMAINBOOKID": {
"FNUMBER": "PRE001"
},
"FDepartment": {
"FNumber": ""
},
"FSETTLEEXCHANGETYPE": {
"FNUMBER": "HLTX01_SYS"
},
"F_PAEZ_OADJBH": "213123213",
"FPAYBILLENTRY": [
{
"FSETTLETYPEID": {
"FNumber": "JSFS04_SYS"
},
"FPURPOSEID": {
"FNumber": "SFKYT001"
},
"FPAYTOTALAMOUNTFOR": 123213.0,
"FPAYAMOUNTFOR_E": 123213.0,
"FSETTLEPAYAMOUNTFOR": 123213.0,
"FREALPAYAMOUNTFOR_D": 123213.0,
"FACCOUNTID": {
"FNumber": "01090879400120105061427"
},
"FPAYAMOUNT_E": 123213.0,
"FPOSTDATE": "2020-08-23 00:00:00",
"FRuZhangType": "1",
"FPayType": "A",
"F_XM_ID": {
"FNUMBER": "18003"
},
"F_KXType": {
"FNUMBER": "008"
},
"F_PAEZ_Cbzx": {
"FNUMBER": "BDJC-1-19004"
}
}
]
"F_PAEZ_OADJBH": "213123213"
}
}';
$model=json_decode($data_model,true);
......@@ -190,9 +162,10 @@ class flow_projectfkClassModel extends flowModel
$model['Model']['FDATE']=$applydt;
$model['Model']['FCONTACTUNIT']['FNumber']=$supplier['number'];
$model['Model']['F_PAEZ_OADJBH']=$this->rs['docnum'];;
$model['Model']['F_PAEZ_OADJBH']=$this->rs['docnum'];
$model['Model']['FRECTUNIT']['FNumber']=$supplier['number'];
$model['Model']['FPAYBILLENTRY']=$arr['FPAYBILLENTRY'];
$model['Model']['FDepartment']['FNumber']=self::deptname($applicationdpt);
$data_model=json_encode($model);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论