InvoiceController.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\modules\admin\controllers;
  8. use app\models\Goods;
  9. use app\models\Option;
  10. use app\constants\OptionSetting;
  11. use app\modules\admin\models\InvoiceForm;
  12. class InvoiceController extends BaseController
  13. {
  14. public function actionConf(){
  15. $form = new InvoiceForm();
  16. $form->store_id = get_store_id();
  17. $res = $form->conf();
  18. return $this->asJson($res);
  19. }
  20. public function actionConfSave(){
  21. $conf = input_params('conf');
  22. $form = new InvoiceForm();
  23. $form->store_id = get_store_id();
  24. $res = $form->confSave($conf);
  25. return $this->asJson($res);
  26. }
  27. /**
  28. * 发票列表
  29. */
  30. public function actionOrderInvoiceList()
  31. {
  32. $form = new InvoiceForm();
  33. $form->attributes = all_params();
  34. $res = $form->orderInvoiceList();
  35. return $this->asJson($res);
  36. }
  37. public function actionOrderInvoiceStatus()
  38. {
  39. $form = new InvoiceForm();
  40. $form->attributes = all_params();
  41. $res = $form->orderInvoiceStatus();
  42. return $this->asJson($res);
  43. }
  44. }