shish 1 년 전
부모
커밋
33458bb726
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  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()
     public function actionImportCreate()
     {
     {
         $get = Yii::$app->request->get();
         $get = Yii::$app->request->get();
-        $id = $get['id'] ?? '';
+        $ghsId = $get['id'] ?? '';
         $file = $_FILES['file'];
         $file = $_FILES['file'];
         if (!is_uploaded_file($file['tmp_name'])) {
         if (!is_uploaded_file($file['tmp_name'])) {
             util::fail('please upload img');
             util::fail('please upload img');
@@ -1089,11 +1089,6 @@ class PurchaseOrderController extends BaseController
                 //判断花材格式,是否属于当前门店
                 //判断花材格式,是否属于当前门店
                 ProductClass::valid($ghsItemInfo, $this->mainId);
                 ProductClass::valid($ghsItemInfo, $this->mainId);
 
 
-                //获取供货商信息
-                $ghsId = $post['ghsId'];
-                if (empty($ghsId)) {
-                    util::fail("请选择供货商");
-                }
                 $ghsInfo = GhsClass::getGhsInfo($ghsId);
                 $ghsInfo = GhsClass::getGhsInfo($ghsId);
                 GhsClass::valid($ghsInfo, $this->shopId);
                 GhsClass::valid($ghsInfo, $this->shopId);
                 $post['ghsInfo'] = json_encode($ghsInfo);
                 $post['ghsInfo'] = json_encode($ghsInfo);