Commit 102ffdff authored by zhuwei's avatar zhuwei

收款记录 Excel

parent a6089334
...@@ -3077,7 +3077,7 @@ class Finance extends Basic ...@@ -3077,7 +3077,7 @@ class Finance extends Basic
public function getCollectionExcel() { public function getCollectionExcel() {
$pageNo = 1; $pageNo = 1;
$pageSize = 40000; $pageSize = 10000;
$data = []; $data = [];
$where['a.is_del'] = 0; $where['a.is_del'] = 0;
...@@ -3293,10 +3293,25 @@ class Finance extends Basic ...@@ -3293,10 +3293,25 @@ class Finance extends Basic
$excel_data_[] = $v['name'];//对应业务员 $excel_data_[] = $v['name'];//对应业务员
$excel_data_[] = $v['store_name'];//所属门店 $excel_data_[] = $v['store_name'];//所属门店
$excel_data_[] = $v['type'];//类型 $excel_data_[] = $v['type'];//类型
$excel_data_[] = $v['store_name'];//收款金额 $excel_data_[] = $v['money'];//收款金额
$excel_data_[] = $v['real_money'];//实付金额 $excel_data_[] = $v['real_money'];//实付金额
$excel_data_[] = $v['address'];//来源
$excel_data_[] = $v['address'];//状态 if ($v['source'] == 2) { //调整收款(调整ID:[%= it[item]['source_id'] %])
$excel_data_[] = '调整收款(调整ID:'.$v['source_id'];//来源
} else { //正常收款
$excel_data_[] = '正常收款';//来源
}
if ($v['is_refund'] != 1 && !$v['is_adjustment']) {
$excel_data_[] = '正常';
} else if ($v[ 'is_refund' ] == 1 && $v[ 'is_adjustment' ]) {
$excel_data_[] = '被调整+被退款';
} else if ($v[ 'is_refund' ] == 1) {
$excel_data_[] = '被退款';
} else {
$excel_data_[] = '被调整';
}
$excel_data[] = $excel_data_; $excel_data[] = $excel_data_;
} }
......
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