attributes = post_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); $form->order_type = 1; return $form->search(); } /** * 新-订单提交 * @return \yii\web\Response */ public function actionSubmit() { $form = new OrderSubmitForm(); $form->attributes = post_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); $form->user = get_user(); $form->order_type = 1; return $form->save(); } /** * 订单支付数据 * @return \yii\web\Response */ public function actionPayData() { $form = new OrderPayDataForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); $form->user = get_user(); return $form->search(); } /** * 订单列表 * @return \yii\web\Response */ public function actionList() { $form = new AdoptOrderListForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); return $form->search(); } /** * 订单取消 * @return \yii\web\Response */ public function actionRevoke() { $form = new OrderRevokeForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); return $form->save(); } /** * 订单详情 * @return \yii\web\Response */ public function actionDetail() { $form = new AdoptOrderDetailForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); if (!empty(get_params('userId'))) { $form->user_id = get_params('userId'); } else { $form->user_id = get_user_id(); } return $form->search(); } /** * 订单确认收货 */ public function actionConfirm() { $form = new OrderConfirmForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); return $this->asJson($form->save()); } /** * 订单物流信息 */ public function actionExpressDetail() { $form = new ExpressDetailForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); return $this->asJson($form->search()); } /** * 订单采摘方式 */ public function actionPick() { $form = new AdoptOrderPickForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); return $form->save(); } /** * 订单保管方式 */ public function actionPreserve() { $form = new AdoptOrderPreserveForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); return $form->save(); } /** * 订单自采状态 */ public function actionSelfPickState() { $form = new AdoptOrderSelfPickStateForm(); $form->attributes = post_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); return $form->save(); } /** * 采摘完成处理结果 带走,入库 */ public function actionPickTreatmentMethod() { $form = new AdoptOrderPickTreatmentMethodForm(); $form->attributes = post_params(); $form->store_id = get_store_id(); $form->user_id = get_user_id(); return $form->save(); } }