option_account.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. <?php
  2. $type = array
  3. (
  4. 1 => '零售店',
  5. // 2 => '已签署',
  6. // 3 => '已作废',
  7. );
  8. $status = array
  9. (
  10. 1 => '待交付',
  11. 2 => '已交付',
  12. // 3 => '已作废',
  13. );
  14. $manage_audit = array
  15. (
  16. 1 => '待财务终审',
  17. 2 => '交付确认',
  18. 3 => '已完成',
  19. 4 => '驳回',
  20. );
  21. $audit = array
  22. (
  23. 1 => '审核通过',
  24. 2 => '拒绝',
  25. );
  26. $col = Dever::input('col');
  27. return array
  28. (
  29. # 表名
  30. 'name' => 'option_account',
  31. # 显示给用户看的名称
  32. 'lang' => '期权账户管理',
  33. 'order' => 1,
  34. // 'config_type' => $type,
  35. 'config_status' => $status,
  36. 'end' => array
  37. (
  38. 'update' => 'agent/lib/option_account.updateAccount',
  39. 'insert' => 'agent/lib/option_account.updateAccount',
  40. ),
  41. # 数据结构
  42. 'struct' => array
  43. (
  44. 'id' => array
  45. (
  46. 'type' => 'int-11',
  47. 'name' => '受益人姓名/电话',
  48. 'default' => '',
  49. 'desc' => '',
  50. 'match' => 'is_numeric',
  51. 'search' => 'order',
  52. 'search' => array
  53. (
  54. 'api' => 'agent/option_account-getSearch',
  55. 'col' => 'col',
  56. 'result' => 'id',
  57. 'search' => 'id',
  58. ),
  59. // 'update' => 'hidden',
  60. //'list' => true,
  61. ),
  62. 'name' => array
  63. (
  64. 'type' => 'varchar-100',
  65. 'name' => '受益人姓名',
  66. 'default' => '',
  67. 'desc' => '姓名',
  68. 'match' => 'is_string',
  69. 'update' => 'text',
  70. 'list_name' => '受益人',
  71. 'list' => 'Dever::load("agent/lib/option_account.show#list",{id})',
  72. ),
  73. 'mobile' => array
  74. (
  75. 'type' => 'bigint-11',
  76. 'name' => '受益人电话',
  77. 'default' => '',
  78. 'desc' => '请输入受益人电话',
  79. 'match' => Dever::rule('mobile'),
  80. 'update' => 'text',
  81. // 'search' => 'fulltext',
  82. // 'list' => true,
  83. ),
  84. 'idcard' => array
  85. (
  86. 'type' => 'varchar-32',
  87. 'name' => '身份证号码',
  88. 'default' => '',
  89. 'desc' => '身份证号码',
  90. 'match' => Dever::rule('idcard'),
  91. 'search' => 'fulltext',
  92. 'update' => 'text',
  93. ),
  94. 'area' => array
  95. (
  96. 'type' => 'varchar-500',
  97. 'name' => '门店地址',
  98. 'default' => '',
  99. 'desc' => '门店地址',
  100. 'match' => 'option',
  101. 'search' => 'linkage',
  102. 'update' => 'linkage',
  103. 'option' => Dever::url('api.get?level_total=4', 'area'),
  104. ),
  105. 'address' => array
  106. (
  107. 'type' => 'varchar-200',
  108. 'name' => '详细地址',
  109. 'default' => '',
  110. 'desc' => '地址',
  111. 'match' => 'is_string',
  112. 'update' => 'text',
  113. // 'list' => true,
  114. ),
  115. 'title' => array
  116. (
  117. 'type' => 'varchar-100',
  118. 'name' => '期权记录标题',
  119. 'default' => '',
  120. 'desc' => '期权记录标题',
  121. 'match' => 'is_string',
  122. 'update' => 'text',
  123. 'list' => true,
  124. ),
  125. 'desc' => array
  126. (
  127. 'type' => 'varchar-600',
  128. 'name' => '说明',
  129. 'default' => '',
  130. 'desc' => '记录说明',
  131. 'match' => 'option',
  132. 'update' => 'textarea',
  133. 'list' => true,
  134. ),
  135. 'type' => array
  136. (
  137. 'type' => 'tinyint-1',
  138. 'name' => '记录类型',
  139. 'default' => '1',
  140. 'desc' => '记录类型',
  141. 'match' => 'is_numeric',
  142. 'update' => 'radio',
  143. 'option' => $type,
  144. // 'search' => 'select',
  145. // 'list' => true,
  146. ),
  147. 'price' => array
  148. (
  149. 'type' => 'decimal-11,2',
  150. 'name' => '设备费用-单位:万元',
  151. 'default' => '0',
  152. 'desc' => '设备费用',
  153. 'match' => 'option',
  154. 'update' => 'text',
  155. 'list_name' => '资金记录明细(万元)',
  156. 'list' => 'Dever::load("agent/lib/option_account.show#price",{id})',
  157. ),
  158. 'zh_price' => array
  159. (
  160. 'type' => 'decimal-11,2',
  161. 'name' => '装修费用-单位:万元',
  162. 'default' => '0',
  163. 'desc' => '装修费用',
  164. 'match' => 'option',
  165. 'update' => 'text',
  166. // 'list' => true,
  167. ),
  168. 'zj_price' => array
  169. (
  170. 'type' => 'decimal-11,2',
  171. 'name' => '租金费用-单位:万元',
  172. 'default' => '0',
  173. 'desc' => '租金费用',
  174. 'match' => 'option',
  175. 'update' => 'text',
  176. // 'list' => true,
  177. ),
  178. 'other_price' => array
  179. (
  180. 'type' => 'decimal-11,2',
  181. 'name' => '其他费用-单位:万元',
  182. 'default' => '0',
  183. 'desc' => '其他费用',
  184. 'match' => 'option',
  185. 'update' => 'text',
  186. // 'list' => true,
  187. ),
  188. 'pic' => array
  189. (
  190. 'type' => 'text-255',
  191. 'name' => '上传凭证-门店租赁合同,支付凭证等',
  192. 'default' => '',
  193. 'desc' => '多张图片',
  194. 'match' => 'is_string',
  195. 'update' => 'images',
  196. 'key' => '1',
  197. // 'place' => '759*562',
  198. ),
  199. 'annex' => array
  200. (
  201. 'type' => 'text-800',
  202. 'name' => '上传附件',
  203. 'default' => '',
  204. 'desc' => '上传附件',
  205. 'match' => 'option',
  206. 'update' => 'upload',
  207. 'key' => '10',
  208. // 'place' => '759*562',
  209. ),
  210. 'status' => array
  211. (
  212. 'type' => 'tinyint-1',
  213. 'name' => '交付状态',
  214. 'default' => '1',
  215. 'desc' => '交付状态',
  216. 'match' => 'is_numeric',
  217. // 'update' => 'select',
  218. 'option' => $status,
  219. 'search' => 'select',
  220. 'list_name' => '交付状态<br/>交付时间',
  221. 'list' => 'Dever::load("agent/lib/option_account.show#date",{id})',
  222. ),
  223. 'jf_date' => array
  224. (
  225. 'type' => 'int-11',
  226. 'name' => '交付时间',
  227. 'match' => 'option',
  228. 'default' => '0',
  229. 'desc' => '',
  230. 'match' => 'is_numeric',
  231. // 'update' => 'day',
  232. 'search' => 'date',
  233. 'callback' => 'maketime',
  234. // 'list' => '{buy_date} > 0 ? date("Y-m-d H:i", {buy_date}) : "无"',
  235. ),
  236. 'audit_type' => array
  237. (
  238. 'type' => 'tinyint-1',
  239. 'name' => '审核状态',
  240. 'default' => '1',
  241. 'desc' => '审核状态',
  242. 'match' => 'is_numeric',
  243. // 'update' => 'select',
  244. 'option' => $manage_audit,
  245. 'search' => 'select',
  246. 'list_name' => '审核状态<br/>审核时间',
  247. 'list' => 'Dever::load("agent/lib/option_account.show#audit",{id})',
  248. ),
  249. 'audit_date' => array
  250. (
  251. 'type' => 'int-11',
  252. 'name' => '审核时间',
  253. 'match' => 'option',
  254. 'default' => '0',
  255. 'desc' => '',
  256. 'match' => 'is_numeric',
  257. // 'update' => 'day',
  258. 'search' => 'date',
  259. 'callback' => 'maketime',
  260. // 'list' => '{buy_date} > 0 ? date("Y-m-d H:i", {buy_date}) : "无"',
  261. ),
  262. 'audit' => array
  263. (
  264. 'type' => 'int-11',
  265. 'name' => '审核状态',
  266. 'default' => '1',
  267. 'desc' => '审核状态',
  268. 'match' => 'is_numeric',
  269. 'update' => $col ? 'radio' : false,
  270. 'option' => $audit,
  271. // 'search' => 'select',
  272. 'mul' => true,
  273. 'control' => 'audit',
  274. ),
  275. 'remark' => array
  276. (
  277. 'type' => 'varchar-600',
  278. 'name' => '备注',
  279. 'default' => '',
  280. 'desc' => '备注',
  281. 'match' => 'option',
  282. 'update' => 'textarea',
  283. // 'list' => '"{audit_desc}" ? "{audit_desc}" : "-"',
  284. // 'list_order' => 9,
  285. 'show' => 'audit=2',
  286. ),
  287. 'audit_desc' => array
  288. (
  289. 'type' => 'varchar-600',
  290. 'name' => '审核说明',
  291. 'default' => '',
  292. 'desc' => '审核说明',
  293. 'match' => 'is_string',
  294. 'update' => $col ? 'textarea' : false,
  295. // 'list' => '"{audit_desc}" ? "{audit_desc}" : "-"',
  296. // 'list_order' => 9,
  297. 'show' => 'audit=2',
  298. ),
  299. 'num' => array
  300. (
  301. 'type' => 'int-11',
  302. 'name' => '确认期权数-行权3年期。自门店注册日期开始计算。满一年30%,满两年35%,满三年35%',
  303. 'default' => '',
  304. 'desc' => '姓名',
  305. 'match' => 'is_numeric',
  306. 'update' => $col ? 'text' : false,
  307. 'show' => 'audit=1',
  308. ),
  309. 'audit_admin' => array
  310. (
  311. 'type' => 'int-11',
  312. 'name' => '添加人',
  313. 'default' => '',
  314. 'match' => 'is_numeric',
  315. 'desc' => '操作人',
  316. 'list' => '"{audit_admin}" > 0 ? Dever::load("manage/admin-find#username", {audit_admin}) : "-"',
  317. 'list_order' => 10,
  318. ),
  319. 'state' => array
  320. (
  321. 'type' => 'tinyint-1',
  322. 'name' => '状态',
  323. 'default' => '1',
  324. 'desc' => '请选择状态',
  325. 'match' => 'is_numeric',
  326. ),
  327. 'cdate' => array
  328. (
  329. 'type' => 'int-11',
  330. 'name' => '添加时间',
  331. 'match' => array('is_numeric', time()),
  332. 'desc' => '',
  333. # 只有insert时才生效
  334. 'insert' => true,
  335. // 'search' => 'date',
  336. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  337. 'list_order' => 11,
  338. ),
  339. ),
  340. 'manage' => array
  341. (
  342. // 'insert' => $insert,
  343. 'delete' => false,
  344. 'edit' => false,
  345. 'page_list' => 'option_account',
  346. // 'button' => $button,
  347. 'list_button' => array
  348. (
  349. 'list' => array('查看详情', '"option_account&project=agent&id={id}&page_type=1&[refer]"'),
  350. // 'list' => array('查看详情', 'Dever::load("agent/lib/option_account.list",{id})'),
  351. ),
  352. ),
  353. 'request' => array
  354. (
  355. 'getSearch' => array
  356. (
  357. # 匹配的正则或函数 选填项
  358. 'option' => array
  359. (
  360. 'col' => array('yes-mobile,name', 'like'),
  361. ),
  362. 'type' => 'all',
  363. 'col' => '*|id',
  364. ),
  365. ),
  366. );