order.php 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048
  1. <?php
  2. $role = function()
  3. {
  4. $array = array();
  5. $data = Dever::load('setting/role-state');
  6. if($data)
  7. {
  8. $array += $data;
  9. }
  10. return $array;
  11. };
  12. $source_id = function()
  13. {
  14. $array = array
  15. (
  16. -1 => array
  17. (
  18. 'id' => '-1',
  19. 'name' => '无来源',
  20. ),
  21. );
  22. $data = Dever::load('setting/source-state');
  23. if($data)
  24. {
  25. $array += $data;
  26. }
  27. return $array;
  28. };
  29. $status = array
  30. (
  31. -2 => array('name' => '待签名', 'style' => 'font-weight:bold;color:#00FFFF'),
  32. 1 => array('name' => '待业务初审', 'style' => 'font-weight:bold;color:#436EEE'),
  33. 2 => array('name' => '待财务终审', 'style' => 'font-weight:bold;color:#003366'),
  34. 3 => array('name' => '待权益发放', 'style' => 'font-weight:bold;color:#993333'),
  35. 4 => array('name' => '已完成', 'style' => 'font-weight:bold;color:green'),
  36. 5 => array('name' => '驳回', 'style' => 'font-weight:bold;color:#CD3700'),
  37. 6 => array('name' => '挂起', 'style' => 'font-weight:bold;color:#436EEE'),
  38. 7 => array('name' => '关闭', 'style' => 'font-weight:bold;color:#000000'),
  39. );
  40. $pay_status = array
  41. (
  42. 1 => '待支付',
  43. 2 => '已支付',
  44. 3 => '已退款',
  45. );
  46. $goods_status = array
  47. (
  48. 1 => array('name' => '未发放', 'style' => 'font-weight:bold;color:#436EEE'),
  49. 2 => array('name' => '无权益', 'style' => 'font-weight:bold;'),
  50. 3 => array('name' => '已发放', 'style' => 'font-weight:bold;color:green'),
  51. );
  52. $type = array
  53. (
  54. 1 => '个人',
  55. 2 => '公司',
  56. );
  57. $pay_type = array
  58. (
  59. 1 => '在线支付',
  60. 2 => '汇款',
  61. 3 => '个人转账',
  62. );
  63. $get_type = array
  64. (
  65. 1 => '购买',
  66. 2 => '赠送',
  67. );
  68. $level = function()
  69. {
  70. $array = array
  71. (
  72. -1 => array
  73. (
  74. 'id' => -1,
  75. 'name' => '普通',
  76. ),
  77. );
  78. $data = Dever::load('setting/level-state');
  79. if($data)
  80. {
  81. $array += $data;
  82. }
  83. return $array;
  84. };
  85. $import = array
  86. (
  87. 1 => '最新系统',
  88. 2 => 'v2旧系统导入',
  89. 3 => 'v1旧系统导入',
  90. );
  91. $order_type = array
  92. (
  93. 1 => '新购',
  94. 2 => '升级',
  95. );
  96. $button = array();
  97. $parent_mid = Dever::input('search_option_parent_mid');
  98. $mid = Dever::input('search_option_mid');
  99. $pmid = '';
  100. if ($parent_mid) {
  101. $pmid = $parent_mid;
  102. }
  103. if ($mid) {
  104. $pmid = $mid;
  105. }
  106. if ($pmid) {
  107. $button = array
  108. (
  109. '返回上一页' => array('location', 'l=project/database/list&project=agent&table=member_area&page_type=1&mid=' . $pmid),
  110. );
  111. }else{
  112. if(Dever::load('manage/auth')->checkFunc('agent.order', 'editorderout', '数据导出')){
  113. $button['数据导出'] = array('excel', 'agent/lib/order.out_order');
  114. }
  115. if(Dever::load('manage/auth')->checkFunc('agent.order', 'editSoftorderout', '软件服务费数据导出')){
  116. $button['软件服务费数据导出'] = array('excel', 'agent/lib/order.out_softorder');
  117. }
  118. }
  119. # 权限设置 1是查看详情、2是城市数据统计
  120. $search_auth = Dever::input('search_option_dever_auth', 1);
  121. $list_button = array();
  122. if($search_auth == 1){
  123. $list_button['list'] = array('查看详情', '"order_process&project=agent&order_id={id}&page_type=1&[refer]"');
  124. }
  125. $invite_type = array
  126. (
  127. 1 => '邀请人',
  128. 2 => '来源',
  129. );
  130. # id小于50000为导入的数据
  131. return array
  132. (
  133. # 表名
  134. 'name' => 'order',
  135. # 显示给用户看的名称
  136. 'lang' => '代理商订单',
  137. 'auto' => 50000,
  138. 'set' => array
  139. (
  140. 'status' => $status,
  141. 'pay_status' => $pay_status,
  142. 'goods_status' => $goods_status,
  143. 'type' => $type,
  144. 'pay_type' => $pay_type,
  145. 'order_type' => $order_type,
  146. ),
  147. 'start' => array
  148. (
  149. 'update' => 'agent/lib/manage.orderUpdateParent',
  150. ),
  151. 'order' => 99,
  152. # 数据结构
  153. 'struct' => array
  154. (
  155. 'id' => array
  156. (
  157. 'type' => 'int-11',
  158. 'name' => 'ID',
  159. 'default' => '',
  160. 'desc' => '',
  161. 'match' => 'is_numeric',
  162. 'search' => 'order',
  163. //'list' => true,
  164. ),
  165. 'mid' => array
  166. (
  167. 'type' => 'int-11',
  168. 'name' => '代理商姓名/手机号',
  169. 'default' => '-1',
  170. 'desc' => '代理商',
  171. 'match' => 'is_string',
  172. 'update' => 'text',
  173. 'search' => array
  174. (
  175. 'api' => 'agent/member-getSearch',
  176. 'col' => 'col',
  177. 'result' => 'id',
  178. 'search' => 'mid',
  179. ),
  180. 'list_name' => '代理商信息',
  181. 'list' => $search_auth == 1 ? 'Dever::load("agent/lib/member.getOne", {mid}, "agent/member", true)' : false,
  182. 'list_order' => 3,
  183. ),
  184. 'order_num' => array
  185. (
  186. 'type' => 'varchar-100',
  187. 'name' => '订单号',
  188. 'default' => '',
  189. 'desc' => '订单号',
  190. 'match' => 'is_string',
  191. 'update' => 'text',
  192. //'search' => 'fulltext',
  193. //'list' => true,
  194. //'list_order' => 1,
  195. ),
  196. 'order_type' => array
  197. (
  198. 'type' => 'tinyint-1',
  199. 'name' => '订单类型',
  200. 'default' => '1',
  201. 'desc' => '订单类型',
  202. 'match' => 'is_numeric',
  203. 'option' => $order_type,
  204. ),
  205. 'mobile' => array
  206. (
  207. 'type' => 'bigint-11',
  208. 'name' => '手机号',
  209. 'default' => '',
  210. 'desc' => '请输入手机号',
  211. 'match' => Dever::rule('mobile'),
  212. 'update' => 'text',
  213. //'search' => 'fulltext',
  214. 'list' => $search_auth == 2 ? true : false,
  215. 'list_order' => 2,
  216. ),
  217. 'invite_type' => array
  218. (
  219. 'type' => 'tinyint-1',
  220. 'name' => '邀请类型',
  221. 'default' => '1',
  222. 'desc' => '邀请类型',
  223. 'match' => 'is_numeric',
  224. //'search' => 'select',
  225. 'update' => 'radio',
  226. 'option' => $invite_type,
  227. //'list' => true,
  228. //'list_order' => 7,
  229. 'control' => 'invite_type',
  230. ),
  231. 'parent_code' => array
  232. (
  233. 'type' => 'varchar-100',
  234. 'name' => '上级邀请码',
  235. 'default' => '',
  236. 'desc' => '上级邀请码',
  237. 'match' => 'is_string',
  238. 'update' => 'text',
  239. # 绑定js脚本,更新时使用,第一个参数是执行的方式,第二个参数执行的方法,第三个参数是传值。
  240. 'bind' => array('onblur', 'loading', array('url' => Dever::url("lib/member.search", 'agent'))),
  241. 'show' => 'invite_type=1',
  242. ),
  243. 'parent_mid' => array
  244. (
  245. 'type' => 'int-11',
  246. 'name' => '上级姓名/手机号',
  247. 'default' => '-1',
  248. 'desc' => '邀请人',
  249. 'match' => 'is_string',
  250. //'update' => 'text',
  251. 'search' => array
  252. (
  253. 'api' => 'agent/member-getSearch',
  254. 'col' => 'col',
  255. 'result' => 'id',
  256. 'search' => 'parent_mid',
  257. ),
  258. 'list_name' => '上级信息',
  259. 'list' => $search_auth == 1 ? 'Dever::load("agent/lib/member.getOne", {parent_mid})' : false,
  260. ),
  261. 'source_id' => array
  262. (
  263. 'type' => 'int-11',
  264. 'name' => '注册来源',
  265. 'default' => '-1',
  266. 'desc' => '注册来源',
  267. 'match' => 'is_numeric',
  268. 'search' => 'select',
  269. 'update' => 'radio',
  270. 'option' => $source_id,
  271. // 'list' => true,
  272. // 'list_order' => 5,
  273. // 'show' => 'invite_type=2',
  274. ),
  275. 'name' => array
  276. (
  277. 'type' => 'varchar-100',
  278. 'name' => '姓名',
  279. 'default' => '',
  280. 'desc' => '姓名',
  281. 'match' => 'is_string',
  282. 'update' => 'text',
  283. //'search' => 'fulltext',
  284. 'list' => $search_auth == 2 ? true : false,
  285. 'list_order' => 1,
  286. ),
  287. 'role' => array
  288. (
  289. 'type' => 'int-11',
  290. 'name' => '代理角色',
  291. 'default' => '',
  292. 'desc' => '代理角色',
  293. 'match' => 'is_numeric',
  294. 'search' => 'select',
  295. 'update' => 'select',
  296. 'option' => $role,
  297. 'list' => $search_auth == 2 ? true : false,
  298. 'list_order' => 3,
  299. ),
  300. 'area' => array
  301. (
  302. 'type' => 'varchar-500',
  303. 'name' => '代理区域',
  304. 'default' => '',
  305. 'desc' => '代理区域',
  306. 'match' => 'option',
  307. 'search' => 'linkage',
  308. 'update' => 'linkage',
  309. 'option' => Dever::url('api.get?level_total=4', 'area'),
  310. 'list' => $search_auth == 2 ? 'Dever::load("agent/lib/order.getArea", {id})' : false,
  311. 'list_order' => 3,
  312. ),
  313. 'desc' => array
  314. (
  315. 'type' => 'varchar-600',
  316. 'name' => '付款备注',
  317. 'default' => '',
  318. 'desc' => '付款备注',
  319. 'match' => 'is_string',
  320. 'update' => 'text',
  321. ),
  322. 'f_price' => array
  323. (
  324. 'type' => 'decimal-11,2',
  325. 'name' => '原价',
  326. 'default' => '0',
  327. 'desc' => '原价',
  328. 'match' => 'option',
  329. 'update' => 'text',
  330. ),
  331. 'price' => array
  332. (
  333. 'type' => 'decimal-11,2',
  334. 'name' => '金额',
  335. 'default' => '0',
  336. 'desc' => '金额',
  337. 'match' => 'option',
  338. 'update' => 'text',
  339. // 'list' => true,
  340. //'list_name' => '应付金额<br />实付金额<br />代理费<br />软件服务费<br />',
  341. 'list_name' => $search_auth == 1 ? '实付金额' : '总销售额',
  342. 'list' => true,
  343. // 'list' =>'Dever::load("agent/lib/order.set_price", {id})',
  344. 'list_order' => 100,
  345. ),
  346. 'pay_type' => array
  347. (
  348. 'type' => 'tinyint-1',
  349. 'name' => '支付方式',
  350. 'default' => '1',
  351. 'desc' => '支付方式',
  352. 'match' => 'is_numeric',
  353. //'search' => 'select',
  354. //'update' => 'select',
  355. 'option' => $pay_type,
  356. //'list' => true,
  357. //'list_order' => 7,
  358. ),
  359. 'pay_pic' => array
  360. (
  361. 'type' => 'text-255',
  362. 'name' => '打款凭证',
  363. 'default' => '',
  364. 'desc' => '打款凭证',
  365. 'match' => 'option',
  366. 'update' => 'images',
  367. 'key' => '1',
  368. //'place' => '150',
  369. ),
  370. 'pay_price' => array
  371. (
  372. 'type' => 'decimal-11,2',
  373. 'name' => '交款金额',
  374. 'default' => '0',
  375. 'desc' => '交款金额',
  376. 'match' => 'option',
  377. 'update' => 'text',
  378. ),
  379. 'option_price' => array
  380. (
  381. 'type' => 'decimal-11,2',
  382. 'name' => '赠送期权价值',
  383. 'default' => '0',
  384. 'desc' => '金额',
  385. 'match' => 'option',
  386. 'update' => 'text',
  387. // 'value' => Dever::input('soft_price', '0'),
  388. // 'show' => 'cstatus=2',
  389. ),
  390. 'bank_id' => array
  391. (
  392. 'type' => 'int-11',
  393. 'name' => '所属银行',
  394. 'default' => '',
  395. 'desc' => '所属银行',
  396. 'match' => 'is_numeric',
  397. ),
  398. 'bank_card' => array
  399. (
  400. 'type' => 'int-11',
  401. 'name' => '银行卡号',
  402. 'default' => '',
  403. 'desc' => '银行卡号',
  404. 'match' => 'is_numeric',
  405. ),
  406. 'type' => array
  407. (
  408. 'type' => 'tinyint-1',
  409. 'name' => '类型',
  410. 'default' => '1',
  411. 'desc' => '类型',
  412. 'match' => 'is_numeric',
  413. 'option' => $type,
  414. 'update' => 'radio',
  415. 'control' => 'type',
  416. ),
  417. 'sign' => array
  418. (
  419. 'type' => 'varchar-150',
  420. 'name' => '手写签名',
  421. 'default' => '',
  422. 'desc' => '手写签名',
  423. 'match' => 'option',
  424. 'update' => 'image',
  425. 'key' => '7',
  426. ),
  427. 'idcard' => array
  428. (
  429. 'type' => 'varchar-100',
  430. 'name' => '身份证号码',
  431. 'default' => '',
  432. 'desc' => '身份证号码',
  433. 'match' => 'is_string',
  434. 'match' => Dever::rule('idcard'),
  435. 'update' => 'text',
  436. //'search' => 'fulltext',
  437. ),
  438. 'idcard_front' => array
  439. (
  440. 'type' => 'varchar-150',
  441. 'name' => '身份证正面',
  442. 'default' => '',
  443. 'desc' => '身份证正面',
  444. 'match' => 'option',
  445. 'update' => 'image',
  446. 'key' => '8',
  447. //'place' => '660*660',
  448. ),
  449. 'idcard_back' => array
  450. (
  451. 'type' => 'varchar-150',
  452. 'name' => '身份证背面',
  453. 'default' => '',
  454. 'desc' => '身份证背面',
  455. 'match' => 'option',
  456. 'update' => 'image',
  457. 'key' => '8',
  458. //'place' => '660*660',
  459. ),
  460. 'company_name' => array
  461. (
  462. 'type' => 'varchar-100',
  463. 'name' => '公司名称',
  464. 'default' => '',
  465. 'desc' => '公司名称',
  466. 'match' => 'is_string',
  467. 'update' => 'text',
  468. //'search' => 'fulltext',
  469. //'list' => true,
  470. 'show' => 'type=2',
  471. ),
  472. 'company_pic' => array
  473. (
  474. 'type' => 'varchar-150',
  475. 'name' => '营业执照',
  476. 'default' => '',
  477. 'desc' => '营业执照',
  478. 'match' => 'option',
  479. 'update' => 'image',
  480. 'key' => '8',
  481. //'place' => '660*660',
  482. 'show' => 'type=2',
  483. ),
  484. 'company_number' => array
  485. (
  486. 'type' => 'varchar-80',
  487. 'name' => '营业执照号码',
  488. 'default' => '',
  489. 'desc' => '营业执照号码',
  490. 'match' => 'is_string',
  491. 'update' => 'text',
  492. 'show' => 'type=2',
  493. ),
  494. 'address' => array
  495. (
  496. 'type' => 'varchar-800',
  497. 'name' => '地址',
  498. 'default' => '',
  499. 'desc' => '地址',
  500. 'match' => 'is_string',
  501. 'update' => 'text',
  502. ),
  503. 'audit_desc' => array
  504. (
  505. 'type' => 'varchar-400',
  506. 'name' => '审核备注-从order_process中同步过来',
  507. 'default' => '',
  508. 'desc' => '审核备注',
  509. 'match' => 'is_string',
  510. //'update' => 'textarea',
  511. ),
  512. 'admin_desc' => array
  513. (
  514. 'type' => 'varchar-800',
  515. 'name' => '管理员备注',
  516. 'default' => '',
  517. 'desc' => '管理员备注',
  518. 'match' => 'is_string',
  519. 'update' => 'textarea',
  520. ),
  521. 'status' => array
  522. (
  523. 'type' => 'tinyint-1',
  524. 'name' => '订单状态',
  525. 'default' => '1',
  526. 'desc' => '状态',
  527. 'match' => 'is_numeric',
  528. 'option' => $status,
  529. 'search' => 'select',
  530. 'list' => $search_auth == 1 ? true : false,
  531. 'list_order' => 8,
  532. ),
  533. 'history_status' => array
  534. (
  535. 'type' => 'tinyint-1',
  536. 'name' => '记录挂起之前的状态',
  537. 'default' => '1',
  538. 'desc' => '状态',
  539. 'match' => 'is_numeric',
  540. 'option' => $status,
  541. ),
  542. 'goods_status' => array
  543. (
  544. 'type' => 'tinyint-1',
  545. 'name' => '权益状态',
  546. 'default' => '1',
  547. 'desc' => '权益状态',
  548. 'match' => 'is_numeric',
  549. 'option' => $goods_status,
  550. 'search' => 'select',
  551. 'list' => $search_auth == 1 ? true : false,
  552. 'list_order' => 9,
  553. ),
  554. 'pay_status' => array
  555. (
  556. 'type' => 'tinyint-1',
  557. 'name' => '支付状态',
  558. 'default' => '1',
  559. 'desc' => '状态',
  560. 'match' => 'is_numeric',
  561. 'option' => $pay_status,
  562. ),
  563. 'get_type' => array
  564. (
  565. 'type' => 'tinyint-1',
  566. 'name' => '获取方式',
  567. 'default' => '1',
  568. 'desc' => '获取方式',
  569. 'match' => 'is_numeric',
  570. 'update' => 'radio',
  571. 'option' => $get_type,
  572. ),
  573. 'agent_cash' => array
  574. (
  575. 'type' => 'decimal-11,2',
  576. 'name' => '代理费',
  577. 'default' => '0',
  578. 'desc' => '代理费',
  579. 'match' => 'option',
  580. 'update' => 'text',
  581. 'list' => $search_auth == 2 ? true : false,
  582. ),
  583. 'soft_cash' => array
  584. (
  585. 'type' => 'decimal-11,2',
  586. 'name' => '软件服务费',
  587. 'default' => '0',
  588. 'desc' => '软件服务费',
  589. 'match' => 'option',
  590. 'update' => 'text',
  591. 'list' => $search_auth == 2 ? '{soft_cash}' : false,
  592. ),
  593. 'goods_cash' => array
  594. (
  595. 'type' => 'decimal-11,2',
  596. 'name' => '商品价值-名额不算,商品价值第一次分配后保持不变',
  597. 'default' => '0',
  598. 'desc' => '商品价值',
  599. 'match' => 'option',
  600. 'update' => 'text',
  601. ),
  602. 'import' => array
  603. (
  604. 'type' => 'tinyint-1',
  605. 'name' => '是否导入',
  606. 'default' => '1',
  607. 'desc' => '是否导入',
  608. 'match' => 'is_numeric',
  609. 'option' => $import,
  610. 'update' => 'radio',
  611. ),
  612. 'dever_auth' => array
  613. (
  614. 'name' => '权限',
  615. 'default' => '',
  616. 'desc' => '类型',
  617. 'match' => 'is_string',
  618. 'search' => 'hidden',
  619. ),
  620. 'state' => array
  621. (
  622. 'type' => 'tinyint-1',
  623. 'name' => '状态',
  624. 'default' => '1',
  625. 'desc' => '请选择状态',
  626. 'match' => 'is_numeric',
  627. ),
  628. 'fdate' => array
  629. (
  630. 'type' => 'int-11',
  631. 'name' => '完成时间',
  632. 'default' => '',
  633. 'match' => 'is_numeric',
  634. 'search' => 'date',
  635. 'desc' => '',
  636. ),
  637. 'udate' => array
  638. (
  639. 'type' => 'int-11',
  640. 'name' => '更新时间',
  641. 'default' => '',
  642. 'match' => 'is_numeric',
  643. 'desc' => '',
  644. 'order' => 'desc',
  645. ),
  646. 'cdate' => array
  647. (
  648. 'type' => 'int-11',
  649. 'name' => '注册时间',
  650. 'match' => array('is_numeric', time()),
  651. 'default' => '',
  652. 'desc' => '',
  653. # 只有insert时才生效
  654. 'insert' => true,
  655. 'search' => 'date',
  656. // 'list' => 'date("Y-m-d H:i:s", {cdate})',
  657. 'list_name' => '注册时间<br />初审时间<br />终审时间<br />完成时间<br />',
  658. 'list' => $search_auth == 1 ? 'Dever::load("agent/lib/order.set_cdate", {id})' : false,
  659. 'list_order' => 200,
  660. ),
  661. ),
  662. 'alter' => array
  663. (
  664. 10 => array
  665. (
  666. array('update', 'price', 'price', 'decimal-11,2 0 实付金额'),
  667. array('update', 'f_price', 'f_price', 'decimal-11,2 0 原价'),
  668. array('update', 'agent_cash', 'agent_cash', 'decimal-11,2 0 代理费'),
  669. array('update', 'soft_cash', 'soft_cash', 'decimal-11,2 0 软件服务费'),
  670. array('update', 'goods_cash', 'goods_cash', 'decimal-11,2 0 商品价值'),
  671. array('update', 'pay_price', 'pay_price', 'decimal-11,2 0 交款金额'),
  672. array('update', 'option_price', 'option_price', 'decimal-11,2 0 赠送期权价值'),
  673. ),
  674. 11 => array
  675. (
  676. array('update', 'pay_pic', 'pay_pic', 'text-255 打款凭证'),
  677. ),
  678. 'version' => 11,
  679. ),
  680. 'manage' => array
  681. (
  682. 'insert' => false,
  683. 'delete' => false,
  684. 'edit' => false,
  685. 'button' => $button,
  686. 'list_button' => $list_button,
  687. // (
  688. // //fast_list
  689. // 'list' => array('查看详情', '"order_process&project=agent&order_id={id}&page_type=1&[refer]"'),
  690. // //'edit' => array('退款', 'status,tk_time,tk_pic,tk_desc,tk_admin,tk_status', '{status} == 6'),
  691. // //'delete' => array('删除', '', '{status} == 1'),
  692. // ),
  693. ),
  694. 'request' => array
  695. (
  696. 'getNew' => array
  697. (
  698. # 匹配的正则或函数 选填项
  699. 'option' => array
  700. (
  701. 'mid' => 'yes',
  702. 'status' => array('yes', 'in'),
  703. 'state' => 1,
  704. ),
  705. 'order' => array('id' => 'desc'),
  706. 'type' => 'one',
  707. 'col' => '*',
  708. ),
  709. 'getTotal' => array
  710. (
  711. # 匹配的正则或函数 选填项
  712. 'option' => array
  713. (
  714. 'mid' => 'yes',
  715. 'status' => array('yes', 'in'),
  716. 'state' => 1,
  717. ),
  718. 'order' => array('id' => 'desc'),
  719. 'type' => 'count',
  720. 'col' => '*',
  721. ),
  722. 'getData' => array
  723. (
  724. # 匹配的正则或函数 选填项
  725. 'option' => array
  726. (
  727. 'mid' => 'yes',
  728. 'status' => array('yes', 'in'),
  729. 'state' => 1,
  730. ),
  731. 'order' => array('id' => 'desc'),
  732. 'page' => array(10, 'list'),
  733. 'type' => 'all',
  734. 'col' => '*',
  735. ),
  736. # 获取订单数量
  737. 'getNum' => array
  738. (
  739. # 匹配的正则或函数 选填项
  740. 'option' => array
  741. (
  742. 'start' => array('yes-cdate', '>='),
  743. 'end' => array('yes-cdate', '<='),
  744. 'fstart' => array('yes-fdate', '>='),
  745. 'fend' => array('yes-fdate', '<='),
  746. 'status' => array('yes', 'in'),
  747. 'state' => 1,
  748. ),
  749. 'type' => 'count',
  750. 'col' => '*',
  751. ),
  752. # 获取订单数量
  753. 'getCash' => array
  754. (
  755. # 匹配的正则或函数 选填项
  756. 'option' => array
  757. (
  758. 'start' => array('yes-cdate', '>='),
  759. 'end' => array('yes-cdate', '<='),
  760. 'fstart' => array('yes-fdate', '>='),
  761. 'fend' => array('yes-fdate', '<='),
  762. 'status' => array('yes', 'in'),
  763. 'state' => 1,
  764. ),
  765. 'type' => 'one',
  766. 'col' => 'sum(price) as total',
  767. ),
  768. 'getDailiCash' => array
  769. (
  770. # 匹配的正则或函数 选填项
  771. 'option' => array
  772. (
  773. 'start' => array('yes-cdate', '>='),
  774. 'end' => array('yes-cdate', '<='),
  775. 'fstart' => array('yes-fdate', '>='),
  776. 'fend' => array('yes-fdate', '<='),
  777. 'status' => array('yes', 'in'),
  778. 'state' => 1,
  779. ),
  780. 'type' => 'one',
  781. 'col' => 'sum(agent_cash) as total',
  782. ),
  783. #期权价值
  784. 'getOptionPrice' => array
  785. (
  786. # 匹配的正则或函数 选填项
  787. 'option' => array
  788. (
  789. 'start' => array('yes-cdate', '>='),
  790. 'end' => array('yes-cdate', '<='),
  791. 'fstart' => array('yes-fdate', '>='),
  792. 'fend' => array('yes-fdate', '<='),
  793. 'status' => array('yes', 'in'),
  794. 'role' => 'yes',
  795. 'state' => 1,
  796. ),
  797. 'type' => 'one',
  798. 'col' => 'sum(option_price) as total',
  799. ),
  800. 'getSoftCash' => array
  801. (
  802. # 匹配的正则或函数 选填项
  803. 'option' => array
  804. (
  805. 'start' => array('yes-cdate', '>='),
  806. 'end' => array('yes-cdate', '<='),
  807. 'fstart' => array('yes-fdate', '>='),
  808. 'fend' => array('yes-fdate', '<='),
  809. 'status' => array('yes', 'in'),
  810. 'role' => 'yes',
  811. 'state' => 1,
  812. ),
  813. 'type' => 'one',
  814. 'col' => 'sum(soft_cash) as total',
  815. ),
  816. 'getSoftNoCash' => array
  817. (
  818. # 匹配的正则或函数 选填项
  819. 'option' => array
  820. (
  821. 'fstart' => array('yes-cdate', '>='),
  822. 'fend' => array('yes-cdate', '<='),
  823. 'status' => array('yes', '!='),
  824. 'state' => 1,
  825. ),
  826. 'type' => 'one',
  827. 'col' => 'sum(soft_cash) as total',
  828. ),
  829. 'getSoftNum' => array
  830. (
  831. # 匹配的正则或函数 选填项
  832. 'option' => array
  833. (
  834. 'fstart' => array('yes-fdate', '>='),
  835. 'fend' => array('yes-fdate', '<='),
  836. 'soft_cash' => array('yes', '>='),
  837. 'status' => array('yes','in'),
  838. 'state' => 1,
  839. ),
  840. 'type' => 'count',
  841. 'col' => '*',
  842. ),
  843. 'getSoftNoNum' => array
  844. (
  845. # 匹配的正则或函数 选填项
  846. 'option' => array
  847. (
  848. 'fstart' => array('yes-cdate', '>='),
  849. 'fend' => array('yes-cdate', '<='),
  850. 'soft_cash' => array('yes', '>='),
  851. 'status' => array('yes','!='),
  852. 'state' => 1,
  853. ),
  854. 'type' => 'count',
  855. 'col' => '*',
  856. ),
  857. 'getGoodsCash' => array
  858. (
  859. # 匹配的正则或函数 选填项
  860. 'option' => array
  861. (
  862. 'start' => array('yes-cdate', '>='),
  863. 'end' => array('yes-cdate', '<='),
  864. 'fstart' => array('yes-fdate', '>='),
  865. 'fend' => array('yes-fdate', '<='),
  866. 'status' => array('yes', 'in'),
  867. 'state' => 1,
  868. ),
  869. 'type' => 'one',
  870. 'col' => 'sum(goods_cash) as total',
  871. ),
  872. 'getFindOne' => array
  873. (
  874. # 匹配的正则或函数 选填项
  875. 'option' => array
  876. (
  877. 'id' => array('yes','!='),
  878. 'mid' => 'yes',
  879. 'order_type' => 'yes',
  880. 'state' => 1,
  881. ),
  882. 'type' => 'one',
  883. 'order' => array('cdate' => 'desc'),
  884. 'col' => '*',
  885. ),
  886. 'getPrice' => array
  887. (
  888. # 匹配的正则或函数 选填项
  889. 'option' => array
  890. (
  891. 'mid' => 'yes',
  892. 'status' => 4,
  893. 'state' => 1,
  894. ),
  895. 'type' => 'one',
  896. 'col' => 'sum(price) as total',
  897. ),
  898. 'getCount' => array
  899. (
  900. # 匹配的正则或函数 选填项
  901. 'option' => array
  902. (
  903. 'start' => array('yes-cdate','>='),
  904. 'end' => array('yes-cdate','<='),
  905. 'mid' => 'yes',
  906. 'state' => 1,
  907. ),
  908. 'type' => 'one',
  909. 'col' => 'sum(price) as total',
  910. ),
  911. 'getVCount' => array
  912. (
  913. # 匹配的正则或函数 选填项
  914. 'option' => array
  915. (
  916. 'start' => array('yes-cdate','>='),
  917. 'end' => array('yes-cdate','<='),
  918. 'mid' => 'yes',
  919. 'role' => array('yes','in'),
  920. 'state' => 1,
  921. ),
  922. 'type' => 'one',
  923. 'col' => 'sum(price) as total',
  924. ),
  925. 'getExcelAll' => array
  926. (
  927. # 匹配的正则或函数 选填项
  928. 'option' => array
  929. (
  930. 'start' => array('yes-cdate', '>='),
  931. 'end' => array('yes-cdate', '<='),
  932. 'fstart' => array('yes-fdate', '>='),
  933. 'fend' => array('yes-fdate', '<='),
  934. 'status' => array('yes', 'in'),
  935. 'state' => 1,
  936. ),
  937. 'type' => 'all',
  938. 'col' => '*',
  939. ),
  940. 'getSum' => array
  941. (
  942. # 匹配的正则或函数 选填项
  943. 'option' => array
  944. (
  945. 'start' => array('yes-fdate', '>='),
  946. 'end' => array('yes-fdate', '<='),
  947. 'fstart' => array('yes-fdate', '>='),
  948. 'fend' => array('yes-fdate', '<='),
  949. 'status' => array('yes', 'in'),
  950. 'role' => 'yes',
  951. 'state' => 1,
  952. ),
  953. 'type' => 'one',
  954. 'col' => 'sum(price) as total',
  955. ),
  956. 'getAll' => array
  957. (
  958. # 匹配的正则或函数 选填项
  959. 'option' => array
  960. (
  961. 'start' => array('yes-fdate','>='),
  962. 'end' => array('yes-fdate','<='),
  963. 'mid' => 'yes',
  964. 'area' => array('yes','in'),
  965. 'role' => array('yes','in'),
  966. 'state' => 1,
  967. ),
  968. 'type' => 'all',
  969. 'page' => array(20,'list'),
  970. 'col' => 'id,mid,name,mobile,idcard,soft_cash,option_price,price,area,role,agent_cash',
  971. ),
  972. ),
  973. );