@fmdevui/fm-dev 1.0.89 → 1.0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/es/_virtual/de-DE.mjs +1 -1
  2. package/es/_virtual/en-US.mjs +1 -1
  3. package/es/_virtual/es-ES.mjs +1 -1
  4. package/es/_virtual/fr-FR.mjs +1 -1
  5. package/es/_virtual/it-IT.mjs +1 -1
  6. package/es/_virtual/ja-JP.mjs +1 -1
  7. package/es/_virtual/ko-KR.mjs +1 -1
  8. package/es/_virtual/nb-NO.mjs +1 -1
  9. package/es/_virtual/pt-BR.mjs +1 -1
  10. package/es/_virtual/ru-RU.mjs +1 -1
  11. package/es/_virtual/th-TH.mjs +1 -1
  12. package/es/_virtual/vi-VN.mjs +1 -1
  13. package/es/_virtual/zh-CN.mjs +1 -1
  14. package/es/_virtual/zh-HK.mjs +1 -1
  15. package/es/_virtual/zh-TW.mjs +1 -1
  16. package/es/core/utils/cityparess/index.d.ts +2 -2
  17. package/es/packages/core/ui/components/fmaddressparsing/index.vue2.mjs +174 -104
  18. package/es/packages/core/utils/cityparess/index.mjs +169 -94
  19. package/index.js +345 -200
  20. package/index.min.js +27 -27
  21. package/index.min.mjs +26 -26
  22. package/index.mjs +345 -200
  23. package/lib/_virtual/de-DE.js +1 -1
  24. package/lib/_virtual/en-US.js +1 -1
  25. package/lib/_virtual/es-ES.js +1 -1
  26. package/lib/_virtual/fr-FR.js +1 -1
  27. package/lib/_virtual/it-IT.js +1 -1
  28. package/lib/_virtual/ja-JP.js +1 -1
  29. package/lib/_virtual/ko-KR.js +1 -1
  30. package/lib/_virtual/nb-NO.js +1 -1
  31. package/lib/_virtual/pt-BR.js +1 -1
  32. package/lib/_virtual/ru-RU.js +1 -1
  33. package/lib/_virtual/th-TH.js +1 -1
  34. package/lib/_virtual/vi-VN.js +1 -1
  35. package/lib/_virtual/zh-CN.js +1 -1
  36. package/lib/_virtual/zh-HK.js +1 -1
  37. package/lib/_virtual/zh-TW.js +1 -1
  38. package/lib/core/utils/cityparess/index.d.ts +2 -2
  39. package/lib/packages/core/ui/components/fmaddressparsing/index.vue2.js +174 -104
  40. package/lib/packages/core/utils/cityparess/index.js +169 -94
  41. package/package.json +1 -1
  42. /package/es/{defaults.css → component.css} +0 -0
  43. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/de-DE.mjs +0 -0
  44. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/en-US.mjs +0 -0
  45. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/es-ES.mjs +0 -0
  46. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/fr-FR.mjs +0 -0
  47. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/it-IT.mjs +0 -0
  48. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/ja-JP.mjs +0 -0
  49. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/ko-KR.mjs +0 -0
  50. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/nb-NO.mjs +0 -0
  51. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/pt-BR.mjs +0 -0
  52. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/ru-RU.mjs +0 -0
  53. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/th-TH.mjs +0 -0
  54. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/vi-VN.mjs +0 -0
  55. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-CHT.mjs +0 -0
  56. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-CN.mjs +0 -0
  57. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-HK.mjs +0 -0
  58. /package/es/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-TW.mjs +0 -0
  59. /package/lib/{defaults.css → index.css} +0 -0
  60. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/de-DE.js +0 -0
  61. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/en-US.js +0 -0
  62. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/es-ES.js +0 -0
  63. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/fr-FR.js +0 -0
  64. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/it-IT.js +0 -0
  65. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/ja-JP.js +0 -0
  66. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/ko-KR.js +0 -0
  67. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/nb-NO.js +0 -0
  68. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/pt-BR.js +0 -0
  69. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/ru-RU.js +0 -0
  70. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/th-TH.js +0 -0
  71. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/vi-VN.js +0 -0
  72. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-CHT.js +0 -0
  73. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-CN.js +0 -0
  74. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-HK.js +0 -0
  75. /package/lib/node_modules/.pnpm/{vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_ → vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_}/node_modules/vxe-table/lib/locale/lang/zh-TW.js +0 -0
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireDeDE } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/de-DE.mjs';
2
+ import { __require as requireDeDE } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/de-DE.mjs';
3
3
 
