| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- <?php
- $pay_status = Dever::config('base', 'pay')->pay['status'];
- $status = array
- (
- 1 => '待支付',
- 2 => '待审核',
- 3 => '待发货',
- 4 => '待收货确认',
- 5 => '已完成',
- 6 => '已完成(有退款)',
- 7 => '已取消',
- );
- return array
- (
- # 表名
- 'name' => 'order',
- # 显示给用户看的名称
- 'lang' => '订货单',
- 'order' => 99,
- 'menu' => false,
- # 数据结构
- 'struct' => array
- (
-
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- 'search' => 'order',
- //'list' => true,
- ),
- 'factory_id' => array
- (
- 'type' => 'int-11',
- 'name' => '所属工厂',
- 'default' => '',
- 'desc' => '所属工厂',
- 'match' => 'is_numeric',
- 'update' => 'hidden',
- 'value' => Dever::input('search_option_factory_id'),
- 'list' => 'Dever::load("factory/info-find#name", {factory_id})',
- ),
- 'store_id' => array
- (
- 'type' => 'int-11',
- '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' => '仓库订单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
- (
- 'type' => 'varchar-80',
- 'name' => '订单名称',
- 'default' => '',
- 'desc' => '订单名称',
- 'match' => 'is_string',
- 'update' => 'text',
- ),
- 'order_num' => array
- (
- 'type' => 'varchar-100',
- 'name' => '订单编号',
- 'default' => '',
- 'desc' => '订单编号',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- ),
- 'price' => array
- (
- 'type' => 'varchar-50',
- 'name' => '购买价格',
- 'default' => '',
- 'desc' => '购买价格',
- 'match' => 'option',
- 'update' => 'text',
- 'list' => true,
- ),
- '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',
- //'update' => 'text',
- //'search' => 'fulltext',
- //'list' => true,
- ),
- 'pay_status' => array
- (
- 'type' => 'tinyint-1',
- 'name' => '支付状态',
- 'default' => '1',
- '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',
- ),
- 'tk_pic' => array
- (
- 'type' => 'varchar-150',
- 'name' => '退款截图',
- 'default' => '',
- 'desc' => '退款截图',
- 'match' => 'is_string',
- 'update' => 'image',
- 'key' => 1
- ),
- 'tk_time' => array
- (
- 'type' => 'int-11',
- 'name' => '退款时间',
- 'default' => '',
- 'desc' => '退款时间',
- 'match' => 'option',
- //'list' => true,
- //'update' => 'date',
- 'callback' => 'maketime',
- 'show' => 'status=5',
- ),
- 'tk_admin' => array
- (
- 'type' => 'int-11',
- 'name' => '退款审核人',
- 'default' => '1',
- 'desc' => '退款审核人',
- 'match' => 'option',
- //'list' => true,
- 'show' => 'status=5',
- ),
- 'tk_desc' => array
- (
- 'type' => 'varchar-300',
- 'name' => '退款备注',
- 'default' => '',
- 'desc' => '退款备注',
- 'match' => 'option',
- 'update' => 'textarea',
- //'show' => 'status=5',
- ),
- '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,
- 'search' => 'date',
- 'list' => 'date("Y-m-d H:i:s", {cdate})',
- //'list' => 'Dever::load("service/lib/manage.showOrderTime", "{id}")',
- ),
- ),
- 'manage' => array
- (
- 'delete' => false,
- 'edit' => false,
- 'insert' => false,
- 'button' => array
- (
- //'导出订单' => array('location', 'user/lib/manage.out'),
- ),
- 'list_button' => array(
- //'edit' => array('退款', 'status,tk_time,tk_pic,tk_desc,tk_admin', '{status} == 2'),
- //'delete' => array('删除', '', '{status} == 1'),
- ),
- ),
- 'request' => array
- (
-
- ),
- );
|