shish 5 лет назад
Родитель
Сommit
db73bf64b3
2 измененных файлов с 9 добавлено и 2 удалено
  1. 4 2
      biz-ghs/order/services/OrderService.php
  2. 5 0
      common/components/dict.php

+ 4 - 2
biz-ghs/order/services/OrderService.php

@@ -586,8 +586,10 @@ class OrderService extends BaseService
             }
         }
 
-        //在线打印
-        OrderClass::onlinePrint($order);
+        //订单生成时唤起在线打印
+        if (isset($order->needPrint) && $order->needPrint == dict::getDict('needPrint', 'need')) {
+            OrderClass::onlinePrint($order);
+        }
 
     }
 

+ 5 - 0
common/components/dict.php

@@ -8,6 +8,11 @@ class dict
 {
 
     public static $data = [
+        //是否需要打印
+        'needPrint' => [
+            'need' => 1,
+            'noNeed' => 2,
+        ],
 
         //批发店囤货时显示给零售库存的最高值
         'showMaxStock' => 260,