更新关联数据

This commit is contained in:
yaooo 2023-12-15 16:37:00 +08:00
parent 5b0178bf00
commit bd44af9af5
3 changed files with 7 additions and 0 deletions

View File

@ -66,6 +66,9 @@ class FinancePaymentApplyLists extends BaseAdminDataLists implements ListsSearch
//关联数据 供应商后续添加
$item['supplier_name'] = '供应商名称';
$item['contract_type'] = '1';
$item['approve_no'] = '付款单号';
$item['approve_step'] = '流程步骤';
$item['approve_settle_status'] = 1;
return $item;
})
->toArray();

View File

@ -139,6 +139,8 @@ class FinancePaymentApplyLogic extends BaseLogic
$financePaymentApply = FinancePaymentApply::findOrEmpty($params['id']);
$financePaymentApply->contract;
$financePaymentApply->plan;
// 供应商关联数据后续添加
$financePaymentApply->supplier = null;
$financePaymentApply->project = null;
if (!empty($financePaymentApply->contract->project_id)) {
$financePaymentApply->project = Project::findOrEmpty($financePaymentApply->contract->project_id);

View File

@ -120,6 +120,8 @@ class FinancePaymentPlanLogic extends BaseLogic
{
$financePaymentPlan = FinancePaymentPlan::findOrEmpty($params['id']);
$financePaymentPlan->contract;
// 供应商关联数据后续添加
$financePaymentPlan->supplier = null;
$financePaymentPlan->project = null;
if (!empty($financePaymentPlan->contract->project_id)) {
$financePaymentPlan->project = Project::findOrEmpty($financePaymentPlan->contract->project_id);