asJson($res); } public function actionSave() { $form = new PurchaseForm(); $form->store_id = get_store_id(); $form->attributes = all_params(); $res = $form->save(); return $this->asJson($res); } /** * @return \yii\web\Response * 获取列表 */ public function actionList() { $form = new PurchaseForm(); $form->store_id = get_store_id(); $form->attributes = all_params(); $res = $form->search(); return $this->asJson($res); } public function actionInfo() { $form = new PurchaseForm(); $form->store_id = get_store_id(); $form->attributes = all_params(); $res = $form->info(); return $this->asJson($res); } public function actionPurchase() { $form = new PurchaseForm(); $form->store_id = get_store_id(); $form->attributes = all_params(); $res = $form->searchPurchase(); return $this->asJson($res); } public function actionStatusPrint() { $form = new PurchaseForm(); $form->store_id = get_store_id(); $form->attributes = all_params(); $res = $form->statusPrint(); return $this->asJson($res); } }