|
@@ -1,13 +1,16 @@
|
|
|
<?php
|
|
|
-
|
|
|
-$system_source = Dever::config('base')->system_source;
|
|
|
|
|
|
-$status = Dever::config('base', 'pay')->pay['status'];
|
|
|
+$pay_status = Dever::config('base', 'pay')->pay['status'];
|
|
|
|
|
|
-$source = array
|
|
|
+$status = array
|
|
|
(
|
|
|
- 1 => '仓库',
|
|
|
- 2 => '门店',
|
|
|
+ 1 => '待支付',
|
|
|
+ 2 => '待审核',
|
|
|
+ 3 => '待发货',
|
|
|
+ 4 => '待收货确认',
|
|
|
+ 5 => '已完成',
|
|
|
+ 6 => '已完成(有退款)',
|
|
|
+ 7 => '已取消',
|
|
|
);
|
|
|
|
|
|
return array
|
|
@@ -16,7 +19,7 @@ return array
|
|
|
'name' => 'order',
|
|
|
|
|
|
'lang' => '订货单',
|
|
|
- 'order' => 1,
|
|
|
+ 'order' => 99,
|
|
|
'menu' => false,
|
|
|
|
|
|
'struct' => array
|
|
@@ -31,18 +34,6 @@ return array
|
|
|
'match' => 'is_numeric',
|
|
|
'search' => 'order',
|
|
|
|
|
|
- ),
|
|
|
-
|
|
|
- 'order_id' => array
|
|
|
- (
|
|
|
- 'type' => 'varchar-100',
|
|
|
- 'name' => '支付订单ID',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '付款订单id',
|
|
|
- 'match' => 'is_string',
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
),
|
|
|
|
|
|
'factory_id' => array
|
|
@@ -52,20 +43,47 @@ return array
|
|
|
'default' => '',
|
|
|
'desc' => '所属工厂',
|
|
|
'match' => 'is_numeric',
|
|
|
- 'update' => 'select',
|
|
|
- 'option' => $factory,
|
|
|
- 'list' => 'Dever::load("factory/info-find#name", {factory_id})';
|
|
|
+ 'update' => 'hidden',
|
|
|
+ 'value' => Dever::input('search_option_factory_id'),
|
|
|
+ 'list' => 'Dever::load("factory/info-find#name", {factory_id})',
|
|
|
),
|
|
|
|
|
|
- 'buy_num' => array
|
|
|
+ 'store_id' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|
|
|
- 'name' => '购买数量',
|
|
|
+ 'name' => '所属仓库',
|
|
|
+ 'default' => '-1',
|
|
|
+ 'desc' => '所属仓库',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'list' => 'Dever::load("store/info-find#name", {store_id})',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'store_order_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '仓库订单id',
|
|
|
'default' => '',
|
|
|
- 'desc' => '购买数量',
|
|
|
+ 'desc' => '仓库订单id',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'shop_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '所属门店',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '所属门店',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'list' => 'Dever::load("shop/info-find#name", {shop_id})',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'shop_order_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '门店订单id',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '门店订单id',
|
|
|
'match' => 'is_numeric',
|
|
|
-
|
|
|
-
|
|
|
),
|
|
|
|
|
|
'name' => array
|
|
@@ -76,35 +94,100 @@ return array
|
|
|
'desc' => '订单名称',
|
|
|
'match' => 'is_string',
|
|
|
'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'order_num' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-100',
|
|
|
+ 'name' => '订单编号',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '订单编号',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'text',
|
|
|
'search' => 'fulltext',
|
|
|
- 'list_name' => '订单信息',
|
|
|
- 'list' => 'Dever::load("user/lib/manage.showOrderUser", "{id}")',
|
|
|
+ 'list' => true,
|
|
|
),
|
|
|
|
|
|
- 'cash' => array
|
|
|
+ 'price' => array
|
|
|
(
|
|
|
'type' => 'varchar-50',
|
|
|
- 'name' => '支付金额',
|
|
|
+ 'name' => '购买价格',
|
|
|
'default' => '',
|
|
|
- 'desc' => '支付金额',
|
|
|
+ 'desc' => '购买价格',
|
|
|
'match' => 'option',
|
|
|
'update' => 'text',
|
|
|
'list' => true,
|
|
|
),
|
|
|
|
|
|
- 'status' => array
|
|
|
+ 'num' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '购买数量',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '购买数量',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'search' => 'select',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'pay_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-100',
|
|
|
+ 'name' => '支付订单ID',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '付款订单id',
|
|
|
+ 'match' => 'is_string',
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'pay_status' => array
|
|
|
(
|
|
|
'type' => 'tinyint-1',
|
|
|
- 'name' => '订单状态',
|
|
|
+ 'name' => '支付状态',
|
|
|
'default' => '1',
|
|
|
- 'desc' => '请选择订单状态',
|
|
|
+ 'desc' => '请选择支付状态',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'option' => $pay_status,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'pay_price' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-50',
|
|
|
+ 'name' => '付款金额',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '付款金额',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'info' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-300',
|
|
|
+ 'name' => '订单备注',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '订单备注',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'textarea',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'note' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '是否发送状态提醒-1未发送,2已发送',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '请选择状态',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'notice' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '模板消息提醒次数',
|
|
|
+ 'default' => '0',
|
|
|
+ 'desc' => '模板消息提醒次数',
|
|
|
'match' => 'is_numeric',
|
|
|
- 'option' => $status,
|
|
|
- 'search' => 'select',
|
|
|
- 'update' => 'radio',
|
|
|
- 'list' => true,
|
|
|
- 'list' => 'Dever::load("user/lib/manage.showOrderStatus", "{id}", "ticket")',
|
|
|
- 'control' => 'status',
|
|
|
),
|
|
|
|
|
|
'tk_pic' => array
|
|
@@ -153,54 +236,6 @@ return array
|
|
|
|
|
|
),
|
|
|
|
|
|
- 'info' => array
|
|
|
- (
|
|
|
- 'type' => 'varchar-300',
|
|
|
- 'name' => '订单备注',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '订单备注',
|
|
|
- 'match' => 'option',
|
|
|
- 'update' => 'textarea',
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- ),
|
|
|
-
|
|
|
- 'mobile' => array
|
|
|
- (
|
|
|
- 'type' => 'varchar-300',
|
|
|
- 'name' => '下单手机号',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '手机号',
|
|
|
- 'match' => 'option',
|
|
|
-
|
|
|
- 'search' => array
|
|
|
- (
|
|
|
- 'api' => 'passport/user-all',
|
|
|
- 'col' => 'mobile',
|
|
|
- 'result' => 'id',
|
|
|
- 'search' => 'uid',
|
|
|
- ),
|
|
|
- ),
|
|
|
-
|
|
|
- 'note' => array
|
|
|
- (
|
|
|
- 'type' => 'tinyint-1',
|
|
|
- 'name' => '是否发送状态提醒-1未发送,2已发送',
|
|
|
- 'default' => '1',
|
|
|
- 'desc' => '请选择状态',
|
|
|
- 'match' => 'is_numeric',
|
|
|
- ),
|
|
|
-
|
|
|
- 'notice' => array
|
|
|
- (
|
|
|
- 'type' => 'int-11',
|
|
|
- 'name' => '模板消息提醒次数',
|
|
|
- 'default' => '0',
|
|
|
- 'desc' => '模板消息提醒次数',
|
|
|
- 'match' => 'is_numeric',
|
|
|
- ),
|
|
|
-
|
|
|
'state' => array
|
|
|
(
|
|
|
'type' => 'tinyint-1',
|
|
@@ -224,15 +259,6 @@ return array
|
|
|
),
|
|
|
),
|
|
|
|
|
|
- 'top' => Dever::config('base')->top,
|
|
|
-
|
|
|
-
|
|
|
- 'top_option' => array
|
|
|
- (
|
|
|
- 'value' => $auth,
|
|
|
- 'col' => 'cate_id',
|
|
|
- ),
|
|
|
-
|
|
|
'manage' => array
|
|
|
(
|
|
|
'delete' => false,
|
|
@@ -245,143 +271,13 @@ return array
|
|
|
),
|
|
|
|
|
|
'list_button' => array(
|
|
|
- 'edit' => array('退款', 'status,tk_time,tk_pic,tk_desc,tk_admin', '{status} == 2'),
|
|
|
+
|
|
|
|
|
|
),
|
|
|
),
|
|
|
|
|
|
'request' => array
|
|
|
(
|
|
|
- 'getList' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'option' => array
|
|
|
- (
|
|
|
- 'info_id' => 'yes',
|
|
|
- 'uid' => 'yes',
|
|
|
- 'status' => 'yes',
|
|
|
- 'state' => 1,
|
|
|
- ),
|
|
|
- 'type' => 'all',
|
|
|
- 'order' => array('cdate' => 'desc'),
|
|
|
- 'page' => array(5, 'list'),
|
|
|
- 'col' => '*',
|
|
|
- ),
|
|
|
-
|
|
|
- 'getAll' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'option' => array
|
|
|
- (
|
|
|
- 'uid' => 'yes',
|
|
|
- 'status' => array('1', '!='),
|
|
|
- 'state' => 1,
|
|
|
- ),
|
|
|
- 'type' => 'all',
|
|
|
- 'order' => array('cdate' => 'desc'),
|
|
|
- 'page' => array(10, 'list'),
|
|
|
- 'col' => '*',
|
|
|
- ),
|
|
|
-
|
|
|
- 'getYes' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'option' => array
|
|
|
- (
|
|
|
- 'info_id' => 'yes',
|
|
|
- 'state' => 1,
|
|
|
- ),
|
|
|
- 'type' => 'all',
|
|
|
- 'order' => array('cdate' => 'desc'),
|
|
|
- 'col' => '*',
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'getDataByTime' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'option' => array
|
|
|
- (
|
|
|
- 'cdate' => array('yes', '>='),
|
|
|
- 'notice' => 'yes',
|
|
|
- 'note' => 'yes',
|
|
|
- 'state' => 1,
|
|
|
- ),
|
|
|
- 'type' => 'all',
|
|
|
- 'order' => array('cdate' => 'desc'),
|
|
|
- 'col' => '*',
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'getBuy' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'option' => array
|
|
|
- (
|
|
|
- 'status' => 'yes',
|
|
|
- 'info_id' => 'yes',
|
|
|
- 'order_id' => 'yes',
|
|
|
- 'uid' => 'yes',
|
|
|
- 'state' => 1,
|
|
|
- ),
|
|
|
- 'type' => 'all',
|
|
|
- 'order' => array('id' => 'desc'),
|
|
|
- 'col' => '*',
|
|
|
- ),
|
|
|
-
|
|
|
- 'getMyAll' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'option' => array
|
|
|
- (
|
|
|
- 'uid' => 'yes',
|
|
|
- 'status' => 'yes',
|
|
|
- 'cate_id' => 'yes',
|
|
|
- 'state' => 1,
|
|
|
- ),
|
|
|
- 'type' => 'all',
|
|
|
- 'order' => array('id' => 'desc'),
|
|
|
- 'page' => array(10, 'list'),
|
|
|
- 'col' => 'id,order_id,name,buy_num,cdate,cash,info_id,buy_id',
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'drop' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'where' => array
|
|
|
- (
|
|
|
- 'time' => array('yes-cdate', '<='),
|
|
|
- 'status' => 1,
|
|
|
- 'state' => 1,
|
|
|
- ),
|
|
|
- 'type' => 'delete',
|
|
|
- 'col' => 'id,order_id',
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'getAllByDate' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'where' => array
|
|
|
- (
|
|
|
- 'time' => array('yes-cdate', '<='),
|
|
|
- ),
|
|
|
- 'type' => 'all',
|
|
|
- 'col' => 'id,order_id',
|
|
|
- ),
|
|
|
-
|
|
|
- 'getNum' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'option' => array
|
|
|
- (
|
|
|
- 'object_id' => 'yes',
|
|
|
- 'info_id' => 'yes',
|
|
|
- 'state' => 1,
|
|
|
- ),
|
|
|
- 'type' => 'one',
|
|
|
- 'col' => 'sum(buy_num) as buy_num',
|
|
|
- ),
|
|
|
+
|
|
|
),
|
|
|
);
|