|
@@ -72,6 +72,12 @@ $withdraw = array
|
|
2 => '已提现',
|
|
2 => '已提现',
|
|
);
|
|
);
|
|
|
|
|
|
|
|
+$shop_type = array
|
|
|
|
+(
|
|
|
|
+ 1 => '普通店',
|
|
|
|
+ 2 => '平台店',
|
|
|
|
+);
|
|
|
|
+
|
|
return array
|
|
return array
|
|
(
|
|
(
|
|
# 表名
|
|
# 表名
|
|
@@ -99,25 +105,53 @@ return array
|
|
//'list' => true,
|
|
//'list' => true,
|
|
),
|
|
),
|
|
|
|
|
|
|
|
+ 'shop-info-sid'=> array
|
|
|
|
+ (
|
|
|
|
+ 'name' => '门店编号',
|
|
|
|
+ 'default' => '',
|
|
|
|
+ 'desc' => '门店编号',
|
|
|
|
+ 'match' => 'option',
|
|
|
|
+ # 读取另外表的关联方式
|
|
|
|
+ 'sync' => array('shop_id', 'id'),
|
|
|
|
+ 'list' => true,
|
|
|
|
+ ),
|
|
|
|
+
|
|
'shop_id' => array
|
|
'shop_id' => array
|
|
(
|
|
(
|
|
'type' => 'int-11',
|
|
'type' => 'int-11',
|
|
- 'name' => '所属门店',
|
|
|
|
|
|
+ 'name' => '门店名称',
|
|
'default' => '',
|
|
'default' => '',
|
|
- 'desc' => '所属门店',
|
|
|
|
|
|
+ 'desc' => '门店名称',
|
|
'match' => 'is_numeric',
|
|
'match' => 'is_numeric',
|
|
'search' => 'select',
|
|
'search' => 'select',
|
|
'option' => $shop,
|
|
'option' => $shop,
|
|
'update' => 'hidden',
|
|
'update' => 'hidden',
|
|
'search' => 'hidden',
|
|
'search' => 'hidden',
|
|
|
|
+ 'search' => array
|
|
|
|
+ (
|
|
|
|
+ 'api' => 'shop/info-like',
|
|
|
|
+ 'col' => 'name',
|
|
|
|
+ 'result' => 'id',
|
|
|
|
+ ),
|
|
'value' => Dever::input('search_option_shop_id'),
|
|
'value' => Dever::input('search_option_shop_id'),
|
|
'list' => 'Dever::load("shop/info-one#name", {shop_id})',
|
|
'list' => 'Dever::load("shop/info-one#name", {shop_id})',
|
|
),
|
|
),
|
|
|
|
|
|
|
|
+ 'shop-info-type'=> array
|
|
|
|
+ (
|
|
|
|
+ 'name' => '门店类型',
|
|
|
|
+ 'default' => '',
|
|
|
|
+ 'desc' => '门店类型',
|
|
|
|
+ 'match' => 'option',
|
|
|
|
+ # 读取另外表的关联方式
|
|
|
|
+ 'sync' => array('shop_id', 'id'),
|
|
|
|
+ 'list' => 'Dever::load("shop/lib/manage.shopInfoType", {shop-info-type})',
|
|
|
|
+ ),
|
|
|
|
+
|
|
'uid' => array
|
|
'uid' => array
|
|
(
|
|
(
|
|
'type' => 'int-11',
|
|
'type' => 'int-11',
|
|
- 'name' => '购买人名称',
|
|
|
|
|
|
+ 'name' => '购买人',
|
|
'default' => '0',
|
|
'default' => '0',
|
|
'desc' => '请选择用户',
|
|
'desc' => '请选择用户',
|
|
'match' => 'is_numeric',
|
|
'match' => 'is_numeric',
|
|
@@ -201,15 +235,16 @@ return array
|
|
'desc' => '原价',
|
|
'desc' => '原价',
|
|
'match' => 'option',
|
|
'match' => 'option',
|
|
'update' => 'text',
|
|
'update' => 'text',
|
|
- //'list' => true,
|
|
|
|
|
|
+ 'list_name' => '合计金额',
|
|
|
|
+ 'list' => 'Dever::load("shop/lib/manage.getTotalCash", {id})',
|
|
),
|
|
),
|
|
|
|
|
|
'price' => array
|
|
'price' => array
|
|
(
|
|
(
|
|
'type' => 'varchar-50',
|
|
'type' => 'varchar-50',
|
|
- 'name' => '支付金额',
|
|
|
|
|
|
+ 'name' => '实付金额',
|
|
'default' => '0',
|
|
'default' => '0',
|
|
- 'desc' => '支付金额',
|
|
|
|
|
|
+ 'desc' => '实付金额',
|
|
'match' => 'option',
|
|
'match' => 'option',
|
|
'update' => 'text',
|
|
'update' => 'text',
|
|
'list' => 'Dever::load("cash/lib/set.getCash", "{price}")',
|
|
'list' => 'Dever::load("cash/lib/set.getCash", "{price}")',
|
|
@@ -229,11 +264,12 @@ return array
|
|
'refund_cash' => array
|
|
'refund_cash' => array
|
|
(
|
|
(
|
|
'type' => 'varchar-50',
|
|
'type' => 'varchar-50',
|
|
- 'name' => '退款合计金额',
|
|
|
|
|
|
+ 'name' => '已退订单金额',
|
|
'default' => '0',
|
|
'default' => '0',
|
|
- 'desc' => '退款合计金额',
|
|
|
|
|
|
+ 'desc' => '已退订单金额',
|
|
'match' => 'option',
|
|
'match' => 'option',
|
|
'update' => 'text',
|
|
'update' => 'text',
|
|
|
|
+ 'list' => true,
|
|
),
|
|
),
|
|
|
|
|
|
'refund_status' => array
|
|
'refund_status' => array
|
|
@@ -342,7 +378,9 @@ return array
|
|
'desc' => '配送类型',
|
|
'desc' => '配送类型',
|
|
'match' => 'is_numeric',
|
|
'match' => 'is_numeric',
|
|
'update' => 'radio',
|
|
'update' => 'radio',
|
|
|
|
+ 'search' => 'select',
|
|
'option' => $method,
|
|
'option' => $method,
|
|
|
|
+ 'list' => true,
|
|
),
|
|
),
|
|
|
|
|
|
'code' => array
|
|
'code' => array
|
|
@@ -357,11 +395,12 @@ return array
|
|
'pay_method' => array
|
|
'pay_method' => array
|
|
(
|
|
(
|
|
'type' => 'int-11',
|
|
'type' => 'int-11',
|
|
- 'name' => '支付类型',
|
|
|
|
|
|
+ 'name' => '订单类型',
|
|
'default' => '1',
|
|
'default' => '1',
|
|
- 'desc' => '支付类型',
|
|
|
|
|
|
+ 'desc' => '订单类型',
|
|
'match' => 'is_numeric',
|
|
'match' => 'is_numeric',
|
|
'update' => 'radio',
|
|
'update' => 'radio',
|
|
|
|
+ 'search' => 'select',
|
|
'option' => $pay_method,
|
|
'option' => $pay_method,
|
|
'list' => true,
|
|
'list' => true,
|
|
),
|
|
),
|
|
@@ -369,12 +408,13 @@ return array
|
|
'pay_type' => array
|
|
'pay_type' => array
|
|
(
|
|
(
|
|
'type' => 'int-11',
|
|
'type' => 'int-11',
|
|
- 'name' => '支付方式',
|
|
|
|
|
|
+ 'name' => '支付渠道',
|
|
'default' => '1',
|
|
'default' => '1',
|
|
- 'desc' => '支付方式',
|
|
|
|
|
|
+ 'desc' => '支付渠道',
|
|
'match' => 'is_numeric',
|
|
'match' => 'is_numeric',
|
|
'update' => 'radio',
|
|
'update' => 'radio',
|
|
'option' => $pay_type,
|
|
'option' => $pay_type,
|
|
|
|
+ 'list' => true,
|
|
),
|
|
),
|
|
|
|
|
|
'info' => array
|
|
'info' => array
|
|
@@ -398,12 +438,23 @@ return array
|
|
//'search' => 'select',
|
|
//'search' => 'select',
|
|
),
|
|
),
|
|
|
|
|
|
|
|
+ 'shop_type' => array
|
|
|
|
+ (
|
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
|
+ 'name' => '门店类型',
|
|
|
|
+ 'default' => '1',
|
|
|
|
+ 'desc' => '门店类型',
|
|
|
|
+ 'match' => 'is_numeric',
|
|
|
|
+ 'option' => $shop_type,
|
|
|
|
+ //'search' => 'select',
|
|
|
|
+ ),
|
|
|
|
+
|
|
'status' => array
|
|
'status' => array
|
|
(
|
|
(
|
|
'type' => 'tinyint-1',
|
|
'type' => 'tinyint-1',
|
|
- 'name' => '状态',
|
|
|
|
|
|
+ 'name' => '订单状态',
|
|
'default' => '1',
|
|
'default' => '1',
|
|
- 'desc' => '状态',
|
|
|
|
|
|
+ 'desc' => '订单状态',
|
|
'match' => 'is_numeric',
|
|
'match' => 'is_numeric',
|
|
'option' => $status_manage,
|
|
'option' => $status_manage,
|
|
'search' => 'select',
|
|
'search' => 'select',
|