dever 2 éve
szülő
commit
8514546d83

+ 5 - 0
module/scm_product/lib/Manage.php

@@ -186,4 +186,9 @@ class Manage
             return '暂无';
         }
     }
+
+    public function searchRole_api()
+    {
+        $service_id = Dever::input('service_id');
+    }
 }

+ 26 - 4
module/scm_servicer/database/out_order.php

@@ -30,6 +30,14 @@ $servicer = function() {
     return Dever::db('scm_servicer/info')->state();
 };
 
+
+$in_type = array
+(
+    1 => '不生成',
+    2 => '生成仓库入库单',
+    //3 => '生成经销商入库单',
+);
+
 return array
 (
     # 表名
@@ -129,16 +137,30 @@ return array
             //'list'      => true,
         ),
 
-        'in_servicer_store_id'      => array
+        'in_type'      => array
         (
             'type'      => 'int-11',
-            'name'      => '入库仓库',
+            'name'      => '同时生成入库单',
+            'default'   => '1',
+            'desc'      => '同时生成入库单',
+            'match'     => 'is_numeric',
+            'update'    => 'select',
+            'option'    => $in_type,
+            //'list'      => true,
+            'control'   => 'in_type',
+        ),
+
+        'in_type_id'      => array
+        (
+            'type'      => 'int-11',
+            'name'      => '入库组织',
             'default'   => '',
-            'desc'      => '入库仓库',
+            'desc'      => '入库组织',
             'match'     => 'is_numeric',
             'update'    => 'select',
-            'option'    => $store,
+            'update_search' => 'scm_product/lib/manage.searchRole?servicer_id='.$servicer_id.'&{in_type}',
             'show'		=> 'type=1',
+            'show'   => 'in_type=2,3',
             //'list'      => 'Dever::load("scm_servicer/store-one#name", {servicer_store_id})',
         ),
 

+ 0 - 19
module/scm_servicer/database/out_order_type.php

@@ -1,12 +1,5 @@
 <?php
 
-$in_type = array
-(
-    1 => '不生成',
-    2 => '生成仓库入库单',
-    3 => '生成经销商入库单',
-);
-
 return array
 (
 	# 表名
@@ -54,18 +47,6 @@ return array
 			'update'	=> 'text',
 		),
 
-		'in_type'      => array
-        (
-            'type'      => 'int-11',
-            'name'      => '同时生成入库单',
-            'default'   => '1',
-            'desc'      => '同时生成入库单',
-            'match'     => 'is_numeric',
-            'update'    => 'radio',
-            'option'    => $in_type,
-            //'list'      => true,
-        ),
-
 		'reorder'		=> array
 		(
 			'type' 		=> 'int-11',