'待审核', 2 => '已审核', 3 => '已驳回', ); $store = array(); $servicer_id = Dever::input('search_option_servicer_id'); if ($servicer_id) { $store = function() use($servicer_id) { return Dever::db('scm_servicer/store')->select(array('servicer_id' => $servicer_id)); }; } $supplier = function() use($servicer_id) { return Dever::db('scm_servicer/supplier')->getData(array('servicer_id' => $servicer_id)); }; return array ( # 表名 'name' => 'in_order', # 显示给用户看的名称 'lang' => '入库单查询', 'order' => 9, 'set' => array ( 'status' => $status, ), # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'search' => 'order', //'list' => true, ), 'order_num' => array ( 'type' => 'varchar-100', 'name' => '订单号', 'default' => '', 'desc' => '订单号', 'match' => 'is_string', 'search' => 'fulltext', 'list_name' => '订单信息', //'list' => 'Dever::load("scm_order/lib/sell.info#order", {id})', ), 'servicer_id' => array ( 'type' => 'int-11', 'name' => '配送商ID', 'default' => '', 'desc' => '配送商ID', 'match' => 'is_numeric', 'update' => 'hidden', 'searchs' => array ( 'api' => 'scm_role/seller-like', 'col' => 'name', 'result' => 'id', ), 'value' => $servicer_id, ), 'servicer_store_id' => array ( 'type' => 'int-11', 'name' => '仓库', 'default' => '', 'desc' => '仓库', 'match' => 'is_numeric', 'update' => 'select', 'option' => $store, 'list' => true, ), 'supplier_id' => array ( 'type' => 'int-11', 'name' => '供应商', 'default' => '', 'desc' => '供应商', 'match' => 'is_numeric', 'update' => 'select', 'option' => $supplier, 'list' => true, ), 'info' => array ( 'type' => 'varchar-300', 'name' => '订单备注', 'default' => '', 'desc' => '订单备注', 'match' => 'option', 'update' => 'text', ), 'status' => array ( 'type' => 'tinyint-1', 'name' => '订单状态', 'default' => '1', 'desc' => '订单状态', 'match' => 'is_numeric', 'option' => $status, 'search' => 'select', //'search_after' => '
', //'mul' => true, //'mul_option' => array(2 => '批量审核', 5 => '确认收货'), ), 'scm_servicer-in_order_goods'=> array ( 'name' => '商品设置', 'default' => '', 'desc' => '商品设置', 'match' => 'option', # 同步更新另外一个表的内容,两个表相关联的id,更新另一个表的字段 'sync' => array('id', 'order_id'), 'update' => array(1), # 1纵向展示 2横向展示 'update_type' => 2, //'list' => 'Dever::load("scm_servicer/lib/manage.getStore", {id})', ), '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' => 'sdate', 'list' => 'date("Y-m-d H:i", {cdate})', ), ), 'manage' => array ( 'delete' => false, 'edit' => false, 'insert' => false, //'excel' => $excel, //'mul' => $mul, 'button' => array ( //'导出订单明细' => array('excel', 'shop/excel.sell_order'), ), 'list_button' => array ( //fast_list /* 'list' => array('查看详情', '"sell_order_goods&project=shop&order_id={id}&page_type=&search_option_shop_type='.$search_option_shop_type.'"'), 'list11' => array('查看采购单', '"buy_order&project=shop&search_option_type=1&&search_option_parent_type=2&search_option_parent_order_id={id}&oper_table=sell_order&search_option_shop_type='.$search_option_shop_type.'"', '{status} >= 3 && {audit} == 2 && {shop_type} == 2'), 'list1' => array('审核', '"sell_order_goods&project=shop&order_id={id}&audit=1&page_type=&search_option_shop_type='.$search_option_shop_type.'"', '{status} == 2 && {shop_type} == 2'), 'oper' => array('确认收货', '"shop/lib/manage.setSellOrderStatus?shop_id={shop_id}&order_id={id}"', '{status} == 4 && {shop_type} == 2'), */ ), ), 'request' => array ( ), );