123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <?php
- $config = array
- (
-
- 'name' => 'goods',
-
- 'lang' => '商品价格模板',
- 'order' => 200,
- 'menu' => false,
- 'fill' => array
- (
-
- 'goods/info' => array
- (
-
- 'where' => array('id' => 'goods_id'),
-
- 'update' => array('price_type' => 'price_type', 'status' => 'status'),
-
-
- )
- ),
-
- 'struct' => array
- (
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
-
- ),
- 'name' => array
- (
- 'type' => 'varchar-800',
- 'name' => '模板名称',
- 'default' => '',
- 'desc' => '模板名称',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- 'edit' => true,
- ),
- 'goods_id' => array
- (
- 'type' => 'int-11',
- 'name' => '商品名称',
- 'default' => '',
- 'desc' => '商品ID',
- 'match' => 'is_numeric',
- 'update' => 'hidden',
- 'value' => Dever::input('search_option_goods_id'),
- 'list' => 'Dever::load("goods/info-one#name", {goods_id})',
- ),
- 'category_id' => array
- (
- 'type' => 'int-11',
- 'name' => '分类id',
- 'default' => '',
- 'desc' => '分类id',
- 'match' => 'is_numeric',
- ),
- 'price_type' => array
- (
- 'type' => 'int-11',
- 'name' => '价格类型',
- 'default' => '0',
- 'desc' => '价格类型',
- 'match' => 'is_numeric',
- 'table' => 'goods/info',
- ),
- 'price_sell' => array
- (
- 'type' => 'varchar-100',
- 'name' => '销售价',
- 'default' => '',
- 'desc' => '销售价',
- 'match' => 'option',
- 'list_name' => '模板价格',
- 'list' => 'Dever::load("goods/lib/sku.table", "{goods_id}", "price", "{id}", false, false)',
- ),
- 'price_buy' => array
- (
- 'type' => 'varchar-100',
- 'name' => '门店采购价',
- 'default' => '',
- 'desc' => '采购价',
- 'match' => 'option',
- ),
- 'price_num' => array
- (
- 'type' => 'int-11',
- 'name' => '起购数',
- 'default' => '1',
- 'desc' => '起购数',
- 'match' => 'is_string',
- ),
- '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
- (
- 'edit' => false,
- 'insert' => false,
-
- 'button' => array
- (
- '新增' => array('fast', 1, 'goods'),
- ),
-
- 'list_button' => array
- (
- 'fast_list' => array('编辑', '"info_sku&project=goods&goods_id={goods_id}&other=price&other_id={id}&page_type=1"', '{price_type} <= 3'),
- ),
- ),
-
- 'request' => array
- (
-
- ),
- );
- return $config;
|