Commit 90bb6a44 authored by zhuwei's avatar zhuwei

业绩明细

parent ca0fa546
......@@ -96,7 +96,7 @@ class PerformanceInfo extends Basic
$field .= 'Obargain.scale_fee,';
$field .= 'Obargain.order_id,';
$field .= 'Obargain.role,';
$field .= 'Obargain.price,';
$field .= 'Obargain.price,';//pricec成交价格
$field .= 'Agent.name,';
$field .= 'Agent.phone,';
$field .= 'Store.store_name,';
......@@ -176,9 +176,11 @@ class PerformanceInfo extends Basic
$field = 'Obargain.create_time,';
$field .= 'Obargain.id,';
$field .= 'Obargain.father_id,';
$field .= 'Obargain.trade_type,';
$field .= 'Houses.internal_address,';
$field .= 'Oorder.house_id,';
$field .= 'Obargain.price,';//pricec成交价格
$field .= 'Agent.name,';
$field .= 'Agent.phone,';
$field .= 'Store.store_name,';
......@@ -195,6 +197,10 @@ class PerformanceInfo extends Basic
$export = new ExportExcelUntil();
$e_data_new = [];
foreach ($return as $key => $v) {
$e_data_old['bargain_id'] = $v["father_id"] == 0 ? $v["id"] : $v["father_id"];
$e_data_old['commission_id'] = $v["id"] ;
$e_data_old['create_time'] = $v['create_time'];//提交时间
if($v['trade_type'] == 10){
......@@ -209,9 +215,8 @@ class PerformanceInfo extends Basic
//商铺地址截取字符串前3位,后面做隐藏 --暂时不用,后期可直接解除注释
//$landmark = $v["landmark"] ? mb_substr($v["landmark"],0,3,'utf-8').'****' : '';
$e_data_old['landmark'] = $v["internal_address"];//商铺地址
// $landmark = $v["internal_address"] ? mb_substr($v["internal_address"],0,3,'utf-8').'****' : '';
$e_data_old['landmark'] = $v["internal_address"] ? mb_substr($v["internal_address"],0,3,'utf-8').'****' : '';//商铺地址
$e_data_old['house_id'] = $v['house_id'];//商铺编号
//$e_data_old['name_phone'] = $v['name'].'-'.$v['phone'];//分佣提成方
$e_data_old['name_phone'] = $v['name'];//分佣提成方
......@@ -220,10 +225,11 @@ class PerformanceInfo extends Basic
$e_data_old['scale'] = $v['scale'];//分佣比例
$e_data_old['scale_fee'] = $v['scale_fee'];//应收佣金
$e_data_old['practical_fee'] = $v['practical_fee'];//实收佣金
$e_data_old['price'] = $v['price'];//成交价
$e_data_new[]=$e_data_old;
}
$title = [ '提交时间', '成交类型', '商铺地址', '商铺编号', '分佣提成方', '所属部门门店', '分佣比例', '应收佣金', '实收佣金' ];
$title = [ '成交报告ID', '分佣ID','提交时间', '成交类型', '商铺地址', '商铺编号', '分佣提成方', '所属部门门店', '分佣比例', '应分佣金', '实收佣金' ,'成交价'];
$export->exportTable('业绩明细', $e_data_new, count($e_data_new[0]), '业绩明细表', $title);
return '';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment