asJson($res); } public function actionSelectList() { $form = new SupplierForm(); $form->store_id = get_store_id(); $form->attributes = all_params(); $res = $form->selectList(); return $this->asJson($res); } /** * @return \yii\web\Response * 获取列表 */ public function actionList() { $form = new SupplierForm(); $form->store_id = get_store_id(); $form->attributes = all_params(); $res = $form->search(); return $this->asJson($res); } /** * @return \yii\web\Response * 保存信息 */ public function actionSave() { $form = new SupplierForm(); $form->store_id = get_store_id(); $form->attributes = all_params(); $res = $form->save(); return $this->asJson($res); } public function actionSaveKey() { $form = new SupplierForm(); $form->store_id = get_store_id(); $form->attributes = all_params(); $res = $form->saveKey(); return $this->asJson($res); } /** * @return \yii\web\Response * 获取信息 */ public function actionGetInfo() { $form = new SupplierForm(); $form->store_id = get_store_id(); $form->attributes = all_params(); $res = $form->getInfo(); return $this->asJson($res); } /** * @return \yii\web\Response * 修改状态 */ public function actionDel() { $form = new SupplierForm(); $form->store_id = get_store_id(); $form->attributes = all_params(); $res = $form->del(); return $this->asJson($res); } }