|
@@ -1,5 +1,14 @@
|
|
|
<?php
|
|
|
$system_source = Dever::config('base')->system_source;
|
|
|
+$mode = Dever::db('goods/info')->config['config_mode'];
|
|
|
+$shape = Dever::db('goods/info')->config['config_shape'];
|
|
|
+$platform = Dever::db('goods/info')->config['config_platform'];
|
|
|
+$confirm = array
|
|
|
+(
|
|
|
+ 1 => '未确认',
|
|
|
+ 2 => '已确认',
|
|
|
+);
|
|
|
+$status = Dever::config('base', 'pay')->pay['status'];
|
|
|
$config = array
|
|
|
(
|
|
|
# 表名
|
|
@@ -7,7 +16,7 @@ $config = array
|
|
|
# 显示给用户看的名称
|
|
|
'lang' => '商品订单',
|
|
|
'order' => 300,
|
|
|
- 'menu' => false,
|
|
|
+ 'auto' => 1000000,
|
|
|
|
|
|
# 数据结构 不同的字段放这里
|
|
|
'struct' => array
|
|
@@ -29,7 +38,7 @@ $config = array
|
|
|
'default' => '0',
|
|
|
'desc' => '请选择用户',
|
|
|
'match' => 'is_numeric',
|
|
|
- 'update' => 'text',
|
|
|
+ //'update' => 'text',
|
|
|
//'search' => 'select',
|
|
|
'search' => array
|
|
|
(
|
|
@@ -37,7 +46,9 @@ $config = array
|
|
|
'col' => 'username',
|
|
|
'result' => 'id',
|
|
|
),
|
|
|
- 'list' => '{parent_uid} > 0 ? Dever::load("passport/user-one#username", {parent_uid}) : "无邀请人"',
|
|
|
+ 'list_name' => '订单详情',
|
|
|
+ 'list' => 'Dever::load("goods/manage.order", {id})',
|
|
|
+ //'list' => '{parent_uid} > 0 ? Dever::load("passport/user-one#username", {parent_uid}) : "无邀请人"',
|
|
|
),
|
|
|
|
|
|
'uid' => array
|
|
@@ -47,7 +58,7 @@ $config = array
|
|
|
'default' => '0',
|
|
|
'desc' => '请选择用户',
|
|
|
'match' => 'is_numeric',
|
|
|
- 'update' => 'text',
|
|
|
+ //'update' => 'text',
|
|
|
//'search' => 'select',
|
|
|
'search' => array
|
|
|
(
|
|
@@ -55,7 +66,7 @@ $config = array
|
|
|
'col' => 'username',
|
|
|
'result' => 'id',
|
|
|
),
|
|
|
- 'list' => '{uid} > 0 ? Dever::load("passport/user-one#username", {uid}) : "匿名用户"',
|
|
|
+ //'list' => '{uid} > 0 ? Dever::load("passport/user-one#username", {uid}) : "匿名用户"',
|
|
|
),
|
|
|
|
|
|
'type' => array
|
|
@@ -65,7 +76,7 @@ $config = array
|
|
|
'default' => '',
|
|
|
'desc' => '所属数据源',
|
|
|
'match' => 'is_string',
|
|
|
- 'list' => true,
|
|
|
+ //'list' => true,
|
|
|
),
|
|
|
|
|
|
'type_id' => array
|
|
@@ -74,8 +85,8 @@ $config = array
|
|
|
'name' => '数据源id',
|
|
|
'default' => '',
|
|
|
'desc' => '数据源id',
|
|
|
- 'match' => 'is_numeric',
|
|
|
- 'list' => true,
|
|
|
+ //'match' => 'is_numeric',
|
|
|
+ //'list' => true,
|
|
|
),
|
|
|
|
|
|
'info_id' => array
|
|
@@ -85,8 +96,30 @@ $config = array
|
|
|
'default' => '',
|
|
|
'desc' => '商品ID',
|
|
|
'match' => 'is_numeric',
|
|
|
- 'update' => 'text',
|
|
|
- 'list' => true,
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'platform' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '平台',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '平台',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'option' => $platform,
|
|
|
+ 'search' => 'select',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'shape' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '形态',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '形态',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'option' => $shape,
|
|
|
+ 'search' => 'select',
|
|
|
),
|
|
|
|
|
|
'sku_id' => array
|
|
@@ -96,8 +129,8 @@ $config = array
|
|
|
'default' => '',
|
|
|
'desc' => '商品SKUID',
|
|
|
'match' => 'is_numeric',
|
|
|
- 'update' => 'text',
|
|
|
- 'list' => true,
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
),
|
|
|
|
|
|
'order_id' => array
|
|
@@ -107,8 +140,9 @@ $config = array
|
|
|
'default' => '',
|
|
|
'desc' => '订单id',
|
|
|
'match' => 'is_string',
|
|
|
- 'update' => 'text',
|
|
|
- 'list' => true,
|
|
|
+ 'search' => 'text',
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
),
|
|
|
|
|
|
'name' => array
|
|
@@ -118,19 +152,20 @@ $config = array
|
|
|
'default' => '',
|
|
|
'desc' => '商品名称',
|
|
|
'match' => 'is_string',
|
|
|
- 'update' => 'text',
|
|
|
- 'list' => true,
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
),
|
|
|
|
|
|
'cash' => array
|
|
|
(
|
|
|
- 'type' => 'varchar-100',
|
|
|
+ 'type' => 'decimal-10,2',
|
|
|
'name' => '价格',
|
|
|
'default' => '',
|
|
|
'desc' => '价格',
|
|
|
- 'match' => 'is_string',
|
|
|
- 'update' => 'text',
|
|
|
- 'list' => true,
|
|
|
+ 'match' => 'option',
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
),
|
|
|
|
|
|
'num' => array
|
|
@@ -139,9 +174,90 @@ $config = array
|
|
|
'name' => '数量',
|
|
|
'default' => '',
|
|
|
'desc' => '数量',
|
|
|
+ 'match' => 'option',
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'mode' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '配送方式',
|
|
|
+ 'default' => '-1',
|
|
|
+ 'desc' => '配送方式',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'search' => 'select',
|
|
|
+ 'option' => $mode,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'username' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-100',
|
|
|
+ 'name' => '联系人',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '详细地址',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'mobile' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-100',
|
|
|
+ 'name' => '联系电话',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '联系电话',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'area_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-500',
|
|
|
+ 'name' => '地区',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '地区',
|
|
|
'match' => 'is_string',
|
|
|
- 'update' => 'text',
|
|
|
+ 'search' => 'linkage',
|
|
|
+ //'update' => 'linkage',
|
|
|
+ 'option' => Dever::url('api.get', 'area'),
|
|
|
+ //'show' => 'mode=1',
|
|
|
+ //'list' => 'Dever::load("area/api.string", "{area_id}")',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'address' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-1000',
|
|
|
+ 'name' => '详细地址',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '详细地址',
|
|
|
+ 'match' => 'option',
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'store_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '自提点',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '自提点',
|
|
|
+ 'match' => 'option',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'confirm' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '确认收货',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '确认收货',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'option' => $confirm,
|
|
|
'list' => true,
|
|
|
+ 'edit' => true,
|
|
|
),
|
|
|
|
|
|
'freight_id' => array
|
|
@@ -151,31 +267,37 @@ $config = array
|
|
|
'default' => '',
|
|
|
'desc' => '运费模板',
|
|
|
'match' => 'is_string',
|
|
|
- 'update' => 'text',
|
|
|
),
|
|
|
|
|
|
'freight_price' => array
|
|
|
(
|
|
|
- 'type' => 'varchar-100',
|
|
|
+ 'type' => 'decimal-10,2',
|
|
|
'name' => '运费',
|
|
|
'default' => '',
|
|
|
'desc' => '运费',
|
|
|
- 'match' => 'is_string',
|
|
|
+ 'match' => 'option',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'price' => array
|
|
|
+ (
|
|
|
+ 'type' => 'decimal-10,2',
|
|
|
+ 'name' => '最终付款价格',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '最终付款价格',
|
|
|
+ 'match' => 'option',
|
|
|
'update' => 'text',
|
|
|
- 'list' => true,
|
|
|
),
|
|
|
|
|
|
'system_source' => array
|
|
|
(
|
|
|
'type' => 'tinyint-1',
|
|
|
- 'name' => '所属平台',
|
|
|
+ 'name' => '所属终端',
|
|
|
'default' => '1',
|
|
|
- 'desc' => '所属平台',
|
|
|
+ 'desc' => '所属终端',
|
|
|
'match' => 'is_numeric',
|
|
|
'option' => $system_source,
|
|
|
- 'update' => 'radio',
|
|
|
+ //'update' => 'radio',
|
|
|
'search' => 'select',
|
|
|
- 'list' => true,
|
|
|
),
|
|
|
|
|
|
'status' => array
|
|
@@ -185,6 +307,10 @@ $config = array
|
|
|
'default' => '1',
|
|
|
'desc' => '订单状态',
|
|
|
'match' => 'is_numeric',
|
|
|
+ //'update' => 'radio',
|
|
|
+ 'option' => $status,
|
|
|
+ 'search' => 'select',
|
|
|
+ 'list' => true,
|
|
|
),
|
|
|
|
|
|
'state' => array
|
|
@@ -196,23 +322,36 @@ $config = array
|
|
|
'match' => 'is_numeric',
|
|
|
),
|
|
|
|
|
|
+ 'pay_time' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '付款时间',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '付款时间',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'search' => 'date',
|
|
|
+ 'list' => '"{pay_time}" ? date("Y-m-d H:i:s", {pay_time}) : ""',
|
|
|
+ //'update' => 'date',
|
|
|
+ //'callback' => 'maketime',
|
|
|
+ ),
|
|
|
+
|
|
|
'cdate' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|
|
|
- 'name' => '发布时间',
|
|
|
+ 'name' => '申请时间',
|
|
|
'match' => array('is_numeric', time()),
|
|
|
'desc' => '',
|
|
|
# 只有insert时才生效
|
|
|
'insert' => true,
|
|
|
- //'search' => 'date',
|
|
|
- //'list' => 'date("Y-m-d H:i:s", {cdate})',
|
|
|
+ 'search' => 'date',
|
|
|
+ 'list' => 'date("Y-m-d H:i:s", {cdate})',
|
|
|
),
|
|
|
),
|
|
|
|
|
|
'manage' => array
|
|
|
(
|
|
|
'insert' => false,
|
|
|
- 'edit' => false,
|
|
|
+ //'edit' => false,
|
|
|
'delete' => false,
|
|
|
),
|
|
|
|