211 lines
4.2 KiB
Plaintext
211 lines
4.2 KiB
Plaintext
import { ArrayList } from "@kit.ArkTS";
|
|
import { StringUtils } from "../../util/StringUtils";
|
|
import { ZdlxItem } from "../../model/resultModel/CheckPeopleResultModel";
|
|
|
|
|
|
|
|
export class CarHpzlType{
|
|
cacheMap:Map<string,string> = new Map<string,string>();
|
|
|
|
constructor() {
|
|
this.cacheMap.set("01","大型汽车")
|
|
this.cacheMap.set("02","小型汽车")
|
|
this.cacheMap.set("03","摩托")
|
|
this.cacheMap.set("04","摩托")
|
|
this.cacheMap.set("05","临时行驶车")
|
|
this.cacheMap.set("99","其他")
|
|
}
|
|
|
|
getValue(key:string):string{
|
|
return StringUtils.get(this.cacheMap.get(key),"");
|
|
}
|
|
|
|
}
|
|
|
|
export const CAR_HPZL_TYPE :CarHpzlType= new CarHpzlType();
|
|
|
|
export interface CheckCarResultModes{
|
|
stealList:CarAbnormal[]
|
|
list:CarData[]
|
|
//临控车辆
|
|
localCar:string
|
|
isProvinceSteal:boolean
|
|
newLkCar:CarTypeOV[]
|
|
}
|
|
|
|
export interface CarAbnormal{
|
|
jdcfdjh:string
|
|
clsbdh:string
|
|
}
|
|
|
|
@Observed
|
|
export class CarData{
|
|
isSelect:boolean = false
|
|
|
|
id:string = ""
|
|
csys:string=""
|
|
clsbdh:string=""
|
|
jdczt:string=""
|
|
type:number=0
|
|
syzzjzl:string=""
|
|
clpp:string=""
|
|
jdcsyr:string=""
|
|
sfzh:string=""
|
|
hpzl:string=""
|
|
clxh:string=""
|
|
hphm:string=""
|
|
fdjh:string=""
|
|
xczp:string=""
|
|
xczpId:string=""
|
|
status:string=""; //盘查结果
|
|
|
|
isSteal:boolean=false
|
|
zdlxBeanList:Array<ZdlxItem>|undefined =undefined
|
|
|
|
addZdlxBean(zdlx:ZdlxItem){
|
|
if (this.zdlxBeanList==null||this.zdlxBeanList == undefined) {
|
|
this.zdlxBeanList = new Array<ZdlxItem>();
|
|
}
|
|
this.zdlxBeanList.push(zdlx)
|
|
}
|
|
}
|
|
|
|
export class ZdlxBean{
|
|
zdlx:string="正常人员"
|
|
//1 正常 2 黄色 3 红色
|
|
styleType:number = 1
|
|
|
|
sqyy?:string
|
|
czcs?:string
|
|
jzrq?:string
|
|
lxdh?:string
|
|
lxmj?:string
|
|
lxmjQQ?:string
|
|
remark?:string
|
|
xyrPhone?:string
|
|
peopleType?:string
|
|
isClickPopup:boolean = false
|
|
isShow:boolean = false
|
|
zdsxList?:ArrayList<ZdlxSxItem>
|
|
|
|
constructor(zdlx: string, styleType: number) {
|
|
this.zdlx = zdlx;
|
|
this.styleType = styleType;
|
|
}
|
|
|
|
addKeyOrValue(key:string,value:string){
|
|
if (this.zdsxList==null) {
|
|
this.zdsxList = new ArrayList<ZdlxSxItem>();
|
|
}
|
|
this.zdsxList.add(new ZdlxSxItem(key,value))
|
|
}
|
|
|
|
|
|
public getIcon():Resource {
|
|
if (this.zdlx.startsWith("被盗抢")) {
|
|
return $r("app.media.ic_type_bdq")
|
|
}
|
|
if (this.zdlx.startsWith("临时")) {
|
|
return $r("app.media.ic_type_control")
|
|
}
|
|
return $r('app.media.ic_type_normal')
|
|
}
|
|
|
|
}
|
|
|
|
export class ZdlxSxItem{
|
|
key:string=""
|
|
value:string=""
|
|
|
|
testColor:Resource = $r("app.color.black")
|
|
|
|
constructor(key: string, value: string) {
|
|
this.key = key;
|
|
this.value = value;
|
|
}
|
|
|
|
}
|
|
|
|
export class CarTypeOV{
|
|
|
|
zdlx:string=""
|
|
czcs:string=""
|
|
sqyy:string=""
|
|
jzrq:string=""
|
|
lxdh:string=""
|
|
lxmj:string=""
|
|
lxmjQQ:string=""
|
|
remark:string=""
|
|
xyrPhone:string=""
|
|
peopleType:string=""
|
|
order:number = 0;
|
|
type:number = -1;
|
|
status:number = 0;
|
|
show:boolean= false
|
|
|
|
|
|
|
|
}
|
|
|
|
export interface LocalCarData{
|
|
jdchpzl:string
|
|
sfzh:string
|
|
jdcsyr:string
|
|
policePhone:string
|
|
zrPoliceName:string
|
|
reason:string
|
|
solution:string
|
|
}
|
|
|
|
//复制自己 为适应 Observed
|
|
export const copyCarData = (value:CarData) => {
|
|
let car = new CarData();
|
|
car.id = value.id
|
|
car.isSelect = value.isSelect
|
|
car.csys = value.csys
|
|
car.clsbdh = value.clsbdh
|
|
car.jdczt = value.jdczt
|
|
car.type = value.type
|
|
car.syzzjzl = value.syzzjzl
|
|
car.clpp = value.clpp
|
|
car.jdcsyr = value.jdcsyr
|
|
car.sfzh = value.sfzh
|
|
car.hpzl = value.hpzl
|
|
car.clxh = value.clxh
|
|
car.hphm = value.hphm
|
|
car.fdjh = value.fdjh
|
|
car.isSteal = value.isSteal
|
|
car.zdlxBeanList = value.zdlxBeanList
|
|
return car;
|
|
}
|
|
|
|
export class CarRecordItem{
|
|
id:string=""
|
|
historyId:string=""
|
|
uuid:string=""
|
|
carNum:string=""
|
|
carStatus:string=""
|
|
status:string=""
|
|
pinpai:string=""
|
|
color:string=""
|
|
fdjh:string=""
|
|
clsbdh:string=""
|
|
clsyr:string=""
|
|
syrzjhm:string=""
|
|
syrStatus:string=""
|
|
checkTime:string=""
|
|
checkType:string=""
|
|
checkTypeStr:string=""
|
|
jdchpzl:string=""
|
|
userName:string=""
|
|
policeName:string=""
|
|
idCard:string=""
|
|
deptId:string=""
|
|
deptName:string=""
|
|
pointX:string=""
|
|
pointY:string=""
|
|
checkAddress:string=""
|
|
policePhone:string=""
|
|
isCommit:string=""
|
|
photos:string=""
|
|
} |