修复:保险支持5张图片

This commit is contained in:
2025-06-14 17:12:45 +08:00
parent de0f6c43b1
commit 47b6a3d8de
17 changed files with 746 additions and 184 deletions

View File

@@ -1,6 +1,6 @@
import {useEffect, useState} from "react";
import Taro, {useRouter} from '@tarojs/taro'
import {getHjmCar, pageHjmCar, updateHjmCar} from "@/api/hjm/hjmCar";
import {getHjmCarByCode, pageHjmCar, updateHjmCar} from "@/api/hjm/hjmCar";
import {HjmCar} from "@/api/hjm/hjmCar/model";
import './location.scss'
import {copyText} from "@/utils/common";
@@ -168,7 +168,7 @@ const Query = () => {
// }
// }
const reload = () => {
const id = Number(params.id);
const code = params.id;
// 获取数据字典
pageDictData({dictCode: 'InsuranceStatus'}).then(res => {
setDict(res?.list || [])
@@ -192,8 +192,8 @@ const Query = () => {
}
})
// 获取车辆信息
if (id) {
getHjmCar(id).then(data => {
if (code) {
getHjmCarByCode(code).then(data => {
if(data){
setFormData(data)
setKeywords(data.code)
@@ -273,7 +273,7 @@ const Query = () => {
</Form.Item>
<Form.Item
label={'电子围栏'}
name="fence"
name="fenceName"
rules={[{message: '电子围栏'}]}
>
<Input placeholder="电子围栏" type="text"/>
@@ -370,20 +370,28 @@ const Query = () => {
GPS编号{FormData?.gpsNo}
</Cell>
<Cell className={'car-info-item-content'}>
{FormData?.fenceName}
{FormData.fenceName}
</Cell>
<Button nativeType="submit" block type="info" onClick={
() => {
Taro.navigateTo({
url: `/hjm/location?id=${FormData?.id}`
})
}
}>
</Button>
{/*<Cell className={'car-info-item-content'}>*/}
{/* 状态:{FormData?.status == 1 ? '已安装' : '未安装'}*/}
{/*</Cell>*/}
<div className={'flex justify-around'}>
<Button nativeType="submit" type="info" onClick={
() => {
Taro.navigateTo({
url: `/hjm/location?id=${FormData?.id}`
})
}
}>
</Button>
<Button nativeType="submit" type="warning" onClick={
() => {
Taro.navigateTo({
url: `/hjm/trajectory/trajectory?id=${FormData?.id}`
})
}
}>
</Button>
</div>
</div>
</div>
) : ''}