WorkerController.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\modules\admin\controllers\worker;
  8. use app\modules\admin\controllers\BaseController;
  9. use app\modules\admin\models\worker\WorkerForm;
  10. class WorkerController extends BaseController
  11. {
  12. // 服务人员列表
  13. public function actionWorkerList() {
  14. $form = new WorkerForm();
  15. $form->attributes = get_params();
  16. $form->store_id = get_store_id();
  17. return $this->asJson($form->workerList());
  18. }
  19. // 服务人员设置
  20. public function actionWorkerSave() {
  21. $form = new WorkerForm();
  22. $form->attributes = post_params();
  23. $form->store_id = get_store_id();
  24. return $this->asJson($form->workerSave());
  25. }
  26. // 服务人员状态修改
  27. public function actionWorkerStatus() {
  28. $form = new WorkerForm();
  29. $form->attributes = post_params();
  30. $form->store_id = get_store_id();
  31. return $this->asJson($form->workerStatus());
  32. }
  33. //分配订单-服务人员列表
  34. public function actionCanBindWorkerList()
  35. {
  36. $form = new WorkerForm();
  37. $form->store_id = get_store_id();
  38. $form->attributes = post_params();
  39. return $this->asJson($form->canBindWorkerList());
  40. }
  41. //分配订单
  42. public function actionBindWorker()
  43. {
  44. $form = new WorkerForm();
  45. $form->store_id = get_store_id();
  46. $form->attributes = post_params();
  47. return $this->asJson($form->bindWorker());
  48. }
  49. //确认收款
  50. public function actionOrderIsPay()
  51. {
  52. $form = new WorkerForm();
  53. $form->store_id = get_store_id();
  54. $form->attributes = post_params();
  55. return $this->asJson($form->orderIsPay());
  56. }
  57. //确认收货
  58. public function actionOrderConfirm()
  59. {
  60. $form = new WorkerForm();
  61. $form->store_id = get_store_id();
  62. $form->attributes = post_params();
  63. return $this->asJson($form->orderConfirm());
  64. }
  65. //评价
  66. public function actionCommentList()
  67. {
  68. $form = new WorkerForm();
  69. $form->store_id = get_store_id();
  70. $form->attributes = post_params();
  71. return $this->asJson($form->commentList());
  72. }
  73. //配置
  74. public function actionSetting()
  75. {
  76. $form = new WorkerForm();
  77. $form->store_id = get_store_id();
  78. $form->attributes = post_params();
  79. return $this->asJson($form->setting());
  80. }
  81. //佣金列表
  82. public function actionStoreWorkerProfitList()
  83. {
  84. $form = new WorkerForm();
  85. $form->store_id = get_store_id();
  86. $form->attributes = post_params();
  87. return $this->asJson($form->storeWorkerProfitList());
  88. }
  89. }