order.php 32 KB

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