[ 'class' => AgentFrontStaff::class, ] ]; return ArrayHelper::merge($merge, parent::behaviors()); } //获取待分拣列表 public function actionSortingList() { $form = new SortingGoodsForm(); $form->attributes = get_params(); $form->admin_id = $this->agentFrontId; $form->staff_id = $this->agentFrontStaffId; return $this->asJson($form->sortingList()); } //获取待分拣商品详情 public function actionGetSortingGoodsDetail() { $form = new SortingGoodsForm(); $form->attributes = get_params(); $form->admin_id = $this->agentFrontId; return $this->asJson($form->getSortingGoodsDetail()); } //提交当前进度 public function actionSubmitSorting() { $form = new SortingGoodsForm(); $form->attributes = post_params(); $res = $form->submitSorting(); return $this->asJson($res); } //拣货 public function actionSetSortingGoods() { // $ids = input_params('ids'); $form = new DriverForm(); $form->attributes = post_params(); $form->admin_id = $this->agentFrontId; $res = $form->orderToLine(); return $this->asJson($res); } //商品查询 public function actionSearchGoods() { $form = new SortingGoodsForm(); $form->attributes = get_params(); $form->admin_id = $this->agentFrontId; $res = $form->searchGoods(); return $this->asJson($res); } //商品详情 public function actionGoodsDetail() { $form = new SortingGoodsForm(); $form->attributes = get_params(); $form->admin_id = $this->agentFrontId; $form->driver_id = $this->agentDriverId; $res = $form->goodsDetail(); return $this->asJson($res); } //商品分拣记录 public function actionGetGoodsSortingRecord() { $form = new SortingGoodsForm(); $form->attributes = get_params(); $form->admin_id = $this->agentFrontId; $form->driver_id = $this->agentDriverId; $res = $form->getGoodsSortingRecord(); return $this->asJson($res); } }