重构代码并优化成本项目逻辑中的项目负责人及联系方式获取功能
This commit is contained in:
parent
b56d21b1f6
commit
b5beb557e7
@ -80,6 +80,9 @@ use app\common\model\financial\FinancialInvoice;
|
|||||||
$custom = MarketingCustom::where('id', $data['part_a'])->findOrEmpty();
|
$custom = MarketingCustom::where('id', $data['part_a'])->findOrEmpty();
|
||||||
$dept = Dept::where('id', 'in', [$data['signed_dept'], $data['supervise_dept']])->column('name', 'id');
|
$dept = Dept::where('id', 'in', [$data['signed_dept'], $data['supervise_dept']])->column('name', 'id');
|
||||||
$admin = Admin::where('id', 'in', [$data['signed_head'], $data['project_manager'], $data['seal_user']])->column('name', 'id');
|
$admin = Admin::where('id', 'in', [$data['signed_head'], $data['project_manager'], $data['seal_user']])->column('name', 'id');
|
||||||
|
if($custom){
|
||||||
|
$custom['invoice_contact']=Admin::where('id',$custom['invoice_contact'])->value('name');
|
||||||
|
}
|
||||||
$data['part_a_name'] = $custom['name'];
|
$data['part_a_name'] = $custom['name'];
|
||||||
$data['marketing_custom'] = $custom;
|
$data['marketing_custom'] = $custom;
|
||||||
$data['signed_dept_name'] = $dept[$data['signed_dept']] ?? '';
|
$data['signed_dept_name'] = $dept[$data['signed_dept']] ?? '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user