Your Name 3 år sedan
förälder
incheckning
78394b7c05
2 ändrade filer med 11 tillägg och 0 borttagningar
  1. 1 0
      learn/active/database/order.php
  2. 10 0
      learn/active/lib/Manage.php

+ 1 - 0
learn/active/database/order.php

@@ -7,6 +7,7 @@ $list_button = array();
     // $list_button['oper'] = array('全额退款', '"active/lib/manage.refund?id={id}"', '"{status}" == 2 && "{code_num}" < 0');
 // }
 $list_button['list'] = array('查看详情','"info_code&project=active&id={id}&page_type=1&[refer]"');
+$list_button['fast'] = array('备注', '"order&where_id={id}&col=remark"');
 $pay_type = array
 (
     1 => '在线支付',

+ 10 - 0
learn/active/lib/Manage.php

@@ -296,6 +296,7 @@ Class Manage
                 (
                     array('购买数量', $info['num']),
                     array('支付金额', $info['price']),
+                    array('备注',$info['remark']),
                 ),
                 array
                 (
@@ -329,6 +330,15 @@ Class Manage
             );
         }
         $button = array();
+        if (Dever::load('manage/auth')->checkFunc('active.order', 'edit', '备注')) {
+            $purl = Dever::url('project/database/update?project=active&table=order&where_id='.$info['id'].'&col=remark', 'manage');
+            $button[] = array
+            (
+                'type' => 'edit',
+                'link' => $purl,
+                'name' => '备注',
+            );
+        }
         if ($info['status'] == 2 && $info['code_num'] < 1 && time() < $active['act_start'] && $active['refund_type'] == 2 ) {
             
             if (Dever::load('manage/auth')->checkFunc('active.order', 'editrefund', '全额退款')) {