import_log.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <?php
  2. $type = array
  3. (
  4. 2 => '直推人数错误',
  5. 3 => '团队业绩错误',
  6. 4 => '地区导入提醒',
  7. 5 => '新系统不存在该地区',
  8. 6 => '金额异常',
  9. 7 => '创客名额',
  10. 8 => '角色金额不正确',
  11. 9 => '区域异常',
  12. );
  13. $status = array
  14. (
  15. 1 => '待处理',
  16. 2 => '已处理',
  17. );
  18. $role = function()
  19. {
  20. $array = array(
  21. 0 => array
  22. (
  23. 'id' => 0,
  24. 'name' => '选择角色',
  25. ),
  26. );
  27. $data = Dever::load('setting/lib/manage.role');
  28. if($data)
  29. {
  30. $array += $data;
  31. }
  32. return $array;
  33. };
  34. return array
  35. (
  36. # 表名
  37. 'name' => 'import_log',
  38. # 显示给用户看的名称
  39. 'lang' => '导入对比记录',
  40. 'order' => 9,
  41. 'menu' => false,
  42. # 数据结构
  43. 'struct' => array
  44. (
  45. 'id' => array
  46. (
  47. 'type' => 'int-11',
  48. 'name' => 'ID',
  49. 'default' => '',
  50. 'desc' => '',
  51. 'match' => 'is_numeric',
  52. 'search' => 'order',
  53. 'update' => 'hidden',
  54. //'list' => true,
  55. ),
  56. 'mid' => array
  57. (
  58. 'type' => 'int-11',
  59. 'name' => '代理商姓名/手机号',
  60. 'default' => '-1',
  61. 'desc' => '代理商',
  62. 'match' => 'is_string',
  63. 'update' => 'text',
  64. 'search' => array
  65. (
  66. 'api' => 'agent/member-getSearch',
  67. 'col' => 'col',
  68. 'result' => 'id',
  69. 'search' => 'mid',
  70. ),
  71. //'list_name' => '姓名',
  72. //'list' => 'Dever::load("agent/lib/member.getOne", {mid}, "agent/member", true)',
  73. //'list_order' => 1,
  74. ),
  75. 'agent-member-name' => array
  76. (
  77. 'type' => 'int-11',
  78. 'name' => '姓名',
  79. 'default' => '',
  80. 'desc' => '姓名',
  81. 'match' => 'is_numeric',
  82. 'sync' => array('mid', 'id'),
  83. 'list' => true,
  84. ),
  85. 'agent-member-mobile' => array
  86. (
  87. 'type' => 'int-11',
  88. 'name' => '手机号',
  89. 'default' => '',
  90. 'desc' => '手机号',
  91. 'match' => 'is_numeric',
  92. 'sync' => array('mid', 'id'),
  93. 'list' => true,
  94. ),
  95. 'agent-member-role' => array
  96. (
  97. 'type' => 'int-11',
  98. 'name' => '代理角色',
  99. 'default' => '',
  100. 'desc' => '代理角色',
  101. 'match' => 'is_numeric',
  102. 'search' => array
  103. (
  104. 'api' => 'agent/member-all',
  105. 'col' => 'role',
  106. 'result' => 'id',
  107. 'search' => 'mid',
  108. 'option' => $role,
  109. ),
  110. 'sync' => array('mid', 'id'),
  111. 'list' => 'Dever::load("setting/role-one#name", "{agent-member-role}")',
  112. ),
  113. 'type' => array
  114. (
  115. 'type' => 'tinyint-1',
  116. 'name' => '类型',
  117. 'default' => '1',
  118. 'desc' => '类型',
  119. 'match' => 'is_numeric',
  120. 'search' => 'select',
  121. 'option' => $type,
  122. 'update' => 'radio',
  123. 'control' => 'type',
  124. 'list' => true,
  125. ),
  126. 'before' => array
  127. (
  128. 'type' => 'varchar-200',
  129. 'name' => '旧系统数据',
  130. 'default' => '',
  131. 'desc' => '旧系统数据',
  132. 'match' => 'is_numeric',
  133. 'update' => 'text',
  134. 'list' => true,
  135. ),
  136. 'after' => array
  137. (
  138. 'type' => 'varchar-200',
  139. 'name' => '导入后数据',
  140. 'default' => '',
  141. 'desc' => '导入后数据',
  142. 'match' => 'is_numeric',
  143. 'update' => 'text',
  144. 'list' => '{type} == 5 ? "无对应关系,无法导入" : "{after}"',
  145. ),
  146. 'status' => array
  147. (
  148. 'type' => 'tinyint-1',
  149. 'name' => '状态',
  150. 'default' => '1',
  151. 'desc' => '状态',
  152. 'match' => 'is_numeric',
  153. 'option' => $status,
  154. 'search' => 'select',
  155. 'list' => true,
  156. 'edit' => true,
  157. ),
  158. 'state' => array
  159. (
  160. 'type' => 'tinyint-1',
  161. 'name' => '状态',
  162. 'default' => '1',
  163. 'desc' => '请选择状态',
  164. 'match' => 'is_numeric',
  165. ),
  166. 'cdate' => array
  167. (
  168. 'type' => 'int-11',
  169. 'name' => '升级时间',
  170. 'match' => array('is_numeric', time()),
  171. 'desc' => '',
  172. # 只有insert时才生效
  173. 'insert' => true,
  174. //'search' => 'date',
  175. //'list' => 'date("Y-m-d H:i", {cdate})',
  176. //'list_order' => 2,
  177. ),
  178. ),
  179. 'manage' => array
  180. (
  181. 'edit' => false,
  182. 'insert' => false,
  183. //'delete' => false,
  184. 'excel' => true,
  185. ),
  186. 'request' => array
  187. (
  188. ),
  189. );