'factory', # 显示给用户看的名称 'lang' => '分配厂家', 'menu' => false, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'search' => 'order', 'update' => 'hidden', //'list' => true, ), 'shop_id' => array ( 'type' => 'int-11', 'name' => '所属门店', 'default' => '', 'desc' => '所属门店', 'match' => 'is_numeric', 'update' => 'text', ), 'factory_id' => array ( 'type' => 'int-11', 'name' => '所属工厂', 'default' => '', 'desc' => '所属工厂', 'match' => 'is_numeric', 'update' => 'text', ), 'city' => array ( 'type' => 'int-11', 'name' => '城市', 'default' => '', 'desc' => '城市', 'match' => 'option', //'update' => 'text', ), 'state' => array ( 'type' => 'tinyint-1', 'name' => '状态', 'default' => '1', 'desc' => '请选择状态', 'match' => 'is_numeric', ), 'cdate' => array ( 'type' => 'int-11', 'name' => '创建时间', 'match' => array('is_numeric', time()), 'desc' => '', # 只有insert时才生效 //'insert' => true, 'search' => 'date', 'list' => 'date("Y-m-d H:i:s", {cdate})', ), ), 'manage' => array ( ), 'request' => array ( 'getAll' => array ( 'option' => array ( 'shop_id' => 'yes', 'state' => 1, ), 'type' => 'all', 'col' => '*|factory_id', ), ), );