更新关联数据
This commit is contained in:
parent
5b0178bf00
commit
bd44af9af5
@ -66,6 +66,9 @@ class FinancePaymentApplyLists extends BaseAdminDataLists implements ListsSearch
|
|||||||
//关联数据 供应商后续添加
|
//关联数据 供应商后续添加
|
||||||
$item['supplier_name'] = '供应商名称';
|
$item['supplier_name'] = '供应商名称';
|
||||||
$item['contract_type'] = '1';
|
$item['contract_type'] = '1';
|
||||||
|
$item['approve_no'] = '付款单号';
|
||||||
|
$item['approve_step'] = '流程步骤';
|
||||||
|
$item['approve_settle_status'] = 1;
|
||||||
return $item;
|
return $item;
|
||||||
})
|
})
|
||||||
->toArray();
|
->toArray();
|
||||||
|
@ -139,6 +139,8 @@ class FinancePaymentApplyLogic extends BaseLogic
|
|||||||
$financePaymentApply = FinancePaymentApply::findOrEmpty($params['id']);
|
$financePaymentApply = FinancePaymentApply::findOrEmpty($params['id']);
|
||||||
$financePaymentApply->contract;
|
$financePaymentApply->contract;
|
||||||
$financePaymentApply->plan;
|
$financePaymentApply->plan;
|
||||||
|
// 供应商关联数据后续添加
|
||||||
|
$financePaymentApply->supplier = null;
|
||||||
$financePaymentApply->project = null;
|
$financePaymentApply->project = null;
|
||||||
if (!empty($financePaymentApply->contract->project_id)) {
|
if (!empty($financePaymentApply->contract->project_id)) {
|
||||||
$financePaymentApply->project = Project::findOrEmpty($financePaymentApply->contract->project_id);
|
$financePaymentApply->project = Project::findOrEmpty($financePaymentApply->contract->project_id);
|
||||||
|
@ -120,6 +120,8 @@ class FinancePaymentPlanLogic extends BaseLogic
|
|||||||
{
|
{
|
||||||
$financePaymentPlan = FinancePaymentPlan::findOrEmpty($params['id']);
|
$financePaymentPlan = FinancePaymentPlan::findOrEmpty($params['id']);
|
||||||
$financePaymentPlan->contract;
|
$financePaymentPlan->contract;
|
||||||
|
// 供应商关联数据后续添加
|
||||||
|
$financePaymentPlan->supplier = null;
|
||||||
$financePaymentPlan->project = null;
|
$financePaymentPlan->project = null;
|
||||||
if (!empty($financePaymentPlan->contract->project_id)) {
|
if (!empty($financePaymentPlan->contract->project_id)) {
|
||||||
$financePaymentPlan->project = Project::findOrEmpty($financePaymentPlan->contract->project_id);
|
$financePaymentPlan->project = Project::findOrEmpty($financePaymentPlan->contract->project_id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user