PurchaseController.php 679 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace ghs\controllers;
  3. use biz\ghs\classes\GhsClass;
  4. use bizGhs\order\classes\PurchaseOrderClass;
  5. use bizGhs\order\services\PurchaseOrderService;
  6. use common\components\util;
  7. use Yii;
  8. class PurchaseController extends BaseController
  9. {
  10. //待结款明细 ssh 2021.1.26
  11. public function actionDebtList()
  12. {
  13. $id = Yii::$app->request->get('id', 0);
  14. $info = GhsClass::getGhsInfo($id);
  15. GhsClass::valid($info, $this->shopId);
  16. $where = ['ghsId' => $id, 'debt' => PurchaseOrderClass::DEBT_YES];
  17. $respond = PurchaseOrderService::getDebtList($where);
  18. $respond['ghsInfo'] = $info;
  19. util::success($respond);
  20. }
  21. }