Jelajahi Sumber

采购列表优化

shish 2 tahun lalu
induk
melakukan
d6b97c531d

+ 0 - 2
app-ghs/controllers/ConsoleController.php

@@ -166,7 +166,6 @@ class ConsoleController extends BaseController
             ["name" => "花材", "img" => "ghs/home/hcgl.png", "url" => "/admin/item/list"],
             ["name" => "花材(简)", "img" => "ghs/home/hcgl.png", "url" => "/admin/item/simple"],
             ["name" => "改库存", "img" => "ghs/home/kcyjs.png", "url" => "/admin/changePrice/changeStock"],
-            ["name" => "外采", "img" => "ghs/home/icon_caigou.png", "url" => "/pagesPurchase/wcOrder"],
             ["name" => "供货商", "img" => "ghs/home/icon_ghs.png", "url" => "/pagesPurchase/supplier"],
             ["name" => "采购记录", "img" => "ghs/home/icon_caigou.png", "url" => "/pagesPurchase/order"],
             ["name" => "调拨入库", "img" => "ghs/home/dbrk.png", "url" => "/pagesStorehouse/allot/allotPut"],
@@ -187,7 +186,6 @@ class ConsoleController extends BaseController
                 ["name" => "花材", "img" => "ghs/home/hcgl.png", "url" => "/admin/item/list2"],
                 ["name" => "预订客户", "img" => "ghs/home/yggl.png", "url" => "/admin/book/custom"],
                 ["name" => "改库存", "img" => "ghs/home/kcyjs.png", "url" => "/admin/changePrice/changeStock2"],
-                ["name" => "外采", "img" => "ghs/home/icon_caigou.png", "url" => "/pagesPurchase/wcOrder"],
                 ["name" => "供货商", "img" => "ghs/home/icon_ghs.png", "url" => "/pagesPurchase/supplier"],
                 ["name" => "采购记录", "img" => "ghs/home/icon_caigou.png", "url" => "/pagesPurchase/order"],
                 ["name" => "调拨入库", "img" => "ghs/home/dbrk.png", "url" => "/pagesStorehouse/allot/allotPut"],

+ 2 - 2
app-ghs/controllers/ProductController.php

@@ -733,8 +733,8 @@ class ProductController extends BaseController
 
             //入库成功通知相关人员,关键词 put_in_notice
             if ($needNotice) {
-                $cg = PurchaseOrderClass::getLockById($targetId);
-                WxMessageClass::ghsCgEntryInform($shop, $cg);
+//                $cg = PurchaseOrderClass::getLockById($targetId);
+//                WxMessageClass::ghsCgEntryInform($shop, $cg);
             }
 
             util::complete('操作成功');

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

@@ -349,8 +349,8 @@ class PurchaseOrderController extends BaseController
             $transaction->commit();
 
             //入库成功通知相关人员,关键词 put_in_notice
-            $shop = $this->shop;
-            WxMessageClass::ghsCgEntryInform($shop, $cg);
+            //$shop = $this->shop;
+            //WxMessageClass::ghsCgEntryInform($shop, $cg);
 
             util::success($return);
         } catch (\Exception $e) {
@@ -542,10 +542,6 @@ class PurchaseOrderController extends BaseController
         if (!empty($ghsId)) {
             $where['ghsId'] = $ghsId;
         }
-        $location = $get['location'] ?? '';
-        if (is_numeric($location)) {
-            $where['location'] = $location;
-        }
         $data = PurchaseOrderClass::getOrderList($where);
         //状态统计,很慢,暂时隐藏
         //$statData = PurchaseOrderClass::statNum($this->shopId);