json.js 11 KB

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