This commit is contained in:
CRM8000 2024-10-23 07:55:38 +08:00
parent eb8dbe0088
commit a2b4e57b8d
3 changed files with 51 additions and 0 deletions

View File

@ -99,4 +99,29 @@ class VoucherController extends PSIBaseController
$this->ajaxReturn($service->voucherList($params));
}
}
/**
* 查询凭证字列表
*
* JS: web\Public\Scripts\PSI\SLN0002\Voucher\EditForm.js
*/
function queryVoucherWord()
{
if (IS_POST) {
$us = new UserService();
$hasPermission = $us->hasPermission(FIdConst::VOUCHER_ADD) ||
$us->hasPermission(FIdConst::VOUCHER_EDIT);
if (!$hasPermission) {
die("没有权限");
}
$params = [
"orgId" => I("post.orgId"),
];
$service = new VoucherService();
$this->ajaxReturn($service->queryVoucherWord($params));
}
}
}

View File

@ -33,4 +33,17 @@ class VoucherDAO extends PSIBaseExDAO
"totalCount" => 0,
];
}
/**
* 查询凭证字列表
*/
function queryVoucherWord($params)
{
$db = $this->db;
$orgId = $params["orgId"];
// TODO
return $this->emptyResult();
}
}

View File

@ -54,4 +54,17 @@ class VoucherService extends PSIBaseExService
$dao = new VoucherDAO($this->db());
return $dao->voucherList($params);
}
/**
* 查询凭证字列表
*/
function queryVoucherWord($params)
{
if ($this->isNotOnline()) {
return $this->emptyResult();
}
$dao = new VoucherDAO($this->db());
return $dao->queryVoucherWord($params);
}
}