|
@@ -0,0 +1,136 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+$role = array
|
|
|
+(
|
|
|
+ 1 => '管理员',
|
|
|
+ 2 => '配货员',
|
|
|
+ 3 => '库存管理员',
|
|
|
+ 4 => '财务',
|
|
|
+);
|
|
|
+
|
|
|
+$factory = function()
|
|
|
+{
|
|
|
+ $array = array();
|
|
|
+ $info = Dever::db('factory/info')->select();
|
|
|
+
|
|
|
+ if($info)
|
|
|
+ {
|
|
|
+ $array += $info;
|
|
|
+ }
|
|
|
+ return $array;
|
|
|
+};
|
|
|
+
|
|
|
+return array
|
|
|
+(
|
|
|
+
|
|
|
+ 'name' => 'member',
|
|
|
+
|
|
|
+ 'lang' => '账号管理',
|
|
|
+
|
|
|
+ 'struct' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ 'id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => 'ID',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'search' => 'order',
|
|
|
+ 'update' => 'hidden',
|
|
|
+
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'store_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '所属仓库',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '所属仓库',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'select',
|
|
|
+ 'option' => $store,
|
|
|
+ 'list' => 'Dever::load("store/info-find#name", {store_id})';
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'name' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-50',
|
|
|
+ 'name' => '员工姓名',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '请输入员工姓名',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'mobile' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '员工电话',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '请输入员工电话',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'avatar' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-150',
|
|
|
+ 'name' => '员工头像',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '请选择员工头像',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'image',
|
|
|
+ 'key' => '1',
|
|
|
+ 'place' => '150',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'role_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-60',
|
|
|
+ 'name' => '角色',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '角色',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'checkbox',
|
|
|
+ 'option' => $role,
|
|
|
+ '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' => '',
|
|
|
+
|
|
|
+
|
|
|
+ 'search' => 'date',
|
|
|
+ 'list' => 'date("Y-m-d H:i:s", {cdate})',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'manage' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'request' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ ),
|
|
|
+);
|