4
4
  var deDEExports = requireDeDE();
5
5
  var deDE = /*@__PURE__*/getDefaultExportFromCjs(deDEExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireEnUS } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/en-US.mjs';
2
+ import { __require as requireEnUS } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/en-US.mjs';
3
3
 
4
4
  var enUSExports = requireEnUS();
5
5
  var msMY = /*@__PURE__*/getDefaultExportFromCjs(enUSExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireEsES } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/es-ES.mjs';
2
+ import { __require as requireEsES } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/es-ES.mjs';
3
3
 
4
4
  var esESExports = requireEsES();
5
5
  var esES = /*@__PURE__*/getDefaultExportFromCjs(esESExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireFrFR } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/fr-FR.mjs';
2
+ import { __require as requireFrFR } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/fr-FR.mjs';
3
3
 
4
4
  var frFRExports = requireFrFR();
5
5
  var frFR = /*@__PURE__*/getDefaultExportFromCjs(frFRExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireItIT } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/it-IT.mjs';
2
+ import { __require as requireItIT } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/it-IT.mjs';
3
3
 
4
4
  var itITExports = requireItIT();
5
5
  var itIT = /*@__PURE__*/getDefaultExportFromCjs(itITExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireJaJP } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/ja-JP.mjs';
2
+ import { __require as requireJaJP } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/ja-JP.mjs';
3
3
 
4
4
  var jaJPExports = requireJaJP();
5
5
  var jaJP = /*@__PURE__*/getDefaultExportFromCjs(jaJPExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireKoKR } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/ko-KR.mjs';
2
+ import { __require as requireKoKR } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/ko-KR.mjs';
3
3
 
4
4
  var koKRExports = requireKoKR();
5
5
  var koKR = /*@__PURE__*/getDefaultExportFromCjs(koKRExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireNbNO } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/nb-NO.mjs';
2
+ import { __require as requireNbNO } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/nb-NO.mjs';
3
3
 
4
4
  var nbNOExports = requireNbNO();
5
5
  var noNO = /*@__PURE__*/getDefaultExportFromCjs(nbNOExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requirePtBR } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/pt-BR.mjs';
2
+ import { __require as requirePtBR } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/pt-BR.mjs';
3
3
 
4
4
  var ptBRExports = requirePtBR();
5
5
  var ptBR = /*@__PURE__*/getDefaultExportFromCjs(ptBRExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireRuRU } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/ru-RU.mjs';
2
+ import { __require as requireRuRU } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/ru-RU.mjs';
3
3
 
4
4
  var ruRUExports = requireRuRU();
5
5
  var ruRU = /*@__PURE__*/getDefaultExportFromCjs(ruRUExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireThTH } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/th-TH.mjs';
2
+ import { __require as requireThTH } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/th-TH.mjs';
3
3
 
4
4
  var thTHExports = requireThTH();
5
5
  var thTH = /*@__PURE__*/getDefaultExportFromCjs(thTHExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireViVN } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/vi-VN.mjs';
2
+ import { __require as requireViVN } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/vi-VN.mjs';
3
3
 
4
4
  var viVNExports = requireViVN();
5
5
  var viVN = /*@__PURE__*/getDefaultExportFromCjs(viVNExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireZhCN } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/zh-CN.mjs';
2
+ import { __require as requireZhCN } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/zh-CN.mjs';
3
3
 
4
4
  var zhCNExports = requireZhCN();
5
5
  var zhCN = /*@__PURE__*/getDefaultExportFromCjs(zhCNExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireZhHK } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/zh-HK.mjs';
2
+ import { __require as requireZhHK } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/zh-HK.mjs';
3
3
 
4
4
  var zhHKExports = requireZhHK();
5
5
  var zhHK = /*@__PURE__*/getDefaultExportFromCjs(zhHKExports);
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireZhTW } from '../node_modules/.pnpm/vxe-table@4.16.4_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/zh-TW.mjs';
2
+ import { __require as requireZhTW } from '../node_modules/.pnpm/vxe-table@4.16.6_vue@3.5.20_typescript@5.8.3_/node_modules/vxe-table/lib/locale/lang/zh-TW.mjs';
3
3
 
