| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354 | 
							- <?php
 
- # 获取分类权限
 
- $status = array
 
- (
 
-     1 => '已认证',
 
-     2 => '认证中',
 
-     3 => '认证失败',
 
- );
 
- $stat_type = Dever::db('cash/shop')->config['config_type'];
 
- return array
 
- (
 
-     # 表名
 
-     'name' => 'info',
 
-     # 显示给用户看的名称
 
-     'lang' => '仓库列表',
 
-     # 后台菜单排序
 
-     'order' => 99,
 
-     'end' => array
 
-     (
 
-         'insert' => 'store/lib/manage.infoUpdate',
 
-         'update' => 'store/lib/manage.infoUpdate',
 
-     ),
 
-     # 数据结构
 
-     'struct' => array
 
-     (
 
-         'id'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => 'ID',
 
-             'default'   => '',
 
-             'desc'      => '',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'list'      => true,
 
-             'order'     => 'desc',
 
-         ),
 
-         'hr1'       => array
 
-         (
 
-             'name'      => '仓库基本信息',
 
-             'class'     => '',//本项必须填写
 
-             'attr'      => '',
 
-         ),
 
-         'uid'       => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '用户名',
 
-             'default'   => '0',
 
-             'desc'      => '请选择用户',
 
-             'match'     => 'is_numeric',
 
-             //'update'    => 'text',
 
-             //'search'  => 'select',
 
-             'searchs'    => array
 
-             (
 
-                 'api' => 'passport/user-select',
 
-                 'col' => 'username',
 
-                 'result' => 'id',
 
-             ),
 
-             //'list'      => '{uid} > 0 ? Dever::load("passport/user-find#username", {uid}) : "匿名用户"',
 
-         ),
 
-         
 
-         'name'      => array
 
-         (
 
-             'type'      => 'varchar-32',
 
-             'name'      => '仓库名称',
 
-             'default'   => '',
 
-             'desc'      => '请输入仓库名称',
 
-             'match'     => 'is_string',
 
-             'update'    => 'text',
 
-             'search'    => 'fulltext',
 
-             'list'      => true,
 
-         ),
 
-         'truename'      => array
 
-         (
 
-             'type'      => 'varchar-100',
 
-             'name'      => '联系人姓名',
 
-             'default'   => '',
 
-             'desc'      => '请输入联系人姓名',
 
-             'match'     => 'is_string',
 
-             'update'    => 'text',
 
-             'search'    => 'fulltext',
 
-             'list'      => true,
 
-         ),
 
-         'mobile'      => array
 
-         (
 
-             'type'      => 'bigint-11',
 
-             'name'      => '联系人电话',
 
-             'default'   => '',
 
-             'desc'      => '请输入联系人电话',
 
-             'match'     => 'is_numeric',
 
-             'update'    => 'text',
 
-             'search'    => 'fulltext',
 
-             'list'      => true,
 
-         ),
 
-         'area'       => array
 
-         (
 
-             'type'      => 'varchar-500',
 
-             'name'      => '所在城市',
 
-             'default'   => '',
 
-             'desc'      => '所在城市',
 
-             'match'     => 'option',
 
-             'search'    => 'linkage',
 
-             'update'    => 'linkage',
 
-             'option'    => Dever::url('api.get?level_total=2', 'area'),
 
-             'list'      => 'Dever::load("area/api.string", "{area}")',
 
-         ),
 
-         'province'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '省份',
 
-             'default'   => '',
 
-             'desc'      => '省份',
 
-             'match'     => 'option',
 
-             //'update'  => 'text',
 
-         ),
 
-         'city'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '城市',
 
-             'default'   => '',
 
-             'desc'      => '城市',
 
-             'match'     => 'option',
 
-             //'update'  => 'text',
 
-         ),
 
-         'map'       => array
 
-         (
 
-             'type'      => 'varchar-300',
 
-             'name'      => '地理位置',
 
-             'default'   => '',
 
-             'desc'      => '地理位置',
 
-             'match'     => 'is_string',
 
-             # 如果是map,必须在config的base.php中设置map信息
 
-             'update'  => 'map',
 
-         ),
 
-         'lng'       => array
 
-         (
 
-             'type'      => 'varchar-100',
 
-             'name'      => '经度',
 
-             'default'   => '',
 
-             'desc'      => '经度',
 
-             'match'     => 'option',
 
-             //'update'    => 'text',
 
-             //'list'        => true,
 
-         ),
 
-         'lat'       => array
 
-         (
 
-             'type'      => 'varchar-100',
 
-             'name'      => '纬度',
 
-             'default'   => '',
 
-             'desc'      => '纬度',
 
-             'match'     => 'option',
 
-             //'update'    => 'text',
 
-             //'list'        => true,
 
-         ),
 
-         'address'       => array
 
-         (
 
-             'type'      => 'varchar-1000',
 
-             'name'      => '仓库地址',
 
-             'default'   => '',
 
-             'desc'      => '仓库地址',
 
-             'match'     => 'option',
 
-             'update'    => 'text',
 
-             //'list'        => true,
 
-         ),
 
-         'goods'       => array
 
