|
|
@@ -1,6 +1,7 @@
|
|
|
<?php
|
|
|
namespace ghs\controllers;
|
|
|
|
|
|
+use biz\ghs\classes\GhsClass;
|
|
|
use bizGhs\order\classes\PurchaseOrderClass;
|
|
|
use bizGhs\order\classes\PurchaseOrderItemClass;
|
|
|
use bizGhs\order\models\PurchaseOrder;
|
|
|
@@ -30,6 +31,15 @@ class PurchaseOrderController extends BaseController
|
|
|
|
|
|
//判断花材格式,是否属于当前门店
|
|
|
ProductClass::valid($ghsItemInfo,$this->shopId);
|
|
|
+ //获取供应商信息
|
|
|
+ $supplierId = $post['supplierId'];
|
|
|
+ $supplierId = 125884;
|
|
|
+ if(empty($supplierId)){
|
|
|
+ util::fail("请选择供应商");
|
|
|
+ }
|
|
|
+ $supplierInfo = GhsClass::getGhsInfo($supplierId);
|
|
|
+ GhsClass::valid($supplierInfo,$this->shopId);
|
|
|
+ $post['supplierInfo']= json_encode($supplierInfo);
|
|
|
|
|
|
//判断花材里的信息
|
|
|
foreach ($ghsItemInfo as $v){
|