PurchaseController.php 535 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace shop\controllers;
  3. use Yii;
  4. use common\components\util;
  5. class PurchaseController extends BaseController
  6. {
  7. //生成采购单 shish 2021.1.17
  8. public function actionCreateOrder()
  9. {
  10. $itemData = [
  11. [
  12. 'orderId'=>$orderId,
  13. 'itemId'=>0,
  14. 'productId'=>0,
  15. 'unitPrice'=>0.01,
  16. 'unitNum'=>0,
  17. 'num'=>0,
  18. ],
  19. ];
  20. //OrderGoodsService::add($data);//创建订单商品列表
  21. }
  22. }