ActivityOrderRebateSelfController.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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\ActivityOrderRebateSelfForm;
  12. class ActivityOrderRebateSelfController extends BaseController
  13. {
  14. public function actionConf(){
  15. $form = new ActivityOrderRebateSelfForm();
  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 ActivityOrderRebateSelfForm();
  23. $form->store_id = get_store_id();
  24. $res = $form->confSave($conf);
  25. return $this->asJson($res);
  26. }
  27. public function actionList()
  28. {
  29. $form = new ActivityOrderRebateSelfForm();
  30. $form->attributes = all_params();
  31. $res = $form->search();
  32. return $this->asJson($res);
  33. }
  34. public function actionListSelect()
  35. {
  36. $form = new ActivityOrderRebateSelfForm();
  37. $form->attributes = all_params();
  38. $res = $form->listSelect();
  39. return $this->asJson($res);
  40. }
  41. public function actionSave()
  42. {
  43. $form = new ActivityOrderRebateSelfForm();
  44. $form->attributes = all_params();
  45. $res = $form->save();
  46. return $this->asJson($res);
  47. }
  48. public function actionGetInfo()
  49. {
  50. $form = new ActivityOrderRebateSelfForm();
  51. $form->attributes = all_params();
  52. $res = $form->getInfo();
  53. return $this->asJson($res);
  54. }
  55. public function actionStatus()
  56. {
  57. $form = new ActivityOrderRebateSelfForm();
  58. $form->attributes = all_params();
  59. $res = $form->status();
  60. return $this->asJson($res);
  61. }
  62. public function actionDel()
  63. {
  64. $form = new ActivityOrderRebateSelfForm();
  65. $form->attributes = all_params();
  66. $res = $form->del();
  67. return $this->asJson($res);
  68. }
  69. public function actionLevelList()
  70. {
  71. $form = new ActivityOrderRebateSelfForm();
  72. $form->attributes = all_params();
  73. $res = $form->levelSearch();
  74. return $this->asJson($res);
  75. }
  76. public function actionLevelListSelect()
  77. {
  78. $form = new ActivityOrderRebateSelfForm();
  79. $form->attributes = all_params();
  80. $res = $form->levelListSelect();
  81. return $this->asJson($res);
  82. }
  83. public function actionLevelSave()
  84. {
  85. $form = new ActivityOrderRebateSelfForm();
  86. $form->attributes = all_params();
  87. $res = $form->levelSave();
  88. return $this->asJson($res);
  89. }
  90. public function actionLevelStatus()
  91. {
  92. $form = new ActivityOrderRebateSelfForm();
  93. $form->attributes = all_params();
  94. $res = $form->levelStatus();
  95. return $this->asJson($res);
  96. }
  97. public function actionLevelDel()
  98. {
  99. $form = new ActivityOrderRebateSelfForm();
  100. $form->attributes = all_params();
  101. $res = $form->levelDel();
  102. return $this->asJson($res);
  103. }
  104. public function actionUserList()
  105. {
  106. $form = new ActivityOrderRebateSelfForm();
  107. $form->attributes = all_params();
  108. $res = $form->userSearch();
  109. return $this->asJson($res);
  110. }
  111. public function actionOrderList()
  112. {
  113. $form = new ActivityOrderRebateSelfForm();
  114. $form->attributes = all_params();
  115. $res = $form->orderList(input_params('pageNo', input_params('page', 1)) == 1);
  116. return $this->asJson($res);
  117. }
  118. public function actionOrderDelete(){
  119. $form = new ActivityOrderRebateSelfForm();
  120. $form->ids = post_params('ids');
  121. $res = $form->orderDelete();
  122. return $this->asJson($res);
  123. }
  124. public function actionLogList()
  125. {
  126. $form = new ActivityOrderRebateSelfForm();
  127. $form->attributes = all_params();
  128. $res = $form->logList(input_params('pageNo', input_params('page', 1)) == 1);
  129. return $this->asJson($res);
  130. }
  131. }