yspay_sign.php 17 KB

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