|
@@ -451,6 +451,33 @@ class My extends Core
|
|
return $this->data;
|
|
return $this->data;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ # 查看账单详情
|
|
|
|
+ public function stat_month_excel()
|
|
|
|
+ {
|
|
|
|
+ $data = $this->stat_month_view();
|
|
|
|
+
|
|
|
|
+ $file = $data['info']['name'] . '对账单';
|
|
|
|
+ $header = $body = array();
|
|
|
|
+
|
|
|
|
+ $header = array
|
|
|
|
+ (
|
|
|
|
+ '单号',
|
|
|
|
+ '时间',
|
|
|
|
+ '金额',
|
|
|
|
+ '状态'
|
|
|
|
+ );
|
|
|
|
+ if ($data['data']) {
|
|
|
|
+ $body = array();
|
|
|
|
+ foreach ($data['data'] as $k => $v) {
|
|
|
|
+ $body[$k][0] = $v['order_num'];
|
|
|
|
+ $body[$k][1] = $v['cdate'];
|
|
|
|
+ $body[$k][2] = $v['cash'];
|
|
|
|
+ $body[$k][3] = $v['status_name'];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ Dever::excelExport($body, $header, $file);
|
|
|
|
+ }
|
|
|
|
+
|
|
# 门店物料
|
|
# 门店物料
|
|
public function info()
|
|
public function info()
|
|
{
|
|
{
|