...
|
...
|
@@ -114,6 +114,9 @@ class OrderController extends AdminBaseController |
|
|
if(isset($param['status']) && $param['status'] >= 0) {
|
|
|
$where['status'] = $param['status'];
|
|
|
}
|
|
|
if(!empty($param['pay_type'])) {
|
|
|
$where['pay_type'] = $param['pay_type'];
|
|
|
}
|
|
|
if(isset($param['is_excel']) && $param['is_excel'] >= 0) {
|
|
|
$where['is_excel'] = $param['is_excel'];
|
|
|
}
|
...
|
...
|
@@ -323,6 +326,9 @@ class OrderController extends AdminBaseController |
|
|
if(isset($param['status']) && $param['status'] >= 0) {
|
|
|
$where['status'] = $param['status'];
|
|
|
}
|
|
|
if(!empty($param['pay_type'])) {
|
|
|
$where['pay_type'] = $param['pay_type'];
|
|
|
}
|
|
|
if(isset($param['is_excel']) && $param['is_excel'] >= 0) {
|
|
|
$where['is_excel'] = $param['is_excel'];
|
|
|
}
|
...
|
...
|
@@ -400,6 +406,7 @@ class OrderController extends AdminBaseController |
|
|
$objPHPExcel->getActiveSheet()->getColumnDimension('AO')->setWidth(20);
|
|
|
$objPHPExcel->getActiveSheet()->getColumnDimension('AP')->setWidth(20);
|
|
|
$objPHPExcel->getActiveSheet()->getColumnDimension('AQ')->setWidth(20);
|
|
|
$objPHPExcel->getActiveSheet()->getColumnDimension('AR')->setWidth(20);
|
|
|
// 设置水平居中
|
|
|
$objPHPExcel->getDefaultStyle()->getAlignment()->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
|
|
|
// 设置垂直居中
|
...
|
...
|
@@ -412,43 +419,44 @@ class OrderController extends AdminBaseController |
|
|
->setCellValue('D1', '销售用户名')
|
|
|
->setCellValue('E1', '订单确认码')
|
|
|
->setCellValue('F1', '订单状态')
|
|
|
->setCellValue('G1', '收集状态')
|
|
|
->setCellValue('H1', '发布时间')
|
|
|
->setCellValue('I1', '失效时间')
|
|
|
->setCellValue('J1', '订购方式')
|
|
|
->setCellValue('K1', '来源渠道')
|
|
|
->setCellValue('L1', '销售人员')
|
|
|
->setCellValue('M1', '小朋友姓名')
|
|
|
->setCellValue('N1', '小朋友性别')
|
|
|
->setCellValue('O1', '小朋友生日')
|
|
|
->setCellValue('P1', '家长姓名')
|
|
|
->setCellValue('Q1', '家长身份')
|
|
|
->setCellValue('R1', '其他身份')
|
|
|
->setCellValue('S1', '家长电话')
|
|
|
->setCellValue('T1', '手机备用电话')
|
|
|
->setCellValue('U1', '座机备用电话')
|
|
|
->setCellValue('V1', '地址')
|
|
|
->setCellValue('W1', '收货地址')
|
|
|
->setCellValue('X1', '详细收货地址')
|
|
|
->setCellValue('Y1', '收货人姓名')
|
|
|
->setCellValue('Z1', '收货人电话')
|
|
|
->setCellValue('AA1', '收货区域')
|
|
|
->setCellValue('AB1', '商品选择')
|
|
|
->setCellValue('AC1', '具体版本')
|
|
|
->setCellValue('AD1', '其他版本')
|
|
|
->setCellValue('AE1', '订购长度')
|
|
|
->setCellValue('AF1', '其他订购长度')
|
|
|
->setCellValue('AG1', '订购起始月')
|
|
|
->setCellValue('AH1', '订购价格')
|
|
|
->setCellValue('AI1', '礼物选择')
|
|
|
->setCellValue('AJ1', '加赠礼物')
|
|
|
->setCellValue('AK1', '加赠礼物名称')
|
|
|
->setCellValue('AL1', '是否适龄')
|
|
|
->setCellValue('AM1', '不适龄备注')
|
|
|
->setCellValue('AN1', '图片')
|
|
|
->setCellValue('AO1', '月龄版升级年份')
|
|
|
->setCellValue('AP1', '备注')
|
|
|
->setCellValue('AQ1', '客户编号');
|
|
|
->setCellValue('G1', '支付方式')
|
|
|
->setCellValue('H1', '收集状态')
|
|
|
->setCellValue('I1', '发布时间')
|
|
|
->setCellValue('J1', '失效时间')
|
|
|
->setCellValue('K1', '订购方式')
|
|
|
->setCellValue('L1', '来源渠道')
|
|
|
->setCellValue('M1', '销售人员')
|
|
|
->setCellValue('N1', '小朋友姓名')
|
|
|
->setCellValue('O1', '小朋友性别')
|
|
|
->setCellValue('P1', '小朋友生日')
|
|
|
->setCellValue('Q1', '家长姓名')
|
|
|
->setCellValue('R1', '家长身份')
|
|
|
->setCellValue('S1', '其他身份')
|
|
|
->setCellValue('R1', '家长电话')
|
|
|
->setCellValue('U1', '手机备用电话')
|
|
|
->setCellValue('V1', '座机备用电话')
|
|
|
->setCellValue('W1', '地址')
|
|
|
->setCellValue('X1', '收货地址')
|
|
|
->setCellValue('Y1', '详细收货地址')
|
|
|
->setCellValue('Z1', '收货人姓名')
|
|
|
->setCellValue('AA1', '收货人电话')
|
|
|
->setCellValue('AB1', '收货区域')
|
|
|
->setCellValue('AC1', '商品选择')
|
|
|
->setCellValue('AD1', '具体版本')
|
|
|
->setCellValue('AE1', '其他版本')
|
|
|
->setCellValue('AF1', '订购长度')
|
|
|
->setCellValue('AG1', '其他订购长度')
|
|
|
->setCellValue('AH1', '订购起始月')
|
|
|
->setCellValue('AI1', '订购价格')
|
|
|
->setCellValue('AJ1', '礼物选择')
|
|
|
->setCellValue('AK1', '加赠礼物')
|
|
|
->setCellValue('AL1', '加赠礼物名称')
|
|
|
->setCellValue('AM1', '是否适龄')
|
|
|
->setCellValue('AN1', '不适龄备注')
|
|
|
->setCellValue('AO1', '图片')
|
|
|
->setCellValue('AP1', '月龄版升级年份')
|
|
|
->setCellValue('AQ1', '备注')
|
|
|
->setCellValue('AR1', '客户编号');
|
|
|
|
|
|
$i = 2;
|
|
|
|
...
|
...
|
@@ -462,6 +470,13 @@ class OrderController extends AdminBaseController |
|
|
if($v['is_stop'] == 1) {
|
|
|
$is_stop = '已停止';
|
|
|
}
|
|
|
$pay_type = '';
|
|
|
if($v['pay_type'] == 1) {
|
|
|
$pay_type = '微信';
|
|
|
}
|
|
|
if($v['pay_type'] == 2) {
|
|
|
$pay_type = '支付宝';
|
|
|
}
|
|
|
$objPHPExcel->setActiveSheetIndex(0)
|
|
|
->setCellValue('A' . $i, $v['id'])
|
|
|
->setCellValueExplicit('B' . $i, $v['order_sn'],\PHPExcel_Cell_DataType::TYPE_STRING)
|
...
|
...
|
@@ -470,9 +485,10 @@ class OrderController extends AdminBaseController |
|
|
->setCellValue('D' . $i, $v['user_login'])
|
|
|
->setCellValue('E' . $i, $v['number'])
|
|
|
->setCellValue('F' . $i, $status)
|
|
|
->setCellValue('G' . $i, $is_stop)
|
|
|
->setCellValue('H' . $i, date('Y-m-d H:i',$v['create_time']))
|
|
|
->setCellValue('I' . $i, date('Y-m-d H:i',$v['over_time']));
|
|
|
->setCellValue('G' . $i, $pay_type)
|
|
|
->setCellValue('H' . $i, $is_stop)
|
|
|
->setCellValue('I' . $i, date('Y-m-d H:i',$v['create_time']))
|
|
|
->setCellValue('J' . $i, date('Y-m-d H:i',$v['over_time']));
|
|
|
$v['options'] = json_decode($v['options'],true);
|
|
|
foreach ($v['options'] as $ks=>$vs) {
|
|
|
$where = [
|
...
|
...
|
|