json.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. export const cityJson = [{
  2. value: '420102',
  3. label: '江岸区'
  4. },
  5. {
  6. value: '420103',
  7. label: '江汉区'
  8. },
  9. {
  10. value: '420104',
  11. label: '硚口区'
  12. },
  13. {
  14. value: '420105',
  15. label: '汉阳区'
  16. },
  17. {
  18. value: '420106',
  19. label: '武昌区'
  20. },
  21. {
  22. value: '420107',
  23. label: '青山区'
  24. },
  25. {
  26. value: '420111',
  27. label: '洪山区'
  28. },
  29. {
  30. value: '420112',
  31. label: '东西湖区'
  32. },
  33. {
  34. value: '420113',
  35. label: '汉南区'
  36. },
  37. {
  38. value: '420114',
  39. label: '蔡甸区'
  40. },
  41. {
  42. value: '420115',
  43. label: '江夏区'
  44. },
  45. {
  46. value: '420116',
  47. label: '黄陂区'
  48. },
  49. {
  50. value: '420117',
  51. label: '新洲区'
  52. }
  53. ]
  54. function flattenJsonData(data) {
  55. let result = []
  56. data.forEach((item) => {
  57. result.push({ value: item.value, label: item.label })
  58. if (item.children) {
  59. result = result.concat(flattenJsonData(item.children))
  60. }
  61. })
  62. return result
  63. }
  64. export const cityJsonOneDim = flattenJsonData(cityJson)
  65. export const getCityNameByCode = (code) => {
  66. return cityJsonOneDim.find((item) => item.value == code)?.label
  67. }
  68. export const orderTypeJson = [{
  69. label: '户政业务',
  70. value: '100000',
  71. children: [{
  72. label: '户口登记',
  73. value: '100100',
  74. children: [{
  75. label: '出生登记',
  76. value: '100101'
  77. },
  78. {
  79. label: '收养登记',
  80. value: '100102'
  81. },
  82. {
  83. label: '恢复户口登记',
  84. value: '100103'
  85. },
  86. {
  87. label: '社区公共户登记',
  88. value: '100104'
  89. }
  90. ]
  91. },
  92. {
  93. label: '户口注销',
  94. value: '100200',
  95. children: [{
  96. label: '死亡注销',
  97. value: '100201'
  98. },
  99. {
  100. label: '出国境注销',
  101. value: '100202'
  102. },
  103. {
  104. label: '其他注销',
  105. value: '100203'
  106. }
  107. ]
  108. },
  109. {
  110. label: '户口迁移',
  111. value: '100300',
  112. children: [{
  113. label: '市内迁移',
  114. value: '100301'
  115. },
  116. {
  117. label: '投靠迁移',
  118. value: '100302'
  119. },
  120. {
  121. label: '购房',
  122. value: '100303'
  123. },
  124. {
  125. label: '大学生落户',
  126. value: '100304'
  127. },
  128. {
  129. label: '人才落户',
  130. value: '100305'
  131. },
  132. {
  133. label: '积分入户',
  134. value: '100306'
  135. },
  136. {
  137. label: '其他',
  138. value: '100307'
  139. }
  140. ]
  141. },
  142. {
  143. label: '户口项目变更更正',
  144. value: '100400',
  145. children: [{
  146. label: '姓名',
  147. value: '100401'
  148. },
  149. {
  150. label: '出生日期',
  151. value: '100402'
  152. },
  153. {
  154. label: '民族',
  155. value: '100403'
  156. },
  157. {
  158. label: '其他',
  159. value: '100404'
  160. }
  161. ]
  162. },
  163. {
  164. label: '身份证',
  165. value: '100500',
  166. children: [{
  167. label: '证件办理',
  168. value: '100501'
  169. },
  170. {
  171. label: '临时身份证',
  172. value: '100502'
  173. },
  174. {
  175. label: '办理进度',
  176. value: '100503'
  177. },
  178. {
  179. label: '电子证照更新',
  180. value: '100504'
  181. }
  182. ]
  183. },
  184. {
  185. label: '居住证',
  186. value: '100600',
  187. children: [{
  188. label: '证件办理',
  189. value: '100601'
  190. },
  191. {
  192. label: '进度查询',
  193. value: '100602'
  194. },
  195. {
  196. label: '电子证照更新',
  197. value: '100603'
  198. }
  199. ]
  200. },
  201. {
  202. label: '开具户籍证明',
  203. value: '100700',
  204. children: [{
  205. label: '亲属关系证明',
  206. value: '100701'
  207. },
  208. {
  209. label: '变更更正证明',
  210. value: '100702'
  211. },
  212. {
  213. label: '注销证明',
  214. value: '100703'
  215. },
  216. {
  217. label: '其他证明',
  218. value: '100704'
  219. },
  220. {
  221. label: '户口簿打印',
  222. value: '100705'
  223. }
  224. ]
  225. },
  226. {
  227. label: '个人信息查询',
  228. value: '100800',
  229. children: [{
  230. label: '律师查询',
  231. value: '100801'
  232. },
  233. {
  234. label: '法院查询',
  235. value: '100802'
  236. },
  237. {
  238. label: '个人历史档案查询',
  239. value: '100803'
  240. },
  241. {
  242. label: '其他查询',
  243. value: '100804'
  244. }
  245. ]
  246. },
  247. {
  248. label: '自助机',
  249. value: '100900',
  250. children: [{
  251. label: '机器故障',
  252. value: '100901'
  253. },
  254. {
  255. label: '收退费',
  256. value: '100902'
  257. },
  258. {
  259. label: '其他',
  260. value: '100903'
  261. }
  262. ]
  263. },
  264. {
  265. label: '其他',
  266. value: '1001000',
  267. children: [{
  268. label: '政策制定建议',
  269. value: '1001001'
  270. },
  271. {
  272. label: '管辖争议',
  273. value: '1001002'
  274. },
  275. {
  276. label: '服务态度',
  277. value: '1001003'
  278. },
  279. {
  280. label: '网络故障',
  281. value: '1001004'
  282. }
  283. ]
  284. }
  285. ]
  286. },
  287. {
  288. label: '出入境业务',
  289. value: '200000',
  290. children: [{
  291. label: '普通护照',
  292. value: '200100',
  293. children: [{
  294. label: '签发',
  295. value: '200101'
  296. },
  297. {
  298. label: '换发',
  299. value: '200102'
  300. },
  301. {
  302. label: '加注',
  303. value: '200103'
  304. },
  305. {
  306. label: '补发',
  307. value: '200104'
  308. }
  309. ]
  310. },
  311. {
  312. label: '港澳通行证',
  313. value: '200200',
  314. children: [{
  315. label: '普通办证',
  316. value: '200201'
  317. },
  318. {
  319. label: '签注签发',
  320. value: '200202'
  321. },
  322. {
  323. label: '换发',
  324. value: '200203'
  325. }
  326. ]
  327. },
  328. {
  329. label: '往来台湾通行证',
  330. value: '200300',
  331. children: [{
  332. label: '普通办证',
  333. value: '200301'
  334. },
  335. {
  336. label: '加签注',
  337. value: '200302'
  338. },
  339. {
  340. label: '补发',
  341. value: '200303'
  342. },
  343. {
  344. label: '换补发台胞证',
  345. value: '200304'
  346. }
  347. ]
  348. },
  349. {
  350. label: '企业事项',
  351. value: '200400',
  352. children: [{
  353. label: '涉外企业备案',
  354. value: '200401'
  355. },
  356. {
  357. label: '往来港澳商务单位登记备案',
  358. value: '200402'
  359. },
  360. {
  361. label: '加签注',
  362. value: '200403'
  363. },
  364. {
  365. label: '多次往来',
  366. value: '200404'
  367. }
  368. ]
  369. },
  370. {
  371. label: '外国人居留许可',
  372. value: '200500',
  373. children: [{
  374. label: '外国人签证延期',
  375. value: '200501'
  376. },
  377. {
  378. label: '换发',
  379. value: '200502'
  380. },
  381. {
  382. label: '补发',
  383. value: '200503'
  384. }
  385. ]
  386. },
  387. {
  388. label: '外国人居留许可',
  389. value: '200600'
  390. }
  391. ]
  392. },
  393. {
  394. label: '内保业务',
  395. value: '300000',
  396. children: [{
  397. label: '金融机构营业场所和金库安全防范设施',
  398. value: '300100'
  399. },
  400. {
  401. label: '保安服务公司事项',
  402. value: '300200'
  403. }
  404. ]
  405. },
  406. {
  407. label: '网安业务',
  408. value: '400000',
  409. children: [{
  410. label: '互联网上网服务营业场所',
  411. value: '400100'
  412. },
  413. {
  414. label: '信息安全等级保护',
  415. value: '400200'
  416. },
  417. {
  418. label: '国际联网备案',
  419. value: '400300'
  420. }
  421. ]
  422. },
  423. {
  424. label: '禁毒业务',
  425. value: '500000',
  426. children: [{
  427. label: '易制毒化学品购买许可',
  428. value: '500100'
  429. },
  430. {
  431. label: '易制毒化学品运输许可',
  432. value: '500200'
  433. },
  434. {
  435. label: '禁毒宣传',
  436. value: '500300'
  437. }
  438. ]
  439. },
  440. {
  441. label: '交管业务',
  442. value: '600000',
  443. children: [{
  444. label: '机动车业务',
  445. value: '600100',
  446. children: [{
  447. label: '新车上牌',
  448. value: '600101'
  449. },
  450. {
  451. label: '二手车过户',
  452. value: '600102'
  453. },
  454. {
  455. label: '车辆检验',
  456. value: '600103'
  457. },
  458. {
  459. label: '核发标志',
  460. value: '600104'
  461. },
  462. {
  463. label: '车辆补换牌证',
  464. value: '600105'
  465. },
  466. {
  467. label: '车辆转出转入',
  468. value: '600106'
  469. },
  470. {
  471. label: '变更机动车信息',
  472. value: '600107'
  473. },
  474. {
  475. label: '车辆改装变更',
  476. value: '600108'
  477. },
  478. {
  479. label: '换发号牌',
  480. value: '600109'
  481. },
  482. {
  483. label: '抵押',
  484. value: '6001010'
  485. },
  486. {
  487. label: '解抵押',
  488. value: '6001011'
  489. },
  490. {
  491. label: '核发临牌',
  492. value: '6001012'
  493. },
  494. {
  495. label: '报废',
  496. value: '6001013'
  497. },
  498. {
  499. label: '注销',
  500. value: '6001014'
  501. },
  502. {
  503. label: '出口',
  504. value: '6001015'
  505. },
  506. {
  507. label: '校车标牌',
  508. value: '6001016'
  509. },
  510. {
  511. label: '临时入境机动车业务',
  512. value: '6001017'
  513. },
  514. {
  515. label: '失窃',
  516. value: '6001018'
  517. },
  518. {
  519. label: '被盗',
  520. value: '6001018'
  521. }
  522. ]
  523. },
  524. {
  525. label: '驾驶证业务',
  526. value: '600200',
  527. children: [{
  528. label: '初领',
  529. value: '600201'
  530. },
  531. {
  532. label: '增驾',
  533. value: '600202'
  534. },
  535. {
  536. label: '变更C5',
  537. value: '600203'
  538. },
  539. {
  540. label: '补换领驾驶证',
  541. value: '600204'
  542. },
  543. {
  544. label: '审验',
  545. value: '600205'
  546. },
  547. {
  548. label: '满分学习',
  549. value: '600206'
  550. },
  551. {
  552. label: '提交身份证条件证明',
  553. value: '600207'
  554. },
  555. {
  556. label: '体检',
  557. value: '600208'
  558. },
  559. {
  560. label: '驾驶证信息变更',
  561. value: '600209'
  562. },
  563. {
  564. label: '驾驶证延期',
  565. value: '6002010'
  566. },
  567. {
  568. label: '驾驶证注销',
  569. value: '6002011'
  570. },
  571. {
  572. label: '驾驶证恢复',
  573. value: '6002012'
  574. },
  575. {
  576. label: '校车驾驶资格申请',
  577. value: '6002013'
  578. },
  579. {
  580. label: '临时驾驶许可申请',
  581. value: '6002014'
  582. },
  583. {
  584. label: '考试事项',
  585. value: '6002015'
  586. }
  587. ]
  588. },
  589. {
  590. label: '事故业务',
  591. value: '600300'
  592. },
  593. {
  594. label: '违法业务',
  595. value: '600400'
  596. },
  597. {
  598. label: '其他业务',
  599. value: '600500'
  600. }
  601. ]
  602. },
  603. {
  604. label: '治安',
  605. value: '700000',
  606. children: [{
  607. label: '爆破作业项目',
  608. value: '700100'
  609. },
  610. {
  611. label: '大型活动许可',
  612. value: '700200'
  613. },
  614. {
  615. label: '放射性物品道路运输许可',
  616. value: '700300'
  617. },
  618. {
  619. label: '公章刻制',
  620. value: '700400'
  621. },
  622. {
  623. label: '管制刀具',
  624. value: '700500'
  625. },
  626. {
  627. label: '弩制造许可',
  628. value: '700600'
  629. },
  630. {
  631. label: '举行集会游行示威许可',
  632. value: '700700'
  633. },
  634. {
  635. label: '人员备案',
  636. value: '700800'
  637. },
  638. {
  639. label: '剧毒',
  640. value: '700900'
  641. },
  642. {
  643. label: '易制爆危险化学品事项',
  644. value: '7001000'
  645. },
  646. {
  647. label: '旅馆业事项',
  648. value: '7001100'
  649. },
  650. {
  651. label: '民爆物品事项',
  652. value: '7001200'
  653. },
  654. {
  655. label: '民用枪支事项',
  656. value: '7001300'
  657. },
  658. {
  659. label: '犬类准养证核发',
  660. value: '7001400'
  661. },
  662. {
  663. label: '烟花爆竹燃放',
  664. value: '7001500'
  665. },
  666. {
  667. label: '娱乐场所备案',
  668. value: '7001600'
  669. },
  670. {
  671. label: '烟花爆竹事项',
  672. value: '7001700'
  673. },
  674. {
  675. label: '射击竞技体育运动备案',
  676. value: '7001800'
  677. },
  678. {
  679. label: '许可',
  680. value: '7001900'
  681. }
  682. ]
  683. }
  684. ]
  685. export const typeJsonOneDim = flattenJsonData(orderTypeJson)
  686. export const getTypeNameByCode = (code) => {
  687. return typeJsonOneDim.find((item) => item.value == code)?.label
  688. }