order.php 32 KB

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