更新细节
This commit is contained in:
parent
c31ef25f86
commit
cffa0a3ef5
@ -184,11 +184,15 @@ class ExpenseReimbursementLogic extends BaseLogic
|
||||
{
|
||||
$expenseReimbursement = ExpenseReimbursement::findOrEmpty($params['id']);
|
||||
$expenseReimbursement->detail;
|
||||
foreach ($expenseReimbursement->detail as &$item) {
|
||||
$item->subject;
|
||||
}
|
||||
$expenseReimbursement->invoice;
|
||||
$expenseReimbursement->custom;
|
||||
$expenseReimbursement->org;
|
||||
$expenseReimbursement->dept;
|
||||
$expenseReimbursement->annex = json_decode($expenseReimbursement->annex, true);
|
||||
unset($item);
|
||||
return $expenseReimbursement->toArray();
|
||||
}
|
||||
}
|
@ -30,5 +30,8 @@ class ExpenseReimbursementDetail extends BaseModel
|
||||
protected $name = 'expense_reimbursement_detail';
|
||||
protected $deleteTime = 'delete_time';
|
||||
|
||||
|
||||
public function subject()
|
||||
{
|
||||
return $this->belongsTo(\app\common\model\cost\CostSubject::class, 'cost_subject_id');
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user