order.php 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055
  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. 'status' => array('yes', 'in'),
  753. 'state' => 1,
  754. ),
  755. 'type' => 'count',
  756. 'col' => '*',
  757. ),
  758. # 获取订单数量
  759. 'getCash' => array
  760. (
  761. # 匹配的正则或函数 选填项
  762. 'option' => array
  763. (
  764. 'start' => array('yes-cdate', '>='),
  765. 'end' => array('yes-cdate', '<='),
  766. 'fstart' => array('yes-fdate', '>='),
  767. 'fend' => array('yes-fdate', '<='),
  768. 'status' => array('yes', 'in'),
  769. 'state' => 1,
  770. ),
  771. 'type' => 'one',
  772. 'col' => 'sum(price) as total',
  773. ),
  774. 'getDailiCash' => array
  775. (
  776. # 匹配的正则或函数 选填项
  777. 'option' => array
  778. (
  779. 'start' => array('yes-cdate', '>='),
  780. 'end' => array('yes-cdate', '<='),
  781. 'fstart' => array('yes-fdate', '>='),
  782. 'fend' => array('yes-fdate', '<='),
  783. 'status' => array('yes', 'in'),
  784. 'state' => 1,
  785. ),
  786. 'type' => 'one',
  787. 'col' => 'sum(agent_cash) as total',
  788. ),
  789. #期权价值
  790. 'getOptionPrice' => array
  791. (
  792. # 匹配的正则或函数 选填项
  793. 'option' => array
  794. (
  795. 'start' => array('yes-cdate', '>='),
  796. 'end' => array('yes-cdate', '<='),
  797. 'fstart' => array('yes-fdate', '>='),
  798. 'fend' => array('yes-fdate', '<='),
  799. 'status' => array('yes', 'in'),
  800. 'role' => 'yes',
  801. 'state' => 1,
  802. ),
  803. 'type' => 'one',
  804. 'col' => 'sum(option_price) as total',
  805. ),
  806. 'getSoftCash' => array
  807. (
  808. # 匹配的正则或函数 选填项
  809. 'option' => array
  810. (
  811. 'start' => array('yes-cdate', '>='),
  812. 'end' => array('yes-cdate', '<='),
  813. 'fstart' => array('yes-fdate', '>='),
  814. 'fend' => array('yes-fdate', '<='),
  815. 'status' => array('yes', 'in'),
  816. 'role' => 'yes',
  817. 'state' => 1,
  818. ),
  819. 'type' => 'one',
  820. 'col' => 'sum(soft_cash) as total',
  821. ),
  822. 'getSoftNoCash' => array
  823. (
  824. # 匹配的正则或函数 选填项
  825. 'option' => array
  826. (
  827. 'fstart' => array('yes-cdate', '>='),
  828. 'fend' => array('yes-cdate', '<='),
  829. 'status' => array('yes', 'in'),
  830. 'state' => 1,
  831. ),
  832. 'type' => 'one',
  833. 'col' => 'sum(soft_cash) as total',
  834. ),
  835. 'getSoftNum' => array
  836. (
  837. # 匹配的正则或函数 选填项
  838. 'option' => array
  839. (
  840. 'fstart' => array('yes-fdate', '>='),
  841. 'fend' => array('yes-fdate', '<='),
  842. 'soft_cash' => array('yes', '>='),
  843. 'status' => array('yes','in'),
  844. 'state' => 1,
  845. ),
  846. 'type' => 'count',
  847. 'col' => '*',
  848. ),
  849. 'getSoftNoNum' => array
  850. (
  851. # 匹配的正则或函数 选填项
  852. 'option' => array
  853. (
  854. 'fstart' => array('yes-cdate', '>='),
  855. 'fend' => array('yes-cdate', '<='),
  856. 'soft_cash' => array('yes', '>='),
  857. 'status' => array('yes','in'),
  858. 'state' => 1,
  859. ),
  860. 'type' => 'count',
  861. 'col' => '*',
  862. ),
  863. 'getGoodsCash' => array
  864. (
  865. # 匹配的正则或函数 选填项
  866. 'option' => array
  867. (
  868. 'start' => array('yes-cdate', '>='),
  869. 'end' => array('yes-cdate', '<='),
  870. 'fstart' => array('yes-fdate', '>='),
  871. 'fend' => array('yes-fdate', '<='),
  872. 'status' => array('yes', 'in'),
  873. 'state' => 1,
  874. ),
  875. 'type' => 'one',
  876. 'col' => 'sum(goods_cash) as total',
  877. ),
  878. 'getFindOne' => array
  879. (
  880. # 匹配的正则或函数 选填项
  881. 'option' => array
  882. (
  883. 'id' => array('yes','!='),
  884. 'mid' => 'yes',
  885. 'order_type' => 'yes',
  886. 'state' => 1,
  887. ),
  888. 'type' => 'one',
  889. 'order' => array('cdate' => 'desc'),
  890. 'col' => '*',
  891. ),
  892. 'getPrice' => array
  893. (
  894. # 匹配的正则或函数 选填项
  895. 'option' => array
  896. (
  897. 'mid' => 'yes',
  898. 'status' => 4,
  899. 'state' => 1,
  900. ),
  901. 'type' => 'one',
  902. 'col' => 'sum(price) as total',
  903. ),
  904. 'getCount' => array
  905. (
  906. # 匹配的正则或函数 选填项
  907. 'option' => array
  908. (
  909. 'start' => array('yes-cdate','>='),
  910. 'end' => array('yes-cdate','<='),
  911. 'mid' => 'yes',
  912. 'parent_mid' => 'yes',
  913. 'state' => 1,
  914. ),
  915. 'type' => 'one',
  916. 'col' => 'sum(price) as total',
  917. ),
  918. 'getVCount' => array
  919. (
  920. # 匹配的正则或函数 选填项
  921. 'option' => array
  922. (
  923. 'start' => array('yes-cdate','>='),
  924. 'end' => array('yes-cdate','<='),
  925. 'mid' => 'yes',
  926. 'parent_mid' => 'yes',
  927. 'role' => array('yes','in'),
  928. 'state' => 1,
  929. ),
  930. 'type' => 'one',
  931. 'col' => 'sum(price) as total',
  932. ),
  933. 'getExcelAll' => array
  934. (
  935. # 匹配的正则或函数 选填项
  936. 'option' => array
  937. (
  938. 'start' => array('yes-cdate', '>='),
  939. 'end' => array('yes-cdate', '<='),
  940. 'fstart' => array('yes-fdate', '>='),
  941. 'fend' => array('yes-fdate', '<='),
  942. 'status' => array('yes', 'in'),
  943. 'state' => 1,
  944. ),
  945. 'type' => 'all',
  946. 'col' => '*',
  947. ),
  948. 'getSum' => array
  949. (
  950. # 匹配的正则或函数 选填项
  951. 'option' => array
  952. (
  953. 'start' => array('yes-fdate', '>='),
  954. 'end' => array('yes-fdate', '<='),
  955. 'fstart' => array('yes-fdate', '>='),
  956. 'fend' => array('yes-fdate', '<='),
  957. 'status' => array('yes', 'in'),
  958. 'role' => 'yes',
  959. 'state' => 1,
  960. ),
  961. 'type' => 'one',
  962. 'col' => 'sum(price) as total',
  963. ),
  964. 'getAll' => array
  965. (
  966. # 匹配的正则或函数 选填项
  967. 'option' => array
  968. (
  969. 'start' => array('yes-fdate','>='),
  970. 'end' => array('yes-fdate','<='),
  971. 'mid' => 'yes',
  972. 'area' => array('yes','in'),
  973. 'role' => array('yes','in'),
  974. 'state' => 1,
  975. ),
  976. 'type' => 'all',
  977. 'page' => array(20,'list'),
  978. 'col' => 'id,mid,name,mobile,idcard,soft_cash,option_price,price,area,role,agent_cash',
  979. ),
  980. ),
  981. );