4
4
  var zhTWExports = requireZhTW();
5
5
  var zhTW = /*@__PURE__*/getDefaultExportFromCjs(zhTWExports);
@@ -1,6 +1,6 @@
1
1
  declare const addressparsing: (val: any) => Promise<{
2
2
  province: string;
3
- city: any;
4
- county: any;
3
+ city: string;
4
+ county: string;
5
5
  }>;
6
6
  export { addressparsing };
@@ -46,145 +46,176 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
46
46
  emit("changeparsing", { province: "", city: "", county: "" });
47
47
  return;
48
48
  }
49
- let province = "";
49
+ let _Province = "";
50
+ let _City = "";
51
+ let _County = "";
50
52
  const oldvalue = val.trim();
51
- let newValue = "";
52
- province = chkeProvince(oldvalue.substr(0, 2));
53
- if (province == "" && oldvalue.length > 2) {
54
- province = chkeProvince(oldvalue.substr(0, 3));
55
- }
56
- newValue = oldvalue.replace(province, "").trim();
57
- if (newValue.length < 2) {
58
- return;
59
- }
60
- let cityobj = chkeCity(province, newValue.substr(0, 2));
61
- if (cityobj.c == "" && newValue.length > 2) {
62
- cityobj = chkeCity(province, newValue.substr(0, 3));
63
- if (cityobj.c != "" && province == "") {
64
- province = cityobj.p;
53
+ const oldValueLen = val.trim().length;
54
+ const oneObje = getProvince(oldvalue);
55
+ let nextValue = oldvalue;
56
+ if (oneObje.p != "") {
57
+ _Province = oneObje.p;
58
+ nextValue = oldvalue.replace(oneObje.p, "").trim();
59
+ if (nextValue.length == oldValueLen) {
60
+ for (let i = _Province.length - 1; i >= 1; i--) {
61
+ nextValue = oldvalue.replace(oneObje.p.substr(0, i), "").trim();
62
+ if (nextValue.length < oldValueLen) {
63
+ break;
64
+ }
65
+ }
65
66
  }
66
67
  }
67
- newValue = oldvalue.replace(province, "").replace(cityobj.c, "").trim();
68
- if (newValue.length < 2) {
69
- return;
70
- }
71
- let countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 2));
72
- if (countyOjb.x == "" && newValue.length > 2) {
73
- countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 3));
74
- if (countyOjb.x == "" && newValue.length > 3) {
75
- countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 4));
76
- if (countyOjb.x == "" && newValue.length > 4) {
77
- countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 5));
78
- if (countyOjb.x == "" && newValue.length > 5) {
79
- countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 6));
80
- if (countyOjb.x == "" && newValue.length > 6) {
81
- countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 7));
82
- if (countyOjb.x == "" && newValue.length > 7) {
83
- countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 8));
84
- if (countyOjb.x == "" && newValue.length > 8) {
85
- countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 9));
86
- if (countyOjb.x == "" && newValue.length > 9) {
87
- countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 10));
88
- if (countyOjb.x == "" && newValue.length > 10) {
89
- countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 11));
90
- if (countyOjb.x == "" && newValue.length > 11) {
91
- countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 12));
92
- if (countyOjb.x == "" && newValue.length > 12) {
93
- countyOjb = chkeCounty(province, cityobj.c, newValue.substr(0, 13));
94
- }
95
- }
96
- }
97
- }
98
- }
99
- }
100
- }
68
+ const oldValueLen2 = nextValue.length;
69
+ const twoObje = getCity(nextValue, _Province);
70
+ if (twoObje.c != "") {
71
+ _City = twoObje.c;
72
+ if (_Province == "") {
73
+ _Province = twoObje.p;
74
+ }
75
+ nextValue = nextValue.replace(twoObje.c, "").trim();
76
+ if (nextValue.length == oldValueLen2) {
77
+ for (let i = _City.length - 1; i >= 1; i--) {
78
+ nextValue = nextValue.replace(twoObje.c.substr(0, i), "").trim();
79
+ if (nextValue.length < oldValueLen2) {
80
+ break;
101
81
  }
102
82
  }
103
83
  }
104
84
  }
