dever 5 years ago
parent
commit
430075f713
2 changed files with 55 additions and 1 deletions
  1. 2 0
      config/base.php
  2. 53 1
      database/order.php

+ 2 - 0
config/base.php

@@ -17,6 +17,8 @@ $config['base'] = array
 			1 => '待支付',
 			2 => '已支付',
 			3 => '支付失败',
+			//4 => '申请退款',
+    		5 => '已退款',
 		),
 	),
 

+ 53 - 1
database/order.php

@@ -161,7 +161,7 @@ return array
 			'update'	=> 'radio',
 			'option'	=> $status,
 			'search'	=> 'select',
-			'list'		=> true,
+			'list'      => 'Dever::load("pay/lib/manage.showOrderStatus", "{id}")',
 			'control'	=> 'status',
 		),
 
@@ -176,6 +176,52 @@ return array
 			'show'		=> 'status=3',
 		),
 
+		'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',
+        ),
+
 		'param'		=> array
 		(
 			'type' 		=> 'text-255',
@@ -213,5 +259,11 @@ return array
 		'edit' => false,
 		'delete' => false,
 		'excel' => true,
+
+		/*
+		'list_button' => array(
+            'edit' => array('退款', 'status,tk_time,tk_pic,tk_desc,tk_admin', '{status} > 1'),
+        ),
+        */
 	),
 );