shish il y a 1 an
Parent
commit
33458bb726
1 fichiers modifiés avec 1 ajouts et 6 suppressions
  1. 1 6
      app-ghs/controllers/PurchaseOrderController.php

+ 1 - 6
app-ghs/controllers/PurchaseOrderController.php

@@ -962,7 +962,7 @@ class PurchaseOrderController extends BaseController
     public function actionImportCreate()
     {
         $get = Yii::$app->request->get();
-        $id = $get['id'] ?? '';
+        $ghsId = $get['id'] ?? '';
         $file = $_FILES['file'];
         if (!is_uploaded_file($file['tmp_name'])) {
             util::fail('please upload img');
@@ -1089,11 +1089,6 @@ class PurchaseOrderController extends BaseController
                 //判断花材格式,是否属于当前门店
                 ProductClass::valid($ghsItemInfo, $this->mainId);
 
-                //获取供货商信息
-                $ghsId = $post['ghsId'];
-                if (empty($ghsId)) {
-                    util::fail("请选择供货商");
-                }
                 $ghsInfo = GhsClass::getGhsInfo($ghsId);
                 GhsClass::valid($ghsInfo, $this->shopId);
                 $post['ghsInfo'] = json_encode($ghsInfo);