105
- if (province == "") {
106
- province = countyOjb.p;
107
- }
108
- if (cityobj.c == "") {
109
- cityobj.c = countyOjb.c;
110
- }
111
- if (province != "") {
112
- if (hasOwn(modelValue.value, props.fprovince)) {
113
- modelValue.value[props.fprovince] = province;
85
+ const oldValueLen3 = nextValue.length;
86
+ const threeObje = getCounty(nextValue, _City, _Province);
87
+ if (threeObje.x != "") {
88
+ _County = threeObje.x;
89
+ if (_Province == "") {
90
+ _Province = threeObje.p;
91
+ }
92
+ if (_City == "") {
93
+ _City = threeObje.c;
94
+ }
95
+ nextValue = nextValue.replace(threeObje.x, "").trim();
96
+ if (nextValue.length == oldValueLen3) {
97
+ for (let i = _City.length - 1; i >= 1; i--) {
98
+ nextValue = nextValue.replace(threeObje.x.substr(0, i), "").trim();
99
+ if (nextValue.length < oldValueLen3) {
100
+ break;
101
+ }
102
+ }
114
103
  }
115
104
  }
116
- if (province == "" && cityobj.p != "") {
105
+ if (_Province != "") {
117
106
  if (hasOwn(modelValue.value, props.fprovince)) {
118
- modelValue.value[props.fprovince] = cityobj.p;
107
+ modelValue.value[props.fprovince] = _Province;
119
108
  }
120
109
  }
121
- if (cityobj.c != "") {
110
+ if (_City != "") {
122
111
  if (hasOwn(modelValue.value, props.fcity)) {
123
- modelValue.value[props.fcity] = cityobj.c;
112
+ modelValue.value[props.fcity] = _City;
124
113
  }
125
114
  }
126
- if (countyOjb.x != "") {
115
+ if (_County != "") {
127
116
  if (hasOwn(modelValue.value, props.fcounty)) {
128
- modelValue.value[props.fcounty] = countyOjb.x;
117
+ modelValue.value[props.fcounty] = _County;
129
118
  }
130
119
  }
131
- if (province != "" && cityobj.c != "" && countyOjb.x != "") {
132
- emit("changeparsing", { province, city: cityobj.c, county: countyOjb.x });
120
+ if (_Province != "" && _City != "" && _County != "") {
121
+ emit("changeparsing", { province: _Province, city: _City, county: _County });
133
122
  return;
134
123
  }
135
- newValue = oldvalue.replace(province, "").replace(cityobj.c, "").replace(countyOjb.x, "").trim();
136
- if (newValue.length < 2) {
137
- emit("changeparsing", { province, city: cityobj.c, county: countyOjb.x });
124
+ if (nextValue.length < 2) {
125
+ emit("changeparsing", { province: _Province, city: _City, county: _County });
138
126
  return;
139
127
  }
140
- const res = await useBaseApi("sysRegion").post({ Province: province, City: cityobj.c, text: oldvalue, textnew: newValue }, "qRegionInfo");
128
+ const res = await useBaseApi("sysRegion").post({ Province: _Province, City: _City, text: oldvalue, textnew: nextValue }, "qRegionInfo");
141
129
  const streetobj = res.data.result;
142
- const rpdata = { province, city: cityobj.c, county: countyOjb.x };
143
130
  if (streetobj.province != "") {
144
131
  if (hasOwn(modelValue.value, props.fprovince)) {
145
132
  modelValue.value[props.fprovince] = streetobj.province;
146
133
  }
147
- rpdata.province = streetobj.province;
134
+ _Province = streetobj.province;
148
135
  }
149
136
  if (streetobj.city != "") {
150
137
  if (hasOwn(modelValue.value, props.fcity)) {
151
138
  modelValue.value[props.fcity] = streetobj.city;
152
139
  }
153
- rpdata.city = streetobj.city;
140
+ _City = streetobj.city;
154
141
  }
155
142
  if (streetobj.county != "") {
156
143
  if (hasOwn(modelValue.value, props.fcounty)) {
157
144
  modelValue.value[props.fcounty] = streetobj.county;
158
145
  }
159
- rpdata.county = streetobj.county;
146
+ _County = streetobj.county;
160
147
  }
161
- emit("changeparsing", rpdata);
148
+ emit("changeparsing", { province: _Province, city: _City, county: _County });
162
149
  };
163
150
  function hasOwn(obj, key) {
164
151
  return Object.prototype.hasOwnProperty.call(obj, key);
165
152
  }
166
- const chkeProvince = (val) => {
153
+ const getProvince = (val) => {
154
+ if (val == null || val == void 0 || val == "" || val.length < 2) {
155
+ return { p: "", jval: "" };
156
+ }
157
+ const jval = val.substr(0, 2);
158
+ const objectOne = splitProvince(jval);
159
+ if (objectOne.list.length == 1) {
160
+ return { p: objectOne.list[0], jval };
161
+ } else if (objectOne.list.length > 1) {
162
+ const jval3 = val.substr(0, 3);
163
+ const objectThreed = splitProvince(jval3);
164
+ if (objectThreed.list.length == 1) {
165
+ return { p: objectThreed.list[0], jval: jval3 };
166
+ }
167
+ }
168
+ return { p: "", jval: "" };
169
+ };
170
+ const splitProvince = (val) => {
167
171
  if (val == null || val == void 0 || val == "") {
168
- return "";
172
+ return { p: "", list: [], count: 0 };
169
173
  }
170
- let province = "";
174
+ const findList = [];
171
175
  for (let i = 0; i < provinceData.length; i++) {
172
176
  if (provinceData[i].indexOf(val) > -1) {
173
177
  const arrTemp = provinceData[i].split("|");
174
178
  const arr = arrTemp.filter((item) => item == val);
175
179
  if (arr && arr.length > 0) {
176
- province = provinceData[i].split("|")[0];
177
- break;
180
+ findList.push(provinceData[i].split("|")[0]);
181
+ }
182
+ }
183
+ }
184
+ const firstOne = findList.length > 0 ? findList[0] : "";
185
+ return { p: firstOne, list: findList, count: findList.length };
186
+ };
187
+ const getCity = (val, province) => {
188
+ if (val == null || val == void 0 || val == "" || val.length < 2) {
189
+ return { p: "", c: "", jval: "" };
190
+ }
191
+ const jval = val.substr(0, 2);
192
+ const objectOne = splitCity(jval, province);
193
+ if (objectOne.list.length == 1) {
194
+ return { p: objectOne.p, c: objectOne.c, jval };
195
+ } else if (objectOne.list.length > 1) {
196
+ const jval3 = val.substr(0, 3);
197
+ const objectThreed = splitCity(jval3, province);
198
+ if (objectThreed.list.length == 1) {
199
+ return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
200
+ } else if (objectThreed.list.length == 0) {
201
+ return { p: objectOne.p, c: objectOne.c, jval: val };
202
+ } else if (objectThreed.list.length > 0) {
203
+ const jval4 = val.substr(0, 4);
204
+ const objectFoure = splitCity(jval4, province);
205
+ if (objectFoure.list.length > 0) {
206
+ return { p: objectFoure.p, c: objectFoure.c, jval: jval4 };
207
+ } else if (objectFoure.list.length == 0) {
208
+ return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
178
209
  }
179
210
  }
180
211
  }
181
- return province;
212
+ return { p: "", c: "", jval: "" };
182
213
  };
183
- const chkeCity = (province, val) => {
214
+ const splitCity = (val, province) => {
184
215
  if (val == null || val == void 0 || val == "") {
185
- return { p: "", c: "" };
216
+ return { p: "", c: "", list: [] };
186
217
  }
187
- let cityobj = { p: "", c: "" };
218
+ const findList = [];
188
219
  for (let i = 0; i < cityData.length; i++) {
189
220
  if (cityData[i].indexOf(val) > -1) {
190
221
  const arrTemp = cityData[i].split("|");
@@ -192,26 +223,60 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
192
223
  if (arr && arr.length > 0) {
193
224
  if (province != "") {
194
225
  if (cityData[i].split("|")[0] == province) {
195
- cityobj.p = cityData[i].split("|")[0];
196
- cityobj.c = cityData[i].split("|")[1];
197
- break;
226
+ findList.push(
227
+ {
228
+ p: cityData[i].split("|")[0],
229
+ c: cityData[i].split("|")[1]
230
+ }
231
+ );
198
232
  }
199
233
  } else {
200
- cityobj.p = cityData[i].split("|")[0];
201
- cityobj.c = cityData[i].split("|")[1];
202
- break;
234
+ findList.push(
235
+ {
236
+ p: cityData[i].split("|")[0],
237
+ c: cityData[i].split("|")[1]
238
+ }
239
+ );
203
240
  }
204
- break;
205
241
  }
206
242
  }
207
243
  }
208
- return cityobj;
244
+ const _p = findList.length > 0 ? findList[0].p : "";
245
+ const _c = findList.length > 0 ? findList[0].c : "";
246
+ return { p: _p, c: _c, list: findList };
209
247
  };
210
- const chkeCounty = (province, city, val) => {
248
+ const getCounty = (val, city, province) => {
249
+ if (val == null || val == void 0 || val == "" || val.length < 2) {
250
+ return { p: "", c: "", x: "", jval: "" };
251
+ }
252
+ const jval = val.substr(0, 2);
253
+ const objectOne = splitCounty(jval, city, province);
254
+ if (objectOne.list.length == 1) {
255
+ return { p: objectOne.p, c: objectOne.c, x: objectOne.x, jval };
256
+ } else if (objectOne.list.length > 1) {
257
+ const jval3 = val.substr(0, 3);
258
+ const objectThreed = splitCounty(jval3, city, province);
259
+ if (objectThreed.list.length == 1) {
260
+ return { p: objectThreed.p, c: objectThreed.c, x: objectThreed.x, jval: jval3 };
261
+ } else if (objectThreed.list.length == 0) {
262
+ return { p: objectOne.p, c: objectOne.c, x: objectOne.x, jval: val };
263
+ } else if (objectThreed.list.length > 0) {
264
+ const jval4 = val.substr(0, 4);
265
+ const objectFoure = splitCounty(jval3, city, province);
266
+ if (objectFoure.list.length > 0) {
267
+ return { p: objectFoure.p, c: objectFoure.c, x: objectFoure.x, jval: jval4 };
268
+ } else if (objectFoure.list.length == 0) {
269
+ return { p: objectThreed.p, c: objectThreed.c, x: objectThreed.x, jval: jval3 };
270
+ }
271
+ }
272
+ }
273
+ return { p: "", c: "", x: "", jval: "" };
274
+ };
275
+ const splitCounty = (val, city, province) => {
211
276
  if (val == null || val == void 0 || val == "") {
212
- return { p: "", c: "", x: "" };
277
+ return { p: "", c: "", x: "", list: [] };
213
278
  }
214
- let countyobj = { p: "", c: "", x: "" };
279
+ const findList = [];
215
280
  for (let i = 0; i < countyData.length; i++) {
216
281
  if (countyData[i].indexOf(val) > -1) {
217
282
  const arrTemp = countyData[i].split("|");
@@ -219,21 +284,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
219
284
  if (arr && arr.length > 0) {
220
285
  if (province != "" && city != "") {
221
286
  if (countyData[i].split("|")[0] == province && countyData[i].split("|")[1] == city) {
222
- countyobj.p = countyData[i].split("|")[0];
223
- countyobj.c = countyData[i].split("|")[1];
224
- countyobj.x = countyData[i].split("|")[2];
225
- break;
287
+ findList.push({
288
+ p: countyData[i].split("|")[0],
289
+ c: countyData[i].split("|")[1],
290
+ x: countyData[i].split("|")[2]
291
+ });
226
292
  }
227
293
  } else {
228
- countyobj.p = countyData[i].split("|")[0];
229
- countyobj.c = countyData[i].split("|")[1];
230
- countyobj.x = countyData[i].split("|")[2];
231
- break;
294
+ findList.push({
295
+ p: countyData[i].split("|")[0],
296
+ c: countyData[i].split("|")[1],
297
+ x: countyData[i].split("|")[2]
298
+ });
232
299
  }
233
300
  }
234
301
  }
235
302
  }
236
- return countyobj;
303
+ const _p = findList.length > 0 ? findList[0].p : "";
304
+ const _c = findList.length > 0 ? findList[0].c : "";
305
+ const _x = findList.length > 0 ? findList[0].x : "";
306
+ return { p: _p, c: _c, x: _x, list: findList };
237
307
  };
238
308
  const provinceData = [
239
309
  "\u5317\u4EAC\u5E02|\u5317\u4EAC",