更新回款记录

This commit is contained in:
yaooo 2023-12-14 10:58:35 +08:00
parent bb7e6728c8
commit ffd8c8a73b
15 changed files with 27 additions and 25 deletions

View File

@ -139,7 +139,7 @@ class BidBiddingDecisionLogic extends BaseLogic
if (!empty($bidBiddingDecision->project->custom_id)) {
$bidBiddingDecision->custom = Custom::findOrEmpty($bidBiddingDecision->project->custom_id);
}
$bidBiddingDecision->project = $bidBiddingDecision->project;
$bidBiddingDecision->project;
return $bidBiddingDecision->toArray();
}
}

View File

@ -138,7 +138,7 @@ class BidBuyBiddingDocumentLogic extends BaseLogic
if (!empty($bidBuyBiddingDocument->project->custom_id)) {
$bidBuyBiddingDocument->custom = Custom::findOrEmpty($bidBuyBiddingDocument->project->custom_id);
}
$bidBuyBiddingDocument->project = $bidBuyBiddingDocument->project;
$bidBuyBiddingDocument->project;
return $bidBuyBiddingDocument->toArray();
}
}

View File

@ -121,8 +121,8 @@ class BidResultLogic extends BaseLogic
if (!empty($bidResult->project->custom_id)) {
$bidResult->custom = Custom::findOrEmpty($bidResult->project->custom_id);
}
$bidResult->project = $bidResult->project;
$bidResult->examination = $bidResult->examination;
$bidResult->project;
$bidResult->examination;
return $bidResult->toArray();
}
}

View File

@ -156,8 +156,8 @@ class ContractLogic extends BaseLogic
public static function detail($params): array
{
$contract = Contract::findOrEmpty($params['id']);
$contract->custom = $contract->custom;
$contract->document = $contract->document;
$contract->custom;
$contract->document;
return $contract->toArray();
}
}

View File

@ -132,7 +132,7 @@ class ContractNegotiationLogic extends BaseLogic
public static function detail($params): array
{
$contractNegotiation = ContractNegotiation::findOrEmpty($params['id']);
$contractNegotiation->contract = $contractNegotiation->contract;
$contractNegotiation->contract;
return $contractNegotiation->toArray();
}
}

View File

@ -164,8 +164,8 @@ class ProcurementContractChangeLogic extends BaseLogic
if (!empty($procurementContractChange->project->custom_id)) {
$procurementContractChange->custom = Custom::findOrEmpty($procurementContractChange->project->custom_id);
}
$procurementContractChange->project = $procurementContractChange->project;
$procurementContractChange->material = $procurementContractChange->material;
$procurementContractChange->project;
$procurementContractChange->material;
return $procurementContractChange->toArray();
}
}

View File

@ -163,8 +163,8 @@ class ProcurementContractLogic extends BaseLogic
if (!empty($procurementContract->project->custom_id)) {
$procurementContract->custom = Custom::findOrEmpty($procurementContract->project->custom_id);
}
$procurementContract->project = $procurementContract->project;
$procurementContract->material = $procurementContract->material;
$procurementContract->project;
$procurementContract->material;
return $procurementContract->toArray();
}
}

View File

@ -166,8 +166,9 @@ class SubcontractingContractLogic extends BaseLogic
if (!empty($subcontractingContract->project->custom_id)) {
$subcontractingContract->custom = Custom::findOrEmpty($subcontractingContract->project->custom_id);
}
$subcontractingContract->project = $subcontractingContract->project;
$subcontractingContract->work = $subcontractingContract->work;
$subcontractingContract->pay_plan = json_decode($subcontractingContract->pay_plan, true);
$subcontractingContract->project;
$subcontractingContract->work;
return $subcontractingContract->toArray();
}
}

View File

@ -122,7 +122,7 @@ class SubcontractingContractNegotiationLogic extends BaseLogic
public static function detail($params): array
{
$subcontractingContractNegotiation = SubcontractingContractNegotiation::findOrEmpty($params['id']);
$subcontractingContractNegotiation->contract = $subcontractingContractNegotiation->contract;
$subcontractingContractNegotiation->contract;
return $subcontractingContractNegotiation->toArray();
}
}

View File

@ -120,7 +120,7 @@ class CustomFollowLogic extends BaseLogic
public static function detail($params): array
{
$customFollow = CustomFollow::findOrEmpty($params['id']);
$customFollow->custom = $customFollow->custom;
$customFollow->custom;
return $customFollow->toArray();
}
}

View File

@ -128,8 +128,8 @@ class CustomServiceLogic extends BaseLogic
public static function detail($params): array
{
$customService = CustomService::findOrEmpty($params['id']);
$customService->project = $customService->project;
$customService->custom = $customService->custom;
$customService->project;
$customService->custom;
return $customService->toArray();
}
}

View File

@ -156,8 +156,8 @@ class FinanceInvoiceApplyLogic extends BaseLogic
public static function detail($params): array
{
$financeInvoiceApply = FinanceInvoiceApply::findOrEmpty($params['id']);
$financeInvoiceApply->contract = $financeInvoiceApply->contract;
$financeInvoiceApply->custom = $financeInvoiceApply->custom;
$financeInvoiceApply->contract;
$financeInvoiceApply->custom;
return $financeInvoiceApply->toArray();
}
}

View File

@ -118,8 +118,8 @@ class FinanceReturnedMoneyLogic extends BaseLogic
public static function detail($params): array
{
$financeReturnedMoney = FinanceReturnedMoney::findOrEmpty($params['id']);
$financeReturnedMoney->contract = $financeReturnedMoney->contract;
$financeReturnedMoney->custom = $financeReturnedMoney->custom;
$financeReturnedMoney->contract;
$financeReturnedMoney->custom;
return $financeReturnedMoney->toArray();
}
}

View File

@ -134,9 +134,10 @@ class FinanceReturnedRecordLogic extends BaseLogic
public static function detail($params): array
{
$financeReturnedRecord = FinanceReturnedRecord::findOrEmpty($params['id']);
$financeReturnedRecord->contract = $financeReturnedRecord->contract;
$financeReturnedRecord->custom = $financeReturnedRecord->custom;
$financeReturnedRecord->contract;
$financeReturnedRecord->custom;
$financeReturnedRecord->plan = $financeReturnedRecord->returnedPlan;
unset($financeReturnedRecord->returnedPlan);
return $financeReturnedRecord->toArray();
}
}

View File

@ -149,8 +149,8 @@ class QuotationLogic extends BaseLogic
public static function detail($params): array
{
$quotation = Quotation::findOrEmpty($params['id']);
$quotation->product = $quotation->product;
$quotation->custom = $quotation->custom;
$quotation->product;
$quotation->custom;
return $quotation->toArray();
}
}