| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <?php
- namespace app\modules\alliance\controllers;
- use app\modules\alliance\behaviors\StoreClerk;
- use app\modules\alliance\models\StoreClerkForm;
- use yii\helpers\ArrayHelper;
- class StoreClerkController extends BaseController
- {
- public $store_id = 0;
- public $store_clerk_id = 0;
- /**
- * @return array
- */
- public function behaviors()
- {
- return ArrayHelper::merge(parent::behaviors(), [
- [
- 'class' => StoreClerk::class
- ]
- ]);
- }
- //门店中心
- public function actionStaffCenter() {
- $form = new StoreClerkForm();
- $form->store_id = $this->store_id;
- $form->store_clerk_id = $this->store_clerk_id;
- return $this->asJson($form->staffCenter());
- }
- //订单列表
- public function actionOfflineOrder() {
- $form = new StoreClerkForm();
- $form->attributes = get_params();
- $form->store_id = $this->store_id;
- $form->store_clerk_id = $this->store_clerk_id;
- return $this->asJson($form->offlineOrder());
- }
- //订单详情
- public function actionOrderDetail() {
- $form = new StoreClerkForm();
- $form->attributes = all_params();
- $form->store_id = $this->store_id;
- $form->store_clerk_id = $this->store_clerk_id;
- return $this->asJson($form->orderDetail());
- }
- //订单发货
- public function actionSendOrder() {
- $form = new StoreClerkForm();
- $form->attributes = all_params();
- $form->store_id = $this->store_id;
- $form->store_clerk_id = $this->store_clerk_id;
- return $this->asJson($form->sendOrder());
- }
- //订单核销
- public function actionClerkOrder() {
- $form = new StoreClerkForm();
- $form->attributes = all_params();
- $form->store_id = $this->store_id;
- $form->store_clerk_id = $this->store_clerk_id;
- return $this->asJson($form->clerkOrder());
- }
- //订单核销详情
- public function actionClerk() {
- $form = new StoreClerkForm();
- $form->attributes = get_params();
- $form->store_id = $this->store_id;
- $form->store_clerk_id = $this->store_clerk_id;
- return $this->asJson($form->clerkInfo());
- }
- //到货通知
- public function actionNotice() {
- $form = new StoreClerkForm();
- $form->attributes = all_params();
- $form->store_id = $this->store_id;
- $form->store_clerk_id = $this->store_clerk_id;
- $form->order_id = post_params('order_ids');
- return $this->asJson($form->notice());
- }
- public function actionSetOrderWords() {
- $form = new StoreClerkForm();
- $form->attributes = all_params();
- $form->store_id = $this->store_id;
- $form->store_clerk_id = $this->store_clerk_id;
- return $this->asJson($form->setOrderWords());
- }
- public function actionOrderCancel() {
- $form = new StoreClerkForm();
- $form->attributes = all_params();
- $form->store_id = $this->store_id;
- $form->store_clerk_id = $this->store_clerk_id;
- return $this->asJson($form->orderCancel());
- }
- public function actionApplyOrderDelete() {
- $form = new StoreClerkForm();
- $form->attributes = all_params();
- $form->store_id = $this->store_id;
- $form->store_clerk_id = $this->store_clerk_id;
- return $this->asJson($form->applyOrderDelete());
- }
- public function actionHandleRefund() {
- $form = new StoreClerkForm();
- $form->attributes = all_params();
- $form->store_id = $this->store_id;
- $form->store_clerk_id = $this->store_clerk_id;
- return $this->asJson($form->handleRefund());
- }
- /**
- * 订单确认收货
- */
- public function actionConfirm()
- {
- $form = new StoreClerkForm();
- $form->attributes = all_params();
- $form->store_id = $this->store_id;
- $form->store_clerk_id = $this->store_clerk_id;
- return $this->asJson($form->confirm());
- }
- }
|