mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 01:36:43 +08:00
省市区编码变更(只修改了电投流程)
This commit is contained in:
3692
src/assets/js/utils/areaForSale.js
Normal file
3692
src/assets/js/utils/areaForSale.js
Normal file
File diff suppressed because it is too large
Load Diff
146
src/assets/js/utils/areaNewForSale.js
Normal file
146
src/assets/js/utils/areaNewForSale.js
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
export default {
|
||||||
|
province_list: {
|
||||||
|
450000: '广西壮族自治区'
|
||||||
|
},
|
||||||
|
city_list: {
|
||||||
|
450100: '南宁市',
|
||||||
|
450200: '柳州市',
|
||||||
|
450300: '桂林市',
|
||||||
|
450400: '梧州市',
|
||||||
|
450500: '北海市',
|
||||||
|
450600: '防城港市',
|
||||||
|
450700: '钦州市',
|
||||||
|
450800: '贵港市',
|
||||||
|
450900: '玉林市',
|
||||||
|
451000: '百色市',
|
||||||
|
451100: '贺州市',
|
||||||
|
451200: '河池市',
|
||||||
|
451300: '来宾市',
|
||||||
|
451400: '崇左市'
|
||||||
|
},
|
||||||
|
county_list: {
|
||||||
|
450101: '市辖区',
|
||||||
|
450102: '兴宁区',
|
||||||
|
450103: '青秀区',
|
||||||
|
450105: '江南区',
|
||||||
|
450107: '西乡塘区',
|
||||||
|
450108: '良庆区',
|
||||||
|
450109: '邕宁区',
|
||||||
|
450122: '武鸣县',
|
||||||
|
450123: '隆安县',
|
||||||
|
450124: '马山县',
|
||||||
|
450125: '上林县',
|
||||||
|
450126: '宾阳县',
|
||||||
|
450127: '横县',
|
||||||
|
450201: '市辖区',
|
||||||
|
450202: '城中区',
|
||||||
|
450203: '鱼峰区',
|
||||||
|
450204: '柳南区',
|
||||||
|
450205: '柳北区',
|
||||||
|
450221: '柳江县',
|
||||||
|
450222: '柳城县',
|
||||||
|
450223: '鹿寨县',
|
||||||
|
450224: '融安县',
|
||||||
|
450225: '融水苗族自治县',
|
||||||
|
450226: '三江侗族自治县',
|
||||||
|
450301: '市辖区',
|
||||||
|
450302: '秀峰区',
|
||||||
|
450303: '叠彩区',
|
||||||
|
450304: '象山区',
|
||||||
|
450305: '七星区',
|
||||||
|
450311: '雁山区',
|
||||||
|
450321: '阳朔县',
|
||||||
|
450322: '临桂县',
|
||||||
|
450323: '灵川县',
|
||||||
|
450324: '全州县',
|
||||||
|
450325: '兴安县',
|
||||||
|
450326: '永福县',
|
||||||
|
450327: '灌阳县',
|
||||||
|
450328: '龙胜各族自治县',
|
||||||
|
450329: '资源县',
|
||||||
|
450330: '平乐县',
|
||||||
|
450331: '荔蒲县',
|
||||||
|
450332: '恭城瑶族自治县',
|
||||||
|
450401: '市辖区',
|
||||||
|
450403: '万秀区',
|
||||||
|
450404: '蝶山区',
|
||||||
|
450405: '长洲区',
|
||||||
|
450421: '苍梧县',
|
||||||
|
450422: '藤县',
|
||||||
|
450423: '蒙山县',
|
||||||
|
450481: '岑溪市',
|
||||||
|
450501: '市辖区',
|
||||||
|
450502: '海城区',
|
||||||
|
450503: '银海区',
|
||||||
|
450512: '铁山港区',
|
||||||
|
450521: '合浦县',
|
||||||
|
450601: '市辖区',
|
||||||
|
450602: '港口区',
|
||||||
|
450603: '防城区',
|
||||||
|
450621: '上思县',
|
||||||
|
450681: '东兴市',
|
||||||
|
450701: '市辖区',
|
||||||
|
450702: '钦南区',
|
||||||
|
450703: '钦北区',
|
||||||
|
450721: '灵山县',
|
||||||
|
450722: '浦北县',
|
||||||
|
450801: '市辖区',
|
||||||
|
450802: '港北区',
|
||||||
|
450803: '港南区',
|
||||||
|
450804: '覃塘区',
|
||||||
|
450821: '平南县',
|
||||||
|
450881: '桂平市',
|
||||||
|
450901: '市辖区',
|
||||||
|
450902: '玉州区',
|
||||||
|
450921: '容县',
|
||||||
|
450922: '陆川县',
|
||||||
|
450923: '博白县',
|
||||||
|
450924: '兴业县',
|
||||||
|
450981: '北流市',
|
||||||
|
451001: '市辖区',
|
||||||
|
451002: '右江区',
|
||||||
|
451021: '田阳县',
|
||||||
|
451022: '田东县',
|
||||||
|
451023: '平果县',
|
||||||
|
451024: '德保县',
|
||||||
|
451026: '那坡县',
|
||||||
|
451027: '凌云县',
|
||||||
|
451028: '乐业县',
|
||||||
|
451029: '田林县',
|
||||||
|
451030: '西林县',
|
||||||
|
451031: '隆林各族自治县',
|
||||||
|
451081: '靖西市',
|
||||||
|
451101: '市辖区',
|
||||||
|
451102: '八步区',
|
||||||
|
451121: '昭平县',
|
||||||
|
451122: '钟山县',
|
||||||
|
451123: '富川瑶族自治县',
|
||||||
|
451201: '市辖区',
|
||||||
|
451202: '金城江区',
|
||||||
|
451221: '南丹县',
|
||||||
|
451222: '天峨县',
|
||||||
|
451223: '凤山县',
|
||||||
|
451224: '东兰县',
|
||||||
|
451225: '罗城仫佬族自治县',
|
||||||
|
451226: '环江毛南族自治县',
|
||||||
|
451227: '巴马瑶族自治县',
|
||||||
|
451228: '都安瑶族自治县',
|
||||||
|
451229: '大化瑶族自治县',
|
||||||
|
451281: '宜州市',
|
||||||
|
451301: '市辖区',
|
||||||
|
451302: '兴宾区',
|
||||||
|
451321: '忻城县',
|
||||||
|
451322: '象州县',
|
||||||
|
451323: '武宣县',
|
||||||
|
451324: '金秀瑶族自治县',
|
||||||
|
451381: '合山市',
|
||||||
|
451401: '市辖区',
|
||||||
|
451402: '江州区',
|
||||||
|
451421: '扶绥县',
|
||||||
|
451422: '宁明县',
|
||||||
|
451423: '龙州县',
|
||||||
|
451424: '大新县',
|
||||||
|
451425: '天等县',
|
||||||
|
451481: '凭祥市'
|
||||||
|
}
|
||||||
|
}
|
||||||
22
src/assets/js/utils/getAreaNameForSale.js
Normal file
22
src/assets/js/utils/getAreaNameForSale.js
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
// 获取省市区名称
|
||||||
|
import area from '@/assets/js/utils/areaForSale'
|
||||||
|
import areaNew from '@/assets/js/utils/areaNewForSale'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取省市区名称
|
||||||
|
* @param {String} provinceCode 省级编码
|
||||||
|
* @param {String} cityCode 市级编码
|
||||||
|
* @param {String} areaCode 区级编码
|
||||||
|
* @return {String} 省市区名称
|
||||||
|
*/
|
||||||
|
export default function getAreaName(data, from) {
|
||||||
|
if (data.length == 3) {
|
||||||
|
if (from == 'new') {
|
||||||
|
return areaNew.province_list[data[0].code] + '-' + areaNew.city_list[data[1].code] + '-' + areaNew.county_list[data[2].code]
|
||||||
|
} else {
|
||||||
|
return area.province_list[data[0].code] + '-' + area.city_list[data[1].code] + '-' + area.county_list[data[2].code]
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return area.province_list[data[0].code] + '-' + area.city_list[data[1].code]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -159,7 +159,7 @@ import utilsAge from '@/assets/js/utils/age'
|
|||||||
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
||||||
import IndexBar from '@/components/ebiz/sale/IndexBar'
|
import IndexBar from '@/components/ebiz/sale/IndexBar'
|
||||||
import SelectBankName from '@/components/ebiz/account/SelectBankName'
|
import SelectBankName from '@/components/ebiz/account/SelectBankName'
|
||||||
import areaList from '@/assets/js/utils/area'
|
import areaList from '@/assets/js/utils/areaForSale'
|
||||||
import { getWhitelist } from '@/api/ebiz/whitelist'
|
import { getWhitelist } from '@/api/ebiz/whitelist'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ import SelectRadio from '@/components/ebiz/SelectRadio'
|
|||||||
import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
|
import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
|
||||||
import OccupationPicker from '@/components/ebiz/occipation/OccupationPicker'
|
import OccupationPicker from '@/components/ebiz/occipation/OccupationPicker'
|
||||||
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
||||||
import areaList from '@/assets/js/utils/area'
|
import areaList from '@/assets/js/utils/areaForSale'
|
||||||
import filter from '@/filters/index'
|
import filter from '@/filters/index'
|
||||||
import utilsAge from '@/assets/js/utils/age'
|
import utilsAge from '@/assets/js/utils/age'
|
||||||
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
||||||
|
|||||||
@@ -380,11 +380,11 @@ import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
|
|||||||
import OccupationPicker from '@/components/ebiz/occipation/OccupationPicker'
|
import OccupationPicker from '@/components/ebiz/occipation/OccupationPicker'
|
||||||
import CustomerPicker from '@/components/ebiz/customer/CustomerPicker'
|
import CustomerPicker from '@/components/ebiz/customer/CustomerPicker'
|
||||||
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
||||||
import areaList from '@/assets/js/utils/area'
|
import areaList from '@/assets/js/utils/areaForSale'
|
||||||
import areaLists from '@/assets/js/utils/areaNew'
|
import areaLists from '@/assets/js/utils/areaNewForSale'
|
||||||
import { saveOrUpdateOrderInfo, getAuthCode, getOrderDetail, getCompany } from '@/api/ebiz/sale/sale'
|
import { saveOrUpdateOrderInfo, getAuthCode, getOrderDetail, getCompany } from '@/api/ebiz/sale/sale'
|
||||||
import utilsAge from '@/assets/js/utils/age'
|
import utilsAge from '@/assets/js/utils/age'
|
||||||
import getAreaName from '@/assets/js/utils/get-area-name'
|
import getAreaName from '@/assets/js/utils/getAreaNameForSale'
|
||||||
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
||||||
import idNoCheck from '@/assets/js/utils/idNoCheck'
|
import idNoCheck from '@/assets/js/utils/idNoCheck'
|
||||||
import beforeDate from '@/assets/js/utils/getBeforeDate.js'
|
import beforeDate from '@/assets/js/utils/getBeforeDate.js'
|
||||||
|
|||||||
@@ -440,11 +440,11 @@ import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
|
|||||||
import OccupationPicker from '@/components/ebiz/occipation/OccupationPicker'
|
import OccupationPicker from '@/components/ebiz/occipation/OccupationPicker'
|
||||||
import CustomerPicker from '@/components/ebiz/customer/CustomerPicker'
|
import CustomerPicker from '@/components/ebiz/customer/CustomerPicker'
|
||||||
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
||||||
import areaList from '@/assets/js/utils/area'
|
import areaList from '@/assets/js/utils/areaForSale'
|
||||||
import areaLists from '@/assets/js/utils/areaNew'
|
import areaLists from '@/assets/js/utils/areaNewForSale'
|
||||||
import { saveOrUpdateOrderInfo, getAuthCode, getOrderDetail } from '@/api/ebiz/sale/sale'
|
import { saveOrUpdateOrderInfo, getAuthCode, getOrderDetail } from '@/api/ebiz/sale/sale'
|
||||||
import utilsAge from '@/assets/js/utils/age'
|
import utilsAge from '@/assets/js/utils/age'
|
||||||
import getAreaName from '@/assets/js/utils/get-area-name'
|
import getAreaName from '@/assets/js/utils/getAreaSaleForSale'
|
||||||
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
||||||
import idNoCheck from '@/assets/js/utils/idNoCheck'
|
import idNoCheck from '@/assets/js/utils/idNoCheck'
|
||||||
import beforeDate from '@/assets/js/utils/getBeforeDate.js'
|
import beforeDate from '@/assets/js/utils/getBeforeDate.js'
|
||||||
|
|||||||
Reference in New Issue
Block a user