| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers\worker;
- use app\modules\admin\controllers\BaseController;
- use app\modules\admin\models\worker\WorkerForm;
- class WorkerController extends BaseController
- {
- // 服务人员列表
- public function actionWorkerList() {
- $form = new WorkerForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerList());
- }
- // 服务人员设置
- public function actionWorkerSave() {
- $form = new WorkerForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerSave());
- }
- // 服务人员状态修改
- public function actionWorkerStatus() {
- $form = new WorkerForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerStatus());
- }
-
- //分配订单-服务人员列表
- public function actionCanBindWorkerList()
- {
- $form = new WorkerForm();
- $form->store_id = get_store_id();
- $form->attributes = post_params();
- return $this->asJson($form->canBindWorkerList());
- }
- //分配订单
- public function actionBindWorker()
- {
- $form = new WorkerForm();
- $form->store_id = get_store_id();
- $form->attributes = post_params();
- return $this->asJson($form->bindWorker());
- }
- //确认收款
- public function actionOrderIsPay()
- {
- $form = new WorkerForm();
- $form->store_id = get_store_id();
- $form->attributes = post_params();
- return $this->asJson($form->orderIsPay());
- }
- //确认收货
- public function actionOrderConfirm()
- {
- $form = new WorkerForm();
- $form->store_id = get_store_id();
- $form->attributes = post_params();
- return $this->asJson($form->orderConfirm());
- }
- //评价
- public function actionCommentList()
- {
- $form = new WorkerForm();
- $form->store_id = get_store_id();
- $form->attributes = post_params();
- return $this->asJson($form->commentList());
- }
- //配置
- public function actionSetting()
- {
- $form = new WorkerForm();
- $form->store_id = get_store_id();
- $form->attributes = post_params();
- return $this->asJson($form->setting());
- }
- //佣金列表
- public function actionStoreWorkerProfitList()
- {
- $form = new WorkerForm();
- $form->store_id = get_store_id();
- $form->attributes = post_params();
- return $this->asJson($form->storeWorkerProfitList());
- }
- }
|