update
This commit is contained in:
parent
a66bf95215
commit
55d16cfdb5
@ -18,6 +18,7 @@
|
||||
use app\common\model\dept\Orgs;
|
||||
use app\common\model\material\Material;
|
||||
use app\common\model\project\Project;
|
||||
use app\common\model\project\ProjectMaterialBudget;
|
||||
use app\common\model\project\ProjectMaterialBudgetDetail;
|
||||
use app\common\validate\BaseValidate;
|
||||
|
||||
@ -108,7 +109,7 @@
|
||||
|
||||
public function checkData($value): bool|string
|
||||
{
|
||||
$data = ProjectMaterialBudgetDetail::where('id', $value)->findOrEmpty();
|
||||
$data = ProjectMaterialBudget::where('id', $value)->findOrEmpty();
|
||||
if ($data->isEmpty()) {
|
||||
return '数据不存在';
|
||||
}
|
||||
@ -148,16 +149,6 @@
|
||||
return true;
|
||||
}
|
||||
|
||||
public function checkAnnex($value): bool|string
|
||||
{
|
||||
if (!empty($value) && $value != '') {
|
||||
if (!is_array($value)) {
|
||||
return '附件格式错误';
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public function checkMaterialBudgetDetail($value): bool|string
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user