123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <?php
- $status = Dever::config('base')->status;
- return array
- (
-
- 'name' => 'supplier_goods',
-
- 'lang' => '供应商商品列表',
- 'order' => 10,
- 'menu' => false,
-
-
- 'struct' => array
- (
-
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- 'search' => 'order',
- 'update' => 'hidden',
-
- ),
- 'supplier_id' => array
- (
- 'type' => 'int-11',
- 'name' => '所属供应商',
- 'default' => '',
- 'desc' => '所属供应商',
- 'match' => 'is_numeric',
- 'update' => 'hidden',
- 'search' => 'hidden',
- 'value' => Dever::input('search_option_supplier_id'),
- 'list' => 'Dever::load("scm_role/supplier-one#name", {supplier_id})',
- ),
- 'goods_id' => array
- (
- 'type' => 'int-11',
- 'name' => '商品名称',
- 'default' => '',
- 'desc' => '商品名称',
- 'match' => 'is_numeric',
- 'update' => 'select',
- 'update_search' => 'scm_product/lib/manage.search',
- 'list' => 'Dever::load("scm_product/info-one#name", {goods_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' => '',
-
-
-
-
- ),
- ),
- 'manage' => array
- (
- 'insert' => false,
- 'edit' => false,
- 'delete' => false,
- ),
- 'request' => array
- (
- 'getData' => array
- (
-
- 'option' => array
- (
- 'supplier_id' => array('yes-t_1.supplier_id'),
- 'name' => array('yes-t_2.name', 'like'),
- 'category' => array('yes-t_2.category', 'like'),
- 'top_category_id' => array('yes-t_2.top_category_id'),
- 'second_category_id' => array('yes-t_2.second_category_id'),
- 'category_id' => array('yes-t_2.category_id'),
- 'status' => 'yes-t_2.status-1',
- 'state' => 'yes-t_2.state-1',
- 'state_1' => 'yes-t_1.state-1',
- ),
-
- 'join' => array
- (
- array
- (
- 'table' => 'scm_product/info',
- 'type' => 'left join',
- 'on' => array('goods_id','id'),
- 'col' => 'goods_id',
- ),
- ),
- 'type' => 'all',
- 'order' => array('t_2.reorder' => 'desc', 't_2.id' => 'desc'),
- 'col' => '*,t_2.*',
- ),
- 'getDataPage' => array
- (
-
- 'option' => array
- (
- 'supplier_id' => array('yes-t_1.supplier_id'),
- 'name' => array('yes-t_2.name', 'like'),
- 'category' => array('yes-t_2.category', 'like'),
- 'top_category_id' => array('yes-t_2.top_category_id'),
- 'second_category_id' => array('yes-t_2.second_category_id'),
- 'category_id' => array('yes-t_2.category_id'),
- 'status' => 'yes-t_2.status-1',
- 'state' => 'yes-t_2.state-1',
- 'state_1' => 'yes-t_1.state-1',
- ),
-
- 'join' => array
- (
- array
- (
- 'table' => 'scm_product/info',
- 'type' => 'left join',
- 'on' => array('goods_id','id'),
- 'col' => 'goods_id',
- ),
- ),
- 'type' => 'all',
- 'order' => array('t_2.reorder' => 'desc', 't_2.id' => 'desc'),
- 'page' => array(10, 'list'),
- 'col' => '*,t_2.*',
- ),
- ),
- );
|