1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\admin\controller\order;
-
- use app\common\basics\AdminBase;
- use app\common\model\order\Order;
- use app\common\server\JsonServer;
- use app\admin\logic\order\InvoiceLogic;
-
-
-
- class Invoice extends AdminBase
- {
-
-
-
- public function lists()
- {
- if ($this->request->isAjax()) {
- $get = $this->request->get();
- return JsonServer::success('', InvoiceLogic::getInvoiceLists($get));
- }
- return view('', [
- 'order_status' => order::getOrderStatus(true)
- ]);
- }
-
-
-
-
- public function detail()
- {
- $id = $this->request->get('id/d');
- return view('detail', [
- 'detail' => InvoiceLogic::detail($id)
- ]);
- }
-
-
-
-
- public function export()
- {
- $params = $this->request->get();
- $result = InvoiceLogic::getInvoiceLists($params, true);
- if(false === $result) {
- return JsonServer::error(InvoiceLogic::getError() ?: '导出失败');
- }
- return JsonServer::success('', $result);
- }
-
- }
|