dever 3 سال پیش
والد
کامیت
b501b01ca7
1فایلهای تغییر یافته به همراه27 افزوده شده و 0 حذف شده
  1. 27 0
      app/mshop/src/My.php

+ 27 - 0
app/mshop/src/My.php

@@ -451,6 +451,33 @@ class My extends Core
         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()
     {