sign.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. <?php
  2. $acct_type = array
  3. (
  4. -1 => '个人账户',
  5. 1 => '公司账户',
  6. );
  7. $mer_type = array
  8. (
  9. 2 => '个人工商户',
  10. 1 => '企业商户',
  11. //3 => '小微商户',
  12. );
  13. $create_shop = array
  14. (
  15. 1 => '绑定现有门店',
  16. 2 => '生成体验店',
  17. //3 => '生成零售店',
  18. );
  19. $shop = array();
  20. $desc = '';
  21. $col = Dever::input('col');
  22. if (!$col) {
  23. $tab = array('门店信息', '法人信息', '企业信息', '银行信息');
  24. } else {
  25. $tab = '';
  26. }
  27. $step = array
  28. (
  29. -1 => '待提交资料',
  30. 1 => '入网:资料提交',//3.2
  31. 2 => '入网:对公账户打款',//3.7
  32. 3 => '入网:对公账户验证',//3.6
  33. 4 => '入网:前台签约中',//3.3
  34. 5 => '入网:签约审核中',//3.4
  35. 6 => '入网:签约成功',//3.4
  36. 11 => '变更:资料提交',//3.9
  37. 14 => '变更:前台签约中',//3.10
  38. 15 => '变更:签约审核中',//3.11
  39. 16 => '变更:签约成功',//3.11
  40. );
  41. return array
  42. (
  43. # 表名
  44. 'name' => 'sign',
  45. # 显示给用户看的名称
  46. 'lang' => '银联签约',
  47. # 后台菜单排序
  48. 'order' => -100,
  49. 'step' => $step,
  50. 'end' => array
  51. (
  52. 'update' => 'shop/lib/manage.sign',
  53. ),
  54. # 数据结构
  55. 'struct' => array
  56. (
  57. 'id' => array
  58. (
  59. 'type' => 'int-11',
  60. 'name' => 'ID',
  61. 'default' => '',
  62. 'desc' => '',
  63. 'match' => 'is_numeric',
  64. 'search' => 'order',
  65. //'list' => true,
  66. 'order' => 'desc',
  67. ),
  68. 'mid' => array
  69. (
  70. 'type' => 'varchar-50',
  71. 'name' => '分账商户号',
  72. 'default' => '',
  73. 'desc' => '分账商户号',
  74. 'match' => 'option',
  75. //'update' => 'text',
  76. ),
  77. 'ums_reg_id' => array
  78. (
  79. 'type' => 'varchar-50',
  80. 'name' => '自助签约平台唯一标识',
  81. 'default' => '',
  82. 'desc' => '自助签约平台唯一标识',
  83. 'match' => 'option',
  84. // 'update' => 'text',
  85. ),
  86. 'url' => array
  87. (
  88. 'type' => 'varchar-800',
  89. 'name' => '签约前台页面地址',
  90. 'default' => '',
  91. 'desc' => '签约前台页面地址',
  92. 'match' => 'option',
  93. // 'update' => 'text',
  94. ),
  95. 'cash' => array
  96. (
  97. 'type' => 'varchar-30',
  98. 'name' => '打款金额',
  99. 'default' => '',
  100. 'desc' => '打款金额',
  101. 'match' => 'option',
  102. 'update' => $col ? 'text' : false,
  103. ),
  104. 'create_shop' => array
  105. (
  106. 'type' => 'int-11',
  107. 'name' => '绑定门店',
  108. 'default' => '1',
  109. 'desc' => '绑定门店',
  110. 'match' => 'option',
  111. 'update' => $col ? 'radio' : false,
  112. 'option' => $create_shop,
  113. 'control' => 'create_shop',
  114. ),
  115. 'shop_id' => array
  116. (
  117. 'type' => 'int-11',
  118. 'name' => '选择现有门店',
  119. 'default' => '0',
  120. 'desc' => '请选择用户',
  121. 'match' => 'is_numeric',
  122. 'update' => $col ? 'select' : false,
  123. 'update_search' => 'shop/lib/manage.search_shop',
  124. 'show' => 'create_shop=1',
  125. ),
  126. 'shop_name' => array
  127. (
  128. 'type' => 'varchar-300',
  129. 'name' => '门店名称',
  130. 'default' => '',
  131. 'desc' => '请输入门店名称',
  132. 'match' => 'is_string',
  133. 'update' => 'text',
  134. 'search' => 'fulltext',
  135. 'list' => true,
  136. 'list_order' => -10,
  137. 'value' => $shop ? $shop['name'] : false,
  138. 'tab' => 0,
  139. ),
  140. 'shop_area' => array
  141. (
  142. 'type' => 'varchar-500',
  143. 'name' => '所在街道',
  144. 'default' => '',
  145. 'desc' => '所在街道',
  146. 'match' => 'option',
  147. //'search' => 'linkage',
  148. 'update' => 'linkage',
  149. 'option' => Dever::url('api.get?level_total=4', 'area'),
  150. //'list' => 'Dever::load("area/api.string", "{area}")',
  151. 'tab' => 0,
  152. ),
  153. 'shop_address' => array
  154. (
  155. 'type' => 'varchar-1000',
  156. 'name' => '门店地址',
  157. 'default' => '',
  158. 'desc' => '门店地址',
  159. 'match' => 'option',
  160. 'update' => 'text',
  161. //'list' => true,
  162. ),
  163. 'mccCode' => array
  164. (
  165. 'type' => 'varchar-200',
  166. 'name' => '行业类别编码',
  167. 'default' => '5499',
  168. 'desc' => '行业类别编码',
  169. 'match' => 'option',
  170. //'update' => 'text',
  171. 'tab' => 0,
  172. ),
  173. 'tax' => array
  174. (
  175. 'type' => 'varchar-150',
  176. 'name' => '税务登记证',
  177. 'default' => '',
  178. 'desc' => '税务登记证',
  179. 'match' => 'option',
  180. 'update' => 'image',
  181. 'key' => '8',
  182. 'place' => '660*660',
  183. 'tab' => 0,
  184. ),
  185. 'door' => array
  186. (
  187. 'type' => 'varchar-150',
  188. 'name' => '门头照片',
  189. 'default' => '',
  190. 'desc' => '门头照片',
  191. 'match' => 'option',
  192. 'update' => 'image',
  193. 'key' => '8',
  194. 'place' => '660*660',
  195. 'tab' => 0,
  196. ),
  197. 'house_pic' => array
  198. (
  199. 'type' => 'varchar-150',
  200. 'name' => '室内照片',
  201. 'default' => '',
  202. 'desc' => '室内照片',
  203. 'match' => 'option',
  204. 'update' => 'image',
  205. 'key' => '8',
  206. 'place' => '660*660',
  207. 'tab' => 0,
  208. ),
  209. 'screen_pic' => array
  210. (
  211. 'type' => 'varchar-150',
  212. 'name' => '商户网站/APP截图',
  213. 'default' => '',
  214. 'desc' => '商户网站/APP截图',
  215. 'match' => 'option',
  216. 'update' => 'image',
  217. 'key' => '8',
  218. 'place' => '660*660',
  219. 'tab' => 0,
  220. ),
  221. 'name' => array
  222. (
  223. 'type' => 'varchar-32',
  224. 'name' => '法人姓名',
  225. 'default' => '',
  226. 'desc' => '请输入法人姓名',
  227. 'match' => 'is_string',
  228. 'update' => 'text',
  229. 'search' => 'fulltext',
  230. 'list' => true,
  231. 'list_order' => -9,
  232. 'tab' => 1,
  233. ),
  234. 'mobile' => array
  235. (
  236. 'type' => 'bigint-11',
  237. 'name' => '法人电话',
  238. 'default' => '',
  239. 'desc' => '请输入法人电话',
  240. 'match' => 'is_numeric',
  241. 'update' => 'text',
  242. 'search' => 'fulltext',
  243. 'list' => true,
  244. 'list_order' => -8,
  245. 'tab' => 1,
  246. ),
  247. 'legalmanHomeAddr' => array
  248. (
  249. 'type' => 'varchar-50',
  250. 'name' => '法人家庭地址',
  251. 'default' => '',
  252. 'desc' => '法人家庭地址',
  253. 'match' => 'option',
  254. 'update' => 'text',
  255. 'tab' => 1,
  256. ),
  257. 'idcard' => array
  258. (
  259. 'type' => 'varchar-32',
  260. 'name' => '法人身份证号码',
  261. 'default' => '',
  262. 'desc' => '身份证号码',
  263. 'match' => Dever::rule('idcard'),
  264. 'update' => 'text',
  265. 'tab' => 1,
  266. ),
  267. 'card_deadline' => array
  268. (
  269. 'type' => 'varchar-32',
  270. 'name' => '法人身份证截止日期',
  271. 'default' => '',
  272. 'desc' => '身份证截止日期',
  273. 'match' => 'option',
  274. 'default' => '0',
  275. 'desc' => '',
  276. 'match' => 'is_numeric',
  277. 'update' => 'day',
  278. //'search' => 'date',
  279. 'callback' => 'maketime',
  280. 'tab' => 1,
  281. ),
  282. 'idcard_front' => array
  283. (
  284. 'type' => 'varchar-150',
  285. 'name' => '法人身份证正面',
  286. 'default' => '',
  287. 'desc' => '身份证正面',
  288. 'match' => 'option',
  289. 'update' => 'image',
  290. 'key' => '8',
  291. 'place' => '660*660',
  292. 'value' => $shop ? $shop['idcard_front'] : false,
  293. 'tab' => 1,
  294. ),
  295. 'idcard_back' => array
  296. (
  297. 'type' => 'varchar-150',
  298. 'name' => '法人身份证背面',
  299. 'default' => '',
  300. 'desc' => '法人身份证背面',
  301. 'match' => 'option',
  302. 'update' => 'image',
  303. 'key' => '8',
  304. 'place' => '660*660',
  305. 'value' => $shop ? $shop['idcard_back'] : false,
  306. 'tab' => 1,
  307. ),
  308. 'hand_idcard' => array
  309. (
  310. 'type' => 'varchar-150',
  311. 'name' => '法人手持身份证自拍照',
  312. 'default' => '',
  313. 'desc' => '法人手持身份证自拍照',
  314. 'match' => 'option',
  315. 'update' => 'image',
  316. 'key' => '8',
  317. 'place' => '660*660',
  318. 'tab' => 1,
  319. ),
  320. 'reg_mer_type' => array
  321. (
  322. 'type' => 'int-11',
  323. 'name' => '企业类型',
  324. 'default' => '2',
  325. 'desc' => '企业类型',
  326. 'match' => 'option',
  327. 'update' => 'radio',
  328. 'option' => $mer_type,
  329. 'search' => 'select',
  330. 'list' => true,
  331. 'tab' => 2,
  332. ),
  333. 'company_name' => array
  334. (
  335. 'type' => 'varchar-200',
  336. 'name' => '企业名称',
  337. 'default' => '',
  338. 'desc' => '企业名称',
  339. 'match' => 'option',
  340. 'update' => 'text',
  341. 'value' => $shop ? $shop['company_name'] : false,
  342. 'tab' => 2,
  343. ),
  344. 'license' => array
  345. (
  346. 'type' => 'varchar-150',
  347. 'name' => '企业营业执照',
  348. 'default' => '',
  349. 'desc' => '营业执照',
  350. 'match' => 'option',
  351. 'update' => 'image',
  352. 'key' => '8',
  353. 'value' => $shop ? $shop['license'] : false,
  354. 'place' => '660*660',
  355. 'tab' => 2,
  356. ),
  357. 'license_number' => array
  358. (
  359. 'type' => 'varchar-200',
  360. 'name' => '企业营业执照号码',
  361. 'default' => '',
  362. 'desc' => '营业执照号码',
  363. 'match' => 'option',
  364. 'value' => $shop ? $shop['license_number'] : false,
  365. 'update' => 'text',
  366. 'tab' => 2,
  367. ),
  368. 'bank_acct_type' => array
  369. (
  370. 'type' => 'int-11',
  371. 'name' => '开户行账户类型',
  372. 'default' => '-1',
  373. 'desc' => '账户类型',
  374. 'match' => 'option',
  375. 'update' => 'radio',
  376. 'option' => $acct_type,
  377. 'tab' => 3,
  378. ),
  379. 'back_no' => array
  380. (
  381. 'type' => 'varchar-50',
  382. 'name' => '开户行行号',
  383. 'default' => '',
  384. 'desc' => '开户行行号',
  385. 'match' => 'option',
  386. // 'update' => 'text',
  387. 'tab' => 3,
  388. ),
  389. 'shop_addr_ext' => array
  390. (
  391. 'type' => 'varchar-50',
  392. 'name' => '开户行地址',
  393. 'default' => '',
  394. 'desc' => '开户行地址',
  395. 'match' => 'option',
  396. // 'update' => 'text',
  397. 'tab' => 3,
  398. ),
  399. 'bank_acct_no' => array
  400. (
  401. 'type' => 'varchar-50',
  402. 'name' => '开户行账号',
  403. 'default' => '',
  404. 'desc' => '开户行账号',
  405. 'match' => 'option',
  406. 'update' => 'text',
  407. 'tab' => 3,
  408. ),
  409. 'area' => array
  410. (
  411. 'type' => 'varchar-500',
  412. 'name' => '开户所在地',
  413. 'default' => '',
  414. 'desc' => '开户所在地',
  415. 'match' => 'option',
  416. //'search' => 'linkage',
  417. 'update' => 'linkage',
  418. 'value' => $shop ? $shop['area'] : false,
  419. 'option' => Dever::url('api.get?level_total=2', 'area'),
  420. //'list' => 'Dever::load("area/api.string", "{area}")',
  421. 'tab' => 3,
  422. ),
  423. 'bank_acct_noname' => array
  424. (
  425. 'type' => 'varchar-50',
  426. 'name' => '开户行名称-银行名称和支行名称用/隔开,如:招商/天通苑',
  427. 'default' => '',
  428. 'desc' => '开户行名称',
  429. 'match' => 'option',
  430. 'update' => 'text',
  431. 'tab' => 3,
  432. ),
  433. 'bank_fount' => array
  434. (
  435. 'type' => 'varchar-150',
  436. 'name' => '银行卡正面照',
  437. 'default' => '',
  438. 'desc' => '银行卡正面照',
  439. 'match' => 'option',
  440. 'update' => 'image',
  441. 'key' => '8',
  442. 'place' => '660*660',
  443. 'tab' => 3,
  444. ),
  445. 'bank_back' => array
  446. (
  447. 'type' => 'varchar-150',
  448. 'name' => '银行卡反面照',
  449. 'default' => '',
  450. 'desc' => '银行卡反面照',
  451. 'match' => 'option',
  452. 'update' => 'image',
  453. 'key' => '8',
  454. 'place' => '660*660',
  455. 'tab' => 3,
  456. ),
  457. 'open' => array
  458. (
  459. 'type' => 'varchar-150',
  460. 'name' => '开户许可证',
  461. 'default' => '',
  462. 'desc' => '开户许可证',
  463. 'match' => 'option',
  464. 'update' => 'image',
  465. 'key' => '8',
  466. 'place' => '660*660',
  467. 'tab' => 3,
  468. ),
  469. 'step' => array
  470. (
  471. 'type' => 'int-11',
  472. 'name' => '状态',
  473. 'default' => '-1',
  474. 'desc' => '当前步骤',
  475. 'match' => 'option',
  476. 'option' => $step,
  477. // 'update' => 'text',
  478. 'search' => 'select',
  479. 'list' => true,
  480. ),
  481. 'state' => array
  482. (
  483. 'type' => 'tinyint-1',
  484. 'name' => '状态',
  485. 'default' => '1',
  486. 'desc' => '请选择状态',
  487. 'match' => 'is_numeric',
  488. 'list_name' => '最新进度',
  489. 'list' => 'Dever::load("shop/lib/sign.getLog", {id})',
  490. ),
  491. 'cdate' => array
  492. (
  493. 'type' => 'int-11',
  494. 'name' => '录入时间',
  495. 'match' => array('is_numeric', time()),
  496. 'desc' => '',
  497. # 只有insert时才生效
  498. 'insert' => true,
  499. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  500. ),
  501. ),
  502. 'manage' => array
  503. (
  504. 'edit' => false,
  505. 'delete' => false,
  506. # 图片上传后调用的接口
  507. 'upload' => 'shop/lib/sign.upload?sign=1',
  508. # 更新页面顶部描述
  509. 'desc' => $desc,
  510. # 更新页面tab切换
  511. 'tab' => $tab,
  512. //'list' => 'update',
  513. 'list_button' => array
  514. (
  515. 'update' => array('编辑', '', '{step} == -1'),
  516. 'delete' => array('删除', '', '{step} == -1'),
  517. 'oper' => array('提交资料', 'shop/lib/sign.handle?sign_id={id}', '{step} == -1'),
  518. 'fast' => array('打款确认', '"sign&where_id={id}&col=cash"', '{step} == 2'),
  519. 'copy' => array('复制链接', 'shop/lib/sign.getAgreement?sign_id={id}', '{step} == 4'),
  520. //'oper' => array('重新生成合同', 'shop/lib/sign.getAgreement?sign_id={id}', '{step} == 4'),
  521. 'list' => array('查看日志', '"sign_log&search_option_sign_id={id}&oper_table=sign"'),
  522. 'fast1' => array('绑定门店', '"sign&where_id={id}&col=create_shop,shop_id"', '({step} == 6)'),
  523. )
  524. ),
  525. 'request' => array
  526. (
  527. 'getData' => array
  528. (
  529. # 匹配的正则或函数 选填项
  530. 'option' => array
  531. (
  532. 'step' => array('yes', 'in'),
  533. 'state' => 1,
  534. ),
  535. 'type' => 'all',
  536. 'order' => array('id' => 'asc'),
  537. 'col' => '*',
  538. ),
  539. )
  540. );