info_refund.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'info_refund',
  6. # 显示给用户看的名称
  7. 'lang' => '活动退款记录',
  8. # 后台菜单排序
  9. 'order' => 2,
  10. 'menu' => false,
  11. 'start' => array
  12. (
  13. 'insert' => 'active/lib/manage.insertInfoRefund',
  14. ),
  15. 'end' => array
  16. (
  17. 'insert' => 'active/lib/manage.updateInfoRefund',
  18. // 'update' => 'active/lib/manage.updateInfoRefund',
  19. ),
  20. # 数据结构
  21. 'struct' => array
  22. (
  23. 'id' => array
  24. (
  25. 'type' => 'int-11',
  26. 'name' => 'ID',
  27. 'default' => '',
  28. 'desc' => '',
  29. 'match' => 'is_numeric',
  30. 'search' => 'order',
  31. 'list' => true,
  32. 'order' => 'desc',
  33. ),
  34. 'order_id' => array
  35. (
  36. 'type' => 'int-11',
  37. 'name' => '订单id',
  38. 'default' => '-1',
  39. 'desc' => '订单id',
  40. 'match' => 'is_string',
  41. 'value' => Dever::input('search_option_order_id'),
  42. 'update' => 'hidden',
  43. // 'search' => 'text',
  44. // 'list' => "Dever::load('active/lib/manage.active',{active_id})",
  45. ),
  46. 'num' => array
  47. (
  48. 'type' => 'int-11',
  49. 'name' => '退款数量-单位:张',
  50. 'default' => '0',
  51. 'desc' => '限购数量',
  52. 'match' => 'option',
  53. 'update' => 'text',
  54. // 'search' => 'fulltext',
  55. // 'list' => true,
  56. ),
  57. 'audit_admin' => array
  58. (
  59. 'type' => 'int-11',
  60. 'name' => '退款操作人',
  61. 'default' => '',
  62. 'match' => 'is_numeric',
  63. 'desc' => '退款操作人',
  64. // 'list' => '"{audit_admin}" > 0 ? Dever::load("manage/admin-find#username", {audit_admin}) : "-"',
  65. ),
  66. 'state' => array
  67. (
  68. 'type' => 'tinyint-1',
  69. 'name' => '状态',
  70. 'default' => '1',
  71. 'desc' => '请选择状态',
  72. 'match' => 'is_numeric',
  73. ),
  74. 'cdate' => array
  75. (
  76. 'type' => 'int-11',
  77. 'name' => '退款日期',
  78. 'match' => array('is_numeric', time()),
  79. 'desc' => '',
  80. # 只有insert时才生效
  81. 'insert' => true,
  82. 'search' => 'day',
  83. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  84. 'list_order' => 5,
  85. ),
  86. ),
  87. 'manage' => array
  88. (
  89. 'insert' => false,
  90. 'delete' => false,
  91. 'edit' => false,
  92. ),
  93. 'request' => array
  94. (
  95. 'getAll' => array
  96. (
  97. # 匹配的正则或函数 选填项
  98. 'option' => array
  99. (
  100. 'join_id' => 'yes',
  101. 'state' => 1,
  102. ),
  103. 'type' => 'all',
  104. 'order' => array('cdate' => 'desc'),
  105. 'col' => '*',
  106. ),
  107. ),
  108. );