|
@@ -0,0 +1,110 @@
|
|
|
+<?php
|
|
|
+$type = array
|
|
|
+(
|
|
|
+ 1 => '店铺',
|
|
|
+ 2 => '仓库',
|
|
|
+ 10 => '通用',
|
|
|
+);
|
|
|
+
|
|
|
+return array
|
|
|
+(
|
|
|
+ # 表名
|
|
|
+ 'name' => 'out_type',
|
|
|
+ # 显示给用户看的名称
|
|
|
+ 'lang' => '出库类型',
|
|
|
+ # 后台菜单排序
|
|
|
+ 'order' => -1,
|
|
|
+ # 数据结构
|
|
|
+ 'struct' => array
|
|
|
+ (
|
|
|
+ 'id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => 'ID',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'search' => 'order',
|
|
|
+ 'list' => true,
|
|
|
+ 'order' => 'desc',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'name' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-200',
|
|
|
+ 'name' => '出库类型名称',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '出库类型名称',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'type' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '类型',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '类型',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'select',
|
|
|
+ 'option' => $type,
|
|
|
+ 'search' => 'select',
|
|
|
+ 'list' => 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时才生效
|
|
|
+ 'insert' => true,
|
|
|
+ 'list' => 'date("Y-m-d H:i:s", {cdate})',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'default' => array
|
|
|
+ (
|
|
|
+ 'col' => 'id,name,type,state,cdate',
|
|
|
+ 'value' => array
|
|
|
+ (
|
|
|
+ '1,"店铺活动", 1, 1,' . DEVER_TIME,
|
|
|
+ '2,"礼品赠送", 1, 1,' . DEVER_TIME,
|
|
|
+ '3,"保质期到期销毁", 10, 1,' . DEVER_TIME,
|
|
|
+ '4,"库存损毁", 10, 1,' . DEVER_TIME,
|
|
|
+ '10,"其他", 10, 1,' . DEVER_TIME,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'manage' => array
|
|
|
+ (
|
|
|
+ 'delete' => false,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'request' => array
|
|
|
+ (
|
|
|
+ 'getAll' => array
|
|
|
+ (
|
|
|
+ # 匹配的正则或函数 选填项
|
|
|
+ 'option' => array
|
|
|
+ (
|
|
|
+ 'type' => array('yes', 'in'),
|
|
|
+ //'state' => 1,
|
|
|
+ ),
|
|
|
+ 'type' => 'all',
|
|
|
+ 'col' => '*|id',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+);
|