-         (
 
-             'type'      => 'text-255',
 
-             'name'      => '请先选择分类-选择分类,之后选择分类下的商品,点击商品名称可以设置库存',
 
-             'default'   => '',
 
-             'desc'      => '生产能力',
 
-             'match'     => 'option',
 
-             // 多级联动+多选
 
-             'update'    => Dever::input('col') ? 'linkage' : false,
 
-             'option'    => array(Dever::url('api.get', 'category'), 'cate_id', Dever::url('lib/info.getGoods', 'goods'), '快速设置', Dever::url('project/database/list?project=goods&table=info_sku&page_type=1&other=store&other_id={where_id}&goods_id={id}', 'manage')),
 
-         ),
 
-         'hr2'       => array
 
-         (
 
-             'name'      => '仓库认证信息',
 
-             'class'     => '',//本项必须填写
 
-             'attr'      => '',
 
-         ),
 
-         'license'     => array
 
-         (
 
-             'type'      => 'varchar-150',
 
-             'name'      => '营业执照',
 
-             'default'   => '',
 
-             'desc'      => '营业执照',
 
-             'match'     => 'option',
 
-             'update'    => 'image',
 
-             'key'       => '8',
 
-             'place'     => '660*660',
 
-         ),
 
-         'license_number'      => array
 
-         (
 
-             'type'      => 'varchar-200',
 
-             'name'      => '营业执照号码',
 
-             'default'   => '',
 
-             'desc'      => '营业执照号码',
 
-             'match'     => 'option',
 
-             'update'    => 'text',
 
-         ),
 
-         'company_name'      => array
 
-         (
 
-             'type'      => 'varchar-200',
 
-             'name'      => '公司名称',
 
-             'default'   => '',
 
-             'desc'      => '公司名称',
 
-             'match'     => 'option',
 
-             'update'    => 'text',
 
-         ),
 
-         'idcard_front'     => array
 
-         (
 
-             'type'      => 'varchar-150',
 
-             'name'      => '身份证正面',
 
-             'default'   => '',
 
-             'desc'      => '身份证正面',
 
-             'match'     => 'option',
 
-             'update'    => 'image',
 
-             'key'       => '8',
 
-             'place'     => '660*660',
 
-         ),
 
-         'idcard_back'     => array
 
-         (
 
-             'type'      => 'varchar-150',
 
-             'name'      => '身份证背面',
 
-             'default'   => '',
 
-             'desc'      => '身份证背面',
 
-             'match'     => 'option',
 
-             'update'    => 'image',
 
-             'key'       => '8',
 
-             'place'     => '660*660',
 
-         ),
 
-         'kh_license'     => array
 
-         (
 
-             'type'      => 'varchar-150',
 
-             'name'      => '开户许可证',
 
-             'default'   => '',
 
-             'desc'      => '开户许可证',
 
-             'match'     => 'option',
 
-             'update'    => 'image',
 
-             'key'       => '8',
 
-             'place'     => '660*660',
 
-         ),
 
-         'status'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '认证状态',
 
-             'default'   => '1',
 
-             'desc'      => '认证状态',
 
-             'match'     => 'is_numeric',
 
-             'update'  => 'select',
 
-             'option'    => $status,
 
-             'search'    => 'select',
 
-             'list'      => true,
 
-             'edit'      => true,
 
-         ),
 
-         'stat_type'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '对账周期-可以选择周期生成对账单,选择按天生成对账单,则每天会生成前一天的对账单',
 
-             'default'   => '1',
 
-             'desc'      => '对账周期',
 
-             'match'     => 'is_numeric',
 
-             'update'    => 'radio',
 
-             'option'    => $stat_type,
 
-             'control'   => 'stat_type',
 
-         ),
 
-         'stat_day'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '对账单生成日期-这里直接填写对账周期内的第几天即可,如按月对账,这里填写10,就是本月10号生成上一个月的对账单,如按周对账,这里填写2,就是本周二生成上一周的对账单',
 
-             'default'   => '10',
 
-             'desc'      => '对账单生成日期',
 
-             'match'     => 'option',
 
-             'update'    => 'text',
 
-             'show'      => 'stat_type=1,2',
 
-         ),
 
-         'reorder'       => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '排序(数值越大越靠前)',
 
-             'default'   => '1',
 
-             'desc'      => '请输入排序',
 
-             'match'     => 'option',
 
-             //'update'    => 'text',
 
-             '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时才生效
 
-             'insert'    => true,
 
-             'list'      => 'date("Y-m-d H:i:s", {cdate})',
 
-         ),
 
-     ),
 
-     'manage' => array
 
-     (
 
-         'list_button' => array
 
-         (
 
-             'location' => array('商品设置', Dever::url('lib/set.home', 'store')),
 
-             //'add' => array('设置库存清单', '"info&where_id={id}&col=goods&oper_save_jump=info&oper_table=info&oper_parent=info"'),
 
-             'list3' => array('商品列表', '"goods&search_option_store_id={id}&oper_table=info"'),
 
-             'list1' => array('账号管理', '"member&search_option_store_id={id}&oper_table=info"'),
 
-             //'list2' => array('订货单', '"order&search_option_store_id={id}&oper_table=info"'),
 
-         ),
 
-     ),
 
-     'request' => array
 
-     (
 
-         
 
-     ),
 
- );
 
 
  |