| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers\cloud;
- use app\modules\admin\models\SupplierForm;
- use app\modules\admin\models\PlatformForm;
- use app\modules\admin\controllers\BaseController;
- class PlatformController extends BaseController
- {
- //创建会员
- public function actionStoreUserAdd(){
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->storeUserAdd());
- }
- //充值列表
- public function actionStoreGetRechargeList(){
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->storeGetRechargeList());
- }
- //编辑商户
- public function actionStoreMchEdit() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->storeMchEdit());
- }
- //删除商户
- public function actionStoreMchDel() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->storeMchDel());
- }
- //商户列表
- public function actionStoreMchList() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->storeMchList());
- // $this->asJson($form->newStoreMchList());
- }
- //云仓用户是否具备 一键铺货选品的权限
- public function actionSetCanDistribution() {
- $id = input_params('id', 0);
- $can_distribution = input_params('can_distribution', 0);
- $storeCloud = \app\models\StoreCloud::findOne($id);
- $storeCloud->can_distribution = $can_distribution;
- $save = $storeCloud->save();
- $this->asJson([
- 'code' => $save ? 0 : 1,
- 'msg' => $save ? '成功' : '失败',
- ]);
- }
- //商户禁用
- public function actionStoreMchEnable() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- //$this->asJson($form->storeMchList());
- $this->asJson($form->storeMchEnable());
- }
- //关联供应商
- public function actionSetCloudPlatform() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->setCloudPlatform());
- }
- //商户充值
- public function actionStoreSubmitRecharge() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->storeSubmitRecharge());
- }
- //创建商户
- public function actionStoreMchAdd() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->storeMchAdd());
- }
- //余额记录
- public function actionStoreGetBalanceLog() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->storeGetBalanceLog());
- }
- //供货商提现列表
- public function actionStoregetCashList() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->storeGetCashList());
- }
- //供货商提现记录
- public function actionBalanceCashList() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->balanceCashList());
- }
- //供货商提现处理
- public function actionStoreActionSupplierCash() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->storeActionSupplierCash());
- }
- //获取供货商商品列表
- public function actionGoodsList() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->goodsList());
- }
- //获取供货商审核商品列表
- public function actionGoodsAuditList() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->goodsAuditList());
- }
- //操作余额信息
- public function actionBalance() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->setBalance());
- }
- //创建供货商
- public function actionRegist() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->createSupplier());
- }
- //查询供货商列表
- public function actionList() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->listSupplier());
- }
- //删除供货商
- public function actionDel() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->delSupplier());
- }
- //修改供货商状态
- public function actionSetSupplierStatus() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->setSupplierStatus());
- }
- //编辑供货商
- public function actionEdit() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $form->status = 1;
- $this->asJson($form->editSupplier());
- }
- //商品审核
- public function actionGoodsAuditHandle() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->auditHandle());
- }
- //添加商品分类
- public function actionSaveGoodsCat()
- {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->saveGoodsCat());
- }
- //获取商品分类
- public function actionGetGoodsCat()
- {
- $post = get_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->getGoodsCatList());
- }
- //获取商品分类
- public function actionCatChange()
- {
- $post = get_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->catChange());
- }
- //获取商品分类
- public function actionGetGoodsCatList()
- {
- $post = get_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->getGoodsCatName());
- }
- //删除商品分类
- public function actionDelGoodsCat()
- {
- $post = get_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->goodsCatDel());
- }
- //更改配货单状态
- public function actionSetDistributionStatus() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->setDistributionStatus());
- }
- //打印配货单
- public function actionExportDistributionInfo()
- {
- $post = get_params();
- $form = new SupplierForm();
- $form->attributes = $post;
- $this->asJson($form->exportDistributionInfo());
- }
- //打印配货单
- public function actionGetExportDistributionInfo()
- {
- $post = get_params();
- $form = new SupplierForm();
- $form->attributes = $post;
- $this->asJson($form->getAgentOrderDistributionList());
- }
- //获取会员等级
- public function actionUserLevelSearch() {
- $form = new PlatformForm();
- $form->attributes = get_params();
- $this->asJson($form->userLevelSearch());
- }
- //设置会员等级
- public function actionSetUserLevel() {
- $form = new PlatformForm();
- $form->attributes = post_params();
- $this->asJson($form->setUserLevel());
- }
- //设置会员等级状态
- public function actionSetUserLevelStatus() {
- $form = new PlatformForm();
- $form->attributes = get_params();
- $this->asJson($form->setUserLevelStatus());
- }
- //设置产品代理佣金比例
- public function actionSetAgentGoodsPercent() {
- $form = new PlatformForm();
- $form->attributes = post_params();
- $this->asJson($form->setAgentGoodsPercent());
- }
- //获取会员等级
- public function actionGetUserLevel() {
- $form = new PlatformForm();
- $form->attributes = get_params();
- $this->asJson($form->getUserLevel());
- }
- //设置用户等级
- public function actionSetMchLevel() {
- $form = new PlatformForm();
- $form->attributes = post_params();
- $this->asJson($form->setMchLevel());
- }
- //获取分拣订单列表
- public function actionGetSortingOrder() {
- $form = new PlatformForm();
- $form->attributes = get_params();
- $this->asJson($form->getSortingOrder());
- }
- //更改分拣单状态
- // public function actionSetSortingStatus() {
- // $form = new PlatformForm();
- // $form->attributes = post_params();
- // $this->asJson($form->setSortingStatus());
- // }
- //修改域名
- public function actionSetCloudUrl() {
- $form = new PlatformForm();
- $form->attributes = post_params();
- $this->asJson($form->setCloudUrl());
- }
- //云仓库存详情
- public function actionGetCloudPreviewNumInfo(){
- $post = get_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $form->store_id = get_store_id();
- $this->asJson($form->getCloudPreviewNumInfo());
- }
- //云仓库存记录
- public function actionGetCloudPreviewNumLog(){
- $post = get_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->getCloudPreviewNumLog());
- }
- //新增云仓库存商品
- public function actionAddCloudPreviewGoods(){
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->addCloudPreviewGoods());
- }
- //修改云仓库存数量
- public function actionSetPreviewGoodsNum(){
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->setPreviewGoodsNum());
- }
- //修改云仓库存商品
- public function actionGetCloudPreviewGoodsList(){
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->getCloudPreviewGoodsList());
- }
- //增加供货渠道
- public function actionAddUserGoodsChannel(){
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->addUserGoodsChannel());
- }
- //供货渠道列表
- public function actionUserGoodsChannel(){
- $get = get_params();
- $form = new PlatformForm();
- $form->attributes = $get;
- $this->asJson($form->userGoodsChannel());
- }
- //供货渠道删除
- public function actionUserGoodsChannelStatus(){
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->userGoodsChannelStatus());
- }
- //设置用户供货渠道
- public function actionSetUserGoodsChannel() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->setUserGoodsChannel());
- }
- //云仓用户修改店铺
- public function actionSetCloudUserStore() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->setCloudUserStore());
- }
- //修改商品平台协议价
- public function actionSetGoodsPlatformNegotiatedPrice() {
- $post = post_params();
- $form = new PlatformForm();
- $form->attributes = $post;
- $this->asJson($form->setGoodsPlatformNegotiatedPrice());
- }
- //获取云仓报表
- public function actionCloudProfitList() {
- $get = get_params();
- $form = new PlatformForm();
- $form->attributes = $get;
- return $this->asJson($form->getCloudProfitList());
- }
- }
|