yspay_sign.php 17 KB

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