shish 2 лет назад
Родитель
Сommit
0c747fa9f1
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      app-ghs/controllers/PurchaseOrderController.php

+ 5 - 0
app-ghs/controllers/PurchaseOrderController.php

@@ -463,6 +463,11 @@ class PurchaseOrderController extends BaseController
 
 
             $shop = $this->shop;
             $shop = $this->shop;
             $bookSn = $shop->bookSn ?? 0;
             $bookSn = $shop->bookSn ?? 0;
+            if(!empty($bookSn)){
+                if (empty($cgStaffId)) {
+                    util::fail('请选择采购人');
+                }
+            }
 
 
             //只查我负责的花材
             //只查我负责的花材
             $globalCgMyCharge = $post['globalCgMyCharge'] ?? 0;
             $globalCgMyCharge = $post['globalCgMyCharge'] ?? 0;