| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers\agent;
- use app\modules\admin\controllers\BaseController;
- use app\modules\admin\models\agent\AgentForm;
- class AgentBindController extends BaseController
- {
- /**
- * 获取前置仓绑定的供货商商品
- */
- public function actionFrontAgentGoodsList() {
- $form = new AgentForm();
- $form->attributes = get_params();
- $res = $form->frontAgentGoodsList();
- return $this->asJson($res);
- }
- /**
- * 绑定商品
- */
- public function actionBindFrontAgentGoods() {
- $form = new AgentForm();
- $form->attributes = post_params();
- $res = $form->bindFrontAgentGoods();
- return $this->asJson($res);
- }
- /**
- * 审核绑定商品
- */
- public function actionApplyBindFrontAgentGoods() {
- $form = new AgentForm();
- $form->attributes = post_params();
- $res = $form->applyBindFrontAgentGoods();
- return $this->asJson($res);
- }
- /**
- * 删除绑定商品
- */
- public function actionDelBindFrontAgentGoods() {
- $form = new AgentForm();
- $form->attributes = get_params();
- $res = $form->delBindFrontAgentGoods();
- return $this->asJson($res);
- }
- /**
- * 获取绑定的产品
- */
- public function actionGetBindGoodsList() {
- $form = new AgentForm();
- $form->attributes = get_params();
- $res = $form->getBindGoodsList();
- return $this->asJson($res);
- }
- /**
- * 获取安装记录
- */
- public function actionGetInstallLog() {
- $form = new AgentForm();
- $form->attributes = get_params();
- $res = $form->getInstallLog();
- return $this->asJson($res);
- }
- /**
- * 点击送达
- */
- public function actionSetInstallStatus() {
- $form = new AgentForm();
- $form->attributes = get_params();
- $order_type = get_params('order_type', 0);
- $res = $form->setInstallStatus($order_type);
- return $this->asJson($res);
- }
- }
|