This commit is contained in:
weiz 2024-03-21 14:28:55 +08:00
parent a66bf95215
commit 55d16cfdb5

View File

@ -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
{