123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <?php
- $config = array
- (
-
- 'name' => 'goods_sku',
-
- 'lang' => '商品价格设置',
- 'order' => 200,
- 'menu' => false,
-
- 'struct' => array
- (
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
-
- ),
- 'factory_id' => array
- (
- 'type' => 'int-11',
- 'name' => '所属工厂',
- 'default' => '',
- 'desc' => '所属工厂',
- 'list' => 'Dever::load("factory/info-find#name", {factory_id})',
- ),
- 'goods_id' => array
- (
- 'type' => 'int-11',
- 'name' => '商品名称',
- 'default' => '',
- 'desc' => '商品名称',
- 'match' => 'is_numeric',
- 'list' => 'Dever::load("goods/info-find#name", {goods_id})',
- ),
- 'factory_goods_id' => array
- (
- 'type' => 'int-11',
- 'name' => '商品名称',
- 'default' => '',
- 'desc' => '商品名称',
- 'value' => Dever::input('search_option_factory_goods_id'),
- 'update' => 'hidden',
- 'match' => 'is_numeric',
- ),
- 'sku_id' => array
- (
- 'type' => 'int-11',
- 'name' => '商品sku',
- 'default' => '',
- 'desc' => '商品sku',
- 'match' => 'is_numeric',
- ),
- 'c_price' => array
- (
- 'type' => 'decimal-10,2',
- 'name' => '出厂价',
- 'default' => '',
- 'desc' => '出厂价',
- 'match' => 'option',
- 'update' => 'text',
- ),
- 'reorder' => array
- (
- 'type' => 'int-11',
- 'name' => '排序-数值越大越靠前,相当于置顶',
- 'default' => '1',
- 'desc' => '请输入排序',
- 'match' => 'option',
-
- 'search' => 'order',
- 'list' => true,
- 'order' => 'desc',
- 'edit' => true,
- ),
- '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' => true,
-
-
- ),
- ),
- 'manage' => array
- (
- 'insert' => false,
- 'edit' => false,
- 'delete' => false,
- 'num' => false,
- 'page_list_table' => 'sku',
-
- 'button' => array
- (
-
- ),
- ),
-
- 'request' => array
- (
-
- 'getData' => array
- (
-
- 'option' => array
- (
- 'factory_id' => 'yes',
- 'sku_id' => 'yes',
- 'goods_id' => 'yes',
- 'factory_goods_id' => 'yes',
- 'state' => 1,
- ),
- 'type' => 'all',
- 'order' => array('id' => 'desc'),
- 'col' => '*|sku_id',
- ),
- 'getMinOne' => array
- (
-
- 'option' => array
- (
- 'factory_id' => 'yes',
- 'sku_id' => 'yes',
- 'goods_id' => 'yes',
- 'factory_goods_id' => 'yes',
- 'state' => 1,
- ),
- 'type' => 'one',
- 'order' => array('price' => 'asc', 'id' => 'desc'),
- 'col' => '*',
- ),
- 'getMaxOne' => array
- (
-
- 'option' => array
- (
- 'factory_id' => 'yes',
- 'sku_id' => 'yes',
- 'goods_id' => 'yes',
- 'factory_goods_id' => 'yes',
- 'state' => 1,
- ),
- 'type' => 'one',
- 'order' => array('price' => 'desc', 'id' => 'desc'),
- 'col' => '*',
- ),
- ),
- );
- return $config;
|