json.js 11 KB

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