提交 ab3c7713 authored 作者: fengzy's avatar fengzy

项目付款单

上级 f60fd8c6
//流程模块【oayfk.预付款申请单】下录入页面自定义js页面,初始函数 //流程模块【oayfk.预付款申请单】下录入页面自定义js页面,初始函数
function initbodys(){ function initbodys(){
c.onselectdata['payee']=function(d){
js.ajax(geturlact('getbankinfo'),{numb:d.value},function(ret){
$(form('fkinfo')).find('option').remove();
if(ret.length > 0){
js.setselectdata(form('fkinfo'),ret,'value')
} else {
return '未找到银行信息,请到供应商/客户 补充银行信息';
}
},'post,json');
}
} }
function changesubmit(d){ function changesubmit(d){
......
...@@ -50,6 +50,26 @@ class mode_oayfkClassAction extends inputAction{ ...@@ -50,6 +50,26 @@ class mode_oayfkClassAction extends inputAction{
// } // }
public function getbankinfoAjax()
{
$res = [];
$numb = $this->post('numb');
$supplier = $this->db->getone('oa_supplier', 'number = "' . $numb . '"');
if ($supplier) {
$sql = 'select * from oa_supplier_bank_info where mid = ' . $supplier['id'];
$data = $this->db->getAll($sql);
if($data){
foreach ($data as $k => $v){
$info = "账户名称:" . $v['bank_holder'] .',';
$info .= "开户银行:" . $v['open_bank_name'].',';
$info .= "银行账号:" . $v['bank_code'].',';
$info .= "开户行地址:" . $v['open_address'];
$res[$k]['name']= $res[$k]['value'] = $info;
}
}
}
$this->returnjson($res);
}
} }
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: chouchou
* Date: 2020-4-2
* Time: 0:17
*/
class openaaClassAction extends openapiAction
{
public function listAction(){
$zfarr = array(
'name' =>'KJDSAHKJSADKJHSADKJSA',
);
m('tmp_aa')->insert($zfarr);
}
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论