AgentBindController.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\modules\admin\controllers\agent;
  8. use app\modules\admin\controllers\BaseController;
  9. use app\modules\admin\models\agent\AgentForm;
  10. class AgentBindController extends BaseController
  11. {
  12. /**
  13. * 获取前置仓绑定的供货商商品
  14. */
  15. public function actionFrontAgentGoodsList() {
  16. $form = new AgentForm();
  17. $form->attributes = get_params();
  18. $res = $form->frontAgentGoodsList();
  19. return $this->asJson($res);
  20. }
  21. /**
  22. * 绑定商品
  23. */
  24. public function actionBindFrontAgentGoods() {
  25. $form = new AgentForm();
  26. $form->attributes = post_params();
  27. $res = $form->bindFrontAgentGoods();
  28. return $this->asJson($res);
  29. }
  30. /**
  31. * 审核绑定商品
  32. */
  33. public function actionApplyBindFrontAgentGoods() {
  34. $form = new AgentForm();
  35. $form->attributes = post_params();
  36. $res = $form->applyBindFrontAgentGoods();
  37. return $this->asJson($res);
  38. }
  39. /**
  40. * 删除绑定商品
  41. */
  42. public function actionDelBindFrontAgentGoods() {
  43. $form = new AgentForm();
  44. $form->attributes = get_params();
  45. $res = $form->delBindFrontAgentGoods();
  46. return $this->asJson($res);
  47. }
  48. /**
  49. * 获取绑定的产品
  50. */
  51. public function actionGetBindGoodsList() {
  52. $form = new AgentForm();
  53. $form->attributes = get_params();
  54. $res = $form->getBindGoodsList();
  55. return $this->asJson($res);
  56. }
  57. /**
  58. * 获取安装记录
  59. */
  60. public function actionGetInstallLog() {
  61. $form = new AgentForm();
  62. $form->attributes = get_params();
  63. $res = $form->getInstallLog();
  64. return $this->asJson($res);
  65. }
  66. /**
  67. * 点击送达
  68. */
  69. public function actionSetInstallStatus() {
  70. $form = new AgentForm();
  71. $form->attributes = get_params();
  72. $order_type = get_params('order_type', 0);
  73. $res = $form->setInstallStatus($order_type);
  74. return $this->asJson($res);
  75. }
  76. }