Sfoglia il codice sorgente

修改datas获取

yxb
不甘寂寞 2 anni fa
parent
commit
3b5f499c92
5 ha cambiato i file con 25 aggiunte e 8 eliminazioni
  1. 8
    3
      datas/credentialType.js
  2. 1
    2
      datas/enum.ts
  3. 7
    2
      datas/vehiclePlateColor.js
  4. 8
    1
      datas/vehicleType.js
  5. 1
    0
      utils/network/api.js

+ 8
- 3
datas/credentialType.js Vedi File

@@ -1,5 +1,4 @@
export const credentialType = [
{
export const credentialType = [{
id: 101,
type: '身份证(含临时身份证)'
},
@@ -67,4 +66,10 @@ export const credentialType = [
id: 219,
type: '公司营业税开业/更改M1副本'
}
]
];

//获取证件类型名称
export const getCredentialType = (id: number) => {
let types = credentialType.filter(item => item.id == id);
return types[0].type
}

+ 1
- 2
datas/enum.ts Vedi File

@@ -34,8 +34,7 @@ export enum OrderTypes {
'储值卡转记账卡' = 'EXCHANGE_CARD_TYPE',
'更换卡' = 'REPLACEMENT_CARD',
'更换签' = 'REPLACEMENT_SIGNATURE',
'增补OBU' = 'SUPPLEMENT_OBU',
'增补OBU' = 'SUPPLEMENT_OBU',
'同时换卡换签' = '暂无同时换卡换签枚举',
'ETC注销' = '暂无ETC注销枚举',
'车辆信息变更' = '暂无车辆信息变更枚举',

+ 7
- 2
datas/vehiclePlateColor.js Vedi File

@@ -1,5 +1,4 @@
export const vehiclePlateColor = [
{
export const vehiclePlateColor = [{
id: 0,
color: '蓝色'
},
@@ -40,3 +39,9 @@ export const vehiclePlateColor = [
color: '红色'
}
]

//获取车牌颜色
export const getVehiclePlateColor = (id: number) => {
let colors = vehiclePlateColor.filter(item => item.id == id);
return colors[0].color
}

+ 8
- 1
datas/vehicleType.js Vedi File

@@ -1,3 +1,4 @@
//车辆类型
export const vehicleType = [
{
id: 1,
@@ -39,4 +40,10 @@ export const vehicleType = [
id: 16,
title: '六型货车'
}
]
];
//获取车辆类型
export const getVehicleType = (id: number) => {
let types = vehicleType.filter(item => item.id == id);
return types[0].title
}


+ 1
- 0
utils/network/api.js Vedi File

@@ -46,6 +46,7 @@ export const searchVehicleInfo = "154"; //BDS-车辆信息查询
export const installApply = "79"; //BDS-安装申请
export const obuActivation = "76"; //VFJ-OBU在线激活
export const obuInstall = "80"; //BDS-安装确认
export const obuDecrypt = "90"; //VFJ-OBU系统信息在线解密

/* 设备重复激活 二次激活*/
// export const searchObuInfo = "153"; //BDS-OBU信息查询

Loading…
Annulla
Salva