| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace ghs\controllers;
- use biz\ghs\classes\GhsClass;
- use bizGhs\clear\classes\ClearClass;
- use bizGhs\clear\services\ClearService;
- use bizGhs\custom\classes\CustomClass;
- use common\components\util;
- use Yii;
- class ClearController extends BaseController
- {
- //供应商的结帐单 shish 20210625
- public function actionList()
- {
- $get = Yii::$app->request->get();
- $where['status'] = 2;
- $ghsId = $get['ghsId'] ?? 0;
- $ghs = GhsClass::getById($ghsId, true);
- GhsClass::valid($ghs, $this->shopId);
- $where['ghsId'] = $ghsId;
- $list = ClearService::getClearList($where);
- util::success($list);
- }
- //获取基本信息 shish 20210625
- public function actionGetFullInfo()
- {
- $id = Yii::$app->request->get('id', '');
- $respond = ClearClass::getGhsCgInfo($id);
- util::success($respond);
- }
- //客户的结帐单 shish 20210625
- public function actionCustomList()
- {
- $get = Yii::$app->request->get();
- $where['status'] = 2;
- $customId = $get['customId'] ?? 0;
- $custom = CustomClass::getById($customId, true);
- CustomClass::valid($custom, $this->shopId);
- $where['customId'] = $customId;
- $list = ClearService::getClearList($where);
- util::success($list);
- }
- //获取基本信息 shish 20210625
- public function actionGetCustomFullInfo()
- {
- $id = Yii::$app->request->get('id', '');
- $respond = ClearClass::getSaleInfo($id);
- util::success($respond);
- }
- }
|