sign.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  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. 'name' => array
  210. (
  211. 'type' => 'varchar-32',
  212. 'name' => '法人姓名',
  213. 'default' => '',
  214. 'desc' => '请输入法人姓名',
  215. 'match' => 'is_string',
  216. 'update' => 'text',
  217. 'search' => 'fulltext',
  218. 'list' => true,
  219. 'list_order' => -9,
  220. 'tab' => 1,
  221. ),
  222. 'mobile' => array
  223. (
  224. 'type' => 'bigint-11',
  225. 'name' => '法人电话',
  226. 'default' => '',
  227. 'desc' => '请输入法人电话',
  228. 'match' => 'is_numeric',
  229. 'update' => 'text',
  230. 'search' => 'fulltext',
  231. 'list' => true,
  232. 'list_order' => -8,
  233. 'tab' => 1,
  234. ),
  235. 'legalmanHomeAddr' => array
  236. (
  237. 'type' => 'varchar-50',
  238. 'name' => '法人家庭地址',
  239. 'default' => '',
  240. 'desc' => '法人家庭地址',
  241. 'match' => 'option',
  242. 'update' => 'text',
  243. 'tab' => 1,
  244. ),
  245. 'idcard' => array
  246. (
  247. 'type' => 'varchar-32',
  248. 'name' => '法人身份证号码',
  249. 'default' => '',
  250. 'desc' => '身份证号码',
  251. 'match' => Dever::rule('idcard'),
  252. 'update' => 'text',
  253. 'tab' => 1,
  254. ),
  255. 'card_deadline' => array
  256. (
  257. 'type' => 'varchar-32',
  258. 'name' => '法人身份证截止日期',
  259. 'default' => '',
  260. 'desc' => '身份证截止日期',
  261. 'match' => 'option',
  262. 'default' => '0',
  263. 'desc' => '',
  264. 'match' => 'is_numeric',
  265. 'update' => 'day',
  266. //'search' => 'date',
  267. 'callback' => 'maketime',
  268. 'tab' => 1,
  269. ),
  270. 'idcard_front' => array
  271. (
  272. 'type' => 'varchar-150',
  273. 'name' => '法人身份证正面',
  274. 'default' => '',
  275. 'desc' => '身份证正面',
  276. 'match' => 'option',
  277. 'update' => 'image',
  278. 'key' => '8',
  279. 'place' => '660*660',
  280. 'value' => $shop ? $shop['idcard_front'] : false,
  281. 'tab' => 1,
  282. ),
  283. 'idcard_back' => array
  284. (
  285. 'type' => 'varchar-150',
  286. 'name' => '法人身份证背面',
  287. 'default' => '',
  288. 'desc' => '法人身份证背面',
  289. 'match' => 'option',
  290. 'update' => 'image',
  291. 'key' => '8',
  292. 'place' => '660*660',
  293. 'value' => $shop ? $shop['idcard_back'] : false,
  294. 'tab' => 1,
  295. ),
  296. 'hand_idcard' => array
  297. (
  298. 'type' => 'varchar-150',
  299. 'name' => '法人手持身份证自拍照',
  300. 'default' => '',
  301. 'desc' => '法人手持身份证自拍照',
  302. 'match' => 'option',
  303. 'update' => 'image',
  304. 'key' => '8',
  305. 'place' => '660*660',
  306. 'tab' => 1,
  307. ),
  308. 'reg_mer_type' => array
  309. (
  310. 'type' => 'int-11',
  311. 'name' => '企业类型',
  312. 'default' => '2',
  313. 'desc' => '企业类型',
  314. 'match' => 'option',
  315. 'update' => 'radio',
  316. 'option' => $mer_type,
  317. 'search' => 'select',
  318. 'list' => true,
  319. 'tab' => 2,
  320. ),
  321. 'company_name' => array
  322. (
  323. 'type' => 'varchar-200',
  324. 'name' => '企业名称',
  325. 'default' => '',
  326. 'desc' => '企业名称',
  327. 'match' => 'option',
  328. 'update' => 'text',
  329. 'value' => $shop ? $shop['company_name'] : false,
  330. 'tab' => 2,
  331. ),
  332. 'license' => array
  333. (
  334. 'type' => 'varchar-150',
  335. 'name' => '企业营业执照',
  336. 'default' => '',
  337. 'desc' => '营业执照',
  338. 'match' => 'option',
  339. 'update' => 'image',
  340. 'key' => '8',
  341. 'value' => $shop ? $shop['license'] : false,
  342. 'place' => '660*660',
  343. 'tab' => 2,
  344. ),
  345. 'license_number' => array
  346. (
  347. 'type' => 'varchar-200',
  348. 'name' => '企业营业执照号码',
  349. 'default' => '',
  350. 'desc' => '营业执照号码',
  351. 'match' => 'option',
  352. 'value' => $shop ? $shop['license_number'] : false,
  353. 'update' => 'text',
  354. 'tab' => 2,
  355. ),
  356. 'bank_acct_type' => array
  357. (
  358. 'type' => 'int-11',
  359. 'name' => '开户行账户类型',
  360. 'default' => '-1',
  361. 'desc' => '账户类型',
  362. 'match' => 'option',
  363. 'update' => 'radio',
  364. 'option' => $acct_type,
  365. 'tab' => 3,
  366. ),
  367. 'back_no' => array
  368. (
  369. 'type' => 'varchar-50',
  370. 'name' => '开户行行号',
  371. 'default' => '',
  372. 'desc' => '开户行行号',
  373. 'match' => 'option',
  374. // 'update' => 'text',
  375. 'tab' => 3,
  376. ),
  377. 'shop_addr_ext' => array
  378. (
  379. 'type' => 'varchar-50',
  380. 'name' => '开户行地址',
  381. 'default' => '',
  382. 'desc' => '开户行地址',
  383. 'match' => 'option',
  384. // 'update' => 'text',
  385. 'tab' => 3,
  386. ),
  387. 'bank_acct_no' => array
  388. (
  389. 'type' => 'varchar-50',
  390. 'name' => '开户行账号',
  391. 'default' => '',
  392. 'desc' => '开户行账号',
  393. 'match' => 'option',
  394. 'update' => 'text',
  395. 'tab' => 3,
  396. ),
  397. 'area' => array
  398. (
  399. 'type' => 'varchar-500',
  400. 'name' => '开户所在地',
  401. 'default' => '',
  402. 'desc' => '开户所在地',
  403. 'match' => 'option',
  404. //'search' => 'linkage',
  405. 'update' => 'linkage',
  406. 'value' => $shop ? $shop['area'] : false,
  407. 'option' => Dever::url('api.get?level_total=2', 'area'),
  408. //'list' => 'Dever::load("area/api.string", "{area}")',
  409. 'tab' => 3,
  410. ),
  411. 'bank_acct_noname' => array
  412. (
  413. 'type' => 'varchar-50',
  414. 'name' => '开户行名称-银行名称和支行名称用/隔开,如:招商/天通苑',
  415. 'default' => '',
  416. 'desc' => '开户行名称',
  417. 'match' => 'option',
  418. 'update' => 'text',
  419. 'tab' => 3,
  420. ),
  421. 'bank_fount' => array
  422. (
  423. 'type' => 'varchar-150',
  424. 'name' => '银行卡正面照',
  425. 'default' => '',
  426. 'desc' => '银行卡正面照',
  427. 'match' => 'option',
  428. 'update' => 'image',
  429. 'key' => '8',
  430. 'place' => '660*660',
  431. 'tab' => 3,
  432. ),
  433. 'bank_back' => 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. 'open' => 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. 'step' => array
  458. (
  459. 'type' => 'int-11',
  460. 'name' => '状态',
  461. 'default' => '-1',
  462. 'desc' => '当前步骤',
  463. 'match' => 'option',
  464. 'option' => $step,
  465. // 'update' => 'text',
  466. 'search' => 'select',
  467. 'list' => true,
  468. ),
  469. 'state' => array
  470. (
  471. 'type' => 'tinyint-1',
  472. 'name' => '状态',
  473. 'default' => '1',
  474. 'desc' => '请选择状态',
  475. 'match' => 'is_numeric',
  476. 'list_name' => '最新进度',
  477. 'list' => 'Dever::load("shop/lib/sign.getLog", {id})',
  478. ),
  479. 'cdate' => array
  480. (
  481. 'type' => 'int-11',
  482. 'name' => '录入时间',
  483. 'match' => array('is_numeric', time()),
  484. 'desc' => '',
  485. # 只有insert时才生效
  486. 'insert' => true,
  487. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  488. ),
  489. ),
  490. 'manage' => array
  491. (
  492. 'edit' => false,
  493. 'delete' => false,
  494. # 图片上传后调用的接口
  495. 'upload' => 'shop/lib/sign.upload?sign=1',
  496. # 更新页面顶部描述
  497. 'desc' => $desc,
  498. # 更新页面tab切换
  499. 'tab' => $tab,
  500. //'list' => 'update',
  501. 'list_button' => array
  502. (
  503. 'update' => array('编辑', '', '{step} == -1'),
  504. 'delete' => array('删除', '', '{step} == -1'),
  505. 'oper' => array('提交资料', 'shop/lib/sign.handle?sign_id={id}', '{step} == -1'),
  506. 'fast' => array('打款确认', '"sign&where_id={id}&col=cash"', '{step} == 2'),
  507. 'copy' => array('复制链接', 'shop/lib/sign.getAgreement?sign_id={id}', '{step} == 4'),
  508. 'oper' => array('重新生成合同', 'shop/lib/sign.getAgreement?sign_id={id}', '{step} == 4'),
  509. 'list' => array('查看日志', '"sign_log&search_option_sign_id={id}&oper_table=sign"'),
  510. 'fast1' => array('绑定门店', '"sign&where_id={id}&col=create_shop,shop_id"', '({step} == 5 || {step} == 6)'),
  511. )
  512. ),
  513. 'request' => array
  514. (
  515. 'getData' => array
  516. (
  517. # 匹配的正则或函数 选填项
  518. 'option' => array
  519. (
  520. 'step' => array('yes', 'in'),
  521. 'state' => 1,
  522. ),
  523. 'type' => 'all',
  524. 'order' => array('id' => 'asc'),
  525. 'col' => '*',
  526. ),
  527. )
  528. );