update
This commit is contained in:
parent
02b24964bf
commit
77a292afcd
@ -21,6 +21,8 @@ use app\common\model\cost_project\CostProject;
|
|||||||
use app\common\lists\ListsSearchInterface;
|
use app\common\lists\ListsSearchInterface;
|
||||||
use app\common\model\auth\Admin;
|
use app\common\model\auth\Admin;
|
||||||
use app\common\model\cost_project\CostProjectPerson;
|
use app\common\model\cost_project\CostProjectPerson;
|
||||||
|
use app\common\model\zjzx_finance\ZjzxInvoice;
|
||||||
|
use app\common\model\zjzx_finance\ZjzxRefund;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 造价项目台账列表
|
* 造价项目台账列表
|
||||||
@ -70,6 +72,9 @@ class CostProjectLists extends BaseAdminDataLists implements ListsSearchInterfac
|
|||||||
->select()
|
->select()
|
||||||
->each(function($item){
|
->each(function($item){
|
||||||
$item['person_text'] = $item->person_text;
|
$item['person_text'] = $item->person_text;
|
||||||
|
$item['contract']['contract_type_text'] = $item['contract']->contract_type_text;
|
||||||
|
$item['total_invoice_amount'] = ZjzxInvoice::where('project_id',$item['id'])->sum('apply_amount');
|
||||||
|
$item['total_refund_amount'] = ZjzxRefund::where('project_id',$item['id'])->sum('amount');
|
||||||
})
|
})
|
||||||
->toArray();
|
->toArray();
|
||||||
}
|
}
|
||||||
@ -80,6 +85,9 @@ class CostProjectLists extends BaseAdminDataLists implements ListsSearchInterfac
|
|||||||
->select()
|
->select()
|
||||||
->each(function($item){
|
->each(function($item){
|
||||||
$item['person_text'] = $item->person_text;
|
$item['person_text'] = $item->person_text;
|
||||||
|
$item['contract']['contract_type_text'] = $item['contract']->contract_type_text;
|
||||||
|
$item['total_invoice_amount'] = ZjzxInvoice::where('project_id',$item['id'])->sum('apply_amount');
|
||||||
|
$item['total_refund_amount'] = ZjzxRefund::where('project_id',$item['id'])->sum('amount');
|
||||||
})
|
})
|
||||||
->toArray();
|
->toArray();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user